:root {
    --cs-navy: #04142b;
    --cs-gold: #d6af78;
    --cs-gold-deep: #c89753;
    --cs-cream: #f6f3ee;
    --cs-ivory: #fff;
    --cs-border: #e8e1d7;
    --cs-card-border: #ece6dc;
    --cs-muted: #6b7280;
    --cs-success: #198754;
    --cs-danger: #dc3545;
    --cs-shadow: 0 8px 24px rgba(4, 20, 43, 0.06);
    --cs-radius: 18px;
    --cs-radius-sm: 12px;
    --cs-sidebar: 260px;
    --cs-font: 'Montserrat', sans-serif;
    --cs-display: 'Cormorant Garamond', serif;
    --cs-transition: 0.25s ease;

    /* Layering — dropdown must sit above sidebar (1200) */
    --exp-z-overlay: 1100;
    --exp-z-sidebar: 1200;
    --exp-z-notif: 1300;
    --exp-z-modal: 2000;

    /* Expert Panel — global compact design tokens */
    --exp-page-title: 28px;
    --exp-section-title: 20px;
    --exp-card-title: 15px;
    --exp-label: 14px;
    --exp-value: 14px;
    --exp-body: 13px;
    --exp-small: 12px;
    --exp-btn-h: 40px;
    --exp-btn-font: 14px;
    --exp-btn-weight: 500;
    --exp-card-pad: 20px;
    --exp-card-gap: 20px;
    --exp-section-gap: 24px;
    --exp-row-gap: 12px;
    --exp-row-min-h: 44px;
    --exp-row-pad-y: 10px;
    --exp-heading-gap: 18px;
    --exp-divider: #eaeaea;
    --exp-accent: #1e63e9;
    --exp-primary-blue: #1e63e9;
    --exp-primary-blue-hover: #1a56cc;
    --exp-value-muted: #7a8494;
    --exp-radius: 16px;
}

/* Expert Panel — shared spacing scope (profile + future panel pages) */
body.expert-profile,
body.expert-panel {
    --exp-row-min-h: 44px;
    --exp-row-pad-y: 10px;
    --exp-card-pad: 20px;
    --exp-heading-gap: 18px;
}

/* Shared information-row utility (future cards) */
body.expert-profile .ep-info-row,
body.expert-panel .ep-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: var(--exp-row-min-h);
    padding: var(--exp-row-pad-y) 0;
    border-bottom: 1px solid var(--exp-divider);
}

body.expert-profile .ep-info-row:first-child,
body.expert-panel .ep-info-row:first-child {
    padding-top: 0;
}

body.expert-profile .ep-info-row:last-child,
body.expert-panel .ep-info-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.expert-body,
body.expert-auth-page {
    font-family: var(--cs-font);
    color: var(--cs-navy);
    min-height: 100vh;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input {
    font: inherit;
}

/* Login page */
body.expert-auth-page {
    background:
        linear-gradient(135deg, rgba(4, 20, 43, 0.92), rgba(4, 20, 43, 0.78)),
        url('../assets/images/join-hero.jpeg') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.expert-auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--cs-ivory);
    border-radius: var(--cs-radius);
    padding: 36px 32px 32px;
    box-shadow: 0 20px 50px rgba(4, 20, 43, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.expert-auth-back {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cs-cream);
    color: var(--cs-navy);
    text-decoration: none;
    transition: background var(--cs-transition);
}

.expert-auth-back:hover {
    background: #ebe4d9;
}

.expert-auth-brand {
    margin: 0 auto 18px;
    text-align: center;
    max-width: 100%;
}

.expert-auth-logo-frame {
    height: 36px;
    overflow: hidden;
    line-height: 0;
}

.expert-auth-logo {
    width: auto;
    height: 52px;
    margin: 0 auto;
    object-fit: contain;
    object-position: top center;
    opacity: 1;
    filter: none;
    image-rendering: auto;
}

.expert-auth-tagline {
    margin: 3px 0 0;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.2;
    color: #5F6368;
    opacity: 1;
    filter: none;
}

.expert-auth-card h1 {
    font-family: var(--cs-display);
    font-size: 32px;
    text-align: center;
    margin-bottom: 6px;
}

.expert-auth-sub {
    text-align: center;
    color: var(--cs-muted);
    font-size: 14px;
    margin-bottom: 22px;
}

.expert-alert {
    padding: 12px 14px;
    border-radius: var(--cs-radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.45;
}

.expert-alert.error {
    background: rgba(220, 53, 69, 0.1);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, 0.18);
}

.expert-alert.success {
    background: rgba(25, 135, 84, 0.1);
    color: #146c43;
    border: 1px solid rgba(25, 135, 84, 0.18);
}

.expert-auth-form .form-field {
    margin-bottom: 16px;
}

.expert-auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cs-cream);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    padding: 0 14px;
    min-height: 48px;
    transition: border-color var(--cs-transition), box-shadow var(--cs-transition);
}

.input-wrap:focus-within {
    border-color: var(--cs-gold);
    box-shadow: 0 0 0 3px rgba(214, 175, 120, 0.18);
}

.input-wrap i {
    color: var(--cs-muted);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.input-wrap input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--cs-navy);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--cs-radius-sm);
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--cs-transition), background var(--cs-transition), color var(--cs-transition);
}

.btn-primary {
    background: var(--cs-gold);
    color: var(--cs-navy);
}

.btn-primary:hover {
    background: var(--cs-gold-deep);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

.expert-auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--cs-muted);
}

.expert-auth-footer a {
    color: var(--cs-gold-deep);
    font-weight: 600;
    text-decoration: none;
}

.expert-auth-footer a:hover {
    text-decoration: underline;
}

/* Panel layout */
body.expert-body {
    background: var(--cs-cream);
}

.expert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 20, 43, 0.45);
    z-index: var(--exp-z-overlay);
}

.expert-overlay[hidden] {
    display: none !important;
}

.expert-sidebar {
    width: var(--cs-sidebar);
    background: var(--cs-navy);
    position: fixed;
    inset: 0 auto 0 0;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    z-index: var(--exp-z-sidebar);
    transition: transform var(--cs-transition);
    overflow: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 28px;
    padding: 8px 6px;
}

.brand-logo {
    width: auto;
    height: 55px;
    max-width: 100%;
    object-fit: contain;
}

.sidebar-close {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 6px;
}

.sidebar-nav a,
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--cs-transition), color var(--cs-transition), transform var(--cs-transition);
}

.sidebar-nav a i,
.sidebar-logout i {
    width: 18px;
    text-align: center;
    opacity: 0.9;
}

.sidebar-nav a:hover:not(.is-disabled),
.sidebar-logout:hover {
    background: rgba(214, 175, 120, 0.14);
    color: var(--cs-gold);
    transform: translateX(2px);
}

.sidebar-nav a.active,
.sidebar-logout.active {
    background: rgba(214, 175, 120, 0.18);
    color: var(--cs-gold);
    font-weight: 600;
}

.sidebar-nav a.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
}

.expert-main {
    margin-left: var(--cs-sidebar);
    min-height: 100vh;
}

.expert-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--cs-ivory);
    padding: 14px 22px;
    border-bottom: 1px solid var(--cs-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: var(--cs-cream);
    color: var(--cs-navy);
    cursor: pointer;
    margin-right: auto;
    flex-shrink: 0;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--cs-navy);
}

.btn-logout {
    background: var(--cs-cream);
    color: var(--cs-navy);
    border: 1px solid var(--cs-border);
    padding: 10px 14px;
}

.btn-logout:hover {
    background: #ebe4d9;
}

.expert-content {
    padding: var(--exp-section-gap);
}

/* ── Shared expert page header (eph-) ── */
body:has(.eph-header) .expert-topbar {
    display: none;
}

.eph-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    overflow: visible;
}

.eph-header-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1 1 320px;
}

.eph-header-titles {
    min-width: 0;
}

.eph-menu-btn {
    display: none;
    margin-top: 4px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: var(--cs-ivory);
    color: var(--cs-navy);
    box-shadow: var(--cs-shadow);
    cursor: pointer;
    flex-shrink: 0;
}

.eph-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--exp-small);
    color: var(--cs-muted);
    text-decoration: none;
    margin-bottom: 6px;
}

.eph-back:hover {
    color: var(--cs-navy);
}

.eph-header h1 {
    font-family: var(--cs-display);
    font-size: var(--exp-page-title);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 4px;
}

.eph-header p {
    font-size: var(--exp-body);
    color: var(--cs-muted);
    line-height: 1.4;
}

.eph-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow: visible;
}

.eph-expert-id {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(214, 175, 120, 0.2);
    color: var(--cs-gold-deep);
    font-size: var(--exp-small);
    font-weight: 500;
    white-space: nowrap;
}

.eph-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: var(--cs-ivory);
    color: var(--cs-navy);
    box-shadow: var(--cs-shadow);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.eph-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid var(--cs-border);
    background: var(--cs-ivory);
    color: var(--cs-navy);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: var(--cs-shadow);
    white-space: nowrap;
}

.eph-settings-btn:hover {
    background: var(--cs-cream);
}

.eph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}

.eph-btn-sm {
    padding: 7px 12px;
    font-size: 12px;
}

.eph-btn-gold {
    background: linear-gradient(135deg, var(--cs-gold), var(--cs-gold-deep));
    color: #fff;
    box-shadow: 0 4px 14px rgba(214, 175, 120, 0.35);
}

.eph-btn-gold:hover {
    filter: brightness(1.03);
}

.eph-btn-navy {
    background: var(--cs-navy);
    color: #fff;
}

.eph-btn-navy:hover {
    background: #030f22;
}

.eph-btn-outline {
    background: var(--cs-ivory);
    border: 1px solid var(--cs-border);
    color: var(--cs-navy);
}

.eph-btn-outline:hover {
    background: var(--cs-cream);
}

.eph-profile-menu {
    position: relative;
}

.eph-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border: none;
    background: var(--cs-ivory);
    border-radius: 999px;
    box-shadow: var(--cs-shadow);
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.eph-profile-trigger img,
.eph-avatar-fallback {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.eph-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(214, 175, 120, 0.25);
    color: var(--cs-gold-deep);
    font-size: 13px;
    font-weight: 600;
}

.eph-profile-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.eph-profile-trigger strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eph-membership-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
}

.eph-membership-badge.is-active {
    background: rgba(25, 135, 84, 0.12);
    color: var(--cs-success);
}

.eph-membership-badge.is-inactive {
    background: rgba(107, 114, 128, 0.14);
    color: var(--cs-muted);
}

.eph-chevron {
    font-size: 10px;
    color: var(--cs-muted);
    flex-shrink: 0;
}

.eph-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--cs-ivory);
    border: 1px solid var(--cs-border);
    border-radius: 12px;
    box-shadow: var(--cs-shadow);
    padding: 6px;
    display: none;
    z-index: 50;
}

.eph-profile-menu.is-open .eph-dropdown {
    display: block;
}

.eph-dropdown a {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--cs-navy);
    font-size: 13px;
}

.eph-dropdown a:hover {
    background: var(--cs-cream);
}

@media (max-width: 900px) {
    .eph-menu-btn,
    .dashboard-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .eph-header-right .eph-btn span {
        display: none;
    }

    .eph-header-right .eph-btn i {
        margin: 0;
    }
}

/* Dashboard — premium expert layout */
body.expert-dashboard .expert-topbar {
    display: none;
}

body.expert-dashboard .expert-content {
    padding: 24px;
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.dashboard-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    flex: 1 1 320px;
}

.dashboard-menu-toggle {
    display: none;
    margin-top: 4px;
    flex-shrink: 0;
}

.dashboard-greeting {
    font-size: 14px;
    color: var(--cs-muted);
    margin-bottom: 4px;
}

.dashboard-name {
    font-family: var(--cs-display);
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.dashboard-tagline {
    font-size: 13px;
    color: var(--cs-muted);
    line-height: 1.3;
}

.dashboard-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: var(--cs-ivory);
    color: var(--cs-navy);
    box-shadow: var(--cs-shadow);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--cs-transition), box-shadow var(--cs-transition);
}

.dashboard-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(4, 20, 43, 0.08);
}

.dashboard-notif-dot {
    position: absolute;
    top: 10px;
    right: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cs-danger);
    box-shadow: 0 0 0 2px var(--cs-ivory);
}

/* Expert panel — shared notification dropdown */
.expert-notifications {
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.expert-notif-bell {
    position: relative;
}

.expert-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--cs-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--cs-ivory);
}

.expert-notif-bell .dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cs-danger);
}

.expert-notif-badge[hidden],
.expert-notif-bell .dot[hidden] {
    display: none !important;
}

.expert-notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 24px);
    background: var(--cs-ivory);
    border: 1px solid var(--cs-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(4, 20, 43, 0.12);
    z-index: var(--exp-z-notif);
    overflow: hidden;
    box-sizing: border-box;
}

.expert-notif-dropdown.is-fixed,
.expert-notif-dropdown.is-portaled {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 380px;
    max-width: calc(100vw - 24px);
    min-width: 0;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    z-index: var(--exp-z-notif);
}

.expert-notif-dropdown[hidden] {
    display: none !important;
}

.expert-notif-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--cs-border);
    flex-shrink: 0;
}

.expert-notif-dropdown-head strong {
    font-size: 13px;
    color: var(--cs-navy);
}

.expert-notif-mark-all {
    border: none;
    background: transparent;
    color: var(--cs-gold-deep);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.expert-notif-mark-all:hover {
    text-decoration: underline;
}

.expert-notif-dropdown-body {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
}

.expert-notif-dropdown.is-fixed .expert-notif-dropdown-body {
    flex: 1;
    min-height: 0;
    max-height: none;
}

.expert-notif-empty {
    padding: 20px 16px;
    font-size: 13px;
    color: var(--cs-muted);
    line-height: 1.45;
    text-align: center;
}

.expert-notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(4, 20, 43, 0.06);
    cursor: pointer;
}

.expert-notif-item:last-child {
    border-bottom: none;
}

.expert-notif-item:hover {
    background: #faf8f5;
}

.expert-notif-item.is-unread {
    background: rgba(214, 175, 120, 0.08);
}

.expert-notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(214, 175, 120, 0.18);
    color: var(--cs-gold-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}

.expert-notif-item-body {
    min-width: 0;
    flex: 1;
}

.expert-notif-item-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--cs-navy);
    margin: 0 0 2px;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.expert-notif-item-desc {
    font-size: 12px;
    color: var(--cs-muted);
    line-height: 1.4;
    margin: 0 0 4px;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expert-notif-item-time {
    display: block;
    font-size: 11px;
    color: var(--cs-muted);
    line-height: 1.3;
}

.eef-icon-btn,
.ep-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: var(--cs-ivory);
    color: var(--cs-navy);
    box-shadow: var(--cs-shadow);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.eef-header-actions,
.ep-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .expert-notif-dropdown:not(.is-fixed):not(.is-portaled) {
        right: -8px;
        width: min(380px, calc(100vw - 20px));
    }
}

.dashboard-profile-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 8px;
    background: var(--cs-ivory);
    border-radius: 999px;
    box-shadow: var(--cs-shadow);
}

.dashboard-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(214, 175, 120, 0.35);
    flex-shrink: 0;
}

.dashboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dashboard-profile-meta strong {
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.dashboard-membership-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.dashboard-membership-badge.is-active {
    background: rgba(25, 135, 84, 0.12);
    color: var(--cs-success);
}

.dashboard-membership-badge.is-inactive {
    background: rgba(107, 114, 128, 0.14);
    color: var(--cs-muted);
}

.btn-pill {
    border-radius: 999px;
    min-height: 42px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    transition: transform var(--cs-transition), background var(--cs-transition), color var(--cs-transition), box-shadow var(--cs-transition);
}

.btn-pill:hover {
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--cs-gold);
    color: var(--cs-navy);
}

.btn-gold:hover {
    background: var(--cs-gold-deep);
}

.btn-navy {
    background: var(--cs-navy);
    color: #fff;
}

.btn-navy:hover {
    background: #0a2244;
}

.btn-navy-outline {
    background: transparent;
    color: var(--cs-navy);
    border: 1px solid var(--cs-border);
}

.btn-navy-outline:hover {
    background: var(--cs-ivory);
}

.btn-pill.is-disabled,
.quick-action.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.dashboard-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin-bottom: 24px;
    background: var(--cs-ivory);
    border-radius: 17px;
    box-shadow: var(--cs-shadow);
}

.dashboard-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 240px;
    min-width: 200px;
    height: 42px;
    padding: 0 14px;
    background: var(--cs-cream);
    border-radius: 999px;
}

.dashboard-search i {
    color: var(--cs-muted);
    font-size: 14px;
}

.dashboard-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--cs-navy);
}

.dashboard-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--cs-muted);
    white-space: nowrap;
}

.dashboard-date i {
    color: var(--cs-gold-deep);
}

.dashboard-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.dashboard-stats {
    margin-bottom: 24px;
}

body.expert-dashboard .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    width: 100%;
}

body.expert-dashboard .stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 118px;
    height: 100%;
    background: var(--cs-ivory);
    border: 1px solid var(--cs-card-border);
    border-radius: 17px;
    padding: 15px 16px;
    box-shadow: var(--cs-shadow);
    transition: transform var(--cs-transition), box-shadow var(--cs-transition);
}

body.expert-dashboard .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(4, 20, 43, 0.08);
}

body.expert-dashboard .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    margin-bottom: 0;
}

body.expert-dashboard .stat-icon-gray {
    background: rgba(107, 114, 128, 0.14);
    color: #5b6470;
}

body.expert-dashboard .stat-icon-orange {
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
}

body.expert-dashboard .stat-icon-green {
    background: rgba(25, 135, 84, 0.14);
    color: var(--cs-success);
}

body.expert-dashboard .stat-icon-blue {
    background: rgba(22, 119, 255, 0.14);
    color: #1677ff;
}

body.expert-dashboard .stat-icon-gold {
    background: rgba(214, 175, 120, 0.24);
    color: var(--cs-gold-deep);
}

body.expert-dashboard .stat-icon-pink {
    background: rgba(236, 72, 153, 0.14);
    color: #db2777;
}

body.expert-dashboard .stat-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

body.expert-dashboard .stat-value {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--cs-navy);
    margin: 0;
    padding: 0;
}

body.expert-dashboard .stat-title {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--cs-navy);
    line-height: 1.2;
    margin: 0;
}

body.expert-dashboard .stat-card:nth-child(2) .stat-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.dashboard-panel {
    background: var(--cs-ivory);
    border-radius: 17px;
    box-shadow: var(--cs-shadow);
    padding: 20px;
}

.panel-title {
    font-family: var(--cs-display);
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 4px;
}

.panel-subtitle {
    color: var(--cs-muted);
    font-size: 13px;
    margin-bottom: 14px;
}

.panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 14px;
    border-radius: 14px;
    background: var(--cs-cream);
    text-align: center;
    color: var(--cs-muted);
    font-size: 13px;
}

.panel-empty i {
    font-size: 22px;
    color: var(--cs-gold-deep);
    opacity: 0.85;
}

body.expert-dashboard .quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

body.expert-dashboard .quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--cs-cream);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--cs-navy);
    transition: background var(--cs-transition), transform var(--cs-transition);
}

body.expert-dashboard .quick-action:hover {
    background: #efe8dc;
    transform: translateY(-1px);
}

body.expert-dashboard .quick-action i {
    color: var(--cs-gold-deep);
    width: 18px;
    text-align: center;
}

@media (min-width: 768px) {
    body.expert-dashboard .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.expert-dashboard .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    body.expert-dashboard .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .expert-sidebar {
        transform: translateX(-100%);
    }

    .expert-sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .expert-topbar {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .expert-content {
        padding: 16px;
    }

    body.expert-dashboard .expert-content {
        padding: 20px 16px 28px;
    }

    .dashboard-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard-name {
        font-size: 28px;
    }

    .dashboard-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-profile-chip {
        flex: 1 1 auto;
    }

    .dashboard-toolbar-actions {
        width: 100%;
        margin-left: 0;
    }

    body.expert-dashboard .stat-value {
        font-size: 16px;
    }

    body.expert-dashboard .stat-title {
        font-size: 14px;
    }
}
