/* ── TWK — Trade With Kam — style.css ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0B1C3D;
  --navy-mid:  #0f2347;
  --navy-card: #112654;
  --gold:      #BFA14A;
  --gold-lt:   #D4B96A;
  --gold-dim:  #8a7235;
  --white:     #FFFFFF;
  --gray-lt:   #D3D3D3;
  --gray-dk:   #9a9a9a;
  --red:       #e55;
  --green:     #22c55e;
  --radius:    12px;
  --shadow:    0 4px 32px rgba(0,0,0,0.45);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ─────────────────────────────── */
.app-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--gold);
  top: -120px; right: -120px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--gold-lt);
  bottom: -100px; left: -100px;
}

.screen {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.screen.active { display: flex; flex-direction: column; }

.screen-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── PROGRESS BAR ────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 10px 20px 8px;
  background: rgba(11,28,61,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(191,161,74,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#progress-bar.visible { opacity: 1; }

#progress-track {
  flex: 1;
  height: 3px;
  background: rgba(191,161,74,0.2);
  border-radius: 99px;
  overflow: hidden;
}
#progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 99px;
  transition: width 0.4s ease;
  width: 0%;
}
#progress-text {
  font-size: 11px;
  color: var(--gold);
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* ── TYPOGRAPHY ──────────────────────────── */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}
p {
  font-size: 15px;
  color: var(--gray-lt);
  line-height: 1.6;
}
.highlight { color: var(--gold); }
.highlight-green { color: var(--green); }

/* ── HERO BADGE ──────────────────────────── */
.hero-badge-row { display: flex; justify-content: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(191,161,74,0.12);
  border: 1px solid rgba(191,161,74,0.3);
  color: var(--gold-lt);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

/* ── STATS BAR ───────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(191,161,74,0.06);
  border: 1px solid rgba(191,161,74,0.15);
  border-radius: var(--radius);
  padding: 14px 10px;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  color: var(--gray-dk);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ── CHECK LIST ──────────────────────────── */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-lt);
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='%23BFA14A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 2px;
}

/* ── INFO CARD ───────────────────────────── */
.info-card {
  background: var(--navy-card);
  border: 1px solid rgba(191,161,74,0.15);
  border-radius: var(--radius);
  padding: 18px;
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(191,161,74,0.35);
}
.btn-gold:hover { box-shadow: 0 6px 28px rgba(191,161,74,0.5); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: rgba(191,161,74,0.08); }

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { box-shadow: 0 6px 28px rgba(37,211,102,0.45); }

.btn-large {
  width: 100%;
  padding: 16px 24px;
  font-size: 15px;
}

/* ── OPTION BUTTONS ──────────────────────── */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option-btn {
  width: 100%;
  padding: 16px 20px;
  background: var(--navy-card);
  border: 1px solid rgba(191,161,74,0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.option-btn:hover {
  border-color: var(--gold);
  background: rgba(191,161,74,0.08);
}
.option-btn.selected {
  border-color: var(--gold);
  background: rgba(191,161,74,0.15);
  color: var(--gold-lt);
  font-weight: 600;
}

/* ── QUESTION META ───────────────────────── */
.question-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
}
.question-label {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'DM Mono', monospace;
}
.question-sub {
  font-size: 13px;
  color: var(--gray-dk);
}

/* ── FORM ────────────────────────────────── */
.form-stack { display: flex; flex-direction: column; gap: 16px; }

.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-group label {
  font-size: 13px;
  color: var(--gray-dk);
  font-weight: 500;
}

.field-group input,
.field-group select,
textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--navy-card);
  border: 1px solid rgba(191,161,74,0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.field-group input:focus,
.field-group select:focus,
textarea:focus { border-color: var(--gold); }
.field-group input.error,
.field-group select.error { border-color: var(--red); }

.field-group select option { background: var(--navy-mid); }

textarea {
  resize: vertical;
  min-height: 90px;
}

.field-error {
  font-size: 12px;
  color: var(--red);
  min-height: 16px;
}

/* ── URGENCY / TIMER BANNERS ─────────────── */
.urgency-banner {
  background: rgba(191,161,74,0.1);
  border: 1px solid rgba(191,161,74,0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gold-lt);
  text-align: center;
  font-weight: 500;
}
.timer-banner {
  background: rgba(191,161,74,0.1);
  border: 1px solid rgba(191,161,74,0.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--gold-lt);
  text-align: center;
  font-weight: 600;
}
.countdown-display {
  font-family: 'DM Mono', monospace;
  color: var(--gold);
  font-size: 18px;
}
.timer-sub {
  font-size: 13px;
  color: var(--gray-dk);
  text-align: center;
  line-height: 1.5;
}

/* ── STATUS ICONS ────────────────────────── */
.status-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto;
  flex-shrink: 0;
}
.status-icon.approved {
  background: rgba(34,197,94,0.15);
  border: 2px solid var(--green);
  color: var(--green);
}
.status-icon.rejected {
  background: rgba(229,85,85,0.12);
  border: 2px solid var(--red);
  color: var(--red);
}

/* ── QUALIFIED HEADER ────────────────────── */
.qualified-header { text-align: center; }

/* ── KAM PROFILE CARD ────────────────────── */
.kam-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy-card);
  border: 1px solid rgba(191,161,74,0.2);
  border-radius: var(--radius);
  padding: 16px;
}
.kam-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.kam-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kam-info { display: flex; flex-direction: column; gap: 3px; }
.kam-info strong {
  font-size: 15px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kam-info span { font-size: 13px; color: var(--gray-dk); }
.verify-badge { width: 16px; height: 16px; flex-shrink: 0; }
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.online-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── WPP ICON ────────────────────────────── */
.wpp-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ── NOT QUALIFIED SCREEN ────────────────── */
.not-qualified-screen {
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 100vh;
  gap: 24px;
}

/* ── LOADING SCREEN ──────────────────────── */
.loading-screen { justify-content: center; min-height: 100vh; }
.spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(191,161,74,0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(191,161,74,0.15);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}
#loading-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 99px;
  width: 5%;
}

/* ── TELEGRAM CTA ────────────────────────── */
.telegram-cta { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 16px; }
.telegram-cta-inner { display: flex; align-items: center; gap: 12px; }
.telegram-icon { width: 36px; height: 36px; background: #229ED9; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }

/* ── DISCLAIMER ──────────────────────────── */
.disclaimer {
  font-size: 11px;
  color: var(--gray-dk);
  text-align: center;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
  margin-top: 4px;
}

/* ── WAR CRY FOOTER ──────────────────────── */
.war-cry {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  text-align: center;
  opacity: 0.7;
}

/* ── SCREEN 1 HERO ───────────────────────── */
.twk-logo {
  text-align: center;
  margin-bottom: 4px;
}
.twk-logo-mark {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1;
}
.twk-logo-sub {
  font-size: 11px;
  color: var(--gray-dk);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (min-width: 520px) {
  .screen-inner { padding: 40px 32px 60px; }
}
