/* ==========================================================================
   GiaVang24H - Elegant Warm Light Gold Theme (Chữ Đen Sắc Nét, Dễ Đọc 100%)
   Tone màu chủ đạo: Vàng nhẹ trang sức (Champagne Gold / Light Gold)
   Màu chữ: Đen đậm sắc nét (#0f172a / #1e293b) độ tương phản cao tối đa
   ========================================================================== */

:root {
  /* Warm Light Gold Tokens (Mặc định Giao diện Sáng Vàng Nhẹ) */
  --bg-main: #fcfaf5;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-alt: #fefcf7;
  --bg-table-head: #fdf5df;

  /* Typography Colors - Đen nhánh tương phản cao */
  --text-primary: #0f172a;       /* Đen đậm sắc nét nhất */
  --text-secondary: #334155;     /* Xám đen dễ đọc */
  --text-muted: #64748b;         /* Xám trung tính */
  --heading-color: #0f172a;      /* Tiêu đề đen đậm */

  /* Gold Metallic Accents (Vàng Hoàng Kim Tự Nhiên) */
  --gold-50: #fefce8;
  --gold-100: #fef9c3;
  --gold-200: #fef08a;
  --gold-300: #fde047;
  --gold-400: #eab308;
  --gold-500: #d97706;
  --gold-600: #b45309;
  --gold-700: #92400e;

  /* Gradients & Borders */
  --gold-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --gold-gradient-soft: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
  --gold-border: rgba(180, 83, 9, 0.22);
  --gold-border-bright: rgba(180, 83, 9, 0.45);
  --card-shadow: 0 4px 18px rgba(180, 83, 9, 0.08);

  /* Status Colors */
  --color-up: #059669;    /* Xanh ngọc đậm */
  --color-down: #dc2626;  /* Đỏ đậm */

  /* Layout */
  --max-width: 1320px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* Dark Theme Support (Tùy chọn khi người dùng bấm nút) */
body.theme-dark {
  --bg-main: #0c0f14;
  --bg-surface: #121721;
  --bg-card: #181f2c;
  --bg-card-alt: #161c28;
  --bg-table-head: #1e2638;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --heading-color: #ffffff;
  --gold-border: rgba(234, 179, 8, 0.28);
  --gold-border-bright: rgba(250, 204, 21, 0.6);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --gold-gradient: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #ca8a04 100%);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 8%, rgba(217, 119, 6, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 25%, rgba(234, 179, 8, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ================= TOP TICKER BAR ================= */
.top-ticker-bar {
  background: #ffffff;
  border-bottom: 1.5px solid var(--gold-border);
  font-size: 0.82rem;
  padding: 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

body.theme-dark .top-ticker-bar {
  background: #121721;
}

.ticker-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ticker-items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.ticker-items::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.ticker-label {
  color: var(--text-muted);
  font-weight: 600;
}

.ticker-val {
  font-weight: 800;
  color: #92400e;
}

body.theme-dark .ticker-val {
  color: #fde047;
}

.badge-trend-up {
  color: #059669;
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.25);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

body.theme-dark .badge-trend-up {
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.3);
}

.badge-trend-down {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.25);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

body.theme-dark .badge-trend-down {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
}

.ticker-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hotline {
  color: #b45309;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
}

.btn-hotline:hover {
  text-decoration: underline;
}

.btn-theme-toggle {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid var(--gold-border);
  color: #b45309;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s;
}

body.theme-dark .btn-theme-toggle {
  color: #fde047;
  background: rgba(254, 240, 138, 0.1);
}

/* ================= MAIN HEADER ================= */
.main-header {
  padding: 1.25rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--gold-border);
}

body.theme-dark .main-header {
  background: #121721;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.brand-logo-icon {
  font-size: 2.2rem;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 900;
  color: #92400e;
  letter-spacing: -0.02em;
}

body.theme-dark .brand-name {
  color: #fde047;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: #92400e;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid var(--gold-border);
}

body.theme-dark .nav-link:hover {
  color: #fde047;
}

.btn-ad-booking {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 25px;
  box-shadow: 0 3px 12px rgba(180, 83, 9, 0.3);
  transition: transform 0.2s;
}

.btn-ad-booking:hover {
  transform: translateY(-2px);
}

/* ================= HERO SECTION ================= */
.hero-section {
  padding: 2.5rem 0 1.5rem 0;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid var(--gold-border);
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.theme-dark .hero-tag {
  color: #fde047;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--heading-color);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero-title span {
  color: #b45309;
}

body.theme-dark .hero-title span {
  color: #fde047;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 2rem auto;
}

/* 4 KPI CARDS GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: #b45309;
  box-shadow: 0 8px 25px rgba(180, 83, 9, 0.15);
}

.kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.kpi-brand-badge {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
}

body.theme-dark .kpi-brand-badge {
  color: #fde047;
}

.kpi-change-tag {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.kpi-change-tag.down {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

body.theme-dark .kpi-change-tag.down {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.kpi-change-tag.up {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.kpi-price {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

body.theme-dark .kpi-price {
  color: #ffffff;
}

.kpi-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ================= BEST DEALS & QUICK COMPARE ================= */
.best-deals-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.best-deal-card {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--card-shadow);
  text-align: left;
}

body.theme-dark .best-deal-card {
  background: #181f2c;
}

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

.best-deal-title {
  font-size: 0.76rem;
  font-weight: 900;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

body.theme-dark .best-deal-title {
  color: #fde047;
}

.best-deal-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

body.theme-dark .best-deal-val {
  color: #ffffff;
}

.best-deal-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Share & Hotline Bar */
.share-action-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-share {
  background: #ffffff;
  border: 1px solid var(--gold-border);
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.theme-dark .btn-share {
  background: #181f2c;
  color: #f8fafc;
}

.btn-share:hover {
  background: rgba(217, 119, 6, 0.1);
  color: #92400e;
  border-color: #b45309;
}

/* ================= SECTION HEADINGS ================= */
.content-section {
  padding: 2.25rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.section-icon {
  font-size: 1.85rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--heading-color);
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ================= SECTION 1: TRADINGVIEW CHART ================= */
.chart-container-card {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
}

body.theme-dark .chart-container-card {
  background: #121721;
}

.chart-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-up);
  font-weight: 800;
}

.pulsing-dot {
  width: 10px;
  height: 10px;
  background: var(--color-up);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

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

.spread-banner-box {
  background: #fffdf5;
  border: 1.5px dashed var(--gold-border-bright);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

body.theme-dark .spread-banner-box {
  background: #161c28;
}

.spread-val-badge {
  font-size: 1.25rem;
  font-weight: 900;
  color: #b45309;
}

body.theme-dark .spread-val-badge {
  color: #fde047;
}

/* Ẩn hoàn toàn các thanh scrollbar xám xấu trên bảng và khung cuộn */
div[style*="overflow-x: auto"],
.table-responsive {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

div[style*="overflow-x: auto"]::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ================= SECTION 2: DOMESTIC GOLD TABLES ================= */
.brand-filter-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px;
  margin-bottom: 1.5rem;
  width: 100%;
}

.btn-brand-tab {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body.theme-dark .btn-brand-tab {
  background: #181f2c;
  color: #cbd5e1;
  border-color: rgba(217, 119, 6, 0.3);
}

.btn-brand-tab:hover {
  border-color: #d97706;
  color: #92400e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

body.theme-dark .btn-brand-tab:hover {
  color: #fde047;
  border-color: #fde047;
}

.btn-brand-tab.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff !important;
  border-color: #b45309;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
  transform: translateY(-1px);
}

.brands-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(540px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1180px) {
  .brands-table-grid {
    grid-template-columns: 1fr;
  }
}

.brand-card,
.brand-gold-card {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

body.theme-dark .brand-card,
body.theme-dark .brand-gold-card {
  background: #181f2c;
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-card:hover,
.brand-gold-card:hover {
  transform: translateY(-3px);
  border-color: #d97706;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.15);
}

.brand-card-header,
.brand-gold-head {
  padding: 1.1rem 1.25rem;
  background: #fffdf5;
  border-bottom: 1.5px solid var(--gold-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

body.theme-dark .brand-card-header,
body.theme-dark .brand-gold-head {
  background: #161c28;
  border-bottom-color: rgba(217, 119, 6, 0.25);
}

.brand-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.brand-card-title,
.brand-gold-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--heading-color);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

body.theme-dark .brand-card-title,
body.theme-dark .brand-gold-title {
  color: #ffffff;
}

.brand-badge,
.brand-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
  border: 1px solid var(--gold-border);
  display: inline-block;
}

body.theme-dark .brand-badge,
body.theme-dark .brand-pill {
  background: rgba(253, 224, 71, 0.12);
  color: #fde047;
  border-color: rgba(253, 224, 71, 0.3);
}

.brand-badge.private {
  background: rgba(5, 150, 105, 0.12);
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.3);
}

body.theme-dark .brand-badge.private {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.brand-hotline-tag a {
  background: #fef3c7;
  color: #b45309 !important;
  border: 1px solid var(--gold-border);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

body.theme-dark .brand-hotline-tag a {
  background: #1e2638;
  color: #fde047 !important;
  border-color: rgba(253, 224, 71, 0.3);
}

.brand-hotline-tag a:hover {
  background: #d97706;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Gold Tables */
.gold-table,
.brand-gold-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.gold-table th,
.brand-gold-table th {
  padding: 10px 10px;
  text-align: left;
  background: var(--bg-table-head);
  color: #78350f;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1.5px solid var(--gold-border);
  white-space: nowrap;
}

body.theme-dark .gold-table th,
body.theme-dark .brand-gold-table th {
  background: #1e2638;
  color: #fde047;
  border-bottom-color: rgba(217, 119, 6, 0.3);
}

.gold-table td,
.brand-gold-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

body.theme-dark .gold-table td,
body.theme-dark .brand-gold-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.gold-table tr:hover,
.brand-gold-table tr:hover {
  background: #fffdf5;
}

body.theme-dark .gold-table tr:hover,
body.theme-dark .brand-gold-table tr:hover {
  background: rgba(253, 224, 71, 0.05);
}

.gold-type-cell,
.gold-item-name {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 140px;
  line-height: 1.35;
}

body.theme-dark .gold-type-cell,
body.theme-dark .gold-item-name {
  color: #f8fafc;
}

.gold-price-cell {
  font-weight: 900;
  font-size: 0.94rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.gold-price-cell.buy {
  color: #059669;
}

body.theme-dark .gold-price-cell.buy {
  color: #34d399;
}

.gold-price-cell.sell {
  color: #d97706;
}

body.theme-dark .gold-price-cell.sell {
  color: #fbbf24;
}

.gold-spread-cell {
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
}

.gold-trend-cell {
  white-space: nowrap;
  text-align: center;
}

.brand-footer-info {
  padding: 10px 14px;
  background: #fbf9f4;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--gold-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 600;
}

body.theme-dark .brand-footer-info {
  background: #121721;
  border-top-color: rgba(217, 119, 6, 0.25);
}

/* ================= SECTION 3: TECHNICAL & FORECAST ================= */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tech-box,
.forecast-card {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

body.theme-dark .tech-box,
body.theme-dark .forecast-card {
  background: #181f2c;
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tech-box-title,
.forecast-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #92400e;
  font-weight: 800;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

body.theme-dark .tech-box-title,
body.theme-dark .forecast-card h3 {
  color: #fde047;
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fbf9f4;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: background 0.2s;
}

body.theme-dark .tech-item-row {
  background: #121721;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.tech-item-row:hover {
  background: #fef9c3;
}

body.theme-dark .tech-item-row:hover {
  background: rgba(253, 224, 71, 0.08);
}

.tech-item-row span {
  font-weight: 600;
  color: var(--text-secondary);
}

body.theme-dark .tech-item-row span {
  color: #cbd5e1;
}

.tech-item-row strong {
  font-weight: 800;
}

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

.signal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #fbf9f4;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
}

body.theme-dark .signal-row {
  background: #121721;
}

.signal-action {
  font-size: 0.8rem;
  font-weight: 800;
  color: #b45309;
}

body.theme-dark .signal-action {
  color: #fde047;
}

/* 7-DAY HISTORY TABLE */
.history-table-card {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1.5rem;
  box-shadow: var(--card-shadow);
}

body.theme-dark .history-table-card {
  background: #181f2c;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.history-table th {
  padding: 10px 14px;
  background: var(--bg-table-head);
  color: #78350f;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-border);
}

body.theme-dark .history-table th {
  color: #fde047;
}

.history-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-dark .history-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table tr:hover {
  background: #fffdf5;
}

body.theme-dark .history-table tr:hover {
  background: rgba(234, 179, 8, 0.05);
}

/* ================= SECTION: GUIDE TIPS ================= */
.guide-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.guide-tip-card {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s;
}

body.theme-dark .guide-tip-card {
  background: #181f2c;
}

.guide-tip-card:hover {
  transform: translateY(-3px);
  border-color: #b45309;
}

.guide-tip-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.guide-tip-icon {
  font-size: 1.6rem;
}

.guide-tip-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--heading-color);
}

.guide-tip-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ================= SECTION 4: GOLD CALCULATOR ================= */
.calc-card {
  background: #ffffff;
  border: 2px solid var(--gold-border-bright);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

body.theme-dark .calc-card {
  background: #181f2c;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.theme-dark .form-group label {
  color: #fde047;
}

.form-input, .form-select {
  width: 100%;
  background: #fbf9f4;
  border: 1.5px solid var(--gold-border);
  color: #0f172a;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s;
}

body.theme-dark .form-input, body.theme-dark .form-select {
  background: #121721;
  color: #ffffff;
}

.form-input:focus, .form-select:focus {
  border-color: #b45309;
  background: #ffffff;
}

.calc-result-box {
  background: #fffdf5;
  border: 1.5px solid var(--gold-border-bright);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}

body.theme-dark .calc-result-box {
  background: #161c28;
}

.result-item-val {
  font-size: 2rem;
  font-weight: 900;
  color: #b45309;
  margin-top: 4px;
}

body.theme-dark .result-item-val {
  color: #fde047;
}

/* ================= SECTION 5: GOLD NEWS & ARTICLES ================= */
.news-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.btn-news-filter {
  background: #ffffff;
  border: 1px solid var(--gold-border);
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

body.theme-dark .btn-news-filter {
  background: #181f2c;
}

.btn-news-filter.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border-color: #b45309;
}

.news-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  cursor: pointer;
}

body.theme-dark .news-card {
  background: #181f2c;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: #b45309;
  box-shadow: 0 8px 25px rgba(180, 83, 9, 0.15);
}

.news-thumb-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.news-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-thumb-wrap img {
  transform: scale(1.05);
}

.news-source-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #92400e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
}

.news-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.news-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 10px;
  font-weight: 600;
}

body.theme-dark .news-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ================= SECTION 6: AD BOOKING BANNER ================= */
.ad-banner-section {
  background: linear-gradient(135deg, #fffdf5, #fef9c3);
  border: 2px dashed #b45309;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--card-shadow);
}

body.theme-dark .ad-banner-section {
  background: #181f2c;
}

.ad-banner-title {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

body.theme-dark .ad-banner-title {
  color: #ffffff;
}

.ad-banner-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
}

.ad-contacts-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-contact {
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-contact.phone {
  background: #059669;
  color: #fff;
}

.btn-contact.zalo {
  background: #0284c7;
  color: #fff;
}

.btn-contact:hover {
  transform: translateY(-2px);
}

/* ================= FOOTER ================= */
.main-footer {
  background: #ffffff;
  border-top: 1.5px solid var(--gold-border);
  padding: 3rem 0 2rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

body.theme-dark .main-footer {
  background: #080a0e;
}

.footer-disclaimer {
  background: #fbf9f4;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

body.theme-dark .footer-disclaimer {
  background: #121721;
}

/* Reader Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-content {
  background: #ffffff;
  border: 2px solid var(--gold-border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  color: #0f172a;
}

body.theme-dark .modal-content {
  background: #181f2c;
  color: #f8fafc;
}

/* Modal Top Header Bar */
.modal-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px solid var(--gold-border);
}

.modal-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #b45309;
  background: rgba(217, 119, 6, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

body.theme-dark .modal-top-badge {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

.btn-close-modal {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.btn-close-modal:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

body.theme-dark .btn-close-modal {
  background: #1e2638;
  border-color: #334155;
  color: #94a3b8;
}

body.theme-dark .btn-close-modal:hover {
  background: #334155;
  color: #ffffff;
}

/* ================= LIVE AUTO-SYNC & REFRESH TICKER ================= */
.ticker-sync-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid var(--gold-border);
  padding: 3px 10px;
  border-radius: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #059669;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.btn-ticker-refresh {
  background: #ffffff;
  border: 1px solid var(--gold-border);
  color: #b45309;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

body.theme-dark .btn-ticker-refresh {
  background: #1e2638;
  color: #fde047;
}

.btn-ticker-refresh:hover {
  background: #fef3c7;
  border-color: #d97706;
}

.btn-ticker-refresh.spinning .refresh-icon {
  animation: spin-icon 0.8s linear infinite;
}

@keyframes spin-icon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.highlight-nav {
  color: #b45309 !important;
  font-weight: 800 !important;
}

/* ================= SEARCH & HOT TAGS ================= */
.news-search-bar {
  margin-bottom: 1.25rem;
}

.search-input-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.search-input-wrap input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  font-size: 0.96rem;
  font-weight: 500;
  border: 2px solid var(--gold-border);
  border-radius: 30px;
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.search-input-wrap input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: var(--text-muted);
  pointer-events: none;
}

.btn-clear-search {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.btn-clear-search:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.hot-tags-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hot-tags-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #b45309;
  text-transform: uppercase;
}

.hot-tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hot-tag {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.hot-tag:hover {
  border-color: #d97706;
  color: #b45309;
  background: #fefce8;
}

.hot-tag.active {
  background: #b45309;
  border-color: #b45309;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.25);
}

.news-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.news-sync-indicator {
  color: #059669;
  font-weight: 700;
}

.article-pill-tag {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-right: 4px;
}

body.theme-dark .article-pill-tag {
  background: rgba(253, 224, 71, 0.15);
  color: #fde047;
}

.news-tags-row {
  margin-bottom: 8px;
}

.news-voice-hint {
  color: #b45309;
  font-weight: 700;
  cursor: pointer;
}

.news-voice-hint:hover {
  text-decoration: underline;
}

/* ================= LOAD MORE NEWS ================= */
.load-more-wrap {
  text-align: center;
  margin-top: 2rem;
}

.btn-load-more {
  background: linear-gradient(135deg, #ffffff 0%, #fefcf7 100%);
  border: 2px solid var(--gold-border-bright);
  color: #b45309;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(180, 83, 9, 0.1);
  transition: all 0.25s;
}

body.theme-dark .btn-load-more {
  background: #181f2c;
  color: #fde047;
}

.btn-load-more:hover {
  transform: translateY(-2px);
  background: #fefce8;
  border-color: #d97706;
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.18);
}

/* ================= STORE DIRECTORY ================= */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.store-card {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}

.store-card:hover {
  transform: translateY(-3px);
  border-color: #d97706;
}

.store-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.store-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: #b45309;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.store-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.store-badge-rating {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.store-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.store-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.02);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

body.theme-dark .store-meta-list {
  background: rgba(255, 255, 255, 0.03);
}

.store-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-store-call {
  flex: 1;
  background: #059669;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.btn-store-call:hover {
  background: #047857;
}

.btn-store-map {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-store-map:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* ================= ACCESSIBILITY TOOLBAR & TTS IN MODAL ================= */
.reader-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #fdfaf2;
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 8px 14px;
  margin-bottom: 1.25rem;
}

body.theme-dark .reader-toolbar {
  background: #1e2638;
}

.font-resizer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.btn-font-size {
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 800;
  min-width: 38px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.theme-dark .btn-font-size {
  background: #181f2c;
  color: #f8fafc;
  border-color: #334155;
}

.btn-font-size:hover {
  background: #fef3c7;
  border-color: #d97706;
}

.btn-font-size.active {
  background: #b45309 !important;
  color: #ffffff !important;
  border-color: #b45309 !important;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.35);
}

.btn-audio-tts {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
  transition: transform 0.2s;
}

.btn-audio-tts:hover {
  transform: translateY(-1px);
}

/* Audio Waveform Animation */
.audio-waveform-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 1.25rem;
}

body.theme-dark .audio-waveform-bar {
  background: #064e3b;
  border-color: #059669;
}

.wave-animation {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.wave-bar {
  width: 4px;
  background: #059669;
  border-radius: 3px;
  animation: wave-bounce 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 16px; animation-delay: 0.2s; }
.wave-bar:nth-child(3) { height: 22px; animation-delay: 0.3s; }
.wave-bar:nth-child(4) { height: 12px; animation-delay: 0.4s; }
.wave-bar:nth-child(5) { height: 8px; animation-delay: 0.5s; }

@keyframes wave-bounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.audio-status-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #065f46;
  flex: 1;
}

body.theme-dark .audio-status-text {
  color: #d1fae5;
}

.btn-audio-stop {
  background: #dc2626;
  color: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 12px;
  cursor: pointer;
}

/* 30-Second Highlights */
.reader-highlights-box {
  background: #fffbeb;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

body.theme-dark .reader-highlights-box {
  background: rgba(217, 119, 6, 0.12);
}

.highlights-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 8px;
  text-transform: uppercase;
}

body.theme-dark .highlights-title {
  color: #fde047;
}

.highlights-ul {
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.highlights-ul li {
  margin-bottom: 4px;
}

/* Share Bar */
.reader-share-bar {
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 1.25rem;
}

body.theme-dark .reader-share-bar {
  background: rgba(255,255,255,0.03);
}

.btn-share-social {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  color: #ffffff;
  transition: transform 0.2s;
}

.btn-share-social:hover {
  transform: translateY(-1px);
}

.btn-share-social.zalo { background: #0284c7; }
.btn-share-social.fb { background: #1877f2; }
.btn-share-social.copy { background: #475569; }

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ================= ZALO AD BOOKING STYLES ================= */
.btn-zalo-top {
  background: #0284c7;
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.btn-zalo-top:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.zalo-nav-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0068ff 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

.zalo-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45) !important;
}

.ad-badge-pill {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.primary-pulse {
  background: linear-gradient(135deg, #0068ff 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  padding: 14px 32px !important;
  animation: zalo-btn-glow 2.5s infinite;
}

@keyframes zalo-btn-glow {
  0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(0, 104, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}

.ad-zalo-hint {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Floating Zalo Quick Booking Widget */
.floating-zalo-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #ffffff;
  border: 2px solid #0068ff;
  border-radius: 40px;
  padding: 6px 16px 6px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 9998;
  box-shadow: 0 8px 25px rgba(0, 104, 255, 0.3);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: float-soft 3s ease-in-out infinite;
}

body.theme-dark .floating-zalo-widget {
  background: #181f2c;
}

.floating-zalo-widget:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 104, 255, 0.45);
}

.zalo-floating-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0068ff, #0284c7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 104, 255, 0.35);
}

.zalo-floating-content {
  display: flex;
  flex-direction: column;
}

.zalo-floating-sub {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0068ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zalo-floating-main {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  /* ================= TOP TICKER BAR ON MOBILE ================= */
  .top-ticker-bar {
    padding: 6px 0;
  }

  .ticker-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .ticker-items {
    width: 100%;
    gap: 12px;
    font-size: 0.76rem;
    padding-bottom: 2px;
  }

  .ticker-actions {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .btn-zalo-top, .btn-hotline {
    font-size: 0.74rem;
    padding: 3px 8px;
    white-space: nowrap;
  }

  .btn-theme-toggle {
    padding: 3px 9px;
    font-size: 0.74rem;
  }

  /* ================= HEADER & NAVIGATION ON MOBILE ================= */
  .main-header {
    padding: 8px 0 4px 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .brand-logo {
    justify-content: center;
    gap: 8px;
  }

  .brand-logo-icon {
    font-size: 1.8rem;
  }

  .brand-name {
    font-size: 1.35rem;
    line-height: 1.1;
  }

  .brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .header-nav {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 4px 4px 8px 4px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    width: 100%;
  }

  .header-nav::-webkit-scrollbar {
    display: none !important;
  }

  .nav-link {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 5px 11px;
    background: rgba(217, 119, 6, 0.05);
    border: 1px solid var(--gold-border);
  }

  body.theme-dark .nav-link {
    background: rgba(255, 255, 255, 0.05);
  }

  .btn-ad-booking.zalo-nav-btn {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 5px 12px;
    white-space: nowrap;
  }

  /* ================= HERO & VISITOR STATS ON MOBILE ================= */
  .hero-section {
    padding: 1.5rem 0 1rem 0;
  }

  .hero-title {
    font-size: 1.65rem !important;
    line-height: 1.25;
  }

  .hero-lead {
    font-size: 0.88rem !important;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .hero-visitor-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0.75rem auto 1.25rem auto;
    width: 100%;
    max-width: 420px;
  }

  .visitor-stat-badge {
    justify-content: center;
    padding: 5px 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .visitor-stat-link {
    grid-column: 1 / -1;
    justify-content: center;
    font-size: 0.78rem;
    padding: 6px 10px;
    text-align: center;
  }

  /* ================= 4 KPI CARDS ON MOBILE ================= */
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .kpi-card {
    padding: 1rem 1.15rem;
  }

  .kpi-price {
    font-size: 1.45rem !important;
    white-space: nowrap;
  }

  /* ================= BRAND FILTER TABS ON MOBILE ================= */
  .brand-filter-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    padding-bottom: 6px;
    gap: 8px;
    width: 100%;
  }

  .brand-filter-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .btn-brand-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .brands-table-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .calc-form-grid {
    grid-template-columns: 1fr;
  }

  .best-deals-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .deal-card {
    padding: 10px 14px;
  }

  .stores-grid {
    grid-template-columns: 1fr;
  }

  /* ================= COMPACT FLOATING ZALO BUTTON (NEVER BLOCK CONTENT) ================= */
  .container {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  .floating-zalo-widget {
    bottom: 20px;
    right: 14px;
    left: auto;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 104, 255, 0.45);
    z-index: 999;
  }

  .zalo-floating-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .zalo-floating-content {
    display: none !important;
  }

  /* ================= SITE ANALYTICS ON MOBILE ================= */
  .stats-cards-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .analytics-card {
    padding: 12px !important;
  }

  .analytics-number {
    font-size: 1.5rem !important;
  }

  .analytics-subtext {
    font-size: 0.74rem !important;
    line-height: 1.3;
  }

  .stats-details-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .stats-detail-box {
    padding: 14px !important;
  }

  .metric-name {
    width: 110px !important;
    font-size: 0.78rem !important;
  }

  .metric-val {
    font-size: 0.78rem !important;
  }

  /* ================= AD SLOTS ON MOBILE ================= */
  .adsense-banner-container {
    margin: 1rem auto;
  }

  .ad-slot-placeholder {
    padding: 10px 12px;
  }

  .ad-slot-placeholder span {
    font-size: 0.78rem;
  }

  .btn-ad-slot-contact {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  /* ================= MOBILE NEWS READER MODAL ================= */
  .modal-overlay {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .modal-content {
    padding: 1.1rem 1rem 2rem 1rem;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    width: 100%;
  }

  .modal-top-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .reader-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }

  .font-resizer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .font-resizer .toolbar-label {
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .btn-font-size {
    flex: 1;
    height: 40px; /* Generous touch target for mobile thumb */
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .audio-tts-controls {
    width: 100%;
  }

  .btn-audio-tts {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.92rem;
  }

  .reader-article-title {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
  }

  .reader-highlights-box {
    padding: 12px 14px;
    margin-bottom: 1.25rem;
  }

  .reader-highlights-box .highlights-title {
    font-size: 0.88rem;
  }
}

/* ================= GOOGLE ADSENSE & SPONSOR SLOTS ================= */
.adsense-banner-container {
  margin: 1.5rem auto;
  max-width: var(--max-width);
  width: 100%;
}

.ad-slot-placeholder {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.05) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1.5px dashed var(--gold-border);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  position: relative;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

body.theme-dark .ad-slot-placeholder {
  background: rgba(30, 41, 59, 0.6);
  border-color: #334155;
}

.ad-badge-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 10px;
}

body.theme-dark .ad-badge-label {
  background: rgba(255, 255, 255, 0.08);
}

.ad-placeholder-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-ad-slot-contact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #d97706;
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-ad-slot-contact:hover {
  background: #b45309;
}

/* ================= FOOTER VISITOR STATS ================= */
.footer-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 1.25rem auto;
  padding: 10px 20px;
  background: rgba(217, 119, 6, 0.06);
  border: 1px solid var(--gold-border);
  border-radius: 30px;
  max-width: 650px;
}

body.theme-dark .footer-stats-bar {
  background: rgba(30, 41, 59, 0.7);
  border-color: #334155;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-badge strong {
  color: var(--gold-primary);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pulse-online-dot {
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-online 1.8s infinite;
}

@keyframes pulse-online {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ================= HERO VISITOR STATS BAR ================= */
.hero-visitor-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.25rem 0 1.5rem 0;
}

.visitor-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.visitor-stat-badge.online {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  color: #065f46;
}

body.theme-dark .visitor-stat-badge.online {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.visitor-stat-badge strong {
  color: var(--gold-primary);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.visitor-stat-badge.online strong {
  color: #059669;
}

body.theme-dark .visitor-stat-badge.online strong {
  color: #10b981;
}

.visitor-stat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(2, 132, 199, 0.08);
  transition: all 0.2s ease;
}

.visitor-stat-link:hover {
  background: rgba(2, 132, 199, 0.16);
  color: #0369a1;
  transform: translateX(2px);
}

.highlight-stat-nav {
  color: #d97706 !important;
  font-weight: 700 !important;
}

/* ================= SECTION: SITE ANALYTICS DASHBOARD ================= */
.stats-badge-realtime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #059669;
}

body.theme-dark .stats-badge-realtime {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .stats-cards-grid {
    grid-template-columns: 1fr;
  }
}

.analytics-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analytics-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.12);
}

.analytics-card.online-card {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(145deg, var(--bg-surface), rgba(16, 185, 129, 0.04));
}

.analytics-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.analytics-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.analytics-badge-live {
  background: #10b981;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  animation: pulse-online 1.8s infinite;
}

.analytics-badge-total {
  background: var(--gold-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
}

.analytics-change {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

.analytics-change.up {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.analytics-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.online-card .analytics-number {
  color: #059669;
}

body.theme-dark .online-card .analytics-number {
  color: #34d399;
}

.analytics-subtext {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.4;
  flex: 1;
}

.analytics-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

body.theme-dark .analytics-bar {
  background: rgba(255, 255, 255, 0.1);
}

.analytics-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

.online-fill { background: #10b981; }
.today-fill { background: #d97706; }
.month-fill { background: #0284c7; }
.total-fill { background: #8b5cf6; }

/* ================= STATS DETAILS GRID ================= */
.stats-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .stats-details-grid {
    grid-template-columns: 1fr;
  }
}

.stats-detail-box {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.stats-box-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-border);
}

.metric-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.metric-name {
  width: 140px;
  color: var(--text-secondary);
  font-weight: 600;
  flex-shrink: 0;
}

.metric-meter {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

body.theme-dark .metric-meter {
  background: rgba(255, 255, 255, 0.1);
}

.metric-meter-bar {
  height: 100%;
  border-radius: 4px;
}

.metric-val {
  width: 40px;
  text-align: right;
  font-weight: 800;
  color: var(--text-primary);
}

.stats-quick-metrics {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-metric-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(217, 119, 6, 0.05);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
}

body.theme-dark .quick-metric-item {
  background: rgba(30, 41, 59, 0.6);
}

.quick-metric-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold-primary);
}

.quick-metric-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ================= VIRAL QUICK SHARE BAR ================= */
.viral-share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.5rem auto;
  max-width: 820px;
}

.btn-viral-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-viral-share.primary {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border-color: #b45309;
}

.btn-viral-share.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.35);
}

.btn-viral-share.zalo {
  background: #0068ff;
  color: #ffffff;
}

.btn-viral-share.zalo:hover {
  background: #0054cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 104, 255, 0.35);
}

.btn-viral-share.bookmark {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--gold-border);
}

.btn-viral-share.bookmark:hover {
  border-color: #d97706;
  color: #d97706;
  transform: translateY(-2px);
}

/* ================= CALCULATOR TABS & ROI INVESTMENT CALCULATOR ================= */
.calc-tabs-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--gold-border);
  padding-bottom: 4px;
}

.btn-calc-tab {
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-calc-tab:hover {
  color: var(--gold-primary);
}

.btn-calc-tab.active {
  color: #b45309;
  border-bottom-color: #d97706;
}

body.theme-dark .btn-calc-tab.active {
  color: #fde047;
  border-bottom-color: #fde047;
}

.roi-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.btn-roi-quick {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid var(--gold-border);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-roi-quick:hover {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
}

.roi-result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .roi-result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .roi-result-grid {
    grid-template-columns: 1fr;
  }
}

.roi-metric-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--gold-border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.roi-metric-card.profit-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.12) 100%);
  border-color: rgba(16, 185, 129, 0.4);
}

.roi-metric-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.roi-metric-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

.roi-metric-card.profit-highlight .roi-metric-val {
  color: #059669;
}

body.theme-dark .roi-metric-card.profit-highlight .roi-metric-val {
  color: #34d399;
}

.roi-savings-compare {
  margin-top: 1.25rem;
  padding: 14px 18px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.roi-savings-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.btn-copy-roi {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-roi:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

/* ================= FORECAST NEXT DAY & MARKET SENTIMENT ================= */
.forecast-next-day-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--gold-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.forecast-sentiment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 800px) {
  .forecast-sentiment-grid {
    grid-template-columns: 1fr;
  }
}

.sentiment-poll-card {
  background: rgba(217, 119, 6, 0.04);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 18px;
}

.sentiment-row {
  margin-bottom: 12px;
}

.sentiment-row-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.sentiment-bar-track {
  height: 9px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 5px;
  overflow: hidden;
}

body.theme-dark .sentiment-bar-track {
  background: rgba(255, 255, 255, 0.1);
}

.sentiment-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s ease;
}

.sentiment-bar-fill.up { background: #10b981; }
.sentiment-bar-fill.sideway { background: #f59e0b; }
.sentiment-bar-fill.down { background: #ef4444; }

/* ================= FAQ ACCORDION SECTION ================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1.5px solid var(--gold-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #d97706;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-icon-arrow {
  font-size: 0.9rem;
  color: #d97706;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px 20px;
}

/* ================= EXTENDED CALCULATORS (WORLD GOLD & KARAT GOLD) ================= */
.calc-tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--gold-border);
  padding-bottom: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.calc-tabs-bar::-webkit-scrollbar {
  display: none;
}

.calc-hint-note {
  background: rgba(217, 119, 6, 0.08);
  border: 1px dashed var(--gold-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 1rem;
}

.karat-badge-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 4px;
}

body.theme-dark .karat-badge-preview {
  color: #fde047;
  background: rgba(253, 224, 71, 0.15);
}

.spread-tag-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 6px;
}

.spread-tag-pill.higher {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.spread-tag-pill.fair {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ================= ECONOMIC CALENDAR & FED EVENTS ================= */
.econ-calendar-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--gold-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.econ-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gold-border);
}

.econ-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-econ-filter {
  background: transparent;
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-econ-filter:hover, .btn-econ-filter.active {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
}

.econ-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.econ-item-card {
  background: var(--bg-page);
  border: 1.5px solid var(--gold-border);
  border-radius: 14px;
  padding: 16px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.econ-item-card:hover {
  border-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.econ-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.econ-impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.econ-impact-badge.critical {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.econ-impact-badge.high {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.econ-impact-badge.medium {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.econ-event-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.econ-event-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.econ-event-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.econ-gold-effect {
  background: rgba(217, 119, 6, 0.06);
  border-left: 3px solid #d97706;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.5;
}




