/* Reformulação completa — Enzo Henryke & Valentina */
:root {
  --modern-navy: #123447;
  --modern-petrol: #1f7376;
  --modern-petrol-light: #dff0ed;
  --modern-cream: #fffaf2;
  --modern-white: #fffefd;
  --modern-rose: #b96f87;
  --modern-rose-light: #f8e3e9;
  --modern-gold: #e2b86c;
  --modern-text: #173746;
  --modern-muted: #61747a;
  --modern-line: rgba(18, 52, 71, 0.12);
  --modern-shadow: 0 24px 70px rgba(18, 52, 71, 0.11);
  --modern-shadow-soft: 0 12px 34px rgba(18, 52, 71, 0.08);
  --radius: 22px;
  --font-main: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

body {
  color: var(--modern-text);
  background: #f6faf8;
  font-family: var(--font-main);
}

.site-header,
.site-header.is-scrolled,
.site-header.is-open {
  min-height: 78px;
  border-bottom: 1px solid rgba(18, 52, 71, 0.08);
  padding-top: 11px;
  padding-bottom: 11px;
  color: var(--modern-text);
  background: rgba(255, 254, 251, 0.9);
  box-shadow: 0 8px 30px rgba(18, 52, 71, 0.06);
  backdrop-filter: blur(22px) saturate(145%);
}

.brand-mark {
  width: 58px;
  height: 48px;
  flex: 0 0 58px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--modern-navy), var(--modern-petrol));
  box-shadow: 0 10px 25px rgba(31, 115, 118, 0.24);
  overflow: hidden;
}

.brand-duo-photo {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.brand-mark .brand-duo-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
  filter: none;
}

.header-participate {
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.header-participate span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.brand strong { font-size: 1rem; letter-spacing: -0.025em; }
.brand small { color: #6c7e83; font-weight: 700; opacity: 1; }

.site-nav { gap: 4px; font-size: 0.86rem; }

.site-nav a,
.site-nav a:not(.nav-cta) {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: #526970;
  background: transparent;
  box-shadow: none;
  font-weight: 700;
}

.site-nav a:not(.nav-cta)::after { display: none; }

.site-nav a:hover,
.site-nav a:focus-visible {
  border: 0;
  color: var(--modern-petrol);
  background: #eaf5f2;
  box-shadow: none;
  transform: none;
}

.site-nav a.is-current:not(.nav-cta) {
  color: var(--modern-petrol);
  background: #eaf5f2;
}

.site-nav .nav-cta {
  margin-left: 6px;
  border: 0 !important;
  border-radius: 14px;
  padding: 11px 18px;
  color: #fff !important;
  background: linear-gradient(135deg, #237d7e, #154b60) !important;
  box-shadow: 0 10px 25px rgba(31, 115, 118, 0.22);
}

.raffle-stage {
  padding: 110px 0 84px;
  background:
    radial-gradient(circle at 8% 8%, rgba(99, 174, 169, 0.2), transparent 30rem),
    radial-gradient(circle at 94% 23%, rgba(193, 111, 140, 0.14), transparent 28rem),
    linear-gradient(180deg, #eef7f5 0%, #fffaf3 43%, #f6f1e8 100%);
}

.raffle-workspace {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 24px;
}

.hero-copy { padding: 0 0 26px; }

.hero-poster.student-hero {
  width: min(100%, 1160px);
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 32px;
  background: var(--modern-navy);
  box-shadow: 0 34px 90px rgba(18, 52, 71, 0.22);
}

.hero-poster.graduation-photo-frame {
  overflow: hidden;
  border: 10px solid #123447;
  background: linear-gradient(145deg, #e6bd68, #fff0bc 44%, #a8762e);
  box-shadow: 0 34px 90px rgba(18, 52, 71, 0.26), inset 0 0 0 2px rgba(255, 240, 188, .75);
}

.graduation-photo-frame::before {
  z-index: 3;
  inset: 12px;
  width: auto;
  border: 1px solid rgba(255, 226, 151, .82);
  border-radius: 18px;
  background: none;
  box-shadow: inset 0 0 0 5px rgba(17, 52, 71, .22);
  transform: none;
}

.graduation-photo-frame::after {
  z-index: 2;
  background: linear-gradient(180deg, rgba(9, 35, 50, .05) 35%, rgba(8, 28, 42, .86) 100%);
}

.graduation-photo-inner,
.graduation-photo-inner img { width: 100%; height: 100%; }
.graduation-photo-inner img { display: block; object-fit: cover; object-position: center center; }

.graduation-cap {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 50%;
  width: 70px;
  border: 1px solid rgba(255, 226, 151, .72);
  border-radius: 50%;
  padding: 13px;
  color: #ffdda0;
  background: rgba(10, 43, 61, .82);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}
.graduation-cap svg { display: block; width: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }

.graduation-class {
  position: absolute;
  z-index: 5;
  top: 24px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 15px;
  padding: 10px 13px;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}
.graduation-class strong { font-size: .86rem; }
.graduation-class span { font-size: .67rem; font-weight: 700; opacity: .86; }
.graduation-class-enzo { left: 26px; background: rgba(15, 65, 96, .82); }
.graduation-class-valentina { right: 26px; text-align: right; background: rgba(118, 63, 128, .82); }

.student-photo-grid { grid-template-columns: 1fr 1fr; }
.student-card img { object-position: center 26%; }

.student-card::after {
  background: linear-gradient(180deg, rgba(9, 27, 38, 0.04) 15%, rgba(9, 27, 38, 0.08) 55%, rgba(9, 27, 38, 0.54));
}

.student-caption {
  top: 24px;
  left: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  padding: 11px 14px;
  background: rgba(15, 48, 63, 0.68);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.student-card-valentina .student-caption { right: 24px; background: rgba(110, 53, 77, 0.68); }
.student-caption .class-badge { border-radius: 8px; padding: 4px 7px; letter-spacing: 0.08em; }
.student-caption strong { font-family: var(--font-main); font-size: clamp(0.95rem, 1.5vw, 1.22rem); }

.student-hero-message {
  right: 28px;
  bottom: 26px;
  left: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 20px 28px;
  text-align: left;
  background: rgba(10, 38, 50, 0.72);
  box-shadow: 0 18px 44px rgba(4, 22, 30, 0.2);
  backdrop-filter: blur(14px);
}

.student-hero-message .hero-kicker { margin-bottom: 5px; font-size: 0.68rem; letter-spacing: 0.16em; }
.student-hero-message h2 { font-family: var(--font-main); font-size: clamp(1.55rem, 3vw, 2.85rem); letter-spacing: -0.045em; }
.student-hero-message p:last-child { margin-top: 7px; color: rgba(255, 255, 255, 0.82); font-size: 0.85rem; font-weight: 600; }

.hero-actions { gap: 12px; margin-top: 20px; }

.button,
.hero-actions .button {
  min-height: 52px;
  border-radius: 15px;
  padding: 0 22px;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: none;
}

.button-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #248487, #154b60);
  box-shadow: 0 12px 28px rgba(31, 115, 118, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible { border: 0; color: #fff; background: linear-gradient(135deg, #2c9292, #123f52); }

.button-ghost {
  border: 1px solid rgba(18, 52, 71, 0.13);
  color: var(--modern-text);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.board-tool,
.checkout-tool {
  border: 1px solid var(--modern-line);
  border-radius: 26px;
  color: var(--modern-text);
  background: rgba(255, 254, 251, 0.94);
  box-shadow: var(--modern-shadow);
  backdrop-filter: blur(18px);
}

.board-tool { padding: 26px; }
.checkout-tool { top: 96px; gap: 16px; padding: 24px; }

.board-tool::before,
.checkout-tool::before { height: 4px; margin: -26px -26px 22px; background: linear-gradient(90deg, var(--modern-navy), var(--modern-petrol), var(--modern-rose)); }
.checkout-tool::before { margin: -24px -24px 18px; }

.tool-heading { align-items: center; }
.tool-heading .eyebrow { margin-bottom: 5px; color: var(--modern-rose); font-size: 0.69rem; letter-spacing: 0.12em; }
.tool-heading h2 { color: var(--modern-text); font-family: var(--font-main); font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: -0.045em; }

.available-counter {
  min-height: 38px;
  border: 0;
  color: #fff;
  background: #1f7376;
  box-shadow: none;
}

.filter-bar {
  gap: 6px;
  margin: 20px 0;
  border: 0;
  border-radius: 16px;
  padding: 6px;
  background: #edf4f1;
  box-shadow: none;
}

.filter-button {
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  padding: 0 13px;
  color: #63777c;
  background: transparent;
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 700;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border: 0;
  color: var(--modern-text);
  background: #fff;
  box-shadow: 0 5px 16px rgba(18, 52, 71, 0.09);
  transform: none;
}

.beneficiary-picker {
  margin: 0 0 18px;
  border: 1px solid rgba(18, 52, 71, .1);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(135deg, #f3f8fb, #fbf4ff);
}
.beneficiary-picker legend { padding: 0 7px; color: #173746; font-size: .95rem; font-weight: 850; }
.beneficiary-picker > p { margin: -3px 0 14px; color: #687b81; font-size: .76rem; }
.beneficiary-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.beneficiary-option {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  border: 1px solid rgba(18, 52, 71, .11);
  border-radius: 16px;
  padding: 9px 11px;
  color: #173746;
  text-align: left;
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.beneficiary-option:hover,
.beneficiary-option:focus-visible { transform: translateY(-1px); }
.beneficiary-avatar { width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: #e4ecee; }
.beneficiary-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 23%; }
.beneficiary-option strong, .beneficiary-option small { display: block; }
.beneficiary-option strong { font-size: .79rem; }
.beneficiary-option small { margin-top: 2px; color: #718187; font-size: .64rem; font-weight: 650; }
.beneficiary-option i { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: transparent; background: #edf1f1; font-style: normal; font-weight: 900; }
.beneficiary-option.is-enzo[aria-pressed="true"] { border-color: #287eae; color: #164e72; background: #e3f3ff; box-shadow: 0 9px 22px rgba(40, 126, 174, .15); }
.beneficiary-option.is-enzo[aria-pressed="true"] i { color: #fff; background: #287eae; }
.beneficiary-option.is-valentina[aria-pressed="true"] { border-color: #9a64b0; color: #623a73; background: #f3e8fa; box-shadow: 0 9px 22px rgba(154, 100, 176, .15); }
.beneficiary-option.is-valentina[aria-pressed="true"] i { color: #fff; background: #9a64b0; }
.beneficiary-help { display: block; margin-top: 11px; color: #697d82; font-size: .68rem; font-weight: 700; }
.beneficiary-picker.has-choice .beneficiary-help { color: #2f6e70; }
.beneficiary-picker.has-error { border-color: #c84949; box-shadow: 0 0 0 4px rgba(200, 73, 73, .11); }
.beneficiary-help.is-error { color: #a92f2f; font-size: .74rem; font-weight: 850; }
.field.has-error input { border-color: #c84949 !important; box-shadow: 0 0 0 4px rgba(200, 73, 73, .11) !important; }
.field.has-error small { color: #a92f2f; font-weight: 850; }

.number-grid { gap: 8px; }

.number-grid-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 52, 71, 0.09);
  border-radius: 16px;
  background: linear-gradient(135deg, #f5faf8, #fffaf3);
}

.number-grid-progress { color: #60777c; font-size: .78rem; font-weight: 700; }

.load-more-numbers {
  min-height: 42px;
  border: 1px solid rgba(31, 115, 118, .22);
  border-radius: 13px;
  padding: 0 17px;
  color: #155f65;
  background: #fff;
  box-shadow: 0 7px 18px rgba(18, 52, 71, .08);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.load-more-numbers:hover,
.load-more-numbers:focus-visible { border-color: #4a9897; background: #e6f4f0; transform: translateY(-1px); }

.load-more-numbers[hidden] { display: none; }

.number-button {
  border: 1px solid rgba(18, 52, 71, 0.1);
  border-radius: 12px;
  color: var(--modern-text);
  background: #f8fbf9;
  box-shadow: none;
  font-size: 0.86rem;
}

.number-button:hover,
.number-button:focus-visible {
  border-color: #62a9a6;
  color: var(--modern-text);
  background: #e2f2ee;
  box-shadow: 0 8px 18px rgba(31, 115, 118, 0.12);
  transform: translateY(-1px);
}

.number-button.is-selected {
  border-color: #a65d78;
  color: #633147;
  background: #f6dce5;
  box-shadow: inset 0 0 0 1px rgba(166, 93, 120, 0.16);
}

body[data-beneficiary="enzo"] .number-button.is-selected {
  border-color: #155d89;
  color: #fff;
  background: linear-gradient(180deg, #318dbd, #1f6f9d);
  box-shadow: inset 0 0 0 2px rgba(40, 126, 174, .18), 0 10px 22px rgba(40, 126, 174, .18);
}
body[data-beneficiary="valentina"] .number-button.is-selected {
  border-color: #714185;
  color: #fff;
  background: linear-gradient(180deg, #a86dbd, #86519a);
  box-shadow: inset 0 0 0 2px rgba(154, 100, 176, .18), 0 10px 22px rgba(154, 100, 176, .18);
}
body[data-beneficiary="enzo"] .legend-dot.is-selected { background: #287eae; }
body[data-beneficiary="valentina"] .legend-dot.is-selected { background: #9a64b0; }

.board-legend { gap: 16px; margin-top: 18px; color: #6b7c80; font-size: 0.75rem; font-weight: 600; }
.legend-dot { width: 9px; height: 9px; border: 0; }
.legend-dot.is-free { background: #d9e8e3; }
.legend-dot.is-selected { background: var(--modern-rose); }

.field { gap: 7px; color: #61747a; font-size: 0.78rem; font-weight: 700; }
.field input,
.field textarea {
  border: 1px solid rgba(18, 52, 71, 0.12);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--modern-text);
  background: #f8fbf9;
}
.field input:focus,
.field textarea:focus { border-color: #58a19f; background: #fff; box-shadow: 0 0 0 4px rgba(31, 115, 118, 0.1); }

.selected-box,
.qr-panel {
  border: 1px solid rgba(18, 52, 71, 0.1);
  border-radius: 17px;
  background: #f6faf8;
  box-shadow: none;
}

.selected-chip { color: #fff; background: var(--modern-petrol); }
body[data-beneficiary="enzo"] .selected-chip,
body[data-beneficiary="enzo"] .selected-chip.is-held { color: #fff !important; background: #247dad !important; text-shadow: 0 1px 2px rgba(0,0,0,.22); }
body[data-beneficiary="valentina"] .selected-chip,
body[data-beneficiary="valentina"] .selected-chip.is-held { color: #fff !important; background: #945cac !important; text-shadow: 0 1px 2px rgba(0,0,0,.22); }
.checkout-beneficiary { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 14px; padding: 11px 13px; color: #5e7278; background: #eef5f4; font-size: .72rem; }
.checkout-beneficiary strong { color: #176268; font-size: .78rem; }
.checkout-beneficiary.is-enzo { background: #e5f4fc; }
.checkout-beneficiary.is-enzo strong { color: #1e6690; }
.checkout-beneficiary.is-valentina { background: #f3e9f8; }
.checkout-beneficiary.is-valentina strong { color: #7e4a91; }
.payment-timer { transition: border-color .2s ease, color .2s ease, background .2s ease; }
body[data-beneficiary="enzo"] .payment-timer {
  border-color: rgba(40, 126, 174, .28);
  color: #1d6590;
  background: linear-gradient(180deg, #edf8ff, #d8edf9);
}
body[data-beneficiary="enzo"] .payment-timer span { color: #3e6f89; }
body[data-beneficiary="valentina"] .payment-timer {
  border-color: rgba(154, 100, 176, .3);
  color: #77458b;
  background: linear-gradient(180deg, #fbf3ff, #eddcf5);
}
body[data-beneficiary="valentina"] .payment-timer span { color: #765d80; }

.checkout-progress {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(194, 122, 35, .26);
  border-radius: 15px;
  padding: 13px 14px;
  color: #684315;
  background: linear-gradient(135deg, #fff5d9, #fffaf0);
  box-shadow: 0 10px 24px rgba(103, 67, 20, .08);
}
.checkout-progress[hidden] { display: none; }
.checkout-progress strong { font-size: .86rem; font-weight: 900; }
.checkout-progress span { font-size: .76rem; font-weight: 700; line-height: 1.48; }
.checkout-progress.is-reported { border-color: rgba(29, 121, 95, .24); color: #175e4c; background: linear-gradient(135deg, #e4f6ef, #f5fffb); }
body[data-beneficiary="enzo"] .checkout-progress:not(.is-reported) { border-color: rgba(40, 126, 174, .3); color: #195d84; background: linear-gradient(135deg, #e5f4fc, #f5fbff); }
body[data-beneficiary="valentina"] .checkout-progress:not(.is-reported) { border-color: rgba(154, 100, 176, .3); color: #754389; background: linear-gradient(135deg, #f3e7f8, #fcf7ff); }

body[data-beneficiary="enzo"] .available-counter,
body[data-beneficiary="enzo"] .filter-button.is-active,
body[data-beneficiary="enzo"] .button-primary {
  border-color: #287eae !important;
  color: #fff !important;
  background: linear-gradient(135deg, #287eae, #164f78) !important;
}
body[data-beneficiary="enzo"] .total-row strong { color: #1d6996; }

body[data-beneficiary="valentina"] .available-counter,
body[data-beneficiary="valentina"] .filter-button.is-active,
body[data-beneficiary="valentina"] .button-primary {
  border-color: #9a64b0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #9a64b0, #633b76) !important;
}
body[data-beneficiary="valentina"] .total-row strong { color: #824c96; }
.total-row { border-color: rgba(18, 52, 71, 0.1); }
.total-row strong { color: var(--modern-petrol); font-size: 1.5rem; }

.qr-code {
  border-color: rgba(31, 115, 118, 0.28);
  border-radius: 14px;
  color: #6a8084;
  background: #fff;
}

.pix-key {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #e7f3ef;
}

.button-payment-reported { border: 0; border-radius: 15px; background: #496fd0; }
.button-whatsapp { border: 0; border-radius: 15px; background: #168b5b; }

.panel-status,
.firebase-status { color: #60777c; font-weight: 650; }

.details-band {
  padding: 96px 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(90, 164, 160, 0.15), transparent 27rem),
    radial-gradient(circle at 96% 38%, rgba(193, 111, 140, 0.12), transparent 25rem),
    #f7faf7;
}

.details-layout { gap: 56px; align-items: start; }
.graduate-intro { gap: 14px; }

.graduate-profile {
  grid-template-columns: 68px 1fr;
  border: 1px solid rgba(18, 52, 71, 0.1);
  border-radius: 22px;
  padding: 18px;
  background: #eef6f4;
  box-shadow: none;
}

.graduate-profile.is-valentina { border-color: rgba(185, 111, 135, 0.16); background: #fbedf1; }
.year-seal { box-shadow: none; background: var(--modern-navy); }
.is-valentina .year-seal { background: var(--modern-rose); }
.graduate-profile h3 { font-family: var(--font-main); letter-spacing: -0.03em; }

.support-message {
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  color: #607278 !important;
  background: #fff;
  box-shadow: var(--modern-shadow-soft);
}

.detail-copy h2 {
  max-width: 600px;
  margin-top: 7px;
  color: var(--modern-text);
  font-family: var(--font-main);
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.detail-copy p:not(.eyebrow) { color: var(--modern-muted); }
.raffle-meta { gap: 10px; }

.raffle-meta li {
  min-height: 124px;
  border: 0;
  border-radius: 19px;
  padding: 18px;
  color: #fff;
  background: var(--modern-navy);
  box-shadow: none;
}

.raffle-meta li:nth-child(2) { background: var(--modern-petrol); }
.raffle-meta li:nth-child(3) { background: #865067; }
.raffle-meta span { color: rgba(255,255,255,.68); font-size: .7rem; }
.raffle-meta strong { color: #fff; font-size: .95rem; text-shadow: none; }

.poster-frame {
  position: sticky;
  top: 104px;
  border: 0;
  border-radius: 28px;
  padding: 10px;
  color: #fff;
  background: linear-gradient(145deg, var(--modern-navy), #805168);
  box-shadow: var(--modern-shadow);
}
.poster-frame img { border-radius: 20px; }
.poster-frame figcaption { padding: 5px 7px 8px; color: rgba(255,255,255,.78) !important; }

.steps-list { gap: 16px; margin-top: 50px; }
.step-card {
  min-height: 190px;
  border: 1px solid rgba(18, 52, 71, 0.1);
  border-radius: 24px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--modern-shadow-soft);
}
.step-card:nth-child(2) { background: #fdf1f4; }
.step-card:nth-child(3) { background: #edf6f3; }
.step-card span { color: #fff; background: var(--modern-petrol); box-shadow: none; }
.step-card:nth-child(2) span { background: var(--modern-rose); }
.step-card h3 { margin-top: 22px; color: var(--modern-text); font-family: var(--font-main); }
.step-card p { color: var(--modern-muted); }

.site-footer {
  padding: 34px 0 110px;
  color: #fff;
  background: linear-gradient(135deg, #102f40, #1f5e66);
}
.mobile-purchase-summary { display: none; }
.footer-note { color: rgba(255,255,255,.72); }

#popup-overlay { background: rgba(10, 36, 49, 0.62) !important; backdrop-filter: blur(8px); }
#popup-box { border-radius: 24px !important; padding: 24px !important; color: var(--modern-text); box-shadow: 0 30px 80px rgba(8, 30, 40, .28); }
#popup-box > button { border-radius: 14px !important; background: linear-gradient(135deg, #248487, #154b60) !important; font-weight: 800; }

@media (max-width: 1120px) {
  .hero-poster.student-hero { aspect-ratio: 4 / 5; }
  .raffle-workspace { grid-template-columns: minmax(0, 1fr) minmax(300px, .58fr); }
  .number-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --container: calc(100% - 28px); }
  body { padding-bottom: 100px; }
  body.has-mobile-summary { padding-bottom: 168px; }
  .site-header { min-height: 68px; padding: 9px 14px; }
  .brand { flex: 1 1 auto; max-width: none; overflow: hidden; }
  .brand-copy { min-width: 0; }
  .brand-mark { width: 56px; height: 44px; flex-basis: 56px; border-radius: 14px; }
  .brand strong { font-size: .9rem; }
  .header-participate { display: inline-flex; position: static; width: auto; min-height: 38px; border: 0; border-radius: 12px; padding: 0 14px; color: #fff; background: var(--modern-petrol); font-size: .72rem; font-weight: 800; }
  .raffle-stage { padding: 68px 0 44px; }
  .raffle-workspace { display: grid; grid-template-columns: 1fr; gap: 18px; width: var(--container); }
  .hero-copy { padding: 0 0 8px; }
  .hero-poster.student-hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: auto;
    margin: 14px auto 0;
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(18, 52, 71, 0.2);
  }
  .graduation-photo-inner {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .student-card img { object-position: center center; }
  .student-caption { top: 13px; left: 10px; max-width: calc(100% - 20px); border-radius: 12px; padding: 8px 9px; }
  .student-card-valentina .student-caption { right: 10px; }
  .student-caption strong { font-size: clamp(.67rem, 3vw, .88rem); }
  .student-caption span { font-size: clamp(.5rem, 2.2vw, .63rem); }
  .student-hero-message {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    padding: 18px 16px 20px;
    background: linear-gradient(135deg, #123447, #155668);
    box-shadow: none;
    backdrop-filter: none;
  }
  .student-hero-message .hero-kicker { font-size: .56rem; }
  .student-hero-message h2 { font-size: clamp(1.25rem, 6vw, 1.8rem); }
  .student-hero-message p:last-child { font-size: .67rem; }
  .graduation-cap { top: 15px; width: 56px; padding: 10px; }
  .graduation-class { top: 16px; padding: 8px 9px; }
  .graduation-class-enzo { left: 16px; }
  .graduation-class-valentina { right: 16px; }
  .graduation-class strong { font-size: .68rem; }
  .graduation-class span { font-size: .54rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; padding: 0 2px; }
  .hero-actions .button { width: 100%; min-width: 0; }
  .board-tool, .checkout-tool { width: 100%; max-width: none; border-radius: 22px; }
  .board-tool { padding: 18px; }
  .checkout-tool { padding: 18px; }
  .board-tool::before { margin: -18px -18px 17px; }
  .checkout-tool::before { margin: -18px -18px 17px; }
  .number-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .details-band { padding: 64px 0 36px; }
  .details-layout { grid-template-columns: 1fr; gap: 28px; }
  .poster-frame { position: static; justify-self: center; }
  .raffle-meta, .steps-list { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .app-tabbar {
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: 3px;
    width: min(390px, calc(100% - 20px));
    min-height: 70px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 22px;
    padding: 6px;
    color: rgba(255,255,255,.7);
    background: rgba(15, 48, 63, .94);
    box-shadow: 0 16px 40px rgba(9, 34, 45, .28);
    backdrop-filter: blur(18px);
  }
  .app-tabbar a { min-height: 56px; border: 0; border-radius: 16px; background: transparent; }
  .app-tabbar a.is-active,
  .app-tabbar a:focus-visible {
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.12);
    box-shadow: none;
    outline: 2px solid transparent;
    transform: none;
  }
  .app-tabbar a.is-active svg,
  .app-tabbar a:focus-visible svg { filter: none; }
  .app-tabbar svg { width: 23px; height: 23px; }
  .app-tabbar span { font-size: .65rem; }
  .app-tabbar a:hover,
  .app-tabbar a:focus-visible {
    border: 1px solid rgba(184, 232, 226, .28) !important;
    color: #fff !important;
    background: linear-gradient(145deg, #287f80, #1e626d) !important;
    box-shadow: 0 8px 19px rgba(10, 52, 61, .25) !important;
    transform: translateY(-1px) !important;
  }
  body[data-beneficiary="enzo"] .app-tabbar {
    border-color: rgba(126, 199, 238, .28) !important;
    color: rgba(224, 244, 255, .72) !important;
    background: linear-gradient(145deg, rgba(13, 52, 78, .97), rgba(18, 71, 105, .97)) !important;
    box-shadow: 0 16px 40px rgba(12, 56, 85, .3) !important;
  }
  body[data-beneficiary="enzo"] .app-tabbar a.is-active,
  body[data-beneficiary="enzo"] .app-tabbar a:focus-visible,
  body[data-beneficiary="enzo"] .app-tabbar a:hover {
    border: 1px solid rgba(181, 226, 250, .34) !important;
    color: #fff !important;
    background: linear-gradient(145deg, #338dbd, #236f9b) !important;
    box-shadow: 0 8px 19px rgba(14, 55, 82, .3) !important;
    transform: translateY(-1px) !important;
  }
  body[data-beneficiary="enzo"] .app-tabbar a.is-active svg { filter: drop-shadow(0 0 7px rgba(190, 231, 255, .45)) !important; }

  body[data-beneficiary="valentina"] .app-tabbar {
    border-color: rgba(225, 190, 240, .28) !important;
    color: rgba(246, 230, 252, .74) !important;
    background: linear-gradient(145deg, rgba(61, 37, 72, .97), rgba(82, 46, 96, .97)) !important;
    box-shadow: 0 16px 40px rgba(67, 38, 79, .3) !important;
  }
  body[data-beneficiary="valentina"] .app-tabbar a.is-active,
  body[data-beneficiary="valentina"] .app-tabbar a:focus-visible,
  body[data-beneficiary="valentina"] .app-tabbar a:hover {
    border: 1px solid rgba(239, 214, 249, .34) !important;
    color: #fff !important;
    background: linear-gradient(145deg, #a66bbb, #85519a) !important;
    box-shadow: 0 8px 19px rgba(65, 35, 76, .32) !important;
    transform: translateY(-1px) !important;
  }
  body[data-beneficiary="valentina"] .app-tabbar a.is-active svg { filter: drop-shadow(0 0 7px rgba(235, 204, 248, .45)) !important; }
  .mobile-purchase-summary:not([hidden]) {
    position: fixed;
    z-index: 31;
    right: 14px;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 78px);
    left: 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    width: min(362px, calc(100% - 28px));
    min-height: 48px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 16px;
    padding: 8px 12px;
    color: #fff;
    background: linear-gradient(135deg, rgba(30, 104, 148, .96), rgba(20, 75, 111, .96));
    box-shadow: 0 12px 32px rgba(9, 34, 45, .24);
    appearance: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(15px);
  }
  .mobile-purchase-summary:focus-visible { outline: 3px solid rgba(255, 228, 168, .9); outline-offset: 2px; }
  .mobile-purchase-summary:active { transform: translateY(1px); }
  .mobile-summary-count { border-radius: 999px; padding: 5px 8px; color: #143e58; background: #e2f3fb; font-size: .67rem; font-weight: 850; white-space: nowrap; }
  .mobile-summary-person { overflow: hidden; color: rgba(255, 255, 255, .78); font-size: .67rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-purchase-summary strong { color: #fff; font-size: .88rem; white-space: nowrap; }
  body[data-beneficiary="valentina"] .mobile-purchase-summary { background: linear-gradient(135deg, rgba(142, 84, 165, .97), rgba(100, 54, 121, .97)); }
  body[data-beneficiary="valentina"] .mobile-summary-count { color: #60326f; background: #f2e4f8; }
}

@media (max-width: 480px) {
  .beneficiary-options { grid-template-columns: 1fr; }
  .number-grid-controls { align-items: stretch; flex-direction: column; text-align: center; }
  .site-header { gap: 8px; min-height: 70px; padding: 8px 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 54px; height: 46px; flex-basis: 54px; }
  .brand-copy { max-width: none; }
  .brand strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(.76rem, 3.55vw, .88rem);
    line-height: 1.08;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .brand small { display: block; font-size: .6rem; line-height: 1.2; }
  .header-participate { flex: 0 0 auto; padding: 0 10px; font-size: .64rem; }
  .tool-heading { grid-template-columns: 1fr; align-items: start; }
  .available-counter { justify-self: start; }
  .filter-bar { flex-wrap: nowrap; margin-right: -18px; overflow-x: auto; border-radius: 14px 0 0 14px; }
  .number-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .qr-panel { grid-template-columns: 108px 1fr; }
  .qr-code { width: 108px; min-height: 108px; }
  .graduate-profile { grid-template-columns: 56px 1fr; padding: 14px; }
  .year-seal { width: 56px; font-size: 1.1rem; }
  .detail-copy h2 { font-size: 2.35rem; }
}

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

/* Professional editorial finish — 2026-10-16 */
:root {
  --pro-ink: #172126;
  --pro-ink-soft: #536168;
  --pro-night: #101a20;
  --pro-night-2: #1d2d35;
  --pro-paper: #f7f4ed;
  --pro-card: #fffdf9;
  --pro-gold: #c79b4f;
  --pro-gold-light: #f1d79f;
  --pro-line: rgba(23, 33, 38, .11);
  --pro-shadow: 0 24px 70px rgba(29, 39, 44, .1);
}

html { scroll-padding-top: 96px; }

body {
  color: var(--pro-ink);
  background: var(--pro-paper);
}

.site-header,
.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: rgba(20, 29, 34, .08);
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 10px 36px rgba(21, 31, 36, .06);
}

.brand-mark {
  border: 1px solid rgba(199, 155, 79, .42);
  background: var(--pro-night);
  box-shadow: 0 9px 24px rgba(16, 26, 32, .18);
}

.brand strong { color: var(--pro-ink); }
.brand small { color: #728087; }

.site-nav .nav-cta,
.header-participate {
  border-color: var(--pro-night) !important;
  color: #fff !important;
  background: var(--pro-night) !important;
  box-shadow: 0 10px 24px rgba(16, 26, 32, .16) !important;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current:not(.nav-cta) {
  color: #74551f;
  background: #f5ecda;
}

.raffle-stage {
  padding-top: 108px;
  background:
    radial-gradient(circle at 4% 8%, rgba(199, 155, 79, .14), transparent 30rem),
    radial-gradient(circle at 96% 32%, rgba(109, 151, 158, .1), transparent 27rem),
    linear-gradient(180deg, #f9f6ef 0%, #f2eee5 100%);
}

.hero-copy {
  grid-column: 1 / -1;
  align-items: stretch;
  padding-bottom: 48px;
  text-align: left;
}

.hero-poster.student-hero,
.hero-poster.graduation-photo-frame {
  width: 100%;
  min-height: 520px;
  aspect-ratio: 16 / 7;
  border: 1px solid rgba(199, 155, 79, .5);
  border-radius: 28px;
  background: var(--pro-night);
  box-shadow: 0 32px 80px rgba(16, 26, 32, .2);
}

.graduation-photo-frame::before {
  z-index: 4;
  inset: 14px;
  border-color: rgba(241, 215, 159, .45);
  border-radius: 17px;
  box-shadow: none;
}

.graduation-photo-frame::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(12, 21, 26, .98) 0%, rgba(12, 21, 26, .92) 33%, rgba(12, 21, 26, .22) 64%, rgba(12, 21, 26, .04) 100%),
    linear-gradient(180deg, transparent 52%, rgba(9, 16, 20, .35) 100%);
}

.graduation-photo-inner {
  width: 64%;
  height: 100%;
  margin-left: auto;
}

.graduation-photo-inner img {
  object-position: center 43%;
}

.student-hero-message {
  position: absolute;
  z-index: 5;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  display: flex;
  width: 48%;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: clamp(48px, 6vw, 86px);
  text-align: left;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.student-hero-message .hero-kicker {
  margin-bottom: 14px;
  color: var(--pro-gold-light);
  font-size: .72rem;
  letter-spacing: .2em;
}

.student-hero-message h2 {
  color: #fff;
  font-size: clamp(2.45rem, 4.7vw, 4.85rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .95;
}

.student-hero-message h2 strong {
  color: var(--pro-gold-light);
  font-weight: 800;
}

.student-hero-message p:last-child {
  max-width: 480px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(.86rem, 1.2vw, 1rem);
  line-height: 1.65;
}

.graduation-class {
  z-index: 6;
  top: 28px;
  border-color: rgba(255, 255, 255, .26);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(17, 27, 32, .72);
  box-shadow: 0 9px 26px rgba(0, 0, 0, .18);
}

.graduation-class-enzo { left: 52%; }
.graduation-class-valentina { right: 28px; }
.graduation-class strong { font-size: .78rem; }
.graduation-class span { font-size: .6rem; }

.hero-actions {
  justify-content: flex-start;
  width: 100%;
  margin-top: 22px;
}

.hero-actions .button {
  min-width: 230px;
  min-height: 54px;
  border-radius: 14px;
  font-size: .84rem;
  letter-spacing: 0;
  text-transform: none;
}

.hero-actions .button-primary,
.button-primary {
  border-color: var(--pro-night) !important;
  background: var(--pro-night) !important;
  box-shadow: 0 12px 26px rgba(16, 26, 32, .16);
}

.hero-actions .button-primary::after { content: "→"; }

.hero-actions .button-ghost {
  border-color: rgba(23, 33, 38, .14);
  background: rgba(255, 253, 249, .72);
}

.hero-trust {
  order: 8;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--pro-line);
  border-radius: 18px;
  padding: 0;
  list-style: none;
  background: var(--pro-line);
  box-shadow: 0 16px 40px rgba(23, 33, 38, .06);
}

.hero-trust li {
  display: grid;
  gap: 4px;
  min-height: 84px;
  align-content: center;
  padding: 16px 22px;
  background: rgba(255, 253, 249, .9);
}

.hero-trust strong { color: var(--pro-ink); font-size: .87rem; }
.hero-trust span { color: #758187; font-size: .72rem; }

.board-tool,
.checkout-tool {
  border-color: var(--pro-line);
  border-radius: 24px;
  background: rgba(255, 253, 249, .96);
  box-shadow: var(--pro-shadow);
}

.board-tool::before,
.checkout-tool::before {
  height: 3px;
  background: linear-gradient(90deg, var(--pro-night), var(--pro-gold), #8d687a);
}

.board-tool { padding: 30px; }
.checkout-tool { padding: 26px; }
.board-tool::before { margin: -30px -30px 25px; }
.checkout-tool::before { margin: -26px -26px 21px; }

.tool-heading .eyebrow,
.detail-copy .eyebrow,
.participation-heading .eyebrow {
  color: #98712d;
  letter-spacing: .14em;
}

.tool-heading h2 {
  max-width: 540px;
  color: var(--pro-ink);
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.05;
}

.available-counter {
  border: 1px solid rgba(199, 155, 79, .3);
  color: #f9ebc9;
  background: var(--pro-night);
}

.beneficiary-picker {
  margin-top: 22px;
  border-color: rgba(23, 33, 38, .1);
  background: #f6f2ea;
}

.beneficiary-option {
  border-color: rgba(23, 33, 38, .11);
  background: #fffdf9;
  box-shadow: 0 8px 24px rgba(23, 33, 38, .04);
}

.selection-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 25px 0 14px;
}

.selection-heading > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--pro-night);
  font-size: .7rem;
  font-weight: 900;
}

.selection-heading div { display: grid; gap: 2px; }
.selection-heading strong { font-size: .92rem; }
.selection-heading small { color: #758187; font-size: .7rem; }

.filter-bar {
  margin-top: 0;
  background: #f1eee8;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  color: var(--pro-ink);
  background: #fff;
}

.number-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }

.number-button {
  min-height: 46px;
  border-color: rgba(23, 33, 38, .11);
  border-radius: 10px;
  color: #334047;
  background: #faf8f3;
}

.number-button:hover,
.number-button:focus-visible {
  border-color: #b08a48;
  background: #fbf0d9;
  box-shadow: 0 8px 18px rgba(116, 85, 31, .1);
}

.board-legend {
  border-top: 1px solid var(--pro-line);
  padding-top: 18px;
}

.checkout-intro {
  margin: -3px 0 2px;
  color: #6e7b81;
  font-size: .77rem;
  line-height: 1.55;
}

.field input,
.field textarea,
.selected-box,
.qr-panel {
  border-color: rgba(23, 33, 38, .11);
  background: #faf8f3;
}

.total-row strong { color: #805c1f; }
.pix-key { background: #f2ede3; }

.panel-status {
  border-radius: 13px;
  padding: 12px 13px;
  color: #5d4a28;
  background: #f8efd9;
}

.firebase-status { font-size: .68rem; }

.details-band {
  padding: 104px 0 88px;
  background:
    radial-gradient(circle at 90% 15%, rgba(199, 155, 79, .1), transparent 26rem),
    #fcfaf6;
}

.details-layout { gap: 64px; }

.section-heading {
  margin-bottom: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--pro-line);
}

.section-heading h2,
.participation-heading h2 {
  max-width: 700px;
  margin: 0;
  color: var(--pro-ink);
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  letter-spacing: -.065em;
  line-height: .98;
}

.section-heading > p:last-child,
.participation-heading > p:last-child {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--pro-ink-soft);
  line-height: 1.7;
}

.graduate-profile,
.graduate-profile.is-valentina {
  border-color: var(--pro-line);
  background: #f8f5ee;
}

.graduate-profile.is-valentina { background: #faf3f5; }
.year-seal { background: var(--pro-night); }
.is-valentina .year-seal { background: #8b5c70; }

.prize-heading {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--pro-line);
}

.prize-heading h2 {
  max-width: 620px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.raffle-meta li,
.raffle-meta li:nth-child(2),
.raffle-meta li:nth-child(3) {
  border: 1px solid rgba(255, 255, 255, .08);
  background: var(--pro-night);
}

.raffle-meta li:nth-child(2) { background: #263940; }
.raffle-meta li:nth-child(3) { background: #735363; }

.poster-frame {
  border: 1px solid rgba(199, 155, 79, .35);
  padding: 8px;
  background: var(--pro-night);
  box-shadow: 0 28px 70px rgba(16, 26, 32, .16);
}

.participation-heading {
  margin-top: 82px;
  text-align: center;
}

.participation-heading h2,
.participation-heading > p:last-child { margin-right: auto; margin-left: auto; }
.participation-heading h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); }
.steps-list { margin-top: 30px; }

.step-card,
.step-card:nth-child(2),
.step-card:nth-child(3) {
  border-color: var(--pro-line);
  background: #fff;
  box-shadow: 0 14px 40px rgba(23, 33, 38, .07);
}

.step-card:nth-child(2) { background: #faf4f5; }
.step-card:nth-child(3) { background: #f3f7f5; }
.step-card span { background: var(--pro-night); }
.step-card:nth-child(2) span { background: #80566a; }

.site-footer {
  background:
    radial-gradient(circle at 85% 40%, rgba(199, 155, 79, .12), transparent 22rem),
    var(--pro-night);
}

@media (max-width: 1120px) {
  .hero-poster.student-hero,
  .hero-poster.graduation-photo-frame { min-height: 480px; aspect-ratio: 16 / 8; }
  .number-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 80px; }
  .raffle-stage { padding-top: 78px; }
  .hero-copy { padding-bottom: 26px; }
  .hero-poster.student-hero,
  .hero-poster.graduation-photo-frame {
    min-height: 0;
    aspect-ratio: auto;
    border-width: 1px;
    border-radius: 24px;
  }
  .graduation-photo-inner {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0;
  }
  .graduation-photo-frame::after {
    background: linear-gradient(180deg, transparent 55%, rgba(10, 18, 22, .44) 100%);
  }
  .student-hero-message {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    min-height: 250px;
    padding: 30px 24px 34px;
    background: var(--pro-night);
  }
  .student-hero-message h2 { font-size: clamp(2rem, 10vw, 3.1rem); }
  .student-hero-message p:last-child { font-size: .84rem; }
  .graduation-class { top: 18px; padding: 8px 10px; }
  .graduation-class-enzo { left: 18px; }
  .graduation-class-valentina { right: 18px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .button { min-width: 0; }
  .hero-trust { grid-template-columns: 1fr; }
  .hero-trust li { min-height: 70px; }
  .board-tool { padding: 22px; }
  .checkout-tool { padding: 22px; }
  .board-tool::before { margin: -22px -22px 20px; }
  .checkout-tool::before { margin: -22px -22px 20px; }
  .details-band { padding-top: 76px; }
  .details-layout { gap: 36px; }
  .participation-heading { margin-top: 62px; }
}

@media (max-width: 520px) {
  .site-header { padding-right: 10px; padding-left: 10px; }
  .brand-mark { width: 48px; height: 44px; flex-basis: 48px; }
  .brand small { display: none; }
  .header-participate { min-height: 38px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .button { min-height: 50px; }
  .hero-trust { border-radius: 15px; }
  .hero-trust li { padding: 14px 17px; }
  .tool-heading { grid-template-columns: 1fr; }
  .available-counter { justify-self: start; }
  .selection-heading small { line-height: 1.4; }
  .number-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .section-heading h2 { font-size: 2.55rem; }
  .participation-heading h2 { font-size: 2.3rem; }
}

/* Navegação por telas: Início, Números, Pix e Informações */
[data-app-page][hidden] { display: none !important; }

[data-app-page].is-visible {
  animation: app-view-in .38s ease both;
}

@keyframes app-view-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

body[data-app-view="numeros"] .board-tool {
  grid-column: 1 / -1;
  width: 100%;
}

body[data-app-view="pix"] .checkout-tool {
  position: static;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 760px);
}

body[data-app-view="detalhes"] .details-band {
  min-height: calc(100vh - 78px);
}

body[data-app-view="detalhes"] .raffle-stage { display: none; }

.page-back {
  justify-self: start;
  margin: -2px 0 2px;
  border: 0;
  padding: 4px 0;
  color: #7c622f;
  background: transparent;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}

.page-back:hover,
.page-back:focus-visible { color: var(--pro-ink); }

.board-checkout-link {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  border: 1px solid rgba(199, 155, 79, .38);
  border-radius: 18px;
  padding: 13px 18px;
  color: #fff;
  text-align: left;
  background: linear-gradient(135deg, var(--pro-night), #293b43);
  box-shadow: 0 14px 32px rgba(16, 26, 32, .16);
  cursor: pointer;
}

.board-checkout-link[hidden] { display: none !important; }
.board-checkout-link span { display: grid; gap: 3px; }
.board-checkout-link small { color: var(--pro-gold-light); font-size: .7rem; font-weight: 750; }
.board-checkout-link strong { font-size: .94rem; }
.board-checkout-link b { font-size: 1.45rem; transition: transform .2s ease; }
.board-checkout-link:hover b,
.board-checkout-link:focus-visible b { transform: translateX(4px); }

@media (max-width: 860px) {
  body[data-app-view="numeros"] .raffle-stage,
  body[data-app-view="pix"] .raffle-stage { padding-top: 88px; }
  .board-checkout-link { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  [data-app-page].is-visible { animation: none; }
}

/* Experiência avançada de prêmio e detalhes */
.details-experience {
  display: grid;
  gap: 28px;
}

.details-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr);
  gap: 40px;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(199, 155, 79, .3);
  border-radius: 30px;
  padding: clamp(30px, 5vw, 64px);
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(199, 155, 79, .2), transparent 24rem),
    linear-gradient(135deg, #101a20, #21343c);
  box-shadow: 0 30px 80px rgba(16, 26, 32, .18);
}

.details-hero-copy { max-width: 760px; }

.live-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .06);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.live-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bde69a;
  box-shadow: 0 0 0 5px rgba(189, 230, 154, .1), 0 0 14px rgba(189, 230, 154, .5);
}

.details-hero .eyebrow { color: var(--pro-gold-light); }

.details-hero h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 6.4vw, 6.1rem);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .9;
}

.details-hero-copy > p:last-child {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: clamp(.92rem, 1.4vw, 1.08rem);
  line-height: 1.75;
}

.details-metrics {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
}

.details-metrics div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  padding: 17px 20px;
  background: rgba(10, 18, 22, .58);
  backdrop-filter: blur(14px);
}

.details-metrics dt {
  color: rgba(255, 255, 255, .58);
  font-size: .7rem;
  font-weight: 750;
}

.details-metrics dd {
  margin: 0;
  color: #fff;
  font-size: clamp(.92rem, 1.6vw, 1.16rem);
  font-weight: 900;
  text-align: right;
}

.details-metrics div:first-child dd { color: var(--pro-gold-light); font-size: 1.55rem; }

.details-tabs {
  position: sticky;
  z-index: 8;
  top: 88px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(23, 33, 38, .1);
  border-radius: 22px;
  padding: 9px;
  background: rgba(250, 248, 242, .9);
  box-shadow: 0 16px 42px rgba(23, 33, 38, .09);
  backdrop-filter: blur(18px) saturate(130%);
}

.details-tabs button {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  min-height: 66px;
  border: 0;
  border-radius: 15px;
  padding: 10px 14px;
  color: #657177;
  text-align: left;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.details-tabs button > span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #75613d;
  background: #eee6d7;
  font-size: .67rem;
  font-weight: 900;
}

.details-tabs button strong { color: inherit; font-size: .84rem; }
.details-tabs button small { color: #8b969b; font-size: .64rem; font-weight: 650; }

.details-tabs button:hover,
.details-tabs button:focus-visible {
  color: var(--pro-ink);
  background: #fff;
}

.details-tabs button.is-active {
  color: #fff;
  background: var(--pro-night);
  box-shadow: 0 10px 26px rgba(16, 26, 32, .18);
}

.details-tabs button.is-active > span { color: var(--pro-night); background: var(--pro-gold-light); }
.details-tabs button.is-active small { color: rgba(255, 255, 255, .6); }

.detail-panels {
  overflow: hidden;
  border: 1px solid var(--pro-line);
  border-radius: 30px;
  background: #fffdf9;
  box-shadow: var(--pro-shadow);
}

.detail-panel { padding: clamp(24px, 4vw, 52px); }
.detail-panel.is-active { animation: detail-panel-in .38s ease both; }

@keyframes detail-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.prize-showcase {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.prize-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(199, 155, 79, .34);
  border-radius: 24px;
  padding: 8px;
  background: var(--pro-night);
  box-shadow: 0 24px 60px rgba(16, 26, 32, .16);
}

.prize-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 17px;
  object-fit: cover;
}

.prize-visual figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(12, 21, 26, .76);
  backdrop-filter: blur(14px);
}

.prize-visual figcaption span { color: var(--pro-gold-light); font-size: .62rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.prize-visual figcaption strong { font-size: .88rem; }

.prize-content .eyebrow { color: #96702e; }

.prize-content > h3,
.panel-heading h3 {
  margin: 0;
  color: var(--pro-ink);
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -.06em;
  line-height: .98;
}

.prize-content > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--pro-ink-soft);
  line-height: 1.7;
}

.prize-options {
  display: grid;
  gap: 9px;
  margin-top: 26px;
}

.prize-options article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--pro-line);
  border-radius: 15px;
  padding: 11px 13px;
  background: #faf7f0;
}

.prize-options article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: #8b5e40;
  font-weight: 900;
}

.prize-options article:nth-child(2) > span { background: #314e58; }
.prize-options article.is-mix > span { color: var(--pro-night); background: var(--pro-gold-light); }
.prize-options strong,
.prize-options small { display: block; }
.prize-options strong { font-size: .8rem; }
.prize-options small { margin-top: 2px; color: #7b888e; font-size: .66rem; }

.prize-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  border-radius: 15px;
  padding: 13px 15px;
  color: #554424;
  background: #f7eed8;
}

.prize-note > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #9d7936;
  font-weight: 900;
}

.prize-note p { display: grid; gap: 2px; margin: 0; font-size: .7rem; line-height: 1.45; }
.prize-note strong { font-size: .75rem; }
.detail-cta { width: 100%; margin-top: 18px; }

.panel-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.panel-heading > p:last-child {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--pro-ink-soft);
  line-height: 1.7;
}

.raffle-meta-advanced { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.raffle-meta-advanced li {
  display: grid;
  min-height: 166px;
  align-content: start;
  border-radius: 20px;
  padding: 22px;
}

.raffle-meta-advanced strong { margin-top: 14px; font-size: 1.08rem; line-height: 1.25; }
.raffle-meta-advanced small { margin-top: auto; padding-top: 18px; color: rgba(255, 255, 255, .57); font-size: .65rem; line-height: 1.45; }

.draw-flow {
  display: grid;
  grid-template-columns: 1fr 38px 1fr 38px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
}

.draw-flow article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 118px;
  border: 1px solid var(--pro-line);
  border-radius: 18px;
  padding: 17px;
  background: #faf8f3;
}

.draw-flow article > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--pro-night);
  font-size: .67rem;
  font-weight: 900;
}

.draw-flow strong { font-size: .78rem; }
.draw-flow p { margin: 5px 0 0; color: #718087; font-size: .68rem; line-height: 1.5; }
.draw-flow > i { height: 1px; background: linear-gradient(90deg, #d9c8a5, #9b7a3f); }

.technology-note {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  border: 1px solid rgba(56, 110, 115, .18);
  border-radius: 20px;
  padding: 18px 20px;
  background: #edf5f2;
}

.technology-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: #27545b;
  font-size: 1.45rem;
}

.technology-note strong { font-size: .82rem; }
.technology-note p { margin: 4px 0 0; color: #66787d; font-size: .7rem; }
.technology-note a { color: #2c5f65; font-size: .72rem; font-weight: 850; }

.steps-list-advanced {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin: 0;
}

.steps-list-advanced .step-card { min-height: 210px; }
.steps-list-advanced .step-card:nth-child(4) { background: #f7f2e8; }
.steps-list-advanced .step-card:nth-child(3) span { background: #37676b; }
.steps-list-advanced .step-card:nth-child(4) span { background: #927238; }

.graduates-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}

.graduates-card .graduate-profile { margin: 0; }

.detail-action-bar {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  border-radius: 20px;
  padding: 20px 22px;
  color: #fff;
  background: var(--pro-night);
}

.detail-action-bar > div { display: grid; gap: 3px; }
.detail-action-bar strong { font-size: .93rem; }
.detail-action-bar span { color: rgba(255, 255, 255, .62); font-size: .7rem; }
.detail-action-bar .button { flex: 0 0 auto; border-color: var(--pro-gold) !important; color: var(--pro-night) !important; background: var(--pro-gold-light) !important; }

@media (max-width: 980px) {
  .details-hero { grid-template-columns: 1fr; }
  .details-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .details-metrics div { grid-template-columns: 1fr; align-content: center; }
  .details-metrics dd { text-align: left; }
  .prize-showcase { grid-template-columns: 1fr; }
  .prize-visual { width: min(100%, 620px); justify-self: center; }
  .draw-flow { grid-template-columns: 1fr; }
  .draw-flow > i { width: 1px; height: 22px; margin-left: 37px; }
  .steps-list-advanced { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .details-band { padding-top: 88px; }
  .details-experience { width: calc(100% - 22px); gap: 18px; }
  .details-hero { gap: 28px; border-radius: 23px; padding: 28px 22px; }
  .details-hero h2 { font-size: clamp(2.6rem, 14vw, 4.2rem); }
  .live-status { margin-bottom: 24px; }
  .details-metrics { grid-template-columns: 1fr; }
  .details-metrics div { grid-template-columns: 1fr auto; min-height: 66px; padding: 13px 15px; }
  .details-metrics dd { text-align: right; }
  .details-tabs {
    top: 76px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    border-radius: 18px;
    padding: 6px;
  }
  .details-tabs button {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 2px 7px;
    min-width: 0;
    min-height: 62px;
    padding: 8px 7px;
  }
  .details-tabs button > span { width: 30px; height: 30px; }
  .details-tabs button strong { font-size: clamp(.68rem, 2.8vw, .8rem); line-height: 1.15; }
  .details-tabs button small { font-size: clamp(.53rem, 2.1vw, .62rem); line-height: 1.2; }
  .detail-panels { margin-right: -1px; margin-left: -1px; border-radius: 23px; }
  .detail-panel { padding: 22px 18px; }
  .prize-content > h3,
  .panel-heading h3 { font-size: 2.45rem; }
  .raffle-meta-advanced { grid-template-columns: 1fr; }
  .raffle-meta-advanced li { min-height: 142px; }
  .technology-note { grid-template-columns: 44px 1fr; }
  .technology-note a { grid-column: 1 / -1; border-top: 1px solid rgba(56, 110, 115, .15); padding-top: 12px; }
  .steps-list-advanced { grid-template-columns: 1fr; }
  .steps-list-advanced .step-card { min-height: auto; }
  .graduates-card { grid-template-columns: 1fr; }
  .detail-action-bar { align-items: stretch; flex-direction: column; }
  .detail-action-bar .button { width: 100%; }
}

@media (max-width: 420px) {
  .details-tabs { gap: 3px; padding: 5px; }
  .details-tabs button {
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-rows: 1fr;
    gap: 5px;
    min-height: 56px;
    padding: 7px 5px;
  }
  .details-tabs button > span {
    grid-row: 1;
    width: 26px;
    height: 26px;
    font-size: .61rem;
  }
  .details-tabs button strong { font-size: .68rem; }
  .details-tabs button small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .detail-panel.is-active { animation: none; }
}
