/* ============================================================
   XNEXUS — Warranty Page Styles
   css/warranty.css
   Phase 1: Public page structure, all sections, RTL support
   ============================================================ */

/* ══════════════════════════════════════════════════
   WARRANTY PAGE WRAPPER
══════════════════════════════════════════════════ */
.warranty-page-wrap {
  padding-top: var(--nav-h);
  position: relative;
  z-index: 2;
}

/* ── Shared section shell ── */
.wn-section {
  padding: 96px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.wn-sep {
  height: 1px;
  background: var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Section head ── */
.wn-section-head {
  margin-bottom: 56px;
}
.wn-section-head .eyebrow {
  /* inherits from core.css */
}
.wn-section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);   /* up from 2.6rem — closer to standard, Warranty still tighter */
  font-weight: var(--h-weight-strong);         /* 700 */
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.wn-section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   [1] HERO
══════════════════════════════════════════════════ */
.wn-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 80px 32px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 80vh;
}

.wn-hero-left {
  position: relative;
  z-index: 2;
}

.wn-hero-bg {
  position: absolute;
  inset: -60px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.wn-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.wn-hero-orb-1 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,.13) 0%, transparent 70%);
  top: -100px; left: -100px;
  border-radius: 50%;
}
.wn-hero-orb-2 {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,.10) 0%, transparent 70%);
  bottom: -80px; right: -60px;
  border-radius: 50%;
}

.wn-hero-content {
  position: relative;
  z-index: 1;
}

.wn-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-l);
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}
.wn-hero-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue-l);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue);
}

.wn-hero-h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: var(--h-weight-display);   /* 800 */
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.wn-hero-h1 span { display: block; }

.wn-hero-p {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
}

.wn-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
/* ── Phase 19 — display-value pattern shared rule ──────────────
   wn-hero-stat-n + wn-tl-cost share the same animated gradient.
   Individual font-size, weight, spacing defined separately below. */
.wn-hero-stat-n,
.wn-tl-cost {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-move 5s linear infinite;
  display: inline-block;
}

.wn-hero-stat-n {
  font-size: 1.8rem;
  font-weight: var(--h-weight-display);   /* 800 */
  line-height: 1;
  margin-bottom: 4px;
}
}
.wn-hero-stat-l {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .04em;
}

/* wn-hero-right — see full definition below (background-image architecture) */
/* wn-hero-right-fade — removed; overlay is handled by bg-image gradient layers */

/* Placeholder gfx when no image */
.wn-hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(59,130,246,.08), transparent),
    radial-gradient(ellipse 60% 50% at 70% 70%, rgba(139,92,246,.08), transparent);
}
.wn-hero-shield {
  width: 80px; height: 80px;
  background: var(--grad);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(59,130,246,.25);
}
.wn-hero-shield svg {
  width: 40px; height: 40px;
  color: #fff;
}
.wn-hero-placeholder-text {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: .05em;
}

/* ── Hero right — background-image architecture ─────────────
   warranty-hero.webp is the background layer.
   Dark overlay + brand glow ensure text above remains readable.
   When image is absent: fallback gradient + placeholder icon.  */
.wn-hero-right {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-m);
  /* Fallback: brand gradient shown when image is absent */
  background:
    linear-gradient(135deg, rgba(6,6,11,.72) 0%, rgba(10,10,20,.60) 100%),
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(59,130,246,.10), transparent),
    radial-gradient(ellipse 60% 50% at 70% 70%, rgba(139,92,246,.10), transparent),
    var(--bg-card);
  /* Image layer — silently absent when file not placed yet */
  background-image:
    linear-gradient(135deg, rgba(6,6,11,.68) 0%, rgba(6,6,11,.30) 100%),
    url('../images/warranty/warranty-hero.webp');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
/* Subtle inner glow ring — reinforces glass border feel */
.wn-hero-right::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 55% at 60% 35%, rgba(59,130,246,.09), transparent),
    radial-gradient(ellipse 55% 45% at 25% 70%, rgba(139,92,246,.09), transparent);
  pointer-events: none;
}
/* Placeholder — shown always; sits in the middle of the bg image */
.wn-hero-placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ══════════════════════════════════════════════════
   [2] VERIFY STRIP
══════════════════════════════════════════════════ */
.wn-verify-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 32px;
  position: relative;
  z-index: 2;
}
.wn-verify-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}

.wn-vs-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-l);
  margin-bottom: 8px;
}
.wn-vs-title {
  font-size: 1.65rem;
  font-weight: var(--h-weight-strong);   /* 700 */
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.wn-vs-sub {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

.wn-vs-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.wn-vs-form > .wn-form-group { flex: 1; min-width: 180px; }

/* OR divider */
.wn-vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding-bottom: 4px;
  align-self: flex-end;
}
.wn-vs-divider-line {
  width: 1px; height: 24px;
  background: var(--border-m);
}
.wn-vs-divider-text {
  font-size: 10px;
  color: rgba(245,245,247,0.22);
  font-weight: 600;
  letter-spacing: .1em;
  font-family: var(--font-mono);
}

/* Action column */
.wn-vs-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: flex-end;
}

/* Loading state */
.wn-loading {
  display: none;
  align-items: center;
  gap: 10px;
  flex-direction: column;
}
.wn-loader-ring {
  width: 26px; height: 26px;
  border: 2px solid var(--border-m);
  border-top-color: var(--blue-l);
  border-radius: 50%;
  animation: wn-spin .7s linear infinite;
}
@keyframes wn-spin { to { transform: rotate(360deg); } }
.wn-loading-text { font-size: 12px; color: var(--text-muted); }

/* ── Shared form elements ── */
.wn-input-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.wn-input-wrap {
  position: relative;
}
.wn-input-icon {
  position: absolute;
  left: 14px;
  top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}
.wn-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-m);
  border-radius: var(--radius-sm);
  padding: 11px 14px 11px 40px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.wn-input:focus { border-color: rgba(139,92,246,.35); }
.wn-input::placeholder { color: rgba(245,245,247,0.22); }
textarea.wn-input { padding-left: 14px; resize: vertical; }

/* Buttons */
.wn-btn-verify {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
  width: 100%;
  box-shadow: 0 0 20px rgba(59,130,246,.2);
  margin-bottom: 8px;
}
.wn-btn-verify:hover { opacity: .88; transform: translateY(-1px); }

.wn-btn-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-m);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
}
.wn-btn-qr:hover { border-color: var(--border-s); color: var(--text-dim); }

/* ══════════════════════════════════════════════════
   [3] RESULT SECTION (placeholder in Phase 1)
══════════════════════════════════════════════════ */
.wn-result-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  /* hidden until Phase 2 wires verification */
}

/* ══════════════════════════════════════════════════
   [4] WARRANTY TIMELINE
══════════════════════════════════════════════════ */
.wn-timeline-wrap { position: relative; }

.wn-tl-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--purple));
  transform: translateX(-50%);
  opacity: .25;
}

.wn-tl-items {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.wn-tl-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: start;
  gap: 24px;
}

.wn-tl-node-wrap {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}
.wn-tl-node {
  width: 14px; height: 14px;
  background: var(--grad);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(59,130,246,.5);
  flex-shrink: 0;
}
.wn-tl-empty {}

/* ══════════════════════════════════════════════════
   TIMELINE CARDS — transparent glass background
   Image bleeds through entire card, anchored bottom-right
   Text content floats above on transparent surface
══════════════════════════════════════════════════ */
.wn-tl-card {
  /* Transparent surface — page background shows through */
  background: transparent;
  border: 1px solid var(--border-m);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  /* Fallback bg size/position shared by all cards */
  background-size: 65% auto, cover;
  background-position: bottom right, center;
  background-repeat: no-repeat, no-repeat;
}
.wn-tl-card:hover {
  border-color: rgba(139,92,246,.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}

/* Per-year images — anchored bottom-right, bleed through whole card ── */
.wn-tl-card--y1 {
  background-image:
    linear-gradient(to bottom, rgba(6,6,11,.25) 0%, rgba(6,6,11,.70) 75%, rgba(6,6,11,.87) 100%),
    url('../images/warranty/warranty-free.webp');
}
.wn-tl-card--y2 {
  background-image:
    linear-gradient(to bottom, rgba(6,6,11,.25) 0%, rgba(6,6,11,.70) 75%, rgba(6,6,11,.87) 100%),
    url('../images/warranty/warranty-50.webp');
}
.wn-tl-card--y3 {
  background-image:
    linear-gradient(to bottom, rgba(6,6,11,.25) 0%, rgba(6,6,11,.70) 75%, rgba(6,6,11,.87) 100%),
    url('../images/warranty/warranty-70.webp');
}
.wn-tl-card--y4 {
  background-image:
    linear-gradient(to bottom, rgba(6,6,11,.25) 0%, rgba(6,6,11,.70) 75%, rgba(6,6,11,.87) 100%),
    url('../images/warranty/warranty-80.webp');
}

/* .wn-tl-card-img div — no longer a visual band, just holds the watermark */
.wn-tl-card-img {
  position: relative;
  height: 0;          /* Collapsed — no visible band */
  overflow: visible;
}

/* Overlay div — not needed structurally, kept for DOM compatibility */
.wn-tl-card-img-overlay { display: none; }

/* Ghost year watermark — REMOVED per design revision */
.wn-tl-card-num {
  display: none;
}

.wn-tl-card-inner {
  padding: 20px 24px 24px;
  position: relative;
  z-index: 1;         /* Text sits above the bg image */
}



.wn-tl-year {
  font-size: 10px;
  color: var(--blue-l);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.wn-tl-title {
  font-size: 1.05rem;
  font-weight: var(--h-weight-strong);   /* 700 */
  margin-bottom: 8px;
  color: var(--text);
}
.wn-tl-cost {
  /* Gradient properties live in the shared rule above (Phase 19 consolidation). */
  font-size: 1.3rem;
  font-weight: var(--h-weight-display);   /* 800 */
  margin-bottom: 16px;
}
.wn-tl-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wn-tl-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.wn-tl-dot {
  width: 5px; height: 5px;
  background: var(--blue-l);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   [5] COVERAGE TYPES
══════════════════════════════════════════════════ */
.wn-types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.wn-type-card {
  background: var(--bg-card);
  border: 1px solid var(--border-m);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.wn-type-card:hover {
  border-color: rgba(139,92,246,.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}

.wn-type-card-top { padding: 28px 28px 20px; }
.wn-type-card-bottom {
  padding: 0 28px 28px;
  flex: 1;
}

/* ── Coverage type cards — background-image architecture ─────
   warranty-local.webp / warranty-global.webp applied as card bg.
   Dark overlay + glass texture keeps content perfectly readable.
   When image absent: existing card gradient is the fallback.    */
.wn-type-card--local,
.wn-type-card--global {
  /* Base fallback — existing card gradient always present */
  background-color: var(--bg-card);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.wn-type-card--local {
  background-image:
    /* Dark overlay: preserves glass/border feel, keeps text readable */
    linear-gradient(160deg, rgba(6,6,11,.78) 0%, rgba(10,10,20,.65) 100%),
    /* Subtle brand glow on top of image */
    radial-gradient(ellipse 90% 60% at 20% 30%, rgba(59,130,246,.06), transparent),
    url('../images/warranty/warranty-local.webp');
}
.wn-type-card--global {
  background-image:
    linear-gradient(160deg, rgba(6,6,11,.78) 0%, rgba(10,10,20,.65) 100%),
    radial-gradient(ellipse 90% 60% at 80% 25%, rgba(139,92,246,.06), transparent),
    url('../images/warranty/warranty-global.webp');
}

.wn-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.wn-type-badge-blue {
  background: rgba(59,130,246,.12);
  color: var(--blue-l);
  border: 1px solid rgba(59,130,246,.2);
}
.wn-type-badge-violet {
  background: rgba(139,92,246,.12);
  color: var(--purple-l);
  border: 1px solid rgba(139,92,246,.2);
}

.wn-type-name {
  font-size: 1.25rem;
  font-weight: var(--h-weight-strong);   /* 700 */
  margin-bottom: 8px;
  color: var(--text);
}
.wn-type-sub {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.wn-type-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.wn-tf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.wn-tf-check {
  width: 18px; height: 18px;
  flex-shrink: 0;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wn-tf-check svg {
  width: 10px; height: 10px;
  color: var(--green);
}

/* ══════════════════════════════════════════════════
   [6] WARRANTY FAQ
══════════════════════════════════════════════════ */
.wn-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}
.wn-faq-item {
  border-bottom: 1px solid var(--border);
}
.wn-faq-item:first-child {
  border-top: 1px solid var(--border);
}
.wn-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
  transition: color .2s;
}
.wn-faq-trigger:hover { color: var(--purple-l); }

.wn-faq-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--border-m);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), border-color .2s;
}
.wn-faq-icon svg {
  width: 12px; height: 12px;
  color: var(--text-muted);
  transition: color .2s;
}
.wn-faq-trigger.open .wn-faq-icon {
  transform: rotate(45deg);
  border-color: var(--purple-l);
}
.wn-faq-trigger.open .wn-faq-icon svg { color: var(--purple-l); }

.wn-faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease);
}
.wn-faq-body.open { max-height: 400px; }
.wn-faq-content {
  padding: 0 0 22px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.85;
}

/* ══════════════════════════════════════════════════
   [7] SERVICE REQUEST
══════════════════════════════════════════════════ */
.wn-service-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 80px 32px;
}
.wn-service-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.wn-service-inner .wn-section-sub {
  margin: 0 auto 40px;
}
.wn-service-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wn-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wn-form-group {
  display: flex;
  flex-direction: column;
}

/* File drop */
.wn-file-drop {
  border: 2px dashed var(--border-m);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: transparent;
}
.wn-file-drop:hover {
  border-color: rgba(59,130,246,.4);
  background: rgba(59,130,246,.02);
}
.wn-file-drop-icon {
  width: 32px; height: 32px;
  color: var(--text-muted);
  margin: 0 auto 10px;
}
.wn-file-drop-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}
.wn-file-drop-text strong { color: var(--text); }
.wn-file-drop-hint {
  font-size: 11px;
  color: rgba(245,245,247,0.22);
  margin-top: 4px;
}
.wn-file-list {
  margin-top: 8px;
  font-size: 12px;
  color: var(--blue-l);
}

/* Submit button */
.wn-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  max-width: 320px;
  box-shadow: 0 0 24px rgba(59,130,246,.2);
}
.wn-btn-submit:hover { opacity: .88; transform: translateY(-1px); }

/* Toast */
.wn-toast {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
  padding: 14px 20px;
  background: var(--bg-card-hi);
  border: 1px solid var(--border-m);
  border-radius: var(--radius-sm);
  font-size: 14px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.wn-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* QR Modal */
.wn-qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,8,22,.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}
.wn-qr-modal.open { display: flex; }
.wn-qr-box {
  background: var(--bg-card);
  border: 1px solid var(--border-m);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 340px;
  width: 90%;
}
.wn-qr-title {
  font-size: 17px;
  font-weight: var(--h-weight-strong);   /* 700 */
  margin-bottom: 8px;
}
.wn-qr-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.wn-qr-frame {
  width: 180px; height: 180px;
  background: rgba(59,130,246,.04);
  border: 2px dashed rgba(59,130,246,.25);
  border-radius: 12px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wn-qr-frame svg {
  width: 40px; height: 40px;
  color: var(--text-muted);
}
.wn-qr-frame-text {
  font-size: 12px;
  color: rgba(245,245,247,0.22);
}
.wn-qr-close {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border-m);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  transition: border-color .2s, color .2s;
}
.wn-qr-close:hover { border-color: var(--border-s); color: var(--text); }

/* ══════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════ */
.wn-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.wn-reveal.wn-visible {
  opacity: 1;
  transform: translateY(0);
}
.wn-reveal-d1 { transition-delay: .08s; }
.wn-reveal-d2 { transition-delay: .16s; }
.wn-reveal-d3 { transition-delay: .24s; }
.wn-reveal-d4 { transition-delay: .32s; }

/* ══════════════════════════════════════════════════
   RTL SUPPORT
══════════════════════════════════════════════════ */
[dir="rtl"] .wn-hero {
  direction: rtl;
}
[dir="rtl"] .wn-hero-p {
  font-family: var(--font-ar);
}
[dir="rtl"] .wn-hero-label { flex-direction: row-reverse; }
[dir="rtl"] .wn-hero-orb-1 { left: auto; right: -100px; }
[dir="rtl"] .wn-hero-orb-2 { right: auto; left: -60px; }

[dir="rtl"] .wn-verify-inner {
  direction: rtl;
}
[dir="rtl"] .wn-vs-sub { font-family: var(--font-ar); }
[dir="rtl"] .wn-input-icon {
  left: auto;
  right: 14px;
}
[dir="rtl"] .wn-input {
  padding-left: 14px;
  padding-right: 40px;
  text-align: right;
}
[dir="rtl"] textarea.wn-input { padding-right: 14px; }

[dir="rtl"] .wn-faq-trigger { text-align: right; flex-direction: row-reverse; }
[dir="rtl"] .wn-tl-feature { flex-direction: row-reverse; }
[dir="rtl"] .wn-tf-item { flex-direction: row-reverse; }
[dir="rtl"] .wn-service-form { direction: rtl; }
[dir="rtl"] .wn-toast { right: auto; left: 32px; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .wn-hero { gap: 40px; }
  .wn-verify-inner { gap: 32px; }
}

@media (max-width: 900px) {
  .wn-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 56px 24px 56px;
  }
  .wn-hero-right { display: none; }
  .wn-types-grid { grid-template-columns: 1fr; }
  .wn-verify-inner { grid-template-columns: 1fr; gap: 24px; }
  .wn-vs-sub { max-width: none; }
  .wn-vs-form { flex-direction: column; }
  .wn-vs-divider { flex-direction: row; }
  .wn-vs-divider-line { width: 40px; height: 1px; }
}

@media (max-width: 768px) {
  .wn-section { padding: 64px 20px; }
  .wn-verify-strip { padding: 36px 20px; }
  .wn-service-section { padding: 56px 20px; }
  .wn-tl-line { display: none; }
  .wn-faq-trigger { font-size: 14px; }
}

@media (max-width: 600px) {
  .wn-tl-item {
    grid-template-columns: 1fr;
  }
  .wn-tl-node-wrap,
  .wn-tl-empty { display: none; }
  .wn-form-row { grid-template-columns: 1fr; }
  .wn-hero-stats { gap: 20px; }
  .wn-hero-h1 { font-size: 2.2rem; }
  .wn-toast { left: 16px; right: 16px; bottom: 16px; }
}

/* ══════════════════════════════════════════════════
   PHASE 4 — Verification result action row
   (active records only — not rendered on expired/inactive)
══════════════════════════════════════════════════ */
.wn-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.wn-result-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  background: transparent;
  border: 1px solid var(--border-m);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.wn-result-action-btn:hover {
  border-color: var(--border-s);
  color: var(--text);
}

/* ── Device group display in result card ── */
.wn-device-group-result {
  /* margin/padding handled inline for flexibility */
}
.wn-serials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wn-serial-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  background: rgba(59,130,246,.07);
  border: 1px solid rgba(59,130,246,.15);
  border-radius: 4px;
  color: var(--blue-l);
  letter-spacing: .03em;
}

/* ══════════════════════════════════════════════════
   PHASE 4 — Print / PDF Certificate
   Hidden on screen, visible only during print
══════════════════════════════════════════════════ */
#wn-print-frame { display: none; }

@media print {
  body > *          { display: none !important; }
  #wn-print-frame   { display: block !important; font-family: Arial, sans-serif; color: #000; }

  @page { size: A4; margin: 18mm; }

  .wn-cert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .wn-cert-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .1em;
    color: #000;
  }
  .wn-cert-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #444;
  }
  .wn-cert-divider {
    height: 1px;
    background: #ccc;
    margin: 12px 0;
  }
  .wn-cert-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 4px;
  }
  .wn-cert-table th {
    text-align: left;
    padding: 5px 10px;
    background: #f5f5f5;
    font-weight: 600;
    color: #444;
    width: 100px;
    border: 1px solid #ddd;
  }
  .wn-cert-table td {
    padding: 5px 10px;
    border: 1px solid #ddd;
    color: #000;
  }
  .wn-cert-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
  }
  .wn-cert-devices {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
  }
  .wn-cert-devices th {
    text-align: left;
    padding: 5px 8px;
    background: #f5f5f5;
    font-weight: 600;
    border: 1px solid #ddd;
    color: #444;
  }
  .wn-cert-devices td {
    padding: 5px 8px;
    border: 1px solid #ddd;
    vertical-align: top;
  }
  .wn-cert-verify {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
  }
  .wn-cert-qr-placeholder {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }
  .wn-cert-verify-text {
    font-size: 11px;
    color: #444;
    line-height: 1.6;
    padding-top: 4px;
  }
  .wn-cert-footer {
    margin-top: 20px;
    font-size: 10px;
    color: #888;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 8px;
  }
}

/* ── Mobile responsive for action row ── */
@media (max-width: 480px) {
  .wn-result-actions { flex-direction: column; }
  .wn-result-action-btn { justify-content: center; }
}

/* ══════════════════════════════════════════════════
   PHASE 5 — Service Request Tracking
══════════════════════════════════════════════════ */

/* ── Track card wrapper ─────────────────────────── */
.wn-track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-m);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.wn-track-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.wn-track-rid {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-l);
  margin-bottom: 4px;
}

.wn-track-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Status step indicator ──────────────────────── */
.wn-track-steps {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.wn-track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wn-track-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-m);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, border-color .3s, box-shadow .3s;
}

.wn-track-step--done .wn-track-step-dot {
  background: var(--blue);
  border-color: var(--blue);
}

.wn-track-step--current .wn-track-step-dot {
  border-color: var(--blue-l);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
  background: rgba(59,130,246,.1);
}

.wn-track-step--current .wn-track-step-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--blue-l);
  border-radius: 50%;
}

.wn-track-step-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: .04em;
  max-width: 72px;
  line-height: 1.3;
}

.wn-track-step--done .wn-track-step-label,
.wn-track-step--current .wn-track-step-label {
  color: var(--text-dim);
}

.wn-track-step--current .wn-track-step-label {
  color: var(--blue-l);
}

.wn-track-step-line {
  flex: 1;
  height: 2px;
  background: var(--border-m);
  margin-bottom: 18px;
  min-width: 20px;
  transition: background .3s;
}

.wn-track-step-line--done {
  background: var(--blue);
}

/* ── Company response ───────────────────────────── */
.wn-track-response {
  background: rgba(59,130,246,.04);
  border: 1px solid rgba(59,130,246,.12);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.wn-track-response-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.wn-track-response-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  unicode-bidi: plaintext;
}

/* ── Support contacts ───────────────────────────── */
.wn-track-support {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}

.wn-track-support-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.wn-track-support-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wn-track-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  border: 1px solid var(--border-m);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  text-decoration: none;
  transition: all .2s;
}

.wn-track-support-btn:hover {
  border-color: var(--border-s);
  color: var(--text);
}

.wn-track-support-btn--wa {
  border-color: rgba(37,211,102,.2);
  color: #25D366;
}

.wn-track-support-btn--wa:hover {
  background: rgba(37,211,102,.06);
  border-color: rgba(37,211,102,.4);
}

/* ── RTL overrides ──────────────────────────────── */
[dir="rtl"] .wn-track-steps { flex-direction: row-reverse; }
[dir="rtl"] .wn-track-response-text { text-align: right; }
[dir="rtl"] .wn-track-card-header { flex-direction: row-reverse; }

/* ── Mobile ─────────────────────────────────────── */
@media (max-width: 480px) {
  .wn-track-step-label { font-size: 9px; max-width: 56px; }
  .wn-track-card { padding: 18px 16px; }
}

/* ── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .wn-loader-ring { animation: none; border-top-color: var(--blue-l); opacity: .7; }
  .wn-reveal { transition: none; }
  .wn-hero-stat-n,
  .wn-tl-cost { animation: none; }
}
