/* RESET JC — Luxury Design System */

:root {
    color-scheme: light;
    --lux-ink: #0a0908;
    --lux-charcoal: #1a1714;
    --lux-warm: #2a2420;
    --lux-ivory: #faf7f2;
    --lux-cream: #f0e9df;
    --lux-sand: #e4d9cc;
    --lux-gold: #c4a35a;
    --lux-gold-light: #dcc98a;
    --lux-gold-dark: #8f7340;
    --lux-champagne: #ede4d4;
    --lux-muted: #7a6f63;
    --lux-border: rgba(196, 163, 90, 0.22);
    --lux-border-soft: rgba(42, 36, 32, 0.08);
    --lux-shadow: 0 24px 64px rgba(10, 9, 8, 0.08);
    --lux-shadow-gold: 0 20px 48px rgba(143, 115, 64, 0.18);
    --lux-radius-lg: 1.75rem;
    --lux-radius-xl: 2.25rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--lux-ivory);
    color: var(--lux-warm);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Cormorant Garamond', Georgia, serif;
    letter-spacing: -0.025em;
}

/* ── Ambient background ── */
.lux-shell {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 163, 90, 0.12), transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(228, 217, 204, 0.35), transparent 55%),
        radial-gradient(ellipse 50% 35% at 0% 80%, rgba(196, 163, 90, 0.08), transparent 50%),
        linear-gradient(180deg, #fdfbf8 0%, var(--lux-ivory) 40%, var(--lux-cream) 100%);
}

.lux-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.lux-shell > * {
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.lux-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--lux-border-soft);
    background: rgba(250, 247, 242, 0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.lux-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 3rem;
    padding: 0.3rem;
    border-radius: 1rem;
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--lux-shadow-gold);
    border: 1px solid rgba(196, 163, 90, 0.25);
}

.lux-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lux-eyebrow {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--lux-gold-dark);
}

.lux-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.125rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lux-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.lux-nav-link:hover {
    color: var(--lux-charcoal);
    background: rgba(255, 255, 255, 0.7);
}

/* ── Surfaces ── */
.lux-surface {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--lux-border-soft);
    box-shadow: var(--lux-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.lux-surface-strong {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(196, 163, 90, 0.14);
    box-shadow: 0 16px 48px rgba(10, 9, 8, 0.06);
}

.lux-surface-dark {
    background: linear-gradient(160deg, var(--lux-charcoal) 0%, var(--lux-ink) 100%);
    border: 1px solid rgba(196, 163, 90, 0.15);
    color: var(--lux-champagne);
    box-shadow: 0 32px 80px rgba(10, 9, 8, 0.25);
}

.lux-card {
    transition: transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1),
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}

.lux-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 72px rgba(10, 9, 8, 0.1);
    border-color: rgba(196, 163, 90, 0.28);
}

.lux-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lux-gold) 20%, var(--lux-gold-light) 50%, var(--lux-gold) 80%, transparent);
    opacity: 0.45;
}

.lux-divider-short {
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--lux-gold), var(--lux-gold-light));
    border-radius: 9999px;
}

/* ── Controls ── */
.lux-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border-radius: 1rem;
    border: 1px solid rgba(42, 36, 32, 0.12);
    background: rgba(255, 255, 255, 0.85);
    color: var(--lux-charcoal);
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.lux-input:focus {
    outline: none;
    border-color: var(--lux-gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(196, 163, 90, 0.12);
}

.lux-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--lux-muted);
}

/* ── Buttons ── */
.lux-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #ffffff;
    background: linear-gradient(135deg, #2f2a26 0%, #201c19 55%, #171412 100%);
    box-shadow: 0 18px 42px rgba(23, 20, 18, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.lux-btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 24px 56px rgba(23, 20, 18, 0.45);
    transform: translateY(-1px);
}

.lux-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(32, 28, 25, 0.18);
    font-weight: 500;
    font-size: 0.9375rem;
    color: #2b2521;
    background: rgba(32, 28, 25, 0.06);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lux-btn-secondary:hover {
    background: rgba(32, 28, 25, 0.1);
    border-color: rgba(32, 28, 25, 0.36);
}

.lux-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(32, 28, 25, 0.22);
    font-weight: 500;
    font-size: 0.9375rem;
    color: #3b332d;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.lux-btn-ghost:hover {
    background: rgba(32, 28, 25, 0.08);
    color: var(--lux-charcoal);
}

/* ── Badges ── */
.lux-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: rgba(196, 163, 90, 0.12);
    color: var(--lux-gold-dark);
    border: 1px solid rgba(196, 163, 90, 0.2);
}

.lux-badge-success {
    background: rgba(16, 120, 80, 0.08);
    color: #0d6b47;
    border-color: rgba(16, 120, 80, 0.18);
}

.lux-badge-muted {
    background: rgba(42, 36, 32, 0.06);
    color: var(--lux-muted);
    border-color: rgba(42, 36, 32, 0.08);
}

/* ── Progress ── */
.lux-progress {
    height: 4px;
    border-radius: 9999px;
    background: rgba(42, 36, 32, 0.08);
    overflow: hidden;
}

.lux-progress-bar {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--lux-gold-dark), var(--lux-gold-light));
    transition: width 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* ── Flash messages ── */
.lux-flash {
    border-radius: var(--lux-radius-lg);
    padding: 0.875rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.lux-flash-success {
    background: rgba(16, 120, 80, 0.07);
    border: 1px solid rgba(16, 120, 80, 0.18);
    color: #0d6b47;
}

.lux-flash-error {
    background: rgba(180, 50, 50, 0.06);
    border: 1px solid rgba(180, 50, 50, 0.16);
    color: #9b2c2c;
}

/* ── Home page refinements ── */
.lux-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 9999px;
    background: rgba(196, 163, 90, 0.14);
    color: var(--lux-gold-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.lux-home-feature {
    border-radius: 1.15rem;
    border: 1px solid rgba(196, 163, 90, 0.16);
    background: rgba(255, 255, 255, 0.78);
    padding: 0.95rem 1rem;
}

.lux-home-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(196, 163, 90, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(242, 233, 220, 0.88));
    border: 1px solid rgba(196, 163, 90, 0.18);
    box-shadow: 0 24px 60px rgba(10, 9, 8, 0.06);
}

.lux-home-card::before {
    content: '';
    position: absolute;
    inset: auto -3rem -3rem auto;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: rgba(196, 163, 90, 0.12);
    filter: blur(8px);
}

/* ── Home editorial sections ── */
.lux-full-bleed-dark {
    background:
        radial-gradient(ellipse 70% 60% at 20% 0%, rgba(196, 163, 90, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(196, 163, 90, 0.08), transparent 50%),
        linear-gradient(165deg, #1c1815 0%, #14110f 55%, #0a0908 100%);
}

.lux-pill-dark {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    background: rgba(220, 201, 138, 0.12);
    border: 1px solid rgba(220, 201, 138, 0.28);
    color: var(--lux-gold-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.lux-btn-primary-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--lux-ink);
    background: linear-gradient(135deg, var(--lux-gold-light) 0%, var(--lux-gold) 60%, var(--lux-gold-dark) 100%);
    box-shadow: 0 18px 42px rgba(196, 163, 90, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.lux-btn-primary-light:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 22px 52px rgba(196, 163, 90, 0.36);
}

.lux-btn-ghost-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(237, 228, 212, 0.28);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--lux-champagne);
    background: rgba(237, 228, 212, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lux-btn-ghost-light:hover {
    background: rgba(237, 228, 212, 0.1);
    border-color: rgba(237, 228, 212, 0.5);
}

.lux-editorial-quote {
    position: relative;
    border-left: 1px solid rgba(220, 201, 138, 0.28);
    padding-left: 1.75rem;
}

.lux-editorial-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.25rem;
    line-height: 1;
    color: var(--lux-gold);
    opacity: 0.55;
}

.lux-feature-row {
    border-top: 1px solid var(--lux-border-soft);
}

.lux-feature-row:last-child {
    border-bottom: 1px solid var(--lux-border-soft);
}

/* ── Footer ── */
.lux-footer {
    margin-top: 4rem;
    border-top: 1px solid rgba(196, 163, 90, 0.12);
    background: linear-gradient(180deg, var(--lux-charcoal) 0%, var(--lux-ink) 100%);
    color: var(--lux-champagne);
}

/* ── Admin tabs ── */
.lux-tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lux-muted);
    background: rgba(42, 36, 32, 0.05);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lux-tab-btn:hover {
    color: var(--lux-charcoal);
    background: rgba(196, 163, 90, 0.1);
}

.lux-tab-btn.is-active {
    color: var(--lux-ink);
    background: linear-gradient(135deg, var(--lux-gold-light) 0%, var(--lux-gold) 70%);
    border-color: rgba(196, 163, 90, 0.4);
}

.lux-footer-accent {
    color: var(--lux-gold-light);
}

/* ── Hero panel (login) ── */
.lux-hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--lux-radius-xl);
}

.lux-hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(196, 163, 90, 0.25), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(228, 217, 204, 0.15), transparent 40%),
        linear-gradient(160deg, var(--lux-charcoal) 0%, #0f0d0b 100%);
    z-index: 0;
}

.lux-hero-panel > * {
    position: relative;
    z-index: 1;
}

.lux-ornament {
    position: absolute;
    width: 12rem;
    height: 12rem;
    border: 1px solid rgba(196, 163, 90, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.lux-ornament-1 { top: -4rem; right: -3rem; }
.lux-ornament-2 { bottom: -5rem; left: -4rem; width: 16rem; height: 16rem; opacity: 0.5; }

/* ── Auth layout ── */
.lux-auth-grid {
    display: grid;
    gap: 1.75rem;
    align-items: stretch;
}

.lux-auth-hero {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.1), transparent 42%),
        radial-gradient(circle at 82% 75%, rgba(196, 163, 90, 0.2), transparent 45%),
        linear-gradient(150deg, #2a2420 0%, #171412 58%, #0e0c0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 64px rgba(10, 9, 8, 0.24);
    color: var(--lux-champagne);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 29rem;
}

.lux-auth-orb {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(4px);
}

.lux-auth-orb-a {
    width: 12rem;
    height: 12rem;
    top: -4.5rem;
    right: -3.25rem;
    background: rgba(220, 201, 138, 0.18);
}

.lux-auth-orb-b {
    width: 14rem;
    height: 14rem;
    bottom: -5.75rem;
    left: -4.5rem;
    background: rgba(237, 228, 212, 0.12);
}

.lux-auth-hero-top,
.lux-auth-hero-body,
.lux-auth-hero-stats {
    position: relative;
    z-index: 1;
}

.lux-auth-hero-stats {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lux-auth-chip {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 0.9rem 1rem;
}

.lux-auth-panel {
    display: flex;
    align-items: center;
}

/* ── Stat tile ── */
.lux-stat {
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--lux-border-soft);
    background: rgba(255, 255, 255, 0.5);
}

.lux-stat-gold {
    background: linear-gradient(145deg, rgba(196, 163, 90, 0.1) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-color: rgba(196, 163, 90, 0.2);
}

/* ── Lesson accordion feel ── */
.lux-lesson-header {
    border-bottom: 1px solid var(--lux-border-soft);
}

.lux-video-frame {
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--lux-charcoal);
    box-shadow: 0 20px 50px rgba(10, 9, 8, 0.15);
    border: 1px solid rgba(196, 163, 90, 0.1);
}

/* ── Animations ── */
@keyframes lux-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lux-animate-in {
    animation: lux-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lux-animate-in-delay-1 { animation-delay: 0.08s; }
.lux-animate-in-delay-2 { animation-delay: 0.16s; }
.lux-animate-in-delay-3 { animation-delay: 0.24s; }

@keyframes lux-unlock-pulse {
    0% {
        transform: translateY(10px) scale(0.985);
        box-shadow: 0 10px 28px rgba(29, 53, 83, 0.12);
    }
    55% {
        transform: translateY(0) scale(1.005);
        box-shadow: 0 24px 60px rgba(29, 53, 83, 0.24);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 18px 40px rgba(29, 53, 83, 0.16);
    }
}

.lux-unlock-card {
    border: 1px solid rgba(61, 98, 143, 0.35);
    animation: lux-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both,
               lux-unlock-pulse 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Admin ── */
.lux-admin-row {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lux-admin-row:hover {
    border-color: rgba(196, 163, 90, 0.28);
    box-shadow: 0 8px 24px rgba(10, 9, 8, 0.05);
}

.lux-file-input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: 1rem;
    border: 1px dashed rgba(196, 163, 90, 0.35);
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    color: var(--lux-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lux-file-input:hover {
    border-color: var(--lux-gold);
    background: #fff;
}

.lux-file-input::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.375rem 0.875rem;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2f2a26, #201c19);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
}

.lux-input select,
select.lux-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237a6f63'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

textarea.lux-input {
    min-height: 6rem;
}

/* ── Responsive nav ── */
@media (max-width: 640px) {
    .lux-nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }

    .lux-auth-hero {
        min-height: 24rem;
        padding: 1.5rem;
    }

    .lux-auth-hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .lux-auth-grid {
        grid-template-columns: 1.06fr 0.94fr;
        gap: 2rem;
    }
}
