/* ==========================================================================
   iTN Store — Luxury Official Warranty Lookup & Print Certificate System
   Brand Palette: Royal Gold (#C9A23A) · Obsidian Ink (#14110D) · Warm Paper (#FBF8F1)
   All colors strictly tokenized in :root (Zero hardcoded colors outside :root)
   ========================================================================== */

:root {
  /* 1. Core Brand Tokens (Required by Specification) */
  --ink: #14110D;
  --ink-2: #2A241C;
  --gold-500: #C9A23A;
  --gold-400: #DDB94F;
  --gold-200: #F1E3B5;
  --gold-grad: linear-gradient(135deg, #F3DA8B 0%, #C9A23A 45%, #8C6A1F 100%);
  --paper: #FBF8F1;
  --line: #E8E0CC;
  --muted: #6E6657;
  --ok: #1F8A5B;
  --warn: #C7841A;
  --bad: #B3261E;

  /* 2. Extended Semantic Surface & State Tokens (Derived from Brand Palette) */
  --surface-card: #FFFFFF;
  --surface-subtle: #F6F0E2;
  --surface-elevated: #FDFBF7;
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-on-dark: #FBF8F1;
  --text-muted-on-dark: #B5AC99;
  --gold-deep: #8C6A1F;
  --gold-bright: #F3DA8B;
  --gold-tint-bg: rgba(201, 162, 58, 0.10);
  --gold-tint-border: rgba(201, 162, 58, 0.34);
  --gold-glow: radial-gradient(circle at 50% 28%, rgba(221, 185, 79, 0.22) 0%, rgba(201, 162, 58, 0.07) 42%, rgba(20, 17, 13, 0) 72%);
  --card-border-grad: linear-gradient(135deg, rgba(243, 218, 139, 0.85) 0%, rgba(201, 162, 58, 0.55) 48%, rgba(140, 106, 31, 0.85) 100%);
  --dark-card-bg: linear-gradient(155deg, #1E1913 0%, #14110D 58%, #231D15 100%);
  --shine-grad: linear-gradient(115deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.48) 50%, rgba(255, 255, 255, 0) 80%);

  /* Status Tints */
  --ok-bg: rgba(31, 138, 91, 0.11);
  --ok-border: rgba(31, 138, 91, 0.32);
  --warn-bg: rgba(199, 132, 26, 0.13);
  --warn-border: rgba(199, 132, 26, 0.36);
  --bad-bg: rgba(179, 38, 30, 0.10);
  --bad-border: rgba(179, 38, 30, 0.30);

  /* Elevation Shadows */
  --shadow-card: 0 24px 56px -12px rgba(20, 17, 13, 0.14), 0 8px 20px -6px rgba(20, 17, 13, 0.07), 0 1px 3px rgba(20, 17, 13, 0.05);
  --shadow-member-card: 0 28px 60px -14px rgba(20, 17, 13, 0.45), 0 10px 24px -8px rgba(201, 162, 58, 0.22);
  --shadow-soft: 0 10px 28px -8px rgba(20, 17, 13, 0.08);
  --focus-ring: 0 0 0 3px rgba(201, 162, 58, 0.32);

  /* Print Monochrome Tokens */
  --mono-black: #000000;
  --mono-white: #FFFFFF;

  /* 3. Typography & Scale (40 / 28 / 20 / 16 / 14 / 12) */
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --font-display: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'Be Vietnam Pro', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-40: clamp(1.85rem, 3.2vw, 2.5rem);   /* 40px */
  --fs-28: clamp(1.4rem, 2.2vw, 1.75rem);   /* 28px */
  --fs-20: 1.25rem;                         /* 20px */
  --fs-16: 1rem;                            /* 16px */
  --fs-14: 0.875rem;                        /* 14px */
  --fs-12: 0.75rem;                         /* 12px */

  --radius-card: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* 4. After-Sales Policy Module Tokens (High-Contrast Light Tech Retail) */
  --policy-surface: #FFFFFF;
  --policy-surface-alt: #FAF8F3;
  --policy-surface-muted: #F5F1E7;
  --policy-border: #E2DAC7;
  --policy-divider: #ECE6D8;
  --policy-ink: #14110D;
  --policy-body: #241F18;
  --policy-muted: #585043;
  --policy-bronze: #785816;
  --policy-bronze-bg: #F9F3E3;
  --policy-bronze-border: #DEC78F;
  --policy-ok-text: #14633B;
  --policy-ok-bg: #EDF7F1;
  --policy-ok-border: #BCE2CC;
  --policy-notice-bg: #FCF6E7;
  --policy-notice-border: #E3CB94;
  --policy-notice-text: #6E4A10;
  --policy-exclude-bg: #F6F3EB;
  --policy-exclude-border: #DFD7C5;
  --policy-exclude-text: #3B342A;
  --policy-icloud-bg: #F7F5EE;
  --policy-shadow-minimal: 0 2px 10px rgba(20, 17, 13, 0.035);
}

/* Dark Mode Theme Overrides */
[data-theme="dark"] {
  --paper: #14110D;
  --surface-card: #1E1913;
  --surface-subtle: #251F17;
  --surface-elevated: #2A241C;
  --text-primary: #FBF8F1;
  --text-secondary: #B8AF9C;
  --line: #383024;
  --shadow-card: 0 28px 64px -12px rgba(0, 0, 0, 0.65), 0 8px 24px -6px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 12px 32px -8px rgba(0, 0, 0, 0.5);

  --policy-surface: #1C1813;
  --policy-surface-alt: #221D17;
  --policy-surface-muted: #28221B;
  --policy-border: #3B3226;
  --policy-divider: #322A20;
  --policy-ink: #FBF8F1;
  --policy-body: #EDE7DA;
  --policy-muted: #BEB5A2;
  --policy-bronze: #E5C265;
  --policy-bronze-bg: rgba(201, 162, 58, 0.14);
  --policy-bronze-border: rgba(221, 185, 79, 0.36);
  --policy-ok-text: #6EE7B7;
  --policy-ok-bg: rgba(31, 138, 91, 0.18);
  --policy-ok-border: rgba(52, 211, 153, 0.34);
  --policy-notice-bg: rgba(201, 162, 58, 0.13);
  --policy-notice-border: rgba(221, 185, 79, 0.36);
  --policy-notice-text: #F3DA8B;
  --policy-exclude-bg: #251F18;
  --policy-exclude-border: #3D3428;
  --policy-exclude-text: #E5DEC9;
  --policy-icloud-bg: #231E17;
  --policy-shadow-minimal: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.55;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Preview Control Dock (For Anh Nghĩa Review: Direction 1/2, States, Dark Mode, Print)
   ========================================================================== */
.preview-dock {
  background: var(--ink-2);
  border-bottom: 1px solid var(--gold-tint-border);
  padding: 8px 16px;
  font-size: var(--fs-12);
  color: var(--text-on-dark);
  position: sticky;
  top: 0;
  z-index: 90;
}

.preview-dock-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.preview-dock-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.preview-dock-label {
  color: var(--gold-200);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 4px;
}

.dock-pill {
  appearance: none;
  background: rgba(251, 248, 241, 0.07);
  color: var(--text-on-dark);
  border: 1px solid rgba(232, 224, 204, 0.2);
  border-radius: 999px;
  padding: 4px 11px;
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dock-pill:hover {
  border-color: var(--gold-400);
  color: var(--gold-200);
}

.dock-pill.is-active {
  background: var(--gold-grad);
  color: var(--ink);
  border-color: transparent;
  font-weight: 700;
}

/* ==========================================================================
   Header & Dark Hero Section (Occupies Upper Portion in --ink)
   Apple Kinetic Motion: iPhone 18 Pro Series (ƒ/1.48) & iPhone Duo (7.6" Fold)
   ========================================================================== */
.hero-shell {
  position: relative;
  background-color: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--gold-tint-border);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-glow);
  pointer-events: none;
  z-index: 1;
}

.apple-kinetic-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

.hero-cursor-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 218, 139, 0.16) 0%, rgba(201, 162, 58, 0.06) 42%, rgba(20, 17, 13, 0) 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate3d(-999px, -999px, 0);
  will-change: transform;
}

/* Subtle luxury ambient backdrop & orbital geometry blended deep into the dark background */
.hero-ambient-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ambient-glow-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(68px);
  opacity: 0.35;
  pointer-events: none;
}

.ambient-glow-left {
  top: -120px;
  left: calc(50% - 540px);
  background: radial-gradient(circle, rgba(243, 218, 139, 0.32) 0%, rgba(201, 162, 58, 0.08) 55%, transparent 75%);
  animation: ambientOrbFloatLeft 11s ease-in-out infinite alternate;
}

.ambient-glow-right {
  bottom: -160px;
  right: calc(50% - 540px);
  background: radial-gradient(circle, rgba(201, 162, 58, 0.28) 0%, rgba(140, 106, 31, 0.08) 55%, transparent 75%);
  animation: ambientOrbFloatRight 13s ease-in-out infinite alternate;
}

@keyframes ambientOrbFloatLeft {
  0% { transform: translate3d(-24px, -12px, 0) scale(0.94); }
  100% { transform: translate3d(32px, 24px, 0) scale(1.08); }
}

@keyframes ambientOrbFloatRight {
  0% { transform: translate3d(28px, 16px, 0) scale(1.05); }
  100% { transform: translate3d(-30px, -22px, 0) scale(0.92); }
}

/* Ambient 3D Dual-Wing Light Silhouette blended into background behind Lookup Card */
.ambient-duo-silhouette {
  position: absolute;
  top: 54%;
  left: 50%;
  width: 820px;
  height: 360px;
  transform: translate(-50%, -50%);
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.24;
  pointer-events: none;
}

.ambient-wing {
  width: 370px;
  height: 310px;
  border-radius: 36px;
  border: 1px solid rgba(243, 218, 139, 0.26);
  background: linear-gradient(135deg, rgba(243, 218, 139, 0.07) 0%, rgba(201, 162, 58, 0.02) 50%, rgba(20, 17, 13, 0) 100%);
  box-shadow: inset 0 0 36px rgba(201, 162, 58, 0.08);
}

.ambient-wing-left {
  transform-origin: right center;
  animation: ambientWingLeftBreath 9s ease-in-out infinite alternate;
}

.ambient-wing-right {
  transform-origin: left center;
  animation: ambientWingRightBreath 9s ease-in-out infinite alternate;
}

.ambient-hinge-axis {
  width: 2px;
  height: 280px;
  background: linear-gradient(180deg, transparent 0%, rgba(243, 218, 139, 0.45) 50%, transparent 100%);
  box-shadow: 0 0 18px rgba(243, 218, 139, 0.35);
}

@keyframes ambientWingLeftBreath {
  0% { transform: rotateY(22deg) scale(0.96); opacity: 0.65; }
  100% { transform: rotateY(5deg) scale(1.02); opacity: 1; }
}

@keyframes ambientWingRightBreath {
  0% { transform: rotateY(-22deg) scale(0.96); opacity: 0.65; }
  100% { transform: rotateY(-5deg) scale(1.02); opacity: 1; }
}

.hero-guilloche {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1040px;
  height: 560px;
  opacity: 0.34;
  pointer-events: none;
  z-index: 1;
}

.guilloche-orbit-outer {
  transform-origin: 500px 280px;
  animation: appleOrbitSpin 58s linear infinite;
}

.guilloche-orbit-inner {
  transform-origin: 500px 280px;
  animation: appleOrbitSpinReverse 38s linear infinite;
}

@keyframes appleOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes appleOrbitSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.site-header {
  position: relative;
  z-index: 3;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(232, 224, 204, 0.10);
}

.brand-lockup-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-lockup-img {
  height: 36px;
  width: auto;
  display: block;
}

/* Centered Hero Lookup Layout above Ambient Kinetic Background */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 14px;
}

.hero-content-centered {
  max-width: 680px;
  margin: 0 auto;
}

.hero-lookup-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-head-compact {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-head-compact .hero-title {
  margin: 0;
  font-size: var(--fs-40);
}

.lookup-card-in-hero {
  color: var(--text-primary);
  text-align: left;
  box-shadow:
    0 32px 72px -12px rgba(0, 0, 0, 0.68),
    0 0 48px -10px rgba(201, 162, 58, 0.22),
    0 0 0 1px rgba(243, 218, 139, 0.28);
  padding: 28px 32px;
}

/* Multi-record device selector bar when searching by phone number */
.multi-record-bar {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--gold-tint-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.multi-record-bar[hidden] {
  display: none !important;
}

.multi-record-label {
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--text-primary);
}

.multi-record-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-record-pill {
  appearance: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-record-pill:hover {
  border-color: var(--gold-500);
}

.device-record-pill.is-active {
  background: var(--gold-grad);
  color: var(--ink);
  border-color: transparent;
  font-weight: 700;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(201, 162, 58, 0.12);
  border: 1px solid var(--gold-tint-border);
  color: var(--gold-200);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 0 rgba(221, 185, 79, 0.75);
  animation: livePulseGold 2.2s infinite;
}

@keyframes livePulseGold {
  0% { box-shadow: 0 0 0 0 rgba(221, 185, 79, 0.75); }
  70% { box-shadow: 0 0 0 8px rgba(221, 185, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(221, 185, 79, 0); }
}

.hero-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: var(--fs-40);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: linear-gradient(120deg, var(--text-on-dark) 0%, var(--gold-200) 55%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin: 0 0 20px;
  max-width: 560px;
  font-size: var(--fs-16);
  font-weight: 400;
  color: var(--text-muted-on-dark);
}

/* Apple Motion Mode Pills (iPhone 18 Pro Series vs iPhone Duo) */
.apple-motion-Readout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.motion-mode-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(42, 36, 28, 0.72);
  border: 1px solid rgba(232, 224, 204, 0.18);
  color: var(--text-muted-on-dark);
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-mode-pill:hover {
  border-color: var(--gold-400);
  color: var(--text-on-dark);
  transform: translateY(-1px);
}

.motion-mode-pill.is-active {
  background: var(--gold-grad);
  color: var(--ink);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 6px 20px -4px rgba(201, 162, 58, 0.45);
}

.pill-spark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pill-hinge-icon {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: relative;
}

.motion-telemetry-tag {
  font-size: var(--fs-12);
  color: var(--gold-200);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(201, 162, 58, 0.08);
  border: 1px dashed var(--gold-tint-border);
}

/* ==========================================================================
   3D Kinetic Hardware Stage: iPhone 18 Pro Series & iPhone Duo Foldable
   ========================================================================== */
.apple-stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 256px;
  perspective: 1200px;
}

.apple-stage-aura {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 218, 139, 0.28) 0%, rgba(201, 162, 58, 0.12) 48%, rgba(20, 17, 13, 0) 72%);
  filter: blur(22px);
  animation: stageAuraBreath 5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes stageAuraBreath {
  0% { transform: scale(0.92); opacity: 0.72; }
  100% { transform: scale(1.12); opacity: 1; }
}

.apple-stage-3d {
  position: relative;
  width: 320px;
  height: 244px;
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  animation: appleStageFloat 6s ease-in-out infinite;
}

@keyframes appleStageFloat {
  0%, 100% { transform: translateY(0px) rotateX(2deg) rotateY(-4deg); }
  50% { transform: translateY(-7px) rotateX(-2deg) rotateY(4deg); }
}

/* Specular Light Sweep across Titanium Chassis (inspired by iPhone 18 Pro & Duo reveal) */
.apple-chassis-sweep {
  position: absolute;
  inset: -16px;
  z-index: 12;
  pointer-events: none;
  background: var(--shine-grad);
  transform: translateX(-150%) skewX(-24deg);
  opacity: 0;
}

.apple-chassis-sweep.is-sweeping {
  animation: appleChassisLightSweep 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes appleChassisLightSweep {
  0% { transform: translateX(-150%) skewX(-24deg); opacity: 0; }
  30% { opacity: 0.85; }
  100% { transform: translateX(160%) skewX(-24deg); opacity: 0; }
}

.device-showcase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.apple-stage-3d[data-active-model="18pro"] .device-18pro {
  opacity: 1;
  transform: translateZ(16px) scale(1);
  pointer-events: auto;
}

.apple-stage-3d[data-active-model="18pro"] .device-duo {
  opacity: 0;
  transform: translateZ(-30px) scale(0.88) rotateY(18deg);
  pointer-events: none;
}

.apple-stage-3d[data-active-model="duo"] .device-18pro {
  opacity: 0;
  transform: translateZ(-30px) scale(0.88) rotateY(-18deg);
  pointer-events: none;
}

.apple-stage-3d[data-active-model="duo"] .device-duo {
  opacity: 1;
  transform: translateZ(16px) scale(1);
  pointer-events: auto;
}

/* --- Device 1: iPhone 18 Pro Series Frame --- */
.iphone18-frame {
  position: relative;
  width: 248px;
  height: 236px;
  border-radius: 32px;
  background: var(--dark-card-bg);
  border: 1.5px solid var(--gold-500);
  box-shadow:
    0 24px 48px -12px rgba(20, 17, 13, 0.85),
    0 0 28px -4px rgba(201, 162, 58, 0.28),
    inset 0 1px 2px rgba(243, 218, 139, 0.42);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.iphone18-edge-glint {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(125deg, rgba(243, 218, 139, 0.25) 0%, rgba(201, 162, 58, 0) 38%, rgba(243, 218, 139, 0.18) 100%);
  pointer-events: none;
}

/* Dynamic Island Morphing (iPhone 18 Pro Series) */
.iphone18-dynamic-island {
  position: relative;
  z-index: 3;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  border: 1px solid var(--gold-tint-border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(20, 17, 13, 0.65);
  animation: dynamicIslandMorph 4.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes dynamicIslandMorph {
  0%, 100% { transform: scaleX(0.94); border-color: rgba(201, 162, 58, 0.32); }
  45%, 65% { transform: scaleX(1.06); border-color: var(--gold-400); box-shadow: 0 0 16px rgba(201, 162, 58, 0.32); }
}

.island-camera-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-400), var(--ink-2));
  border: 1px solid var(--gold-500);
}

.island-status-text {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-200);
  white-space: nowrap;
}

.island-waveform {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 10px;
}

.island-waveform i {
  display: block;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold-400);
  animation: waveBarBounce 1.1s ease-in-out infinite alternate;
}

.island-waveform i:nth-child(2) { animation-delay: 0.2s; height: 10px; }
.island-waveform i:nth-child(3) { animation-delay: 0.4s; height: 6px; }
.island-waveform i:nth-child(4) { animation-delay: 0.15s; height: 9px; }

@keyframes waveBarBounce {
  0% { transform: scaleY(0.45); opacity: 0.6; }
  100% { transform: scaleY(1.15); opacity: 1; }
}

/* Vertical Laser Telemetry Scan */
.iphone18-laser-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-grad);
  box-shadow: 0 0 14px 2px var(--gold-400);
  opacity: 0.65;
  animation: iphoneLaserScan 3.6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes iphoneLaserScan {
  0% { top: 18%; opacity: 0.25; }
  50% { opacity: 0.85; }
  100% { top: 82%; opacity: 0.35; }
}

/* Variable Physical Aperture ƒ/1.48 – ƒ/4.0 Iris Core */
.iphone18-aperture-core {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aperture-iris-svg {
  width: 96px;
  height: 96px;
  overflow: visible;
}

.aperture-blades {
  transform-origin: 60px 60px;
  animation: apertureBladeBreathing 4.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

.aperture-pupil {
  transform-origin: 60px 60px;
  animation: aperturePupilScale 4.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

@keyframes apertureBladeBreathing {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(42deg) scale(0.84); }
}

@keyframes aperturePupilScale {
  0% { transform: scale(1.18); opacity: 0.95; }
  100% { transform: scale(0.68); opacity: 0.65; }
}

.aperture-label {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-200);
  background: rgba(20, 17, 13, 0.82);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--gold-tint-border);
}

.iphone18-hud-readout {
  width: 100%;
  text-align: center;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(42, 36, 28, 0.72);
  border: 1px solid rgba(201, 162, 58, 0.26);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-kicker {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-400);
}

.hud-imei-live {
  font-size: var(--fs-12);
  color: var(--text-on-dark);
  letter-spacing: 0.06em;
}

.hud-sub {
  font-size: 9.5px;
  color: var(--text-muted-on-dark);
}

/* --- Device 2: iPhone Duo Foldable 7.6" Dual-Wing Stage --- */
.duo-foldable-assembly {
  position: relative;
  width: 298px;
  height: 222px;
  display: grid;
  grid-template-columns: 1fr 10px 1fr;
  align-items: stretch;
  transform-style: preserve-3d;
  perspective: 900px;
}

.duo-wing {
  background: var(--dark-card-bg);
  border: 1.5px solid var(--gold-500);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 42px -10px rgba(20, 17, 13, 0.85);
  backface-visibility: hidden;
}

.duo-wing-left {
  border-radius: 22px 6px 6px 22px;
  transform-origin: right center;
  animation: duoLeftWingFold 5.2s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.duo-wing-right {
  border-radius: 6px 22px 22px 6px;
  transform-origin: left center;
  animation: duoRightWingFold 5.2s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes duoLeftWingFold {
  0%, 20% { transform: rotateY(0deg); }
  80%, 100% { transform: rotateY(28deg); }
}

@keyframes duoRightWingFold {
  0%, 20% { transform: rotateY(0deg); }
  80%, 100% { transform: rotateY(-28deg); }
}

/* Grade-5 Titanium Mirror Hinge Spine */
.duo-titanium-hinge {
  position: relative;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--gold-500) 50%, var(--ink-2) 100%);
  border-top: 1px solid var(--gold-200);
  border-bottom: 1px solid var(--gold-200);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(243, 218, 139, 0.55);
}

.hinge-laser-core {
  width: 2px;
  height: 86%;
  background: var(--gold-200);
  box-shadow: 0 0 12px 2px var(--gold-400);
  animation: hingePulseGlow 2s ease-in-out infinite alternate;
}

@keyframes hingePulseGlow {
  0% { opacity: 0.45; transform: scaleY(0.85); }
  100% { opacity: 1; transform: scaleY(1); }
}

.duo-wing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.duo-mini-island {
  width: 28px;
  height: 7px;
  border-radius: 999px;
  background: var(--ink);
  border: 1px solid var(--gold-tint-border);
}

.duo-wing-tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-200);
}

.duo-verify-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.duo-wing-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.duo-metric-chip {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(42, 36, 28, 0.72);
  border: 1px solid rgba(201, 162, 58, 0.25);
  display: flex;
  flex-direction: column;
}

.duo-metric-chip span {
  font-size: 8.5px;
  color: var(--text-muted-on-dark);
}

.duo-metric-chip strong {
  font-size: 11px;
  color: var(--gold-200);
}

.duo-seal-preview {
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(201, 162, 58, 0.10);
  border: 1px solid var(--gold-tint-border);
  color: var(--gold-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.duo-seal-preview strong {
  font-size: 11px;
  color: var(--text-on-dark);
}

.duo-seal-preview span {
  font-size: 9px;
  color: var(--gold-200);
}

.duo-wing-footer {
  font-size: 8.5px;
  text-align: center;
  color: var(--text-muted-on-dark);
  padding-top: 4px;
  border-top: 1px solid rgba(232, 224, 204, 0.12);
}

/* ==========================================================================
   Main Lookup Container & Overlapping Card with 3D Specular Sheen
   ========================================================================== */
.main-container {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 64px;
  position: relative;
  z-index: 5;
}

.lookup-overlap-wrap {
  margin-top: -78px;
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
  perspective: 1200px;
}

body[data-direction="2"] .lookup-overlap-wrap {
  max-width: 680px;
}

.lookup-card {
  background: var(--surface-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.lookup-card:hover {
  border-color: var(--gold-tint-border);
}

.lookup-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(201, 162, 58, 0.10), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lookup-card:hover::after {
  opacity: 1;
}

.lookup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-grad);
}

/* IMEI Field */
.field-group {
  margin-bottom: 20px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.field-label {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--text-primary);
}

.imei-counter {
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.imei-counter[hidden] {
  display: none;
}

.imei-counter.is-complete {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: var(--ok-border);
}

.imei-counter.is-invalid {
  color: var(--bad);
  background: var(--bad-bg);
  border-color: var(--bad-border);
}

.imei-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.imei-input-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--gold-500);
  pointer-events: none;
}

.imei-input {
  width: 100%;
  height: 56px;
  padding: 0 44px 0 48px;
  font-family: var(--font-mono);
  font-size: var(--fs-20);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: var(--surface-elevated);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.imei-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.55;
  font-weight: 400;
  font-size: var(--fs-16);
  letter-spacing: 0.01em;
}

.imei-input:focus {
  border-color: var(--gold-500);
  box-shadow: var(--focus-ring);
  background: var(--surface-card);
}

.imei-input.is-error {
  border-color: var(--bad);
}

.imei-clear-btn {
  position: absolute;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.imei-clear-btn:hover {
  background: var(--line);
  color: var(--text-primary);
}

.imei-clear-btn[hidden] {
  display: none;
}

.field-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: var(--fs-12);
  color: var(--text-secondary);
}

.imei-dial-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.imei-dial-hint kbd {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.field-error-msg {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bad-bg);
  border: 1px solid var(--bad-border);
  color: var(--bad);
  font-size: var(--fs-14);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-error-msg[hidden] {
  display: none;
}

/* Captcha Row */
.captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 22px;
}

.captcha-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-16);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--surface-elevated);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.captcha-input::placeholder {
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 400;
  font-size: var(--fs-14);
  color: var(--text-secondary);
  opacity: 0.65;
}

.captcha-input:focus {
  border-color: var(--gold-500);
  box-shadow: var(--focus-ring);
}

.captcha-visual-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.captcha-svg-box {
  width: 132px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.captcha-svg-box svg {
  display: block;
  width: 100%;
  height: 100%;
}

.captcha-refresh-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface-elevated);
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.captcha-refresh-btn:hover {
  border-color: var(--gold-500);
  background: var(--gold-tint-bg);
}

.captcha-refresh-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.captcha-refresh-btn.is-spinning svg {
  transform: rotate(360deg);
}

/* Primary Submit Button (--gold-grad background, --ink text, 52px height, shine sweep) */
.submit-gold-btn {
  position: relative;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gold-grad);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 24px -6px rgba(201, 162, 58, 0.42);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.submit-gold-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: var(--shine-grad);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.submit-gold-btn:hover::after {
  left: 140%;
}

.submit-gold-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -6px rgba(201, 162, 58, 0.52);
}

.submit-gold-btn:active {
  transform: translateY(0);
}

.submit-gold-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.2px solid var(--ink);
  border-top-color: transparent;
  border-radius: 50%;
  animation: itnSpin 0.7s linear infinite;
}

.btn-spinner[hidden] {
  display: none;
}

@keyframes itnSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   3 Trust Points Below Card (Line Icons + Verified Repo Policies)
   ========================================================================== */
.trust-strip {
  max-width: 780px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold-tint-bg);
  border: 1px solid var(--gold-tint-border);
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

.trust-text strong {
  display: block;
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--text-primary);
}

.trust-text span {
  display: block;
  font-size: var(--fs-12);
  color: var(--text-secondary);
}

/* ==========================================================================
   Result Section — Luxury Digital Member Card (85.6 × 54 Aspect Ratio) + Details
   ========================================================================== */
.result-stage {
  margin-top: 36px;
}

.result-stage[hidden] {
  display: none;
}

.result-entrance {
  animation: itnCardReveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes itnCardReveal {
  0% {
    opacity: 0;
    transform: translateY(16px) rotateX(4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* Layout Grid: Direction 1 vs Direction 2 */
.result-workspace {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 28px;
  align-items: start;
}

body[data-direction="2"] .result-workspace {
  grid-template-columns: 480px 1fr;
}

/* Digital Member Warranty Card (85.6 × 54mm ratio = 1.585) */
.member-card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 85.6 / 54;
  border-radius: 20px;
  padding: 2px;
  background: var(--gold-grad);
  box-shadow: var(--shadow-member-card);
  overflow: hidden;
}

.member-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: var(--dark-card-bg);
  color: var(--text-on-dark);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.member-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 18%, rgba(221, 185, 79, 0.22) 0%, rgba(20, 17, 13, 0) 60%);
  pointer-events: none;
}

.member-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-card-logo {
  height: 28px;
  width: auto;
}

.member-pkg-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: var(--ink);
  font-size: var(--fs-12);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-card-device {
  position: relative;
  z-index: 2;
  margin: auto 0;
  padding: 8px 0;
}

.member-device-label {
  font-size: var(--fs-12);
  color: var(--gold-200);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.member-device-name {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin: 0 0 8px;
  line-height: 1.25;
}

.member-imei-number {
  font-family: var(--font-mono);
  font-size: var(--fs-16);
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
}

.member-card-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(241, 227, 181, 0.16);
  font-size: var(--fs-12);
}

.member-meta-col span {
  display: block;
  color: var(--text-muted-on-dark);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-meta-col strong {
  display: block;
  color: var(--text-on-dark);
  font-weight: 600;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action Bar Below Digital Card */
.card-actions-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.action-btn {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-card);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.action-btn svg {
  width: 17px;
  height: 17px;
  color: var(--gold-500);
}

.action-btn:hover {
  border-color: var(--gold-500);
  background: var(--gold-tint-bg);
}

.action-btn.is-primary {
  background: var(--gold-grad);
  color: var(--ink);
  border-color: transparent;
  font-weight: 700;
}

.action-btn.is-primary svg {
  color: var(--ink);
}

/* Print Options Bar (A5 vs 85.6×54mm Card + Monochrome Toggle) */
.print-options-bar {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-12);
}

.print-format-pills {
  display: inline-flex;
  gap: 6px;
}

.format-pill {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-card);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 600;
  cursor: pointer;
}

.format-pill.is-active {
  background: var(--ink);
  color: var(--gold-200);
  border-color: var(--gold-500);
}

.mono-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}

/* Right Column: Progress Panel + Benefits + Timeline */
.result-detail-panel {
  background: var(--surface-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.status-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.status-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: var(--fs-14);
  font-weight: 700;
}

.status-badge-lg::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge-lg[data-status="ok"] {
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
}

.status-badge-lg[data-status="warn"] {
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
}

.status-badge-lg[data-status="bad"] {
  color: var(--bad);
  background: var(--bad-bg);
  border: 1px solid var(--bad-border);
}

.cert-code-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  color: var(--text-secondary);
  background: var(--surface-subtle);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* Warranty Duration Progress Bar */
.duration-box {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
}

.duration-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.duration-title {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--text-secondary);
}

.duration-days-readout {
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.duration-days-readout[data-status="ok"] { color: var(--ok); }
.duration-days-readout[data-status="warn"] { color: var(--warn); }
.duration-days-readout[data-status="bad"] { color: var(--bad); }

.duration-days-readout small {
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--text-secondary);
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-fill[data-status="ok"] { background: var(--ok); }
.progress-fill[data-status="warn"] { background: var(--warn); }
.progress-fill[data-status="bad"] { background: var(--bad); }

.duration-foot-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: var(--fs-12);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Info Specs Grid */
.specs-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.spec-cell {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.spec-cell span {
  display: block;
  font-size: var(--fs-12);
  color: var(--text-secondary);
}

.spec-cell strong {
  display: block;
  margin-top: 3px;
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Package Benefits List */
.section-subhead {
  margin: 24px 0 12px;
  font-size: var(--fs-14);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.benefit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
}

.benefit-name {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--text-primary);
}

.benefit-meta {
  font-size: var(--fs-12);
  color: var(--text-secondary);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.benefit-tag {
  flex-shrink: 0;
  font-size: var(--fs-12);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.benefit-tag[data-state="active"],
.benefit-tag[data-state="lifetime"] {
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
}

.benefit-tag[data-state="expired"] {
  color: var(--bad);
  background: var(--bad-bg);
  border: 1px solid var(--bad-border);
}

/* Vertical Timeline (Repair / Warranty History) */
.timeline-list {
  position: relative;
  margin: 12px 0 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 2px solid var(--surface-card);
}

.timeline-title {
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-sub {
  font-size: var(--fs-12);
  color: var(--text-secondary);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Full Non-Warranty Exclusions & Return Policy Panel on Result Page */
.exclusions-box {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--gold-tint-border);
}

.exclusions-title {
  margin: 0 0 12px;
  font-size: var(--fs-14);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.exclusions-title svg {
  width: 18px;
  height: 18px;
  color: var(--warn);
  flex-shrink: 0;
}

.exclusions-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  font-size: var(--fs-14);
  line-height: 1.5;
  color: var(--text-primary);
}

.exclusions-list li strong {
  font-weight: 700;
}

.return-policy-subbox {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.return-policy-title {
  margin: 0 0 6px;
  font-size: var(--fs-12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.return-policy-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: var(--fs-12);
  color: var(--text-secondary);
}

/* Polite Empty State (Not Found IMEI) */
.empty-state-card {
  max-width: 580px;
  margin: 28px auto 0;
  background: var(--surface-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 36px 28px;
  text-align: center;
}

.empty-state-card[hidden] {
  display: none;
}

.empty-icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gold-tint-bg);
  border: 1px solid var(--gold-tint-border);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon-circle svg {
  width: 30px;
  height: 30px;
}

.empty-state-title {
  margin: 0 0 8px;
  font-size: var(--fs-20);
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state-desc {
  margin: 0 auto 22px;
  max-width: 440px;
  font-size: var(--fs-14);
  color: var(--text-secondary);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   On-Screen Live Certificate Preview Section (For Anh Nghĩa Inspection)
   ========================================================================== */
.print-preview-showcase {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
}

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

.print-preview-title {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   Footer (Dark --ink Background, Logo, 3 Branch Locations, MST, Hotline, Zalo)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: var(--text-on-dark);
  border-top: 1px solid var(--gold-tint-border);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(232, 224, 204, 0.12);
}

.footer-brand-desc {
  margin: 14px 0 0;
  font-size: var(--fs-14);
  color: var(--text-muted-on-dark);
  max-width: 340px;
}

.footer-heading {
  margin: 0 0 12px;
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--gold-200);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: var(--fs-14);
  color: var(--text-muted-on-dark);
}

.footer-list strong {
  color: var(--text-on-dark);
}

.footer-list a {
  color: var(--gold-200);
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-12);
  color: var(--text-muted-on-dark);
}

/* ==========================================================================
   Printable Certificate & 2-Sided Card Template (#itn-print-sheet)
   ========================================================================== */
.print-sheet-wrapper {
  background: var(--surface-card);
  color: var(--ink);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
}

/* A5 Certificate (210mm × 148mm Landscape) */
.cert-a5-sheet {
  width: 198mm;
  min-height: 136mm;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  padding: 5mm;
  position: relative;
  box-sizing: border-box;
  font-family: var(--font-sans);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.cert-a5-outer-frame {
  border: 1.5pt solid var(--gold-500);
  padding: 1.2mm;
  height: 100%;
  position: relative;
}

.cert-a5-inner-frame {
  border: 0.6pt solid var(--gold-500);
  padding: 4.5mm 6mm;
  position: relative;
  background: var(--paper);
}

.cert-corner {
  position: absolute;
  width: 6mm;
  height: 6mm;
  border-color: var(--gold-500);
  border-style: solid;
  pointer-events: none;
}
.cert-corner.tl { top: 1.2mm; left: 1.2mm; border-width: 1.4pt 0 0 1.4pt; }
.cert-corner.tr { top: 1.2mm; right: 1.2mm; border-width: 1.4pt 1.4pt 0 0; }
.cert-corner.bl { bottom: 1.2mm; left: 1.2mm; border-width: 0 0 1.4pt 1.4pt; }
.cert-corner.br { bottom: 1.2mm; right: 1.2mm; border-width: 0 1.4pt 1.4pt 0; }

.cert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 3mm;
  border-bottom: 0.8pt solid var(--line);
}

.cert-logo-img {
  height: 9.5mm;
  width: auto;
}

.cert-title-block {
  text-align: center;
  flex: 1;
}

.cert-main-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11.5pt;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

.cert-sub-title {
  margin: 1mm 0 0;
  font-size: 7.5pt;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cert-serial-box {
  text-align: right;
  font-size: 7.5pt;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cert-serial-box strong {
  display: block;
  font-size: 8.5pt;
  color: var(--ink);
}

/* Certificate 2-Column Body + Right QR/Seal Column */
.cert-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 44mm;
  gap: 4mm;
  margin-top: 3.2mm;
  align-items: stretch;
}

.cert-col-box {
  border: 0.6pt solid var(--line);
  border-radius: 2mm;
  padding: 2.8mm 3.5mm;
  background: var(--surface-card);
}

.cert-col-title {
  margin: 0 0 2mm;
  font-size: 7.5pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  border-bottom: 0.5pt solid var(--line);
  padding-bottom: 1mm;
}

.cert-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 26mm 1fr;
  row-gap: 1.4mm;
  column-gap: 2mm;
  font-size: 8.2pt;
}

.cert-dl dt {
  color: var(--muted);
  font-weight: 500;
}

.cert-dl dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cert-dl dd.cert-imei-highlight {
  font-family: var(--font-mono);
  font-size: 9.2pt;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Certificate QR & Gold Seal Box */
.cert-verify-box {
  border: 0.6pt solid var(--gold-500);
  border-radius: 2mm;
  padding: 2.2mm;
  background: var(--surface-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.cert-qr-svg {
  width: 22mm;
  height: 22mm;
}

.cert-qr-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cert-seal-svg {
  width: 17mm;
  height: 17mm;
}

.cert-verify-caption {
  font-size: 6.5pt;
  color: var(--muted);
  line-height: 1.25;
}

/* Certificate Footer: Full Conditions + Return Policy + Signatures */
.cert-footer-zone {
  margin-top: 2.2mm;
  padding-top: 1.8mm;
  border-top: 0.6pt solid var(--line);
  display: grid;
  grid-template-columns: 1.48fr 0.52fr;
  gap: 3.5mm;
  align-items: start;
}

.cert-rules-title {
  margin: 0 0 0.8mm;
  font-size: 7pt;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}

.cert-rules-list {
  margin: 0;
  padding-left: 3.5mm;
  font-size: 6.35pt;
  line-height: 1.24;
  color: var(--ink);
}

.cert-rules-list li {
  margin-bottom: 0.35mm;
}

.cert-return-box {
  margin-top: 1.2mm;
  padding-top: 1mm;
  border-top: 0.4pt dashed var(--line);
  font-size: 6.2pt;
  line-height: 1.22;
  color: var(--ink);
}

.cert-return-box strong {
  font-weight: 800;
  text-transform: uppercase;
}

.cert-sign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  font-size: 7.2pt;
}

.cert-sign-col strong {
  display: block;
  font-weight: 800;
  color: var(--ink);
}

.cert-sign-col span {
  display: block;
  font-size: 6.2pt;
  color: var(--muted);
  font-style: italic;
}

.cert-sign-space {
  height: 14mm;
}

.cert-bottom-bar {
  margin-top: 2mm;
  padding-top: 1.5mm;
  border-top: 0.5pt solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 7pt;
  color: var(--muted);
}

/* 85.6 × 54mm Two-Sided Card Print Layout */
.cert-card85-sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 8mm;
  justify-content: center;
  padding: 4mm;
}

.cert-card85-sheet[hidden],
.cert-a5-sheet[hidden] {
  display: none !important;
}

.print-card85-face {
  width: 85.6mm;
  height: 53.98mm;
  border-radius: 3.2mm;
  box-sizing: border-box;
  padding: 4.2mm 5mm;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 0.8pt solid var(--gold-500);
  overflow: hidden;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.print-card85-front {
  background: var(--ink);
  color: var(--text-on-dark);
}

.print-card85-back {
  background: var(--paper);
  color: var(--ink);
}

.card85-back-grid {
  display: grid;
  grid-template-columns: 1fr 22mm;
  gap: 3mm;
  align-items: center;
  margin: auto 0;
}

.card85-rules {
  margin: 0;
  padding-left: 2.8mm;
  font-size: 5.1pt;
  line-height: 1.22;
}

/* Monochrome Print Mode (Bản in đen trắng — uses logo-mono.svg, removes dark fills) */
.print-sheet-wrapper[data-print-mono="true"] .cert-a5-sheet,
.print-sheet-wrapper[data-print-mono="true"] .cert-a5-inner-frame,
.print-sheet-wrapper[data-print-mono="true"] .cert-col-box,
.print-sheet-wrapper[data-print-mono="true"] .cert-verify-box,
.print-sheet-wrapper[data-print-mono="true"] .print-card85-front,
.print-sheet-wrapper[data-print-mono="true"] .print-card85-back {
  background: var(--mono-white) !important;
  color: var(--mono-black) !important;
}

.print-sheet-wrapper[data-print-mono="true"] .cert-a5-outer-frame,
.print-sheet-wrapper[data-print-mono="true"] .cert-a5-inner-frame,
.print-sheet-wrapper[data-print-mono="true"] .cert-col-box,
.print-sheet-wrapper[data-print-mono="true"] .cert-verify-box,
.print-sheet-wrapper[data-print-mono="true"] .print-card85-face,
.print-sheet-wrapper[data-print-mono="true"] .cert-corner {
  border-color: var(--mono-black) !important;
}

.print-sheet-wrapper[data-print-mono="true"] * {
  color: var(--mono-black) !important;
}

.print-sheet-wrapper[data-print-mono="true"] .cert-seal-svg circle,
.print-sheet-wrapper[data-print-mono="true"] .cert-seal-svg path {
  stroke: var(--mono-black) !important;
}

.print-sheet-wrapper[data-print-mono="true"] .cert-seal-svg text {
  fill: var(--mono-black) !important;
}

/* ==========================================================================
   Dedicated @media print Rules (Never prints web interface)
   ========================================================================== */
@media print {
  @page {
    size: A5 landscape;
    margin: 0;
  }

  html, body {
    background: var(--mono-white) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .preview-dock,
  .hero-shell,
  .lookup-overlap-wrap,
  .trust-strip,
  .result-workspace,
  .empty-state-card,
  .print-preview-header,
  .site-footer {
    display: none !important;
  }

  .main-container,
  .result-stage,
  .print-preview-showcase,
  .print-sheet-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .result-stage[hidden] {
    display: block !important;
  }
}

/* ==========================================================================
   Responsive Design (Mobile 375px & Tablet) + Reduced Motion
   ========================================================================== */
@media (max-width: 920px) {
  .hero-content-top-lookup,
  .hero-content-kinetic,
  body[data-direction="2"] .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-head-compact {
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .apple-motion-Readout {
    justify-content: center;
  }
  .result-workspace,
  body[data-direction="2"] .result-workspace {
    grid-template-columns: 1fr;
  }
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .brand-lockup-img {
    height: 30px;
  }
  .site-nav {
    gap: 12px;
    width: 100%;
    justify-content: space-between;
  }
  .hero-content {
    padding: 24px 16px 8px;
  }
  .apple-stage-wrap {
    min-height: 220px;
  }
  .apple-stage-3d {
    transform: scale(0.92);
  }
  .lookup-card {
    padding: 22px 18px;
  }
  .captcha-row {
    grid-template-columns: 1fr;
  }
  .captcha-visual-group {
    justify-content: space-between;
  }
  .captcha-svg-box {
    flex: 1;
  }
  .specs-grid,
  .card-actions-grid {
    grid-template-columns: 1fr;
  }
  .member-card-inner {
    padding: 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   BỔ SUNG BÀN GIAO: CHI TIẾT BẢO HÀNH & CHÍNH SÁCH SAU MUA (#after-sales-policy)
   - Kế thừa hệ thống token & font Be Vietnam Pro của itnstore.com/baohanh
   - Không dùng chữ in hoa toàn bộ, không dùng gradient trang trí, không emoji
   - Nền sáng, đường phân cách mảnh 1px, căn trái toàn bộ, chữ nội dung 16px (giãn dòng 1.6)
   - Vùng bấm tối thiểu 44px, phân biệt trạng thái bằng icon + nhãn chữ (không chỉ dùng màu)
   ========================================================================== */

::selection {
  background-color: var(--policy-bronze-bg);
  color: var(--policy-ink);
}

/* Thanh kiểm thử thiết kế (Dành riêng cho bản duyệt bàn giao — có thể ẩn/xóa khi lên Production) */
.design-review-bar {
  background-color: var(--ink-2);
  border-bottom: 1px solid var(--gold-tint-border);
  padding: 10px 16px;
  color: var(--text-on-dark);
  font-size: var(--fs-14);
  position: relative;
  z-index: 95;
}

.design-review-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.design-review-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--gold-200);
}

.design-review-heading svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold-400);
}

.design-review-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.review-scenario-btn {
  appearance: none;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(232, 224, 204, 0.24);
  background-color: rgba(251, 248, 241, 0.06);
  color: var(--text-on-dark);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.review-scenario-btn:hover {
  background-color: rgba(251, 248, 241, 0.12);
  border-color: var(--gold-400);
}

.review-scenario-btn:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

.review-scenario-btn.is-active {
  background-color: var(--gold-200);
  color: var(--ink);
  border-color: var(--gold-400);
  font-weight: 700;
}

/* Nâng chuẩn vùng bấm thanh chọn thiết bị khi tra SĐT nhiều máy lên >= 44px */
.device-record-pill {
  min-height: 44px;
  padding: 8px 16px;
  font-size: var(--fs-14);
  display: inline-flex;
  align-items: center;
}

/* Khung tổng phần Chi tiết bảo hành & chính sách sau mua */
.after-sales-shell {
  margin-top: 28px;
  background-color: var(--policy-surface);
  border: 1px solid var(--policy-border);
  border-radius: var(--radius-card);
  box-shadow: var(--policy-shadow-minimal);
  color: var(--policy-body);
  text-align: left;
  overflow: hidden;
}

.after-sales-shell[hidden] {
  display: none !important;
}

/* Phần A: Tóm tắt thông tin bảo hành của thiết bị theo dữ liệu hóa đơn */
.invoice-policy-summary {
  padding: 28px 32px 24px;
  background-color: var(--policy-surface-alt);
  border-bottom: 1px solid var(--policy-border);
}

.invoice-summary-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.invoice-summary-title-group {
  max-width: 68ch;
}

.invoice-summary-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem; /* 22px */
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--policy-ink);
}

.invoice-summary-lead {
  margin: 6px 0 0;
  font-size: 1rem; /* 16px */
  line-height: 1.58;
  color: var(--policy-muted);
}

.demo-data-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 10px;
  background-color: var(--policy-bronze-bg);
  border: 1px solid var(--policy-bronze-border);
  color: var(--policy-bronze);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 100%;
  flex-shrink: 1;
}

.demo-data-badge[hidden] {
  display: none !important;
}

.demo-data-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Lưới tóm tắt dữ liệu hóa đơn thực tế (Gói áp dụng · Thời hạn · Hiệu lực · Trạng thái) */
.invoice-summary-ledger {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 1.15fr 1.1fr;
  border-top: 1px solid var(--policy-divider);
  border-bottom: 1px solid var(--policy-divider);
  background-color: var(--policy-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--policy-border);
}

.ledger-item {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  border-right: 1px solid var(--policy-divider);
}

.ledger-item:last-child {
  border-right: none;
}

.ledger-item[hidden] {
  display: none !important;
}

.ledger-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  line-height: 1.4;
  color: var(--policy-muted);
}

.ledger-value {
  font-size: 1rem; /* 16px */
  font-weight: 700;
  line-height: 1.45;
  color: var(--policy-ink);
  font-variant-numeric: tabular-nums;
}

.ledger-subnote {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--policy-muted);
  font-variant-numeric: tabular-nums;
}

.ledger-status-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  border: 1px solid var(--policy-border);
  background-color: var(--policy-surface-alt);
  color: var(--policy-ink);
}

.ledger-status-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ledger-status-pill[data-tone="ok"] {
  background-color: var(--policy-ok-bg);
  border-color: var(--policy-ok-border);
  color: var(--policy-ok-text);
}

.ledger-status-pill[data-tone="notice"] {
  background-color: var(--policy-notice-bg);
  border-color: var(--policy-notice-border);
  color: var(--policy-notice-text);
}

.ledger-status-pill[data-tone="expired"] {
  background-color: var(--policy-exclude-bg);
  border-color: var(--policy-exclude-border);
  color: var(--policy-exclude-text);
}

/* Dòng ghi chú phạm vi gói thực tế dưới bảng tóm tắt */
.invoice-scope-bar {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.55;
  color: var(--policy-body);
}

.scope-fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.scope-fact-chip svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--policy-bronze);
}

.scope-fact-chip[data-included="true"] svg {
  color: var(--policy-ok-text);
}

.scope-fact-chip[data-included="false"] {
  color: var(--policy-muted);
}

.scope-fact-chip[data-included="false"] svg {
  color: var(--policy-muted);
}

/* Phần B: Thanh điều hướng mục chính sách & nút Mở rộng / Thu gọn tất cả */
.policy-groups-toolbar {
  padding: 16px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  border-bottom: 1px solid var(--policy-divider);
  background-color: var(--policy-surface);
}

.policy-nav-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.policy-jump-link {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--policy-divider);
  background-color: var(--policy-surface-alt);
  color: var(--policy-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.policy-jump-link:hover {
  border-color: var(--policy-bronze-border);
  background-color: var(--policy-bronze-bg);
}

.policy-jump-link:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.policy-jump-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--policy-bronze);
}

.policy-expand-all-btn {
  appearance: none;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--policy-border);
  background-color: var(--policy-surface);
  color: var(--policy-ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.policy-expand-all-btn:hover {
  background-color: var(--policy-surface-alt);
  border-color: var(--policy-bronze-border);
}

.policy-expand-all-btn:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.policy-expand-all-btn svg {
  width: 17px;
  height: 17px;
  color: var(--policy-bronze);
}

/* Danh sách các nhóm chính sách phân cách bằng đường kẻ mảnh 1px */
.policy-sections-list {
  display: flex;
  flex-direction: column;
}

.policy-block {
  padding: 24px 32px;
  border-bottom: 1px solid var(--policy-divider);
  background-color: var(--policy-surface);
  scroll-margin-top: 24px;
}

.policy-block:last-child {
  border-bottom: none;
}

/* Vùng lưu ý màn hình: màu nhấn nhẹ nhàng, viền mảnh đồng nhất 1px, không gây báo động */
.policy-block.is-screen-notice {
  background-color: var(--policy-notice-bg);
  border-top: 1px solid var(--policy-notice-border);
  border-bottom: 1px solid var(--policy-notice-border);
}

/* Vùng lưu ý riêng tài khoản iCloud */
.policy-block.is-icloud-notice {
  background-color: var(--policy-icloud-bg);
}

/* Hàng tiêu đề nhóm chính sách + nút đóng/mở (vùng bấm >= 48px) */
.policy-header-btn {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 4px 0;
  border: none;
  background: transparent;
  color: inherit;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.policy-header-btn:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 4px;
  border-radius: 8px;
}

.policy-header-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.policy-icon-frame {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--policy-bronze-border);
  background-color: var(--policy-bronze-bg);
  color: var(--policy-bronze);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.policy-block.is-screen-notice .policy-icon-frame {
  background-color: var(--policy-surface);
  border-color: var(--policy-notice-border);
  color: var(--policy-notice-text);
}

.policy-icon-frame svg {
  width: 21px;
  height: 21px;
}

.policy-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 2px;
}

.policy-group-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1875rem; /* 19px */
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--policy-ink);
}

.policy-context-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 7px;
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  line-height: 1.35;
  border: 1px solid var(--policy-border);
  background-color: var(--policy-surface-alt);
  color: var(--policy-muted);
}

.policy-context-tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.policy-context-tag[data-variant="applied"] {
  background-color: var(--policy-ok-bg);
  border-color: var(--policy-ok-border);
  color: var(--policy-ok-text);
}

.policy-context-tag[data-variant="attention"] {
  background-color: var(--policy-surface);
  border-color: var(--policy-notice-border);
  color: var(--policy-notice-text);
}

/* Cụm nút Chi tiết / Thu gọn bên phải tiêu đề */
.policy-toggle-pill {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--policy-border);
  background-color: var(--policy-surface);
  color: var(--policy-ink);
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.policy-header-btn:hover .policy-toggle-pill {
  border-color: var(--policy-bronze-border);
  background-color: var(--policy-bronze-bg);
}

.policy-toggle-pill svg {
  width: 17px;
  height: 17px;
  color: var(--policy-bronze);
  transition: transform 0.2s ease;
}

.policy-header-btn[aria-expanded="true"] .policy-toggle-pill svg {
  transform: rotate(180deg);
}

/* Khu vực tóm tắt luôn hiển thị (Không ẩn điều kiện quan trọng, loại trừ, mức phí) */
.policy-always-summary {
  margin-top: 12px;
  padding-left: 54px;
  max-width: 76ch;
  display: grid;
  gap: 8px;
}

.summary-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem; /* 16px chuẩn đọc trên điện thoại */
  line-height: 1.6;
  color: var(--policy-body);
}

.summary-point svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
}

.summary-point[data-kind="benefit"] svg {
  color: var(--policy-ok-text);
}

.summary-point[data-kind="exclusion"] svg {
  color: var(--policy-muted);
}

.summary-point[data-kind="fee"] svg,
.summary-point[data-kind="notice"] svg {
  color: var(--policy-bronze);
}

.summary-point strong {
  color: var(--policy-ink);
  font-weight: 700;
}

/* Khu vực diễn giải chi tiết có thể mở rộng */
.policy-detail-panel {
  margin-top: 18px;
  padding-top: 18px;
  margin-left: 54px;
  border-top: 1px solid var(--policy-divider);
}

.policy-block.is-screen-notice .policy-detail-panel {
  border-top-color: var(--policy-notice-border);
}

.policy-detail-panel[hidden] {
  display: none !important;
}

.policy-prose-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 72ch;
  display: grid;
  gap: 10px;
}

.policy-prose-list li {
  position: relative;
  padding-left: 18px;
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  color: var(--policy-body);
}

.policy-prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--policy-bronze);
}

.policy-prose-list li strong {
  color: var(--policy-ink);
  font-weight: 700;
}

/* Luồng minh họa 3 bước: Mang máy đến shop -> Kỹ thuật kiểm tra -> Hỗ trợ xử lý theo chính sách */
.support-flow-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background-color: var(--policy-surface-alt);
  border: 1px solid var(--policy-border);
}

.support-flow-caption {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--policy-ink);
}

.support-flow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.support-step-item {
  position: relative;
  padding: 14px 16px;
  border-radius: 10px;
  background-color: var(--policy-surface);
  border: 1px solid var(--policy-divider);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.support-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.support-step-num {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--policy-bronze);
  font-variant-numeric: tabular-nums;
}

.support-step-arrow {
  width: 16px;
  height: 16px;
  color: var(--policy-muted);
}

.support-step-title {
  font-size: 1rem; /* 16px */
  font-weight: 700;
  line-height: 1.45;
  color: var(--policy-ink);
}

.support-step-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--policy-muted);
}

/* Bảng đối chiếu tình huống 1 đổi 1 dễ quét mắt */
.situation-matrix {
  margin-top: 12px;
  border: 1px solid var(--policy-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--policy-surface);
  max-width: 780px;
}

.situation-matrix-head {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
  padding: 12px 18px;
  background-color: var(--policy-surface-alt);
  border-bottom: 1px solid var(--policy-border);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--policy-muted);
}

.situation-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--policy-divider);
  align-items: center;
  font-size: 1rem; /* 16px */
  line-height: 1.55;
}

.situation-row:last-child {
  border-bottom: none;
}

.situation-row.is-excluded {
  background-color: var(--policy-exclude-bg);
}

.situation-case {
  font-weight: 600;
  color: var(--policy-ink);
}

.situation-outcome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--policy-body);
}

.situation-outcome svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.situation-outcome[data-action="swap"] {
  color: var(--policy-ok-text);
  font-weight: 700;
}

.situation-outcome[data-action="repair"] {
  color: var(--policy-bronze);
}

.situation-outcome[data-action="exclude"] {
  color: var(--policy-exclude-text);
}

/* Chi tiết 2 cột cho Lưu ý màn hình & Tài khoản iCloud */
.two-col-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.detail-pane {
  padding: 16px 18px;
  border-radius: 12px;
  background-color: var(--policy-surface);
  border: 1px solid var(--policy-border);
}

.policy-block.is-screen-notice .detail-pane {
  border-color: var(--policy-notice-border);
}

.detail-pane-title {
  margin: 0 0 8px;
  font-size: 1rem; /* 16px */
  font-weight: 700;
  line-height: 1.45;
  color: var(--policy-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-pane-title svg {
  width: 18px;
  height: 18px;
  color: var(--policy-bronze);
  flex-shrink: 0;
}

.detail-pane-body {
  margin: 0;
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  color: var(--policy-body);
}

/* Chính sách trả hàng: Phân tách rõ a (Tiền mặt), b (Trả góp), c (Máy sale BH 6 tháng) */
.return-policy-stack {
  display: grid;
  gap: 18px;
}

.return-tier-section {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--policy-border);
  background-color: var(--policy-surface);
}

.return-tier-section.is-active-tier {
  border-color: var(--policy-bronze);
  background-color: var(--policy-surface-alt);
}

.return-tier-section.is-reference-tier {
  border-style: dashed;
  background-color: var(--policy-surface);
}

.return-tier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.return-tier-title {
  margin: 0;
  font-size: 1.0625rem; /* 17px */
  font-weight: 700;
  line-height: 1.4;
  color: var(--policy-ink);
}

.return-tier-note {
  margin: 0 0 14px;
  font-size: 1rem; /* 16px */
  line-height: 1.58;
  color: var(--policy-muted);
}

/* Bảng mốc thời gian & mức phí trả hàng (Nổi bật 30 ngày đầu & Từ ngày 31) */
.fee-schedule-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--policy-border);
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--policy-surface);
  font-variant-numeric: tabular-nums;
}

.fee-schedule-table th,
.fee-schedule-table td {
  padding: 13px 16px;
  text-align: left;
  font-size: 1rem; /* 16px */
  line-height: 1.55;
  border-bottom: 1px solid var(--policy-divider);
  vertical-align: top;
}

.fee-schedule-table th {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--policy-muted);
  background-color: var(--policy-surface-muted);
}

.fee-schedule-table tr:last-child td {
  border-bottom: none;
}

.fee-schedule-table tr.is-key-milestone td {
  background-color: var(--policy-surface);
}

.fee-milestone-name {
  font-weight: 600;
  color: var(--policy-ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.milestone-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  background-color: var(--policy-bronze-bg);
  border: 1px solid var(--policy-bronze-border);
  color: var(--policy-bronze);
}

.fee-rate-strong {
  font-weight: 700;
  color: var(--policy-ink);
}

/* Khối điều kiện tất toán trả góp dễ nhìn */
.installment-prerequisite-banner {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background-color: var(--policy-notice-bg);
  border: 1px solid var(--policy-notice-border);
  color: var(--policy-ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem; /* 16px */
  line-height: 1.58;
}

.installment-prerequisite-banner svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--policy-notice-text);
}

.installment-prerequisite-banner strong {
  font-weight: 700;
  color: var(--policy-ink);
}

/* Tối ưu hiển thị trên máy tính bảng & điện thoại (Mobile-First Readability 16px) */
@media (max-width: 920px) {
  .invoice-policy-summary {
    padding: 22px 20px 20px;
  }

  .invoice-summary-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  .ledger-item:nth-child(2) {
    border-right: none;
  }

  .ledger-item:nth-child(1),
  .ledger-item:nth-child(2) {
    border-bottom: 1px solid var(--policy-divider);
  }

  .policy-groups-toolbar {
    padding: 14px 20px;
  }

  .policy-block {
    padding: 22px 20px;
  }

  .support-flow-steps {
    grid-template-columns: 1fr;
  }

  .support-step-arrow {
    transform: rotate(90deg);
  }

  .two-col-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .design-review-bar {
    padding: 10px 12px;
  }

  .design-review-controls {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .review-scenario-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .main-container {
    padding: 0 14px 48px;
  }

  .invoice-policy-summary {
    padding: 20px 16px 18px;
  }

  .invoice-summary-heading {
    font-size: 1.25rem; /* 20px */
  }

  .invoice-summary-ledger {
    grid-template-columns: 1fr;
  }

  .ledger-item {
    border-right: none !important;
    border-bottom: 1px solid var(--policy-divider);
    padding: 13px 15px;
  }

  .ledger-item:last-child {
    border-bottom: none;
  }

  .policy-groups-toolbar {
    padding: 12px 16px;
  }

  .policy-nav-pills {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .policy-jump-link {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .policy-expand-all-btn {
    width: 100%;
    justify-content: center;
  }

  .policy-block {
    padding: 20px 16px;
  }

  .policy-header-btn {
    flex-wrap: wrap;
    gap: 10px;
  }

  .policy-toggle-pill {
    margin-left: 52px;
  }

  .policy-always-summary,
  .policy-detail-panel {
    padding-left: 0;
    margin-left: 0;
  }

  .situation-matrix-head {
    display: none;
  }

  .situation-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 15px;
  }

  .return-tier-section {
    padding: 16px 15px;
  }

  .fee-schedule-table,
  .fee-schedule-table thead,
  .fee-schedule-table tbody,
  .fee-schedule-table tr,
  .fee-schedule-table td {
    display: block;
    width: 100%;
  }

  .fee-schedule-table thead {
    display: none;
  }

  .fee-schedule-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--policy-divider);
  }

  .fee-schedule-table tr:last-child {
    border-bottom: none;
  }

  .fee-schedule-table td {
    padding: 3px 0;
    border-bottom: none;
  }
}

/* ==========================================================================
   CẬP NHẬT FOOTER CHI NHÁNH & KÊNH HỖ TRỢ DỄ NHẬN DIỆN (03/11/2026)
   ========================================================================== */
@media (min-width: 921px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.05fr 1.55fr 1.25fr;
    gap: 28px 36px;
    align-items: start;
  }
}

.footer-branches-stack {
  display: grid;
  gap: 14px;
}

.footer-branch-group {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(251, 248, 241, 0.035);
  border: 1px solid rgba(232, 224, 204, 0.12);
}

.footer-branch-city {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.footer-branch-city svg {
  width: 15px;
  height: 15px;
  color: var(--gold-400);
  flex-shrink: 0;
}

.footer-branch-city strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.005em;
}

.footer-branch-count {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-200);
  background: rgba(201, 162, 58, 0.14);
  border: 1px solid rgba(201, 162, 58, 0.28);
}

.footer-branch-addresses {
  list-style: none;
  margin: 0;
  padding: 0 0 0 23px;
  display: grid;
  gap: 6px;
}

.footer-branch-addresses li {
  position: relative;
  padding-left: 13px;
  font-size: var(--fs-14);
  line-height: 1.52;
  color: var(--text-muted-on-dark);
}

.footer-branch-addresses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gold-400);
  opacity: 0.85;
}

.footer-contact-list {
  gap: 11px;
}

.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  line-height: 1.5;
}

.footer-contact-label {
  font-weight: 700;
  color: var(--text-on-dark);
}

.footer-contact-val {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
}

.footer-link-nowrap {
  white-space: nowrap;
  font-weight: 600;
}

.footer-num-sep {
  color: rgba(232, 224, 204, 0.45);
  font-weight: 500;
  user-select: none;
}

@media (max-width: 600px) {
  .footer-branch-group {
    padding: 12px 13px;
  }

  .footer-branch-addresses {
    padding-left: 8px;
  }

  .footer-contact-item {
    padding: 3px 0;
  }
}

@media print {
  .design-review-bar,
  .after-sales-shell {
    display: none !important;
  }
}
