/* ============================================
   Espace Client Premium - Dashboard CSS
   Variables defined in theme.css
   ============================================ */

.client-body {
    background: var(--bg-primary);
    overflow-x: hidden;
}

.client-body::before {
    display: none;
}

/* --- Layout --- */
.client-layout {
    min-height: 100vh;
    position: relative;
}

/* --- Sidebar --- */
.client-sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    z-index: 100;
    overflow-y: auto;
}

.client-sidebar::-webkit-scrollbar { width: 3px; }
.client-sidebar::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

.client-sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.client-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    text-decoration: none;
}
.client-logo strong { font-weight: 800; }

/* --- Nav --- */
.client-nav {
    flex: 1;
    padding: 1rem 0.8rem;
}

.client-nav-section {
    margin-bottom: 1.5rem;
}

.client-nav-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 0 0.8rem;
    margin-bottom: 0.5rem;
}

.client-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 300ms ease;
    position: relative;
    margin-bottom: 2px;
}

.client-nav-link:hover {
    color: var(--text-white);
    background: rgba(212,168,83,0.06);
}

.client-nav-link.active {
    color: var(--accent-gold);
    background: rgba(212,168,83,0.08);
    font-weight: 600;
}

.client-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent-gold);
    border-radius: 0 3px 3px 0;
}

.client-nav-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.client-nav-link.active svg,
.client-nav-link:hover svg {
    opacity: 1;
}

.client-badge {
    margin-left: auto;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

/* --- Sidebar Footer --- */
.client-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-user-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 10px;
    transition: background 300ms ease;
}
.client-user-card:hover {
    background: rgba(212,168,83,0.06);
}

.client-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--text-on-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.client-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.client-user-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-user-role {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.logout-link {
    padding: 0.5rem !important;
    margin: 0 !important;
    color: var(--text-muted) !important;
}
.logout-link:hover {
    color: var(--accent-red) !important;
    background: rgba(224,82,82,0.08) !important;
}

/* --- Main Content --- */
.client-main {
    margin-left: 270px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.client-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--header-bg-scrolled);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.client-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.3rem;
}

.client-page-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    flex: 1;
}

.client-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.client-notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    background: var(--bg-glass);
    color: var(--accent-gold);
    transition: all 300ms ease;
    flex-shrink: 0;
}
.client-notif-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212,168,83,0.15);
    transform: scale(1.05);
}
.client-notif-btn .client-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
}

.client-content {
    flex: 1;
    padding: 2rem;
}

/* --- Dashboard Welcome --- */
.dash-welcome {
    margin-bottom: 2rem;
}
.dash-welcome h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}
.dash-welcome p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

/* --- Dashboard Cards --- */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.dash-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 400ms ease;
    position: relative;
    overflow: hidden;
}
.dash-stat:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
}
.dash-stat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--stat-color, var(--accent-gold)), transparent);
    opacity: 0.5;
}

.dash-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(212,168,83,0.08);
    color: var(--accent-gold);
}

.dash-stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.dash-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Dashboard Grid --- */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 400ms ease;
}
.dash-card:hover {
    border-color: var(--border-gold);
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.dash-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.dash-card-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(212,168,83,0.1);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.2rem;
    padding-left: 1rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--timeline-color, var(--accent-gold));
    border: 2px solid var(--bg-sidebar);
}

.timeline-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.timeline-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Event type badges --- */
.event-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(212,168,83,0.1);
    color: var(--accent-gold);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}
.empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.3;
}
.empty-state p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --- Client Forms --- */
.client-form {
    max-width: 700px;
}

.client-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.client-form .form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    display: block;
}

.client-form input,
.client-form select,
.client-form textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    width: 100%;
    transition: all 300ms ease;
}
.client-form input:focus,
.client-form select:focus,
.client-form textarea:focus {
    border-color: rgba(212,168,83,0.3);
    box-shadow: 0 0 0 3px rgba(212,168,83,0.08);
    outline: none;
}

/* --- Data List --- */
.data-list {
    width: 100%;
}

.data-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 200ms ease;
}
.data-list-item:hover {
    background: rgba(212,168,83,0.02);
}

.data-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(212,168,83,0.08);
    color: var(--accent-gold);
}

.data-list-info {
    flex: 1;
    min-width: 0;
}

.data-list-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-list-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.data-list-action {
    flex-shrink: 0;
}

/* --- Forum --- */
.forum-category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 0.8rem;
    transition: all 300ms ease;
    text-decoration: none;
}
.forum-category-card:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
}

.forum-category-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,168,83,0.06);
    border-radius: 12px;
    flex-shrink: 0;
}

.forum-category-info {
    flex: 1;
}

.forum-category-name {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.forum-category-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.forum-category-stats {
    text-align: right;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.forum-category-stats strong {
    color: var(--accent-gold);
    display: block;
    font-size: 1.1rem;
}

/* --- Messages --- */
.msg-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    height: calc(100vh - 130px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.msg-list {
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.msg-conversation {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 200ms ease;
    text-decoration: none;
}
.msg-conversation:hover,
.msg-conversation.active {
    background: rgba(212,168,83,0.04);
}

.msg-conversation .client-avatar {
    width: 40px;
    height: 40px;
}

.msg-preview {
    flex: 1;
    min-width: 0;
}

.msg-preview-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-white);
}

.msg-preview-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-preview-time {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
    align-self: flex-start;
}

.msg-chat {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.msg-chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-white);
}

.msg-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg-bubble {
    max-width: 70%;
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.msg-bubble.sent {
    align-self: flex-end;
    background: var(--color-sent-bg);
    color: var(--text-white);
    border-bottom-right-radius: 4px;
}

.msg-bubble.received {
    align-self: flex-start;
    background: var(--color-received-bg);
    color: var(--color-received-text);
    border-bottom-left-radius: 4px;
}

.msg-bubble-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.msg-chat-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.8rem;
}

.msg-chat-input input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-white);
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
}
.msg-chat-input input:focus {
    border-color: rgba(212,168,83,0.3);
    outline: none;
}

.msg-chat-input button {
    background: var(--accent-gold);
    color: var(--text-on-gold);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease;
}
.msg-chat-input button:hover {
    background: var(--accent-gold-hover);
    box-shadow: 0 0 15px rgba(212,168,83,0.3);
}

/* --- Calendar --- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-top: 1rem;
}

.calendar-header-cell {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 0.5rem;
}

.calendar-cell {
    min-height: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.4rem;
    transition: all 200ms ease;
}
.calendar-cell:hover {
    border-color: rgba(212,168,83,0.15);
}
.calendar-cell.today {
    border-color: rgba(212,168,83,0.3);
    background: rgba(212,168,83,0.04);
}
.calendar-cell.other-month {
    opacity: 0.3;
}

.calendar-day {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}
.calendar-cell.today .calendar-day {
    color: var(--accent-gold);
}

.calendar-event {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

/* --- Login/Register Pages --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg-primary);
}

.auth-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25);
}
.auth-visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem;
    max-width: 500px;
}
.auth-visual-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #F2EDE6;
    margin-bottom: 1rem;
}
.auth-visual-content p {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    line-height: 1.7;
}

.auth-form-side {
    width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.auth-form-box {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.auth-form-box h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.auth-form-box .auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.auth-form-box .form-group {
    margin-bottom: 1.2rem;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.auth-link a {
    color: var(--accent-gold);
    font-weight: 600;
}

/* --- Report Generator --- */
.report-form {
    max-width: 800px;
}

.report-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.report-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212,168,83,0.1);
}

.report-section textarea {
    min-height: 100px;
}

.report-helper {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.3rem;
}

/* --- Sidebar Overlay (mobile) --- */
.client-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
}

@media (max-width: 1024px) {
    .client-sidebar-overlay.active {
        display: block;
    }
}

/* --- Dashboard Actions --- */
.dash-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-actions .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1.2rem;
    font-size: 0.88rem;
    border-radius: 12px;
}

.dash-actions .btn-primary {
    box-shadow: none;
}

.dash-actions .btn-outline {
    border-color: var(--border-gold);
    color: var(--text-primary);
}

.dash-actions .btn-outline:hover {
    border-color: rgba(212,168,83,0.5);
    color: var(--accent-gold);
    background: rgba(212,168,83,0.06);
}

.dash-actions .btn svg {
    flex-shrink: 0;
}

/* --- Dashboard Cards spacing --- */
.dash-grid {
    margin-bottom: 1.5rem;
}

.client-content > .dash-card {
    margin-bottom: 1.5rem;
}

.client-content > .dash-card:last-child {
    margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .client-layout {
        grid-template-columns: 1fr;
    }

    .client-sidebar {
        transform: translateX(-100%);
        transition: transform 300ms ease;
        box-shadow: 8px 0 40px rgba(0,0,0,0.5);
    }
    .client-sidebar.open {
        transform: translateX(0);
    }

    .client-main {
        margin-left: 0;
    }

    .client-menu-toggle {
        display: block;
    }

    .client-content {
        padding: 1.5rem;
    }

    .dash-welcome h2 {
        font-size: 1.4rem;
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }

    .msg-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .msg-list {
        max-height: 300px;
    }

    .auth-visual {
        display: none;
    }
    .auth-form-side {
        width: 100%;
    }

    .report-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Profile grid: stack on mobile */
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* Children rows: stack on mobile */
    .child-row-profile {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .client-content {
        padding: 1rem;
    }

    .client-header {
        padding: 0.8rem 1rem;
    }

    .client-page-title {
        font-size: 1.1rem;
    }

    .dash-welcome {
        margin-bottom: 1.5rem;
    }

    .dash-welcome h2 {
        font-size: 1.2rem;
    }

    .dash-welcome p {
        font-size: 0.88rem;
    }

    .dash-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .dash-stat {
        padding: 1rem;
        border-radius: 12px;
    }

    .dash-stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        margin-bottom: 0.6rem;
    }

    .dash-stat-value {
        font-size: 1.5rem;
    }

    .dash-stat-label {
        font-size: 0.72rem;
    }

    .dash-card {
        padding: 1.2rem;
        border-radius: 12px;
    }

    .dash-actions .btn {
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
    }

    .client-form .form-row {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        font-size: 0.75rem;
    }
    .calendar-cell {
        min-height: 50px;
        padding: 0.2rem;
    }

    .msg-chat-body {
        padding: 1rem;
    }

    .msg-bubble {
        max-width: 85%;
        font-size: 0.85rem;
    }

    .forum-category-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .forum-category-stats {
        text-align: left;
        display: flex;
        gap: 1rem;
    }

    .data-list-item {
        gap: 0.75rem;
        padding: 0.8rem 0;
    }

    .upgrade-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.2rem;
    }
}

@media (max-width: 400px) {
    .dash-stats {
        grid-template-columns: 1fr;
    }

    .client-content {
        padding: 0.75rem;
    }

    .dash-card {
        padding: 1rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.7rem 1.2rem;
    }
}

/* Upgrade Banner */
.upgrade-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(212,168,83,0.12), rgba(212,168,83,0.04));
    border: 1px solid rgba(212,168,83,0.25);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}
.upgrade-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.upgrade-banner-content strong {
    display: block;
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.upgrade-banner-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Plan comparison table */
.plan-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.plan-table th {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(212,168,83,0.1);
}
.plan-table th.plan-highlight {
    color: var(--accent-gold);
    font-weight: 700;
}
.plan-table td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-primary);
}
.plan-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.plan-table .plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}
.plan-table .plan-price small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.plan-check { color: var(--accent-green); }
.plan-cross { color: var(--text-muted); }

/* ─── Google OAuth Button ─── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-google:hover {
    border-color: #4285F4;
    background: rgba(66, 133, 244, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}
.btn-google svg {
    flex-shrink: 0;
}

/* ─── Facebook OAuth Button ─── */
.btn-facebook {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: #1877F2;
    color: #FFFFFF;
    border: 2px solid #1877F2;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}
.btn-facebook:hover {
    background: #166FE5;
    border-color: #166FE5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
    color: #FFFFFF;
}
.btn-facebook svg {
    flex-shrink: 0;
}

/* Auth divider "ou" */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    gap: 1rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border-color);
}
.auth-divider span {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
