@import url("base.css");
@import url("components.css");

body { position: relative; }
/* Poster sunburst fading in behind the checkout */
body::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 330px; pointer-events: none;
  background: linear-gradient(180deg, #1c1340, #4a2f78 38%, #b23a6a 72%, #ff8f3a);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.topbar { z-index: 40; }
.topbar__title { font: 900 1.05rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.topbar__title .script { font: 400 1.7rem var(--font-script); color: var(--purple); letter-spacing: 0; text-transform: none; margin-right: .15em; }
@media (max-width: 520px) { .topbar__title { font-size: .8rem; letter-spacing: .1em; } .topbar__title .script { font-size: 1.3rem; } }
.page { position: relative; z-index: 1; padding: 1.8rem 0 5rem; }
.small { font-size: .9rem; }
.grid-2 { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card + .card { margin-top: 1rem; }
#session-banner { position: sticky; top: 84px; z-index: 15; margin-bottom: 1.2rem; box-shadow: var(--shadow-soft); }

/* Stepper */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 1rem .4rem .9rem; margin: 0 0 1.4rem; counter-reset: s; background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.stepper li { display: grid; justify-items: center; gap: .45rem; position: relative; font: 800 .68rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); transition: color .3s; }
.stepper li::before { content: ""; position: absolute; top: 18px; left: calc(-50% + 24px); right: calc(50% + 24px); height: 4px; border-radius: 4px; background: var(--line); transition: background .4s var(--ease); }
.stepper li:first-child::before { display: none; }
.stepper li.is-done::before, .stepper li.is-current::before { background: var(--amber); }
.stepper span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--line-strong); background: var(--paper); font-size: .95rem; font-weight: 900; transition: all .3s var(--ease); }
.stepper em { font-style: normal; }
.stepper .is-current { color: var(--navy); }
.stepper .is-current span { border-color: var(--sun-hi); background: var(--sun-hi); color: var(--navy-900); box-shadow: 0 0 0 5px rgba(255, 113, 5, .22); transform: scale(1.08); }
.stepper .is-done { color: var(--purple); }
.stepper .is-done span { border-color: var(--purple); background: var(--purple); color: var(--paper); }
@media (max-width: 480px) { .stepper em { font-size: .58rem; letter-spacing: .04em; } }

/* Steps */
.step { display: none; }
.step.is-active { display: block; animation: step-in .45s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
.nav { display: flex; gap: .8rem; margin-top: 1.2rem; }
.nav .btn { flex: 1; }
.nav .btn:only-child { margin-left: auto; }

/* Quantity */
.qty { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.qty label { position: relative; }
.qty input { position: absolute; opacity: 0; inset: 0; }
.qty span { display: grid; place-items: center; height: 64px; border: 2.5px solid var(--line-strong); border-radius: var(--radius-sm); font: 900 1.8rem var(--font-body); cursor: pointer; transition: all .2s var(--ease); background: var(--paper); color: var(--navy); }
.qty span:hover { border-color: var(--purple); }
.qty input:checked + span { background: var(--amber); border-color: var(--navy); color: var(--navy-900); transform: translateY(-3px); box-shadow: 0 3px 0 var(--plum); }
.qty input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 3px; }
.qty input:disabled + span { opacity: .28; cursor: not-allowed; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 0; padding-top: 1rem; border-top: 2px solid var(--line); font: 800 .8rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }
.total-row strong { font-size: 1.65rem; font-weight: 900; color: var(--navy); letter-spacing: 0; }

/* Attendees */
.attendee { padding: 1rem; margin-top: 1rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--purple-50); }
.attendee .pill { margin-bottom: .8rem; }
.attendee .field:last-child { margin-bottom: 0; }

/* Bank */
.bank { display: grid; gap: .2rem; margin: 0 0 1.2rem; }
.bank > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 2px solid var(--line); }
.bank dt { font: 800 .7rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--purple); }
.bank dd { margin: 0; display: flex; align-items: center; gap: .6rem; font: 800 1.02rem var(--font-body); letter-spacing: .02em; text-align: right; overflow-wrap: anywhere; }
.copy { border: 2px solid var(--navy); background: transparent; color: var(--navy); border-radius: 999px; padding: .28rem .8rem; font: 800 .68rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.copy:hover { background: var(--navy); color: var(--paper); }

/* Receipts */
.drop { display: grid; justify-items: center; gap: .4rem; text-align: center; padding: 2rem 1rem; border: 3px dashed var(--purple); border-radius: var(--radius); color: var(--purple); background: var(--purple-50); cursor: pointer; transition: all .2s; }
.drop strong { color: var(--navy); font-weight: 800; }
.drop:hover, .drop.is-over { background: var(--teal-100); border-color: var(--teal-600); color: var(--teal-600); transform: scale(1.01); }
.files { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.file { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.file__icon { font: 900 .7rem var(--font-body); letter-spacing: .08em; padding: .4rem .55rem; border-radius: 8px; background: var(--sun-hi); color: var(--navy-900); }
.file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.file__name small { display: block; color: var(--text-mute); font-weight: 600; }
.file__rm { border: 0; background: none; color: var(--text-soft); cursor: pointer; font-size: 1.1rem; padding: .3rem .5rem; }
.file__rm:hover { color: var(--danger); }
[data-note] { margin: .8rem 0 0; color: var(--ok); font-weight: 700; } [data-note].is-error { color: var(--danger); }
#form-error { margin-top: 1rem; }

/* Success */
.success { text-align: center; display: grid; justify-items: center; gap: 1rem; padding-top: 1rem; }
.success h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); color: var(--navy); }
.success .ring { fill: var(--teal-100); stroke: var(--teal); stroke-width: 2.8; stroke-dasharray: 170; stroke-dashoffset: 170; animation: draw .8s .1s var(--ease) forwards; }
.success .tick { fill: none; stroke: var(--purple); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 42; stroke-dashoffset: 42; animation: draw .5s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.summary { width: min(100%, 380px); margin: .5rem 0; text-align: left; }
.summary div { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 2px solid var(--line); } .summary div:last-child { border: 0; }
.summary dt { color: var(--text-soft); font-weight: 700; } .summary dd { margin: 0; font-weight: 800; }

/* Modal */
.modal { width: min(92vw, 460px); padding: 1.6rem; color: var(--navy); background: var(--paper); border: 3px solid var(--navy); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(38, 32, 74, .7); backdrop-filter: blur(4px); }
.modal h2 { font-size: 1.4rem; color: var(--navy); margin-bottom: .8rem; }
.confirm-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .4rem; }
.confirm-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; background: var(--purple-50); border-radius: var(--radius-sm); font-weight: 700; }
.confirm-list small { color: var(--purple); font-weight: 800; }
.shake { animation: shake .4s; } @keyframes shake { 25% { translate: -6px; } 75% { translate: 6px; } }

/* ═══ Dark glass checkout (poster palette as accents) ═══ */
.theme-dark { --glass: rgba(247, 240, 225, .07); --glass-line: rgba(247, 240, 225, .16); --ink: #f4f1fa; --ink-soft: #bdb6dc;
  color: var(--ink); background: #14102b; background-image: radial-gradient(900px 420px at 50% -80px, rgba(255, 113, 5, .45), transparent 70%), radial-gradient(700px 500px at 100% 30%, rgba(64, 201, 192, .14), transparent 70%), radial-gradient(700px 500px at 0% 60%, rgba(83, 60, 128, .5), transparent 70%); background-attachment: fixed; }
.theme-dark::before { height: 420px; opacity: .5; background: repeating-conic-gradient(from -5deg at 50% 165%, rgba(64, 201, 192, .55) 0 3.6deg, transparent 3.6deg 5deg, rgba(251, 172, 43, .5) 5deg 8.6deg, transparent 8.6deg 10deg); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.theme-dark .topbar { background: rgba(20, 16, 43, .65); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-line); box-shadow: none; }
.theme-dark .brand img { background: var(--paper); border-radius: 8px; padding: 3px 8px; mix-blend-mode: normal; }
.theme-dark .topbar__title { color: var(--ink); }
.theme-dark .topbar__title .script { color: var(--amber); }
.theme-dark a { color: var(--amber); }
.theme-dark .muted { color: var(--ink-soft); }

.theme-dark .card, .theme-dark .stepper, .theme-dark .modal, .theme-dark .banner {
  background: var(--glass); color: var(--ink); border: 1px solid var(--glass-line); border-radius: 18px;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(247, 240, 225, .12); }
.theme-dark .card__title { color: var(--ink); border-bottom: 3px solid var(--sun-hi); }
.theme-dark .field > label, .theme-dark .label { color: var(--amber); }
.theme-dark .input, .theme-dark select.input, .theme-dark textarea.input { background: rgba(247, 240, 225, .06); color: var(--ink); border: 1px solid var(--glass-line); border-radius: 12px; }
.theme-dark .input::placeholder { color: rgba(244, 241, 250, .4); }
.theme-dark .input:hover { border-color: rgba(247, 240, 225, .36); }
.theme-dark .input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(64, 201, 192, .25); background: rgba(247, 240, 225, .1); }
.theme-dark .input.is-invalid { border-color: #ff6b7d; background: rgba(255, 107, 125, .1); }
.theme-dark .input.is-valid { border-color: rgba(64, 201, 192, .8); }
.theme-dark select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23fbac2b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E"); }
.theme-dark select.input option { background: #1d1740; color: var(--ink); }
.theme-dark .field-error { color: #ff8a98; }

.theme-dark .btn--coral { --bg: linear-gradient(135deg, var(--sun-hi), var(--amber)); --fg: #26204a; --bd: transparent; border: 0; background: var(--bg); box-shadow: 0 8px 26px rgba(255, 113, 5, .35); }
.theme-dark .btn--coral:hover { box-shadow: 0 12px 34px rgba(255, 113, 5, .55); color: #26204a; }
.theme-dark .btn { --bg: var(--amber); }
.theme-dark .btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--glass-line); background: var(--glass); }
.theme-dark .btn--ghost:hover { --bg: rgba(247, 240, 225, .16); --fg: var(--paper); color: var(--paper); box-shadow: none; }
.theme-dark .btn--sm { --bg: var(--amber); }

.theme-dark .banner--wait { border-color: rgba(138, 93, 154, .8); background: rgba(83, 60, 128, .35); }
.theme-dark .banner--ok { border-color: rgba(64, 201, 192, .6); background: rgba(64, 201, 192, .14); }
.theme-dark .banner--warn { border-color: rgba(251, 172, 43, .6); background: rgba(251, 172, 43, .13); }
.theme-dark .banner--err { border-color: rgba(255, 107, 125, .7); background: rgba(255, 107, 125, .14); }
.theme-dark #session-banner { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

.theme-dark .stepper li { color: rgba(244, 241, 250, .45); }
.theme-dark .stepper li::before { background: rgba(247, 240, 225, .14); }
.theme-dark .stepper li.is-done::before, .theme-dark .stepper li.is-current::before { background: linear-gradient(90deg, var(--sun-hi), var(--amber)); }
.theme-dark .stepper span { background: rgba(247, 240, 225, .06); border: 1.5px solid var(--glass-line); color: var(--ink); }
.theme-dark .stepper .is-current { color: var(--ink); }
.theme-dark .stepper .is-current span { background: linear-gradient(135deg, var(--sun-hi), var(--amber)); border-color: transparent; color: #26204a; box-shadow: 0 0 0 5px rgba(255, 113, 5, .22), 0 0 24px rgba(255, 113, 5, .5); }
.theme-dark .stepper .is-done { color: var(--teal); }
.theme-dark .stepper .is-done span { background: rgba(64, 201, 192, .18); border-color: var(--teal); color: var(--teal); }

.theme-dark .qty span { background: rgba(247, 240, 225, .06); border: 1px solid var(--glass-line); color: var(--ink); border-radius: 14px; }
.theme-dark .qty span:hover { border-color: var(--amber); }
.theme-dark .qty input:checked + span { background: linear-gradient(135deg, var(--sun-hi), var(--amber)); border-color: transparent; color: #26204a; box-shadow: 0 8px 24px rgba(255, 113, 5, .4); }
.theme-dark .qty input:focus-visible + span { outline-color: var(--teal); }
.theme-dark .total-row { border-top: 1px solid var(--glass-line); color: var(--ink-soft); }
.theme-dark .total-row strong { color: var(--amber); }

.theme-dark .attendee { background: rgba(247, 240, 225, .05); border: 1px solid var(--glass-line); border-radius: 14px; }
.theme-dark .bank > div { border-bottom: 1px solid var(--glass-line); }
.theme-dark .bank dt { color: var(--amber); }
.theme-dark .copy { border: 1px solid var(--glass-line); color: var(--ink); background: var(--glass); }
.theme-dark .copy:hover { background: var(--amber); color: #26204a; border-color: var(--amber); }
.theme-dark .drop { background: rgba(247, 240, 225, .04); border: 2px dashed rgba(251, 172, 43, .6); color: var(--amber); border-radius: 16px; }
.theme-dark .drop strong { color: var(--ink); }
.theme-dark .drop:hover, .theme-dark .drop.is-over { background: rgba(64, 201, 192, .12); border-color: var(--teal); color: var(--teal); }
.theme-dark .file { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 12px; }
.theme-dark .file__icon { background: linear-gradient(135deg, var(--sun-hi), var(--amber)); color: #26204a; }
.theme-dark .file__name small { color: var(--ink-soft); }
.theme-dark .file__rm { color: var(--ink-soft); }
.theme-dark [data-note] { color: var(--teal); } .theme-dark [data-note].is-error { color: #ff8a98; }

.theme-dark .success h2 { color: var(--ink); }
.theme-dark .success .ring { fill: rgba(64, 201, 192, .15); stroke: var(--teal); }
.theme-dark .success .tick { stroke: var(--amber); }
.theme-dark .summary div { border-bottom: 1px solid var(--glass-line); }
.theme-dark .summary dt { color: var(--ink-soft); }
.theme-dark .modal { background: rgba(29, 23, 64, .85); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.theme-dark .modal::backdrop { background: rgba(10, 7, 28, .75); }
.theme-dark .modal h2 { color: var(--ink); }
.theme-dark .confirm-list li { background: rgba(247, 240, 225, .07); border-radius: 10px; }
.theme-dark .confirm-list small { color: var(--amber); }
.theme-dark .pill--gold { background: rgba(64, 201, 192, .2); color: var(--teal); border: 1px solid rgba(64, 201, 192, .5); }
.theme-dark .toast { background: #1d1740; border: 1px solid var(--glass-line); }
