/* ==========================================================================
   Office Therapy & Workplace Wellness — Modern 3D Interactive Stylesheet
   Sleek 2x2 Hero Grid, Unified Responsive List, Glassmorphism, 3D Depth
   ========================================================================== */

:root {
    --color-liquid-abyss: #070D18;
    --color-liquid-deep: #0B132B;
    --color-liquid-kelp: #101B35;
    --color-liquid-mist: #F0F6FF;
    --color-platinum: #ffffff;
    --color-silver-mist: #94A3B8;
    --color-ash: #f2f2f2;
    --color-slate-deep: #707777;
    --color-lavender-phosphor: #BFDBFE;
    --color-bioluminescent-gradient: #2563EB;
    --color-aurora-gradient: #3B82F6;
    
    --card-bg: #101B35;
    --card-border: rgba(96, 165, 250, 0.16);
    --card-shadow: none;
    --card-hover-shadow: none;
    --radius-lg: 16px;
    --radius-md: 16px;
    --radius-sm: 6px;
}

[data-theme="dark"] {
    --card-bg: #101B35;
    --card-border: rgba(96, 165, 250, 0.16);
    --card-shadow: none;
    --card-hover-shadow: none;
}

/* --- Hero Banner (Auros Liquid Deep Recessed Well) --- */
.portal-hero, .wellness-hero {
    background: #0B132B;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 16px;
    padding: 26px 24px 22px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.portal-hero::after, .wellness-hero::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 220px;
    height: 220px;
    background: transparent 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

[dir="rtl"] .portal-hero::after, [dir="rtl"] .wellness-hero::after {
    left: auto;
    right: -50px;
}

.portal-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.portal-title-box h1 { color: #ffffff !important; opacity: 1 !important;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-title-box p {
    font-size: 14.5px;
    color: #94A3B8;
    max-width: 780px;
    line-height: 1.6;
    margin: 0;
}

/* 3D Bioluminescent Sphere Canvas in Hero */
.auros-sphere-canvas {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    display: block;
    pointer-events: none;
}

/* --- 2x2 Hero Feature Grid --- */
.hero-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 16px auto 32px;
    gap: 24px;
}

@media (max-width: 820px) {
    .hero-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Auros Raised Surface Card (Liquid Kelp #101B35, 16px radius, no shadow) */
.card-3d-feature {
    background: #101B35;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 16px;
    padding: 26px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.25s ease, background-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.card-3d-feature:hover {
    box-shadow: none;
    border-color: rgba(96, 165, 250, 0.38);
}

.card-3d-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 16px;
}

.card-3d-feature:hover::before {
    opacity: 1;
}

/* Color Accent Variations for the 4 Hero Cards */
.card-3d-feature.card-teal,
.card-3d-feature.card-amber,
.card-3d-feature.card-emerald,
.card-3d-feature.card-coral {
    border-color: rgba(96, 165, 250, 0.16);
}
.card-3d-feature.card-teal:hover,
.card-3d-feature.card-amber:hover,
.card-3d-feature.card-emerald:hover,
.card-3d-feature.card-coral:hover {
    border-color: rgba(96, 165, 250, 0.38);
}

.card-3d-feature.card-coral:hover {
    border-color: var(--accent);
}

.card-3d-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-3d-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.card-3d-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: none;
}
.card-3d-icon-box svg {
    width: 16px;
    height: 16px;
}

.card-3d-pill, .card-3d-badge {
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.25);
    font-family: inherit;
}

.card-amber .card-3d-pill {
    background: rgba(219, 154, 60, 0.12);
    color: var(--secondary);
    border-color: rgba(219, 154, 60, 0.25);
}

.card-emerald .card-3d-pill {
    background: rgba(76, 154, 99, 0.12);
    color: var(--success);
    border-color: rgba(76, 154, 99, 0.25);
}

.card-coral .card-3d-pill {
    background: rgba(226, 87, 76, 0.12);
    color: var(--accent);
    border-color: rgba(226, 87, 76, 0.25);
}

.card-3d-title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.card-3d-desc {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.55;
    margin: 0 0 16px 0;
    flex: 1;
}

.card-3d-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: auto;
}

/* Auros Gradient Pill Button (Cyan -> White -> Lavender Pink, 6px radius, dark text) */
.card-3d-btn {
    background: #2563EB;
    color: #FFFFFF;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-amber .card-3d-btn,
.card-emerald .card-3d-btn,
.card-coral .card-3d-btn {
    background: #2563EB;
    color: #FFFFFF;
    box-shadow: none;
}

.card-3d-feature:hover .card-3d-btn {
    opacity: 0.92;
    box-shadow: none;
}

[dir="rtl"] .card-3d-feature:hover .card-3d-btn {
    opacity: 0.92;
}

/* --- Unified Responsive List View (Auros Liquid Kelp Raised Surface #101B35) --- */
.unified-directory-section {
    background: #101B35;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 16px;
    padding: 26px;
    box-shadow: none;
    margin-bottom: 30px;
}

.unified-directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
}

.unified-directory-title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unified-directory-sub {
    font-size: 14px;
    color: #94A3B8;
    margin: 0;
}

.unified-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.portal-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.portal-search-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    font-size: 16px;
    pointer-events: none;
}

[dir="rtl"] .portal-search-icon {
    left: auto;
    right: 14px;
}

.portal-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 6px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    background: #0B132B;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

[dir="rtl"] .portal-search-input {
    padding: 12px 42px 12px 16px;
}

.portal-search-input:focus {
    border-color: rgba(96, 165, 250, 0.45);
    background: #070D18;
}

.portal-filters-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    background: #0B132B;
    border: 1px solid rgba(96, 165, 250, 0.16);
    color: #94A3B8;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.filter-chip:hover {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.35);
}

.filter-chip.active {
    background: #2563EB;
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: none;
    font-weight: 500;
}

/* List Items Stack (Auros Recessed Panels #0B132B) */
.unified-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.unified-item-row {
    background: #0B132B;
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.unified-item-row:hover {
    background: #070D18;
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: none;
}

.unified-row-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.unified-row-icon {
    font-size: 24px;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    background: #101B35;
    border: 1px solid rgba(96, 165, 250, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
}

.unified-row-details {
    flex: 1;
    min-width: 0;
}

.unified-row-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.unified-row-title {
    font-size: 15.5px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unified-row-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(96, 165, 250, 0.14);
    color: #F0F6FF;
    border: 1px solid rgba(96, 165, 250, 0.2);
    flex-shrink: 0;
}

.unified-row-desc {
    font-size: 13px;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.unified-row-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.unified-row-btn {
    background: #2563EB;
    color: #FFFFFF;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    transition: opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.unified-item-row:hover .unified-row-btn {
    opacity: 0.92;
    box-shadow: none;
}

@media (max-width: 720px) {
    .unified-item-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }
    .unified-row-desc {
        white-space: normal;
    }
    .unified-row-right {
        padding-top: 10px;
        justify-content: flex-end;
    }
    .unified-row-btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Domain & DNS Health Inspector --- */
.domain-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.domain-input {
    flex: 1;
    min-width: 240px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-heavy);
    background: var(--bg-base);
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    outline: none;
}
.domain-input:focus {
    border-color: var(--primary);
    background: var(--bg-surface);
}

.tld-chips-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tld-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.tld-chip:hover, .tld-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.domain-results-box {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px;
}

.domain-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.domain-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.domain-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.domain-stat-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}

.domain-dns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.domain-dns-table th {
    background: var(--bg-surface);
    color: var(--text-muted);
    padding: 10px 12px;
    text-align: start;
    border-bottom: 2px solid var(--border-light);
    font-weight: 700;
}

.domain-dns-table td {
    padding: 10px 12px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-inline-end: 6px;
}
.status-indicator.status-ok {
    background: var(--success);
}

/* --- Gym Plan Regimen Styles --- */
.gp-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.gp-num { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px 8px; text-align: center; }
.gp-num b { display: block; font-size: 24px; color: var(--primary); }
.gp-num span { font-size: 12px; color: var(--text-muted); }
.gp-t { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.gp-t th { background: var(--primary); color: #fff; padding: 8px 10px; text-align: start; }
.gp-t td { padding: 8px 10px; color: var(--text-main); }
.gp-t tr.gym td { background: rgba(76, 154, 99, 0.15); font-weight: 700; }
.gp-card { margin-bottom: 18px; }
.gp-card h3 { color: var(--primary); margin-bottom: 8px; }
.gp-card p, .gp-card li { font-size: 13.5px; color: var(--text-main); }
.gp-btn { background: var(--primary); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 8px 16px; font-family: inherit; cursor: pointer; font-weight: 700; transition: var(--transition-smooth); }
.gp-btn:hover { background: var(--primary-light); }
.gp-bar { height: 10px; background: var(--border-light); border-radius: 9px; overflow: hidden; margin: 6px 0; }
.gp-bar i { display: block; height: 100%; background: var(--primary-light); }
@media(max-width: 600px) { .gp-nums { grid-template-columns: 1fr; } .gp-t { font-size: 12px; } }


/* Games Hub styles removed */

/* ========================================================
   Gym 3D Companion: Smart Rest Timer & Barbell Calculator (Auros Styled)
   ======================================================== */
.gym-3d-card {
    background: #101B35;
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.gym-3d-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2563EB;
}

.gym-companion-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    background: #0B132B;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid rgba(96, 165, 250, 0.12);
}

.gym-tab-pill {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94A3B8;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.gym-tab-pill.active {
    background: #2563EB;
    color: #FFFFFF;
    box-shadow: none;
    border: none;
}

/* 3D Rest Timer Styles */
.gym-timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gym-3d-timer-ring {
    position: relative;
    width: 210px;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gym-timer-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
    filter: none;
}

.gym-timer-bg-circle {
    fill: none;
    stroke: rgba(96, 165, 250, 0.12);
    stroke-width: 10;
}

.gym-timer-progress-circle {
    fill: none;
    stroke: #2563EB;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 565;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s linear, stroke 0.3s ease;
}

.gym-timer-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gym-timer-digits {
    font-size: 44px;
    font-weight: 500;
    font-family: inherit;
    color: #BFDBFE; /* Lavender phosphor highlight */
    line-height: 1;
    letter-spacing: -0.04em;
}

.gym-timer-phase {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94A3B8;
    margin-top: 6px;
}

.gym-timer-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.gym-preset-chip {
    background: #0B132B;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #94A3B8;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    font-family: inherit;
}

.gym-preset-chip:hover, .gym-preset-chip.active {
    background: #2563EB;
    color: #FFFFFF;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.gym-timer-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
}

.gym-btn-timer-main {
    flex: 2;
    padding: 12px 20px;
    border-radius: 6px;
    background: #2563EB;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 14px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    box-shadow: none;
    transition: opacity 0.2s ease;
}

.gym-btn-timer-main:hover {
    opacity: 0.92;
    box-shadow: none;
}

.gym-btn-timer-sub {
    flex: 1;
    padding: 12px 14px;
    border-radius: 6px;
    background: #0B132B;
    color: #F0F6FF;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    font-family: inherit;
}

.gym-btn-timer-sub:hover {
    border-color: rgba(96, 165, 250, 0.45);
    color: #ffffff;
}

.gym-sets-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0B132B;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    font-size: 13px;
    font-weight: 500;
    color: #F0F6FF;
}

.gym-set-adjust-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    background: #101B35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    color: #F0F6FF;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.gym-set-adjust-btn:hover {
    background: #070D18;
    border-color: rgba(96, 165, 250, 0.38);
}

/* 3D Barbell Calculator Styles */
.gym-barbell-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gym-barbell-ctrls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.gym-target-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gym-target-inputs {
    display: flex;
    gap: 6px;
    align-items: center;
}

.gym-step-btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    background: #0B132B;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    color: #F0F6FF;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    font-family: inherit;
}

.gym-step-btn:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: #101B35;
}

.gym-bar-canvas-card {
    background: #0B132B;
    border-radius: 16px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    padding: 16px 10px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#gymBarbellCanvas {
    width: 100%;
    max-width: 540px;
    height: 120px;
    display: block;
}

.gym-plates-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #0B132B;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 16px;
    padding: 14px 18px;
}

.gym-plates-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.gym-plate-chip {
    padding: 5px 12px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* --- Top Header Language Toggle Button (Req 1) --- */
.header-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.header-lang-btn:hover {
    background: rgba(37, 99, 235, 0.3);
    border-color: #60A5FA;
    color: #FFFFFF;
}

/* --- First Entry Language Selection Modal (Req 1) --- */
.first-lang-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 13, 24, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
}
.first-lang-card {
    background: #101B35;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.first-lang-btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid rgba(96, 165, 250, 0.3);
    background: #2563EB;
    color: #FFFFFF;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s ease;
}
.first-lang-btn:hover {
    opacity: 0.9;
}
.first-lang-btn.alt {
    background: #1E293B;
    border-color: rgba(96, 165, 250, 0.2);
}

/* --- Health Group Hub & Sub-Screens (Req 4, 6, 7) --- */
.health-group-header {
    background: #0B132B;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.health-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}
.health-tool-card {
    background: #101B35;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 16px;
    padding: 22px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    transition: border-color 0.2s ease;
}
.health-tool-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
}
.health-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.health-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60A5FA;
    flex-shrink: 0;
}
.health-card-icon svg {
    width: 16px;
    height: 16px;
}
.health-card-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(96, 165, 250, 0.25);
}
.health-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 6px 0;
}
.health-card-desc {
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.5;
    margin: 0 0 14px 0;
    flex: 1;
}
.health-card-btn {
    background: #2563EB;
    color: #FFFFFF;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-family: inherit;
    transition: opacity 0.2s ease;
}
.health-card-btn:hover {
    opacity: 0.9;
}

/* --- Cortisol Screen Container (Req 7) --- */
.cortisol-view-wrap {
    background: #0B132B;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 10px;
}
.cortisol-frame {
    width: 100%;
    height: 85vh;
    border: none;
    display: block;
    background: transparent;
}

/* --- Interactive Lamp & 3-Color Theme Capsule --- */
.header-lamp-capsule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 27, 53, 0.85);
    border: 1px solid rgba(96, 165, 250, 0.24);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    transition: border-color 0.2s ease;
}
.header-lamp-capsule:hover {
    border-color: rgba(96, 165, 250, 0.45);
}
.lamp-toggle-btn, .header-settings-btn {
    background: none;
    border: none;
    padding: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    border-radius: var(--radius-full);
    transition: transform 0.2s ease, color 0.2s ease;
}
.lamp-toggle-btn:hover, .header-settings-btn:hover {
    transform: scale(1.12);
    color: #FFFFFF;
}
.lamp-toggle-btn.lamp-on {
    color: #FBBF24;
}
.header-settings-btn.active {
    color: #60A5FA;
}
.lamp-capsule-divider {
    width: 1px;
    height: 16px;
    background: rgba(96, 165, 250, 0.25);
}
.color-swatches-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.color-swatch-dot {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.color-swatch-dot:hover {
    transform: scale(1.3);
}
.color-swatch-dot.active {
    border-color: #FFFFFF;
    transform: scale(1.15);
}
.swatch-royal { background: #2563EB; }
.swatch-cyan { background: #0284C7; }
.swatch-sapphire { background: #1E40AF; }
