@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --bg: #0e1b30;
  --surface: #172b41;
  --surface-raised: #294258;
  --text: #edf6ff;
  --muted: #a9bdcf;
  --primary: #6fd8ff;
  --primary-deep: #228fd7;
  --border: rgba(145, 186, 209, .34);
  --success: #83e6bc;
  --danger: #ff9f9f;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(28, 130, 187, .22), transparent 42%),
    linear-gradient(135deg, #172a40, #0d192c 68%);
}
button, input { font: inherit; }
a { color: inherit; }

.donation-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px clamp(18px, 4vw, 64px);
}
.donation-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(108, 188, 230, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 188, 230, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.ambient-light {
  position: fixed;
  z-index: -2;
  top: -280px;
  left: 50%;
  width: 850px;
  height: 600px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(42, 172, 234, .13);
  filter: blur(100px);
}

.brand-header {
  width: min(1160px, 100%);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(135, 181, 213, .25);
}
.brand-logo { width: 190px; height: auto; display: block; filter: drop-shadow(0 10px 18px #020b21aa); }
.brand-divider { width: 1px; height: 28px; background: var(--border); }
.brand-header > span {
  color: var(--muted);
  font: 600 11px/1 "Cinzel", serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.donation-shell {
  width: min(1160px, 100%);
  margin: clamp(46px, 8vh, 90px) auto 50px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(470px, 1.12fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font: 700 11px/1.2 "Cinzel", serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2 { margin: 0; font-family: "Cinzel", serif; text-transform: uppercase; }
h1 {
  max-width: 650px;
  font-size: clamp(40px, 5.3vw, 74px);
  line-height: .98;
  letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 10%, #b7ccdf 55%, #edf7ff 65%, #819cb7);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 2px #031225);
}
h2 { font-size: clamp(20px, 2vw, 27px); letter-spacing: .01em; }
.intro-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.ticket-showcase {
  position: relative;
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.ticket-showcase img {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  border: 1px solid rgba(143, 208, 236, .5);
  box-shadow: 0 10px 28px #020b21aa, inset 0 0 0 2px #071425;
}
.ticket-glow {
  position: absolute;
  left: -18px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(67, 211, 132, .2), transparent 67%);
  filter: blur(6px);
}
.ticket-showcase strong, .ticket-showcase span { display: block; }
.ticket-showcase strong { font: 700 18px "Cinzel", serif; text-transform: uppercase; }
.ticket-showcase span { margin-top: 5px; color: var(--muted); font-size: 15px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: #c7d8e6; font-size: 13px; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }

.metallic-panel {
  position: relative;
  padding: clamp(25px, 4vw, 42px);
  background: linear-gradient(135deg, rgba(49, 71, 90, .94), rgba(20, 39, 60, .95));
  border: 1px solid var(--border);
  border-top-color: rgba(192, 215, 229, .48);
  box-shadow: inset 0 1px rgba(233, 246, 255, .09), inset 0 -2px rgba(5, 19, 41, .38), 0 28px 70px rgba(2, 12, 33, .55);
}
.metallic-panel::before, .metallic-panel::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-style: solid;
  border-color: #8fb9d3;
  pointer-events: none;
}
.metallic-panel::before { top: 7px; left: 7px; border-width: 1px 0 0 1px; }
.metallic-panel::after { right: 7px; bottom: 7px; border-width: 0 1px 1px 0; }
.panel-heading { display: flex; gap: 17px; align-items: center; }
.panel-heading.compact { margin-bottom: 24px; }
.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(111, 216, 255, .5);
  color: var(--primary);
  font: 700 13px "Cinzel", serif;
  background: rgba(19, 48, 72, .7);
  box-shadow: inset 0 0 16px rgba(42, 172, 234, .08);
}
.panel-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
.character-form { margin-top: 30px; }
.character-form label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.input-row input {
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(5, 19, 35, .58);
  border: 1px solid rgba(141, 186, 211, .35);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(111, 216, 255, .1); }
.input-row button, .paypal-button, .return-link {
  border: 1px solid #93e7ff;
  color: #071827;
  background: linear-gradient(135deg, #8ee7ff, #35b9f0 55%, #2190dd);
  box-shadow: inset 0 1px rgba(230, 251, 255, .6), inset 0 -2px rgba(18, 81, 140, .38), 0 6px 24px rgba(0, 134, 228, .2);
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-weight: 700;
  text-transform: uppercase;
}
.input-row button { padding: 0 24px; font-size: 11px; letter-spacing: .07em; }
.input-row button:hover, .paypal-button:hover, .return-link:hover { filter: brightness(1.1); }
.status-message { margin: 13px 0 0; font-size: 14px; }
.status-message.error { color: var(--danger); }
.verified-character { margin-top: 25px; display: flex; align-items: center; gap: 13px; padding: 15px; background: rgba(6, 23, 39, .48); border: 1px solid rgba(131, 230, 188, .2); }
.checkmark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #08261b; background: var(--success); font-weight: 800; }
.verified-character div { min-width: 0; flex: 1; }
.verified-character small, .verified-character strong { display: block; }
.verified-character small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.verified-character strong { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.verified-character a { color: var(--primary); font-size: 13px; font-weight: 700; }
.section-rule { height: 1px; margin: 28px 0; background: linear-gradient(90deg, transparent, var(--border), transparent); }

.ticket-counter { display: grid; grid-template-columns: 48px 1fr 48px; gap: 12px; align-items: stretch; }
.counter-button { border: 1px solid var(--border); color: var(--primary); background: rgba(8, 27, 45, .6); font-size: 27px; cursor: pointer; }
.counter-button:hover { background: rgba(111, 216, 255, .1); border-color: var(--primary); }
.counter-value { min-height: 78px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid rgba(145, 186, 209, .25); background: rgba(5, 19, 35, .5); }
.counter-value strong { color: var(--text); font: 700 38px/1 "Cinzel", serif; }
.counter-value span { color: var(--muted); font-weight: 600; line-height: 1; }
.ticket-slider {
  --progress: 0%;
  width: 100%;
  height: 6px;
  margin: 28px 0 0;
  appearance: none;
  border-radius: 99px;
  outline: none;
  background: linear-gradient(90deg, var(--primary) var(--progress), rgba(4, 17, 31, .75) var(--progress));
}
.ticket-slider::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #dff8ff; background: var(--primary-deep); box-shadow: 0 0 0 5px rgba(111, 216, 255, .14), 0 0 18px rgba(111, 216, 255, .6); cursor: grab; }
.ticket-slider::-moz-range-thumb { width: 17px; height: 17px; border-radius: 50%; border: 3px solid #dff8ff; background: var(--primary-deep); box-shadow: 0 0 0 5px rgba(111, 216, 255, .14); cursor: grab; }
.range-labels { display: flex; justify-content: space-between; margin-top: 11px; color: #8ca4b9; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.order-summary { margin-top: 25px; border-top: 1px solid rgba(145, 186, 209, .2); border-bottom: 1px solid rgba(145, 186, 209, .2); }
.order-summary > div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 2px; color: var(--muted); }
.order-summary strong { color: var(--text); }
.order-summary .summary-total { align-items: center; border-top: 1px solid rgba(145, 186, 209, .13); color: var(--text); font-size: 17px; font-weight: 700; }
.summary-total strong { color: var(--primary); font: 700 27px "Cinzel", serif; }
.paypal-button { width: 100%; min-height: 58px; margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; letter-spacing: .06em; }
.paypal-button small { font: italic 800 21px Arial, sans-serif; color: #083f83; text-transform: none; letter-spacing: -.05em; }
.donation-note { margin: 15px 6px 0; color: #9fb3c5; font-size: 12px; line-height: 1.5; text-align: center; }

footer { width: min(1160px, 100%); margin: 0 auto; display: flex; justify-content: space-between; color: #708aa1; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
footer nav { display: flex; gap: 8px; }
footer a { text-decoration: none; }
footer a.active, footer a:hover { color: var(--primary); }
footer {
    align-items: center;
    gap: 20px;
}

footer > * {
    margin: 0;
}

.creator-signature a {
    color: #8aa9bf;
    text-decoration: none;
    transition: color .2s ease, text-shadow .2s ease;
}

.creator-signature a:hover,
.creator-signature a:focus-visible {
    color: var(--primary);
    text-shadow: 0 0 14px rgba(91, 207, 246, .3);
}

@media (max-width: 560px) {
    footer {
        flex-direction: column;
        gap: 9px;
        text-align: center;
    }
}

.success-page { display: flex; flex-direction: column; }
.success-card { width: min(600px, 100%); margin: auto; text-align: center; }
.success-card h1 { margin-top: 10px; font-size: clamp(32px, 5vw, 48px); }
.success-card > p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.6; }
.success-icon { width: 62px; height: 62px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; color: #08261b; background: var(--success); box-shadow: 0 0 30px rgba(131, 230, 188, .3); font-size: 29px; font-weight: 800; }
.ticket-showcase.centered { justify-content: center; text-align: left; margin: 28px 0; padding: 20px; background: rgba(5, 19, 35, .4); }
.return-link { display: inline-flex; min-height: 48px; align-items: center; padding: 0 24px; text-decoration: none; font-size: 11px; letter-spacing: .06em; }
.success-card > small { display: block; margin-top: 15px; color: #718ba2; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
@media (max-width: 900px) {
  .donation-shell { grid-template-columns: 1fr; gap: 40px; margin-top: 45px; }
  .intro-panel { text-align: center; }
  .intro-copy { margin-left: auto; margin-right: auto; }
  .ticket-showcase, .trust-row { justify-content: center; text-align: left; }
}
@media (max-width: 560px) {
  .donation-page { padding: 17px 14px 28px; }
  .brand-header { justify-content: center; }
  .brand-header > span, .brand-divider { display: none; }
  .brand-logo { width: 170px; }
  h1 { font-size: 39px; }
  .intro-copy { font-size: 16px; }
  .trust-row { align-items: center; flex-direction: column; gap: 10px; }
  .metallic-panel { padding: 23px 17px; }
  .input-row { grid-template-columns: 1fr; }
  .input-row button { min-height: 50px; }
  .ticket-counter { grid-template-columns: 43px 1fr 43px; gap: 8px; }
  .counter-value { min-height: 68px; }
  .counter-value strong { font-size: 31px; }
  .counter-value span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.error-card {
    overflow: hidden;
}

.error-code {
    margin: -12px 0 0;
    color: rgba(91, 207, 246, .16);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(90px, 18vw, 156px);
    font-weight: 700;
    line-height: .82;
    letter-spacing: -.05em;
}

.protection-signature {
    margin: 28px 0 0 !important;
    color: #5f7b93 !important;
    font-size: 10px !important;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.protection-signature a {
    color: #8aa9bf;
    text-decoration: none;
}

.protection-signature a:hover {
    color: var(--primary);
}