/* ============================================================
   RapiPrestamos YA — Stylesheet compartido
   ============================================================ */

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

:root {
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --accent: #10B981;
  --accent-50: #ECFDF5;
  --accent-700: #047857;
  --danger: #EF4444;
  --danger-50: #FEF2F2;
  --danger-700: #B91C1C;
  --warn: #F59E0B;
  --warn-50: #FFFBEB;
  --warn-700: #B45309;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-dark: #0B1A3A;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(37, 99, 235, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.1);
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.22);
  --ease-out: cubic-bezier(0.21, 0.69, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.flow { background: var(--bg-soft); min-height: 100vh; display: flex; flex-direction: column; }

::selection { background: var(--primary-100); color: var(--primary-dark); }

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

img, svg { max-width: 100%; display: block; }

/* Accesibilidad — anillo de foco visible y consistente */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}
button:focus-visible, a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
body.flow .nav {
  background: white; backdrop-filter: none; -webkit-backdrop-filter: none;
  position: static;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.logo .ya { color: var(--primary); }
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out);
  border-radius: 999px;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--primary); color: white;
  padding: 10px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; letter-spacing: -0.005em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color 0.15s, gap 0.15s;
}
.nav-back:hover { color: var(--primary); gap: 8px; }
.nav-back svg { transition: transform 0.15s; }
.nav-back:hover svg { transform: translateX(-2px); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: transparent;
  align-items: center; justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle .hb {
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: all 0.25s var(--ease-out);
}
.nav-toggle .hb::before,
.nav-toggle .hb::after {
  content: '';
  position: absolute; left: 0;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.25s var(--ease-out);
}
.nav-toggle .hb::before { top: -7px; }
.nav-toggle .hb::after  { top:  7px; }
.nav.is-open .nav-toggle .hb { background: transparent; }
.nav.is-open .nav-toggle .hb::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle .hb::after  { top: 0; transform: rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--primary); color: white;
  padding: 14px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; letter-spacing: -0.005em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.25s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.20);
  position: relative;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn-primary.full { width: 100%; }
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover:not(:disabled) svg { transform: translateX(2px); }

.btn-outline {
  background: white; color: var(--ink);
  padding: 14px 24px; border: 1.5px solid var(--line);
  border-radius: var(--radius); font-size: 15px; font-weight: 700;
  letter-spacing: -0.005em;
  transition: border-color 0.2s, color 0.2s, transform 0.15s, background 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-outline.full { width: 100%; margin-top: 12px; }
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

/* ===== FOOTER ===== */
footer.site {
  background: #0B1A3A; color: #94A3B8;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 13px; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 12px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== FLOW (validar / identidad / datos-bancarios / gracias) ===== */
.flow main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
}
.flow .wrap { width: 100%; max-width: 560px; }

.stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 32px;
}
.stepper-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: white; border: 2px solid var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.stepper-dot.active { background: var(--primary); border-color: var(--primary); color: white; }
.stepper-dot.done { background: var(--accent); border-color: var(--accent); color: white; }
.stepper-line { width: 40px; height: 2px; background: var(--line); }
.stepper-line.done { background: var(--accent); }

.card {
  background: white; border-radius: var(--radius-xl);
  padding: 40px; box-shadow: var(--shadow-xl); border: 1px solid var(--line);
}

.step-icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.icon-blue { background: var(--primary-50); color: var(--primary); }
.icon-green { background: var(--accent-50); color: var(--accent-700); }
.icon-red { background: var(--danger-50); color: var(--danger-700); }
.icon-amber { background: var(--warn-50); color: var(--warn-700); }

.step-title {
  font-size: 26px; font-weight: 800; text-align: center;
  letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.2;
}
.step-sub { font-size: 15px; color: var(--muted); text-align: center; margin-bottom: 24px; }

/* ===== FORM ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 16px; font-family: inherit; color: var(--ink);
  background: white; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-group input.prefilled {
  background: var(--bg-soft); border-color: var(--accent); border-style: dashed;
}
.form-group input.error, .form-group select.error { border-color: var(--danger); }
.form-group .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-error { font-size: 13px; color: var(--danger); margin-top: 6px; }

.doc-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }

.checkbox-wrap {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 24px 0; font-size: 13px; color: var(--muted); line-height: 1.5;
}
.checkbox-wrap input { margin-top: 3px; flex-shrink: 0; }
.checkbox-wrap a { color: var(--primary); text-decoration: underline; }

/* ===== BANNERS ===== */
.banner {
  border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 24px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px; line-height: 1.5;
}
.banner svg { flex-shrink: 0; margin-top: 1px; }
.banner.info { background: var(--accent-50); border: 1px solid #A7F3D0; color: var(--accent-700); }
.banner.warn { background: var(--warn-50); border: 1px solid #FEF3C7; color: var(--warn-700); }
.banner.danger { background: var(--danger-50); border: 1px solid #FECACA; color: var(--danger-700); }

/* ===== DNI BADGE ===== */
.dni-badge {
  background: var(--primary-50); border: 1px solid var(--primary-100);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.dni-badge svg { color: var(--primary); flex-shrink: 0; }
.dni-badge-content { flex: 1; }
.dni-badge-label {
  font-size: 11px; color: var(--primary-dark); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.dni-badge-value { font-size: 17px; font-weight: 700; color: var(--ink); }

/* ===== OFFER / VERIFIED ===== */
.offer-box {
  background: linear-gradient(135deg, var(--accent-50) 0%, #D1FAE5 100%);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 24px 0;
}
.offer-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.offer-row + .offer-row { border-top: 1px solid rgba(16, 185, 129, 0.15); }
.offer-row .lbl { color: var(--accent-700); font-weight: 500; }
.offer-row .val { font-weight: 700; color: #064E3B; }
.offer-row .val.big { font-size: 22px; }

.security-note {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin-top: 20px;
  font-size: 13px; color: var(--muted);
}
.security-note svg { color: var(--accent); flex-shrink: 0; }

.help-text {
  text-align: center; margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.help-text a { color: var(--primary); font-weight: 600; }

.result-icon {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 40;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: floatPulse 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}
@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Mobile nav drawer */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: white;
    border-top: 1px solid var(--line);
    padding: 16px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.25s var(--ease-out);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav.is-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav-links a::after { display: none; }
  .nav-links a:last-of-type { border-bottom: none; }
}

@media (max-width: 560px) {
  .card { padding: 28px 24px; }
  .step-title { font-size: 22px; }
  .doc-row { grid-template-columns: 110px 1fr; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
  .whatsapp-float { bottom: 80px; }
  body.has-sticky-cta .whatsapp-float { bottom: 80px; }
}

/* ============================================================
   LEGAL PAGES (terms / privacy)
   ============================================================ */
.legal-page {
  background: linear-gradient(180deg, #FBFCFE 0%, white 600px);
  padding: 64px 0 96px;
}
.legal-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.legal-hero {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px;
  background: var(--primary-50);
  color: var(--primary-dark);
  border: 1px solid var(--primary-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.legal-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--ink);
}
.legal-meta {
  font-size: 14px;
  color: var(--muted);
}
.legal-meta strong { color: var(--ink); font-weight: 700; }

.legal-toc {
  position: sticky;
  top: 92px;
  align-self: flex-start;
  order: 2;
}
.legal-toc-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.legal-toc ul {
  list-style: none;
  padding: 0; margin: 0;
  border-left: 2px solid var(--line);
}
.legal-toc li { margin: 0; }
.legal-toc a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.legal-toc a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.legal-body {
  order: 1;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 760px;
}
.legal-body section {
  margin-bottom: 48px;
  scroll-margin-top: 92px;
}
.legal-body h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.legal-body h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 22px 0 10px;
}
.legal-body p {
  margin-bottom: 14px;
}
.legal-body strong { color: var(--ink); font-weight: 700; }
.legal-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--primary-100);
  text-underline-offset: 2px;
}
.legal-body a:hover { text-decoration-color: var(--primary); }
.legal-body ul {
  margin: 0 0 18px 24px;
  padding: 0;
}
.legal-body li {
  margin-bottom: 8px;
  position: relative;
  list-style: none;
  padding-left: 4px;
}
.legal-body li::before {
  content: '';
  position: absolute;
  left: -18px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.legal-callout {
  display: flex; gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--primary-50), #EFF6FF);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.legal-callout svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.legal-contact {
  margin-top: 48px;
  padding: 28px;
  background: linear-gradient(135deg, var(--bg-soft), white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.legal-contact h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}

@media (max-width: 980px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  width: calc(100% - 48px);
  pointer-events: none;
}
.toast {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  animation: toastIn 0.32s cubic-bezier(0.21, 1.02, 0.73, 1);
}
@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.toast.is-leaving {
  animation: toastOut 0.28s cubic-bezier(0.4, 0, 1, 1);
  animation-fill-mode: forwards;
}
@keyframes toastOut {
  to { transform: translateX(120%); opacity: 0; }
}
.toast-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.toast-success .toast-icon { background: var(--accent-50); color: var(--accent-700); }
.toast-error .toast-icon   { background: var(--danger-50); color: var(--danger-700); }
.toast-warn .toast-icon    { background: var(--warn-50);   color: var(--warn-700); }
.toast-info .toast-icon    { background: var(--primary-50); color: var(--primary); }
.toast-body { flex: 1; min-width: 0; padding-top: 4px; }
.toast-message {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.45;
}
.toast-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  margin: -4px -6px -4px 0;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.toast-close:hover { background: var(--bg-soft); color: var(--ink); }
.toast-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  transform-origin: left;
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--toast-color, var(--primary)), transparent);
}
.toast-success .toast-progress { background: linear-gradient(90deg, var(--accent), transparent); }
.toast-error .toast-progress   { background: linear-gradient(90deg, var(--danger), transparent); }
.toast-warn .toast-progress    { background: linear-gradient(90deg, var(--warn), transparent); }
.toast-info .toast-progress    { background: linear-gradient(90deg, var(--primary), transparent); }

@media (max-width: 480px) {
  .toast-stack { top: 16px; right: 16px; left: 16px; }
}

/* ============================================================
   PROMO BANNER STICKY
   ============================================================ */
.promo-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%);
  color: white;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  animation: promoIn 0.6s cubic-bezier(0.21, 1.02, 0.73, 1);
}
@keyframes promoIn {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
.promo-banner.is-leaving {
  animation: promoOut 0.3s ease-out forwards;
}
@keyframes promoOut {
  to { transform: translateY(-100%); opacity: 0; }
}
.promo-banner::before {
  content: '';
  position: absolute; top: 0; left: -50%; width: 200%; height: 100%;
  background: radial-gradient(50% 100% at 50% 50%, rgba(165, 180, 252, 0.20), transparent 70%);
  pointer-events: none;
}
.promo-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}
.promo-icon {
  font-size: 18px;
  animation: promoIconBob 2s ease-in-out infinite;
}
@keyframes promoIconBob {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}
.promo-text { color: rgba(255, 255, 255, 0.92); }
.promo-text strong { color: white; font-weight: 800; }
.promo-divider { color: rgba(255, 255, 255, 0.30); margin: 0 4px; }
.promo-countdown {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.14);
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FCD34D;
}
.promo-cta {
  display: inline-flex; align-items: center; gap: 5px;
  background: white;
  color: #1E1B4B;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: transform 0.15s, box-shadow 0.2s;
}
.promo-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.20);
}
.promo-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.promo-close:hover { background: rgba(255, 255, 255, 0.10); color: white; }

@media (max-width: 720px) {
  .promo-banner { font-size: 12px; }
  .promo-text { display: inline-block; }
  .promo-divider { display: none; }
  .promo-text br { display: none; }
}

/* ============================================================
   PWA INSTALL PROMPT
   ============================================================ */
.pwa-install {
  position: fixed;
  bottom: 90px;
  right: 24px;
  max-width: 380px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);
  z-index: 50;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
}
.pwa-install.is-visible { transform: translateY(0); opacity: 1; }
.pwa-install-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #6366F1);
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.30);
}
.pwa-install-text { flex: 1; min-width: 0; }
.pwa-install-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.pwa-install-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}
.pwa-install-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.pwa-install-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.pwa-install-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  flex-shrink: 0;
}
.pwa-install-close:hover { background: var(--bg-soft); color: var(--ink); }

@media (max-width: 480px) {
  .pwa-install { right: 12px; left: 12px; max-width: none; bottom: 80px; }
}
