/* ============================================================
   Xuân Hậu Media – style.css
   Dark glassmorphism + vibrant gradients
   ============================================================ */

/* ---------- Reset & Tokens ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors - Bee Theme (Golden Yellow & Charcoal Black) */
  --c-bg:          #0c0c0e;
  --c-surface:     #141519;
  --c-glass:       rgba(255,255,255,0.03);
  --c-glass-hover: rgba(255,255,255,0.06);
  --c-border:      rgba(251,191,36,0.09);
  --c-text:        #f4f4f5;
  --c-muted:       #a1a1aa;
  --c-accent1:     #fbbf24; /* Honey Yellow */
  --c-accent2:     #f59e0b; /* Amber */
  --c-accent3:     #fb923c; /* Bee Orange */
  --c-green:       #10b981;
  --c-orange:      #f97316;
  --c-red:         #ef4444;
  --c-yellow:      #fbbf24;

  /* Gradients */
  --grad-main:   linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
  --grad-pink:   linear-gradient(135deg, #f59e0b 0%, #fb923c 100%);
  --grad-green:  linear-gradient(135deg, #10b981 0%, #fbbf24 100%);
  --grad-warm:   linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  --grad-gold:   linear-gradient(135deg, #ffd700 0%, #fbbf24 100%);

  /* Spacing & radius */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-card:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 35px rgba(251,191,36,0.18);
  --shadow-hover:  0 16px 48px rgba(0,0,0,0.6);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-med:  0.3s ease;
  --t-slow: 0.5s ease;
}

/* Light mode – Warm soft honey & milk theme */
body.light-mode {
  --c-bg:          #fdfcf7; /* Warm soft honey white */
  --c-surface:     #ffffff;
  --c-glass:       rgba(255,255,255,0.8);
  --c-glass-hover: rgba(255,255,255,0.95);
  --c-border:      rgba(245,158,11,0.15);
  --c-text:        #1c1917; /* stone-900 */
  --c-muted:       #78716c; /* stone-600 */
  --shadow-card:   0 8px 32px rgba(245,158,11,0.08);
  --shadow-glow:   0 0 40px rgba(245,158,11,0.15);
  --shadow-hover:  0 16px 48px rgba(245,158,11,0.12);
}

html { scroll-behavior: smooth; }

body, input, button, textarea, select {
  font-family: 'Be Vietnam Pro', sans-serif !important;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background var(--t-med), color var(--t-med);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Animated Background ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #f59e0b, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
body.light-mode .orb-1 { background: radial-gradient(circle, #fcd34d, transparent 70%); opacity: .35; }
body.light-mode .orb-2 { background: radial-gradient(circle, #f97316, transparent 70%); opacity: .25; }
body.light-mode .orb-3 { background: radial-gradient(circle, #fbbf24, transparent 70%); opacity: .3; }
body.light-mode .orb-4 { background: radial-gradient(circle, #ffd700, transparent 70%); opacity: .2; }

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #f97316, transparent 70%);
  top: 30%; right: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #fbbf24, transparent 70%);
  bottom: 10%; left: 20%;
  animation-delay: -14s;
}

.orb-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ffd700, transparent 70%);
  bottom: -100px; right: 30%;
  animation-delay: -3s;
}

/* light mode orb handled per-orb above */

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%       { transform: translate3d(30px, -50px, 0) scale(1.1); }
  66%       { transform: translate3d(-20px, 30px, 0) scale(0.95); }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--t-med), border-color var(--t-med);
}

body.light-mode .header {
  background: rgba(245,243,255,0.92);
  border-bottom: 1px solid rgba(245, 158, 11,0.15);
  box-shadow: 0 2px 20px rgba(245, 158, 11,0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
  animation: logoGlowPulse 3s ease-in-out infinite;
}

.logo-wrap:hover .logo-icon {
  transform: scale(1.12) rotate(4deg);
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.45));
}

@keyframes logoGlowPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(245, 158, 11, 0.15); border-radius: 8px; }
  50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.45); border-radius: 8px; }
}

.logo-icon.small { width: 32px; height: 32px; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--c-accent1);
  background: rgba(251, 191, 36,0.1);
}
body.light-mode .nav-link {
  color: #f59e0b;
  font-weight: 600;
}
body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
  background: rgba(245, 158, 11,0.12);
  color: #b45309;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  width: 44px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--t-fast);
  position: relative;
  overflow: hidden;
}

.theme-toggle span {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle:hover span {
  transform: scale(1.2) rotate(24deg);
}

.theme-toggle:active span {
  transform: scale(0.9) rotate(-15deg);
}

.theme-toggle:hover { background: var(--c-glass-hover); }

.dark-mode .icon-sun { display: none; }
.dark-mode .icon-moon { display: block; }
.light-mode .icon-sun { display: block; }
.light-mode .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36,0.1);
  border: 1px solid rgba(251, 191, 36,0.3);
  color: var(--c-accent1);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--c-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-desc strong { color: var(--c-text); }
body.light-mode .hero-desc { color: #78350f; }
body.light-mode .hero-desc strong { color: #451a03; font-weight: 800; }

/* ---------- Platform Pills ---------- */
.platform-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--c-border);
  background: var(--c-glass);
  backdrop-filter: blur(10px);
  transition: all var(--t-fast);
  cursor: default;
}

.pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.pill-icon { width: 18px; height: 18px; object-fit: contain; }
.pill-emoji { font-size: 1rem; }

.pill.tiktok    { border-color: rgba(255,0,80,0.3);    color: #ff3d5a; background: rgba(255,0,80,0.06); }
.pill.douyin    { border-color: rgba(0,200,200,0.35);  color: #009999; background: rgba(0,200,200,0.06); }
.pill.pinterest { border-color: rgba(230,0,35,0.3);   color: #c0001a; background: rgba(230,0,35,0.06); }
.pill.instagram { border-color: rgba(188,42,141,0.35);color: #bc2a8d; background: rgba(188,42,141,0.06); }
.pill.youtube   { border-color: rgba(220,0,0,0.3);    color: #dc0000; background: rgba(220,0,0,0.06); }
body.light-mode .pill { backdrop-filter: none; box-shadow: 0 2px 8px rgba(245, 158, 11,0.08); font-weight: 700; }

/* ---------- Mode Tabs ---------- */
.mode-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.35s both;
}

.mode-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: var(--c-glass);
  color: var(--c-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}

.mode-tab:hover {
  color: var(--c-text);
  background: var(--c-glass-hover);
}

.mode-tab.active {
  background: var(--grad-main);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px rgba(251, 191, 36,0.4);
}

/* ---------- Input Panel ---------- */
.input-panel {
  max-width: 760px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.input-panel.hidden { display: none; }

.input-wrap {
  display: flex;
  align-items: center;
  background: var(--c-glass);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 6px 8px 6px 20px;
  gap: 8px;
  transition: all var(--t-fast);
  backdrop-filter: blur(10px);
}

.input-wrap:focus-within {
  border-color: var(--c-accent1);
  box-shadow: 0 0 0 3px rgba(251, 191, 36,0.15), var(--shadow-glow);
}

body.light-mode .input-wrap {
  background: #ffffff;
  border: 2px solid rgba(245, 158, 11,0.2);
  box-shadow: 0 4px 20px rgba(245, 158, 11,0.08);
}
body.light-mode .input-wrap:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(251, 191, 36,0.12), 0 8px 32px rgba(251, 191, 36,0.15);
}
body.light-mode .input-wrap input { color: #1e1b4b; }
body.light-mode .input-wrap input::placeholder { color: #a78bfa; }

.input-icon { font-size: 1.2rem; flex-shrink: 0; }

.input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--c-text);
  font-size: 0.95rem;
  font-family: inherit;
}

.input-wrap input::placeholder { color: var(--c-muted); }

.paste-btn, .clear-btn {
  background: var(--c-glass-hover);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-muted);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.paste-btn:hover { color: var(--c-accent1); border-color: var(--c-accent1); }
.clear-btn:hover { color: var(--c-red); border-color: var(--c-red); }
body.light-mode .paste-btn { background: rgba(245, 158, 11,0.08); border-color: rgba(245, 158, 11,0.2); color: #f59e0b; }
body.light-mode .paste-btn:hover { background: rgba(245, 158, 11,0.15); color: #b45309; }

.detected-platform {
  margin-top: 10px;
  min-height: 24px;
  font-size: 0.85rem;
  color: var(--c-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Batch input */
.batch-wrap {
  position: relative;
}

.batch-wrap textarea {
  width: 100%;
  background: var(--c-glass);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  color: var(--c-text);
  font-size: 0.9rem;
  font-family: inherit;
  padding: 16px 20px;
  resize: vertical;
  min-height: 150px;
  outline: none;
  transition: border-color var(--t-fast);
}

.batch-wrap textarea:focus {
  border-color: var(--c-accent1);
  box-shadow: 0 0 0 3px rgba(251, 191, 36,0.15);
}

.batch-info {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--c-muted);
}

#batchCount {
  font-weight: 700;
  color: var(--c-accent1);
}

/* Format Selector */
.format-selector {
  margin-top: 20px;
  text-align: left;
}

.format-label {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.format-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.format-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-border);
  background: var(--c-glass);
  color: var(--c-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
}

.format-btn:hover {
  border-color: var(--c-accent1);
  color: var(--c-accent1);
  background: rgba(251, 191, 36,0.08);
}

.format-btn.active {
  border-color: var(--c-accent1);
  background: rgba(251, 191, 36,0.15);
  color: var(--c-accent1);
  box-shadow: 0 2px 12px rgba(251, 191, 36,0.2);
}

body.light-mode .format-btn {
  background: #fff;
  border-color: rgba(245, 158, 11,0.18);
  color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11,0.05);
}
body.light-mode .format-btn:hover {
  border-color: #f59e0b;
  background: rgba(251, 191, 36,0.06);
  color: #b45309;
}
body.light-mode .format-btn.active {
  background: var(--grad-main);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(251, 191, 36,0.35);
}

/* Download Button */
.btn-download-main {
  width: 100%;
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--r-xl);
  border: none;
  background: var(--grad-main);
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--t-med);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.btn-download-main:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--c-glass);
  border: 1.5px solid var(--c-border);
  color: var(--c-muted);
}
body.light-mode .btn-download-main:not(:disabled) {
  box-shadow: 0 8px 28px rgba(251, 191, 36,0.35);
}
body.light-mode .btn-download-main:not(:disabled):hover {
  box-shadow: 0 14px 40px rgba(251, 191, 36,0.5);
}

.btn-download-main:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(251, 191, 36,0.5);
}

.btn-download-main:not(:disabled):active {
  transform: translateY(0);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-download-main:not(:disabled):hover .btn-glow {
  transform: translateX(100%);
}

/* ============================================================
   AD UNITS
   ============================================================ */

/* Banner Ad */
.ad-banner {
  position: relative;
  z-index: 1;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-top: 2px solid var(--c-orange);
  border-radius: var(--r-md);
  padding: 12px 20px;
  margin: 16px 0;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--t-fast);
}

.ad-banner:hover {
  background: var(--c-glass-hover);
  border-color: var(--c-orange);
  box-shadow: 0 4px 20px rgba(251,146,60,0.15);
}
body.light-mode .ad-banner {
  background: linear-gradient(135deg, #fff9f0, #fff5f5);
  border-top: 2px solid #fb923c;
  box-shadow: 0 4px 16px rgba(251,146,60,0.12);
}

.ad-label {
  font-size: 0.65rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 500;
}

.ad-content {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-text);
}

.ad-content span {
  color: var(--c-orange);
}

.ad-content small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--c-muted);
  margin-top: 2px;
}

.ad-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 18px;
  background: var(--grad-warm);
  color: white;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--t-fast);
}

.ad-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(251,146,60,0.4);
}

/* Affiliate Section */
.affiliate-bar {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(245, 158, 11, 0.05));
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin: 20px 0;
}
body.light-mode .affiliate-bar {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), rgba(251, 191, 36, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.14);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.06);
}

.affiliate-bar-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.affiliate-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.aff-card {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--c-text);
  transition: all var(--t-med);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.light-mode .aff-card {
  background: #fff;
  border-color: rgba(245, 158, 11,0.14);
  box-shadow: 0 2px 12px rgba(245, 158, 11,0.07);
  color: #1e1b4b;
}

.aff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(251, 191, 36,0.25);
  border-color: var(--c-accent1);
}
body.light-mode .aff-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 28px rgba(251, 191, 36,0.2);
}

.aff-card-img {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,.05);
  flex-shrink: 0;
}

.aff-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.aff-card-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--c-text);
}
body.light-mode .aff-card-name { color: #1e1b4b; }

.aff-card-desc {
  font-size: 0.74rem;
  color: var(--c-muted);
  line-height: 1.4;
}
body.light-mode .aff-card-desc { color: #6b7280; }

.aff-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.aff-card-cta {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--c-accent1);
}
body.light-mode .aff-card-cta { color: #f59e0b; }

/* ── Premium Side-by-Side Image Banner Card ── */
.img-banner {
  display: flex;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
  margin: 28px auto;
  max-width: 820px;
  min-height: 180px;
  transition: all var(--t-med);
  box-shadow: var(--shadow-card);
}

.img-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(251, 191, 36, 0.12), var(--shadow-glow);
  border-color: var(--c-accent1);
}
body.light-mode .img-banner {
  background: #ffffff;
  border-color: rgba(245, 158, 11, 0.12);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.05);
}
body.light-mode .img-banner:hover {
  border-color: #f59e0b;
  box-shadow: 0 16px 40px rgba(251, 191, 36, 0.12);
}

.img-banner-info {
  flex: 1.2;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.img-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.img-banner-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--c-accent1);
  letter-spacing: 1px;
}

.img-banner-promo {
  font-size: 0.68rem;
  font-weight: 900;
  background: var(--grad-main);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: pulse-scale 2s infinite ease-in-out;
}

@keyframes pulse-scale {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25); }
  50% { transform: scale(1.05); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45); }
}

.img-banner-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.2;
}
body.light-mode .img-banner-title { color: #1c1917; }

.img-banner-desc {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.4;
}
body.light-mode .img-banner-desc { color: #78716c; }

.img-banner-cta-wrap {
  margin-top: 6px;
}

.img-banner-button {
  display: inline-block;
  background: var(--grad-main);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  transition: all var(--t-fast);
}
.img-banner:hover .img-banner-button {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.img-banner-pic-wrap {
  flex: 0.8;
  position: relative;
  min-height: 160px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.img-banner-pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.img-banner:hover .img-banner-pic {
  transform: scale(1.05);
}

/* Compact Banner Style for middle blocks */
.img-banner-compact {
  max-width: 820px;
  margin: 18px auto;
  border-radius: 16px;
}
.img-banner-compact .img-banner-info {
  padding: 16px 20px;
  gap: 6px;
}
.img-banner-compact .img-banner-title {
  font-size: 1.05rem;
}
.img-banner-compact .img-banner-desc {
  font-size: 0.78rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.img-banner-compact .img-banner-pic-wrap {
  min-height: 120px;
  flex: 0.6;
}

/* Responsive adjustment for banners */
@media (max-width: 768px) {
  .bg-orbs {
    display: none; /* Tối ưu hóa cực nhẹ cho di động */
  }
  .img-banner {
    flex-direction: column-reverse;
    margin: 20px 16px;
    min-height: auto;
  }
  .img-banner-pic-wrap {
    width: 100%;
    aspect-ratio: 16 / 9; /* Giữ tỷ lệ vàng 16:9 cho banner trên mobile, không bị bóp méo hình */
    height: auto;
    min-height: auto;
  }
  .img-banner-info {
    padding: 20px;
  }
  .img-banner-compact {
    margin: 16px;
  }
}

.aff-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.aff-card-text {
  display: flex;
  flex-direction: column;
}

.aff-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-text);
}

.aff-card-desc {
  font-size: 0.72rem;
  color: var(--c-muted);
}

.aff-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--grad-warm);
  color: white;
  margin-left: auto;
  white-space: nowrap;
}

/* Popup Ad */
.popup-ad {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
  padding: 20px;
}

.popup-ad-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-hover), var(--shadow-glow);
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-ad-close {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--c-muted);
  transition: all var(--t-fast);
}

.popup-ad-close:hover {
  color: var(--c-text);
  background: var(--c-glass-hover);
}

.popup-countdown {
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-top: 8px;
}

.popup-ad-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.popup-ad-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.popup-ad-desc {
  color: var(--c-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.popup-ad-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--grad-warm);
  color: white;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--t-fast);
  cursor: pointer;
  border: none;
}

.popup-ad-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251,146,60,0.4);
}

.popup-ad-skip {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--c-muted);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: inherit;
}

.popup-ad-skip:hover { color: var(--c-text); }

/* Interstitial counter */
.popup-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-main);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* Floating sticky ad */
.sticky-ad {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 500;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent3);
  border-radius: var(--r-md);
  padding: 12px 14px;
  max-width: 260px;
  box-shadow: var(--shadow-card);
  animation: slideInRight 0.5s ease;
  transition: all var(--t-fast);
}

.sticky-ad:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(-4px);
}

.sticky-ad-close {
  position: absolute;
  top: 6px; right: 8px;
  background: none;
  border: none;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.sticky-ad-close:hover { color: var(--c-text); }

.sticky-ad-content {
  padding-right: 16px;
}

.sticky-ad-label {
  font-size: 0.65rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.sticky-ad-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.sticky-ad-link {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-full);
  background: var(--grad-pink);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--t-fast);
}

.sticky-ad-link:hover {
  transform: scale(1.05);
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   Result Section
   ============================================================ */
.result-section {
  position: relative;
  z-index: 1;
  padding: 0 0 40px;
}

/* Loading */
.loading-state {
  text-align: center;
  padding: 60px 20px;
}

.loading-state.hidden { display: none; }

.loader-ring {
  display: inline-block;
  position: relative;
  width: 64px; height: 64px;
  margin-bottom: 20px;
}

.loader-ring div {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: ring-spin 1.2s cubic-bezier(0.5,0,0.5,1) infinite;
}

.loader-ring div:nth-child(1) { border-top-color: var(--c-accent1); animation-delay: -0.45s; }
.loader-ring div:nth-child(2) { border-top-color: var(--c-accent2); animation-delay: -0.3s; }
.loader-ring div:nth-child(3) { border-top-color: var(--c-accent3); animation-delay: -0.15s; }
.loader-ring div:nth-child(4) { border-top-color: var(--c-green); }

@keyframes ring-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: var(--c-muted);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.progress-bar-wrap {
  height: 4px;
  background: var(--c-glass);
  border-radius: var(--r-full);
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}

.progress-bar {
  height: 100%;
  background: var(--grad-main);
  border-radius: var(--r-full);
  transition: width 0.4s ease;
}

/* Result Card */
.result-card {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 20px;
  backdrop-filter: blur(16px);
  animation: fadeInUp 0.5s ease;
  box-shadow: var(--shadow-card);
}
body.light-mode .result-card {
  background: #fff;
  border: 1.5px solid rgba(245, 158, 11,0.14);
  box-shadow: 0 8px 32px rgba(245, 158, 11,0.1);
}

.result-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-border);
}

.result-platform-badge {
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-tiktok   { background: rgba(255,0,80,0.15); color: #ff3d5a; border: 1px solid rgba(255,0,80,0.3); }
.badge-douyin   { background: rgba(0,242,234,0.15); color: #00f2ea; border: 1px solid rgba(0,242,234,0.3); }
.badge-pinterest{ background: rgba(230,0,35,0.15);  color: #e60023; border: 1px solid rgba(230,0,35,0.3); }
.badge-instagram{ background: rgba(228,64,95,0.15); color: #e4405f; border: 1px solid rgba(228,64,95,0.3); }
.badge-youtube  { background: rgba(255,0,0,0.15);   color: #ff0000; border: 1px solid rgba(255,0,0,0.3); }
.badge-unknown  { background: rgba(148,163,184,0.15);color: #94a3b8; border: 1px solid rgba(148,163,184,0.3); }

.result-card-title {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.light-mode .result-card-title { color: #1e1b4b; }
body.light-mode .result-card-header { border-bottom-color: rgba(245, 158, 11,0.1); }

.result-success-icon { color: var(--c-green); font-size: 1.2rem; }
.result-error-icon   { color: var(--c-red);   font-size: 1.2rem; }

.result-card-body {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
}

.result-thumbnail {
  width: 140px;
  height: 100px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--c-bg);
  flex-shrink: 0;
  border: 1px solid var(--c-border);
}

.result-thumbnail-placeholder {
  width: 140px;
  height: 100px;
  border-radius: var(--r-md);
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-meta {
  font-size: 0.82rem;
  color: var(--c-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-meta span { display: flex; align-items: center; gap: 4px; }

.result-download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--t-fast);
}

.dl-btn-video {
  background: var(--grad-main);
  color: white;
  box-shadow: 0 4px 12px rgba(251, 191, 36,0.3);
}

.dl-btn-video:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(251, 191, 36,0.5);
}

.dl-btn-audio {
  background: var(--grad-pink);
  color: white;
  box-shadow: 0 4px 12px rgba(244,114,182,0.3);
}

.dl-btn-audio:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244,114,182,0.5);
}

.dl-btn-image {
  background: var(--grad-green);
  color: white;
  box-shadow: 0 4px 12px rgba(52,211,153,0.3);
}

.dl-btn-image:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(52,211,153,0.5);
}

.dl-btn-hd {
  background: var(--grad-gold);
  color: white;
  box-shadow: 0 4px 12px rgba(251,191,36,0.3);
}

.dl-btn-hd:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(251,191,36,0.5);
}

/* Error card */
.result-error {
  padding: 24px;
  color: var(--c-red);
  font-size: 0.9rem;
}

.result-error code {
  background: rgba(248,113,113,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--c-red);
}

/* Batch Progress */
.batch-progress {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 24px;
  backdrop-filter: blur(16px);
}

.batch-progress.hidden { display: none; }

.batch-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 700;
}

.batch-items {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 0.85rem;
}

.batch-item-icon { font-size: 1.1rem; flex-shrink: 0; }
.batch-item-url  { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-muted); }
.batch-item-status { font-weight: 600; }
.status-pending   { color: var(--c-muted); }
.status-loading   { color: var(--c-accent2); }
.status-done      { color: var(--c-green); }
.status-error     { color: var(--c-red); }

/* ============================================================
   Features Section
   ============================================================ */
.features-section {
  position: relative;
  z-index: 1;
  padding: 60px 0;
  border-top: 1px solid var(--c-border);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 32px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  transition: all var(--t-med);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--c-glass-hover);
  box-shadow: var(--shadow-hover);
  border-color: rgba(251, 191, 36,0.3);
}
body.light-mode .feature-card {
  background: #fff;
  border: 1.5px solid rgba(245, 158, 11,0.1);
  box-shadow: 0 4px 16px rgba(245, 158, 11,0.06);
}
body.light-mode .feature-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 12px 36px rgba(251, 191, 36,0.14);
  background: #fff;
}
body.light-mode .feature-card h3 { color: #1e1b4b; font-weight: 800; }
body.light-mode .feature-card p  { color: #6b7280; }

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--c-text);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ============================================================
   History Section
   ============================================================ */
.history-section {
  position: relative;
  z-index: 1;
  padding: 60px 0;
  border-top: 1px solid var(--c-border);
}

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

.section-header .section-title { margin-bottom: 0; }

.btn-clear-history {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  color: var(--c-red);
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}

.btn-clear-history:hover {
  background: rgba(248,113,113,0.2);
}

.history-list {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 20px 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

/* Tự thiết kế thanh cuộn ngang cực đẹp của Bee theme */
.history-list::-webkit-scrollbar {
  height: 8px;
}
.history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
}
body.light-mode .history-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}
.history-list::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}
.history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.45);
}

.empty-history {
  width: 100%;
  text-align: center;
  padding: 32px 0;
  color: var(--c-muted);
}

.empty-icon { font-size: 2.5rem; margin-bottom: 8px; }

.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 12px 18px;
  backdrop-filter: blur(10px);
  transition: all var(--t-fast);
  min-width: 290px;
  max-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.history-item:hover {
  background: var(--c-glass-hover);
  transform: translateY(-2px);
  border-color: var(--c-accent1);
}
body.light-mode .history-item {
  background: #fff;
  border: 1.5px solid rgba(245, 158, 11,0.1);
  box-shadow: 0 2px 12px rgba(245, 158, 11,0.05);
}
body.light-mode .history-item:hover {
  box-shadow: 0 4px 20px rgba(251, 191, 36,0.1);
  border-color: rgba(245, 158, 11,0.25);
}
body.light-mode .history-platform { color: #f59e0b; }
body.light-mode .history-url { color: #1e1b4b; font-weight: 600; }
body.light-mode .history-time { color: #9ca3af; }

.history-thumb {
  width: 60px; height: 60px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--c-bg);
  flex-shrink: 0;
  border: 1px solid var(--c-border);
}

.history-thumb-placeholder {
  width: 60px; height: 60px;
  border-radius: var(--r-sm);
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.history-info { flex: 1; min-width: 0; }

.history-platform {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-accent1);
  margin-bottom: 4px;
}

.history-url {
  font-size: 0.83rem;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-time {
  font-size: 0.75rem;
  color: var(--c-muted);
  margin-top: 4px;
}

.history-del-btn {
  background: none;
  border: none;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: color var(--t-fast);
  flex-shrink: 0;
}

.history-del-btn:hover { color: var(--c-red); }

/* ============================================================
   Guide / Steps
   ============================================================ */
.guide-section {
  position: relative;
  z-index: 1;
  padding: 60px 0;
  border-top: 1px solid var(--c-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.step-card {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--t-med);
}

.step-card:hover {
  transform: translateY(-4px);
  background: var(--c-glass-hover);
  box-shadow: var(--shadow-hover);
}
body.light-mode .step-card {
  background: #fff;
  border: 1.5px solid rgba(245, 158, 11,0.1);
  box-shadow: 0 4px 16px rgba(245, 158, 11,0.06);
}
body.light-mode .step-card:hover {
  box-shadow: 0 12px 36px rgba(251, 191, 36,0.13);
  border-color: #f59e0b;
}
body.light-mode .step-card h3 { color: #1e1b4b; }
body.light-mode .step-card p  { color: #6b7280; }

.step-num {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  opacity: 0.6;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.87rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* FAQ */
.faq-section h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--t-fast);
}

.faq-item[open] {
  border-color: rgba(251, 191, 36,0.3);
}
body.light-mode .faq-item {
  background: #fff;
  border: 1.5px solid rgba(245, 158, 11,0.1);
  box-shadow: 0 2px 10px rgba(245, 158, 11,0.05);
}
body.light-mode .faq-item[open] { border-color: #f59e0b; }
body.light-mode .faq-item summary { color: #1e1b4b; font-weight: 700; }
body.light-mode .faq-item p { color: #6b7280; }

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--c-accent1);
  transition: transform var(--t-fast);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 16px;
  color: var(--c-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   Affiliate / Sponsor Sections
   ============================================================ */
.sponsor-section {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--c-border);
}

.sponsor-title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.sponsor-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.sponsor-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  text-decoration: none;
  color: var(--c-text);
  transition: all var(--t-med);
  position: relative;
  overflow: hidden;
}
body.light-mode .sponsor-card {
  background: #fff;
  border: 1.5px solid rgba(245, 158, 11,0.1);
  box-shadow: 0 4px 16px rgba(245, 158, 11,0.07);
  color: #1e1b4b;
}
body.light-mode .sponsor-card:hover {
  box-shadow: 0 12px 36px rgba(251, 191, 36,0.14);
  border-color: #f59e0b;
}
body.light-mode .sponsor-card-name { color: #1e1b4b; }
body.light-mode .sponsor-card-desc { color: #6b7280; }
body.light-mode .sponsor-card-cta  { color: #f59e0b; }

.sponsor-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.sponsor-card:hover::before { opacity: 0.04; }

.sponsor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(251, 191, 36,0.4);
}

.sponsor-card-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  position: relative;
}

.sponsor-card-body { position: relative; }

.sponsor-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 6px;
}

.tag-hot     { background: var(--grad-warm); color: white; }
.tag-deal    { background: var(--grad-green); color: white; }
.tag-popular { background: var(--grad-main); color: white; }
.tag-new     { background: var(--grad-pink); color: white; }

.sponsor-card-name {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
}

.sponsor-card-desc {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.sponsor-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-accent1);
}

.sponsor-card-cta::after { content: '→'; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 64px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-wrap { margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: #94a3b8; line-height: 1.6; }

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--t-fast);
}

.footer-links a:hover { color: var(--c-accent1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.disclaimer { font-size: 0.77rem !important; }

/* ============================================================
   Toast
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
  min-width: 250px;
  max-width: 340px;
}
body.light-mode .toast {
  background: #fff;
  border-color: rgba(245, 158, 11,0.15);
  box-shadow: 0 8px 28px rgba(245, 158, 11,0.12);
  color: #1e1b4b;
}

.toast.success { border-left: 3px solid var(--c-green); }
.toast.error   { border-left: 3px solid var(--c-red); }
.toast.info    { border-left: 3px solid var(--c-accent2); }
.toast.warning { border-left: 3px solid var(--c-orange); }

@keyframes fadeOut { to { opacity: 0; transform: translateX(120%); } }

/* ============================================================
   Scroll Top
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-main);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(251, 191, 36,0.4);
  transition: all var(--t-fast);
  opacity: 0;
  pointer-events: none;
}
body.light-mode .scroll-top {
  box-shadow: 0 4px 20px rgba(251, 191, 36,0.4);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(251, 191, 36,0.6);
}

.scroll-top svg { width: 18px; height: 18px; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn    { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn   { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

/* ============================================================
   Responsive
   ============================================================ */
/* ── Light mode body background gradient ── */
body.light-mode { background: linear-gradient(160deg,#fdfbf7 0%,#fcf9f0 30%,#faf5e6 70%,#fcfbf7 100%); }
body.light-mode .section-title { color: #1c1917; }
body.light-mode .features-section,
body.light-mode .history-section,
body.light-mode .guide-section,
body.light-mode .sponsor-section { border-top-color: rgba(245, 158, 11,0.12); }
body.light-mode .mode-tab { background: #fff; border-color: rgba(245, 158, 11,0.18); color: #f59e0b; font-weight: 700; }
body.light-mode .mode-tab:hover { background: rgba(251, 191, 36,0.06); }
body.light-mode .mode-tab.active { background: var(--grad-main); color: #fff; }
body.light-mode .batch-wrap textarea {
  background: #fff;
  border-color: rgba(245, 158, 11,0.18);
  color: #1e1b4b;
  box-shadow: 0 4px 16px rgba(245, 158, 11,0.06);
}
body.light-mode .hero-badge {
  background: rgba(251, 191, 36,0.1);
  border-color: rgba(251, 191, 36,0.3);
  color: #b45309;
}
body.light-mode .result-note { color: #92400e; background: #fef3c7; padding: 8px 12px; border-radius: 8px; font-size:.82rem; margin-top:6px; }
body.light-mode .result-meta { color: #6b7280; }

@media (max-width: 768px) {
  /* Tối ưu hóa ticker bar cực đẹp trên mobile */
  .top-ticker-bar {
    padding: 6px 8px;
    font-size: 0.72rem;
  }
  .ticker-text-desktop {
    display: none !important;
  }
  .ticker-text-mobile {
    display: inline !important;
  }
  .ticker-action {
    padding: 1px 8px;
    font-size: 0.65rem;
    font-weight: 800;
  }

  .header .container { height: 60px; }
  .nav-links { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 2rem; }
  .mode-tabs { gap: 6px; }
  .mode-tab { padding: 8px 16px; font-size: 0.82rem; }
  .result-card-body { flex-direction: column; }
  .result-thumbnail, .result-thumbnail-placeholder { width: 100%; height: 180px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-bottom p { text-align: center !important; }
  .sponsor-cards { grid-template-columns: 1fr; }
  .affiliate-cards { flex-direction: column; }
  .format-btns { flex-direction: column; }
  .sticky-ad { display: none; }
}

@media (max-width: 480px) {
  .platform-pills { gap: 6px; }
  .pill { padding: 6px 10px; font-size: 0.78rem; }
  .input-wrap { padding: 4px 8px 4px 14px; }
  .popup-ad-box { padding: 28px 20px; }
}

/* ============================================================
   DOWNLOAD RESULT TABLE & TABS STYLES (Mockup Screenshot Style)
   ============================================================ */
.dl-tab-wrapper {
  margin: 20px 0 16px;
  display: flex;
  justify-content: center;
}

.dl-tab-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
}
body.light-mode .dl-tab-switch {
  background: #fff;
  border-color: rgba(245, 158, 11, 0.15);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.06);
}

.dl-tab-btn {
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--c-muted);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--t-fast);
}
body.light-mode .dl-tab-btn {
  color: #f59e0b;
}

.dl-tab-btn.active {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
body.light-mode .dl-tab-btn.active {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

.dl-table-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-border);
}
body.light-mode .dl-table-container {
  background: #fff;
  border-color: rgba(245, 158, 11, 0.12);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.05);
}

.dl-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dl-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 12px 16px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--c-border);
}
body.light-mode .dl-table th {
  background: #f3f4f6;
  color: #1e1b4b;
  border-bottom-color: rgba(245, 158, 11, 0.1);
}

.dl-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--c-text);
  font-weight: 700;
  font-size: 0.88rem;
  vertical-align: middle;
}
body.light-mode .dl-table td {
  border-bottom-color: #f3f4f6;
  color: #1e1b4b;
}

.dl-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}
body.light-mode .dl-table tr:hover td {
  background: rgba(245, 158, 11, 0.02);
}

.td-quality {
  color: var(--c-text);
}

.td-format {
  color: var(--c-muted);
  font-weight: 500;
}
body.light-mode .td-format {
  color: #6b7280;
}

.dl-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--c-border);
  background: transparent;
  color: var(--c-accent1);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
}
body.light-mode .dl-action-btn {
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.dl-action-btn:hover {
  background: var(--grad-main);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}
body.light-mode .dl-action-btn:hover {
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
}

/* ============================================================
   TOP TICKER BAR & SPLIT HERO LAYOUT (Monetization Boost)
   ============================================================ */
.top-ticker-bar {
  background: var(--grad-main);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 0;
  position: relative;
  z-index: 101;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.ticker-link {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: center;
}

.ticker-text-desktop {
  display: inline;
}

.ticker-text-mobile {
  display: none;
}

.ticker-action {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 900;
  transition: all var(--t-fast);
}
.ticker-link:hover .ticker-action {
  background: #fff;
  color: var(--c-accent2);
}

/* Split Layout */
.hero-split-wrapper {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.hero-left-tool {
  flex: 1.3;
  width: 100%;
}

.hero-right-deals {
  flex: 0.8;
  width: 100%;
}

/* Deals Card */
.deals-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--t-med);
}

.deals-card:hover {
  border-color: var(--c-accent1);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

body.light-mode .deals-card {
  background: #ffffff;
  border-color: rgba(245, 158, 11, 0.15);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.05);
}

.deals-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.deals-card-fire {
  font-size: 1.5rem;
}

.deals-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-text);
  margin: 0;
}
body.light-mode .deals-card-header h3 { color: #1c1917; }

.deals-card-badge {
  font-size: 0.62rem;
  font-weight: 900;
  background: var(--grad-main);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--r-full);
  letter-spacing: 0.5px;
  animation: pulse-scale 2s infinite ease-in-out;
}

.deals-card-sub {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-bottom: 20px;
}
body.light-mode .deals-card-sub { color: #78716c; }

.deals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all var(--t-fast);
}

.deal-item:hover {
  background: var(--c-glass-hover);
  border-color: var(--c-accent1);
  transform: translateX(4px);
}
body.light-mode .deal-item {
  background: #faf9f5;
  border-color: rgba(245, 158, 11, 0.1);
}
body.light-mode .deal-item:hover {
  background: #fff;
  border-color: var(--c-accent1);
}

.deal-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.deal-body {
  flex: 1;
  min-width: 0;
}

.deal-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
body.light-mode .deal-title { color: #1c1917; }

.deal-tag {
  font-size: 0.6rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: var(--r-full);
  text-transform: uppercase;
}
.deal-tag.hot {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.deal-tag.sale {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.deal-desc {
  font-size: 0.76rem;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.light-mode .deal-desc { color: #78716c; }

.deal-arrow {
  font-size: 0.9rem;
  color: var(--c-muted);
  transition: transform var(--t-fast);
}
.deal-item:hover .deal-arrow {
  color: var(--c-accent1);
  transform: translateX(2px);
}

/* Responsive for Split Hero */
@media (max-width: 992px) {
  .hero-split-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    max-width: 760px;
  }
  .hero-left-tool, .hero-right-deals {
    flex: none;
  }
}

/* ── Hiding ads on download ── */
body.hide-ads .top-ticker-bar,
body.hide-ads .hero-right-deals,
body.hide-ads .adsense-wrap,
body.hide-ads .affiliate-bar,
body.hide-ads .sponsor-section,
body.hide-ads #ad-result,
body.hide-ads .sticky-ad {
  display: none !important;
}

body.hide-ads .hero-left-tool {
  flex: none;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
