:root {
    color-scheme: light;
    --bg: #f7f3ea;
    --panel: #ffffff;
    --panel-2: #f1eadc;
    --line: rgba(174, 132, 44, .22);
    --gold: #b8892d;
    --gold-2: #d6a844;
    --text: #1d1a16;
    --muted: #746b5f;
    --danger: #b42318;
    --ok: #147a45;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(214,168,68,.2), transparent 30rem),
        linear-gradient(180deg, #fffaf0 0%, var(--bg) 42%, #efe7d8 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shop-experience {
    background:
        radial-gradient(circle at 15% 10%, rgba(0, 170, 255, .22), transparent 28rem),
        radial-gradient(circle at 85% 18%, rgba(229, 62, 139, .16), transparent 24rem),
        radial-gradient(circle at 50% 82%, rgba(255,255,255,.86), rgba(255,250,240,.94) 32rem, transparent 32.2rem),
        linear-gradient(135deg, #050817 0%, #08133f 58%, #f7f3ea 58.2%, #fffaf0 100%);
}
.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button {
    width: 100%;
    border: 1px solid rgba(83,64,31,.16);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--text);
    padding: .85rem .95rem;
    font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
label { display: grid; gap: .45rem; color: var(--muted); font-size: .9rem; }
button { cursor: pointer; }
.gold-button {
    border: 0;
    color: #211706;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    box-shadow: 0 14px 35px rgba(184,137,45,.22);
}
.ghost-button {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .8rem 1rem;
    color: var(--gold-2);
}
.gold-link { color: var(--gold-2); font-weight: 800; text-decoration: underline; text-decoration-color: var(--line); }
.eyebrow { color: var(--gold-2); letter-spacing: 0; text-transform: uppercase; font-size: .78rem; font-weight: 800; }
.admin-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar {
    border-right: 1px solid var(--line);
    background: rgba(255,253,248,.9);
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand { display: grid; gap: .25rem; margin-bottom: 2rem; }
.brand span { color: var(--gold); font-weight: 900; }
.brand strong { font-size: 1.15rem; }
.sidebar nav { display: grid; gap: .35rem; }
.sidebar a { border-radius: 8px; padding: .75rem .85rem; color: var(--muted); }
.sidebar a.active, .sidebar a:hover { color: var(--text); background: rgba(214,168,68,.16); }
.logout { display: block; margin-top: 2rem; }
.admin-main { padding: 1.5rem; max-width: 1500px; width: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.topbar h1, .hero h1 { margin: .2rem 0 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.metric-grid article, .panel, .cards article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,250,240,.88));
    box-shadow: 0 18px 55px rgba(72, 54, 20, .1);
}
.metric-grid article { padding: 1rem; display: grid; gap: .25rem; }
.metric-grid span, .metric-grid small { color: var(--muted); }
.metric-grid strong { font-size: clamp(1.6rem, 4vw, 2.5rem); color: var(--gold-2); }
.panel { padding: 1.15rem; margin-bottom: 1rem; }
.grid-two { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.switch { align-content: end; grid-auto-flow: column; justify-content: start; align-items: center; }
.switch input { width: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: .8rem; border-bottom: 1px solid rgba(83,64,31,.1); vertical-align: middle; }
th { color: var(--gold-2); font-size: .82rem; }
.pill { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .55rem; color: var(--gold-2); font-size: .8rem; }
.notice, .alert { border-radius: 8px; padding: .85rem 1rem; margin-bottom: 1rem; }
.notice { background: rgba(120,217,154,.12); border: 1px solid rgba(120,217,154,.28); }
.alert { background: rgba(255,112,112,.12); border: 1px solid rgba(255,112,112,.28); }
.status-line.ok { color: var(--ok); }
.status-line.danger { color: var(--danger); }
.inline-form { display: grid; grid-template-columns: 1fr 1fr 54px; gap: .35rem; }
.inline-form:has(input[name="module_id"]) { grid-template-columns: 1fr 54px; }
.auth-panel {
    width: min(460px, calc(100vw - 2rem));
    margin: 8vh auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,253,248,.96);
    padding: 2rem;
}
.stack { display: grid; gap: 1rem; }
.frontend .hero {
    min-height: 72vh;
    display: grid;
    align-content: space-between;
    padding: 1.25rem clamp(1rem, 4vw, 4rem) 4rem;
    background:
        linear-gradient(180deg, rgba(255,250,240,.25), rgba(247,243,234,.95)),
        url('../img/premium-event.svg') center/cover no-repeat;
}
.frontend .experience-hero {
    min-height: 78vh;
    background:
        linear-gradient(110deg, rgba(255,250,240,.95) 0%, rgba(255,250,240,.78) 38%, rgba(255,250,240,.22) 100%),
        url('../img/premium-event.svg') center/cover no-repeat;
}
.commerce-hero {
    min-height: 82vh;
    padding: 1.25rem clamp(1rem, 4vw, 4rem) 4rem;
    color: #fff;
}
.commerce-hero nav { display: flex; justify-content: space-between; align-items: center; }
.commerce-hero nav strong {
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: .55rem .85rem;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
}
.commerce-hero nav a {
    border-radius: 999px;
    padding: .65rem .95rem;
    background: #e53e8b;
    color: #fff;
    font-weight: 900;
}
.commerce-hero-grid {
    min-height: 68vh;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, .85fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 4rem);
}
.commerce-hero .hero-copy h1 {
    color: #fff;
    font-size: clamp(2.4rem, 6vw, 5.3rem);
    line-height: .95;
    max-width: 840px;
}
.commerce-hero .hero-copy p { color: rgba(255,255,255,.78); }
.phone-scene { position: relative; min-height: 520px; display: grid; place-items: center; }
.phone-card {
    position: relative;
    width: min(360px, 78vw);
    aspect-ratio: 9 / 14;
    border-radius: 42px;
    background: linear-gradient(160deg, #6de8ff, #064bd8 42%, #061c73);
    box-shadow: 0 30px 90px rgba(0,0,0,.35), 0 0 55px rgba(0,183,255,.3);
    padding: 2rem 1.25rem 1.25rem;
    transform: rotate(-7deg);
}
.phone-top { display: block; width: 44%; height: 12px; margin: 0 auto 1.25rem; border-radius: 999px; background: rgba(255,255,255,.32); }
.phone-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.phone-grid i {
    min-height: 132px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.08));
    border: 1px solid rgba(255,255,255,.18);
}
.floating-sale, .buy-bubble {
    position: absolute;
    border-radius: 24px;
    color: #fff;
    font-weight: 950;
    letter-spacing: 0;
    box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.floating-sale { padding: 1.2rem 1.5rem; background: rgba(0,204,255,.72); backdrop-filter: blur(10px); }
.sale-left { left: -72px; top: 30%; }
.sale-right { right: -74px; top: 42%; }
.buy-bubble { right: -120px; bottom: 15%; padding: 1rem 2.2rem; background: #e53e8b; }
.hero nav { display: flex; justify-content: space-between; align-items: center; }
.hero nav strong {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .55rem .85rem;
    background: rgba(255,255,255,.68);
    backdrop-filter: blur(10px);
}
.hero nav a {
    border-radius: 999px;
    padding: .65rem .95rem;
    background: #1d1a16;
    color: #fffaf0;
    font-weight: 800;
}
.hero-copy { width: min(760px, 100%); }
.hero-copy h1 { font-size: clamp(2.4rem, 7vw, 5.8rem); line-height: .96; max-width: 820px; }
.hero-copy p { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero-button { width: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
.frontend main { width: min(1180px, calc(100vw - 2rem)); margin: -3rem auto 4rem; position: relative; }
.booking-panel { background: rgba(255,253,248,.96); }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 1rem; align-items: start; }
.shop-main {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.15rem;
    background: rgba(255,253,248,.9);
    box-shadow: 0 18px 55px rgba(72, 54, 20, .1);
}
.shop-main h2, .booking-panel h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); margin: .15rem 0 .4rem; }
.section-lead { color: var(--muted); max-width: 720px; margin: 0 0 1rem; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.offer-card {
    min-height: 150px;
    display: grid;
    align-content: space-between;
    text-align: left;
    border-color: var(--line);
    background: linear-gradient(145deg, #ffffff, #f4ead6);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.offer-card span { color: var(--gold); text-transform: uppercase; font-size: .74rem; font-weight: 800; }
.offer-card strong { font-size: 1.25rem; }
.offer-card small { color: var(--muted); }
.offer-card:hover, .offer-card.active {
    transform: translateY(-2px);
    border-color: rgba(184,137,45,.55);
    box-shadow: 0 18px 36px rgba(184,137,45,.16);
}
.booking-panel {
    position: sticky;
    top: 1rem;
}
.product-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: .35rem; }
.product-picks label { border: 1px solid rgba(83,64,31,.12); border-radius: 8px; padding: .8rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; background: #fffdf8; }
.product-picks input { width: auto; }
.product-picks label:has(input:checked) {
    border-color: rgba(184,137,45,.55);
    background: #fff7e4;
    box-shadow: 0 12px 28px rgba(184,137,45,.12);
}
.module-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: .35rem; }
.module-picker label {
    border: 1px solid rgba(83,64,31,.12);
    border-radius: 8px;
    padding: .9rem;
    background: #fffdf8;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .35rem .65rem;
    align-items: start;
}
.module-picker input { width: auto; margin-top: .2rem; }
.module-picker span { color: var(--text); font-weight: 800; }
.module-picker small { grid-column: 2; color: var(--muted); line-height: 1.35; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cards article { padding: 1rem; min-height: 160px; }
.cards span { color: var(--gold-2); font-size: .78rem; text-transform: uppercase; }
.cards p { color: var(--muted); }
.cards a { color: var(--gold); font-weight: 800; }
.checkout-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1rem;
    align-items: start;
}
.front-experience {
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    padding: clamp(1rem, 3vw, 1.4rem);
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(22px);
    box-shadow: 0 24px 80px rgba(4,13,47,.28);
}
.front-heading {
    display: grid;
    gap: .25rem;
    margin-bottom: 1rem;
    color: #fff;
}
.front-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.front-heading p { max-width: 760px; color: rgba(255,255,255,.76); margin: 0; }
.landing-grid .experience-card {
    min-height: 230px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(110,232,255,.42), transparent 38%),
        linear-gradient(145deg, rgba(8,35,116,.92), rgba(7,9,35,.92));
    border-color: rgba(110,232,255,.22);
    box-shadow: 0 22px 60px rgba(0,0,0,.24);
}
.landing-grid .experience-card.event {
    background:
        radial-gradient(circle at 22% 16%, rgba(229,62,139,.46), transparent 36%),
        linear-gradient(145deg, rgba(24,13,80,.94), rgba(7,9,35,.92));
}
.landing-grid .experience-card small { color: rgba(255,255,255,.72); }
.landing-grid .experience-card span { color: #6de8ff; }
.landing-grid .experience-card:hover {
    box-shadow: 0 24px 70px rgba(0,184,255,.24);
    border-color: rgba(110,232,255,.55);
}
.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
}
.checkout-modal.open { display: block; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(0,184,255,.24), transparent 30rem),
        radial-gradient(circle at 80% 20%, rgba(229,62,139,.2), transparent 28rem),
        rgba(5,8,23,.78);
    backdrop-filter: blur(16px);
}
.modal-card {
    position: relative;
    width: min(1180px, calc(100vw - 1.2rem));
    max-height: calc(100vh - 1.2rem);
    margin: .6rem auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: .85rem;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 18px;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(238,248,255,.9));
    box-shadow: 0 30px 100px rgba(0,0,0,.38);
}
.modal-close {
    position: sticky;
    top: 0;
    grid-column: 1 / -1;
    justify-self: end;
    width: auto;
    border-radius: 999px;
    background: #071022;
    color: #fff;
    border: 0;
    padding: .55rem .8rem;
    z-index: 2;
}
.modal-card .step-rail { grid-column: 1 / -1; }
.modal-shop { min-height: 560px; }
.modal-cart { position: sticky; top: 1rem; align-self: start; }
.selected-orbit {
    min-height: 280px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(0,184,255,.28), transparent 12rem),
        linear-gradient(145deg, #071022, #101d58);
    color: #fff;
}
.orbit-core {
    width: min(280px, 72vw);
    aspect-ratio: 1;
    border-radius: 999px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1.25rem;
    background: radial-gradient(circle at 35% 28%, #6de8ff, #1b56ff 55%, #14205e);
    box-shadow: 0 0 60px rgba(0,184,255,.4);
    font-weight: 950;
    font-size: 1.35rem;
}
.selected-orbit span {
    position: absolute;
    width: 18px;
    aspect-ratio: 1;
    border-radius: 999px;
    background: #e53e8b;
    box-shadow: 0 0 20px rgba(229,62,139,.6);
}
.selected-orbit span:nth-child(2) { transform: translate(160px, -88px); }
.selected-orbit span:nth-child(3) { transform: translate(-145px, 70px); background: #6de8ff; }
.selected-orbit span:nth-child(4) { transform: translate(40px, 135px); background: #f6c84c; }
.step-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .6rem;
}
.step-pill {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.76);
    color: var(--text);
    font-weight: 850;
}
.step-pill.active {
    background: linear-gradient(135deg, #00b8ff, #e53e8b);
    color: #fff;
    border-color: transparent;
}
.checkout-shop, .step-panel, .live-cart {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,253,248,.94);
    box-shadow: 0 18px 55px rgba(72,54,20,.1);
}
.checkout-shop { padding: 0; }
.step-panel { display: none; padding: 1.15rem; box-shadow: none; border: 0; background: transparent; }
.step-panel.active { display: block; }
.step-heading h2 { margin: .15rem 0 .3rem; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.step-heading p { color: var(--muted); }
.experience-grid, .product-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}
.experience-card, .shop-product {
    min-height: 190px;
    display: grid;
    align-content: space-between;
    text-align: left;
    border: 1px solid rgba(83,64,31,.12);
    border-radius: 8px;
    padding: 1rem;
    background: linear-gradient(150deg, #ffffff, #edf8ff 48%, #fff0f7);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.experience-card span, .shop-product span { color: #e53e8b; text-transform: uppercase; font-size: .74rem; font-weight: 900; }
.experience-card strong, .shop-product strong { font-size: 1.15rem; }
.experience-card small, .shop-product small { color: var(--muted); line-height: 1.35; }
.experience-card:hover, .experience-card.active, .shop-product:has(input:checked) {
    transform: translateY(-3px);
    border-color: rgba(0,184,255,.46);
    box-shadow: 0 18px 40px rgba(0,97,180,.14);
}
.shop-product input { width: auto; }
.shop-product b { color: var(--text); font-size: 1.05rem; }
.compact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.live-cart {
    position: sticky;
    top: 1rem;
    padding: 1rem;
}
.live-cart h3 { margin: .2rem 0 1rem; font-size: 1.4rem; }
.live-cart ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.live-cart li {
    border: 1px solid rgba(83,64,31,.1);
    border-radius: 8px;
    padding: .65rem;
    background: #fffdf8;
    color: var(--muted);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    margin: 1rem 0;
    padding-top: 1rem;
}
.cart-total strong { font-size: 1.3rem; }
.stripe-button, .pay-link { margin-top: .8rem; }
@media (max-width: 920px) {
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar, .grid-two { display: grid; grid-template-columns: 1fr; }
    .metric-grid, .form-grid, .cards, .product-picks, .shop-layout, .offer-grid, .module-picker, .commerce-hero-grid, .checkout-steps, .step-rail, .experience-grid, .product-shop-grid, .compact-form { grid-template-columns: 1fr; }
    .booking-panel { position: static; }
    .commerce-hero { color: var(--text); }
    .commerce-hero .hero-copy h1 { color: var(--text); }
    .commerce-hero .hero-copy p { color: var(--muted); }
    .phone-scene { min-height: 340px; }
    .sale-left { left: -12px; }
    .sale-right, .buy-bubble { right: -12px; }
    .live-cart { position: static; }
    .modal-card { grid-template-columns: 1fr; }
    .modal-card .step-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
