:root {
  --bg: #08080d;
  --bg2: #15111f;
  --card: rgba(17, 17, 28, 0.88);
  --text: #f8f1e8;
  --muted: #b8adbd;
  --muted2: #877f91;
  --danger: #ff4d2e;
  --danger2: #ff8a3d;
  --gold: #ffd29b;
  --green: #88ffb4;
  --line: rgba(255,255,255,0.13);
  --shadow: rgba(0,0,0,0.62);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 14%, rgba(102, 47, 255, 0.20), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(255, 77, 46, 0.14), transparent 27%),
    radial-gradient(circle at 50% 100%, rgba(255, 138, 61, 0.10), transparent 34%),
    linear-gradient(145deg, #06060a 0%, var(--bg) 43%, var(--bg2) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a { color: inherit; }

.shadows {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shadow-figure {
  position: absolute;
  bottom: -100px;
  width: 120px;
  height: 340px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(0,0,0,0.78) 0 25%, transparent 26%),
    radial-gradient(ellipse at 50% 63%, rgba(0,0,0,0.58) 0 35%, transparent 36%);
  filter: blur(2.5px);
  opacity: 0.25;
  transform-origin: bottom center;
  animation: breathe 6s ease-in-out infinite;
}

.shadow-figure:nth-child(1) { left: 4%; transform: scale(1.15); animation-delay: 0s; }
.shadow-figure:nth-child(2) { right: 6%; transform: scale(1.30); animation-delay: 1.1s; opacity: 0.23; }
.shadow-figure:nth-child(3) { left: 75%; transform: scale(0.82); animation-delay: 2.2s; opacity: 0.17; }
.shadow-figure:nth-child(4) { left: 20%; transform: scale(0.72); animation-delay: 3.4s; opacity: 0.16; }
.shadow-figure:nth-child(5) { left: 47%; transform: scale(0.92); animation-delay: 4.2s; opacity: 0.11; }

@keyframes breathe {
  0%, 100% { translate: 0 0; opacity: 0.17; }
  50% { translate: 0 -10px; opacity: 0.34; }
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 42px;
  display: grid;
  align-items: center;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.seal, .counter-pill, .language-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(12px);
}

.language-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 950;
  font-size: 12px;
  padding: 3px 5px;
  border-radius: 999px;
}

.language-links a.active {
  color: #fff;
  background: rgba(255,138,61,0.15);
}

.counter-pill {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.counter-pill.visible {
  opacity: 1;
  transform: translateY(0);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 18px rgba(255, 77, 46, 0.8);
}

.app, .chooser-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--card);
  box-shadow: 0 28px 90px var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
}

.app::before {
  content: var(--ribbon-text, "POSTPONEMENT NOTICE");
  position: absolute;
  top: 24px;
  right: -60px;
  rotate: 18deg;
  padding: 8px 74px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  background: rgba(255, 77, 46, 0.20);
  border: 1px solid rgba(255, 77, 46, 0.32);
  pointer-events: none;
  z-index: 0;
}

.inner, .chooser-inner {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 5vw, 48px);
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 34px;
}

.step-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 9px 10px;
  color: var(--muted2);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  transition: 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-chip.active {
  color: #fff;
  border-color: rgba(255, 138, 61, 0.55);
  background: rgba(255, 138, 61, 0.10);
  box-shadow: 0 0 28px rgba(255, 138, 61, 0.08);
}

.step { display: none; animation: enter 0.38s ease both; }
.step.active { display: block; }

@keyframes enter {
  from { opacity: 0; transform: translateY(12px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.eyebrow {
  color: var(--danger2);
  font-weight: 1000;
  letter-spacing: 0.13em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.077em;
  margin: 0 0 18px;
  max-width: 820px;
}

h2 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.94;
  letter-spacing: -0.066em;
  margin: 0 0 16px;
  max-width: 790px;
}

.subtitle, .lead {
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.55;
  max-width: 730px;
  margin: 0 0 30px;
}

.field { max-width: 760px; margin: 0 auto 16px 0; }

label {
  display: block;
  margin-bottom: 9px;
  color: #e9dfd6;
  font-weight: 900;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  padding: 17px 18px;
  border-radius: 19px;
  outline: none;
  font-size: 16px;
}

input:focus {
  border-color: rgba(255, 138, 61, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.11);
}

.big-button {
  width: 100%;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.28), transparent 26%),
    linear-gradient(135deg, var(--danger), #c51d1d 62%, #7b0f16);
  border-radius: 28px;
  min-height: 126px;
  padding: 26px;
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 1000;
  letter-spacing: -0.06em;
  cursor: pointer;
  box-shadow: 0 22px 0 #490b0e, 0 38px 78px rgba(255, 77, 46, 0.30);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.2s ease;
  text-shadow: 0 2px 0 rgba(0,0,0,0.22);
  max-width: 760px;
}

.big-button:hover { filter: brightness(1.07); }

.big-button:active {
  transform: translateY(12px);
  box-shadow: 0 10px 0 #490b0e, 0 22px 45px rgba(255, 77, 46, 0.22);
}

.mini-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
  line-height: 1.55;
  max-width: 720px;
}

.official-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.078), rgba(255,255,255,0.034));
  padding: clamp(22px, 4vw, 34px);
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: grid;
  align-content: center;
}

.official-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -110px;
  border-radius: 50%;
  border: 1px solid rgba(255, 138, 61, 0.22);
  box-shadow: 0 0 90px rgba(255, 138, 61, 0.08);
}

.stamp {
  position: absolute;
  right: 22px;
  top: 22px;
  rotate: 9deg;
  color: rgba(255, 77, 46, 0.58);
  border: 2px solid rgba(255, 77, 46, 0.42);
  border-radius: 13px;
  padding: 8px 10px;
  font-weight: 1000;
  letter-spacing: 0.05em;
  font-size: 12px;
}

.official-label {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255,138,61,0.45);
  color: #ffd0aa;
  background: rgba(255,138,61,0.1);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.result {
  font-size: clamp(28px, 4.5vw, 54px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.055em;
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.subresult {
  color: var(--muted);
  margin: 18px 0 0;
  line-height: 1.55;
  font-size: 17px;
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.next, .ghost, .do-now {
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 18px;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 950;
  font-size: 15px;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.next {
  background: linear-gradient(135deg, rgba(255,138,61,0.20), rgba(255,77,46,0.13));
  border-color: rgba(255,138,61,0.35);
}

.ghost { background: rgba(255,255,255,0.045); }

.next:hover, .ghost:hover, .do-now:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 138, 61, 0.55);
}

.fine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 24px;
}

.fine {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255,255,255,0.052);
  cursor: pointer;
  transition: transform 0.13s ease, border-color 0.13s ease, background 0.13s ease;
  color: var(--text);
  text-align: left;
  font: inherit;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fine:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 61, 0.58);
  background: rgba(255,255,255,0.078);
}

.fine.recommended {
  border-color: rgba(255, 138, 61, 0.58);
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.12), 0 22px 55px rgba(255, 77, 46, 0.10);
}

.badge {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  background: linear-gradient(135deg, #ff8a3d, #ff4d2e);
  color: white;
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1.1;
  margin-bottom: 14px;
  box-shadow: 0 10px 25px rgba(255, 77, 46, 0.22);
}

.price {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.95;
  font-weight: 1000;
  letter-spacing: -0.055em;
  margin-bottom: 12px;
}

.fine-title { font-weight: 1000; font-size: 18px; margin-bottom: 7px; }
.fine-copy { color: var(--muted); font-size: 14px; line-height: 1.42; }
.fine-footer { margin-top: 20px; color: var(--gold); font-weight: 950; font-size: 13px; }

.or-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 13px;
  align-items: center;
  margin: 28px 0;
  color: var(--muted2);
  font-weight: 1000;
  letter-spacing: 0.1em;
  font-size: 12px;
  text-transform: uppercase;
}

.or-divider::before, .or-divider::after { content: ""; height: 1px; background: var(--line); }

.exit-card {
  border: 1px solid rgba(134,255,181,0.28);
  border-radius: 28px;
  background: rgba(134,255,181,0.07);
  padding: clamp(22px, 4vw, 34px);
}

.do-now {
  width: 100%;
  border-color: rgba(134,255,181,0.42);
  color: #eafff1;
  background: rgba(134,255,181,0.09);
  padding: 20px;
  font-size: clamp(20px, 3vw, 31px);
  letter-spacing: -0.035em;
}

.countdown { color: var(--green); font-weight: 1000; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  z-index: 10;
  color: #fff;
  background: rgba(0,0,0,0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100% - 28px);
  text-align: center;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.office-link {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,0.052);
  transition: transform 0.13s ease, border-color 0.13s ease, background 0.13s ease;
}

.office-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 61, 0.58);
  background: rgba(255,255,255,0.078);
}

.office-code { color: var(--danger2); font-weight: 1000; letter-spacing: 0.08em; font-size: 13px; }
.office-name { font-size: 22px; font-weight: 1000; letter-spacing: -0.035em; margin-top: 6px; }
.office-desc { color: var(--muted); margin-top: 6px; line-height: 1.45; font-size: 14px; }

@media (max-width: 860px) {
  .wrap { padding-top: 18px; align-items: start; }
  .topbar { flex-direction: column; align-items: stretch; }
  .seal, .counter-pill, .language-links { width: 100%; justify-content: flex-start; }
  .progress { grid-template-columns: 1fr 1fr; }
  .app, .official-card, .exit-card, .chooser-card { border-radius: 24px; }
  .fine-grid, .office-grid { grid-template-columns: 1fr; }
  .fine { min-height: auto; }
  .big-button { min-height: 106px; }
  .app::before { display: none; }
}

/* --- Shame On You upgrade pack --- */
.brand-seal { min-width: 250px; }
.brand-lockup { display: grid; gap: 1px; line-height: 1.12; }
.brand-lockup strong { color: #fff; font-size: 15px; letter-spacing: -0.02em; }
.brand-lockup small { color: var(--muted); font-size: 12px; }
.language-switch { position: relative; z-index: 20; }
.lang-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.055);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 1000;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12,12,20,0.96);
  box-shadow: 0 24px 80px rgba(0,0,0,0.52);
  padding: 8px;
  display: none;
}
.language-switch.open .lang-menu { display: grid; gap: 4px; }
.lang-menu a {
  text-decoration: none;
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 11px;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.lang-menu a:hover, .lang-menu a.active { color: #fff; background: rgba(255,138,61,0.12); }
.lang-menu span:first-child { color: var(--danger2); letter-spacing: 0.07em; }
.case-meta, .receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.case-meta div, .receipt-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.045);
}
.case-meta span, .receipt-grid span {
  display: block;
  color: var(--muted2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 1000;
  margin-bottom: 5px;
}
.case-meta strong, .receipt-grid strong { color: #fff; font-size: 13px; line-height: 1.25; }
.panic-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.66);
  backdrop-filter: blur(12px);
}
.panic-overlay.visible { display: flex; animation: enter 0.18s ease both; }
.panic-card {
  width: min(620px, 100%);
  border: 1px solid rgba(255,77,46,0.40);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(32,20,28,0.98), rgba(14,14,24,0.98));
  box-shadow: 0 30px 100px rgba(0,0,0,0.7);
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
}
.panic-count {
  font-size: clamp(70px, 16vw, 148px);
  line-height: 0.85;
  font-weight: 1000;
  letter-spacing: -0.08em;
  color: #fff;
  text-shadow: 0 0 35px rgba(255,77,46,0.42);
  margin: 22px 0;
}
.panic-title { font-size: clamp(26px, 4vw, 42px); line-height: 1; font-weight: 1000; letter-spacing: -0.055em; margin: 0; }
.panic-sub { color: var(--muted); line-height: 1.5; margin: 14px auto 0; max-width: 480px; }
.receipt-card {
  border: 1px solid rgba(255, 138, 61, 0.35);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,138,61,0.10), rgba(255,255,255,0.045));
  padding: clamp(20px, 3vw, 28px);
  margin-top: 22px;
  animation: enter 0.28s ease both;
}
.receipt-card.hidden { display: none; }
.receipt-title {
  color: var(--gold);
  font-weight: 1000;
  letter-spacing: 0.12em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.receipt-note { color: var(--muted); margin: 14px 0 0; line-height: 1.45; }
.share-main { border-color: rgba(255,138,61,0.35); background: rgba(255,138,61,0.095); }
@media (max-width: 860px) {
  .brand-seal { min-width: 0; }
  .language-switch { width: 100%; }
  .lang-button { width: 100%; text-align: left; }
  .lang-menu { left: 0; right: auto; width: 100%; }
  .case-meta, .receipt-grid { grid-template-columns: 1fr; }
}
