/* ============================================================
   VPN5G FREE — PREMIUM CSS v3.0
   Mobile-first • Glassmorphism • Elegant
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #06070f;
  --bg-2: #0b0d18;

  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);

  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #f5f7fb;
  --text-2: #a8b0c4;
  --text-3: #6b7390;

  --brand: #8b5cf6;
  --brand-2: #a78bfa;
  --pink: #f472b6;
  --cyan: #22d3ee;

  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;

  --grad: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(217, 70, 239, 0.12));

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
}

html, body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.5);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.8); }
::selection { background: rgba(139, 92, 246, 0.35); color: #fff; }

/* ============================================================
   BACKGROUND
   ============================================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 45% at 90% 100%, rgba(217, 70, 239, 0.16), transparent 60%),
    linear-gradient(180deg, #0b0d18 0%, #07080f 60%, #04050a 100%);
}

.bg-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.28;
  animation: blobFloat 28s ease-in-out infinite;
}
.bg-blob-1 {
  width: 340px; height: 340px;
  background: #8b5cf6;
  top: -140px; left: -120px;
}
.bg-blob-2 {
  width: 300px; height: 300px;
  background: #d946ef;
  bottom: -120px; right: -140px;
  animation-delay: -9s;
}
.bg-blob-3 { display: none; }

@media (min-width: 768px) {
  .bg-blob-1 { width: 540px; height: 540px; filter: blur(130px); opacity: 0.35; }
  .bg-blob-2 { width: 480px; height: 480px; filter: blur(130px); opacity: 0.35; }
  .bg-blob-3 {
    display: block;
    width: 420px; height: 420px;
    background: #22d3ee;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.12;
    animation-delay: -18s;
  }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.08); }
  66% { transform: translate(-40px, 50px) scale(0.94); }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(6, 7, 15, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) { .header { padding: 14px 24px; } }

.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }

.logo-badge {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.logo-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(200%); }
}

@media (min-width: 768px) {
  .logo-badge { width: 42px; height: 42px; font-size: 22px; border-radius: 12px; }
}

.logo-text { display: flex; flex-direction: column; min-width: 0; }

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.brand-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 0.6rem;
  color: var(--text-3);
  letter-spacing: 0.9px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .brand { font-size: 1.15rem; }
  .tagline { font-size: 0.66rem; }
}

.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.server-status {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(52, 211, 153, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.24);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ok);
}

.server-status.offline {
  background: rgba(248, 113, 113, 0.09);
  border-color: rgba(248, 113, 113, 0.26);
  color: var(--err);
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.icon-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.25s;
  font-size: 18px;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-2);
}

/* ============================================================
   BANNERS
   ============================================================ */
.maintenance-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
}

.api-banner, .premium-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--grad-soft);
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .api-banner, .premium-banner { padding: 12px 20px; font-size: 0.82rem; }
}

.api-banner i, .premium-banner i {
  color: #fbbf24;
  font-size: 15px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.api-banner strong, .premium-banner strong { color: var(--brand-2); }

.hidden { display: none !important; }

/* ============================================================
   MAIN
   ============================================================ */
.main {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

@media (min-width: 768px) {
  .main { padding: 32px 24px 80px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: 16px 0 28px;
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) { .hero { padding: 24px 0 36px; } }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.28);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-2);
  margin-bottom: 16px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: dotPulse 2s infinite;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.7px;
  margin-bottom: 10px;
}

@media (min-width: 480px) { .hero-title { font-size: 2rem; } }
@media (min-width: 768px) { .hero-title { font-size: 2.6rem; letter-spacing: -1.2px; } }

.gradient {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradMove 6s ease infinite;
}

@keyframes gradMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  display: block;
  font-size: 0.62em;
  font-weight: 500;
  color: var(--text-2);
  margin-top: 6px;
  letter-spacing: 0;
}

.hero-desc {
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-desc i { color: var(--cyan); font-size: 15px; }

@media (min-width: 768px) { .hero-desc { font-size: 0.86rem; } }

/* ============================================================
   HERO ACTIONS — Nút Hướng Dẫn Sử Dụng
   ============================================================ */
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.15s;
}

.guide-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 100px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.2px;
  box-shadow:
    0 8px 24px rgba(139, 92, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  isolation: isolate;
}

.guide-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: guideShine 3.5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes guideShine {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(200%); }
}

.guide-btn .mdi {
  font-size: 19px;
  position: relative;
  z-index: 2;
}

.guide-btn .mdi:first-child {
  animation: bookWiggle 3s ease-in-out infinite;
}

@keyframes bookWiggle {
  0%, 85%, 100% { transform: rotate(0); }
  90% { transform: rotate(-12deg); }
  95% { transform: rotate(12deg); }
}

.guide-btn .mdi:last-child { transition: transform 0.3s; }
.guide-btn span { position: relative; z-index: 2; }

.guide-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 14px 34px rgba(139, 92, 246, 0.55),
    0 0 0 4px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.guide-btn:hover .mdi:last-child { transform: translateX(4px); }
.guide-btn:active { transform: translateY(-1px) scale(0.98); }

.guide-btn-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 65%);
  filter: blur(22px);
  opacity: 0.55;
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.1); }
}

/* Responsive */
@media (max-width: 420px) {
  .hero-actions { margin-top: 20px; }
  .guide-btn {
    padding: 12px 22px;
    font-size: 0.84rem;
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ============================================================
   PROGRESS BAR (ẩn mobile)
   ============================================================ */
.progress-bar { display: none; }

/* ============================================================
   STEP SECTIONS
   ============================================================ */
.step-section {
  margin-bottom: 22px;
  animation: fadeUp 0.45s ease both;
}

.section-title { margin-bottom: 14px; }

.section-title h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 3px;
}

@media (min-width: 768px) {
  .section-title h2 { font-size: 1.22rem; }
}

.section-title p { color: var(--text-3); font-size: 0.8rem; }

/* ============================================================
   COUNTRY GRID
   ============================================================ */
.country-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .country-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.country-card {
  position: relative;
  padding: 18px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: cardIn 0.4s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 480px) {
  .country-card { padding: 22px 18px; gap: 10px; border-radius: var(--r-xl); }
}

.country-card:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.18);
}

.country-card:active { transform: translateY(0) scale(0.985); }

.country-card.active {
  background: var(--grad-soft);
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.5),
    0 10px 30px rgba(139, 92, 246, 0.28);
}

.country-flag {
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.country-card:hover .country-flag { transform: scale(1.12); }

@media (min-width: 480px) { .country-flag { font-size: 2.4rem; } }

.country-name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

@media (min-width: 480px) { .country-name { font-size: 0.96rem; } }

.country-platforms { font-size: 0.7rem; color: var(--text-3); }

.country-stats {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  margin: 2px 0;
  flex-wrap: wrap;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.64rem;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
}

.stat-item i { font-size: 11px; line-height: 1; }

.stat-item.ping-good {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.24);
  color: var(--ok);
}
.stat-item.ping-medium {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.24);
  color: var(--warn);
}
.stat-item.ping-bad {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.24);
  color: var(--err);
}

/* ============================================================
   BADGES
   ============================================================ */
.country-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  white-space: nowrap;
}

.badge i { font-size: 10px; line-height: 1; }

.badge.badge-tiktok {
  background: rgba(255, 0, 80, 0.1);
  border-color: rgba(255, 0, 80, 0.28);
  color: #ff6b9d;
}
.badge.badge-tiktok i { color: #ff6b9d; }

.badge.badge-vina {
  background: rgba(0, 145, 255, 0.1);
  border-color: rgba(0, 145, 255, 0.28);
  color: #5ec2ff;
}
.badge.badge-vina i { color: #5ec2ff; }

.badge-empty {
  font-size: 0.62rem;
  color: var(--text-3);
  font-style: italic;
}

/* ============================================================
   PLATFORM GRID
   ============================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.platform-card {
  position: relative;
  padding: 22px 16px 18px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  min-height: 170px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: cardIn 0.4s ease both;
}

@media (min-width: 480px) {
  .platform-card {
    padding: 26px 18px 22px;
    min-height: 195px;
    gap: 12px;
  }
}

.platform-card:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.18);
}

.platform-card:active { transform: translateY(0) scale(0.985); }

.platform-card.active {
  background: var(--grad-soft);
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.5),
    0 10px 30px rgba(139, 92, 246, 0.28);
}

.platform-logo {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.platform-card:hover .platform-logo { transform: scale(1.08); }

@media (min-width: 480px) {
  .platform-logo { width: 62px; height: 62px; border-radius: 17px; font-size: 28px; }
}

.platform-card.tiktok .platform-logo,
.platform-card[data-platform="tiktok"] .platform-logo {
  background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
}

.platform-card.vina .platform-logo,
.platform-card[data-platform="vina"] .platform-logo,
.platform-card[data-platform="vinaphone"] .platform-logo {
  background: linear-gradient(135deg, #0091ff 0%, #00d4ff 100%);
}

.platform-name {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

@media (min-width: 480px) { .platform-name { font-size: 1rem; } }

.platform-tag {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(52, 211, 153, 0.1);
  color: var(--ok);
  border: 1px solid rgba(52, 211, 153, 0.24);
  white-space: nowrap;
}

.platform-card.tiktok .platform-tag,
.platform-card[data-platform="tiktok"] .platform-tag {
  background: rgba(251, 191, 36, 0.1);
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.24);
}

.platform-desc {
  font-size: 0.68rem;
  color: var(--text-3);
  line-height: 1.45;
  text-align: center;
  padding: 0 4px;
}

.platform-card.maintenance { opacity: 0.68; }

.platform-mt-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.56rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 100px;
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: var(--err);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

.platform-mt-badge i { font-size: 10px; }

/* ============================================================
   BACK BUTTON
   ============================================================ */
.btn-back {
  margin-top: 16px;
  padding: 9px 15px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-back:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-2);
}

.btn-back:active { transform: scale(0.97); }
.btn-back i { font-size: 16px; }

/* ============================================================
   CONFIG CARD
   ============================================================ */
.config-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeUp 0.5s ease both;
}

@media (min-width: 768px) { .config-card { padding: 24px; } }

.config-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--pink), var(--cyan), transparent);
  background-size: 200% 100%;
  animation: gradMove 4s linear infinite;
}

.config-head {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.config-icon {
  min-width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .config-icon { min-width: 46px; height: 46px; font-size: 22px; border-radius: 13px; }
}

.config-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.config-head p { font-size: 0.76rem; color: var(--text-3); }

.config-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .config-link-box { padding: 15px; gap: 13px; border-radius: 14px; }
}

.link-avatar {
  min-width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .link-avatar { min-width: 48px; height: 48px; font-size: 1.4rem; border-radius: 12px; }
}

.link-input-wrap { flex: 1; overflow: hidden; min-width: 0; }

.link-input {
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  word-break: break-all;
  line-height: 1.45;
  max-height: 3.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 3px;
}

@media (min-width: 768px) { .link-input { font-size: 0.78rem; } }

.link-meta { font-size: 0.66rem; color: var(--text-3); }

.config-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 768px) {
  .config-actions { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}

.act-btn {
  padding: 10px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.act-btn i { font-size: 17px; }

.act-btn:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--line-2);
}

.act-btn:active { transform: translateY(0) scale(0.96); }

.act-btn.primary {
  background: var(--grad);
  border: none;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.38);
}

.act-btn.primary:hover { box-shadow: 0 10px 24px rgba(139, 92, 246, 0.5); }

.act-btn.warn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.32);
}

.act-btn.info {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.32);
}

.act-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.5);
}

/* ============================================================
   GUIDE CARD
   ============================================================ */
.guide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeUp 0.6s ease both;
}

@media (min-width: 768px) { .guide-card { padding: 24px; } }

.guide-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.guide-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) { .guide-head h3 { font-size: 1.02rem; } }

.guide-head h3 i { color: var(--cyan); font-size: 19px; }

.os-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.os-tabs::-webkit-scrollbar { display: none; }

.os-tab {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.os-tab i { font-size: 15px; }

.os-tab:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-2);
}

.os-tab.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}

/* ============================================================
   APPS GRID
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .apps-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
}

.app-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
}

.app-card:hover {
  transform: translateY(-1px);
  background: var(--surface-2);
  border-color: var(--line-2);
}

.app-card:active { transform: scale(0.98); }

.app-icon-mdi {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .app-icon-mdi { width: 46px; height: 46px; font-size: 24px; }
}

.app-icon-mdi i { line-height: 1; }

.app-icon-mdi.shadowrocket { background: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%); }
.app-icon-mdi.stash { background: linear-gradient(135deg, #A78BFA 0%, #6D28D9 100%); }
.app-icon-mdi.quantumult { background: linear-gradient(135deg, #FB7185 0%, #BE123C 100%); }
.app-icon-mdi.surge { background: linear-gradient(135deg, #FB923C 0%, #EA580C 100%); }
.app-icon-mdi.loon { background: linear-gradient(135deg, #5EEAD4 0%, #0F766E 100%); }
.app-icon-mdi.happ { background: linear-gradient(135deg, #C084FC 0%, #7C3AED 100%); }
.app-icon-mdi.karing { background: linear-gradient(135deg, #F472B6 0%, #DB2777 100%); }
.app-icon-mdi.singbox { background: linear-gradient(135deg, #22D3EE 0%, #0891B2 100%); }
.app-icon-mdi.v2box { background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%); }
.app-icon-mdi.clash { background: linear-gradient(135deg, #34D399 0%, #059669 100%); }

.app-card img.app-icon-img {
  width: 42px; height: 42px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .app-card img.app-icon-img { width: 46px; height: 46px; }
}

.app-info { flex: 1; min-width: 0; }

.app-name {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-action {
  font-size: 0.68rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(217, 70, 239, 0.05)), #0d1020;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--grad);
  background-size: 200% 100%;
  animation: gradMove 3s linear infinite;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h3 i { color: var(--brand-2); font-size: 19px; }

.modal-close {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s;
}

.modal-close:hover {
  background: rgba(248, 113, 113, 0.15);
  color: var(--err);
  transform: rotate(90deg);
}

.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px;
}

#qrcode {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.qr-hint {
  font-size: 0.76rem;
  color: var(--text-3);
  text-align: center;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(13, 16, 32, 0.98);
  border: 1px solid var(--line-2);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  font-size: 0.82rem;
  max-width: calc(100vw - 32px);
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 30px 16px;
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.7;
}

.footer i { color: var(--pink); }

.footer-link {
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  padding: 5px 12px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.footer-link:hover {
  color: #fff;
  background: linear-gradient(135deg, #0066ff, #00b7ff);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 183, 255, 0.35);
}

.footer-link i { font-size: 15px; color: #00b7ff; transition: color 0.3s; }
.footer-link:hover i { color: #fff; }
.footer-sep { color: var(--text-3); margin: 0 4px; }

.icon-btn[title="Admin"] { display: none !important; }

/* ============================================================
   COUNTRY MAINTENANCE / COMING
   ============================================================ */
.country-card.country-maintenance,
.country-card.country-coming {
  opacity: 0.7;
  cursor: not-allowed;
}

.country-card.country-maintenance {
  border-color: rgba(248, 113, 113, 0.4);
  background:
    linear-gradient(145deg, rgba(248, 113, 113, 0.08), rgba(248, 113, 113, 0.02)),
    var(--surface);
}

.country-card.country-coming {
  border-color: rgba(251, 191, 36, 0.4);
  background:
    linear-gradient(145deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.02)),
    var(--surface);
}

.country-card.country-maintenance:hover,
.country-card.country-coming:hover {
  transform: none;
  box-shadow: none;
}

.country-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.country-status-badge i { font-size: 10px; }

.mt-badge {
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: var(--err);
}

.coming-badge {
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: var(--warn);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 360px) {
  .hero-title { font-size: 1.4rem; }
  .brand { font-size: 0.95rem; }
  .tagline { display: none; }
  .server-status { padding: 4px 8px; font-size: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ============================================================
   LIGHT THEME — Giao diện Sáng
   Kích hoạt khi <html data-theme="light">
   ============================================================ */

:root[data-theme="light"] {
  --bg: #f5f5f7;
  --glass: rgba(0, 0, 0, 0.03);
  --glass-2: rgba(0, 0, 0, 0.06);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.18);
  --text: #1a1a2e;
  --text-dim: #6b6b80;
  --text-dimmer: #a0a0b8;
}

/* Body background — gradient sáng nhẹ */
:root[data-theme="light"] body {
  background: #f5f5f7;
  color: #1a1a2e;
}

/* BG layer — đổi gradient cho sáng */
:root[data-theme="light"] .bg-layer {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(124, 58, 237, 0.15), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(236, 72, 153, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(6, 214, 214, 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 50%, #eeeef2 100%);
}

:root[data-theme="light"] .bg-blob {
  opacity: 0.15;
}

/* Header */
:root[data-theme="light"] .header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 247, 0.85));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Logo */
:root[data-theme="light"] .brand {
  color: #1a1a2e;
}
:root[data-theme="light"] .tagline {
  color: #6b6b80;
}

/* Server status */
:root[data-theme="light"] .server-status {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}
:root[data-theme="light"] .server-status.offline {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Icon button */
:root[data-theme="light"] .icon-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #6b6b80;
}
:root[data-theme="light"] .icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a2e;
}

/* Hero */
:root[data-theme="light"] .hero-title {
  color: #1a1a2e;
}
:root[data-theme="light"] .hero-sub {
  color: #6b6b80;
}
:root[data-theme="light"] .hero-desc {
  color: #6b6b80;
}
:root[data-theme="light"] .hero-pill {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.25);
  color: #7c3aed;
}

/* Guide button */
:root[data-theme="light"] .guide-btn {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.08));
  border-color: rgba(124, 58, 237, 0.25);
  color: #7c3aed;
}
:root[data-theme="light"] .guide-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
}

/* Section title */
:root[data-theme="light"] .section-title h2 {
  color: #1a1a2e;
}
:root[data-theme="light"] .section-title p {
  color: #6b6b80;
}

/* Country card */
:root[data-theme="light"] .country-card {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.04), rgba(236, 72, 153, 0.02)),
    #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
:root[data-theme="light"] .country-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.12);
}
:root[data-theme="light"] .country-card.active {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.06)),
    #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.4), 0 8px 30px rgba(124, 58, 237, 0.15);
}
:root[data-theme="light"] .country-name {
  color: #1a1a2e;
}

/* Stats */
:root[data-theme="light"] .stat-item {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #6b6b80;
}

/* Badge */
:root[data-theme="light"] .badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Platform card */
:root[data-theme="light"] .platform-card {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.03), rgba(236, 72, 153, 0.02)),
    #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
:root[data-theme="light"] .platform-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.12);
}
:root[data-theme="light"] .platform-card.active {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.06)),
    #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.4), 0 8px 30px rgba(124, 58, 237, 0.15);
}
:root[data-theme="light"] .platform-name {
  color: #1a1a2e;
}

/* Back button */
:root[data-theme="light"] .btn-back {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #6b6b80;
}
:root[data-theme="light"] .btn-back:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a2e;
}

/* Config card */
:root[data-theme="light"] .config-card {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.04), rgba(236, 72, 153, 0.02)),
    #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
:root[data-theme="light"] .config-head h3 {
  color: #1a1a2e;
}
:root[data-theme="light"] .config-head p {
  color: #6b6b80;
}

/* Config link box */
:root[data-theme="light"] .config-link-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}
:root[data-theme="light"] .link-avatar {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
}
:root[data-theme="light"] .link-input {
  color: #0891b2;
}
:root[data-theme="light"] .link-meta {
  color: #6b6b80;
}

/* Act buttons */
:root[data-theme="light"] .act-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
}
:root[data-theme="light"] .act-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}
:root[data-theme="light"] .act-btn.primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
}
:root[data-theme="light"] .act-btn.warn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}
:root[data-theme="light"] .act-btn.info {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
}

/* Guide card */
:root[data-theme="light"] .guide-card {
  background:
    linear-gradient(145deg, rgba(6, 214, 214, 0.03), rgba(124, 58, 237, 0.03)),
    #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
:root[data-theme="light"] .guide-head h3 {
  color: #1a1a2e;
}

/* OS tabs */
:root[data-theme="light"] .os-tab {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #6b6b80;
}
:root[data-theme="light"] .os-tab:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a2e;
}
:root[data-theme="light"] .os-tab.active {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
}

/* App card */
:root[data-theme="light"] .app-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
}
:root[data-theme="light"] .app-card:hover {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.3);
}
:root[data-theme="light"] .app-name {
  color: #1a1a2e;
}
:root[data-theme="light"] .app-action {
  color: #6b6b80;
}

/* Modal */
:root[data-theme="light"] .modal {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}
:root[data-theme="light"] .modal-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
:root[data-theme="light"] .modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
:root[data-theme="light"] .modal-header h3 {
  color: #1a1a2e;
}
:root[data-theme="light"] .modal-close {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #6b6b80;
}
:root[data-theme="light"] .qr-hint {
  color: #6b6b80;
}

/* Toast */
:root[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Footer */
:root[data-theme="light"] .footer {
  color: #6b6b80;
}
:root[data-theme="light"] .footer-link {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
}

/* Premium banner */
:root[data-theme="light"] .premium-banner {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
  border-bottom-color: rgba(124, 58, 237, 0.15);
  color: #1a1a2e;
}
:root[data-theme="light"] .premium-banner strong {
  color: #7c3aed;
}

/* Country status badge */
:root[data-theme="light"] .country-card.country-maintenance {
  background:
    linear-gradient(145deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.02)),
    #ffffff;
}
:root[data-theme="light"] .country-card.country-coming {
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.02)),
    #ffffff;
}

/* Smooth transition khi đổi theme */
html, body, .header, .country-card, .platform-card, .config-card, .guide-card,
.app-card, .modal-content, .toast, .os-tab, .act-btn, .icon-btn {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* ============================================================
   FIX HEADER CHO LIGHT THEME
   ============================================================ */
:root[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Đảm bảo brand + tagline đổi màu */
:root[data-theme="light"] .brand {
  color: #1a1a2e;
}
:root[data-theme="light"] .brand-accent {
  color: #0891b2;
}
:root[data-theme="light"] .tagline {
  color: #6b6b80;
}

/* Nút icon trong header */
:root[data-theme="light"] .icon-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #6b6b80;
}
:root[data-theme="light"] .icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a2e;
}

/* Logo badge — giữ gradient tím/hồng nhưng nhẹ hơn */
:root[data-theme="light"] .logo-badge {
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}
/* ============================================================
   LIGHT THEME — Override toàn diện
   ============================================================ */

/* Hero */
:root[data-theme="light"] .hero-title {
  color: #1a1a2e;
}
:root[data-theme="light"] .hero-sub {
  color: #6b6b80;
}
:root[data-theme="light"] .hero-desc {
  color: #6b6b80;
}
:root[data-theme="light"] .hero-pill {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
}

/* Section title */
:root[data-theme="light"] .section-title h2 {
  color: #1a1a2e;
}
:root[data-theme="light"] .section-title p {
  color: #6b6b80;
}

/* Country card */
:root[data-theme="light"] .country-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
:root[data-theme="light"] .country-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.12);
}
:root[data-theme="light"] .country-card.active {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.05)),
              #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.4), 0 8px 30px rgba(124, 58, 237, 0.15);
}
:root[data-theme="light"] .country-name {
  color: #1a1a2e;
}
:root[data-theme="light"] .country-flag {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

/* Stat item */
:root[data-theme="light"] .stat-item {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
  color: #6b6b80;
}

/* Badge */
:root[data-theme="light"] .badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #6b6b80;
}

/* Platform card */
:root[data-theme="light"] .platform-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
:root[data-theme="light"] .platform-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.12);
}
:root[data-theme="light"] .platform-card.active {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.05)),
              #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.4), 0 8px 30px rgba(124, 58, 237, 0.15);
}
:root[data-theme="light"] .platform-name {
  color: #1a1a2e;
}
:root[data-theme="light"] .platform-desc {
  color: #6b6b80;
}

/* Config card */
:root[data-theme="light"] .config-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
:root[data-theme="light"] .config-head h3 {
  color: #1a1a2e;
}
:root[data-theme="light"] .config-head p {
  color: #6b6b80;
}
:root[data-theme="light"] .config-link-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}
:root[data-theme="light"] .link-avatar {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
}
:root[data-theme="light"] .link-input {
  color: #0891b2;
}
:root[data-theme="light"] .link-meta {
  color: #6b6b80;
}

/* Act buttons */
:root[data-theme="light"] .act-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
}
:root[data-theme="light"] .act-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}
:root[data-theme="light"] .act-btn.primary,
:root[data-theme="light"] .act-btn.warn,
:root[data-theme="light"] .act-btn.info {
  color: #fff;
}

/* Guide card */
:root[data-theme="light"] .guide-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
:root[data-theme="light"] .guide-head h3 {
  color: #1a1a2e;
}

/* OS tabs */
:root[data-theme="light"] .os-tab {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #6b6b80;
}
:root[data-theme="light"] .os-tab:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a2e;
}
:root[data-theme="light"] .os-tab.active {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
}

/* App card */
:root[data-theme="light"] .app-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
}
:root[data-theme="light"] .app-card:hover {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.3);
}
:root[data-theme="light"] .app-name {
  color: #1a1a2e;
}
:root[data-theme="light"] .app-action {
  color: #6b6b80;
}

/* Back button */
:root[data-theme="light"] .btn-back {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #6b6b80;
}
:root[data-theme="light"] .btn-back:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a2e;
}

/* Footer */
:root[data-theme="light"] .footer {
  color: #6b6b80;
}
:root[data-theme="light"] .footer-link {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
}

/* Premium banner */
:root[data-theme="light"] .premium-banner {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
  border-bottom-color: rgba(124, 58, 237, 0.15);
  color: #1a1a2e;
}
:root[data-theme="light"] .premium-banner strong {
  color: #7c3aed;
}

/* Country status badge (bảo trì / sắp ra mắt) */
:root[data-theme="light"] .country-card.country-maintenance {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.02)),
              #ffffff;
}
:root[data-theme="light"] .country-card.country-coming {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.02)),
              #ffffff;
}

/* Modal QR */
:root[data-theme="light"] .modal {
  background: rgba(0, 0, 0, 0.4);
}
:root[data-theme="light"] .modal-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
:root[data-theme="light"] .modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
:root[data-theme="light"] .modal-header h3 {
  color: #1a1a2e;
}
:root[data-theme="light"] .modal-close {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #6b6b80;
}
:root[data-theme="light"] .modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
:root[data-theme="light"] .qr-hint {
  color: #6b6b80;
}

/* Toast */
:root[data-theme="light"] .toast {
  background: #1a1a2e;
  color: #ffffff;
}
/* ============================================================
   DISCLAIMER BOX
   ============================================================ */
.disclaimer-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  margin: 32px 0 16px;
  background: linear-gradient(145deg,
              rgba(124, 58, 237, 0.06),
              rgba(6, 214, 214, 0.03));
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.disclaimer-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #7c3aed, #ec4899, #06d6d6);
  border-radius: 3px 0 0 3px;
}
.disclaimer-icon {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 214, 214, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #a78bfa;
  flex-shrink: 0;
}
.disclaimer-content { flex: 1; min-width: 0; }
.disclaimer-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}
.disclaimer-content p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Light theme */
:root[data-theme="light"] .disclaimer-box {
  background: linear-gradient(145deg,
              rgba(124, 58, 237, 0.05),
              rgba(6, 214, 214, 0.02)),
              #ffffff;
  border-color: rgba(124, 58, 237, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
:root[data-theme="light"] .disclaimer-icon {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(6, 214, 214, 0.08));
  border-color: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
}
:root[data-theme="light"] .disclaimer-content h4 { color: #1a1a2e; }
:root[data-theme="light"] .disclaimer-content p { color: #6b6b80; }

/* ============================================================
   WARNING BOX
   ============================================================ */
.warning-box {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  margin: 0 0 20px;
  background: linear-gradient(145deg,
              rgba(239, 68, 68, 0.06),
              rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.warning-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ef4444, #f59e0b);
  border-radius: 3px 0 0 3px;
}
.warning-icon {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #f87171;
  flex-shrink: 0;
}
.warning-content { flex: 1; min-width: 0; }

/* Phiên bản gọn 1 dòng */
.warning-box-mini {
  padding: 14px 18px;
  align-items: center;
}
.warning-box-mini .warning-icon {
  min-width: 40px;
  height: 40px;
  font-size: 20px;
}
.warning-single {
  font-size: 0.85rem !important;
  color: var(--text-dim) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}
.warning-single strong {
  color: #f87171;
  font-weight: 700;
}

/* Light theme */
:root[data-theme="light"] .warning-box {
  background: linear-gradient(145deg,
              rgba(239, 68, 68, 0.05),
              rgba(245, 158, 11, 0.03)),
              #ffffff;
  border-color: rgba(239, 68, 68, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
:root[data-theme="light"] .warning-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.08));
  border-color: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}
:root[data-theme="light"] .warning-single strong { color: #dc2626; }

/* Mobile */
@media (max-width: 480px) {
  .disclaimer-box,
  .warning-box {
    padding: 14px 16px;
    gap: 12px;
    margin: 20px 0 12px;
  }
  .disclaimer-icon,
  .warning-icon {
    min-width: 38px;
    height: 38px;
    font-size: 20px;
    border-radius: 10px;
  }
  .disclaimer-content h4 {
    font-size: 0.88rem;
  }
  .disclaimer-content p,
  .warning-single {
    font-size: 0.76rem !important;
  }
  .warning-box-mini {
    padding: 12px 14px;
  }
  .warning-box-mini .warning-icon {
    min-width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

/* ============================================================
   FIX THEME TOGGLE MOBILE
   ============================================================ */
.theme-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 10;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle i {
  font-size: 20px;
  pointer-events: none;
  line-height: 1;
}
.theme-toggle:active {
  transform: scale(0.92);
}
/* Nâng cấp disclaimer-box */
.disclaimer-box {
  background: linear-gradient(145deg,
              rgba(124, 58, 237, 0.1),
              rgba(6, 214, 214, 0.05));
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
}
.disclaimer-box:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
  transform: translateY(-2px);
}
.disclaimer-content h4 {
  font-size: 1rem;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.disclaimer-content p {
  font-size: 0.85rem;
  line-height: 1.55;
}
.disclaimer-content strong {
  color: #06d6d6;
  font-weight: 700;
}

:root[data-theme="light"] .disclaimer-content strong {
  color: #7c3aed;
}
/* ============================================================
   DEVTOOLS WARNING OVERLAY
   ============================================================ */
#devtoolsWarning {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: dtwFadeIn 0.3s ease;
}

@keyframes dtwFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dtw-card {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(145deg,
              rgba(239, 68, 68, 0.12),
              rgba(245, 158, 11, 0.06)),
              rgba(20, 26, 45, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 24px;
  padding: 40px 28px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: dtwScaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.2);
}

@keyframes dtwScaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dtw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #ef4444);
  background-size: 200% 100%;
  animation: dtwGradientMove 2s linear infinite;
}

@keyframes dtwGradientMove {
  to { background-position: -200% 0; }
}

.dtw-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
  animation: dtwPulse 1.5s ease-in-out infinite;
}

@keyframes dtwPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.7);
  }
}

.dtw-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.dtw-message {
  font-size: 0.92rem;
  color: #a0a0b8;
  line-height: 1.6;
  margin-bottom: 28px;
}

.dtw-message strong {
  color: #f87171;
  font-weight: 700;
}

.dtw-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.dtw-countdown-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 3px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dtw-countdown-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #ef4444;
  animation: dtwSpin 1s linear infinite;
}

@keyframes dtwSpin {
  to { transform: rotate(360deg); }
}

#dtwCountdown {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #f87171;
}

.dtw-countdown-text {
  font-size: 0.82rem;
  color: #8b93a7;
  font-style: italic;
}

.dtw-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.dtw-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.dtw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.5);
}

.dtw-btn i {
  font-size: 18px;
}

/* ============================================================
   CHỐNG F12 / SOURCE
   ============================================================ */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Mobile — overlay nhỏ hơn */
@media (max-width: 480px) {
  .dtw-card { padding: 32px 22px 26px; }
  .dtw-icon { width: 72px; height: 72px; font-size: 36px; }
  .dtw-title { font-size: 1.2rem; }
  .dtw-message { font-size: 0.85rem; }
  .dtw-countdown-ring { width: 64px; height: 64px; }
  #dtwCountdown { font-size: 1.5rem; }
}
/* ============================================================
   TOAST CẢNH BÁO CHUỘT PHẢI / F12
   ============================================================ */
#warnToast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1a1533, #141a2d);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-left: 4px solid #ef4444;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.25),
              0 0 0 1px rgba(239, 68, 68, 0.1);
  z-index: 99999999;
  animation: wtSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  max-width: calc(100vw - 40px);
  width: auto;
}

@keyframes wtSlideIn {
  from {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes wtSlideOut {
  from {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
  }
}

.wt-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  animation: wtPulse 1.5s ease-in-out infinite;
}

@keyframes wtPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.wt-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wt-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f87171;
  letter-spacing: -0.2px;
  text-transform: uppercase;
}

.wt-message {
  font-size: 0.85rem;
  color: #e5e7eb;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile */
@media (max-width: 480px) {
  #warnToast {
    top: 10px;
    padding: 12px 16px;
    gap: 10px;
  }
  .wt-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 18px;
  }
  .wt-title { font-size: 0.72rem; }
  .wt-message { font-size: 0.78rem; white-space: normal; }
}

/* Light theme */
:root[data-theme="light"] #warnToast {
  background: #ffffff;
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2);
}
:root[data-theme="light"] .wt-message {
  color: #1a1a2e;
}
/* ============================================================
   SECURITY WARNING OVERLAY
   ============================================================ */
#securityWarning {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  background: rgba(5, 7, 15, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: swFadeIn 0.3s ease;
  overflow-y: auto;
}

@keyframes swFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sw-card {
  max-width: 560px;
  width: 100%;
  background: linear-gradient(145deg,
              rgba(239, 68, 68, 0.15),
              rgba(245, 158, 11, 0.08)),
              rgba(20, 26, 45, 0.98);
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 28px;
  padding: 48px 36px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(239, 68, 68, 0.3),
    0 0 0 1px rgba(239, 68, 68, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: swCardIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes swCardIn {
  from {
    transform: scale(0.85) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.sw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #ef4444);
  background-size: 200% 100%;
  animation: swGradientMove 2s linear infinite;
}

@keyframes swGradientMove {
  to { background-position: -200% 0; }
}

/* Icon */
.sw-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: #fff;
  box-shadow:
    0 15px 40px rgba(239, 68, 68, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  animation: swIconPulse 1.5s ease-in-out infinite;
}

@keyframes swIconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 20px 55px rgba(239, 68, 68, 0.75);
  }
}

/* Title */
.sw-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #f87171;
  margin-bottom: 16px;
  letter-spacing: -0.6px;
  text-transform: uppercase;
}

/* Message */
.sw-message {
  font-size: 1rem;
  color: #e5e7eb;
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 0 8px;
}

.sw-message strong {
  color: #fbbf24;
  font-weight: 700;
}

/* Info box */
.sw-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  color: #fca5a5;
  margin-bottom: 28px;
}

.sw-info i {
  font-size: 18px;
  color: #f87171;
}

/* Countdown */
.sw-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.sw-ring {
  width: 110px;
  height: 110px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.sw-ring-bg {
  fill: none;
  stroke: rgba(239, 68, 68, 0.15);
  stroke-width: 6;
}

.sw-ring-fill {
  fill: none;
  stroke: #ef4444;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8));
}

@keyframes swRingProgress {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 283; }
}

.sw-countdown-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #f87171;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.sw-countdown-text {
  font-size: 0.88rem;
  color: #a0a0b8;
}

.sw-countdown-text strong {
  color: #f87171;
  font-weight: 800;
  font-size: 1.1em;
}

/* Actions */
.sw-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.sw-btn {
  padding: 14px 32px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sw-btn-primary {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
}

.sw-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(239, 68, 68, 0.6);
}

.sw-btn-primary:active {
  transform: translateY(0);
}

.sw-btn i {
  font-size: 20px;
}

/* Mobile */
@media (max-width: 540px) {
  .sw-card {
    padding: 36px 24px 28px;
    border-radius: 22px;
  }
  .sw-icon {
    width: 80px;
    height: 80px;
    font-size: 42px;
    margin-bottom: 22px;
  }
  .sw-title {
    font-size: 1.35rem;
  }
  .sw-message {
    font-size: 0.9rem;
  }
  .sw-info {
    font-size: 0.75rem;
    padding: 8px 14px;
  }
  .sw-ring {
    width: 90px;
    height: 90px;
  }
  .sw-countdown-number {
    font-size: 2rem;
  }
  .sw-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
    width: 100%;
  }
}

/* Light theme */
:root[data-theme="light"] #securityWarning {
  background: rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .sw-card {
  background: linear-gradient(145deg,
              rgba(239, 68, 68, 0.08),
              rgba(245, 158, 11, 0.04)),
              #ffffff;
  box-shadow:
    0 30px 80px rgba(239, 68, 68, 0.2),
    0 0 0 1px rgba(239, 68, 68, 0.15);
}

:root[data-theme="light"] .sw-message {
  color: #1a1a2e;
}

:root[data-theme="light"] .sw-countdown-text {
  color: #6b6b80;
}
/* ===== META TRÊN CARD GÓI (BƯỚC 2) ===== */
.platform-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.75rem;
  color: #c5c5d8;
  flex-wrap: wrap;
}

.platform-meta .pm-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.platform-meta .pm-item i {
  font-size: 0.85rem;
  opacity: 0.75;
}

.platform-meta .pm-sep {
  color: #666;
  font-size: 0.7rem;
}

/* ===== BREADCRUMB Ở BƯỚC 3 ===== */
.selection-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  font-size: 0.82rem;
  color: #c8c8dd;
}

.selection-breadcrumb .bc-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.selection-breadcrumb .bc-item i {
  font-size: 0.95rem;
  color: #a78bfa;
}

.selection-breadcrumb .bc-item strong {
  color: #fff;
  font-weight: 600;
}

.selection-breadcrumb .bc-sep {
  color: #6b7280;
  font-size: 1rem;
  font-weight: 300;
}

/* Light theme */
[data-theme="light"] .platform-meta {
  background: rgba(0, 0, 0, 0.05);
  color: #4b5563;
}

[data-theme="light"] .selection-breadcrumb {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
  color: #374151;
}

[data-theme="light"] .selection-breadcrumb .bc-item strong {
  color: #111827;
}

/* Mobile */
@media (max-width: 480px) {
  .platform-meta {
    font-size: 0.7rem;
    padding: 5px 8px;
  }
  .selection-breadcrumb {
    font-size: 0.72rem;
    padding: 8px 10px;
    gap: 5px;
  }
}
/* ============================================================
   SECURITY WARNING — REDESIGN v2
   Gọn gàng • Hiện đại • Có điểm nhấn
   ============================================================ */

#securityWarning {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 7, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: swFadeIn 0.3s ease;
  overflow-y: auto;
}

@keyframes swFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============ CARD ============ */
.sw-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 30px 26px 22px;
  background: linear-gradient(180deg, #14162b 0%, #0d0f1e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(239, 68, 68, 0.12);
  text-align: center;
  animation: swSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

@keyframes swSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Vệt sáng đỏ trên đỉnh card */
.sw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
}

/* ============ HEADER ============ */
.sw-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border-radius: 18px;
  box-shadow:
    0 8px 24px rgba(239, 68, 68, 0.4),
    0 0 0 8px rgba(239, 68, 68, 0.06);
  animation: swIconPulse 2s ease-in-out infinite;
}

@keyframes swIconPulse {
  0%, 100% {
    box-shadow:
      0 8px 24px rgba(239, 68, 68, 0.4),
      0 0 0 8px rgba(239, 68, 68, 0.06);
  }
  50% {
    box-shadow:
      0 8px 32px rgba(239, 68, 68, 0.6),
      0 0 0 12px rgba(239, 68, 68, 0.04);
  }
}

.sw-icon i {
  font-size: 1.9rem;
  color: #fff;
}

.sw-title {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ef4444, #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sw-message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
  font-weight: 500;
}

.sw-message strong {
  color: #fbbf24;
  font-weight: 700;
}

/* ============ BODY ============ */
.sw-body {
  margin: 18px 0 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.sw-text {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #94a3b8;
}

.sw-text strong {
  color: #e2e8f0;
  font-weight: 700;
}

/* Badge ban IP — điểm nhấn chính */
.sw-ban-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border-radius: 999px;
  box-shadow:
    0 4px 16px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  animation: swBanPulse 1.8s ease-in-out infinite;
}

@keyframes swBanPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 4px 16px rgba(239, 68, 68, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  50% {
    transform: scale(1.03);
    box-shadow:
      0 6px 24px rgba(239, 68, 68, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

.sw-ban-pill i {
  font-size: 1.05rem;
  color: #fecaca;
}

.sw-ban-pill strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ============ COUNTDOWN ============ */
.sw-countdown {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sw-ring {
  position: relative;
  width: 90px;
  height: 90px;
}

.sw-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.sw-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.sw-ring-fill {
  fill: none;
  stroke: #ef4444;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.8));
}

@keyframes swRingProgress {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: 283; }
}

.sw-countdown-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.sw-countdown-text {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.sw-countdown-text strong {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.95em;
}

/* ============ BUTTON ============ */
.sw-btn {
  width: 100%;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
  transition: all 0.2s ease;
}

.sw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.5);
}

.sw-btn:active {
  transform: translateY(0);
}

.sw-btn i {
  font-size: 1.1rem;
}

/* ============ CREDIT ============ */
.sw-credit {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.3px;
}

.sw-credit strong {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.sw-credit-sep {
  color: #475569;
}

/* ============ LIGHT THEME ============ */
:root[data-theme="light"] #securityWarning {
  background: rgba(245, 245, 247, 0.85);
}

:root[data-theme="light"] .sw-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.15);
}

:root[data-theme="light"] .sw-message {
  color: #475569;
}

:root[data-theme="light"] .sw-body {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.1);
}

:root[data-theme="light"] .sw-text {
  color: #64748b;
}

:root[data-theme="light"] .sw-text strong {
  color: #1e293b;
}

:root[data-theme="light"] .sw-countdown-text {
  color: #64748b;
}

:root[data-theme="light"] .sw-countdown-number {
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

:root[data-theme="light"] .sw-ring-bg {
  stroke: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .sw-credit {
  border-top-color: rgba(0, 0, 0, 0.06);
  color: #94a3b8;
}

:root[data-theme="light"] .sw-credit-sep {
  color: #cbd5e1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 420px) {
  .sw-card {
    padding: 24px 20px 18px;
    border-radius: 20px;
  }
  .sw-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
  .sw-icon i {
    font-size: 1.7rem;
  }
  .sw-title {
    font-size: 1.15rem;
  }
  .sw-message {
    font-size: 0.85rem;
  }
  .sw-ban-pill {
    font-size: 0.72rem;
    padding: 8px 14px;
  }
  .sw-ring {
    width: 80px;
    height: 80px;
  }
  .sw-countdown-number {
    font-size: 1.75rem;
  }
}
/* ============================================================
   SECURITY WARNING — CYBER FORCE EDITION
   Mạnh mẽ • Nguy hiểm • Có sức ép
   ============================================================ */

#securityWarning {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at center, rgba(239, 68, 68, 0.15), transparent 70%),
    rgba(5, 2, 8, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: swFadeIn 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scanline đỏ chạy qua toàn màn hình */
#securityWarning::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(239, 68, 68, 0.04) 3px,
    transparent 4px
  );
  pointer-events: none;
  animation: swScanline 8s linear infinite;
  z-index: 1;
}

@keyframes swScanline {
  from { background-position: 0 0; }
  to   { background-position: 0 100px; }
}

@keyframes swFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============ CARD ============ */
.sw-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 34px 28px 24px;
  background:
    linear-gradient(180deg, #1a0a14 0%, #0d0812 50%, #0a0610 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.1),
    0 0 40px rgba(239, 68, 68, 0.35),
    0 0 100px rgba(239, 68, 68, 0.15),
    0 25px 70px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  animation: swCardIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

@keyframes swCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Vệt sáng đỏ trên đỉnh */
.sw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent,
    #ef4444 20%,
    #f87171 50%,
    #ef4444 80%,
    transparent);
  background-size: 200% 100%;
  animation: swTopGlow 3s linear infinite;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
}

@keyframes swTopGlow {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

/* Góc trang trí 4 góc */
.sw-card::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.5) 0%, transparent 12%) top left,
    linear-gradient(225deg, rgba(239, 68, 68, 0.5) 0%, transparent 12%) top right,
    linear-gradient(45deg, rgba(239, 68, 68, 0.5) 0%, transparent 12%) bottom left,
    linear-gradient(315deg, rgba(239, 68, 68, 0.5) 0%, transparent 12%) bottom right;
  background-repeat: no-repeat;
  background-size: 40px 40px;
  opacity: 0.6;
}

/* ============ ICON ============ */
.sw-icon {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444 0%, #7f1d1d 100%);
  border-radius: 20px;
  box-shadow:
    0 12px 32px rgba(239, 68, 68, 0.6),
    0 0 60px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 8px rgba(0, 0, 0, 0.3);
  animation: swIconShake 4s ease-in-out infinite;
}

@keyframes swIconShake {
  0%, 88%, 100% { transform: rotate(0deg) scale(1); }
  90% { transform: rotate(-6deg) scale(1.05); }
  92% { transform: rotate(6deg) scale(1.05); }
  94% { transform: rotate(-4deg) scale(1.03); }
  96% { transform: rotate(4deg) scale(1.03); }
}

/* Vòng xoáy radar quanh icon */
.sw-icon::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 26px;
  border: 2px solid transparent;
  border-top-color: rgba(239, 68, 68, 0.7);
  border-right-color: rgba(239, 68, 68, 0.3);
  animation: swRadarSpin 3s linear infinite;
}

.sw-icon::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 32px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  animation: swRadarPulse 2.5s ease-out infinite;
}

@keyframes swRadarSpin {
  to { transform: rotate(360deg); }
}

@keyframes swRadarPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.sw-icon i {
  font-size: 2.2rem;
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
  z-index: 1;
}

/* ============ TITLE ============ */
.sw-title {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fca5a5;
  text-shadow:
    0 0 10px rgba(239, 68, 68, 0.8),
    0 0 30px rgba(239, 68, 68, 0.5),
    0 2px 0 rgba(127, 29, 29, 0.6);
  animation: swTitleGlitch 3s ease-in-out infinite;
  position: relative;
}

@keyframes swTitleGlitch {
  0%, 92%, 100% {
    transform: translate(0, 0);
    text-shadow:
      0 0 10px rgba(239, 68, 68, 0.8),
      0 0 30px rgba(239, 68, 68, 0.5),
      0 2px 0 rgba(127, 29, 29, 0.6);
  }
  93% {
    transform: translate(-2px, 1px);
    text-shadow:
      -2px 0 0 #f87171,
      2px 0 0 #22d3ee,
      0 0 20px rgba(239, 68, 68, 0.9);
  }
  95% {
    transform: translate(2px, -1px);
    text-shadow:
      2px 0 0 #f87171,
      -2px 0 0 #22d3ee,
      0 0 20px rgba(239, 68, 68, 0.9);
  }
  97% {
    transform: translate(-1px, 0);
    text-shadow:
      0 0 10px rgba(239, 68, 68, 0.8),
      0 0 30px rgba(239, 68, 68, 0.5);
  }
}

/* Đường kẻ dưới title */
.sw-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
}

.sw-message {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #d1d5db;
  font-weight: 500;
}

.sw-message strong {
  color: #fbbf24;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

/* ============ BODY ============ */
.sw-body {
  margin: 0 0 20px;
  padding: 16px;
  background: linear-gradient(135deg,
    rgba(239, 68, 68, 0.08),
    rgba(127, 29, 29, 0.04));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 14px;
  position: relative;
}

.sw-text {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.sw-text strong {
  color: #fca5a5;
  font-weight: 700;
}

/* Badge ban IP — nổi bật, có shake */
.sw-ban-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  box-shadow:
    0 0 20px rgba(239, 68, 68, 0.6),
    0 0 40px rgba(239, 68, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 6px rgba(0, 0, 0, 0.3);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: swBanShake 2.5s ease-in-out infinite;
}

@keyframes swBanShake {
  0%, 85%, 100% {
    transform: translate(0, 0) scale(1);
    box-shadow:
      0 0 20px rgba(239, 68, 68, 0.6),
      0 0 40px rgba(239, 68, 68, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  87% {
    transform: translate(-2px, 0) scale(1.04);
    box-shadow:
      0 0 30px rgba(239, 68, 68, 0.9),
      0 0 60px rgba(239, 68, 68, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  89% {
    transform: translate(2px, 0) scale(1.04);
    box-shadow:
      0 0 30px rgba(239, 68, 68, 0.9),
      0 0 60px rgba(239, 68, 68, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  91% {
    transform: translate(-1px, 0) scale(1.02);
  }
  93% {
    transform: translate(0, 0) scale(1);
  }
}

.sw-ban-pill i {
  font-size: 1.15rem;
  color: #fecaca;
  animation: swBanIconPulse 1.2s ease-in-out infinite;
}

@keyframes swBanIconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.2); opacity: 0.7; }
}

.sw-ban-pill strong {
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* ============ COUNTDOWN ============ */
.sw-countdown {
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sw-ring {
  position: relative;
  width: 100px;
  height: 100px;
}

.sw-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15), transparent 70%);
  animation: swRadarPulse 2s ease-out infinite;
}

.sw-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  position: relative;
  z-index: 1;
}

.sw-ring-bg {
  fill: none;
  stroke: rgba(239, 68, 68, 0.12);
  stroke-width: 6;
}

.sw-ring-fill {
  fill: none;
  stroke: url(#swRingGradient);
  stroke: #ef4444;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  filter:
    drop-shadow(0 0 8px rgba(239, 68, 68, 0.9))
    drop-shadow(0 0 16px rgba(239, 68, 68, 0.6));
}

@keyframes swRingProgress {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: 283; }
}

.sw-countdown-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  text-shadow:
    0 0 12px rgba(239, 68, 68, 1),
    0 0 30px rgba(239, 68, 68, 0.7),
    0 0 50px rgba(239, 68, 68, 0.4);
  z-index: 2;
  animation: swNumberPulse 1s ease-in-out infinite;
}

@keyframes swNumberPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.08); }
}

.sw-countdown-text {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.sw-countdown-text strong {
  color: #ef4444;
  font-weight: 800;
  font-size: 1em;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* ============ BUTTON ============ */
.sw-btn {
  position: relative;
  width: 100%;
  padding: 15px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow:
    0 0 20px rgba(239, 68, 68, 0.5),
    0 8px 24px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -3px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  overflow: hidden;
}

.sw-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%);
  transform: translateX(-100%);
  animation: swBtnShine 3s ease-in-out infinite;
}

@keyframes swBtnShine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(200%); }
}

.sw-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 30px rgba(239, 68, 68, 0.8),
    0 12px 32px rgba(239, 68, 68, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sw-btn:active {
  transform: translateY(0) scale(0.98);
}

.sw-btn i {
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}

.sw-btn span,
.sw-btn {
  position: relative;
  z-index: 1;
}

/* ============ CREDIT ============ */
.sw-credit {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(239, 68, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.74rem;
  color: #64748b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.sw-credit strong {
  background: linear-gradient(135deg, #f87171, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.sw-credit-sep {
  color: #ef4444;
  font-weight: 800;
}

/* ============ LIGHT THEME ============ */
:root[data-theme="light"] #securityWarning {
  background:
    radial-gradient(ellipse at center, rgba(239, 68, 68, 0.1), transparent 70%),
    rgba(250, 245, 245, 0.94);
}

:root[data-theme="light"] #securityWarning::before {
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(239, 68, 68, 0.05) 3px,
    transparent 4px
  );
}

:root[data-theme="light"] .sw-card {
  background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.1),
    0 0 40px rgba(239, 68, 68, 0.2),
    0 25px 70px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

:root[data-theme="light"] .sw-title {
  color: #b91c1c;
  text-shadow:
    0 0 10px rgba(239, 68, 68, 0.4),
    0 0 30px rgba(239, 68, 68, 0.2),
    0 2px 0 rgba(239, 68, 68, 0.15);
}

:root[data-theme="light"] .sw-message {
  color: #475569;
}

:root[data-theme="light"] .sw-body {
  background: linear-gradient(135deg,
    rgba(239, 68, 68, 0.06),
    rgba(239, 68, 68, 0.02));
  border-color: rgba(239, 68, 68, 0.15);
}

:root[data-theme="light"] .sw-text {
  color: #64748b;
}

:root[data-theme="light"] .sw-text strong {
  color: #991b1b;
}

:root[data-theme="light"] .sw-ring-bg {
  stroke: rgba(239, 68, 68, 0.12);
}

:root[data-theme="light"] .sw-countdown-number {
  color: #b91c1c;
  text-shadow:
    0 0 12px rgba(239, 68, 68, 0.5),
    0 0 30px rgba(239, 68, 68, 0.3);
}

:root[data-theme="light"] .sw-countdown-text {
  color: #64748b;
}

:root[data-theme="light"] .sw-credit {
  border-top-color: rgba(239, 68, 68, 0.15);
  color: #94a3b8;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 420px) {
  .sw-card {
    padding: 28px 22px 20px;
    border-radius: 20px;
  }
  .sw-icon {
    width: 68px;
    height: 68px;
    border-radius: 17px;
  }
  .sw-icon i {
    font-size: 1.9rem;
  }
  .sw-title {
    font-size: 1.25rem;
    letter-spacing: 0.8px;
  }
  .sw-message {
    font-size: 0.85rem;
  }
  .sw-ban-pill {
    font-size: 0.72rem;
    padding: 8px 14px;
    letter-spacing: 0.3px;
  }
  .sw-ring {
    width: 88px;
    height: 88px;
  }
  .sw-countdown-number {
    font-size: 2rem;
  }
  .sw-btn {
    padding: 13px 18px;
    font-size: 0.86rem;
  }
  .sw-credit {
    font-size: 0.68rem;
  }
}