@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #0e0b12;
  --ink-soft: #17131d;
  --paper: #f7eee2;
  --paper-soft: #fffaf3;
  --orange: #ff7415;
  --orange-bright: #ff8a26;
  --purple: #7d3fc1;
  --lilac: #c5a8ff;
  --muted: #b9aebb;
  --muted-dark: #796b82;
  --line: rgba(255, 255, 255, .14);
  --line-dark: rgba(26, 17, 32, .14);
  --display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --body: 'Manrope', 'Trebuchet MS', sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--paper); background: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
body::selection { color: var(--ink); background: var(--orange-bright); }
button, input, select { font: inherit; }
button, a, input[type='checkbox'], select { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; color: var(--ink); background: var(--orange-bright); border-radius: 10px; font-weight: 800; transition: top 180ms ease; }
.skip-link:focus { top: 16px; }
.site-shell { position: relative; isolation: isolate; width: min(100%, 1440px); min-height: 100vh; margin: 0 auto; overflow: hidden; }
.ambient { position: absolute; z-index: -2; pointer-events: none; filter: blur(8px); border-radius: 50%; }
.ambient-one { width: 560px; height: 560px; top: 100px; right: -250px; background: rgba(125, 63, 193, .21); }
.ambient-two { width: 460px; height: 460px; bottom: 20px; left: -260px; background: rgba(255, 116, 21, .12); }
.noise { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .035; mix-blend-mode: screen; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; padding: 20px clamp(22px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--paper); background: linear-gradient(145deg, var(--orange), var(--orange-bright)); border-radius: 50% 50% 50% 12px; font-family: var(--display); font-size: 19px; font-weight: 800; transform: rotate(-10deg); }
.brand-copy { display: grid; gap: 0; line-height: 1; letter-spacing: .1em; }
.brand-copy strong { font-family: var(--display); font-size: 17px; letter-spacing: .18em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .36em; }
.header-right { display: flex; align-items: center; gap: 20px; }
.open-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.open-badge i { width: 7px; height: 7px; background: #57cf85; border-radius: 50%; box-shadow: 0 0 0 4px rgba(87, 207, 133, .12); }
.admin-link, .footer-admin { padding: 7px 0; color: var(--muted); background: transparent; border: 0; font-family: var(--mono); font-size: 10px; transition: color 180ms ease; }
.admin-link:hover, .admin-link:focus-visible, .footer-admin:hover, .footer-admin:focus-visible { color: var(--paper); }

.registration-page { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(410px, .8fr); align-items: center; gap: clamp(48px, 8vw, 128px); max-width: 1200px; min-height: calc(100vh - 150px); margin: 0 auto; padding: 64px clamp(22px, 7vw, 96px) 78px; }
.poster-column { width: min(100%, 520px); }
.poster-frame { position: relative; aspect-ratio: .765; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); border-radius: 26px; box-shadow: 0 28px 80px rgba(0, 0, 0, .34); transform: rotate(-2deg); }
.poster-frame::after { position: absolute; inset: 13px; content: ''; border: 1px solid rgba(255, 255, 255, .24); border-radius: 17px; pointer-events: none; }
.poster-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.poster-sticker { position: absolute; top: 18px; right: 16px; z-index: 2; display: flex; align-items: center; gap: 7px; width: 104px; height: 104px; padding: 12px; color: var(--ink); background: var(--orange); border-radius: 50%; box-shadow: 0 14px 28px rgba(0, 0, 0, .25); transform: rotate(9deg); }
.poster-sticker strong { font-family: var(--display); font-size: 45px; letter-spacing: -.12em; line-height: .75; }
.poster-sticker span { padding-left: 7px; border-left: 1px solid rgba(14, 11, 18, .35); font-family: var(--mono); font-size: 9px; line-height: 1.4; }
.event-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.event-facts div { display: grid; gap: 5px; padding-top: 12px; border-top: 1px solid var(--line); }
.event-facts div:last-child { grid-column: 1 / -1; }
.event-facts span { color: var(--orange); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.event-facts strong { color: var(--paper); font-size: 11px; line-height: 1.4; }

.form-column { width: min(100%, 510px); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: var(--orange-bright); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; }
.eyebrow > span { width: 19px; height: 1px; background: currentColor; }
.form-column h1, .admin-header h1 { margin: 0; font-family: var(--display); font-size: clamp(55px, 6.4vw, 88px); font-weight: 700; letter-spacing: -.085em; line-height: .85; text-transform: uppercase; }
.form-column h1 em, .admin-header h1 em { color: var(--orange); font-style: normal; }
.form-intro { margin: 25px 0 0; color: var(--muted); font-size: 14px; }
.capacity-notice { margin-top: 18px; padding: 12px 14px; color: #8d2f20; background: #fff0ea; border: 1px solid #f1c4b6; border-radius: 10px; font-size: 11px; font-weight: 800; }
.registration-form { margin-top: 32px; padding: 26px 28px 28px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 22px; background: var(--paper-soft); color: var(--ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .2); }
.form-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.form-topline h2 { margin: 0; font-family: var(--display); font-size: 27px; letter-spacing: -.06em; line-height: 1; }
.form-topline span { color: var(--muted-dark); font-family: var(--mono); font-size: 9px; }
.field-label { display: grid; gap: 8px; margin-top: 17px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.field-label b { color: var(--orange); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap svg { position: absolute; left: 14px; width: 19px; height: 19px; fill: none; stroke: var(--purple); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.input-wrap input { width: 100%; min-height: 48px; padding: 0 14px 0 44px; color: var(--ink); background: #fff; border: 1px solid #e3d9cf; border-radius: 11px; outline: 0; font-size: 13px; transition: border-color 180ms ease, box-shadow 180ms ease; }
.input-wrap input::placeholder { color: #a89da4; }
.input-wrap input:hover { border-color: #c9b9d0; }
.input-wrap input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(125, 63, 193, .13); }
.field-label:has(input:user-invalid) .input-wrap input { border-color: #c84a38; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 19px; color: var(--muted-dark); font-size: 10px; line-height: 1.5; }
.consent-row input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--purple); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; padding: 0 19px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 800; transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button-submit { width: 100%; min-height: 54px; margin-top: 25px; color: var(--paper); background: var(--ink); border: 0; }
.button-submit:hover { color: var(--ink); background: var(--orange); }
.form-note { margin: 13px 0 0; color: var(--muted-dark); font-size: 10px; text-align: center; }
.form-feedback { margin-top: 15px; padding: 12px 14px; border: 1px solid rgba(31, 139, 89, .25); border-radius: 10px; color: #16673f; background: #eaf7ef; font-size: 11px; font-weight: 700; }
.form-feedback-warning { border-color: #f1c4b6; color: #8d2f20; background: #fff0ea; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px clamp(22px, 7vw, 96px) 26px; color: var(--muted); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.footer-admin { display: inline-flex; align-items: center; gap: 7px; }
.footer-admin svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.admin-login { display: grid; place-items: center; min-height: calc(100vh - 150px); padding: 60px 22px; }
.admin-login-card { width: min(100%, 450px); padding: 34px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px; background: var(--paper-soft); color: var(--ink); box-shadow: 0 28px 80px rgba(0, 0, 0, .28); }
.admin-login-card h1 { margin: 0; font-family: var(--display); font-size: clamp(54px, 8vw, 76px); letter-spacing: -.085em; line-height: .84; text-transform: uppercase; }
.admin-login-card h1 em { color: var(--orange); font-style: normal; }
.admin-login-card > p:not(.eyebrow) { margin: 22px 0 0; color: var(--muted-dark); font-size: 13px; }
.admin-login-card form { margin-top: 23px; }
.admin-back-link { margin-top: 18px; padding: 7px 0; color: var(--muted-dark); background: transparent; border: 0; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.admin-back-link:hover { color: var(--purple); }
.login-feedback { margin-top: 13px; padding: 11px 13px; border: 1px solid #f1c4b6; border-radius: 9px; color: #8d2f20; background: #fff0ea; font-size: 11px; font-weight: 700; }

.admin-view { padding: 64px clamp(22px, 7vw, 96px) 90px; }
.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: 1248px; margin: 0 auto; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.admin-header h1 { font-size: clamp(53px, 6.4vw, 88px); }
.admin-subtitle { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button-primary { color: var(--ink); background: var(--orange); box-shadow: 0 10px 28px rgba(255, 116, 21, .18); }
.button-primary:hover { background: var(--orange-bright); box-shadow: 0 14px 34px rgba(255, 116, 21, .26); }
.button-ghost { color: var(--paper); border-color: var(--line); background: transparent; }
.button-ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255,255,255,.06); }
.admin-feedback { max-width: 1248px; margin: 12px auto -12px; padding: 11px 14px; color: #a76714; background: rgba(255, 138, 38, .1); border: 1px solid rgba(255, 138, 38, .32); border-radius: 9px; font-size: 11px; font-weight: 700; }
.admin-feedback.feedback-error { color: #ffb09d; background: rgba(200, 74, 56, .12); border-color: rgba(200, 74, 56, .35); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1248px; margin: 0 auto; padding: 28px 0; }
.stat-card { min-height: 130px; padding: 21px 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--ink-soft); }
.stat-card-primary { color: var(--ink); background: var(--orange); border-color: var(--orange); }
.stat-card span, .stat-card small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.stat-card span { opacity: .72; }
.stat-card strong { display: block; margin: 13px 0 4px; font-family: var(--display); font-size: 38px; letter-spacing: -.08em; line-height: .9; }
.stat-card small { opacity: .56; letter-spacing: 0; text-transform: none; }
.admin-table-card { max-width: 1248px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--ink-soft); }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.table-toolbar h2 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: -.05em; }
.table-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.toolbar-controls { display: flex; align-items: center; gap: 10px; }
.search-wrap { display: flex; align-items: center; gap: 9px; width: 245px; min-height: 41px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; }
.search-wrap svg { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.search-wrap input { min-width: 0; width: 100%; color: var(--paper); background: transparent; border: 0; outline: 0; font-size: 11px; }
.search-wrap:focus-within, .filter-wrap:focus-within { border-color: var(--orange); }
.filter-wrap { display: flex; align-items: center; gap: 8px; min-height: 41px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 9px; }
.filter-wrap span { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.filter-wrap select { color: var(--paper); background: transparent; border: 0; outline: 0; font-size: 11px; }
.filter-wrap option { color: var(--ink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 1180px; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 22px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--paper); font-size: 11px; }
td:first-child { font-weight: 800; }
td:nth-child(3) { color: var(--lilac); }
td:nth-child(4), td:nth-child(5), td:nth-child(7) { color: var(--muted); font-family: var(--mono); font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
.status-select { min-height: 30px; padding: 0 8px; color: var(--paper); background: #2b2332; border: 1px solid rgba(255,255,255,.17); border-radius: 7px; font-size: 10px; }
.status-select:focus { border-color: var(--orange); outline: 0; }
.status-select option { color: var(--ink); background: var(--paper-soft); }
.email-action { min-height: 30px; padding: 0 10px; color: var(--lilac); background: transparent; border: 1px solid rgba(197, 168, 255, .38); border-radius: 7px; font-size: 10px; font-weight: 700; }
.email-action:hover { color: var(--ink); background: var(--lilac); }
.row-rejected td { opacity: .52; }
.empty-row td { padding: 58px 22px; color: var(--muted); text-align: center; white-space: normal; }
.storage-note { display: flex; align-items: flex-start; gap: 9px; padding: 15px 22px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 10px; line-height: 1.5; }
.storage-note svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange-bright); outline-offset: 4px; }

@media (max-width: 1000px) {
  .registration-page { grid-template-columns: minmax(280px, .8fr) minmax(390px, 1fr); gap: 42px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { min-height: 72px; padding-top: 14px; padding-bottom: 14px; }
  .header-right { gap: 12px; }
  .open-badge { display: none; }
  .admin-link { font-size: 9px; }
  .registration-page { display: flex; flex-direction: column; align-items: stretch; gap: 42px; min-height: 0; padding-top: 46px; padding-bottom: 50px; }
  .poster-column, .form-column { width: 100%; max-width: none; }
  .poster-frame { width: min(100%, 480px); margin: 0 auto; }
  .poster-sticker { width: 88px; height: 88px; }
  .poster-sticker strong { font-size: 38px; }
  .poster-sticker span { font-size: 8px; }
  .event-facts { gap: 12px; margin-top: 22px; }
  .event-facts strong { font-size: 10px; }
  .form-column h1 { font-size: clamp(52px, 15vw, 76px); }
  .form-intro { margin-top: 20px; }
  .registration-form { margin-top: 25px; padding: 23px 20px 24px; }
  .admin-view { padding-top: 46px; padding-bottom: 65px; }
  .admin-login { min-height: calc(100vh - 130px); padding: 42px 22px; }
  .admin-login-card { padding: 28px 22px; }
  .admin-header { align-items: flex-start; flex-direction: column; padding-bottom: 28px; }
  .admin-header h1 { font-size: clamp(52px, 15vw, 78px); }
  .admin-actions { width: 100%; }
  .admin-actions .button { flex: 1; }
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px 0; }
  .stat-card { min-height: 110px; padding: 17px; }
  .stat-card strong { font-size: 32px; }
  .table-toolbar { align-items: stretch; flex-direction: column; padding: 20px; }
  .toolbar-controls { align-items: stretch; flex-direction: column; }
  .search-wrap { width: 100%; }
  .filter-wrap select { flex: 1; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-top: 18px; padding-bottom: 20px; }
}

@media (max-width: 440px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-actions { flex-direction: column; }
  .admin-actions .button { flex: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
