:root {
    --border:       rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-primary:   #f1f1f8;
    --text-secondary: #a0a0c0;
    --text-muted:     #606080;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    color-scheme: dark;
    color: #f8fafc;
    background: #14151d;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

[x-cloak] { display: none !important; }

html,
body {
    min-height: 100%;
}

body.app-body {
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #f8fafc;
    background: radial-gradient(circle at top left, rgba(99,102,241,0.2), transparent 18%),
                radial-gradient(circle at 80% 15%, rgba(168,85,247,0.18), transparent 18%),
                linear-gradient(180deg, #11131d 0%, #181c2b 45%, #10131f 100%);
    overflow: auto;
}

body.app-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.22), transparent 16%),
        radial-gradient(circle at 80% 14%, rgba(168, 85, 247, 0.2), transparent 16%),
        radial-gradient(circle at 60% 90%, rgba(79, 70, 229, 0.12), transparent 18%);
    filter: blur(24px);
    opacity: 0.55;
    pointer-events: none;
}

button,
input,
textarea,
select {
    color: inherit;
    font: inherit;
}

button {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    color: inherit;
    box-shadow:
        4px 4px 10px rgba(0,0,0,0.24),
        -4px -4px 10px rgba(255,255,255,0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    backdrop-filter: blur(16px);
}

button:hover,
button:focus-visible {
    transform: scale(0.99);
    box-shadow:
        inset 3px 3px 10px rgba(0,0,0,0.22),
        inset -3px -3px 10px rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.16);
}

button:active {
    transform: translateY(1px);
    box-shadow:
        inset 3px 3px 8px rgba(0,0,0,0.28),
        inset -3px -3px 8px rgba(255,255,255,0.12);
}

.container {
    max-width: 1180px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
}

.footer .container {
    min-height: 0;
}

.hero {
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(20,32,72,0.98), rgba(17,24,52,0.88));
    border: 1px solid rgba(145, 185, 255, 0.22);
    box-shadow: 0 38px 90px rgba(8, 14, 36, 0.62), inset 0 0 0 1px rgba(255,255,255,0.06);
    backdrop-filter: blur(28px);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 36px;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 22%),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.06), transparent 24%);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.search-panel,
.review,
.results {
    margin-bottom: 20px;
    background: linear-gradient(180deg, rgba(15, 22, 45, 0.92), rgba(17, 26, 52, 0.82));
    border-radius: 36px;
    border: 1px solid rgba(110, 155, 255, 0.16);
    box-shadow: 0 32px 80px rgba(4, 10, 28, 0.55), inset 0 0 0 1px rgba(255,255,255,0.05);
    padding: 24px;
    backdrop-filter: blur(26px);
}

.search-panel {
    position: relative;
    z-index: 10;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    justify-content: flex-start;
}

.search-form input,
.search-form select,
.search-form > button {
    width: 100%;
    min-width: 0;
}

.search-form input {
    flex: 1 1 auto;
    padding: 10px 14px 10px 14px;
    padding-right: 44px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #f8fafc;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.22);
}

.search-form select {
    min-width: 180px;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.12);
    color: #eef2ff;
    font-size: 0.9rem;
    box-shadow:
        inset 4px 4px 10px rgba(0,0,0,0.24),
        inset -4px -4px 10px rgba(255,255,255,0.10),
        0 10px 18px rgba(0,0,0,0.18);
    backdrop-filter: blur(18px);
}

.search-form select:focus {
    border-color: #a3bffa;
    box-shadow: 0 0 0 2px rgba(145,185,255,0.18);
    background: rgba(255,255,255,0.16);
}
.search-form select option {
    color: #111825;
    background: #f8fafc;
    font-size: 1rem;
    border-radius: 0;
    padding: 8px 14px;
}
/* Remove default arrow and add custom arrow */
.search-form select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23eef2ff" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px 20px;
}

.search-form > button {
    width: 100%;
    min-width: 0;
}

@media (min-width: 720px) {
    .search-form {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        max-width: 640px;
        width: min(640px, 100%);
        flex-wrap: nowrap;
    }

    .search-form input {
        flex: 1 1 320px;
        min-width: 220px;
    }

    .search-form select {
        flex: 0 0 auto;
        min-width: 180px;
        width: auto;
    }

    .search-form > button {
        width: fit-content;
        min-width: 110px;
    }
}

.search-field {
    position: relative;
    width: 100%;
}

.search-form input::placeholder {
    color: rgba(248, 250, 252, 0.65);
}

.search-form > button {
    width: fit-content;
    min-width: 110px;
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.12);
    color: #eef2ff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        inset 4px 4px 10px rgba(0,0,0,0.26),
        inset -4px -4px 10px rgba(255,255,255,0.12),
        0 14px 24px rgba(0,0,0,0.20);
    backdrop-filter: blur(18px);
}

.clear-button {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #eef2ff;
    font-size: 0.85rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: none;
    outline: none;
    box-shadow: none;
}

.clear-button:hover,
.clear-button:focus,
.clear-button:active {
    background: rgba(255,255,255,0.12);
    color: #eef2ff;
    outline: none;
    box-shadow: none;
    transform: translateY(-50%);
}

.search-form select {
    min-width: 180px;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.12);
    color: #eef2ff;
    font-size: 0.9rem;
    box-shadow:
        inset 4px 4px 10px rgba(0,0,0,0.24),
        inset -4px -4px 10px rgba(255,255,255,0.10),
        0 10px 18px rgba(0,0,0,0.18);
    backdrop-filter: blur(18px);
}

.search-form select option {
    color: #111825;
    background: #f8fafc;
}

.search-form > button:hover {
    box-shadow:
        inset 4px 4px 10px rgba(0,0,0,0.24),
        inset -4px -4px 12px rgba(255,255,255,0.18),
        0 20px 38px rgba(0,0,0,0.24);
    background: rgba(255,255,255,0.16);
}

.search-form > button:active {
    transform: translateY(1px);
    box-shadow:
        inset 3px 3px 10px rgba(0,0,0,0.30),
        inset -3px -3px 12px rgba(255,255,255,0.12);
}

.result-card {
    width: 100%;
    text-align: left;
    padding: 22px;
    margin-bottom: 16px;
    background: linear-gradient(180deg, rgba(12, 22, 52, 0.96), rgba(18, 28, 58, 0.82));
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        0 28px 64px rgba(3,5,20,0.60),
        inset 0 0 0 1px rgba(152,184,255,0.08);
    backdrop-filter: blur(22px);
    position: relative;
    overflow: hidden;
}

.result-card strong,
.result-card p,
.result-card .meta {
    position: relative;
    color: #eef2ff;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 72px rgba(0,0,0,0.64), inset 0 0 0 1px rgba(186,216,255,0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.result-poster {
    width: 100%;
    max-width: 180px;
    border-radius: 24px;
    object-fit: cover;
    align-self: center;
    box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.result-card-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 720px) {
    .result-card-grid {
        flex-direction: row;
        align-items: flex-start;
    }

    .result-poster {
        width: 140px;
        max-width: 140px;
        flex-shrink: 0;
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.expand-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        3px 3px 8px rgba(0,0,0,0.24),
        inset -3px -3px 8px rgba(255,255,255,0.10),
        0 6px 12px rgba(0,0,0,0.18);
    backdrop-filter: blur(16px);
}

.expand-toggle:hover {
    background: rgba(255,255,255,0.14);
}

.expand-toggle:active {
    transform: translateY(1px);
}

.result-body {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(148,163,184,0.18);
}

.details-button {
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.12);
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        3px 3px 10px rgba(0,0,0,0.22),
        -3px -3px 10px rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
}

.details-button:hover {
    transform: scale(0.99);
    box-shadow:
        inset 4px 4px 12px rgba(0,0,0,0.24),
        inset -4px -4px 12px rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.16);
}

.details-button:active {
    transform: translateY(1px);
}

.trailer-button {
    width: 100%;
    margin-top: 22px;
}

.details-button:active {
    transform: translateY(1px);
}

.type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(99,102,241,0.14);
    color: #e0e7ff;
    font-size: 0.78rem;
    font-weight: 700;
}

.meta {
    color: #64748b;
    margin: 6px 0;
}

.rating-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rating-list li {
    margin-bottom: 14px;
}

.rating-list small {
    display: block;
    color: #64748b;
    margin-top: 6px;
    font-size: 0.88rem;
}

.source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-certified {
    background: rgba(219,234,254,0.9);
    color: #1d4ed8;
}

.badge-inferred {
    background: rgba(237,233,254,0.9);
    color: #6d28d9;
}

.section-block {
    margin-top: 20px;
}

.value-row {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148,163,184,0.18);
}

.value-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.value-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.value-score {
    font-weight: 700;
    color: #a3bffa;
    white-space: nowrap;
}

.value-notes {
    margin: 0 0 10px;
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.96rem;
    line-height: 1.6;
}

.values-explanation {
    margin: 0 0 16px;
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.95rem;
    line-height: 1.6;
}
.ai-note {
    margin: 0 0 16px;
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.94rem;
    line-height: 1.5;

}

.value-reflection,
.value-recommendation,
.value-scripture {
    margin: 10px 0 0;
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.96rem;
    line-height: 1.7;
}

.value-recommendation {
    font-weight: 600;
}

.value-scripture {
    font-style: italic;
    color: rgba(203, 213, 225, 0.90);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.chip {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(99,102,241,0.14);
    color: #f8fafc;
    font-size: 0.9rem;
}

.review-overlay {
    position: fixed;
    top: 88px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px 20px;
    background: rgba(15,23,42,0.22);
}

.review-panel {
    width: min(100%, 960px);
    max-height: calc(95vh - 88px);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: linear-gradient(180deg, rgba(12, 20, 44, 0.98), rgba(18, 26, 50, 0.94));
    border-radius: 34px;
    border: 1px solid rgba(138, 182, 255, 0.22);
    box-shadow:
        0 44px 140px rgba(0,0,0,0.38),
        inset 0 0 0 1px rgba(145, 189, 255, 0.12),
        0 0 0 1px rgba(255,255,255,0.05);
    padding: 32px;
    position: relative;
    backdrop-filter: blur(30px);
    color: #f8fafc;
}
.review-header {
    margin-bottom: 24px;
}
.review-header h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.05;
}
.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: rgba(248,250,252,0.78);
    font-size: 0.95rem;
}
.review-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 12px;
}
.review-main-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 240px;
}
.review-side {
    display: flex;
    width: 100%;
    align-items: flex-start;
}
.review-side-inner {
    display: grid;
    grid-template-columns: minmax(220px, 220px) minmax(320px, 1fr);
    gap: 12px;
    width: 100%;
    align-items: start;
}
.content-ratings-block {
    width: min(100%, 220px);
    max-width: 220px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.75);
    border-radius: 28px;
    border: 1px solid rgba(145, 185, 255, 0.16);
    margin-top: 0;
}
.trailer-panel {
    width: 100%;
    min-width: 0;
}
.trailer-embed {
    margin-top: 16px;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    max-height: 220px;
    min-width: 400px;
    max-width: 400px;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}
.trailer-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.review-poster {
    display: block;
    width: 100%;
    max-width: 180px;
    max-height: 320px;
    border-radius: 28px;
    box-shadow: 0 28px 72px rgba(0,0,0,0.45);
    object-fit: cover;
    justify-self: start;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.content-ratings-block h3 {
    margin-top: 0;
}

@media (min-width: 820px) {
    .review-grid {
        grid-template-columns: 250px minmax(420px, 1fr);
        gap: 20px;
        align-items: stretch;
        justify-content: start;
    }
    .review-poster {
        width: 100%;
        max-width: 220px;
        max-height: 360px;
    }
}
.review-panel .meta {
    color: rgba(248,250,252,0.78);
}

.review-panel::-webkit-scrollbar {
    display: none;
}

.close-review {
    position: absolute;
    right: 20px;
    top: 20px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.12);
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 16px;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow:
        4px 4px 10px rgba(0,0,0,0.22),
        -4px -4px 10px rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.close-review:hover {
    box-shadow:
        inset 4px 4px 10px rgba(0,0,0,0.24),
        inset -4px -4px 10px rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.16);
}

.close-review:active {
    transform: none;
}

.container .results.dimmed {
    opacity: 0.35;
    pointer-events: none;
    filter: blur(1px);
}

.status {
    color: #475569;
    font-size: 0.95rem;
    margin-top: 16px;
}

.disclaimer {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.82);
    margin-top: 12px;
}

/* --- Enhanced select and option styling for consistent dropdown look --- */
.search-form select {
    min-width: 180px;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1.5px solid rgba(145,185,255,0.22);
    background: rgba(255,255,255,0.12);
    color: #eef2ff;
    font-size: 0.98rem;
    box-shadow:
        0 4px 18px rgba(0,0,0,0.18),
        0 1px 0 rgba(145,185,255,0.10);
    backdrop-filter: blur(18px);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-form select:focus {
    border-color: #a3bffa;
    box-shadow: 0 0 0 2px rgba(145,185,255,0.18);
    background: rgba(255,255,255,0.16);
}
.search-form select option {
    color: #111825;
    background: #f8fafc;
    font-size: 1rem;
    border-radius: 0;
    padding: 8px 14px;
}
/* Remove default arrow and add custom arrow */
.search-form select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23eef2ff" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px 20px;
}

/* --- Dark theme for select dropdown (Chromium/Edge only) --- */
.search-form select,
.search-form select option {
    background-color: #181c2b;
    color: #f8fafc;
    border: none;
}

.search-form select:focus,
.search-form select:active {
    background-color: #181c2b;
    color: #f8fafc;
    outline: 2px solid #6477b6;
}

/* Forcing border-radius and shadow on select for better integration */
.search-form select {
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(20,32,72,0.18);
}

/* Remove default highlight color for options (Chromium only) */
.search-form select option:checked,
.search-form select option:focus,
.search-form select option:hover {
    background: #23263a !important;
    color: #f8fafc !important;
}

/* --- Custom Dropdown Styles --- */
.custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 220px;
    margin-left: auto;
    z-index: 999;
}
.dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-radius: 20px;
    border: 1.5px solid rgba(145,185,255,0.22);
    background: rgba(255,255,255,0.12);
    color: #eef2ff;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    gap: 8px;
}
.dropdown-toggle[aria-expanded="true"],
.dropdown-toggle:focus {
    border-color: #a3bffa;
    background: rgba(255,255,255,0.16);
}
.dropdown-list {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #181c2b 90%, #23263a 100%);
    border-radius: 18px;
    box-shadow: 0 12px 48px rgba(20,32,72,0.22);
    border: 1.5px solid rgba(145,185,255,0.18);
    z-index: 1000;
    padding: 6px 0;
    margin-top: 4px;
}
.dropdown-list[x-cloak] {
    display: none !important;
}
.dropdown-item {
    padding: 10px 18px;
    color: #eef2ff;
    font-size: 0.97rem;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.18s, color 0.18s;
    margin: 0 6px;
}
.dropdown-item:hover,
.dropdown-item.selected {
    background: #23263a;
    color: #a3bffa;
}

/* Shared UpRight Path header and footer styles */
body.app-body {
    padding-top: 88px;
}

body.no-scroll {
    overflow: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    background: rgba(6, 6, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: 200ms ease, border-color 200ms ease;
}

.navbar.scrolled {
    background: rgba(6, 6, 15, 0.9);
    border-bottom-color: rgba(255,255,255,0.12);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 20px;
    color: #fbbf24;
    filter: drop-shadow(0 0 8px #fbbf24);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.logo-accent {
    color: #fbbf24;
}

.nav-links {
    display: flex;
    gap: 32px;
    margin-left: auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(248,250,252,0.74);
    transition: color 200ms ease;
    text-decoration: none;
}

.nav-links a:hover {
    color: #f8fafc;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    cursor: pointer;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #eef2ff;
    border-radius: 999px;
    transition: transform 200ms ease, opacity 200ms ease;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #030308;
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 14px;
    max-width: 260px;
}

.footer-col h5 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-col {
    min-width: 0;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text-primary); }

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-container {
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(6,6,15,0.97);
        padding: 16px 24px 24px;
        gap: 16px;
        z-index: 999;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
