:root {
  --navy-deep: #050b1e;
  --navy: #0a1538;
  --navy-light: #132257;
  --blue-grad-1: #0d1a46;
  --blue-grad-2: #1b2f6e;
  --gold: #f4c542;
  --gold-light: #ffe49a;
  --gold-dark: #c9941f;
  --white: #f5f7ff;
  --muted: #9fb0d8;
  --green: #2bbd6f;
  --danger: #ff6b6b;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 800px at 50% -10%, #142866 0%, var(--navy-deep) 60%);
  color: var(--white);
  font-family: "Poppins", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  min-height: 100vh;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

/* ---------- Brand ---------- */

.crown-row { display: flex; justify-content: center; margin-bottom: -4px; }
.crown-row .icon { width: 56px; height: 50px; filter: drop-shadow(0 3px 8px rgba(244, 197, 66, 0.45)); }
.crown-row .icon svg { width: 100%; height: 100%; display: block; }

.brand {
  text-align: center;
  margin-bottom: 4px;
}

.brand h1 {
  font-family: "Baloo 2", "Poppins", sans-serif;
  font-size: 44px;
  margin: 4px 0 0;
  letter-spacing: 1px;
  font-weight: 800;
}

.brand h1 .lg { color: var(--gold); text-shadow: 0 0 20px rgba(244, 197, 66, 0.4); }
.brand h1 .pro { color: var(--white); }

.powered-row { display: flex; justify-content: center; }
.powered-pill {
  text-align: center;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: 1px solid rgba(244, 197, 66, 0.5);
  background: rgba(244, 197, 66, 0.08);
  border-radius: 999px;
  display: inline-block;
  padding: 5px 16px;
  margin: 10px 0 10px;
}

.disclosure-row { display: flex; justify-content: center; }
.disclosure {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  border: 1px solid rgba(244, 197, 66, 0.35);
  border-radius: 14px;
  display: inline-block;
  padding: 8px 16px;
  margin: 0 auto 22px;
  width: 100%;
  line-height: 1.5;
}

/* ---------- Section headers ---------- */

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(244, 197, 66, 0.5);
  border-radius: 999px;
  padding: 12px 20px;
  font-family: "Baloo 2", "Poppins", sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 26px 0 16px;
  background: linear-gradient(180deg, rgba(27, 47, 110, 0.4), rgba(10, 21, 56, 0.4));
}

.section-title .icon { width: 26px; height: 26px; flex-shrink: 0; }
.section-title .icon svg { width: 100%; height: 100%; display: block; }

/* ---------- Cards ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-grad-1), var(--blue-grad-2));
  border: 1px solid rgba(244, 197, 66, 0.55);
  border-radius: var(--radius-md);
  padding: 18px 12px 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 60% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent);
  pointer-events: none;
}

.card.wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 16px 18px;
  gap: 14px;
}

.card.wide .wide-left { display: flex; align-items: center; gap: 14px; }

.card-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(244, 197, 66, 0.32), rgba(244, 197, 66, 0.04) 72%);
  flex-shrink: 0;
}

.card.wide .card-icon { margin: 0; }

.card-icon .icon { width: 38px; height: 38px; }
.card-icon .icon svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.card.wide .card-icon .icon { width: 46px; height: 46px; }

.card .qty {
  font-family: "Baloo 2", "Poppins", sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: var(--white);
}

.card.wide .qty { font-size: 20px; }

.card .price {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  color: #241a00;
  font-weight: 800;
  padding: 4px 13px;
  border-radius: 999px;
  margin: 8px 0 12px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.card.wide .price { margin: 6px 0 0; }

.card .sub-meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  color: #241a00;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  transition: transform 0.12s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: shine 3.4s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -60%; }
  45% { left: 130%; }
  100% { left: 130%; }
}

.btn:active { transform: scale(0.97); }

.btn.green { background: linear-gradient(180deg, #5fe6a0, var(--green)); color: #042814; }

.btn.block-fixed { width: auto; min-width: 150px; }

.btn .icon { width: 16px; height: 16px; display: inline-flex; }
.btn .icon svg { width: 100%; height: 100%; display: block; }

.foot-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.foot-note .icon { width: 18px; height: 20px; flex-shrink: 0; }
.foot-note .icon svg { width: 100%; height: 100%; display: block; }

/* ---------- Success page ---------- */

.panel {
  background: linear-gradient(160deg, var(--blue-grad-1), var(--blue-grad-2));
  border: 1px solid rgba(244, 197, 66, 0.55);
  border-radius: var(--radius-lg);
  padding: 26px 20px 24px;
  margin-top: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  font-size: 11px;
  color: var(--navy-deep);
  background: var(--gold);
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.check-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 4px 0 2px;
}

.check-circle { width: 84px; height: 84px; }
.check-circle svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 16px rgba(43, 189, 111, 0.5)); }

.spark {
  position: absolute;
  color: var(--gold-light);
  font-size: 15px;
  text-shadow: 0 0 6px rgba(244, 197, 66, 0.85);
  animation: twinkle 1.8s ease-in-out infinite;
}

.spark.s1 { top: -2px; left: 22%; animation-delay: 0s; }
.spark.s2 { bottom: 2px; right: 20%; font-size: 11px; animation-delay: 0.4s; }
.spark.s3 { top: 36%; right: 8%; font-size: 12px; animation-delay: 0.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.ribbon-row { display: flex; justify-content: center; margin: 14px 0 6px; }

.ribbon {
  position: relative;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  color: #241a00;
  font-family: "Baloo 2", "Poppins", sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 10px 30px;
  clip-path: polygon(4% 0%, 96% 0%, 100% 50%, 96% 100%, 4% 100%, 0% 50%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.ribbon::before, .ribbon::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 0;
  height: 0;
  border-style: solid;
  filter: brightness(0.72);
}

.ribbon::before {
  left: -9px;
  border-width: 8px 9px 8px 0;
  border-color: transparent var(--gold-dark) transparent transparent;
}

.ribbon::after {
  right: -9px;
  border-width: 8px 0 8px 9px;
  border-color: transparent transparent transparent var(--gold-dark);
}

.status-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 22px;
}

.field-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
  display: block;
}

.input-wrap { position: relative; margin-bottom: 4px; }

.input-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.input-wrap .icon svg { width: 100%; height: 100%; display: block; }

input.id-input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 197, 66, 0.4);
  background: rgba(5, 11, 30, 0.6);
  color: var(--white);
  font-size: 15px;
  margin-bottom: 0;
}

input.id-input:focus { outline: none; border-color: var(--gold); }

.error-text {
  color: var(--danger);
  font-size: 13px;
  margin: 8px 0 12px;
  display: none;
}

.code-label {
  text-align: center;
  color: var(--gold-light);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 20px 0 8px;
}

.code-box {
  display: none;
  margin-top: 0;
  background: rgba(5, 11, 30, 0.55);
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.code-box .code {
  font-family: "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--gold-light);
  word-break: break-all;
  margin-bottom: 14px;
  font-weight: 700;
}

.msg-box {
  display: none;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.55;
}

.msg-box strong { color: var(--gold-light); font-weight: 700; }

.verify-state {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 18px;
}

.verify-fail {
  display: none;
  text-align: center;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 0;
}

.hidden { display: none !important; }

a.back-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
}
