:root {
  --navy: #310713;
  --blue: #77152b;
  --blue-2: #ec4052;
  --cyan: #ff6b73;
  --mint: #b8f4db;
  --lime: #d8ff45;
  --paper: #fff8f6;
  --ink: #2d0914;
  --muted: #755d66;
  --line: #ead8dd;
  --white: #fff;
  --danger: #d9364b;
  --warning: #e8ad10;
  --success: #15966a;
  --burgundy: #52091b;
  --wine: #850f2d;
  --plum: #2b102d;
  --coral: #ff505c;
  --shadow: 0 18px 50px rgba(65, 5, 22, .15);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .28;
  background-image: linear-gradient(#eadadd 1px, transparent 1px), linear-gradient(90deg, #eadadd 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px max(20px, calc((100vw - 1180px) / 2));
  color: #fff2f3;
  background: #21040c;
  font-size: .78rem;
  letter-spacing: .04em;
}
.top-strip span:first-child::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: #36d79f;
  box-shadow: 0 0 0 5px rgba(54, 215, 159, .13);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(55, 5, 20, .97);
  backdrop-filter: blur(12px);
}
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), #b9193b 48%, transparent 92%);
}
.nav {
  max-width: 1180px;
  min-height: 78px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: white;
  font-weight: 900;
  letter-spacing: -.03em;
}
.brand img {
  width: 168px;
  height: 54px;
  padding: 7px 14px;
  object-fit: contain;
  border-radius: 13px;
  background: white;
}
.brand-copy small {
  display: block;
  color: #ff7580;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 26px; color: #edf4ff; font-weight: 700; }
.nav-links a:hover { color: var(--mint); }
.nav-toggle { display: none; border: 0; background: transparent; color: white; font-size: 1.8rem; }

.button, button.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: white;
  background: var(--blue-2);
  font-weight: 850;
  box-shadow: 0 7px 18px rgba(155, 14, 48, .22);
}
.button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.button.secondary { color: white; background: linear-gradient(135deg, var(--coral), #f23349); }
.button.ghost { border-color: #b8c5d7; color: var(--ink); background: white; box-shadow: none; }
.button.dark { background: var(--navy); }
.button.danger { background: var(--danger); }
.button.small { min-height: 38px; padding: 8px 13px; border-radius: 11px; font-size: .88rem; }
.button[disabled] { cursor: not-allowed; opacity: .55; transform: none; }

.hero {
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 80, 92, .25), transparent 27%),
    radial-gradient(circle at 72% 80%, rgba(133, 15, 45, .48), transparent 35%),
    linear-gradient(120deg, #330611, #680a23 58%, #2b102d);
}
.hero-inner {
  max-width: 1180px;
  min-height: 570px;
  margin: auto;
  padding: 86px 20px 74px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}
.eyebrow {
  margin: 0 0 16px;
  color: #ff777f;
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.05; letter-spacing: -.045em; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(3.1rem, 7vw, 6.7rem); }
h2 { margin-bottom: 16px; font-size: clamp(2rem, 4.2vw, 4rem); }
h3 { margin-bottom: 10px; font-size: 1.4rem; }
.hero h1 em { color: #ff5663; font-style: normal; }
.lead { max-width: 680px; color: #f3dfe4; font-size: 1.13rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}
.raffle-preview {
  position: relative;
  width: min(470px, 100%);
  padding: 30px;
  color: var(--ink);
  border-radius: 32px;
  background: #fffdf9;
  box-shadow: 0 28px 70px rgba(1, 11, 34, .38);
  transform: rotate(-2deg);
}
.raffle-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.raffle-preview-head strong { display: block; margin-top: 5px; font-size: 1.55rem; letter-spacing: -.04em; }
.preview-kicker { color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.preview-numbers {
  margin: 28px 0 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.preview-numbers span {
  min-height: 57px;
  display: grid;
  place-items: center;
  border: 2px solid #58cc94;
  border-radius: 14px;
  color: #086341;
  background: #e6f8ef;
  font-size: 1.15rem;
  font-weight: 900;
}
.preview-numbers span.reserved { color: #835600; border-color: #e8ad10; background: #fff0b8; }
.preview-numbers span.confirmed { color: #941a2d; border-color: #ec6878; background: #ffe0e4; }
.preview-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--muted); font-size: .74rem; font-weight: 750; }
.preview-legend span { display: inline-flex; align-items: center; gap: 6px; }
.preview-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--success); }
.preview-legend i.reserved { background: var(--warning); }
.preview-legend i.confirmed { background: var(--danger); }
.preview-footer {
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px dashed #d8e0e9;
  font-size: .8rem;
}
.preview-footer span { color: var(--muted); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #093323;
  background: var(--mint);
  font-size: .79rem;
  font-weight: 850;
}
.badge.warning { color: #633b00; background: #fff0c7; }
.badge.danger { color: #7b1c2a; background: #ffe1e5; }
.badge.info { color: #063a71; background: #d7efff; }

.hero-trust {
  max-width: 1180px;
  margin: -22px auto 0;
  padding: 0 20px 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  min-height: 84px;
  padding: 12px 24px;
  border-left: 1px solid rgba(255,255,255,.18);
  color: #f9e9ed;
}
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; margin-bottom: 3px; color: white; }
.trust-item small { color: #ddbfc7; }

.section { padding: 86px 20px; }
.section.compact { padding-top: 48px; padding-bottom: 48px; }
.container { max-width: 1180px; margin: auto; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.93);
  box-shadow: var(--shadow);
}
.card.navy { color: white; border-color: transparent; background: var(--navy); }
.card.blue { color: white; border-color: transparent; background: linear-gradient(145deg, var(--blue), #b7193d); }
.card.mint { background: #eafff5; }
.step-number {
  width: 42px;
  height: 42px;
  margin-bottom: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--blue-2);
  font-weight: 900;
}
.card p { color: var(--muted); }
.card.navy p, .card.blue p { color: #f1dce2; }
.check-list { padding: 0; margin: 18px 0 0; list-style: none; }
.check-list li { padding: 12px 0; border-top: 1px solid rgba(128, 147, 174, .3); }
.check-list li::before { content: "✓"; margin-right: 10px; color: #21c993; font-weight: 950; }
.callout {
  padding: 22px;
  border-left: 5px solid var(--cyan);
  border-radius: 14px;
  color: #0b2f63;
  background: #eaf6ff;
}
.callout.warning { border-color: var(--warning); color: #654000; background: #fff7de; }
.callout.danger { border-color: var(--danger); color: #792333; background: #fff0f2; }

.page-hero {
  color: white;
  padding: 65px 20px 72px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255,80,92,.24), transparent 30%),
    linear-gradient(135deg, #350611, #86102e 68%, #2b102d);
}
.page-hero .container { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 40px; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); }
.page-hero .lead { margin: 0; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric {
  padding: 17px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;
  background: rgba(255,255,255,.08);
}
.metric strong { display: block; font-size: 1.5rem; }
.metric span { color: #e8c9d1; font-size: .8rem; }

.form-shell {
  max-width: 980px;
  margin: -34px auto 70px;
  padding: 0 20px;
  position: relative;
}
.form-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { color: #1a2a4e; font-weight: 850; }
.help { color: var(--muted); font-size: .82rem; }
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #bdcadd;
  border-radius: 13px;
  color: var(--ink);
  background: white;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(236,64,82,.13); }
textarea { min-height: 120px; resize: vertical; }
fieldset { margin: 0; padding: 0; border: 0; }
.form-section { padding: 28px 0; border-top: 1px solid var(--line); }
.form-section:first-child { padding-top: 0; border-top: 0; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 24px; }
.form-message { margin-top: 16px; padding: 13px 15px; border-radius: 12px; color: #0d503d; background: #e6fff5; }
.form-message.error { color: #7b1c2a; background: #ffe9ed; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  min-width: 78px;
  padding: 12px 16px;
  border: 1px solid #c8d3e3;
  border-radius: 13px;
  background: white;
  font-weight: 850;
}
.choice.active { color: white; border-color: var(--blue-2); background: var(--blue-2); }
.calculation {
  margin-top: 20px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-radius: 18px;
  background: #f5e8ec;
}
.calculation strong { display: block; font-size: 1.55rem; }
.calculation span { color: var(--muted); font-size: .78rem; }
.calc-status.under { color: var(--danger); }
.calc-status.over { color: var(--success); }
.segmented { display: inline-flex; gap: 5px; padding: 5px; border-radius: 14px; background: #e9eef5; }
.segmented button { border: 0; padding: 9px 13px; border-radius: 10px; background: transparent; font-weight: 800; }
.segmented button.active { color: white; background: var(--navy); }

.raffle-layout {
  max-width: 1180px;
  margin: -32px auto 70px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  position: relative;
}
.numbers {
  display: grid;
  grid-template-columns: repeat(10, minmax(42px, 1fr));
  gap: 8px;
}
.number {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #55cb91;
  border-radius: 10px;
  color: #086341;
  background: #e6f8ef;
  font-weight: 900;
}
.number:hover, .number.selected { color: white; border-color: #08734b; background: var(--success); }
.number.unavailable { cursor: not-allowed; color: #7d7276; border-color: #d9d0d3; background: #ece7e9; }
.number.unavailable.reserved { color: #835600; border-color: var(--warning); background: #fff0b8; }
.number.unavailable.confirmed { color: #941a2d; border-color: #ec6878; background: #ffe0e4; }
.summary-card { position: sticky; top: 108px; align-self: start; }
.summary-line { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid var(--line); }
.summary-line.total { margin-top: 8px; font-size: 1.2rem; font-weight: 950; }
.selected-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.selected-chips span { padding: 5px 9px; border-radius: 99px; color: #083c31; background: var(--mint); font-weight: 850; }

.panel-layout { min-height: calc(100vh - 112px); display: grid; grid-template-columns: 255px 1fr; }
.sidebar {
  padding: 28px 18px;
  color: white;
  background: var(--navy);
}
.sidebar a, .sidebar button {
  width: 100%;
  margin-bottom: 7px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  color: #dbe8ff;
  background: transparent;
  font-weight: 800;
}
.sidebar a.active, .sidebar button.active, .sidebar a:hover { color: white; background: rgba(255,255,255,.12); }
.panel-main { min-width: 0; padding: 34px; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 17px; background: white; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #536078; background: #f3f6f9; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.empty-state { padding: 45px 24px; text-align: center; color: var(--muted); }
.auth-shell { max-width: 520px; margin: 56px auto 90px; padding: 0 20px; }
.auth-card { padding: 34px; border-radius: 26px; background: white; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 8px; margin-bottom: 25px; }
.tabs button { flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; font-weight: 850; }
.tabs button.active { color: white; background: var(--navy); }

.footer { padding: 42px 20px; color: #ead6dc; background: #21040c; }
.footer-inner { max-width: 1180px; margin: auto; display: flex; justify-content: space-between; gap: 30px; }
.footer img { width: 155px; padding: 9px; border-radius: 12px; background: white; }
.footer small { display: block; margin-top: 12px; max-width: 620px; color: #c7a5af; }
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 380px;
  padding: 15px 18px;
  border-radius: 13px;
  color: white;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(1, 12, 36, .72);
}
.modal-card { width: min(650px, 100%); max-height: 90vh; overflow: auto; padding: 28px; border-radius: 24px; background: white; }
.modal-head { display: flex; justify-content: space-between; gap: 20px; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf1f6; font-weight: 950; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 78px;
    right: 14px;
    left: 14px;
    padding: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    border-radius: 16px;
    background: var(--navy);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hero-inner, .page-hero .container { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 58px; }
  .hero-visual { min-height: 360px; }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .raffle-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .numbers { grid-template-columns: repeat(6, 1fr); }
  .panel-layout { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .sidebar { display: flex; overflow-x: auto; gap: 6px; padding: 12px; }
  .sidebar a, .sidebar button { width: auto; flex: 0 0 auto; margin: 0; }
}

@media (max-width: 620px) {
  .top-strip { font-size: .67rem; }
  .top-strip a { display: none; }
  .brand img { width: 135px; height: 48px; }
  .brand-copy { display: none; }
  .hero-inner { min-height: auto; padding: 45px 20px 55px; }
  h1 { font-size: 3.25rem; }
  .hero-visual { min-height: 320px; }
  .raffle-preview { padding: 22px; transform: rotate(-1deg); }
  .preview-numbers { gap: 7px; }
  .preview-numbers span { min-height: 49px; font-size: 1rem; }
  .preview-footer { flex-direction: column; }
  .section { padding: 60px 18px; }
  .grid.cols-2, .form-grid, .metric-row, .calculation { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .form-shell, .raffle-layout { padding-inline: 12px; }
  .numbers { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .panel-main { padding: 22px 14px; }
  .panel-head, .footer-inner { align-items: flex-start; flex-direction: column; }
  .hero-trust { grid-template-columns: 1fr; margin-top: 0; }
  .trust-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .trust-item:first-child { border-top: 0; }
}
