/* =========================================================
   vippoints.net — CP DROP visual system (Call of Duty CP)
   Rebrand tokens live here. Funnel logic stays in main.js.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Unique palette — infrared ops + steel HUD (not gold/lime/orange-cyan-purple) */
  --void: #06070B;
  --panel: #10141C;
  --panel-2: #171D2A;
  --stroke: rgba(159, 182, 255, 0.22);
  --text: #F4F7FF;
  --muted: #9AA6C1;
  --infrared: #FF2A1F;
  --infrared-2: #FF5A3C;
  --steel: #4F6FFF;
  --steel-2: #8AA2FF;
  --cp-gold: #F0C14A;
  --ok: #3DDC97;
  --danger: #FF2A1F;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --chamfer: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --radius: 4px;
  --font-display: 'Barlow Condensed', Impact, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --cta-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--void);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; }

/* ---------- Background: tactical grid + radar ---------- */
.ops-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(79, 111, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(255, 42, 31, 0.12), transparent 50%),
    linear-gradient(180deg, #06070B 0%, #0A0D14 100%);
}

.ops-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 111, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 111, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  animation: gridDrift 28s linear infinite;
}

.ops-bg__radar {
  position: absolute;
  width: min(90vw, 520px);
  aspect-ratio: 1;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(79, 111, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(79, 111, 255, 0.03),
    0 0 0 80px rgba(79, 111, 255, 0.02);
}

.ops-bg__radar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 42, 31, 0.22) 40deg, transparent 70deg);
  animation: radarSpin 4.5s linear infinite;
}

.ops-bg__hex {
  position: absolute;
  width: 18px;
  height: 18px;
  background: rgba(240, 193, 74, 0.35);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: hexFloat 7s ease-in-out infinite;
  opacity: 0.55;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}
@keyframes radarSpin {
  to { transform: rotate(360deg); }
}
@keyframes hexFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.35; }
  50% { transform: translateY(-18px) rotate(20deg); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .ops-bg__grid,
  .ops-bg__radar::before,
  .ops-bg__hex,
  .cta--pulse,
  .bar-fill,
  .toast { animation: none !important; }
}

/* ---------- Shell ---------- */
.app {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 16px 16px calc(96px + var(--safe-b));
  min-height: 100dvh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  flex-shrink: 0;
  display: block;
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1;
}

.brand__word span {
  color: var(--steel-2);
  font-size: 0.85em;
  letter-spacing: 0.04em;
}

.lang-wrap select {
  appearance: none;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239AA6C1' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 10px 36px 10px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero {
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(105deg, #fff 10%, var(--infrared-2) 55%, var(--steel-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 36ch;
}

.micro {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--stroke);
  background: rgba(79, 111, 255, 0.08);
  color: var(--steel-2);
  clip-path: var(--chamfer);
}

.chip--hot {
  border-color: rgba(255, 42, 31, 0.45);
  background: rgba(255, 42, 31, 0.12);
  color: #FFB4AE;
}

/* Progress */
.progress {
  margin-bottom: 16px;
}

.progress__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.progress__label strong {
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1rem;
}

.progress__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  pointer-events: none; /* not clickable shortcuts */
}

.progress__dot {
  height: 6px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  clip-path: var(--chamfer);
}

.progress__dot.is-done,
.progress__dot.is-active {
  background: linear-gradient(90deg, var(--infrared), var(--steel));
  border-color: transparent;
}

/* Panels — hard angled, not glass pills */
.panel {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  padding: 22px 18px 20px;
  margin-bottom: 14px;
}

.panel__kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--steel-2);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.panel__hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.step { display: none; }
.step.is-active { display: block; animation: stepIn 0.35s ease; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Inputs */
.field {
  position: relative;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  background: rgba(6, 7, 11, 0.65);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(79, 111, 255, 0.2);
}

.field__tag {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cp-gold);
  pointer-events: none;
}

/* Option grids */
.opt-grid {
  display: grid;
  gap: 10px;
}

.opt-grid--2 { grid-template-columns: 1fr 1fr; }
.opt-grid--3 { grid-template-columns: repeat(3, 1fr); }

.opt {
  position: relative;
  min-height: 88px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(6, 7, 11, 0.55);
  border: 1px solid var(--stroke);
  clip-path: var(--chamfer);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
  text-align: center;
}

.opt:hover { transform: translateY(-2px); border-color: var(--steel-2); }
.opt.is-selected {
  border-color: var(--infrared);
  background: linear-gradient(160deg, rgba(255, 42, 31, 0.22), rgba(79, 111, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 42, 31, 0.35);
}

.opt__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.opt__icon svg { width: 28px; height: 28px; }

.opt__label {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.opt__amount {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--cp-gold);
  line-height: 1;
}

.opt__unit {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.opt__badge {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--cp-gold);
  padding: 2px 6px;
}

/* CTA */
.cta {
  width: 100%;
  height: var(--cta-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(105deg, var(--infrared) 0%, #FF4726 45%, #C41010 100%);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 10px 28px rgba(255, 42, 31, 0.35);
  transition: filter 0.15s, transform 0.15s, opacity 0.15s;
  margin-top: 16px;
}

.cta:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.cta:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.4);
}

.cta--pulse:not(:disabled) {
  animation: ctaPulse 1.6s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(255, 42, 31, 0.35); }
  50% { box-shadow: 0 10px 36px rgba(255, 42, 31, 0.6), 0 0 0 6px rgba(255, 42, 31, 0.12); }
}

.cta--steel {
  background: linear-gradient(105deg, var(--steel), #2E4BDB);
  box-shadow: 0 10px 28px rgba(79, 111, 255, 0.35);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, transparent, rgba(6, 7, 11, 0.92) 35%);
  display: none;
}

.sticky-cta.is-on { display: block; }
.sticky-cta .cta { margin-top: 0; }

/* Social proof / scarcity */
.livebar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 10px 12px;
  background: rgba(61, 220, 151, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.25);
  clip-path: var(--chamfer);
  font-size: 0.8rem;
  color: var(--muted);
}

.livebar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
  animation: livePulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.scarcity {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #FFB4AE;
  font-weight: 600;
}

/* Generator / resource bar */
.gen-wrap { text-align: center; }

.gen-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--cp-gold);
  letter-spacing: 0.02em;
}

.gen-amount span { color: var(--muted); font-size: 1.1rem; margin-left: 4px; }

.resource {
  margin: 18px 0 12px;
  text-align: left;
}

.resource__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.resource__meta b { color: var(--text); }

.resource__bar {
  height: 22px;
  background: rgba(6, 7, 11, 0.7);
  border: 1px solid var(--stroke);
  clip-path: var(--chamfer);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--infrared), var(--cp-gold) 55%, var(--steel));
  transition: width 0.25s linear;
  position: relative;
}

.bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: sheen 1.4s linear infinite;
}

@keyframes sheen {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.checks {
  list-style: none;
  margin: 16px 0 0;
  text-align: left;
  display: grid;
  gap: 8px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 10px 12px;
  background: rgba(6, 7, 11, 0.45);
  border: 1px solid var(--stroke);
  clip-path: var(--chamfer);
}

.checks li.is-on { color: var(--text); border-color: rgba(61, 220, 151, 0.35); }
.checks li.is-on .check-ico { background: var(--ok); color: var(--void); }

.check-ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--panel-2);
  color: var(--muted);
  flex-shrink: 0;
  clip-path: polygon(30% 0, 100% 0, 100% 70%, 70% 100%, 0 100%, 0 30%);
}

.msg {
  margin-top: 14px;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  background: rgba(79, 111, 255, 0.1);
  border: 1px solid var(--stroke);
  clip-path: var(--chamfer);
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.trust__item {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 6px;
  border: 1px solid var(--stroke);
  background: rgba(6, 7, 11, 0.4);
}

.trust__item strong {
  display: block;
  color: var(--steel-2);
  font-size: 0.85rem;
  margin-bottom: 2px;
  letter-spacing: 0;
  text-transform: none;
}

/* Locker overlay — non-closable */
.locker {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  background: rgba(3, 4, 8, 0.92);
  backdrop-filter: blur(6px);
}

.locker.is-open { display: flex; }

.locker__sheet {
  margin-top: auto;
  height: min(94dvh, 920px);
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-bottom: 0;
  display: flex;
  flex-direction: column;
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}

.locker__head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(120deg, rgba(255, 42, 31, 0.14), rgba(79, 111, 255, 0.12));
  flex-shrink: 0;
}

.locker__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.locker__howto {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.locker__howto li { margin-bottom: 4px; }
.locker__howto strong { color: var(--cp-gold); }

.locker__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
  min-height: 280px;
}

/* SEO */
.seo {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--stroke);
  background: rgba(16, 20, 28, 0.7);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.seo h2 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.seo article { margin-bottom: 14px; }
.seo h3 {
  color: var(--steel-2);
  font-size: 1rem;
  margin-bottom: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-b));
  transform: translateX(-50%) translateY(20px);
  z-index: 60;
  background: var(--panel-2);
  border: 1px solid rgba(255, 42, 31, 0.4);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  clip-path: var(--chamfer);
  transition: opacity 0.25s, transform 0.25s;
  max-width: min(92vw, 420px);
  text-align: center;
}

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

@media (min-width: 768px) {
  .app { padding-top: 28px; padding-bottom: 40px; }
  .sticky-cta { display: none !important; }
  .panel { padding: 26px 24px; }
  .opt-grid--3 { gap: 12px; }
}

@media (max-width: 380px) {
  .opt-grid--3 { grid-template-columns: 1fr; }
  .opt__amount { font-size: 1.8rem; }
  .trust { grid-template-columns: 1fr; }
}

[dir="rtl"] .app { text-align: right; }
[dir="rtl"] .locker__howto { padding-left: 0; padding-right: 1.1rem; }
[dir="rtl"] .progress__label,
[dir="rtl"] .resource__meta,
[dir="rtl"] .topbar { flex-direction: row-reverse; }
