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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
    background: var(--card);
    border-bottom: 2px solid var(--primary);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span { color: var(--accent); }

.main-nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.main-nav a {
    color: var(--text);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
}

.main-nav a:hover, .main-nav a.active {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

.notif-badge {
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    padding: 0.1rem 0.45rem;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
}

.btn:hover { opacity: 0.9; text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-danger { background: #dc3545; color: #fff; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Cards */
.card {
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.card h2, .card h3 { color: var(--primary); margin-bottom: 0.75rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label { color: var(--text); opacity: 0.7; font-size: 0.9rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--card);
    color: var(--text);
}

@media (max-width: 768px) {
    .form-control {
        font-size: 16px;
        min-height: 44px;
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.15);
}

select.form-control { cursor: pointer; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.08); }
.table th { background: var(--primary); color: #fff; font-weight: 600; }
.table tr:hover { background: rgba(0,0,0,0.02); }

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.card:has(> .table),
.card:has(> .table-responsive) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Alerts */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-success { background: #28a745; color: #fff; }
.badge-warning { background: #ffc107; color: #333; }
.badge-danger { background: #dc3545; color: #fff; }
.badge-info { background: var(--accent); color: #fff; }
.badge-primary { background: var(--primary); color: #fff; }

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 2rem;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero p { font-size: 1.15rem; opacity: 0.95; margin-bottom: 1.5rem; }
.hero .btn { margin: 0 0.5rem; }

/* Auth layout */
.auth-page {
    background:
        radial-gradient(circle at top right, rgba(0, 180, 216, 0.18), transparent 42%),
        radial-gradient(circle at bottom left, rgba(0, 119, 182, 0.14), transparent 38%),
        var(--bg);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 18px 50px rgba(0, 53, 84, 0.14);
    border: 1px solid rgba(0, 119, 182, 0.08);
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand__logo {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 119, 182, 0.22);
    margin-bottom: 0.85rem;
}

.auth-brand__title {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.auth-brand__title span { color: var(--accent); }

.auth-brand__tagline,
.auth-card .subtitle {
    text-align: center;
    color: var(--text);
    opacity: 0.72;
    font-size: 0.95rem;
}

.auth-panel__title {
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.auth-panel__lead {
    color: var(--text);
    opacity: 0.72;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.auth-form { margin-bottom: 0.25rem; }

.auth-method-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.3rem;
    background: rgba(0, 119, 182, 0.06);
    border-radius: 14px;
}

.auth-method-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    background: transparent;
    color: var(--text);
    opacity: 0.72;
    padding: 0.7rem 0.75rem;
    border-radius: 11px;
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.auth-method-tab__icon {
    width: 1rem;
    height: 1rem;
}

.auth-method-tab.is-active {
    background: var(--card);
    color: var(--primary);
    opacity: 1;
    box-shadow: 0 4px 14px rgba(0, 53, 84, 0.1);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap__icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.05rem;
    height: 1.05rem;
    color: var(--primary);
    opacity: 0.55;
    pointer-events: none;
}

.auth-input.form-control,
.auth-input-wrap .form-control {
    padding-left: 2.65rem;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(0, 119, 182, 0.16);
    background: rgba(255, 255, 255, 0.72);
}

.auth-input.form-control:focus,
.auth-input-wrap .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.12);
    outline: none;
}

.auth-input--password {
    padding-right: 3rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text);
    opacity: 0.55;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-password-toggle:hover { opacity: 0.9; }

.auth-password-toggle svg {
    width: 1.05rem;
    height: 1.05rem;
}

.auth-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.auth-field__label-row label {
    margin-bottom: 0;
}

.auth-link-muted {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.auth-link-muted:hover { text-decoration: underline; }

.auth-submit {
    min-height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
    font-size: 1rem;
}

.auth-submit__icon {
    width: 1.05rem;
    height: 1.05rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.25rem 0;
    color: var(--text);
    opacity: 0.55;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 119, 182, 0.14);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: #3c4043;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.18);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-google__icon {
    display: inline-flex;
    flex-shrink: 0;
}

.auth-register {
    margin-top: 1.35rem;
    border-top: 1px solid rgba(0, 119, 182, 0.1);
    padding-top: 1rem;
}

.auth-register summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    list-style: none;
    text-align: center;
}

.auth-register summary::-webkit-details-marker { display: none; }

.auth-register__links {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.auth-register__link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 119, 182, 0.12);
    background: rgba(0, 119, 182, 0.03);
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-register__link:hover {
    background: rgba(0, 119, 182, 0.07);
    border-color: rgba(0, 119, 182, 0.22);
    text-decoration: none;
}

.auth-register__link svg {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.auth-register__link strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text);
}

.auth-register__link small {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.68;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1.15rem;
        border-radius: 16px;
    }

    .auth-brand__title { font-size: 1.55rem; }
}

/* Doctor card */
.doctor-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.doctor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.doctor-info h3 { margin-bottom: 0.25rem; }
.doctor-info .specialty { color: var(--accent); font-weight: 600; }
.doctor-info .meta { font-size: 0.85rem; opacity: 0.75; margin-top: 0.25rem; }

.preferred-badge {
    background: gold;
    color: #333;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Consultation room */
.consult-room { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; min-height: 70vh; }
.consult-video { background: #000; border-radius: 12px; overflow: hidden; min-height: 400px; }
.consult-video iframe { width: 100%; height: 100%; min-height: 400px; border: none; }
.consult-notes { background: var(--card); border-radius: 12px; padding: 1rem; }

/* Map */
#partner-map { height: 400px; border-radius: 12px; margin: 1rem 0; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .consult-room { grid-template-columns: 1fr; }
    .consult-video,
    .consult-video iframe { min-height: 240px; }

    .hero {
        padding: 2.5rem 1rem;
        border-radius: 0 0 1.25rem 1.25rem;
    }

    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    .hero .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .header-inner {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav.nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(300px, 88vw);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        padding-top: calc(1rem + env(safe-area-inset-top, 0px));
        background: var(--card);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        z-index: 160;
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.nav-drawer.is-open {
        transform: translateX(0);
    }

    .main-nav.nav-drawer a {
        min-height: 44px;
        display: flex;
        align-items: center;
        border-radius: 10px;
        padding: 0.65rem 0.85rem;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header h1 {
        font-size: 1.35rem;
    }

    .page-header .btn {
        width: 100%;
        text-align: center;
    }

    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 40px;
    }

    #partner-map {
        height: 280px;
    }

    body:has(.chat-panel) .site-footer {
        display: none;
    }
}

/* Form rows (multi-column forms) */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* Staff mobile nav drawer */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.25s;
}

.nav-backdrop.is-open {
    display: block;
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

/* Page title */
.page-header {
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 { color: var(--primary); font-size: 1.75rem; }

/* Flag indicators */
.flag-normal { color: #28a745; }
.flag-high, .flag-low { color: #ffc107; font-weight: 700; }
.flag-critical { color: #dc3545; font-weight: 700; }

tr.row-urgent, tr.row-urgent td { background: #fff3f3; }
tr.row-urgent .badge { background: #dc3545; color: #fff; }

/* AI panel */
.ai-panel {
    background: #f0f4ff;
    border: 2px dashed var(--accent);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.ai-panel h4 { color: var(--primary); margin-bottom: 0.5rem; }
.ai-panel .disclaimer { font-size: 0.8rem; color: #666; font-style: italic; }

/* Chat */
.chat-contacts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chat-thread-card { margin-bottom: 0.75rem; transition: box-shadow 0.2s; }
.chat-thread-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.chat-thread-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.chat-thread-meta { text-align: right; white-space: nowrap; }
.chat-panel { display: flex; flex-direction: column; max-height: 70vh; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; min-height: 300px; }
.chat-bubble { max-width: 75%; padding: 0.65rem 0.9rem; border-radius: 12px; }
.chat-bubble.mine { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.theirs { align-self: flex-start; background: var(--bg); border: 1px solid #ddd; border-bottom-left-radius: 4px; }
.chat-time { display: block; margin-top: 0.25rem; opacity: 0.75; font-size: 0.75rem; }
.chat-compose { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid #eee; }
.chat-compose textarea { flex: 1; resize: vertical; min-height: 2.5rem; padding: 0.5rem; border-radius: 8px; border: 1px solid #ccc; }
.badge-accent { background: var(--accent); color: #fff; }

/* Panel Navigation */
.panel-nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}
.panel-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.panel-nav__item:hover {
    background: #f0f0f0;
    color: var(--primary);
    text-decoration: none;
}
.panel-nav__item--active {
    background: var(--primary);
    color: #fff;
}
.panel-nav__item--active:hover {
    background: var(--primary-dark, var(--primary));
    color: #fff;
}
.panel-nav__icon {
    font-size: 1rem;
    line-height: 1;
}
.panel-nav__label {
    line-height: 1;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
    padding: 0;
}
.breadcrumb__sep { margin: 0 0.3rem; color: #ccc; }
.breadcrumb__link { color: #666; text-decoration: none; }
.breadcrumb__link:hover { color: var(--primary); text-decoration: none; }
.breadcrumb__current { color: #333; font-weight: 500; }

/* Quick summary cards (for cross-panel) */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.summary-card {
    text-align: center;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid #e9ecef;
}
.summary-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
.summary-card__label {
    font-size: 0.75rem;
    color: #888;
    margin: 0.15rem 0 0;
}

/* Simplified stat cards */
.stat-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--card);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.85rem;
}
.stat-pill__num {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Timeline */
.timeline {
    border-left: 3px solid #e9ecef;
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}
.timeline__item {
    position: relative;
    margin-bottom: 1rem;
}
.timeline__dot {
    position: absolute;
    left: -1.7rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.timeline__time {
    font-size: 0.7rem;
    color: #999;
}
.timeline__content {
    font-size: 0.9rem;
}
.timeline__content strong { color: #333; }

@media (max-width: 600px) {
    .panel-nav {
        gap: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }
    .panel-nav__item {
        padding: 0.4rem 0.6rem;
        font-size: 0.78rem;
    }
    .panel-nav__icon { font-size: 0.9rem; }
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Settings page tabs */
.settings-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding: 0.3rem;
    background: rgba(0, 119, 182, 0.06);
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
}

.settings-tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    background: transparent;
    color: var(--text);
    opacity: 0.65;
    padding: 0.65rem 0.9rem;
    border-radius: 11px;
    font: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, opacity 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.settings-tab:hover {
    opacity: 0.85;
}

.settings-tab.is-active {
    background: var(--card);
    color: var(--primary);
    opacity: 1;
    box-shadow: 0 4px 14px rgba(0, 53, 84, 0.1);
}

.settings-tab-panel {
    display: none;
}

.settings-tab-panel.is-active {
    display: block;
}

@media (max-width: 600px) {
    .settings-tabs {
        gap: 0.25rem;
        padding: 0.25rem;
    }
    .settings-tab {
        padding: 0.55rem 0.65rem;
        font-size: 0.82rem;
    }
}
