/* ═══════════════════════════════════════════════════════════════════════════
   QuizPeek Web — Animated App Download & Top-Up Portal Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:            #070a11;
  --card:          rgba(18, 24, 38, 0.78);
  --card-solid:    #121826;
  --surface:       rgba(28, 37, 56, 0.85);
  --surface-hover: rgba(36, 48, 72, 0.95);
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text:          #f8fafc;
  --text-sub:      #94a3b8;
  --text-muted:    #64748b;

  --accent:        #6366f1;
  --accent-hover:  #4f46e5;
  --accent2:       #818cf8;
  --accent-soft:   rgba(99, 102, 241, 0.16);
  --accent-border: rgba(99, 102, 241, 0.42);
  --accent-glow:   rgba(99, 102, 241, 0.35);

  --green:         #10b981;
  --green-hover:   #059669;
  --green-soft:    rgba(16, 185, 129, 0.15);
  --green-border:  rgba(16, 185, 129, 0.42);
  --green-glow:    rgba(16, 185, 129, 0.32);

  --red:           #ef4444;
  --red-soft:      rgba(239, 68, 68, 0.14);

  --radius-lg:     20px;
  --radius:        14px;
  --radius-sm:     11px;
  --shadow:        0 14px 38px rgba(0, 0, 0, 0.42);
  --spring:        cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --bg:            #f2f5fc;
  --card:          rgba(255, 255, 255, 0.86);
  --card-solid:    #ffffff;
  --surface:       #f8fafc;
  --surface-hover: #eef2f8;
  --border:        rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);

  --text:          #0f172a;
  --text-sub:      #475569;
  --text-muted:    #64748b;

  --accent:        #4f46e5;
  --accent-hover:  #4338ca;
  --accent2:       #6366f1;
  --accent-soft:   rgba(79, 70, 229, 0.1);
  --accent-border: rgba(79, 70, 229, 0.32);
  --accent-glow:   rgba(79, 70, 229, 0.2);

  --green:         #059669;
  --green-hover:   #047857;
  --green-soft:    rgba(5, 150, 105, 0.11);
  --green-border:  rgba(5, 150, 105, 0.3);
  --green-glow:    rgba(5, 150, 105, 0.18);

  --shadow:        0 12px 32px rgba(15, 23, 42, 0.07);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

button, input {
  font: inherit;
  border: 0;
  outline: 0;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1040px, 100% - 32px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-45px, 35px) scale(1.12); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(50px, -30px) scale(1.15); }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-5px); }
}

@keyframes shimmerSweep {
  0%   { transform: translateX(-140%) skewX(-20deg); }
  45%, 100% { transform: translateX(220%) skewX(-20deg); }
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 var(--green-glow); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes popScale {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes qrLaser {
  0%   { top: 10px; opacity: 0.9; }
  50%  { top: calc(100% - 14px); opacity: 1; }
  100% { top: 10px; opacity: 0.9; }
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Ambient Animated Background Orbs & Grid ── */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.42;
}

html[data-theme="light"] .ambient-orb {
  opacity: 0.22;
}

.orb-purple {
  width: 420px;
  height: 420px;
  top: -120px;
  right: 8%;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  animation: floatOrb1 11s ease-in-out infinite;
}

.orb-emerald {
  width: 380px;
  height: 380px;
  top: 260px;
  left: -90px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  animation: floatOrb2 14s ease-in-out infinite;
}

.orb-blue {
  width: 340px;
  height: 340px;
  bottom: -100px;
  right: 20%;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  animation: floatOrb1 16s ease-in-out infinite reverse;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 50% 25%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 25%, black 30%, transparent 80%);
}

html[data-theme="light"] .ambient-grid {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

/* ── Staggered Reveal Item ── */
.reveal-item {
  opacity: 0;
  animation: revealUp 0.65s var(--spring) forwards;
  animation-delay: var(--delay, 0s);
}

.float-icon {
  animation: floatIcon 3.6s ease-in-out infinite;
}

.float-icon-delayed {
  animation: floatIcon 3.6s ease-in-out 1.8s infinite;
}

/* ── Spotlight Card (Hiệu ứng ánh sáng đi theo chuột) ── */
.spotlight-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    480px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(129, 140, 248, 0.13),
    transparent 45%
  );
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.25s ease;
}

.spotlight-card > * {
  position: relative;
  z-index: 1;
}

/* ── Button Shimmer Effect ── */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.24),
    transparent
  );
  transform: translateX(-140%) skewX(-20deg);
  animation: shimmerSweep 4.5s infinite;
  pointer-events: none;
}

/* ── Header ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 10, 17, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

html[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.84);
}

.navbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo-wrap {
  position: relative;
  border-radius: 11px;
  transition: transform 0.25s var(--spring);
}

.brand:hover .brand-logo-wrap {
  transform: rotate(-5deg) scale(1.06);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-row strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.badge-ai {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.brand-text > span {
  display: block;
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
  transform: translateY(-1px);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  transition: all 0.2s var(--spring);
}

.nav-user-pill:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseRing 2s infinite;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--spring);
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: rotate(12deg) scale(1.05);
}

/* ── Main Content ── */
.main-content {
  padding: 28px 0 44px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--green);
  animation: revealUp 0.3s var(--spring);
}

.alert-box.error {
  background: var(--red-soft);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--red);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TẦNG 1: THANH TẢI ỨNG DỤNG TỐI GIẢN Ở ĐẦU TRANG (MINIMAL DOWNLOAD BAR)
   ═══════════════════════════════════════════════════════════════════════════ */
.compact-download-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compact-download-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

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

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent2);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseRing 1.8s infinite;
  flex: none;
}

.compact-title-group h1 {
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(90deg, #818cf8, #34d399, #60a5fa, #818cf8);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 5s linear infinite;
}

.compact-sub {
  font-size: 13px;
  color: var(--text-sub);
}

.compact-sub strong {
  color: var(--text);
}

/* 2 Nút Tải Tối Giản Chuẩn Store */
.minimal-store-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.minimal-store-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.minimal-store-pill:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), 0 0 22px var(--accent-glow);
}

.pill-android:hover {
  border-color: var(--green);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35), 0 0 22px var(--green-glow);
}

.minimal-store-pill.is-recommended-device {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 20px rgba(99, 102, 241, 0.16);
}

.pill-android.is-recommended-device {
  border-color: var(--green);
  box-shadow: var(--shadow), 0 0 20px rgba(16, 185, 129, 0.16);
}

.pill-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.chrome-bg {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.15));
  color: var(--accent2);
  border: 1px solid var(--accent-border);
}

.android-bg {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
  color: var(--green);
  border: 1px solid var(--green-border);
}

.pill-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.pill-top-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-height: 18px;
}

.pill-top-line small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-info strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-match-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  white-space: nowrap;
  flex: none;
}

.device-match-badge.green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.pill-cta-btn {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  flex: none;
  white-space: nowrap;
}

.btn-chrome {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.btn-play {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
}

.platform-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent2);
}

.android-label {
  color: var(--green);
}


/* ═══════════════════════════════════════════════════════════════════════════
   HOẠT HỌA MÔ PHỎNG THIẾT BỊ (LIVE PC & ANDROID MOCKUPS)
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes cropPulse {
  0%, 15%   { opacity: 0; transform: scale(0.96); }
  25%, 65%  { opacity: 1; transform: scale(1); }
  75%, 100% { opacity: 0; transform: scale(1.01); }
}

@keyframes cropLaserScan {
  0%, 20%   { top: 4px; opacity: 0; }
  30%       { opacity: 1; }
  60%       { top: calc(100% - 6px); opacity: 1; }
  70%, 100% { top: calc(100% - 6px); opacity: 0; }
}

@keyframes toastPopIn {
  0%, 52%   { opacity: 0; transform: translateY(12px) scale(0.92); }
  62%, 90%  { opacity: 1; transform: translateY(0) scale(1); }
  96%, 100% { opacity: 0; transform: translateY(6px) scale(0.96); }
}

@keyframes answerHighlight {
  0%, 52%   {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
  }
  60%, 92%  {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    color: #ecfdf5;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.28);
  }
  97%, 100% {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
  }
}

@keyframes qpBubbleRipple {
  0%, 10%   { transform: scale(1); opacity: 0; }
  22%       { transform: scale(1.65); opacity: 0.75; }
  40%, 100% { transform: scale(2.1); opacity: 0; }
}

@keyframes phoneWaveScan {
  0%, 20%   { top: 0%; opacity: 0; }
  28%       { opacity: 1; }
  58%       { top: 92%; opacity: 1; }
  65%, 100% { top: 95%; opacity: 0; }
}

@keyframes phoneSheetUp {
  0%, 52%   { transform: translateY(108%); opacity: 0; }
  62%, 90%  { transform: translateY(0%); opacity: 1; }
  97%, 100% { transform: translateY(108%); opacity: 0; }
}

@keyframes packetMove {
  0%   { left: -12px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: calc(100% + 4px); opacity: 0; }
}

.mockup-stage {
  position: relative;
  border-radius: 15px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(10, 14, 24, 0.92), rgba(20, 28, 46, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="light"] .mockup-stage {
  background: linear-gradient(145deg, #111827, #1e293b);
  border-color: rgba(15, 23, 42, 0.14);
}

/* ── 1. Màn hình trình duyệt PC (Chrome Extension Mockup) ── */
.browser-window {
  width: 100%;
  border-radius: 11px;
  background: #0d1322;
  border: 1px solid rgba(129, 140, 248, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.browser-topbar {
  height: 28px;
  padding: 0 10px;
  background: #161f33;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }

.browser-url {
  flex: 1;
  max-width: 190px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-hotkey {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(99, 102, 241, 0.24);
  border: 1px solid rgba(129, 140, 248, 0.45);
  color: #c7d2fe;
  font-size: 10px;
  font-weight: 800;
}

.browser-Body {
  position: relative;
  padding: 12px;
  color: #f1f5f9;
}

.quiz-sim-question {
  margin-bottom: 9px;
}

.quiz-sim-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #818cf8;
  margin-bottom: 2px;
}

.quiz-sim-question p {
  font-size: 11.5px;
  color: #e2e8f0;
  line-height: 1.4;
}

.quiz-sim-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sim-opt {
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-opt-correct {
  animation: answerHighlight 5.2s ease-in-out infinite;
}

.sim-check {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Khung khoanh vùng AI trên PC */
.ai-crop-box {
  position: absolute;
  inset: 7px;
  border: 1.5px dashed #818cf8;
  border-radius: 9px;
  background: rgba(99, 102, 241, 0.06);
  pointer-events: none;
  animation: cropPulse 5.2s ease-in-out infinite;
}

.ai-crop-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #818cf8, #34d399, transparent);
  box-shadow: 0 0 10px #818cf8;
  animation: cropLaserScan 5.2s ease-in-out infinite;
}

.ai-crop-tag {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 1px 7px;
  border-radius: 99px;
  background: #6366f1;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

/* Cửa sổ nổi báo đáp án trên PC */
.qp-overlay-toast {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid #10b981;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(16, 185, 129, 0.3);
  animation: toastPopIn 5.2s var(--spring) infinite;
}

.qp-toast-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.qp-toast-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qp-toast-top strong {
  font-size: 11.5px;
  font-weight: 800;
  color: #34d399;
}

.qp-toast-acc {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.qp-toast-info small {
  display: block;
  font-size: 9.5px;
  color: #cbd5e1;
}

/* ── 2. Màn hình Điện thoại Android & Nút nổi QP (Phone Mockup) ── */
.phone-showcase-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.phone-frame {
  width: 175px;
  height: 186px;
  border-radius: 18px;
  padding: 6px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.15);
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 44px;
  height: 6px;
  border-radius: 99px;
  background: #090d16;
  margin: 1px auto 5px;
}

.phone-screen {
  flex: 1;
  border-radius: 12px;
  background: #0b1120;
  padding: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-q-label {
  display: block;
  font-size: 8px;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.04em;
}

.phone-quiz-card p {
  font-size: 10px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 2px 0 6px;
  line-height: 1.3;
}

.phone-opts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-opt {
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 9.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-opt-correct {
  animation: answerHighlight 5.2s ease-in-out infinite;
}

.phone-scan-wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, #34d399, transparent);
  box-shadow: 0 0 12px #10b981;
  animation: phoneWaveScan 5.2s ease-in-out infinite;
  pointer-events: none;
}

/* Nút nổi QP trên màn hình điện thoại */
.qp-floating-bubble {
  position: absolute;
  right: 6px;
  top: 46%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #6366f1);
  border: 2px solid #fff;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.5);
  z-index: 3;
}

.bubble-ripple {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #34d399;
  animation: qpBubbleRipple 5.2s ease-out infinite;
}

/* Bảng kết quả AI trượt từ dưới lên trên điện thoại */
.phone-result-sheet {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(6, 78, 59, 0.96);
  border: 1px solid #34d399;
  color: #ecfdf5;
  z-index: 4;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.5);
  animation: phoneSheetUp 5.2s var(--spring) infinite;
}

.sheet-badge {
  font-size: 8px;
  font-weight: 800;
  color: #6ee7b7;
  letter-spacing: 0.04em;
}

.phone-result-sheet strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.phone-result-sheet small {
  display: block;
  font-size: 8.5px;
  color: #a7f3d0;
}

/* Các thẻ tính năng nổi bên cạnh điện thoại */
.phone-floating-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.f-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.f-tag-1 { animation: floatIcon 3.8s ease-in-out infinite; }
.f-tag-2 { animation: floatIcon 3.8s ease-in-out 0.9s infinite; }
.f-tag-3 { animation: floatIcon 3.8s ease-in-out 1.8s infinite; }

.f-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.f-tag-dot.green  { background: #10b981; box-shadow: 0 0 8px #10b981; }
.f-tag-dot.purple { background: #818cf8; box-shadow: 0 0 8px #818cf8; }
.f-tag-dot.blue   { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }

.f-tag strong {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

.f-tag small {
  display: block;
  font-size: 10px;
  color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DẢI MINH HỌA HOẠT HỌA 3 BƯỚC (VISUAL WORKFLOW STRIP)
   ═══════════════════════════════════════════════════════════════════════════ */
.visual-steps-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.v-step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
}

.v-step-art {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: none;
  overflow: hidden;
}

/* Minh họa Bước 1: Khoanh vùng / Nút QP */
.art-crosshair {
  width: 38px;
  height: 38px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-crosshair .corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--accent2);
  border-style: solid;
}

.c-tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.c-tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.c-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.c-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.art-qp-pill {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #6366f1);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseRing 2s infinite;
}

/* Minh họa Bước 2: AI Core */
.ai-orbit-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent2);
  animation: spin 8s linear infinite;
}

.ai-core-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatIcon 2.6s ease-in-out infinite;
}

/* Minh họa Bước 3: Chọn Đáp Án */
.art-ans-pills {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 42px;
}

.art-ans-pills span {
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-muted);
  text-align: center;
}

.art-ans-pills .ans-hit {
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 10px var(--green-glow);
  animation: popScale 2.4s ease-in-out infinite;
}

.v-step-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent2);
  margin-bottom: 1px;
}

.v-step-badge.purple { color: #a78bfa; }
.v-step-badge.green  { color: var(--green); }

.v-step-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.v-step-text p {
  font-size: 11.5px;
  color: var(--text-sub);
  line-height: 1.35;
  margin-top: 2px;
}

.v-step-connector {
  width: 34px;
  height: 2px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
  border-radius: 99px;
}

.connector-packet {
  position: absolute;
  top: -2px;
  width: 12px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  animation: packetMove 2.2s linear infinite;
}

.connector-packet.delay {
  animation-delay: 1.1s;
}

/* ── Đồ họa đồng bộ PC <-> Google <-> Android trong cột Tài khoản ── */
.sync-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
}

.sync-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-sub);
}

.sync-node small {
  font-size: 9.5px;
  font-weight: 700;
}

.sync-center-hub {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-glow);
  animation: floatIcon 3s ease-in-out infinite;
}

.sync-center-hub img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.sync-line {
  width: 32px;
  height: 2px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
}

.sync-dot-flow {
  position: absolute;
  top: -2px;
  width: 10px;
  height: 6px;
  border-radius: 99px;
  background: var(--green);
  animation: packetMove 1.8s linear infinite;
}

.sync-dot-flow.reverse {
  animation-direction: reverse;
}


/* ═══════════════════════════════════════════════════════════════════════════
   TẦNG 2: QUẢN LÝ TÀI KHOẢN & NẠP LƯỢT (HIỂN THỊ NGAY MÀN HÌNH ĐẦU)
   ═══════════════════════════════════════════════════════════════════════════ */
.workspace-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.section-tag {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 3px;
}

.section-heading h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.section-heading p {
  font-size: 13px;
  color: var(--text-sub);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TẦNG 3 (PHÍA DƯỚI): HOẠT HỌA MÔ PHỎNG & CÁCH HOẠT ĐỘNG
   ═══════════════════════════════════════════════════════════════════════════ */
.showcase-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-mockups-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.showcase-box {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.showcase-box-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.showcase-box-head strong {
  font-size: 15px;
  font-weight: 800;
}

.showcase-box-head kbd,
.v-step-text kbd {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent2);
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.step-num.green {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: var(--green);
}

.card-head h3 {
  font-size: 16px;
  font-weight: 800;
}

.status-pill-mini {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-sub);
}

.status-pill-mini.online {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.rate-pill {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 700;
}

/* ── Khung Nạp Lượt Thống Nhất (Thanh Đăng Nhập Nhỏ Gọn + Lưới Nạp Cân Đối) ── */
.unified-topup-card {
  gap: 18px;
}

.account-inline-bar {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

.inline-guest-row,
.inline-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.inline-guest-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.account-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 10px var(--accent-glow);
  flex: none;
}

.inline-guest-left strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.inline-sub {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
}

.google-btn-compact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 36px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-text {
  min-width: 0;
}

.user-name-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.user-text strong {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-text > span {
  display: block;
  font-size: 11.5px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inline-user-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(16, 185, 129, 0.12));
  border: 1px solid var(--accent-border);
}

.inline-balance-label {
  font-size: 11.5px;
  color: var(--text-sub);
  font-weight: 600;
}

.inline-balance-pill strong {
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}

.inline-balance-unit {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
}

.btn-icon-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-icon-mini:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn-icon-mini.spinning svg {
  animation: spin 0.7s linear infinite;
}

.btn-ghost-sm {
  padding: 6px 11px;
  border-radius: 99px;
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  color: var(--text-sub);
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-ghost-sm:hover {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Lưới 2 cột cân đối tuyệt đối bên trong Khung Nạp Lượt */
.topup-body-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.topup-left-col,
.topup-right-col {
  display: flex;
  flex-direction: column;
}

/* Header đồng bộ chiều cao 28px cho cả Cột Trái và Cột Phải */
.col-head {
  min-height: 28px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.col-head-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
}

.sub-pill {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 11.5px;
  font-weight: 600;
}

.right-controls-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

/* ── Chọn Mệnh Giá Nhanh ── */
.quick-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}

.quick-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--border);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: all 0.22s var(--spring);
}

.quick-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.quick-card:active {
  transform: scale(0.97);
}

.quick-card.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.22);
  transform: translateY(-2px);
}

.quick-card strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.quick-card span {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--green);
}

.input-group {
  margin: 0;
}

.amount-box {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  transition: all 0.2s ease;
}

.amount-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.amount-box.is-invalid {
  border-color: var(--red);
}

.amount-box input {
  flex: 1;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.unit-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.receive-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0;
}

.receive-bar span {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.receive-bar small {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

.receive-bar strong {
  font-size: 20px;
  font-weight: 900;
  color: var(--green);
}

.credits-pop.is-popping {
  animation: popScale 0.3s var(--spring);
}

.btn-primary {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #4338ca 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 22px var(--accent-glow);
  transition: transform 0.2s var(--spring), filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-text {
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
}

.error-text:empty {
  display: none;
}

.error-text.center {
  text-align: center;
}

/* Đơn gần đây */
.recent-orders {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.link-btn {
  background: none;
  color: var(--text-muted);
  font-size: 12px;
}

.link-btn:hover {
  color: var(--red);
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface);
  font-size: 12.5px;
  transition: transform 0.2s ease;
}

.recent-item:hover {
  transform: translateX(3px);
}

.recent-item strong {
  display: block;
  font-weight: 700;
}

.recent-item small {
  color: var(--text-muted);
  font-size: 11px;
}

.recent-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-status {
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.badge-status.paid {
  background: var(--green-soft);
  color: var(--green);
}

.badge-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.badge-status.expired {
  background: var(--card-solid);
  color: var(--text-muted);
}

.btn-mini {
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

/* ── Footer ── */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer a {
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ── Modal Thanh Toán QR (Có hiệu ứng Laser Scan) ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-card {
  width: min(415px, 100%);
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: modalEnter 0.28s var(--spring);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-head h3 {
  font-size: 16px;
  font-weight: 800;
}

.modal-sub {
  font-size: 12px;
  color: var(--text-sub);
}

.close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-sub);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.modal-center {
  padding: 28px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

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

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.qr-summary strong {
  font-size: 20px;
  font-weight: 800;
}

.credit-badge {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 700;
}

.qr-box {
  position: relative;
  width: 224px;
  height: 224px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.qr-scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #10b981, #6366f1, transparent);
  box-shadow: 0 0 12px #10b981;
  animation: qrLaser 2.8s ease-in-out infinite;
  pointer-events: none;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-secondary-full {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary-full:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.transfer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--surface);
  font-size: 12.5px;
}

.info-row span {
  color: var(--text-sub);
}

.info-row.highlight {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.copy-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.copy-btn {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  transform: scale(1.05);
}

.copy-btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.copy-btn.copied {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.waiting-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  font-size: 12.5px;
  color: var(--text-sub);
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popScale 0.45s var(--spring);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE CHO ĐIỆN THOẠI & TABLET
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
  .minimal-store-row,
  .workspace-grid,
  .topup-body-grid,
  .showcase-mockups-grid {
    grid-template-columns: 1fr;
  }

  .minimal-store-row {
    gap: 10px;
  }

  /* Trên điện thoại: tự động đẩy nút tải Android lên đầu tiên */
  .pill-android {
    order: -1;
  }

  .nav-links {
    display: none;
  }

  .visual-steps-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .v-step-connector {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 24px);
  }

  .navbar-inner {
    min-height: 56px;
    gap: 8px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-row strong {
    font-size: 15.5px;
  }

  .brand-text > span {
    display: none;
  }

  .nav-user-pill {
    padding: 6px 11px;
    font-size: 11.5px;
    gap: 6px;
    max-width: 185px;
  }

  #navUserText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-content {
    padding: 14px 0 28px;
    gap: 16px;
  }

  .compact-download-bar {
    gap: 10px;
  }

  .eyebrow-badge {
    font-size: 9.5px;
    padding: 3px 10px;
  }

  .compact-title-group h1 {
    font-size: 20px;
  }

  .compact-sub {
    font-size: 12.5px;
  }

  .minimal-store-pill {
    min-height: 68px;
    padding: 11px 13px;
    gap: 11px;
  }

  .pill-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .pill-info strong {
    font-size: 14px;
  }

  .pill-cta-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .card,
  .showcase-box {
    padding: 14px;
  }

  .unified-topup-card {
    gap: 14px;
  }

  /* Khung Đăng nhập Google trên Mobile: Căn giữa gọn đẹp, cân xứng 2 bên */
  .account-inline-bar {
    padding: 14px 12px;
  }

  .inline-guest-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .inline-guest-left {
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .account-dot {
    display: none;
  }

  .google-btn-compact {
    width: 100%;
    justify-content: center;
  }

  .inline-user-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .inline-user-right {
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .topup-body-grid {
    gap: 14px;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .quick-card {
    padding: 11px 12px;
  }

  .quick-card strong {
    font-size: 15px;
  }

  .phone-showcase-wrap {
    flex-direction: column;
  }

  .phone-floating-tags {
    width: 100%;
  }

  .quiz-sim-options {
    grid-template-columns: 1fr;
  }
}
