/* ============================================================
   CineVault — Main Stylesheet
   Aesthetic: Cinematic Noir / Film Grain / Luxury Dark
   ============================================================ */

:root {
    --void: #060608;
    --deep: #0d0d12;
    --surface: #13131a;
    --raised: #1c1c26;
    --border: #2a2a38;
    --muted: #555570;
    --text: #e8e8f0;
    --faint: #9090a8;
    --gold: #d4a843;
    --gold-dim: #8a6e2a;
    --crimson: #c0392b;
    --teal: #2dd4bf;
    --font-head: 'Bebas Neue', 'Impact', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --r: 8px;
    --r-lg: 14px;
}

html[data-theme='light'] {
    --void: #f4f6fb;
    --deep: #ffffff;
    --surface: #ffffff;
    --raised: #eef1f7;
    --border: #d6dceb;
    --muted: #5f6d85;
    --text: #0f172a;
    --faint: #43506a;
    --gold: #b88312;
    --gold-dim: #8f6508;
    --crimson: #b42318;
    --teal: #0f8f7d;
}

html[data-theme='light'] body {
    background-image: none;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Subtle film grain */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    overflow-x: clip;
}

/* ── NAVIGATION ── */
.cv-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 6, 8, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.cv-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 22px;
    color: var(--gold);
}

.logo-text {
    font-family: var(--font-head);
    font-size: 26px;
    letter-spacing: 3px;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links .nav-link {
    color: var(--faint);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: var(--r);
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: var(--text);
    background: var(--raised);
}

/* Profile dropdown */
.nav-profile-dropdown {
    position: relative;
}

.nav-profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--faint);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: var(--r);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-profile-btn:hover,
.nav-profile-btn.active {
    color: var(--text);
    background: var(--raised);
}

.nav-profile-btn::after {
    display: none;
}

.nav-chevron {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s;
}

.nav-profile-btn[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

.nav-profile-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 185px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    list-style: none;
    z-index: 1050;
}

.nav-profile-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--r);
    color: var(--faint);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-profile-item:hover,
.nav-profile-item.active {
    color: var(--text);
    background: var(--raised);
}

.theme-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--faint);
    user-select: none;
}

.theme-switch-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.theme-switch-track {
    width: 52px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.theme-switch-track i {
    font-size: 12px;
    color: var(--gold);
    z-index: 1;
}

.theme-switch-track::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--raised);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-switch-input:checked+.theme-switch-track {
    background: color-mix(in srgb, var(--teal) 14%, var(--surface));
    border-color: color-mix(in srgb, var(--teal) 36%, var(--border));
}

.theme-switch-input:checked+.theme-switch-track::before {
    transform: translateX(24px);
    background: color-mix(in srgb, var(--teal) 24%, var(--raised));
    border-color: color-mix(in srgb, var(--teal) 45%, var(--border));
}

.theme-switch-input:focus-visible+.theme-switch-track {
    outline: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
    outline-offset: 2px;
}

.theme-switch-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    min-width: 40px;
    color: var(--text);
}

.theme-toggle-floating {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1200;
}

html[data-theme='light'] .cv-nav {
    background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 991px) {
    .nav-inner {
        height: auto;
        padding: 10px 0;
        gap: 10px;
        align-items: flex-start;
        flex-direction: column;
    }

    .cv-logo .logo-text {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .nav-links {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .nav-links .nav-link {
        white-space: nowrap;
        font-size: 12px;
        padding: 7px 12px;
    }

    .nav-profile-btn {
        white-space: nowrap;
        font-size: 12px;
        padding: 7px 12px;
    }

    .nav-profile-menu {
        right: auto;
        left: 0;
    }
}

@media (max-width: 576px) {
    .theme-switch-text {
        display: none;
    }

    .cv-main {
        overflow-x: visible;
    }
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    background: var(--gold);
    color: var(--void);
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── MAIN / FOOTER ── */
.cv-main {
    flex: 1;
}

.cv-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 80px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-logo {
    font-family: var(--font-head);
    letter-spacing: 2px;
    color: var(--gold);
}

.footer-copy {
    color: var(--muted);
    font-size: 12px;
}

.footer-tagline {
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
}

/* ── HERO ── */
.cv-hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(56px, 8vw, 96px);
    letter-spacing: 6px;
    line-height: 1;
    color: var(--text);
    text-shadow: 0 0 80px rgba(212, 168, 67, 0.15);
}

.hero-sub {
    color: var(--faint);
    font-size: 16px;
    margin-top: 12px;
}

/* ── MOVIE GRID ── */
.movies-section {
    padding: 0 0 80px;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
}

.section-title {
    font-family: var(--font-head);
    font-size: 32px;
    letter-spacing: 3px;
    color: var(--text);
}

.section-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

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

.movie-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-dim);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 168, 67, 0.1);
    color: inherit;
    text-decoration: none;
}

.movie-poster {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.poster-title {
    font-family: var(--font-head);
    font-size: 28px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    z-index: 1;
    position: relative;
}

.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
}

.poster-shimmer {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.movie-info {
    padding: 18px 20px 20px;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.badge-genre {
    background: var(--raised);
    border: 1px solid var(--border);
    color: var(--faint);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.badge-rating {
    background: rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-duration {
    color: var(--muted);
    font-size: 12px;
    margin-left: auto;
}

.movie-title {
    font-family: var(--font-head);
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 8px;
}

.movie-desc {
    color: var(--faint);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-price {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-from {
    font-size: 11px;
    color: var(--muted);
}

.price-val {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--gold);
    font-weight: 500;
}

.btn-book {
    background: var(--gold);
    color: var(--void);
    border: none;
    padding: 7px 18px;
    border-radius: var(--r);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-book:hover {
    background: #e8b84e;
    transform: scale(1.03);
}

/* ── MOVIE DETAIL / SHOWTIMES ── */
.detail-hero {
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.detail-poster {
    width: 100%;
    height: 320px;
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.detail-badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.detail-title {
    font-family: var(--font-head);
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: 3px;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 16px;
}

.detail-desc {
    color: var(--faint);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 24px;
}

.showtime-section-title {
    font-family: var(--font-head);
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--text);
    margin-bottom: 24px;
}

.showtime-date-group {
    margin-bottom: 32px;
}

.date-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.showtime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.showtime-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.showtime-card:hover:not(.disabled) {
    border-color: var(--gold-dim);
    background: var(--raised);
}

.showtime-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.showtime-card.selected {
    border-color: var(--gold);
    background: rgba(212, 168, 67, 0.08);
}

.st-time {
    font-family: var(--font-head);
    font-size: 26px;
    letter-spacing: 1px;
    color: var(--text);
    display: block;
}

.st-hall {
    font-size: 12px;
    color: var(--muted);
    margin: 4px 0;
}

.st-seats {
    font-family: var(--font-mono);
    font-size: 11px;
}

.st-seats.low {
    color: var(--crimson);
}

.st-seats.mid {
    color: var(--gold);
}

.st-seats.good {
    color: var(--teal);
}

.st-price {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--gold);
    margin-top: 8px;
    font-weight: 500;
}

.booking-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    position: sticky;
    top: 80px;
}

.widget-title {
    font-family: var(--font-head);
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.widget-empty {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}

.widget-movie-name {
    font-family: var(--font-head);
    font-size: 18px;
    color: var(--text);
    margin-bottom: 4px;
}

.widget-st-info {
    font-size: 13px;
    color: var(--faint);
    margin-bottom: 16px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 10px 14px;
    margin-bottom: 16px;
}

.qty-label {
    font-size: 13px;
    color: var(--faint);
    flex: 1;
}

.qty-btn {
    background: var(--border);
    border: none;
    color: var(--text);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.15s;
}

.qty-btn:hover {
    background: var(--muted);
}

.qty-num {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--text);
    min-width: 24px;
    text-align: center;
}

.price-breakdown {
    background: var(--raised);
    border-radius: var(--r);
    padding: 14px;
    margin-bottom: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--faint);
    margin-bottom: 6px;
}

.price-row.total {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
}

.price-row.total span:last-child {
    color: var(--gold);
    font-family: var(--font-mono);
}

.btn-primary-cv {
    width: 100%;
    background: var(--gold);
    color: var(--void);
    border: none;
    padding: 14px;
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-cv:hover {
    background: #e8b84e;
    transform: translateY(-1px);
}

.btn-primary-cv:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary-cv {
    background: transparent;
    color: var(--faint);
    border: 1px solid var(--border);
    padding: 11px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary-cv:hover {
    color: var(--text);
    border-color: var(--muted);
}

/* ── CART PAGE ── */
.page-title {
    font-family: var(--font-head);
    font-size: clamp(36px, 5vw, 60px);
    letter-spacing: 4px;
    color: var(--text);
}

.page-sub {
    color: var(--faint);
    font-size: 14px;
    margin-top: 6px;
}

.cart-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.cart-movie-title {
    font-family: var(--font-head);
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 4px;
}

.cart-detail-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--faint);
    margin-bottom: 16px;
}

.cart-detail-row span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-total-price {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--gold);
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-msg {
    font-size: 18px;
    margin-bottom: 24px;
}

.order-summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
}

.summary-title {
    font-family: var(--font-head);
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

/* ── CHECKOUT ── */
.checkout-steps {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--muted);
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.step.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.step.done {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--border);
    font-size: 11px;
    margin-right: 6px;
    font-family: var(--font-mono);
}

.step.active .step-num {
    background: var(--gold);
    color: var(--void);
}

.step.done .step-num {
    background: var(--teal);
    color: var(--void);
}

.form-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.form-section-title {
    font-family: var(--font-head);
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 20px;
}

.cv-form-group {
    margin-bottom: 18px;
}

.cv-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 7px;
}

.cv-input,
.cv-select {
    width: 100%;
    background: var(--raised);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 14px;
    border-radius: var(--r);
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.2s;
    appearance: none;
}

.iti {
    width: 100%;
}

.iti__tel-input {
    width: 100%;
    background: var(--raised) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    padding: 11px 14px 11px 52px !important;
    border-radius: var(--r) !important;
    font-size: 14px;
    font-family: var(--font-body);
}

.iti__tel-input:focus {
    outline: none;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.iti__selected-country {
    background: transparent !important;
    border-radius: var(--r) 0 0 var(--r);
}

.iti__country-list {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.iti__country {
    color: var(--text) !important;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background: var(--raised) !important;
}

.iti__dial-code {
    color: var(--faint) !important;
}

.cv-input[readonly] {
    background: rgba(255, 255, 255, 0.03);
    color: var(--faint);
    border-color: var(--border);
    opacity: 0.7;
}

.cv-input:focus,
.cv-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.cv-input::placeholder {
    color: var(--muted);
}

.cv-input.error {
    border-color: var(--crimson);
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── CONFIRMATION ── */
.confirm-page {
    padding: 60px 0 80px;
}

.confirm-hero {
    text-align: center;
    margin-bottom: 56px;
}

.confirm-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.12);
    border: 2px solid var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--teal);
    margin: 0 auto 24px;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-title {
    font-family: var(--font-head);
    font-size: 48px;
    letter-spacing: 4px;
    color: var(--text);
    margin-bottom: 8px;
}

.confirm-sub {
    color: var(--faint);
    font-size: 15px;
}

.ticket-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.ticket-header {
    background: linear-gradient(135deg, var(--raised) 0%, #1a1a28 100%);
    padding: 24px 28px;
    border-bottom: 2px dashed var(--border);
    position: relative;
}

.ticket-header::before,
.ticket-header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--void);
    border: 1px solid var(--border);
}

.ticket-header::before {
    left: -12px;
}

.ticket-header::after {
    right: -12px;
}

.ticket-movie {
    font-family: var(--font-head);
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 4px;
}

.ticket-booking-id {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 2px;
}

.ticket-body {
    padding: 28px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.t-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.t-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.t-value.highlight {
    color: var(--gold);
    font-family: var(--font-mono);
}

.ticket-footer {
    padding: 18px 28px;
    background: rgba(212, 168, 67, 0.05);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tf-label {
    font-size: 12px;
    color: var(--muted);
}

.tf-total {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--gold);
}

/* ── ALERTS / TOASTS ── */
.cv-alert {
    background: rgba(192, 57, 43, 0.12);
    border: 1px solid rgba(192, 57, 43, 0.3);
    color: #e8725a;
    border-radius: var(--r);
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-alert.success {
    background: rgba(45, 212, 191, 0.08);
    border-color: rgba(45, 212, 191, 0.3);
    color: var(--teal);
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.cv-toast {
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px 18px;
    font-size: 13px;
    color: var(--text);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s ease;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cv-toast.success {
    border-color: rgba(45, 212, 191, 0.4);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ── MISC ── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.seat-avail-bar {
    height: 3px;
    border-radius: 2px;
    background: var(--border);
    margin-top: 6px;
    overflow: hidden;
}

.seat-avail-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}

.text-gold {
    color: var(--gold);
}

.text-muted-cv {
    color: var(--muted);
}

.font-mono {
    font-family: var(--font-mono);
}

.font-head {
    font-family: var(--font-head);
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .ticket-grid {
        grid-template-columns: 1fr;
    }

    .card-row {
        grid-template-columns: 1fr;
    }

    .checkout-steps .step span {
        display: none;
    }
}

/* ── AUTH ADDITIONS ── */
.admin-badge {
    background: rgba(212, 168, 67, .15);
    border: 1px solid rgba(212, 168, 67, .4);
    color: var(--gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-left: 6px;
}

.logout-link {
    color: #e8725a !important;
}

.logout-link:hover {
    background: rgba(192, 57, 43, .1) !important;
}

/* ── LOGIN / REGISTER ── */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 67, .06) 0%, transparent 60%);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 48px 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .6);
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo .logo-icon {
    font-size: 36px;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}

.auth-logo .logo-text {
    font-family: var(--font-head);
    font-size: 36px;
    letter-spacing: 6px;
    color: var(--text);
}

.auth-title {
    font-family: var(--font-head);
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-sub {
    color: var(--faint);
    font-size: 13px;
    margin-bottom: 32px;
}

.role-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.role-tab {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--raised);
    color: var(--faint);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    letter-spacing: .5px;
}

.role-tab.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 168, 67, .08);
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--faint);
}

.auth-switch a {
    color: var(--gold);
}

/* Keep intl-tel-input country list readable in both themes */
.iti__country-list {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
}

.iti__country,
.iti__dial-code,
.iti__country-name,
.iti__search-input {
    color: var(--text);
}

.iti__search-input {
    background: var(--raised);
    border: 1px solid var(--border);
}

.iti__country.iti__highlight {
    background: color-mix(in srgb, var(--gold) 14%, var(--surface));
}

/* ── PROFILE ── */
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--raised);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--muted);
    overflow: hidden;
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(45, 212, 191, .08);
    border: 1px solid rgba(45, 212, 191, .25);
    color: var(--teal);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
}

.age-warning {
    background: rgba(212, 168, 67, .08);
    border: 1px solid rgba(212, 168, 67, .3);
    color: var(--gold);
    border-radius: var(--r);
    padding: 12px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── ADMIN LAYOUT ── */
.admin-body {
    background: #0a0a10;
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.admin-main {
    flex: 1;
    padding: 32px;
    overflow-x: hidden;
}

.admin-sidebar {
    width: 190px;
    flex-shrink: 0;
    background: var(--deep);
    border-right: 1px solid var(--border);
    padding: 18px 6px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
}

.sidebar-section-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--r);
    color: var(--faint);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    margin-bottom: 2px;
    border-left: 2px solid transparent;
}

.sidebar-link:hover {
    color: var(--text);
    background: var(--raised);
}

.sidebar-link.active {
    color: var(--text);
    background: var(--raised);
    border-left-color: var(--gold);
}

.sidebar-link.logout {
    color: #e8725a;
    margin-top: 4px;
}

.sidebar-link.logout:hover {
    background: rgba(192, 57, 43, .1);
}

.sidebar-divider {
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* ── ADMIN DASHBOARD ── */
.admin-page-title {
    font-family: var(--font-head);
    font-size: 36px;
    letter-spacing: 4px;
    color: var(--text);
    margin-bottom: 6px;
}

.admin-page-sub {
    color: var(--faint);
    font-size: 13px;
    margin-bottom: 32px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.gold {
    background: rgba(212, 168, 67, .12);
}

.stat-icon.teal {
    background: rgba(45, 212, 191, .12);
}

.stat-icon.purple {
    background: rgba(168, 85, 247, .12);
}

.stat-icon.blue {
    background: rgba(59, 130, 246, .12);
}

.stat-icon.crimson {
    background: rgba(192, 57, 43, .12);
}

.stat-value {
    font-family: var(--font-head);
    font-size: 36px;
    letter-spacing: 2px;
    line-height: 1;
}

.stat-value.gold {
    color: var(--gold);
}

.stat-value.teal {
    color: var(--teal);
}

.stat-value.purple {
    color: #a855f7;
}

.stat-value.blue {
    color: #3b82f6;
}

.stat-label {
    font-size: 11px;
    color: var(--faint);
    margin-top: 4px;
    letter-spacing: .5px;
}

/* ── ADMIN TABLES ── */
.cv-table {
    width: 100%;
    border-collapse: collapse;
}

.cv-table th {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.cv-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(42, 42, 56, .5);
    font-size: 13px;
    color: var(--faint);
    vertical-align: middle;
}

.cv-table tr:last-child td {
    border-bottom: none;
}

.cv-table tr:hover td {
    background: rgba(255, 255, 255, .02);
}

.cv-table td .movie-name {
    font-family: var(--font-head);
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--text);
}

.cv-table td .badge-status-confirmed {
    color: var(--teal);
    font-size: 11px;
}

.cv-table td .badge-status-cancelled {
    color: #e8725a;
    font-size: 11px;
}

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

.cv-table-movies {
    min-width: 860px;
}

.movie-title-link {
    color: inherit;
    text-decoration: none;
}

.movie-title-link:hover .movie-name {
    color: var(--gold);
}

.movie-actions-cell {
    white-space: nowrap;
}

.movie-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
}

.movie-actions form {
    margin: 0;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.table-title {
    font-family: var(--font-head);
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--text);
}

.search-input {
    background: var(--raised);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--r);
    font-size: 13px;
    outline: none;
    width: 240px;
    font-family: var(--font-body);
}

.search-input:focus {
    border-color: var(--gold);
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--faint);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    color: var(--text);
    border-color: var(--muted);
}

.action-btn.danger:hover {
    color: #e8725a;
    border-color: rgba(192, 57, 43, .4);
}

.action-btn.primary {
    border-color: rgba(212, 168, 67, .4);
    color: var(--gold);
}

.action-btn.primary:hover {
    background: rgba(212, 168, 67, .08);
}

/* ── MODAL ── */
.cv-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cv-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .7);
    animation: modalIn .25s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes modalIn {
    from {
        transform: scale(.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-family: var(--font-head);
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color .15s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ── SEAT MAP ── */
.seat-map-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
    display: flex;
    justify-content: center;
}

.screen-bar-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.screen-bar {
    display: inline-block;
    width: min(480px, 85%);
    height: 6px;
    background: linear-gradient(90deg, transparent, #7dd3fc, #fff, #7dd3fc, transparent);
    border-radius: 50%;
    box-shadow: 0 0 30px 8px rgba(125, 211, 252, .3);
    margin-bottom: 6px;
}

.screen-lbl {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #7dd3fc;
    opacity: .7;
}

.seat-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 8px;
    align-items: center;
}

.seat-row {
    display: flex;
    align-items: center;
    gap: 5px;
    width: max-content;
}

.seat-row-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.seat-aisle {
    width: 20px;
    flex-shrink: 0;
}

.seat {
    width: 30px;
    height: 26px;
    border-radius: 5px 5px 3px 3px;
    border: 1px solid rgba(255, 255, 255, .08);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-family: var(--font-mono);
    color: rgba(232, 240, 255, .94);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
    font-weight: 600;
    transition: transform .15s, box-shadow .15s, filter .15s;
    position: relative;
    flex-shrink: 0;
}

.seat::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 2px;
    right: 2px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, .4);
}

.seat:hover:not(.seat-reserved):not(.seat-blocked) {
    transform: translateY(-3px) scale(1.1);
    filter: brightness(1.2);
    z-index: 5;
}

.seat.seat-selected {
    background: #22c55e !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 12px rgba(34, 197, 94, .6);
    transform: translateY(-2px) scale(1.05);
    color: #fff;
}

.seat.seat-reserved {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    cursor: not-allowed;
    opacity: 0.85;
    color: #6b7280;
}

.seat.seat-blocked {
    background: #7f1d1d !important;
    border-color: #991b1b !important;
    cursor: not-allowed;
    opacity: 0.85;
    color: #ffd6d6;
}

.seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: var(--faint);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ── CUSTOMER VIEW TOGGLE ── */
.view-toggle {
    display: inline-flex;
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 4px;
    gap: 2px;
}

.view-toggle-btn {
    padding: 6px 16px;
    border-radius: 26px;
    border: none;
    background: transparent;
    color: var(--faint);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .3px;
}

.view-toggle-btn.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* ── RECENT ACTIVITY TABLE ── */
.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(42, 42, 56, .5);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-text {
    flex: 1;
    font-size: 13px;
    color: var(--faint);
}

.activity-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
}

/* ── CUSTOMER SEARCH FILTERS ── */
.filter-panel-wrap {
    max-width: 1100px;
    margin: 0 auto 28px;
}

.filter-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(260px, 1fr) 190px 160px auto;
    align-items: center;
}

.filter-field {
    min-width: 0;
}

.filter-search-field {
    position: relative;
}

.filter-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
}

.filter-input,
.filter-select {
    width: 100%;
    height: 44px;
    background: var(--raised);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--r);
    font-size: 13px;
    font-family: var(--font-body);
    padding: 0 12px;
}

.filter-input {
    padding-left: 36px;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, .1);
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.filter-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--faint);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .3px;
}

.filter-reset-btn:hover {
    color: var(--text);
    border-color: var(--muted);
}

.search-empty {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 34px 18px;
    text-align: center;
    margin-bottom: 36px;
}

.search-empty-icon {
    font-size: 28px;
    color: var(--gold);
    display: inline-block;
    margin-bottom: 10px;
}

.search-empty-msg {
    color: var(--faint);
    margin-bottom: 14px;
}

@media (max-width: 991px) {
    .filter-panel {
        grid-template-columns: 1fr;
    }
}

/* ── BLOG ── */
.blog-toolbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-cat-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--faint);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: .3px;
    background: var(--surface);
}

.blog-cat-tab:hover,
.blog-cat-tab.active {
    color: var(--text);
    border-color: rgba(212, 168, 67, .45);
    background: rgba(212, 168, 67, .1);
}

.blog-search-form {
    max-width: 360px;
}

.blog-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--raised);
    padding: 0 12px;
}

.blog-search-input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--text);
    font-size: 14px;
}

.blog-search-input::placeholder {
    color: var(--muted);
}

.blog-grid {
    display: grid;
    gap: 18px;
}

.blog-card {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 168, 67, .35);
}

.blog-card-cover {
    position: relative;
    min-height: 190px;
    background: linear-gradient(135deg, rgba(212, 168, 67, .12), rgba(168, 85, 247, .08));
}

.blog-card-category {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(6, 6, 8, .65);
    border: 1px solid rgba(212, 168, 67, .4);
    border-radius: 999px;
    padding: 4px 10px;
}

.blog-card-body {
    padding: 18px 20px;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.blog-card-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 4vw, 50px);
    line-height: 1.02;
    letter-spacing: 1px;
    font-family: var(--font-head);
}

.blog-card-excerpt {
    margin: 8px 0 14px;
    color: var(--faint);
    font-size: 14px;
    line-height: 1.6;
}

.blog-card-readmore {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
}

.blog-detail-cover {
    width: 100%;
    height: clamp(210px, 40vw, 370px);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    margin-bottom: 22px;
}

.blog-body {
    color: var(--text);
    font-size: 16px;
    line-height: 1.85;
}

@media (max-width: 900px) {
    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-card-cover {
        min-height: 220px;
    }
}
