:root {
    --bg: #0a0d12;
    --bg-2: #131a24;
    --bg-mid: #101722;
    --bg-deep: #1d2430;
    --header-bg: rgba(4, 6, 15, 0.78);
    --nav-mobile-bg: rgba(4, 6, 15, 0.96);
    --input-bg: rgba(10, 17, 48, 0.6);
    --surface: rgba(255, 255, 255, 0.05);
    --surface-strong: rgba(255, 255, 255, 0.09);
    --text: #e8ebf0;
    --muted: #a8b0bf;
    --stroke: rgba(160, 172, 191, 0.26);
    --accent: #d8a43a;
    --accent-2: #f2c96a;
}

[data-theme="light"] {
    --bg: #f4f6fa;
    --bg-2: #e2e9f0;
    --bg-mid: #dce4f0;
    --bg-deep: #cfd8e6;
    --header-bg: rgba(255, 255, 255, 0.88);
    --nav-mobile-bg: rgba(255, 255, 255, 0.97);
    --input-bg: rgba(255, 255, 255, 0.95);
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --text: #1f2837;
    --muted: #4f5d75;
    --stroke: rgba(55, 70, 96, 0.2);
    --accent: #b8831e;
    --accent-2: #dbaf54;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background: linear-gradient(160deg, var(--bg), var(--bg-mid) 58%, var(--bg-deep));
    min-height: 100vh;
    background-attachment: fixed;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
    z-index: -1;
}

.orb-a {
    width: 300px;
    height: 300px;
    background: rgba(216, 164, 58, 0.14);
    top: -50px;
    left: -80px;
}

.orb-b {
    width: 320px;
    height: 320px;
    background: rgba(242, 201, 106, 0.11);
    right: -100px;
    top: 120px;
}

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--stroke);
    background: var(--header-bg);
    box-shadow: 0 10px 35px rgba(1, 8, 26, 0.45);
}

[data-theme="light"] .header {
    box-shadow: 0 8px 24px rgba(31, 40, 55, 0.08);
}

.nav-shell {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.theme-modal-wrap {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 30;
}

.theme-fab {
    border: 1px solid var(--stroke);
    background: linear-gradient(130deg, var(--accent), var(--accent-2));
    color: #1a1304;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    padding: 0;
    font-weight: 800;
    font-size: 1.15rem;
    display: inline-grid;
    place-items: center;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(1, 8, 26, 0.35);
}

.theme-modal {
    margin-bottom: 0.7rem;
    min-width: 210px;
    background: var(--surface-strong);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(2, 7, 21, 0.4);
}

.theme-modal p {
    margin: 0 0 0.55rem;
    font-weight: 700;
    color: var(--text);
}

.theme-modal-actions {
    display: flex;
    gap: 0.45rem;
}

.theme-choice {
    flex: 1;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text);
    border-radius: 9px;
    padding: 0.45rem 0.5rem;
    font-weight: 700;
    cursor: pointer;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    color: #07203f;
    font-family: "Sora", sans-serif;
    font-weight: 800;
}

.brand strong {
    display: block;
    font-family: "Sora", sans-serif;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
    border-color: var(--stroke);
    background: var(--surface);
}

.menu-btn {
    display: none;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
}

.hero,
.page-hero {
    padding: 4.8rem 0 2.2rem;
    position: relative;
}

.hero-slider {
    min-height: 78vh;
    padding: 0;
    border-bottom: 1px solid var(--stroke);
    overflow: hidden;
}

.hero-track {
    min-height: 78vh;
    display: flex;
    transition: transform 0.65s ease;
}

.hero-slide {
    min-width: 100%;
    background-size: cover;
    background-position: center;
    display: grid;
    align-items: center;
}

.hero-content {
    padding-top: 8rem;
    padding-bottom: 7rem;
}

.hero-panel {
    width: min(760px, 100%);
    background: linear-gradient(145deg, rgba(7, 9, 14, 0.68), rgba(7, 9, 14, 0.38));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 1.8rem;
    backdrop-filter: blur(3px);
}

.hero-content .lead {
    max-width: 60ch;
    color: #d7deea;
}

[data-theme="light"] .hero-content .lead {
    color: #e9eef7;
}

[data-theme="light"] .hero-panel {
    background: linear-gradient(145deg, rgba(13, 20, 35, 0.7), rgba(13, 20, 35, 0.45));
    border-color: rgba(255, 255, 255, 0.22);
}

.hero-controls {
    margin-top: -4.6rem;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding-bottom: 1.6rem;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hero-dot,
.slider-btn {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(8, 11, 18, 0.55);
    color: #f3f5f8;
    cursor: pointer;
}

.slider-btn {
    border-radius: 999px;
    padding: 0.52rem 0.95rem;
    font-weight: 700;
}

.hero-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.hero-dot.active {
    background: linear-gradient(130deg, var(--accent), var(--accent-2));
    border-color: transparent;
}

[data-theme="light"] .slider-btn,
[data-theme="light"] .hero-dot {
    background: rgba(255, 255, 255, 0.78);
    color: #263043;
    border-color: rgba(36, 49, 70, 0.3);
}

.eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
    font-weight: 700;
    font-size: 0.75rem;
    margin: 0 0 0.7rem;
}

h1,
h2,
h3,
h4 {
    font-family: "Sora", sans-serif;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 4.8vw, 3.45rem);
    margin-bottom: 0.8rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    margin-bottom: 0.8rem;
}

.lead {
    color: var(--muted);
    line-height: 1.75;
    max-width: 62ch;
}

.hero h1,
.page-hero h1 {
    background: linear-gradient(120deg, #ffffff 0%, #e1cf9b 46%, #f2c96a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.78rem 1.1rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(9, 16, 36, 0.35);
    filter: saturate(1.1);
}

.btn-primary {
    color: #1a1304;
    background: linear-gradient(130deg, var(--accent), var(--accent-2));
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--stroke);
    background: var(--surface);
}

.glass-panel {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 1.1rem 1.15rem;
}

.glass-panel ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.section {
    padding: 1.2rem 0 4rem;
}

.section-tight {
    padding-top: 0.3rem;
}

.dashboard-heading {
    margin-bottom: 0.85rem;
}

.dashboard-heading h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.grid {
    display: grid;
    gap: 1rem;
}

.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.02));
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(2, 7, 21, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(242, 201, 106, 0.45);
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.card p + p {
    margin-top: 0.5rem;
}

.media-card img,
.profile-preview img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    margin-bottom: 0.8rem;
    object-fit: cover;
}

.media-card img {
    aspect-ratio: 16 / 10;
}

.profile-preview img {
    aspect-ratio: 1 / 1;
    max-width: 260px;
}

.auth-card {
    max-width: 720px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    gap: 0.8rem;
}

.form-grid label {
    display: grid;
    gap: 0.4rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    border: 1px solid var(--stroke);
    background: var(--input-bg);
    color: var(--text);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font: inherit;
}

.form-grid input:focus,
.form-grid textarea:focus {
    outline: 2px solid rgba(216, 164, 58, 0.45);
    outline-offset: 1px;
}

.form-error,
.form-success {
    border-radius: 10px;
    padding: 0.75rem 0.8rem;
    margin: 0 0 0.8rem;
}

.form-error {
    border: 1px solid rgba(255, 122, 122, 0.4);
    background: rgba(255, 84, 84, 0.15);
    color: #ffd0d0;
}

.form-success {
    border: 1px solid rgba(216, 164, 58, 0.5);
    background: rgba(216, 164, 58, 0.14);
    color: #fbe8bc;
}

.form-note {
    margin: 0 0 0.8rem;
    color: #ddd4be;
    background: rgba(216, 164, 58, 0.12);
    border: 1px solid rgba(216, 164, 58, 0.35);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
}

.profile-preview {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.members-hero {
    background: linear-gradient(120deg, rgba(216, 164, 58, 0.2), rgba(19, 26, 36, 0.2));
    border-bottom: 1px solid var(--stroke);
}

.members-login-card {
    background: linear-gradient(145deg, rgba(216, 164, 58, 0.2), rgba(216, 164, 58, 0.08));
}

.members-info-card {
    background: linear-gradient(145deg, rgba(42, 84, 128, 0.35), rgba(16, 33, 52, 0.2));
}

.logout-inline {
    margin-top: 0.9rem;
}

.dash-list,
.dash-links {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.55rem;
    color: var(--muted);
    line-height: 1.45;
}

.dash-links a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px dashed var(--stroke);
}

.dash-links a:hover {
    color: var(--accent-2);
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(117, 141, 170, 0.22);
    border: 1px solid rgba(117, 141, 170, 0.36);
    color: #d7e2f5;
}

.badge-ok {
    background: rgba(88, 176, 116, 0.2);
    border-color: rgba(88, 176, 116, 0.45);
    color: #cbffdc;
}

.badge-warn {
    background: rgba(216, 164, 58, 0.22);
    border-color: rgba(216, 164, 58, 0.55);
    color: #ffe9bc;
}

.dash-list small {
    display: block;
    color: var(--muted);
}

.dashboard-btn {
    margin-top: 0.8rem;
}

[data-theme="light"] .members-hero {
    background: linear-gradient(120deg, rgba(216, 164, 58, 0.22), rgba(255, 255, 255, 0.6));
}

[data-theme="light"] .members-login-card {
    background: linear-gradient(145deg, rgba(216, 164, 58, 0.26), rgba(255, 255, 255, 0.8));
}

[data-theme="light"] .members-info-card {
    background: linear-gradient(145deg, rgba(70, 109, 154, 0.24), rgba(255, 255, 255, 0.8));
}

.footer {
    border-top: 1px solid var(--stroke);
    padding: 1.2rem 0 1.8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.footer p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 980px) {
    .cols-3,
    .cols-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .menu-btn {
        display: inline-block;
    }

    .nav {
        display: none;
        width: 100%;
        position: absolute;
        left: 0;
        right: 0;
        top: 78px;
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.8rem;
        border-bottom: 1px solid var(--stroke);
        background: var(--nav-mobile-bg);
    }

    .nav.open {
        display: flex;
    }

    .hero-slider,
    .hero-track {
        min-height: 72vh;
    }

    .hero-content {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .hero-controls {
        margin-top: -4.2rem;
    }

    .hero-panel {
        padding: 1.2rem;
    }

    .dashboard-heading {
        margin-bottom: 0.65rem;
    }

    .section {
        padding-bottom: 2.5rem;
    }
}
