:root {
  --ink: #111019;
  --muted: #666471;
  --paper: #f7f3eb;
  --white: #fffdf8;
  --plum: #5e1742;
  --coral: #ef5d55;
  --lime: #c7f36b;
  --line: rgba(17, 16, 25, 0.12);
  --shadow: 0 24px 70px rgba(30, 20, 34, 0.12);
  --radius: 28px;
}

/* Admin dashboard mobile containment. Scoped with :has() to avoid changing public .shell layouts. */
@media (max-width: 900px) {
  body:has(> .shell > .side) { overflow-x: hidden; }
  body:has(> .shell > .side) > .shell { grid-template-columns: minmax(0, 1fr); width: 100%; overflow-x: hidden; }
  body:has(> .shell > .side) .side { min-width: 0; width: 100%; box-sizing: border-box; overflow: hidden; }
  body:has(> .shell > .side) .menu { display: flex; overflow-x: auto; min-width: 0; width: 100%; }
  body:has(> .shell > .side) .menu button { flex: 0 0 auto; }
  body:has(> .shell > .side) .main { width: 100%; box-sizing: border-box; }
  body:has(> .shell > .side) .top { flex-wrap: wrap; }
  body:has(> .shell > .side) .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  body:has(> .shell > .side) .metrics,
  body:has(> .shell > .side) .form-grid { grid-template-columns: minmax(0, 1fr); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { font: 700 0.73rem/1 'Manrope', sans-serif; letter-spacing: 0.18em; text-transform: uppercase; }
.display { font: 800 clamp(3rem, 8vw, 7.7rem)/0.88 'Manrope', sans-serif; letter-spacing: -0.07em; margin: 0; }
.section-title { font: 800 clamp(2.2rem, 4.8vw, 4.8rem)/0.98 'Manrope', sans-serif; letter-spacing: -0.055em; margin: 0; }
.lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.75; }
.nav { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 0.9rem/1.2 'Manrope', sans-serif; letter-spacing: 0.02em; }
.brand img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 14px; padding: 5px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links > a:not(.button) { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.hero .nav-links > a:not(.button), .form-hero .nav-links > a:not(.button) { color: rgba(255,255,255,.72); }
.hero .nav-links > a:not(.button):hover, .form-hero .nav-links > a:not(.button):hover { color: #fff; }
.button { border: 0; border-radius: 999px; padding: 14px 21px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; cursor: pointer; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 26px rgba(17,16,25,.2); }
.button-light { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.button-coral { background: var(--coral); color: #fff; box-shadow: 0 12px 28px rgba(239,93,85,.28); }
.button-lime { background: var(--lime); color: var(--ink); }
.button[disabled] { opacity: .55; pointer-events: none; transform: none; }

.hero { min-height: 820px; overflow: hidden; position: relative; background: var(--paper); }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 56%; height: 100%; background: var(--plum); border-bottom-left-radius: 80px; }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; min-height: 700px; gap: 54px; position: relative; z-index: 2; }
.hero-copy { padding: 60px 0 90px; }
.hero-copy .eyebrow { color: var(--plum); margin-bottom: 24px; }
.hero-copy .display span { color: var(--coral); }
.hero-copy .lead { max-width: 630px; margin: 30px 0; }
.association-strip { display: inline-grid; gap: 8px; margin: 0 0 26px; }
.association-strip span { color: var(--muted); font: 800 .68rem 'Manrope', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.association-strip img { display: block; width: min(430px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; box-shadow: 0 16px 36px rgba(30,20,34,.08); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.date-strip { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 38px; margin-top: 38px; border-top: 1px solid var(--line); }
.date-item strong { display: block; font: 800 1.04rem 'Manrope', sans-serif; }
.date-item span { color: var(--muted); font-size: .82rem; }
.runway { position: relative; height: 570px; display: grid; place-items: center; }
.fair-showcase { isolation: isolate; }
.fair-brand-card { position: relative; z-index: 2; width: min(530px, 92%); background: #fff; border-radius: 34px; padding: 24px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.fair-logo-hero { display: block; width: 100%; border-radius: 18px; }
.anniversary-badge { position: absolute; z-index: 3; width: 142px; right: 18px; top: 56px; background: #fff; border-radius: 50%; padding: 8px; box-shadow: 0 18px 40px rgba(17,16,25,.22); transform: rotate(7deg); }
.runway-card { width: min(390px, 84%); aspect-ratio: .72; background: var(--coral); border-radius: 190px 190px 28px 28px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.runway-card::before { content: ''; position: absolute; width: 72%; height: 90%; left: 14%; top: 10%; border: 3px solid rgba(255,255,255,.5); border-bottom: 0; border-radius: 170px 170px 0 0; }
.runway-card::after { content: 'FRESH\A FASHION\A FESTIVAL'; white-space: pre; position: absolute; left: 12%; bottom: 12%; color: #fff; font: 800 clamp(2.2rem, 4vw, 4rem)/.92 'Manrope', sans-serif; letter-spacing: -.06em; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.orbit-a { width: 470px; height: 470px; }
.orbit-b { width: 570px; height: 280px; transform: rotate(-22deg); }
.ticket-chip { position: absolute; right: 0; bottom: 44px; background: var(--lime); border-radius: 22px; padding: 18px; width: 190px; transform: rotate(5deg); box-shadow: var(--shadow); }
.ticket-chip b { font: 800 1.05rem 'Manrope', sans-serif; display: block; margin-bottom: 4px; }
.ticket-chip span { font-size: .78rem; color: #343329; }

.stats { padding: 46px 0; background: var(--ink); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.13); }
.stat { background: var(--ink); padding: 22px 24px; min-height: 128px; }
.stat small { color: #aaa8b1; display: block; line-height: 1.5; }
.stat strong { font: 800 1.55rem 'Manrope', sans-serif; display: block; margin-bottom: 18px; }
.section { padding: 110px 0; }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: end; margin-bottom: 58px; }
.section-head .lead { margin: 0; max-width: 600px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit { padding: 32px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); min-height: 255px; }
.benefit .num { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; }
.benefit h3 { font: 800 1.35rem 'Manrope', sans-serif; margin: 54px 0 10px; }
.benefit p { color: var(--muted); line-height: 1.65; margin: 0; }
.steps { background: var(--plum); color: #fff; }
.steps .section-title { max-width: 680px; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; }
.step { border-top: 1px solid rgba(255,255,255,.35); padding-top: 20px; }
.step b { color: var(--lime); font: 800 2.8rem 'Manrope', sans-serif; }
.step h3 { font: 700 1.05rem 'Manrope', sans-serif; margin: 24px 0 8px; }
.step p { color: rgba(255,255,255,.68); line-height: 1.6; font-size: .9rem; }
.cta-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; background: var(--coral); color: #fff; border-radius: 40px; padding: 58px; }
.cta-panel .section-title { font-size: clamp(2.4rem, 5vw, 5rem); }
.cta-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.footer { padding: 42px 0; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; color: var(--muted); font-size: .86rem; }

.form-page { min-height: 100vh; background: var(--paper); }
.form-hero { background: var(--ink); color: #fff; padding: 54px 0 130px; position: relative; overflow: hidden; }
.form-hero::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -60px; top: -160px; border: 80px solid var(--plum); opacity: .9; }
.form-hero .brand { color: #fff; }
.form-intro { max-width: 760px; position: relative; z-index: 2; }
.form-intro h1 { font: 800 clamp(2.7rem, 6vw, 5.5rem)/.94 'Manrope', sans-serif; letter-spacing: -.06em; margin: 76px 0 22px; }
.form-intro p { color: #b9b7c0; line-height: 1.7; max-width: 640px; }
.form-wrap { position: relative; z-index: 4; margin: -78px auto 80px; }
.form-card { background: var(--white); border-radius: 34px; box-shadow: var(--shadow); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font: 700 .78rem 'Manrope', sans-serif; margin: 0 0 8px; letter-spacing: .02em; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d8d3ca; background: #fff; border-radius: 15px; padding: 14px 15px; color: var(--ink); outline: none; transition: border .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); box-shadow: 0 0 0 4px rgba(94,23,66,.1); }
.field small { display: block; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); line-height: 1.5; font-size: .9rem; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--plum); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-status { min-height: 24px; color: var(--muted); font-size: .9rem; }
.form-status.error { color: #b42318; }
.required { color: var(--coral); }
.success-card { text-align: center; max-width: 680px; margin: 0 auto; }
.success-mark { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font: 800 2rem 'Manrope'; }
.success-card h2 { font: 800 2.4rem 'Manrope'; letter-spacing: -.04em; margin: 0 0 12px; }
.success-card .pass-id { display: inline-block; margin: 18px 0 28px; padding: 10px 16px; border-radius: 999px; background: #f0ebe2; font: 800 .9rem 'Manrope'; letter-spacing: .06em; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.method-card { border: 1px solid var(--line); background: #fff; border-radius: 22px; padding: 24px; text-align: left; cursor: pointer; min-height: 190px; transition: transform .2s, border .2s, box-shadow .2s; }
.method-card:hover, .method-card.active { transform: translateY(-3px); border-color: var(--plum); box-shadow: 0 16px 34px rgba(30,20,34,.1); }
.method-card .method-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: #f1ebe2; font-weight: 800; color: var(--plum); }
.method-card h3 { font: 800 1.1rem 'Manrope'; margin: 28px 0 8px; }
.method-card p { color: var(--muted); line-height: 1.55; font-size: .86rem; margin: 0; }
.method-panel { display: none; margin-top: 24px; padding: 24px; border-radius: 22px; background: #f3eee6; }
.method-panel.active { display: block; }
.inline-fields { display: flex; gap: 10px; align-items: flex-end; }
.inline-fields .field { flex: 1; }
.photo-upload { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding: 18px; border: 1px dashed #c8c1b8; border-radius: 18px; background: #fff; }
.photo-preview { width: 112px; height: 132px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: #ede8e0; color: var(--muted); font-weight: 700; text-align: center; font-size: .78rem; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.review-note { background: #eefbd3; color: #335e0b; border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-size: .86rem; line-height: 1.5; }
.otp-box { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: #fff; display: grid; gap: 14px; }
.otp-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.otp-row .field { flex: 1 1 220px; margin: 0; }
.otp-status { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.otp-status.error { color: #b42318; }
.otp-status.good { color: #315c0c; }
.verified-badge { display: none; width: fit-content; background: #eefbd3; color: #315c0c; border-radius: 999px; padding: 7px 11px; font: 800 .72rem 'Manrope'; letter-spacing: .04em; text-transform: uppercase; }
.verified-badge.show { display: inline-flex; }

.pass-page { min-height: 100vh; display: grid; place-items: center; padding: 36px 20px; background: #ded8ce; }
.pass { width: min(470px, 100%); background: var(--white); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.pass-head { padding: 30px; background: var(--plum); color: #fff; position: relative; }
.pass-head::after { content: ''; position: absolute; width: 150px; height: 150px; right: -48px; top: -48px; border-radius: 50%; background: var(--coral); }
.pass-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.pass-brand img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 15px; padding: 5px; }
.pass-head h1 { font: 800 1.55rem 'Manrope'; margin: 26px 0 6px; position: relative; z-index: 2; }
.pass-fair-logo { display: block; width: min(310px, 100%); background: #fff; border-radius: 18px; padding: 10px; margin: 24px 0 8px; position: relative; z-index: 2; box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.pass-head p { margin: 0; color: rgba(255,255,255,.7); font-size: .86rem; position: relative; z-index: 2; }
.pass-body { padding: 30px; }
.premium-ribbon { display: inline-block; background: var(--lime); padding: 7px 11px; border-radius: 999px; font: 800 .7rem 'Manrope'; letter-spacing: .1em; margin-bottom: 18px; }
.pass-name { font: 800 2rem/1 'Manrope'; letter-spacing: -.04em; margin: 0 0 8px; }
.pass-company { color: var(--muted); margin-bottom: 24px; }
.pass-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 0; border-block: 1px solid var(--line); }
.pass-meta span { color: var(--muted); font-size: .72rem; display: block; text-transform: uppercase; letter-spacing: .08em; }
.pass-meta strong { display: block; margin-top: 5px; font-size: .92rem; }
.pass-qr { width: 230px; height: 230px; margin: 26px auto 16px; display: block; }
.pass-note { color: var(--muted); text-align: center; line-height: 1.55; font-size: .86rem; }
.pass-actions { display: flex; gap: 10px; justify-content: center; padding-top: 18px; }
.loading { text-align: center; color: var(--muted); padding: 60px 20px; }

@media (max-width: 900px) {
  .hero::before { inset: 52% 0 0 0; height: 48%; border-bottom-left-radius: 0; border-top-left-radius: 44px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 0; }
  .hero-copy { padding: 50px 0 55px; background: var(--paper); position: relative; box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
  .runway { height: 560px; }
  .fair-brand-card { width: min(520px, 92%); }
  .anniversary-badge { right: calc(50% - 250px); top: 64px; }
  .section-head, .cta-panel { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1160px); }
  .nav { min-height: 72px; }
  .nav-links > a:not(.button) { display: none; }
  .brand span { display: none; }
  .hero-copy .display { font-size: clamp(3.4rem, 17vw, 5.2rem); }
  .runway { height: 470px; }
  .association-strip img { width: min(100%, 320px); }
  .fair-brand-card { width: min(370px, 92%); padding: 16px; border-radius: 26px; }
  .fair-logo-hero { border-radius: 14px; }
  .anniversary-badge { width: 104px; right: 8px; top: 74px; padding: 6px; }
  .ticket-chip { right: 2px; width: 165px; }
  .orbit-a { width: 360px; height: 360px; }
  .orbit-b { width: 390px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 112px; padding: 18px; }
  .section { padding: 76px 0; }
  .section-head { gap: 24px; margin-bottom: 36px; }
  .benefit-grid, .step-grid, .form-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .inline-fields { align-items: stretch; flex-direction: column; }
  .otp-row { align-items: stretch; flex-direction: column; }
  .photo-upload { grid-template-columns: 88px 1fr; }
  .photo-preview { width: 88px; height: 104px; }
  .field.full { grid-column: auto; }
  .benefit { min-height: 220px; }
  .cta-panel { padding: 34px 24px; border-radius: 28px; }
  .footer-row, .form-actions { align-items: stretch; flex-direction: column; }
  .form-card { padding: 24px 18px; border-radius: 26px; }
  .form-hero { padding-bottom: 112px; }
  .form-intro h1 { margin-top: 52px; }
}

@media print {
  body { background: #fff; }
  .pass-page { padding: 0; background: #fff; display: block; }
  .pass { box-shadow: none; margin: 0 auto; }
  .pass-actions { display: none; }
}
