/* Dashboard Styles - Patient Dashboard (The Hub) */

.premium-dashboard {
    background: var(--surface-base);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ========== Premium / impressive design pass ========== */
.premium-dashboard {
    background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(245, 200, 106, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--surface-base) 0%, rgba(8, 8, 14, 0.98) 100%);
}

/* ========== LIGHT THEME – exact match to premium reference (clean + gold) ========== */
[data-theme="light"] .premium-dashboard {
    background: var(--surface-base);
}

[data-theme="light"] .start-assessment-card {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    color: #FFFFFF;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}

[data-theme="light"] .start-assessment-card::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

[data-theme="light"] .start-assessment-title,
[data-theme="light"] .start-assessment-subtitle,
[data-theme="light"] .start-assessment-card .start-assessment-desc {
    color: #FFFFFF;
}

[data-theme="light"] .dashboard-stat-card {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    box-shadow:
        0 4px 20px rgba(160, 120, 64, 0.1),
        0 1px 4px rgba(160, 120, 64, 0.06);
}

[data-theme="light"] .dashboard-stat-card::before {
    background: linear-gradient(90deg, transparent, rgba(200, 169, 110, 0.35), transparent);
    opacity: 1;
}

[data-theme="light"] .dashboard-stat-card:hover {
    border-color: var(--gold-border);
    box-shadow:
        0 8px 32px rgba(160, 120, 64, 0.16),
        0 2px 8px rgba(160, 120, 64, 0.08),
        0 0 0 1px rgba(200, 169, 110, 0.15) inset;
    transform: translateY(-3px);
}

[data-theme="light"] .case-list-item {
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .case-list-item:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .cases-summary-section {
    background: var(--surface-card);
    border-color: var(--border-subtle);
}

[data-theme="light"] .cases-summary-stats {
    border-bottom-color: var(--border-subtle);
}

/* Overview hero (Start Injury Assessment) – light theme: gold card, white text, dark CTA button */
[data-theme="light"] .overview-hero {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}

[data-theme="light"] .overview-hero::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}

[data-theme="light"] .overview-hero-title,
[data-theme="light"] .overview-hero-desc {
    color: #FFFFFF;
}

[data-theme="light"] .overview-hero-icon-wrap {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .overview-hero-icon {
    color: #FFFFFF;
}

[data-theme="light"] .overview-hero-cta {
    background: rgba(26, 26, 26, 0.95);
    color: #FFFFFF;
}

[data-theme="light"] .overview-hero-cta:hover {
    background: #1A1A1A;
    color: #FFFFFF;
}

[data-theme="light"] .overview-score-bar {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .dashboard-tabs-wrap {
    border-bottom-color: var(--border-subtle);
}

/* Hero CTA – Start Injury Assessment: more impact */
.start-assessment-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #F5C86A 0%, #E8B84A 40%, #D4A84A 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 4px 24px rgba(245, 200, 106, 0.35);
}

.start-assessment-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.start-assessment-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.start-assessment-card .badge {
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.start-assessment-arrow {
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* AI Case Score – score as focal point */
.ai-score-card {
    position: relative;
    background: var(--surface-card);
    box-shadow: var(--shadow-lg);
}

.score-value-large {
    color: var(--text-primary);
    text-shadow: 0 0 32px rgba(245, 200, 106, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.25);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* My Cases – clear panel and strong CTA */
.cases-summary-section {
    background: var(--surface-hover);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    margin-top: 32px;
}

.cases-summary-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cases-summary-stats {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 20px;
}

.case-list-item {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.case-list-item:hover {
    border-color: rgba(245, 200, 106, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(245, 200, 106, 0.08);
}

.case-list-open-btn {
    background: linear-gradient(180deg, var(--gold-primary) 0%, #E8B84A 100%);
    color: var(--text-on-accent);
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245, 200, 106, 0.4);
}

.case-list-open-btn:hover {
    background: linear-gradient(180deg, #F5D078 0%, var(--gold-primary) 100%);
    box-shadow: 0 6px 20px rgba(245, 200, 106, 0.5);
    transform: translateY(-1px);
}

/* ========== Elegant overview (hero + score + cases) ========== */
.dashboard-overview-elegant .dashboard-overview-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.overview-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 36px 32px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(245, 200, 106, 0.95) 0%, rgba(212, 168, 74, 0.98) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overview-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.overview-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.overview-hero-inner {
    position: relative;
    z-index: 1;
}

.overview-hero-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(11, 11, 12, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.overview-hero-icon {
    width: 28px;
    height: 28px;
    color: var(--text-on-accent);
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.overview-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-on-accent);
    margin: 0 0 8px 0;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.overview-hero-desc {
    font-size: 0.95rem;
    color: rgba(11, 11, 12, 0.8);
    margin: 0 0 24px 0;
    line-height: 1.5;
    max-width: 320px;
}

.overview-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(11, 11, 12, 0.9);
    color: #F5C86A;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.overview-hero-cta:hover {
    background: var(--surface-base);
    transform: translateX(4px);
}

.overview-hero-cta-arrow {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.overview-score-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px 32px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.overview-score-card:hover {
    border-color: rgba(245, 200, 106, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.overview-score-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.overview-score-value-wrap {
    margin-bottom: 16px;
}

.overview-score-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.overview-score-max {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 4px;
}

.overview-score-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 16px;
}

.overview-score-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--gold-primary), #E8B84A);
    transition: width 0.5s ease;
}

.overview-score-injury {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

/* Dashboard stats boxes (Total Cases, Active, Avg Score) */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

/* Premium stat cards: big, elegant dashboard-style boxes with icons; full-width row */
.dashboard-stats-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    width: 100%;
}

@media (max-width: 900px) {
    .dashboard-stats-premium {
        grid-template-columns: 1fr;
    }
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    padding: 32px 28px 28px;
    min-height: 180px;
    min-width: 0;
    /* allow shrink in grid */
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
    .dashboard-stats-premium .dashboard-stat-card {
        min-width: 220px;
    }
}

.dashboard-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 200, 106, 0.15), transparent);
    opacity: 0.6;
}

.dashboard-stat-card:hover {
    border-color: rgba(245, 200, 106, 0.2);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(245, 200, 106, 0.1) inset,
        0 0 40px rgba(245, 200, 106, 0.06);
    transform: translateY(-2px);
}

.dashboard-stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.dashboard-stat-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-stat-icon-cases {
    background: linear-gradient(135deg, rgba(245, 200, 106, 0.18) 0%, rgba(212, 168, 85, 0.12) 100%);
    color: var(--gold-primary);
    box-shadow: 0 4px 20px rgba(245, 200, 106, 0.15);
}

.dashboard-stat-icon-active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.12) 100%);
    color: #81c784;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.12);
}

.dashboard-stat-icon-score {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(245, 200, 106, 0.12) 100%);
    color: #ffc107;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.15);
}

.dashboard-stat-icon-closed {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.2) 0%, rgba(20, 184, 166, 0.12) 100%);
    color: #2dd4bf;
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.15);
}

.dashboard-stat-clickable {
    cursor: pointer;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-stat-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.dashboard-stat-card .dashboard-stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 0 0 40px rgba(245, 200, 106, 0.06);
}

.dashboard-stat-card .dashboard-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    opacity: 0.95;
}

/* Legacy .dashboard-stat-box (if used elsewhere) */
.dashboard-stat-box {
    background: var(--surface-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.dashboard-stat-box:hover {
    border-color: rgba(245, 200, 106, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(245, 200, 106, 0.08) inset;
}

.dashboard-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 10px;
    text-shadow: 0 0 24px rgba(245, 200, 106, 0.08);
}

.dashboard-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

/* Start Assessment card: always on next line below stats, full width */
.overview-hero-bottom {
    margin-top: 24px;
    width: 100%;
}

/* Ensure stats row and hero are on separate lines (override any desktop grid) */
.dashboard-overview-elegant.dashboard-content-stats-first .dashboard-overview-grid,
.dashboard-overview-elegant:has(.dashboard-stats-premium) .dashboard-overview-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
}

.dashboard-overview-elegant.dashboard-content-stats-first,
.dashboard-overview-elegant:has(.dashboard-stats-premium) {
    display: flex !important;
    flex-direction: column !important;
    max-width: 100%;
}

/* Case listing page – premium & elegant */
.case-listing-page {
    padding: 24px 32px 40px;
}

.case-listing-premium .case-listing-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.case-listing-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 200, 106, 0.18) 0%, rgba(212, 168, 85, 0.1) 100%);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(245, 200, 106, 0.12);
}

.case-listing-header-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.case-listing-header-text {
    min-width: 0;
}

.case-listing-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.case-listing-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.case-listing-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.case-filter-tab {
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--surface-hover);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.case-filter-tab.active {
    background: var(--gold-bg-subtle);
    border-color: var(--gold-border-hover);
    color: var(--gold-primary);
}

.case-listing-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 0 0 0;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
}

.case-listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 200, 106, 0.2), transparent);
    opacity: 0.8;
}

.case-listing-card:hover {
    border-color: rgba(245, 200, 106, 0.22);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(245, 200, 106, 0.08) inset;
    transform: translateY(-2px);
}

.case-listing-card-accent {
    width: 4px;
    align-self: stretch;
    background: linear-gradient(180deg, var(--gold-primary), rgba(245, 200, 106, 0.4));
    border-radius: 4px 0 0 4px;
    flex-shrink: 0;
}

.case-listing-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--surface-hover);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 24px 0 24px 8px;
}

.case-listing-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.case-listing-card-body {
    flex: 1;
    min-width: 0;
    padding: 24px 0;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.case-listing-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.case-listing-card-id {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.case-listing-card-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-on-accent);
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, #E8B84A 100%);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(245, 200, 106, 0.3);
}

.case-listing-card-score-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.case-listing-card-score {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.case-listing-card-score-max {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.case-listing-card-firms {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: -6px;
}

.case-listing-firms-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}

.case-listing-firm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-listing-firm-chip {
    font-size: 0.78rem;
    color: var(--text-primary);
    background: var(--surface-hover);
    border: 1px solid var(--border-card);
    border-radius: 999px;
    padding: 5px 10px;
    line-height: 1.2;
}

.case-listing-firms-empty {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.case-listing-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 24px 28px 24px 0;
}

.case-listing-card-btn {
    padding: 12px 22px;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.02em;
}

.case-listing-card-btn-detail {
    background: var(--surface-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}

.case-listing-card-btn-detail:hover {
    background: var(--surface-elevated);
    border-color: var(--gold-border);
}

.case-listing-card-btn-chat {
    background: linear-gradient(180deg, var(--gold-primary) 0%, #E8B84A 100%);
    color: var(--text-on-accent);
    box-shadow: 0 4px 18px rgba(245, 200, 106, 0.4);
}

.case-listing-card-btn-chat:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(245, 200, 106, 0.5);
}

@media (max-width: 640px) {
    .case-listing-card {
        flex-wrap: wrap;
    }

    .case-listing-card-body {
        padding-left: 8px;
    }

    .case-listing-card-actions {
        width: 100%;
        padding: 0 28px 24px 88px;
        justify-content: flex-start;
    }
}

.case-listing-empty {
    text-align: center;
    padding: 56px 32px;
    background: var(--surface-card);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 28px;
}

.case-listing-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    color: var(--text-muted);
    opacity: 0.8;
}

.case-listing-empty-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.case-listing-empty-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.case-listing-empty-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 28px 0;
    line-height: 1.5;
}

.case-listing-empty-cta {
    padding: 16px 32px;
    background: linear-gradient(180deg, var(--gold-primary) 0%, #E8B84A 100%);
    color: var(--text-on-accent);
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(245, 200, 106, 0.4);
    letter-spacing: 0.02em;
}

.case-listing-empty-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245, 200, 106, 0.5);
}

.case-listing-loading {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.case-listing-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: case-listing-spin 0.8s linear infinite;
}

@keyframes case-listing-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Case detail page (Overview/Treatment/Documents for one case) */
.case-detail-page {
    padding: 0 0 24px;
}

.case-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.case-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.case-detail-back svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.case-detail-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 200, 106, 0.3);
    color: var(--gold-primary);
}

.case-detail-header-main {
    flex: 1;
    min-width: 0;
}

.case-detail-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.case-detail-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.case-detail-open-chat {
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(180deg, var(--gold-primary) 0%, #E8B84A 100%);
    color: var(--text-on-accent);
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 200, 106, 0.35);
}

.case-detail-open-chat:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 200, 106, 0.45);
}

.case-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.case-detail-open-chat-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.case-detail-open-chat-secondary:hover {
    border-color: rgba(245, 200, 106, 0.35);
    box-shadow: none;
}

.overview-cases-panel {
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 28px 32px;
}

.overview-cases-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-cases-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.overview-cases-summary {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.overview-cases-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overview-case-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.overview-case-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 200, 106, 0.25);
    transform: translateY(-1px);
}

.overview-case-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.overview-case-id {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.overview-case-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-primary);
    padding: 4px 10px;
    background: rgba(245, 200, 106, 0.12);
    border-radius: 8px;
}

.overview-case-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.overview-case-score-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.overview-case-score-max {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.overview-case-action {
    padding: 10px 20px;
    background: linear-gradient(180deg, var(--gold-primary) 0%, #E8B84A 100%);
    color: var(--text-on-accent);
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 200, 106, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-case-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 200, 106, 0.45);
}

/* Ghost variant — for secondary actions like "Summary" */
.overview-case-action-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.overview-case-action-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 200, 106, 0.3);
    color: var(--gold-primary);
    transform: translateY(-1px);
    box-shadow: none;
}

/* Status badge overrides */
.overview-case-status.status-closed {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.1);
}

.overview-case-status.status-active {
    color: var(--gold-primary);
    background: rgba(245, 200, 106, 0.12);
}

.overview-cases-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 12px 0 0 0;
}

/* Desktop layout: sidebar + main (hidden on mobile) */
.dashboard-desktop-layout {
    display: none;
}

.dashboard-main-content {
    display: none;
}

.dashboard-mobile-content {
    display: block;
}

/* App shell: one layout for all; on mobile show top bar + main content (no sidebar/desktop header) */
.app-shell .dashboard-top-bar-mobile {
    display: block;
}

@media (max-width: 1023px) {
    .app-shell .dashboard-desktop-layout {
        display: flex;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .app-shell .dashboard-sidebar {
        display: none !important;
    }

    .app-shell .dashboard-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .app-shell .dashboard-main-header {
        display: none !important;
    }

    .app-shell .dashboard-main-content.shell-content {
        display: block !important;
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px 24px;
    }
}

/* Overview grid: assessment + score cards */
.dashboard-overview-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Recent Activity */
/* My Cases – summary and list (no direct chat; chat only via case) */
.cases-summary-section {
    margin-top: 28px;
}

.cases-summary-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.cases-summary-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.cases-summary-count {
    font-weight: 600;
    color: var(--text-primary);
}

.cases-summary-avg strong {
    color: var(--gold-primary);
}

.case-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--surface-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.case-list-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.case-list-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    min-width: 0;
}

.case-list-number {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.case-list-status {
    font-size: 12px;
    color: var(--gold-primary);
    font-weight: 500;
}

.case-list-score {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.case-list-score-max {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.case-list-injury {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-list-open-btn {
    flex-shrink: 0;
    background: rgba(245, 200, 106, 0.18);
    color: var(--gold-primary);
    border: 1px solid rgba(245, 200, 106, 0.4);
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.case-list-open-btn:hover {
    background: rgba(245, 200, 106, 0.28);
    border-color: rgba(245, 200, 106, 0.55);
}

.cases-empty-msg {
    font-size: 14px;
    color: var(--text-muted);
    margin: 12px 0 0 0;
}

/* Header */
.dashboard-header {
    background: var(--surface-base);
    padding: 20px 20px 12px;
    text-align: center;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.status-active {
    color: var(--gold-primary);
    font-weight: 600;
}

.status-closed {
    color: #2dd4bf;
    font-weight: 600;
}

.case-view-page {
    padding: 0 0 24px;
}

.case-view-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.case-view-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
}

.case-view-back svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.case-view-head-main {
    min-width: 0;
}

.case-view-title {
    margin: 0 0 4px;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 800;
}

.case-view-subtitle {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-view-readonly {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 10px;
}

.case-view-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.case-view-hero {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 1fr);
    gap: 14px;
}

.case-view-hero-score {
    background: radial-gradient(circle at top right, rgba(245, 200, 106, 0.22), rgba(245, 200, 106, 0.05) 42%, rgba(14, 17, 24, 0.78) 78%);
    border: 1px solid rgba(245, 200, 106, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.28);
    border-radius: 14px;
    padding: 18px;
}

.case-view-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.case-view-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    min-height: 118px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.case-view-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 200, 106, 0.35);
}

.case-view-kpi i {
    display: block;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    opacity: 0.85;
    margin-bottom: 4px;
}

.case-view-kpi span {
    display: block;
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.1;
}

.case-view-kpi em {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-style: normal;
}

.case-view-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.case-view-tab {
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.case-view-tab.active {
    border-color: rgba(245, 200, 106, 0.4);
    background: linear-gradient(180deg, rgba(245, 200, 106, 0.2), rgba(245, 200, 106, 0.1));
    color: var(--gold-primary);
    box-shadow: 0 4px 14px rgba(245, 200, 106, 0.12);
}

.case-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.case-view-card {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.case-view-card:hover {
    transform: translateY(-1px);
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
}

.case-view-card-wide {
    grid-column: 1 / -1;
}

.case-view-card-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.case-view-score {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.case-view-score span {
    font-size: 16px;
    color: var(--text-muted);
    margin-left: 4px;
}

.case-view-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.case-view-field {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.case-view-field:last-child {
    border-bottom: none;
}

.case-view-field span {
    color: var(--text-muted);
    font-size: 12px;
}

.case-view-field strong {
    color: var(--text-primary);
    font-size: 12px;
    text-align: right;
}

.case-view-empty {
    color: var(--text-muted);
    font-size: 12px;
}

.case-view-pain-list,
.case-view-phases,
.case-view-doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.case-view-pain-row,
.case-view-phase {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.case-view-pain-row {
    grid-template-columns: 1fr auto;
}

.case-view-pain-row span,
.case-view-phase span {
    color: var(--text-muted);
    font-size: 12px;
}

.case-view-pain-row strong {
    color: var(--gold-primary);
    font-size: 12px;
}

.case-view-pain-row strong.pain-high {
    color: #fb7185;
}

.case-view-pain-row strong.pain-medium {
    color: #f5c86a;
}

.case-view-pain-row strong.pain-low {
    color: #34d399;
}

.case-view-lawyer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.case-view-lawyer-card {
    background: linear-gradient(160deg, rgba(245, 200, 106, 0.1), rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.case-view-lawyer-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 200, 106, 0.34);
}

.case-view-lawyer-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-view-lawyer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(245, 200, 106, 0.3), rgba(245, 200, 106, 0.15));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #161922;
    font-weight: 800;
    font-size: 14px;
}

.case-view-lawyer-head {
    min-width: 0;
}

.case-view-lawyer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-view-lawyer-firm {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-view-lawyer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lawyer-tag {
    font-size: 11px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px 8px;
}

.case-view-lawyer-specialty {
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    line-height: 1.4;
}

.case-view-lawyer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.case-view-doc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.case-view-doc-name {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.case-view-doc-meta {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 2px;
}

.case-view-doc-btn {
    border: 1px solid rgba(245, 200, 106, 0.35);
    background: rgba(245, 200, 106, 0.14);
    color: var(--gold-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 10px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .case-view-hero {
        grid-template-columns: 1fr;
    }
}

/* Navigation Tabs */
.dashboard-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 0 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dashboard-tabs::-webkit-scrollbar {
    display: none;
}

@media (max-width: 767px) {
    .dashboard-tabs {
        padding: 0 12px 12px;
        gap: 6px;
    }
}

.tab-btn {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 48px;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
}

.tab-label {
    display: none;
    /* Show on desktop only */
}

.tab-btn.active {
    background: var(--gold-primary);
    color: var(--text-on-accent);
    box-shadow: 0 2px 8px rgba(245, 200, 106, 0.3);
}

.tab-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.tab-btn.active .tab-icon {
    stroke: var(--text-on-accent);
    color: var(--text-on-accent);
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger-menu {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.notification-bell {
    position: relative;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
}

.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    border: 2px solid var(--surface-card);
}

/* Dashboard Content */
.dashboard-content {
    padding: 20px;
    max-width: 600px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .dashboard-content {
        padding: 16px;
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .dashboard-content {
        max-width: 600px;
    }
}

/* Start Assessment Card */
.start-assessment-card {
    background: linear-gradient(135deg, #F5C86A 0%, #D4C5A9 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.start-assessment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.assessment-icon-square {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assessment-icon-square svg {
    width: 28px;
    height: 28px;
}

.assessment-content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.assessment-text-section {
    flex: 1;
    min-width: 0;
    margin-bottom: 8px;
}

.start-assessment-title {
    font-size: 20px;
    font-weight: 700;
    color: #2C2C2E;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.start-assessment-subtitle {
    font-size: 14px;
    color: #5A5A5C;
    margin: 0 0 12px 0;
    font-weight: 500;
    line-height: 1.4;
}

.assessment-badges-section {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Badge styles for Start Assessment Card */
.start-assessment-card .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.start-assessment-card .badge-ai-powered {
    background: #F5C86A;
    box-shadow: 0 2px 8px rgba(245, 200, 106, 0.4);
}

.start-assessment-card .badge-voice-enabled {
    background: #6B6B6D;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.start-assessment-card .badge-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.start-assessment-arrow {
    font-size: 24px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    align-self: center;
    margin-left: auto;
}

/* AI Case Score Card */
.ai-score-card {
    background: var(--surface-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.score-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.score-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.score-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.score-badge-small {
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--gold-primary);
    color: var(--text-on-accent);
    font-size: 14px;
    font-weight: 700;
}

.score-value-large {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin: 0 0 16px 0;
    letter-spacing: -0.03em;
}

.score-max {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 4px;
}

.score-injury-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.injury-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.injury-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

/* Welcome Video Card (HeyGen) */
.welcome-video-card {
    background: radial-gradient(circle at top left, rgba(245, 200, 106, 0.18) 0%, rgba(15, 23, 42, 0.95) 40%, rgba(15, 23, 42, 1) 100%);
    border-radius: 18px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(245, 200, 106, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.welcome-video-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.welcome-video-body {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-base);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.welcome-video-aspect {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(circle at top left,
            rgba(15, 23, 42, 0.9) 0%,
            rgba(0, 0, 0, 1) 60%);
}

.welcome-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.welcome-video-play-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(245, 200, 106, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-video-play-button span {
    font-size: 28px;
    color: var(--text-on-accent);
    margin-left: 2px;
}

.welcome-video-aspect:hover .welcome-video-play-button {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
}

.welcome-video-overlay-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    max-width: 260px;
}

.welcome-video-player {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
    outline: none;
    background-color: var(--surface-base);
}

.welcome-video-placeholder {
    padding: 14px 12px 4px;
}

.welcome-video-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Documents Placeholder */
.documents-placeholder {
    padding: 60px 20px;
    text-align: center;
}

.documents-placeholder-text {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.score-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.score-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.score-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

.detail-value.gold {
    color: var(--gold-primary);
}

/* Treatment Plan Card */
.treatment-plan-card {
    background: var(--surface-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.treatment-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.treatment-plan-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.treatment-icon {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 2;
}

.treatment-plan-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ai-generated-badge {
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(245, 200, 106, 0.15);
    color: var(--gold-primary);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(245, 200, 106, 0.3);
}

.treatment-progress-section {
    margin-top: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-months {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-metrics {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.metric-item {
    flex: 1;
    text-align: center;
}

.metric-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.metric-value.gold {
    color: var(--gold-primary);
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Treatment Cost Card */
.treatment-cost-card {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
}

.cost-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cost-icon {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-on-accent);
}

.cost-value {
    flex: 1;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.cost-arrow {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* Treatment Phases Card */
.treatment-phases-card {
    background: var(--surface-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.phases-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.phases-icon {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 2;
}

.phases-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.phase-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.phase-item:last-child {
    border-bottom: none;
}

.phase-period {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.phase-cost {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-primary);
}

.phase-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-primary);
    position: absolute;
    right: 0;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-card);
    border-top: 1px solid var(--border-card);
    padding: 12px 0;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .bottom-nav {
        padding: 10px 4px;
    }

    .nav-item {
        padding: 6px 8px;
        max-width: none;
        min-width: 0;
    }

    .nav-icon {
        width: 20px;
        height: 20px;
    }

    .nav-label {
        font-size: 11px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 100px;
}

.nav-item:hover {
    background: var(--surface-hover);
}

.nav-item.active {
    background: var(--gold-primary);
}

.nav-icon {
    width: 24px;
    height: 24px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
}

.nav-item.active .nav-icon {
    stroke: var(--text-on-accent);
    color: var(--text-on-accent);
}

.nav-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-item.active .nav-label {
    color: var(--text-on-accent);
    font-weight: 600;
}

/* Ensure Chat is always visible in main bottom nav (dashboard, activity, profile) */
.bottom-nav .nav-item-chat {
    display: flex !important;
    visibility: visible !important;
}

/* Desktop nav: hidden on mobile, shown in top bar on desktop */
.desktop-nav {
    display: none;
}

.dashboard-top-bar {
    display: block;
}

/* Section 1: Case Health (Hero) */
.case-health-section {
    background: var(--surface-card);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.case-health-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.circular-gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.circular-gauge {
    width: 200px;
    height: 200px;
    position: relative;
    margin-bottom: 16px;
}

.gauge-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
}

.gauge-bg {
    fill: none;
    stroke: var(--border-card);
    stroke-width: 12;
}

.gauge-fill {
    fill: none;
    stroke: url(#gaugeGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    transition: stroke-dashoffset 1s ease;
    transform: rotate(-90deg);
    transform-origin: center;
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-score {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
}

.gauge-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-status {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 8px;
}

.case-value {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Section 2: The Team (Horizontal Scroll) */
.team-section {
    margin-bottom: 24px;
}

.team-section h2 {
    margin-bottom: 16px;
}

.team-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.team-scroll::-webkit-scrollbar {
    height: 4px;
}

.team-card {
    min-width: 200px;
    background: var(--surface-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.team-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.team-role {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.team-action-btn {
    width: 100%;
    padding: 8px 16px;
    font-size: 14px;
}

/* Section 3: Action Grid (2x2) */
.action-grid-section {
    margin-bottom: 24px;
}

.action-grid-section h2 {
    margin-bottom: 16px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.action-card {
    background: var(--surface-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-card:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.action-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Section 4: Treatment Roadmap */
.treatment-roadmap-section {
    margin-bottom: 24px;
}

.treatment-roadmap-section h2 {
    margin-bottom: 16px;
}

.timeline {
    background: var(--surface-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-node {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    position: relative;
}

.timeline-node:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 48px;
    width: 2px;
    height: calc(100% - 16px);
    background: rgba(255, 255, 255, 0.1);
}

.timeline-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-indicator.checked {
    background: var(--success);
    color: white;
}

.timeline-indicator.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-indicator.pending {
    background: var(--surface-hover);
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Amazon Banner - Exact Match to Design */
.amazon-banner {
    background: #fbbf24;
    /* Solid yellow, not gradient */
    color: #000;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.amazon-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.amazon-logo {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.amazon-main-text {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    line-height: 1.4;
}

.amazon-main-text strong {
    font-weight: 700;
}

.amazon-terms {
    font-size: 11px;
    color: #000;
    opacity: 0.8;
    line-height: 1.3;
}

/* Role Selection Cards - Premium Enhanced */
.role-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .role-selection {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 600px;
        margin: 40px auto;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .role-selection {
        grid-template-columns: repeat(4, 1fr);
        max-width: 900px;
        gap: 20px;
        margin: 48px auto;
    }
}

.role-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 0 0px rgba(255, 255, 255, 0.05) inset;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .role-card {
        padding: 28px 20px;
        min-height: 140px;
        gap: 12px;
    }
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(245, 200, 106, 0.6) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.role-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(245, 200, 106, 0.1) 0%,
            transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.role-card:hover {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(245, 200, 106, 0.2) inset,
        0 0 30px rgba(245, 200, 106, 0.15);
    border-color: rgba(245, 200, 106, 0.3);
}

.role-card:hover::before {
    opacity: 1;
}

.role-card:hover::after {
    opacity: 1;
}

.role-card:active {
    transform: translateY(-3px) scale(1.01);
}

.role-icon {
    font-size: 42px;
    margin-bottom: 10px;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

/* Specific icon colors with premium gradients */
.role-card:nth-child(1) .role-icon {
    /* Provider - Blue/Teal medical */
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.4));
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-card:nth-child(2) .role-icon {
    /* Union - Orange/Yellow hard hat */
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.4));
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-card:nth-child(3) .role-icon {
    /* Funder - Gold/Yellow money bag */
    filter: drop-shadow(0 0 12px rgba(245, 200, 106, 0.4));
    background: linear-gradient(135deg, #f5c86a 0%, #d4a855 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-card:nth-child(4) .role-icon {
    /* Admin - Light blue/grey gear */
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-card:hover .role-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 16px rgba(245, 200, 106, 0.5));
}

.role-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.role-card:hover .role-title {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(245, 200, 106, 0.3);
}

.role-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.role-card:hover .role-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Statistics Display - Premium Enhanced */
.stats-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .stats-display {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 32px 24px;
        max-width: 700px;
        margin: 40px auto;
    }
}

@media (min-width: 1024px) {
    .stats-display {
        gap: 32px;
        padding: 40px 32px;
        max-width: 800px;
    }
}

.stat-item {
    text-align: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 12px;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .stat-item {
        padding: 16px;
    }
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center,
            rgba(245, 200, 106, 0.1) 0%,
            transparent 70%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f5c86a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.3));
    animation: statPulse 3s ease-in-out infinite;
}

@keyframes statPulse {

    0%,
    100% {
        filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.3));
    }

    50% {
        filter: drop-shadow(0 4px 16px rgba(251, 191, 36, 0.5));
    }
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-top: 8px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 48px;
    }

    .stat-label {
        font-size: 12px;
    }
}

/* Start Assessment Card - Premium Enhanced (Landing Page) */
.landing-screen .start-assessment-card {
    background: linear-gradient(90deg,
            #C9B76F 0%,
            #BAAD7C 55%,
            #BFC3C6 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 32px 0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.landing-screen .start-assessment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.landing-screen .assessment-icon-square {
    width: 48px;
    height: 48px;
    background: #E6D27C;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.landing-screen .assessment-icon-square svg {
    width: 28px;
    height: 28px;
}

.landing-screen .start-assessment-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-align: left;
}

.landing-screen .start-assessment-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

.landing-screen .assessment-content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    align-items: flex-start;
}

.landing-screen .assessment-text-section {
    flex: 0 0 auto;
    min-width: 0;
    margin-bottom: 0;
}

.landing-screen .assessment-badges-section {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: flex-start;
    flex: 0 0 auto;
}

.landing-screen .start-assessment-card .badge {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: auto;
    max-width: fit-content;
}

.landing-screen .start-assessment-card .badge-ai-powered {
    background: #0000008f;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.landing-screen .start-assessment-card .badge-voice-enabled {
    background: #0000008f;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.landing-screen .start-assessment-card .badge-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.9;
}

.landing-screen .start-assessment-arrow {
    font-size: 24px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    align-self: center;
    margin-left: auto;
}

/* Keep existing styles for dashboard, but override for landing */
.landing-screen .assessment-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-width: 0;
}

.landing-screen .assessment-text-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    margin-bottom: 8px;
}

.start-assessment-title,
.start-assessment-subtitle {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Badge section - vertical stack for landing */
.landing-screen .assessment-badges-section {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .start-assessment-card {
        padding: 32px 28px;
        margin: 40px auto;
        max-width: 700px;
        gap: 24px;
    }

    .assessment-content-wrapper {
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .start-assessment-card {
        padding: 40px 32px;
        margin: 48px auto;
        max-width: 800px;
    }
}

@media (min-width: 1024px) {
    .start-assessment-card {
        padding: 40px 32px;
        margin: 48px auto;
        max-width: 800px;
    }
}

.start-assessment-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(251, 191, 36, 0.2) 0%,
            transparent 70%);
    pointer-events: none;
    animation: cardGlow 4s ease-in-out infinite;
}

@keyframes cardGlow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.start-assessment-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(251, 191, 36, 0.8) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Override hover for landing screen */
.landing-screen .start-assessment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.landing-screen .start-assessment-card:hover::after {
    opacity: 0;
    /* Disable the after pseudo-element for landing */
}

.landing-screen .start-assessment-card:active {
    transform: translateY(0);
}

/* Email Collection Card Styles */
.email-collection-card {
    background: var(--surface-card);
    border-radius: 16px;
    padding: 32px 24px;
    margin: 32px 0;
    border: 1px solid var(--gold-border);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Desktop Email Collection Card Enhancement */
@media (min-width: 1024px) {
    .email-collection-card {
        max-width: 550px;
        margin: 32px auto;
        padding: 48px 56px;
    }

    .email-card-header {
        margin-bottom: 32px;
    }

    .email-card-title {
        font-size: 28px;
    }

    .email-card-subtitle {
        font-size: 16px;
    }

    .email-input {
        padding: 16px 20px;
        font-size: 16px;
    }

    .email-submit-btn {
        padding: 18px 32px;
        font-size: 17px;
    }
}

.email-collection-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--gold-bg-subtle) 0%, transparent 70%);
    pointer-events: none;
    animation: cardGlow 4s ease-in-out infinite;
}

.email-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.email-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
}

.email-icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: var(--text-on-accent);
    stroke-width: 2;
}

/* Logo image: remove circle, size logo, make white background blend (transparent effect) */
.email-icon-wrapper--logo {
    width: auto;
    height: auto;
    max-width: 200px;
    margin-bottom: 12px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.email-card-logo {
    display: block;
    max-height: 72px;
    width: auto;
    object-fit: contain;
    /* Makes white background blend with card background so it appears transparent */
    mix-blend-mode: multiply;
}

.email-icon-wrapper--logo .email-card-logo {
    max-height: 72px;
}

.email-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.email-card-title-small {
        font-size: 20px;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 8px 0;
        letter-spacing: -0.01em;
    }
.email-card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ========== Landing: Continue or new case – premium card ========== */
.landing-continue-card {
    position: relative;
    overflow: hidden;
    background: var(--surface-card);
    border: 1px solid var(--gold-border);
    box-shadow: var(--shadow-xl);
}

.landing-continue-card__glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(245, 200, 106, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.landing-continue-card__header {
    position: relative;
    z-index: 1;
}

.landing-continue-card__icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(145deg, rgba(245, 200, 106, 0.2) 0%, rgba(245, 200, 106, 0.08) 100%);
    border: 1px solid rgba(245, 200, 106, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-continue-card__icon {
    width: 28px;
    height: 28px;
    color: var(--gold-primary);
}

.landing-continue-card__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.landing-continue-card__subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.landing-continue-card__body {
    position: relative;
    z-index: 1;
    gap: 12px;
}

.landing-continue-card__list-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}

.landing-continue-case {
    display: block;
    padding: 16px 18px;
    background: var(--surface-hover);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.landing-continue-case:hover {
    background: var(--surface-elevated);
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
}

.landing-continue-case__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.landing-continue-case__num {
    font-size: 15px;
    font-weight: 700;
    color: #F5C86A;
    letter-spacing: 0.02em;
}

.landing-continue-case__step {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: capitalize;
}

.landing-continue-case__summary {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 8px 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landing-continue-case__action {
    font-size: 13px;
    font-weight: 600;
    color: rgba(245, 200, 106, 0.9);
}

.landing-continue-card__loading,
.landing-continue-card__empty {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.landing-continue-card__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 4px 0;
}

.landing-continue-card__divider::before,
.landing-continue-card__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.landing-continue-card__divider span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-continue-card__new-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 4px;
}

.landing-continue-card__new-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(245, 200, 106, 0.2);
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-input-wrapper {
    position: relative;
}

.email-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 2px solid var(--gold-border-hover);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.email-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 4px var(--gold-bg-subtle);
}

.email-input::placeholder {
    color: var(--input-placeholder);
}

.email-input.input-error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.email-input.input-success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.email-error-message {
    color: var(--error);
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.email-success-message {
    color: var(--success);
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.email-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: var(--text-on-accent);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.email-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-hover);
}

.email-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.email-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Voice record button – secondary outline style, theme-aware */
.voice-record-btn {
    background: var(--surface-hover) !important;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--gold-border) !important;
    box-shadow: none !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 600 !important;
    padding: 12px 18px !important;
}

.voice-record-btn:hover:not(:disabled) {
    background: var(--gold-bg-subtle) !important;
    border-color: var(--gold-border-hover) !important;
    color: var(--gold-dark, var(--gold-primary)) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm) !important;
}

/* Ghost/secondary submit button (e.g. "Go to Dashboard") */
.email-submit-btn--ghost {
    background: var(--surface-hover) !important;
    color: var(--text-secondary) !important;
    border: 1.5px solid var(--border-card) !important;
    box-shadow: none !important;
}

.email-submit-btn--ghost:hover:not(:disabled) {
    background: var(--gold-bg-subtle) !important;
    border-color: var(--gold-border) !important;
    color: var(--text-primary) !important;
    transform: translateY(-1px);
}

/* Recording indicator label */
.recording-indicator {
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: recording-pulse 1.2s ease-in-out infinite;
}

.recording-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    animation: recording-pulse 1.2s ease-in-out infinite;
}

/* Landing docs uploader */
.landing-docs-section {
    margin-top: -2px;
    margin-bottom: 6px;
}

.landing-docs-section.document-scan-screen.premium-document-scan {
    min-height: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
    display: block;
}

.landing-docs-section.document-scan-screen.premium-document-scan::before {
    display: none;
}

.landing-docs-section .document-scan-container {
    max-width: none;
    padding: 0;
    margin: 0;
}

.landing-docs-section .document-scan-scrollable {
    overflow: visible;
}

.landing-docs-section .doc-single-card {
    margin-bottom: 12px;
}

.landing-docs-section .doc-scan-documents-footer {
    margin-top: 0;
}

.landing-docs-section .documents-list {
    max-height: none;
    overflow-y: visible;
}

.landing-docs-section .document-name {
    max-width: 220px;
}

@media (max-width: 480px) {
    .landing-docs-section .document-name {
        max-width: 145px;
    }
}

@keyframes recording-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@media (min-width: 768px) {
    .email-collection-card {
        padding: 40px 32px;
        max-width: 500px;
        margin: 40px auto;
    }

        .email-card-title {
            font-size: 28px;
        }
        .email-card-title-small {
            font-size: 20px;
        }
    .email-card-subtitle {
        font-size: 15px;
    }
}

/* General styles - will be overridden by landing-screen specific styles */
.start-assessment-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .start-assessment-title {
        font-size: 22px;
    }

    .start-assessment-subtitle {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .start-assessment-title {
        font-size: 24px;
    }

    .start-assessment-subtitle {
        font-size: 16px;
    }
}

.start-assessment-badges {
    display: none;
    /* Hidden - using assessment-badges-section instead */
}

.assessment-badges-section {
    position: relative;
    z-index: 1;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.95);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4),
        0 0 0 1px rgba(251, 191, 36, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-block;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .badge {
        padding: 7px 14px;
        font-size: 11px;
    }
}

@media (min-width: 1024px) {
    .badge {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.badge:hover {
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.4) 0%,
            rgba(5, 150, 105, 0.35) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3),
        0 0 0 1px rgba(16, 185, 129, 0.2) inset;
    border-color: rgba(16, 185, 129, 0.6);
}

.start-assessment-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    font-weight: 700;
}

@media (min-width: 768px) {
    .start-assessment-arrow {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .start-assessment-arrow {
        font-size: 32px;
    }
}

.start-assessment-card:hover .start-assessment-arrow {
    transform: translateX(12px) scale(1.1);
    filter: drop-shadow(0 4px 16px rgba(251, 191, 36, 0.6));
}

.landing-screen .start-assessment-card:hover .start-assessment-arrow {
    transform: translateX(4px);
    filter: none;
}

/* Fix for circular gauge positioning */
.case-health-section .circular-gauge-container {
    position: relative;
}

.case-health-section .circular-gauge {
    position: relative;
    z-index: 1;
}

.case-health-section .gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* ========== Desktop / Web – premium layout and navigation ========== */
@media (min-width: 769px) {
    .premium-dashboard {
        padding-bottom: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: linear-gradient(180deg, var(--surface-base) 0%, rgba(8, 8, 14, 0.98) 100%);
    }

    [data-theme="light"] .premium-dashboard {
        background: var(--surface-base);
        background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(200, 169, 110, 0.08) 0%, transparent 50%);
    }

    /* Unified premium top bar: case info + section tabs + main nav */
    .dashboard-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        padding: 14px 28px 14px 32px;
        background: var(--surface-card);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-subtle);
        flex-shrink: 0;
        box-shadow: var(--shadow-sm);
    }

    .dashboard-top-bar .dashboard-header {
        padding: 0;
        text-align: left;
        flex-shrink: 0;
    }

    .dashboard-top-bar .dashboard-title {
        font-size: 1.35rem;
        font-weight: 700;
        margin: 0 0 2px 0;
        letter-spacing: -0.02em;
        color: var(--text-primary);
    }

    .dashboard-top-bar .dashboard-subtitle {
        font-size: 12px;
        color: var(--text-muted);
        font-weight: 500;
    }

    .dashboard-top-bar .status-active {
        color: var(--gold-primary);
        font-weight: 600;
    }

    /* Section tabs: centered in bar on desktop, with labels */
    .dashboard-top-bar .dashboard-tabs {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 0;
        border-bottom: none;
        flex: 1;
        min-width: 0;
        margin: 0 24px;
    }

    .tab-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        min-width: auto;
        width: auto;
        height: auto;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-muted);
        transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    }

    .tab-label {
        display: inline;
    }

    .tab-btn:hover {
        background: var(--surface-hover);
        color: var(--text-primary);
    }

    .tab-btn:hover:not(.active) {
        transform: translateY(-1px);
    }

    .tab-btn.active {
        background: var(--gold-bg-subtle);
        color: var(--gold-primary);
        box-shadow: 0 0 0 1px var(--gold-border);
    }

    .tab-btn.active .tab-icon {
        stroke: var(--gold-primary);
        color: var(--gold-primary);
    }

    .tab-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    /* Main app nav (Home, Chat, Activity, Profile) */
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }

    .desktop-nav-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        border-radius: 10px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
        border: 1px solid transparent;
    }

    .desktop-nav-item:hover {
        background: var(--surface-hover);
        color: var(--text-primary);
    }

    .desktop-nav-item.active {
        background: var(--gold-primary);
        color: var(--text-on-accent);
        font-weight: 600;
    }

    .desktop-nav-item.active .desktop-nav-icon {
        stroke: var(--text-on-accent);
    }

    .desktop-nav-icon {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
    }

    .bottom-nav {
        display: none !important;
    }

    /* Content area */
    .dashboard-content {
        flex: 1;
        max-width: 1100px;
        margin: 0 auto;
        width: 100%;
        padding: 32px 28px 40px;
    }

    /* Overview: two-column grid */
    .premium-dashboard .dashboard-content:has(.start-assessment-card) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: stretch;
    }

    /* Premium card styling */
    .start-assessment-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        border-radius: 20px;
        padding: 28px;
        background: var(--surface-card);
        border: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-lg);
    }

    .start-assessment-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
        border-color: var(--gold-border);
    }

    .start-assessment-card .badge {
        background: rgba(30, 58, 42, 0.9);
        color: rgba(167, 243, 208, 0.95);
        border: 1px solid rgba(52, 211, 153, 0.25);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
    }

    .ai-score-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
        border-radius: 20px;
        padding: 28px;
        border: 1px solid var(--border-card);
        background: var(--surface-card);
        box-shadow: var(--shadow-lg);
    }

    .ai-score-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-xl);
        border-color: var(--gold-border);
    }

    .score-badge-small {
        background: rgba(245, 200, 106, 0.15);
        color: var(--gold-primary);
        border: 1px solid rgba(245, 200, 106, 0.3);
        font-weight: 600;
    }

    /* Treatment tab grid */
    .premium-dashboard .dashboard-content:has(.treatment-plan-card) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: start;
    }

    .treatment-plan-card,
    .treatment-cost-card,
    .treatment-phases-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border-radius: 20px;
    }

    .treatment-plan-card:hover,
    .treatment-cost-card:hover,
    .treatment-phases-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    }

    .treatment-phases-card {
        grid-column: 1 / -1;
    }

    .document-item {
        transition: background 0.15s ease;
        border-radius: 12px;
    }

    .document-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* ========== Desktop with sidebar (1024px+) ========== */
@media (min-width: 1024px) {
    .dashboard-top-bar-mobile {
        display: none !important;
    }

    .dashboard-mobile-content {
        display: none !important;
    }

    .app-shell {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        /* prevent body/page scroll; inner content will scroll */
    }

    .dashboard-desktop-layout {
        display: flex;
        flex: 1;
        min-height: 100vh;
        overflow: hidden;
    }

    .dashboard-main-content {
        display: block;
        flex: 1;
        overflow-y: auto;
    }

    /* Left sidebar */
    .dashboard-sidebar {
        width: 260px;
        flex-shrink: 0;
        background: var(--surface-card);
        border-right: 1px solid var(--border-subtle);
        display: flex;
        flex-direction: column;
        padding: 24px 0;
        overflow-y: hidden;
        /* prevent sidebar from scrolling independently */
    }

    .sidebar-header {
        padding: 0 20px 20px;
        border-bottom: 1px solid var(--border-subtle);
        margin-bottom: 20px;
    }

    .sidebar-header .dashboard-title {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0 0 4px 0;
        color: var(--text-primary);
    }

    .sidebar-header .dashboard-subtitle {
        font-size: 12px;
        color: var(--text-muted);
        margin: 0;
    }

    .sidebar-user {
        padding: 0 20px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 16px;
    }

    .sidebar-avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--gold-primary);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
    }

    .sidebar-avatar-initials {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-on-accent);
    }

    .sidebar-user-name {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .sidebar-user-role {
        font-size: 12px;
        color: var(--text-muted);
        margin-top: 2px;
    }

    .sidebar-nav {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 0 12px;
    }

    .sidebar-nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 10px;
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        font-family: inherit;
    }

    .sidebar-nav-item:hover {
        background: var(--surface-hover);
        color: var(--text-primary);
    }

    .sidebar-nav-item.active {
        background: var(--gold-primary);
        color: var(--text-on-accent);
        font-weight: 600;
    }

    .sidebar-nav-icon {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        flex-shrink: 0;
    }

    .sidebar-nav-item.active .sidebar-nav-icon {
        stroke: var(--text-on-accent);
    }

    .sidebar-footer {
        padding: 16px 20px 0;
        border-top: 1px solid var(--border-subtle);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: auto;
        /* pin footer to bottom of sidebar */
    }

    .sidebar-dark-label {
        font-size: 13px;
        color: var(--text-muted);
    }

    .sidebar-dark-toggle {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: block;
    }

    .sidebar-dark-track {
        display: block;
        width: 44px;
        height: 24px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.12);
        position: relative;
        transition: background 0.2s ease;
    }

    .sidebar-dark-toggle.is-on .sidebar-dark-track {
        background: var(--gold-primary);
    }

    .sidebar-dark-thumb {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease;
    }

    .sidebar-dark-toggle.is-on .sidebar-dark-thumb {
        transform: translateX(20px);
    }

    /* Main area */
    .dashboard-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
        background: var(--surface-base);
    }

    .dashboard-main-header {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 28px 12px;
        border-bottom: 1px solid var(--border-subtle);
        background: var(--surface-card);
    }

    .main-header-tabs {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .main-tab-btn {
        padding: 10px 18px;
        border-radius: 10px;
        border: none;
        background: none;
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .main-tab-btn:hover {
        background: var(--surface-hover);
        color: var(--text-primary);
    }

    .main-tab-btn.active {
        background: var(--gold-bg-subtle);
        color: var(--gold-primary);
    }

    [data-theme="light"] .main-tab-btn.active {
        background: linear-gradient(135deg, #C8A040 0%, #B8860B 100%);
        color: #fff;
        font-weight: 700;
        box-shadow: 0 3px 12px rgba(180, 140, 70, 0.3);
    }

    [data-theme="light"] .main-tab-btn {
        color: var(--text-secondary);
    }

    [data-theme="light"] .main-tab-btn:hover {
        background: var(--gold-bg-subtle);
        color: var(--gold-dark);
    }

    .main-header-actions {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .main-header-icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: none;
        background: none;
        color: var(--text-muted);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .main-header-icon-btn:hover {
        background: rgba(255, 255, 255, 0.06);
        color: var(--text-primary);
    }

    [data-theme="light"] .main-header-icon-btn:hover {
        background: var(--surface-hover);
        color: var(--text-primary);
    }

    .main-header-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--gold-primary);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
    }

    .main-header-avatar-initials {
        font-size: 13px;
        font-weight: 700;
        color: var(--text-on-accent);
    }

    .dashboard-tabs-wrap {
        flex-shrink: 0;
        padding: 12px 28px 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .dashboard-tabs-wrap .dashboard-tabs {
        display: flex;
        gap: 4px;
        padding: 0;
        border: none;
    }

    .dashboard-tabs-wrap .tab-btn {
        padding: 10px 16px;
        min-width: auto;
        width: auto;
        height: auto;
    }

    /* Overview elegant: three-column layout (Hero | Score | My Cases) – only when not stats-first layout */
    .dashboard-main-content .dashboard-overview-elegant:not(.dashboard-content-stats-first) {
        display: grid;
        grid-template-columns: 1.1fr 1fr 1fr;
        gap: 28px;
        align-items: start;
    }

    .dashboard-main-content .dashboard-overview-elegant:not(.dashboard-content-stats-first) .dashboard-overview-grid {
        display: contents;
    }

    /* Stats-first dashboard: stats row then Start Assessment on next line, full width */
    .dashboard-main-content .dashboard-overview-elegant.dashboard-content-stats-first {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .dashboard-main-content .dashboard-overview-elegant.dashboard-content-stats-first .dashboard-overview-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .dashboard-main-content .dashboard-overview-elegant .overview-hero {
        min-height: 220px;
    }

    .dashboard-main-content .dashboard-overview-elegant .overview-score-card {
        min-height: 220px;
    }

    .dashboard-main-content .dashboard-overview-elegant .overview-cases-panel {
        position: sticky;
        top: 24px;
    }

    .dashboard-main-content .dashboard-content {
        max-width: none;
    }

    /* Sidebar premium touch */
    .dashboard-sidebar {
        background: var(--surface-card);
        box-shadow: var(--shadow-md);
    }

    .sidebar-nav-item.active {
        box-shadow: 0 2px 12px rgba(245, 200, 106, 0.25);
    }

    [data-theme="light"] .sidebar-nav-item.active {
        box-shadow: 0 1px 8px rgba(200, 169, 110, 0.3);
    }
}

/* ========== LIGHT THEME – Warm Cream Comprehensive Overrides ========== */

/* Landing screen: warm cream background glows instead of dark ones */
[data-theme="light"] .landing-screen {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(200, 169, 110, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(160, 120, 64, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(200, 169, 110, 0.05) 0%, transparent 50%);
}

/* Landing subtitle: warm dark text */
[data-theme="light"] .landing-subtitle {
    color: var(--text-secondary);
    text-shadow: none;
}

/* Score card: warm border and bg */
[data-theme="light"] .overview-score-card {
    background: var(--surface-card);
    border-color: var(--border-card);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .overview-score-card:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
}

/* Cases panel: ivory card */
[data-theme="light"] .overview-cases-panel {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

/* Overview case row */
[data-theme="light"] .overview-case-row {
    border-color: var(--border-subtle);
}

[data-theme="light"] .overview-case-row:hover {
    background: var(--surface-hover);
    border-color: var(--gold-border);
}

/* Bottom nav: warm cream tint */
[data-theme="light"] .bottom-nav {
    background: var(--surface-card);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -4px 16px rgba(160, 120, 64, 0.08);
}

[data-theme="light"] .nav-item {
    color: var(--text-muted);
}

[data-theme="light"] .nav-item.active {
    color: var(--gold-primary);
}

[data-theme="light"] .nav-label {
    color: currentColor;
}

/* Case listing cards: ivory with warm shadow */
[data-theme="light"] .case-listing-card {
    background: var(--surface-card);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .case-listing-card:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .case-listing-card::before {
    background: linear-gradient(90deg, transparent, rgba(200, 169, 110, 0.2), transparent);
}

/* Mobile top bar: warm card */
[data-theme="light"] .dashboard-top-bar {
    background: var(--surface-card);
    border-bottom-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

/* Case status badges */
[data-theme="light"] .status-active {
    color: var(--gold-dark);
}

[data-theme="light"] .status-closed {
    color: var(--text-muted);
}

/* Action buttons on case rows */
[data-theme="light"] .overview-case-action {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: var(--shadow-gold);
}

[data-theme="light"] .overview-case-action:hover {
    box-shadow: var(--shadow-gold-hover);
    transform: translateY(-1px);
}

[data-theme="light"] .overview-case-action-ghost {
    background: transparent;
    border: 1px solid var(--gold-border);
    color: var(--gold-dark);
    box-shadow: none;
}

[data-theme="light"] .overview-case-action-ghost:hover {
    background: var(--gold-bg-subtle);
    border-color: var(--gold-border-hover);
}

/* Case filter tabs */
[data-theme="light"] .case-filter-tab {
    background: var(--surface-card);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

[data-theme="light"] .case-filter-tab.active {
    background: var(--gold-bg-subtle);
    border-color: var(--gold-border-hover);
    color: var(--gold-dark);
}

/* Sidebar: warm ivory panel */
[data-theme="light"] .dashboard-sidebar {
    background: var(--surface-card);
    border-right: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .sidebar-nav-item {
    color: var(--text-secondary);
}

[data-theme="light"] .sidebar-nav-item:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

[data-theme="light"] .sidebar-nav-item.active {
    background: linear-gradient(135deg, #C8A040 0%, #B8860B 100%);
    color: #fff;
    box-shadow: 0 3px 14px rgba(180, 140, 70, 0.35);
    font-weight: 700;
}

[data-theme="light"] .sidebar-nav-item.active .sidebar-nav-icon {
    stroke: #fff;
}

[data-theme="light"] .sidebar-dark-label {
    color: var(--text-muted);
}

/* Dashboard main area: ivory bg */
[data-theme="light"] .dashboard-main {
    background: var(--surface-base);
}

[data-theme="light"] .dashboard-main-header {
    background: var(--surface-card);
    border-bottom-color: var(--border-subtle);
}

[data-theme="light"] .dashboard-tabs-wrap {
    border-bottom-color: var(--border-subtle);
    background: var(--surface-card);
}

/* Main tab buttons: underline style active */
[data-theme="light"] .main-tab-btn {
    color: var(--text-secondary);
}

[data-theme="light"] .main-tab-btn:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

/* Treatment cards */
[data-theme="light"] .treatment-plan-card,
[data-theme="light"] .treatment-cost-card,
[data-theme="light"] .treatment-phases-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

/* Document items */
[data-theme="light"] .document-item {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .document-item:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
}

/* Premium document scan: warm bg */
[data-theme="light"] .premium-document-scan {
    background: var(--surface-base);
    background-image:
        radial-gradient(circle at 80% 20%, rgba(200, 169, 110, 0.1) 0%, transparent 50%);
}

[data-theme="light"] .capture-card {
    background: var(--surface-card);
    border-color: var(--border-card);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .capture-card:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-gold);
}

[data-theme="light"] .premium-title {
    background: linear-gradient(135deg, #2C1F0E 0%, #A07840 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Chat/pain screen warm bg */
[data-theme="light"] .chat-screen,
[data-theme="light"] .pain-mapping-screen,
[data-theme="light"] .score-screen,
[data-theme="light"] .match-screen,
[data-theme="light"] .summary-screen,
[data-theme="light"] .dashboard-screen,
[data-theme="light"] .splash-screen {
    background: var(--surface-base);
}

/* Match screen and lawyer cards */
[data-theme="light"] .lawyer-card {
    background: var(--surface-card);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .lawyer-card:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
}

/* Input overrides for warm theme */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="email"],
[data-theme="light"] textarea {
    background: var(--input-bg);
    border-color: var(--border-card);
    color: var(--text-primary);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus {
    border-color: var(--gold-primary);
    background: var(--input-bg-focus);
}

/* Range slider track */
[data-theme="light"] input[type="range"] {
    background: rgba(160, 120, 64, 0.15);
}

/* Premium loader inner circle (dark interior) */
[data-theme="light"] .loader-logo-inner {
    background: #F2E9DA;
}