/* ==========================================================================
   KIM PHÚC JEWELRY - THEME & STYLESHEET
   Thiết kế giao diện bảng giá vàng & tài chính Realtime
   Tương thích hoàn hảo: Mobile, Tablet, PC
   ========================================================================== */

:root {
  /* Typography - Đồng bộ 100% Font Tiếng Việt Sắc Nét Chuẩn Trang Chủ */
  --font-serif: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-brand: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-numbers: 'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Color Palette - Hoàng Gia Kim Hoàn & Thụy Sĩ Xa Xỉ (Imperial Jewelry & Swiss Bullion) */
  --primary-gold: #b3821a;          /* Rich Royal Champagne Gold */
  --primary-gold-dark: #8c6412;     /* Deep Antique Gold for crisp contrast */
  --primary-gold-hover: #9c7115;
  --primary-gold-light: #faf5e8;
  --primary-gold-border: rgba(179, 130, 26, 0.28);
  --primary-gold-glow: rgba(179, 130, 26, 0.18);
  
  --color-up: #0d7465;              /* Jade / Emerald Green (Lục bảo kim hoàn - Sinh lời & Bình an) */
  --color-up-bg: rgba(13, 116, 101, 0.09);
  --color-up-border: rgba(13, 116, 101, 0.25);

  --color-down: #991b1b;            /* Imperial Ruby / Bordeaux Wine Red (Hồng ngọc hoàng gia) */
  --color-down-bg: rgba(153, 27, 27, 0.08);
  --color-down-border: rgba(153, 27, 27, 0.22);

  --color-neutral: #78716c;         /* Warm Stone Taupe */
  --color-warning: #d97706;         /* Fine Amber */

  /* Dark Theme (Obsidian Vault & Midnight Bronze) */
  --bg-main: #0c0e11;
  --bg-card: #15181e;
  --bg-card-hover: #1c212a;
  --bg-card-subtle: #191d24;
  --border-color: rgba(212, 175, 55, 0.14);
  --border-highlight: rgba(229, 193, 88, 0.38);
  
  --text-main: #f5f2eb;             /* Warm Pearl White */
  --text-muted: #a69f92;            /* Silk Muted Taupe */
  --text-dim: #716b60;
  --text-gold: #e2be67;

  --header-bg: rgba(15, 17, 21, 0.88);
  --ticker-bg: #090a0d;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 6px 26px rgba(212, 175, 55, 0.16);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Khóa toàn trang theo 1 Theme tối mắt dịu Obsidian & Midnight Gold, không chói gắt */
[data-theme="dark"], [data-theme="light"] {
  --bg-main: #0c0e11;
  --bg-card: #15181e;
  --bg-card-hover: #1c212a;
  --bg-card-subtle: #191d24;
  --border-color: rgba(212, 175, 55, 0.14);
  --border-highlight: rgba(229, 193, 88, 0.38);
  
  --text-main: #f5f2eb;
  --text-muted: #a69f92;
  --text-dim: #716b60;
  --text-gold: #e2be67;

  --header-bg: rgba(15, 17, 21, 0.88);
  --ticker-bg: #090a0d;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 6px 26px rgba(212, 175, 55, 0.16);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  background-color: #0b0d13;
  background-image: 
    radial-gradient(circle at 10% 8%, rgba(212, 175, 55, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 90% 25%, rgba(59, 130, 246, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 75%, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tuỳ chỉnh thanh cuộn siêu mảnh chuẩn Apple macOS */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.28);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.55);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--text-main);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* Ticker Bar (Top Realtime Strip) */
.ticker-wrap {
  width: 100%;
  background: #050608;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #fbf9f4;
  overflow: hidden;
  position: relative;
  font-size: 0.82rem;
  z-index: 40;
  display: flex;
  align-items: center;
  height: 38px;
}

.ticker-badge {
  background: #07090e;
  border-right: 1px solid rgba(212, 175, 55, 0.35);
  color: #fde047;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  box-shadow: 10px 0 20px rgba(5, 6, 8, 0.95);
}

[data-theme="light"] .ticker-badge {
  background: linear-gradient(135deg, #b8860b 0%, #dfba63 50%, #94691e 100%);
  color: #14120e;
}

.ticker-pulse {
  width: 7px;
  height: 7px;
  background-color: #0d7465;
  box-shadow: 0 0 6px #0d7465;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

[data-theme="light"] .ticker-pulse {
  background-color: #0d7465;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  width: max-content;
  flex-shrink: 0;
  gap: 36px;
  white-space: nowrap;
  padding-left: 16px;
  animation: tickerMarquee 30s linear infinite;
  -webkit-animation: tickerMarquee 30s linear infinite;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .ticker-wrap:hover .ticker-content {
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
  }
}

@-webkit-keyframes tickerMarquee {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes tickerMarquee {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-item .name {
  color: #b5ac9e;
  font-weight: 500;
}

.ticker-item .val {
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  transition: var(--transition);
}

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

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

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #c59b3f, #94691e);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.28);
  color: #ffffff;
  font-size: 1.35rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-info h1 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.2;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .brand-info h1 {
  color: #ffffff;
}

.brand-info p {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Header Navigation (Ngang hàng cạnh logo) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  flex: 1;
  max-width: 820px;
  margin: 0 12px;
}

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

.nav-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.nav-item-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  color: #f1f5f9;
  transform: translateY(-1px);
}

.nav-item-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(184, 134, 11, 0.4));
  border-color: #d4af37;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.nav-item-btn .nav-icon {
  font-size: 0.95rem;
}

.mobile-menu-toggle {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-up);
  box-shadow: 0 0 8px var(--color-up);
  animation: pulse 1.8s infinite;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  transform: translateY(-1px);
}

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #b8860b 0%, #9a6f17 100%);
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(184, 134, 11, 0.22);
  white-space: nowrap;
}

.btn-refresh:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Simple Minimalist Update Note */
.simple-update-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 22px;
  margin: 0 auto 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  width: fit-content;
  max-width: 95%;
  letter-spacing: -0.01em;
  text-align: center;
  flex-wrap: wrap;
  line-height: 1.45;
}

.simple-update-note strong {
  color: var(--text-main);
  font-weight: 600;
}

.note-clock {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.note-divider {
  color: var(--text-dim);
  opacity: 0.6;
  flex-shrink: 0;
}

.note-status {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
  font-style: italic;
}

/* Legal Price Disclaimer Banner (Fallback) */
.price-disclaimer-box {
  background: var(--primary-gold-light);
  border: 1px solid var(--primary-gold-border);
  border-left: 4px solid var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--text-main);
}

.price-disclaimer-box .icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.price-disclaimer-box strong {
  color: var(--primary-gold-dark);
}

/* Timestamp Badges */
.time-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.time-tag.time-fresh {
  border-color: var(--color-up-border);
  color: var(--color-up);
  background: var(--color-up-bg);
}

.time-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Quick Summary Hero Cards - Thiết Kế Đồng Bộ Ánh Kim Kim Hoàn */
.hero-overview {
  padding: 20px 0 12px;
}

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

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

/* Chỉ viền ánh kim hoàng gia - Tinh tế, không dùng màu cầu vồng AI */
.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.4), transparent);
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-highlight);
}

.metric-card:hover::before {
  background: linear-gradient(90deg, #9e731b, #dfba63, #9e731b);
}

/* Thẻ nổi bật giá vàng miếng SJC */
.metric-card.gold-card {
  background: linear-gradient(180deg, rgba(251, 246, 234, 0.7) 0%, var(--bg-card) 100%);
  border-color: rgba(184, 142, 60, 0.4);
}

[data-theme="dark"] .metric-card.gold-card {
  background: linear-gradient(180deg, rgba(30, 24, 14, 0.7) 0%, var(--bg-card) 100%);
  border-color: rgba(218, 165, 32, 0.45);
}

/* Thẻ Vàng Thế Giới */
.metric-card.world-card {
  border-color: rgba(59, 130, 246, 0.35);
}

[data-theme="dark"] .metric-card.world-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, var(--bg-card) 100%);
  border-color: rgba(59, 130, 246, 0.35);
}

/* Thẻ Bitcoin / Crypto */
.metric-card.btc-card {
  border-color: rgba(139, 92, 246, 0.35);
}

[data-theme="dark"] .metric-card.btc-card {
  background: linear-gradient(180deg, rgba(30, 15, 45, 0.7) 0%, var(--bg-card) 100%);
  border-color: rgba(139, 92, 246, 0.35);
}

/* Thẻ VN-Index */
.metric-card.vnindex-card {
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .metric-card.vnindex-card {
  background: linear-gradient(180deg, rgba(10, 30, 22, 0.7) 0%, var(--bg-card) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.metric-title {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.metric-badge {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-up {
  background: var(--color-up-bg);
  color: var(--color-up);
  border: 1px solid var(--color-up-border);
}

.badge-down {
  background: var(--color-down-bg);
  color: var(--color-down);
  border: 1px solid var(--color-down-border);
}

.badge-neutral {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 700;
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.metric-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* Nav Tabs - Phong Cách Kim Hoàn Đẳng Cấp */
.tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: sticky;
  top: 56px;
  z-index: 900;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.tab-label-short {
  display: none;
}

.tab-label-full {
  display: inline;
}

.tab-btn:hover {
  color: var(--primary-gold-dark);
  border-color: var(--primary-gold);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: linear-gradient(135deg, #b8860b 0%, #a67c1e 100%);
  border-color: #8c6412;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.25);
}

/* Section Containers - Hiển thị liên tục trên một trang chủ duy nhất */
.content-section {
  display: block !important;
  margin-bottom: 30px;
  animation: fadeIn 0.3s ease;
  scroll-margin-top: 115px;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid rgba(218, 165, 32, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 26px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b3821a, #e2be67, #b3821a);
}

[data-theme="light"] .section-card {
  background: #ffffff;
  border-color: rgba(184, 142, 60, 0.32);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.08);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

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

.section-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-gold-light);
  color: var(--primary-gold-dark);
  border: 1px solid var(--primary-gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.08);
}

[data-theme="dark"] .section-icon {
  background: rgba(212, 175, 55, 0.12);
  color: var(--text-gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-input {
  background: rgba(22, 27, 38, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 180px;
}

.search-input:focus {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
  background: rgba(26, 32, 45, 0.9);
}

.view-toggle {
  display: flex;
  background: rgba(22, 27, 38, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 3px;
}

.view-toggle button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.view-toggle button.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(184, 134, 11, 0.45) 100%);
  color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   KIM PHÚC JEWELRY - BOARD & DISPLAY STYLING
   ========================================================================== */
.kp-led-board {
  background: #000000;
  border: 2px solid #b8860b;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25), inset 0 0 15px rgba(0, 0, 0, 0.9);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.kp-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #332709;
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.kp-logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kp-emblem {
  width: 48px;
  height: 48px;
  border: 1px solid #ffd700;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #ffd700;
  font-weight: 900;
  line-height: 1;
}

.kp-emblem small {
  font-size: 0.55rem;
  letter-spacing: 0.5px;
}

.kp-title-box {
  text-align: center;
  flex: 1;
}

.kp-title-box h3 {
  font-family: var(--font-sans);
  color: #ffd700;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.kp-time-pill {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
  margin-top: 2px;
}

.kp-unit-text {
  font-size: 0.78rem;
  color: #ffcc00;
}

.kp-god-wealth {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 8px #ffd700);
}

/* LED Price Table */
.kp-led-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}

.kp-led-table th {
  color: #ffd700;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px dashed #443505;
}

.kp-led-table th,
.kp-led-table td {
  white-space: nowrap;
}

.kp-led-table td:first-child {
  white-space: normal;
  min-width: 150px;
}

.kp-led-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #1a1a1a;
  vertical-align: middle;
}

.kp-item-name {
  color: #ffff00;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.kp-price-red {
  color: #ff2222;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 10px rgba(255, 34, 34, 0.4);
}

.kp-spread-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffff00;
  font-size: 0.82rem;
  font-weight: 700;
  background: #1a1505;
  border: 1px solid #ffd70066;
  border-radius: 4px;
  padding: 3px 8px;
}

.kp-promo-banner {
  margin-top: 18px;
  padding: 14px;
  background: #0d0b03;
  border: 1px solid #ffd70055;
  border-radius: 8px;
  text-align: center;
}

.kp-promo-line1 {
  color: #ffd700;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.kp-promo-line2 {
  color: #ffea75;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Light Theme - Clean Imperial Golden Plaque */
[data-theme="light"] .kp-led-board {
  background: #ffffff;
  border: 2px solid #b8860b;
  box-shadow: 0 8px 30px rgba(184, 134, 11, 0.08), inset 0 0 0 1px rgba(212, 175, 55, 0.25);
  color: var(--text-main);
}

[data-theme="light"] .kp-board-top {
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

[data-theme="light"] .kp-emblem {
  background: #fdfbf6;
  border: 1.5px solid #b8860b;
  color: #926715;
}

[data-theme="light"] .kp-title-box h3 {
  font-family: var(--font-brand);
  color: #1c1917;
  letter-spacing: 0.06em;
}

[data-theme="light"] .kp-time-pill {
  color: #926715;
  background: var(--primary-gold-light);
  border: 1px solid var(--primary-gold-border);
  padding: 3px 14px;
  border-radius: var(--radius-full);
  display: inline-block;
}

[data-theme="light"] .kp-unit-text {
  color: #78716c;
}

[data-theme="light"] .kp-led-table th {
  font-family: var(--font-sans);
  color: #78716c;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(184, 134, 11, 0.18);
}

[data-theme="light"] .kp-led-table td {
  border-bottom: 1px solid rgba(184, 134, 11, 0.08);
}

[data-theme="light"] .kp-item-name {
  color: #1c1917;
  font-weight: 700;
}

[data-theme="light"] .kp-price-red {
  color: var(--color-down);
  text-shadow: none;
}

[data-theme="light"] .kp-spread-badge {
  background: var(--primary-gold-light);
  color: var(--primary-gold-dark);
  border: 1px solid var(--primary-gold-border);
}

[data-theme="light"] .kp-promo-banner {
  background: linear-gradient(135deg, #fdfbf7 0%, #fbf6ec 100%);
  border: 1px solid rgba(184, 134, 11, 0.28);
}

[data-theme="light"] .kp-promo-line1 {
  color: #926715;
  font-weight: 800;
  letter-spacing: 0.04em;
}

[data-theme="light"] .kp-promo-line2 {
  color: #6b6357;
}

/* Tables (Desktop & Tablet) */
.mobile-table-hint {
  display: none;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--bg-card-subtle);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(184, 134, 11, 0.4);
  border-radius: 4px;
}

.custom-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.custom-table th,
.custom-table td {
  white-space: nowrap;
}

.custom-table td:first-child {
  white-space: normal;
  min-width: 180px;
}

.custom-table th {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 13px 14px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid rgba(184, 142, 60, 0.22);
}

.custom-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  vertical-align: middle;
}

.custom-table tr:hover td {
  background: rgba(184, 142, 60, 0.035);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-main);
}

.brand-logo-pill {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.brand-kp { background: linear-gradient(135deg, #b8860b, #7d5907); color: #fff; }
.brand-skp { background: linear-gradient(135deg, #d4af37, #aa771c); color: #fff; font-weight: 800; box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4); }
.brand-sjc { background: linear-gradient(135deg, #991b1b, #7f1d1d); }
.brand-doji { background: linear-gradient(135deg, #b91c1c, #991b1b); }
.brand-pnj { background: linear-gradient(135deg, #1e3a8a, #172554); }
.brand-btmc { background: linear-gradient(135deg, #b45309, #78350f); }
.brand-mihong { background: linear-gradient(135deg, #0d7465, #044e43); }
.brand-phuquy { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.brand-btmh { background: linear-gradient(135deg, #c2410c, #7c2d12); }
.brand-ntj,
.brand-ngoctham { background: linear-gradient(135deg, #0284c7, #0369a1); color: #fff; }
.brand-kimthanh { background: linear-gradient(135deg, #d97706, #92400e); }
.brand-huythanh { background: linear-gradient(135deg, #e11d48, #9f1239); }

.price-cell {
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.price-buy {
  color: var(--color-up);
  font-weight: 700;
}

.price-sell {
  color: var(--color-down);
  font-weight: 700;
}

.spread-cell {
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile Cards Grid View */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.gold-item-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}

.gold-item-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.card-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.3;
}

.card-prices-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-card);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.price-col {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.card-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* World Gold & Conversion Section */
/* World Gold & Conversion Section */
.title-mobile {
  display: none;
}

.comparison-banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.comparison-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.comparison-box:hover {
  border-color: var(--primary-gold-border);
  transform: translateY(-2px);
}

.comparison-box.highlight {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.03));
  border-color: rgba(212, 175, 55, 0.4);
}

.comparison-box h4 {
  font-size: 0.82rem;
  color: var(--text-gold);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comp-icon {
  font-size: 1rem;
}

.comparison-box .comp-val {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: var(--text-main);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 4px 0;
}

.comparison-box .comp-val.val-spread {
  color: var(--primary-gold);
}

.comparison-box p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* 4 Overview Metric Cards in World Gold */
.world-gold-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* TradingView Live Card & Interactive Widget */
.tradingview-live-card {
  margin-bottom: 24px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.tradingview-card-header {
  padding: 12px 18px;
  background: rgba(212, 175, 55, 0.05);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.tv-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-main);
}

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

.tv-badge {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: var(--bg-body);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-weight: 600;
}

/* Gold International Conversion Formula Card */
.gold-formula-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  margin-top: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.formula-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.formula-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.06));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
}

.formula-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.formula-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.formula-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.09), rgba(212, 175, 55, 0.02));
  border: 1px dashed var(--primary-gold-border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
  text-align: center;
}

.formula-math {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(0.85rem, 1.8vw, 1.02rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.6;
}

.math-target {
  color: var(--primary-gold-dark);
  font-weight: 800;
}

.math-eq {
  color: var(--text-dim);
  font-weight: 800;
}

.math-group {
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.math-plus {
  color: var(--text-dim);
  font-weight: 800;
}

.math-fee {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.formula-item {
  display: flex;
  gap: 12px;
  background: var(--bg-body);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.formula-num {
  font-family: var(--font-numbers);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-gold);
  line-height: 1;
}

.formula-text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.formula-text strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

/* Stock Chart & Sparklines */
.chart-container {
  width: 100%;
  height: 220px;
  position: relative;
  margin-top: 10px;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Bank Logos */
.bank-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.86rem;
}

.bank-vcb { color: #00875a; }
.bank-bidv { color: #0284c7; }
.bank-ctg { color: #2563eb; }
.bank-agri { color: #dc2626; }
.bank-tcb { color: #ea580c; }

/* Bank Switcher Pills */
.bank-switch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px 0;
  align-items: center;
}

.bank-pill-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: inherit;
}

.bank-pill-btn:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.bank-pill-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.32) 0%, rgba(184, 134, 11, 0.48) 100%);
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.65);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-0.5px);
}

/* Khung bảng tỷ giá riêng biệt từng ngân hàng */
.bank-forex-block {
  background: rgba(18, 23, 33, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.bank-forex-block:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transform: translateY(-1.5px);
}

.bank-forex-block:last-child {
  margin-bottom: 0;
}

.bank-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.bank-block-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bank-avatar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(218, 165, 32, 0.12);
  border: 1px solid rgba(218, 165, 32, 0.3);
  flex-shrink: 0;
}

.bank-avatar-icon.bank-vcb { background: rgba(0, 135, 90, 0.12); border-color: rgba(0, 135, 90, 0.3); color: #00875a; }
.bank-avatar-icon.bank-bidv { background: rgba(2, 132, 199, 0.12); border-color: rgba(2, 132, 199, 0.3); color: #0284c7; }
.bank-avatar-icon.bank-ctg { background: rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.3); color: #2563eb; }
.bank-avatar-icon.bank-agri { background: rgba(220, 38, 38, 0.12); border-color: rgba(220, 38, 38, 0.3); color: #dc2626; }
.bank-avatar-icon.bank-tcb { background: rgba(234, 88, 12, 0.12); border-color: rgba(234, 88, 12, 0.3); color: #ea580c; }

.bank-block-heading {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-color);
}

.bank-block-sub {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bank-source-btn {
  font-size: 0.78rem;
  color: var(--primary-gold-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(218, 165, 32, 0.08);
  border: 1px solid rgba(218, 165, 32, 0.2);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bank-source-btn:hover {
  background: rgba(218, 165, 32, 0.18);
  color: var(--primary-gold);
}

.currency-code-cell {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.currency-code-text {
  font-family: var(--font-numbers, -apple-system, sans-serif);
  font-weight: 800;
  color: #2D2319;
  letter-spacing: 0.03em;
}

.currency-flag {
  display: none !important;
}

@media (max-width: 768px) {
  .bank-forex-block {
    padding: 14px 12px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
  }
  .bank-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .bank-pill-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   BLOCK CHẠY XOAY VÒNG TIN TỨC (NEWS CAROUSEL)
   ========================================================================== */
.news-carousel-block {
  background: linear-gradient(145deg, #131724 0%, #0f121a 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 28px;
  margin-bottom: 28px;
  position: relative;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

[data-theme="light"] .news-carousel-block {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.news-carousel-block:hover {
  border-color: var(--border-highlight);
}

.news-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.news-carousel-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-pulse-badge {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

.news-carousel-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.news-carousel-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.news-carousel-nav-btns {
  display: flex;
  gap: 8px;
}

.carousel-nav-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
  transition: all 0.25s ease;
  user-select: none;
}

.carousel-nav-btn:hover {
  background: var(--primary-gold);
  color: #000000;
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-gold);
  transform: scale(1.08);
}

.carousel-nav-btn:active {
  transform: scale(0.95);
}

/* Wrapper & Track */
.news-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 6px 2px 10px 2px;
  cursor: grab;
}

.news-carousel-wrapper:active {
  cursor: grabbing;
}

.news-carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.news-carousel-slide {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  display: flex;
}

@media (max-width: 1024px) {
  .news-carousel-slide {
    flex: 0 0 calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  .news-carousel-slide {
    flex: 0 0 100%;
  }
}

.news-carousel-slide .news-card {
  width: 100%;
  flex: 1;
  margin: 0;
  background: var(--bg-card-subtle);
}

.news-carousel-slide .news-card:hover {
  background: var(--bg-card);
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-gold);
}

/* Indicators / Dots */
.news-carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 16px 0 18px 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 12px;
  background: var(--primary-gold);
  box-shadow: 0 0 10px var(--primary-gold-glow);
}

.carousel-dot:hover:not(.active) {
  background: var(--text-muted);
}

/* Nút Xem Thêm Mở Tất Cả Bài Viết */
.news-view-all-wrap {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.btn-view-all-news {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-gold-light);
  border: 1px solid var(--primary-gold-border);
  color: var(--primary-gold-dark);
  padding: 11px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-view-all-news:hover {
  background: linear-gradient(135deg, #b8860b 0%, #a67c1e 100%);
  color: #ffffff;
  border-color: #8c6412;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.25);
  transform: translateY(-2px);
}

.btn-view-all-news:hover .view-all-arrow {
  transform: translateX(4px);
}

.view-all-arrow {
  transition: transform 0.25s ease;
  display: inline-block;
}

/* Modal Tất Cả Bài Viết Controls */
.modal-news-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.category-pills-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-pills-wrap .tab-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* ==========================================================================
   TIN TỨC & BÀI VIẾT SEO STYLING
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.news-card {
  background: rgba(18, 23, 33, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 16px rgba(212, 175, 55, 0.1);
}

.news-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  overflow: hidden;
  position: relative;
  background: var(--bg-card-subtle);
}

.news-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

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

.news-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.news-cat-badge {
  background: var(--primary-gold-light);
  color: var(--primary-gold-dark);
  border: 1px solid var(--primary-gold-border);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-date {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-gold);
  font-weight: 600;
}

/* Article Reader Modal */
.reader-image-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
}

.reader-image-wrap img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.article-reader-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-reader-content h3 {
  font-size: 1.2rem;
  color: var(--text-gold);
  margin: 20px 0 10px;
}

.article-reader-content p {
  margin-bottom: 14px;
  color: var(--text-muted);
}

.article-reader-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.article-reader-content li {
  margin-bottom: 6px;
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 22px;
  background: var(--bg-card-subtle);
}

.admin-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab-btn:hover {
  color: var(--text-main);
}

.admin-tab-btn.active {
  color: var(--text-gold);
  border-bottom-color: var(--primary-gold);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999; /* Đảm bảo luôn nằm trên Header (z-index 1000) và Ticker */
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary-gold-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .modal-header h3 {
  color: var(--text-gold);
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
}

.btn-close-modal:hover {
  color: var(--color-down);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

.modal-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.btn-secondary {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-gold);
}

.btn-primary {
  padding: 9px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #b8860b 0%, #9a6f17 100%);
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(184, 134, 11, 0.25);
  transition: var(--transition);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.footer-lock-btn {
  background: none;
  border: 1px dashed var(--border-color);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-lock-btn:hover {
  color: var(--primary-gold-dark);
  border-color: var(--primary-gold);
  background: var(--bg-card-subtle);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--primary-gold);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

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

/* Footer */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 26px 0 22px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-top-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-gold-dark);
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="dark"] .footer-brand {
  color: var(--text-gold);
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-main);
  transition: var(--transition);
}

.footer-contact-item:hover {
  border-color: var(--primary-gold);
  background: var(--bg-card);
}

.footer-email-link {
  color: var(--primary-gold);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-email-link:hover {
  text-decoration: underline;
  color: var(--primary-gold-hover);
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOÀN DIỆN TỐI ƯU GIAO DIỆN TABLET & MOBILE (KHÔNG CẮT CHỮ, TRÀN VIỀN)
   ========================================================================== */

/* 1. TABLET BREAKPOINT (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .metric-card {
    padding: 16px;
  }
  .metric-sub {
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 0.74rem;
  }
  .news-carousel-slide {
    flex: 0 0 calc((100% - 18px) / 2);
  }
  .comparison-banner {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
  }
  .comparison-box .comp-val {
    font-size: 1.35rem;
  }
  .world-gold-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .section-card {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   2. PHABLET & TABLET PORTRAIT (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Chống hoàn toàn tràn ngang trang web */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container {
    padding: 0 12px;
  }

  /* Header tối ưu gọn gàng, vừa vặn không tràn nút */
  .app-header {
    padding: 8px 0;
  }
  .header-content {
    gap: 6px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 0.92rem;
    border-radius: 7px;
    flex-shrink: 0;
  }
  .brand-info h1 {
    font-size: 0.96rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-info p {
    display: none;
  }
  .header-actions {
    gap: 4px;
    flex-shrink: 0;
  }
  .status-pill {
    padding: 5px 6px;
  }
  .status-pill .status-text {
    display: none;
  }
  .btn-refresh {
    padding: 0 8px;
    height: 32px;
    font-size: 0.74rem;
    gap: 4px;
  }
  .btn-refresh .btn-refresh-text {
    display: none;
  }
  .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
    border-radius: 6px;
  }

  /* 4 Thẻ Hero Overview dạng lưới 2x2 gọn gàng, tiết kiệm chiều cao */
  .hero-overview {
    padding: 10px 0 6px;
  }
  .hero-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .metric-card {
    padding: 10px 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .metric-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 4px;
  }
  .metric-title {
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    flex: 1;
    color: var(--text-dim);
  }
  .metric-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .metric-value {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 3px;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .metric-sub {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    font-size: 0.68rem;
    line-height: 1.25;
  }

  /* Thanh Tabs chuyển đổi: Cuộn ngang mượt mà, tên tab ngắn gọn, không bị cắt chữ */
  .tabs-nav {
    padding: 6px 0 10px;
    gap: 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .tab-btn {
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 8px;
    flex-shrink: 0;
    gap: 5px;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  .tab-label-full {
    display: none !important;
  }
  .tab-label-short {
    display: inline !important;
  }

  /* Banner thông báo cập nhật tối giản (1 dòng duy nhất, không bị che mất đồng hồ) */
  .simple-update-note {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 14px;
    margin: 4px auto 14px;
    width: fit-content;
    max-width: 95%;
    font-size: 0.74rem;
    border-radius: 20px;
    white-space: nowrap;
  }
  .simple-update-note .note-status,
  .simple-update-note .note-divider {
    display: none !important;
  }

  /* =========================================================================
     BỘ CHUYỂN ĐỔI CHẾ ĐỘ XEM (THU GỌN / BẢNG / THẺ) TRÊN ĐIỆN THOẠI & TABLET
     ========================================================================= */
  .view-toggle {
    display: flex !important;
    width: 100%;
    background: var(--bg-card-subtle);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    gap: 4px;
  }
  .view-toggle button {
    flex: 1;
    text-align: center;
    padding: 7px 4px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
  }
  .view-toggle button.active {
    background: var(--primary-gold);
    color: #000;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(218, 165, 32, 0.3);
  }

  /* Thẻ hiển thị bảng giá tự do theo chế độ người dùng chọn */
  #goldCardsView,
  #forexCardsView {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  /* Ô tìm kiếm chiếm toàn bộ chiều ngang */
  .filter-bar {
    width: 100%;
  }
  .search-input {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.84rem;
    padding: 9px 12px;
    border-radius: 8px;
  }

  /* Section Card & Tiêu đề */
  .section-card {
    padding: 14px 10px;
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .section-title-wrap {
    gap: 8px;
    align-items: center;
  }
  .section-icon {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .section-title {
    font-size: 1.05rem;
    line-height: 1.3;
  }
  .section-subtitle {
    font-size: 0.72rem;
    line-height: 1.35;
    margin-top: 2px;
  }

  /* Thẻ Vàng (Gold Item Card) Tối Ưu Từng Pixel Trên Mobile */
  .gold-item-card {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
  }
  .card-item-header {
    margin-bottom: 8px;
  }
  .card-item-header .brand-badge {
    gap: 8px;
    min-width: 0;
  }
  .card-item-header .brand-logo-pill {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
    flex-shrink: 0;
  }
  .card-item-header .brand-badge div {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
  }
  .card-prices-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg-card-subtle);
    margin-bottom: 8px;
  }
  .price-col .price-label {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
  }
  .price-col .price-cell {
    font-size: 1.15rem !important;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
  .card-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    flex-wrap: wrap;
    gap: 4px;
  }

  /* =========================================================================
     KHỐI NHẬN ĐỊNH THỊ TRƯỜNG & KHUYẾN NGHỊ TRÊN MOBILE
     ========================================================================= */
  .market-analysis-card {
    margin-top: 18px;
    padding: 14px 12px;
    border-radius: 12px;
    margin-bottom: 16px;
  }

  .analysis-card-top-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
    margin-bottom: 8px;
  }

  .analysis-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
  }

  .analysis-header-left {
    gap: 10px;
  }

  .analysis-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .analysis-title {
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .analysis-subtitle {
    font-size: 0.72rem;
  }

  .analysis-header-right {
    justify-content: space-between;
    width: 100%;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
  }

  .analysis-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    white-space: nowrap;
  }

  /* 4 Thẻ chỉ số khuyến nghị: 2 cột x 2 hàng ngay hàng thẳng lối */
  .advice-metric-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    margin-bottom: 12px;
  }

  .advice-metric-card {
    padding: 8px 10px !important;
    border-radius: 8px;
    min-height: 78px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
  }

  .advice-metric-label {
    font-size: 0.68rem;
    margin-bottom: 2px;
    line-height: 1.2;
    color: var(--text-dim);
    font-weight: 700;
  }

  .advice-metric-val {
    font-size: 0.94rem !important;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }

  .advice-metric-sub {
    font-size: 0.65rem;
    line-height: 1.2;
    color: var(--text-muted);
    margin-top: 2px;
    word-break: break-word;
  }

  /* 2 Cột nhận định chuyên gia */
  .analysis-columns-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .analysis-col-card {
    padding: 12px 14px;
  }

  .analysis-col-header h4 {
    font-size: 0.9rem;
  }

  .analysis-col-content {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* =========================================================================
     BẢNG GIÁ DẠNG BẢNG (CUSTOM-TABLE) GHIM CỐ ĐỊNH CỘT 1 KHI CUỘN NGANG
     ========================================================================= */
  .mobile-table-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-bottom: 6px;
    padding: 4px 8px;
    background: var(--bg-card-subtle);
    border-radius: 6px;
    width: fit-content;
  }

  .custom-table {
    min-width: 650px;
    font-size: 0.82rem;
  }

  .custom-table th,
  .custom-table td {
    padding: 9px 10px;
  }

  .custom-table th:first-child,
  .custom-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--bg-card);
    min-width: 130px;
    max-width: 160px;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.08);
  }

  .custom-table th {
    z-index: 2;
  }

  .custom-table th:first-child {
    z-index: 4;
  }

  /* Tiêu đề ngắn gọn trên mobile */
  .title-full {
    display: none;
  }
  .title-mobile {
    display: inline;
  }

  /* Banner so sánh giá quốc tế trên điện thoại */
  .comparison-banner {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    border: none;
    gap: 10px;
    margin-bottom: 14px;
  }
  .comparison-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  .comparison-box.highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.03));
    border-color: rgba(212, 175, 55, 0.4);
  }
  .comparison-box h4 {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }
  .comparison-box .comp-val {
    font-size: 1.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .comparison-box p {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  /* 4 Thẻ chỉ số thị trường quốc tế */
  .world-gold-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  .world-gold-grid .gold-item-card {
    padding: 10px 12px;
    min-height: 74px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    box-sizing: border-box;
  }
  .world-gold-grid .price-label {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: var(--text-dim);
  }
  .world-gold-grid .metric-value {
    font-size: 1.15rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
  }

  .tradingview-card-header {
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .gold-formula-card {
    padding: 16px 14px;
  }
  .formula-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .formula-box {
    padding: 12px 14px;
  }
  .formula-math {
    font-size: 0.8rem;
    gap: 6px;
  }

  /* Chiều cao biểu đồ trên điện thoại */
  .chart-container {
    height: 180px;
  }

  /* Carousel Tin Tức */
  .news-carousel-block {
    padding: 14px 10px;
    border-radius: 12px;
    margin-top: 14px;
  }
  .news-carousel-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  .news-carousel-title {
    font-size: 1.02rem;
  }
  .news-carousel-subtitle {
    font-size: 0.72rem;
  }
  .news-carousel-slide {
    flex: 0 0 100%;
  }
  .news-card-img-wrap {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
  }
  .news-card-body {
    padding: 10px 12px 12px;
  }
  .news-title {
    font-size: 0.94rem;
  }
  .news-excerpt {
    font-size: 0.78rem;
  }
  .btn-view-all-news {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  /* Footer trên điện thoại */
  .app-footer {
    padding: 18px 0 14px;
  }
  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-brand {
    font-size: 0.92rem;
    flex-wrap: wrap;
  }
  .footer-contact-item {
    width: 100%;
    word-break: break-all;
    font-size: 0.74rem;
    justify-content: flex-start;
    padding: 6px 10px;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.72rem;
  }
  .footer-bottom-row > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  /* Modals trên mobile */
  .modal-overlay {
    padding: 10px;
    z-index: 99999;
  }
  .modal-card {
    max-height: 88vh;
    width: 100%;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-header {
    padding: 12px 14px;
    flex-shrink: 0;
  }
  .modal-header h3 {
    font-size: 1.05rem;
  }
  .modal-body {
    padding: 14px 12px;
    flex: 1;
    overflow-y: auto;
  }
  .modal-footer {
    padding: 10px 14px;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   3. MOBILE PHONES (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  .app-header {
    padding: 6px 0;
  }
  .brand {
    gap: 6px;
    min-width: 0;
  }
  .brand-icon {
    width: 25px;
    height: 25px;
    font-size: 0.78rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.2);
  }
  .brand-info h1 {
    font-size: 0.86rem;
    letter-spacing: 0.01em;
  }
  .ticker-wrap {
    height: 30px;
    font-size: 0.7rem;
  }
  .ticker-badge {
    padding: 0 8px;
    font-size: 0.62rem;
    gap: 5px;
  }
  .metric-card {
    padding: 8px 8px;
  }
  .metric-value {
    font-size: 1.08rem;
  }
}

/* ==========================================================================
   4. ULTRA-COMPACT PHONES (max-width: 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .brand-info h1 {
    font-size: 0.78rem;
  }
  .brand-icon {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }
  .btn-refresh {
    padding: 0 5px;
    height: 28px;
    font-size: 0.68rem;
  }
  .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  .header-actions {
    gap: 3px;
  }
  .comparison-box .comp-val {
    font-size: 1.15rem;
  }
  .world-gold-grid .metric-value {
    font-size: 1rem !important;
  }
}

/* ==========================================================================
   5. YOAST SEO ARTICLE STUDIO & WYSIWYG RICH TEXT EDITOR
   ========================================================================== */
.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-bottom: 1px solid rgba(218, 165, 32, 0.2);
  border-radius: 8px 8px 0 0;
  padding: 6px 10px;
}

.toolbar-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toolbar-btn:hover {
  background: rgba(218, 165, 32, 0.15);
  border-color: rgba(218, 165, 32, 0.35);
  color: var(--text-gold);
}

.toolbar-btn.active {
  background: var(--primary-gold);
  color: #14120e;
  border-color: var(--primary-gold);
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  margin: 0 4px;
}

.wysiwyg-editor {
  min-height: 230px;
  max-height: 480px;
  overflow-y: auto;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.wysiwyg-editor:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

.wysiwyg-editor:empty:before {
  content: attr(placeholder);
  color: var(--text-dim);
  pointer-events: none;
}

/* Rich Content Formatting inside WYSIWYG & Article Reader */
.wysiwyg-editor h2, .article-reader-content h2 {
  font-size: 1.25rem;
  color: var(--text-gold);
  margin: 18px 0 8px;
  font-weight: 700;
  line-height: 1.35;
}

.wysiwyg-editor h3, .article-reader-content h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 14px 0 6px;
  font-weight: 600;
  line-height: 1.4;
}

.wysiwyg-editor p, .article-reader-content p {
  margin-bottom: 12px;
  line-height: 1.75;
}

.wysiwyg-editor blockquote, .article-reader-content blockquote {
  border-left: 3px solid var(--primary-gold);
  padding: 8px 14px;
  margin: 12px 0;
  background: rgba(218, 165, 32, 0.08);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-muted);
}

.wysiwyg-editor ul, .wysiwyg-editor ol,
.article-reader-content ul, .article-reader-content ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

.wysiwyg-editor li, .article-reader-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.wysiwyg-editor a, .article-reader-content a {
  color: var(--primary-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wysiwyg-editor img, .article-reader-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 12px 0;
  display: block;
}

/* Yoast SEO Box */
.yoast-seo-box {
  background: linear-gradient(145deg, rgba(22, 26, 22, 0.88), rgba(16, 20, 16, 0.94));
  border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .yoast-seo-box {
  background: linear-gradient(145deg, #f7faf7, #eef5ee);
  border: 1px solid rgba(39, 174, 96, 0.35);
}

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

.yoast-badge-icon {
  font-size: 1.5rem;
}

.yoast-score-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yoast-score-number {
  font-size: 1.55rem;
  font-weight: 800;
  font-family: var(--font-numbers);
  color: #2ecc71;
}

.yoast-status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-green {
  background: rgba(39, 174, 96, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.pill-yellow {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.4);
}

.pill-red {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

/* SEO Progress Bar */
.seo-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

[data-theme="light"] .seo-progress-track {
  background: rgba(0, 0, 0, 0.08);
}

.seo-progress-bar {
  height: 100%;
  transition: width 0.4s ease, background 0.4s ease;
}

.bar-green {
  background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.bar-yellow {
  background: linear-gradient(90deg, #d35400, #f39c12);
}

.bar-red {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
}

/* Google SERP Snippet Preview */
.google-snippet-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.snippet-device-toggle {
  display: flex;
  gap: 4px;
}

.btn-device-toggle {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-device-toggle.active {
  background: var(--primary-gold);
  color: #14120e;
  font-weight: 700;
  border-color: var(--primary-gold);
}

/* Google SERP Card (Matches exact Google search look) */
.google-serp-card {
  background: #ffffff;
  color: #4d5156;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #dfe1e5;
  font-family: Roboto, Arial, sans-serif;
  transition: max-width 0.3s ease;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1);
}

.google-serp-card.mobile {
  max-width: 380px;
}

.google-serp-card.desktop {
  max-width: 620px;
}

.serp-site-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.serp-favicon {
  width: 22px;
  height: 22px;
  background: #f1f3f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.serp-domain-info {
  display: flex;
  flex-direction: column;
}

.serp-site-name {
  font-size: 0.78rem;
  color: #202124;
  font-weight: 500;
}

.serp-url {
  font-size: 0.72rem;
  color: #4d5156;
}

.serp-title {
  font-size: 1.15rem;
  color: #1a0dab;
  font-weight: 400;
  margin: 3px 0 4px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}

.serp-title:hover {
  text-decoration: underline;
}

.serp-snippet {
  font-size: 0.83rem;
  color: #4d5156;
  line-height: 1.45;
  margin: 0;
}

/* Yoast Checklist */
.yoast-checklist-wrap {
  margin-top: 14px;
}

.yoast-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.yoast-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

[data-theme="light"] .yoast-checklist li {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.yoast-checklist li:last-child {
  border-bottom: none;
}

.chk-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.chk-label {
  line-height: 1.45;
  color: var(--text-main);
}

/* =============================================================================
 * DEDICATED ARTICLE PAGE (TRANG BÀI VIẾT CHUẨN SEO GOOGLE)
 * ============================================================================= */
.article-page-main {
  padding: 24px 0 60px;
  width: 100%;
  box-sizing: border-box;
}

.article-page-wrap {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Breadcrumb */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.article-breadcrumb a:hover {
  color: var(--text-gold);
  text-decoration: underline;
}

.article-breadcrumb .separator {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.article-breadcrumb .current {
  color: var(--text-main);
  font-weight: 600;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Danh Mục Bài Viết Chọn Nhanh Trên Bài Viết (Category Subnav Bar) */
.article-category-quicknav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  scrollbar-width: thin;
}
.article-category-quicknav::-webkit-scrollbar {
  height: 4px;
}
.article-category-quicknav::-webkit-scrollbar-thumb {
  background: rgba(180, 83, 9, 0.2);
  border-radius: 4px;
}
.art-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5c4d38;
  background: #fdfaf3;
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.art-cat-pill:hover {
  background: #fbf3dc;
  border-color: #b45309;
  color: #78350f;
  transform: translateY(-1px);
}
.art-cat-pill.active {
  background: linear-gradient(135deg, #c59329 0%, #9a6b13 100%);
  color: #ffffff !important;
  border-color: #8c6214;
  box-shadow: 0 2px 8px rgba(154, 107, 19, 0.32);
}

/* Article Header */
.article-headline {
  font-family: var(--font-sans) !important;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.35;
  font-weight: 800;
  color: var(--text-main);
  margin: 12px 0 16px;
  letter-spacing: -0.015em;
}

/* Sapo / Lead */
.article-sapo {
  font-family: var(--font-sans) !important;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.72;
  color: var(--text-main);
  padding: 16px 20px;
  border-left: 4px solid var(--accent-gold);
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

/* Meta Bar */
.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Share Buttons */
.article-share-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-share:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  color: var(--text-gold);
  transform: translateY(-1px);
}

.btn-share-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

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

/* Featured Image & Inline Figures - Tự động 16:9 và căn giữa */
.article-featured-img-wrap,
.article-body-content figure {
  margin: 24px auto 30px !important;
  max-width: 760px !important;
  width: 100% !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  text-align: center !important;
  display: block !important;
}

.article-featured-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto !important;
}

.article-featured-caption,
.article-body-content figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center !important;
  background: var(--bg-card);
  font-style: italic;
  border-top: 1px solid var(--border-color);
}

/* Table of Contents */
.article-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0 32px;
}

.article-toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.article-toc-list li {
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.article-toc-list a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.article-toc-list a:hover {
  color: var(--text-gold);
  text-decoration: underline;
}

/* Body Content - Đồng bộ 100% font chữ với trang chủ */
.article-body-content {
  font-family: var(--font-sans) !important;
  font-size: 1.04rem;
  line-height: 1.82;
  color: var(--text-main);
  margin-bottom: 40px;
}

.article-body-content p {
  font-family: var(--font-sans) !important;
  margin-bottom: 18px;
}

.article-body-content img,
.article-body img,
#articleBody img,
.article-reader-content img {
  max-width: 760px !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 24px auto !important;
  border-radius: var(--radius-md, 10px) !important;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.article-body-content figure img {
  margin: 0 auto !important;
  border: none !important;
  border-radius: 0 !important;
}

.article-body-content h2 {
  font-family: var(--font-sans) !important;
  font-size: 1.38rem;
  font-weight: 800;
  margin: 34px 0 14px;
  color: var(--text-gold);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  line-height: 1.38;
}

.article-body-content h3 {
  font-family: var(--font-sans) !important;
  font-size: 1.16rem;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--text-main);
  line-height: 1.4;
}

.article-body-content ul, .article-body-content ol {
  margin-bottom: 22px;
  padding-left: 26px;
}

.article-body-content li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.article-body-content blockquote {
  margin: 28px 0;
  padding: 16px 22px;
  border-left: 4px solid var(--accent-gold);
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-main);
  font-weight: 500;
}

/* Tags Box */
.article-tags-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 32px 0;
  font-size: 0.82rem;
}

.article-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: var(--transition);
}

.article-tag:hover {
  border-color: var(--accent-gold);
  color: var(--text-gold);
  background: var(--bg-card-hover);
}

/* CTA Box - Bảng giá vàng */
.article-gold-cta-card {
  background: linear-gradient(135deg, rgba(184, 142, 60, 0.12) 0%, rgba(13, 116, 101, 0.08) 100%), var(--bg-card);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}

.article-gold-cta-content h3 {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  color: var(--text-gold);
  margin-bottom: 6px;
  font-weight: 800;
}

.article-gold-cta-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  max-width: 520px;
}

.btn-cta-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #b8860b 0%, #e0bc65 50%, #94691e 100%);
  color: #14120e;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(184, 142, 60, 0.35);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cta-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 142, 60, 0.5);
}

/* Author Box */
.article-author-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.article-author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.article-author-info p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.article-author-contact {
  font-size: 0.8rem;
  color: var(--text-gold);
  font-weight: 600;
}

/* Related Articles */
.related-articles-section {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 2px solid var(--border-color);
}

.related-section-title {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.btn-header-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  height: 34px;
  box-sizing: border-box;
}

.btn-header-home:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-gold);
  color: var(--text-gold);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .article-page-main {
    padding: 16px 16px 44px !important;
  }

  .btn-header-home {
    padding: 0 10px;
    height: 32px;
    font-size: 0.76rem;
    gap: 4px;
  }

  .article-breadcrumb {
    font-size: 0.75rem;
    margin-bottom: 12px;
    gap: 4px 6px;
  }

  .article-breadcrumb .current {
    max-width: 180px;
  }

  .article-headline {
    font-size: 1.38rem !important;
    line-height: 1.35;
    margin: 8px 0 12px;
  }

  .article-sapo {
    font-size: 0.94rem !important;
    line-height: 1.62;
    padding: 12px 14px !important;
    margin-bottom: 16px;
  }

  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 18px;
  }

  .article-meta-left {
    font-size: 0.75rem;
    gap: 10px;
    flex-wrap: wrap;
  }

  .article-share-group {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .btn-share {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .article-featured-img-wrap {
    margin: 14px 0 20px;
    border-radius: 8px;
  }

  .article-featured-caption {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .article-toc {
    padding: 12px 14px !important;
    margin: 16px 0 24px;
    font-size: 0.84rem;
  }

  .article-toc-title {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }

  .article-toc-list li {
    font-size: 0.82rem;
    margin-bottom: 5px;
  }

  .article-body-content {
    font-size: 0.96rem !important;
    line-height: 1.72;
    margin-bottom: 26px;
  }

  .article-body-content h2 {
    font-size: 1.18rem !important;
    margin: 24px 0 10px;
    padding-bottom: 6px;
  }

  .article-body-content h3 {
    font-size: 1.05rem !important;
    margin: 18px 0 8px;
  }

  .article-body-content p {
    margin-bottom: 14px;
  }

  .article-body-content ul, 
  .article-body-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
  }

  .article-body-content li {
    margin-bottom: 6px;
    line-height: 1.6;
  }

  .article-gold-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px !important;
    margin: 24px 0;
    gap: 12px;
  }

  .article-gold-cta-content h3 {
    font-size: 1.05rem !important;
  }

  .article-gold-cta-content p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .btn-cta-gold {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .article-tags-wrap {
    padding: 10px 0;
    margin: 18px 0;
    gap: 6px;
    font-size: 0.78rem;
  }

  .article-tag {
    padding: 3px 8px;
    font-size: 0.72rem;
  }

  .article-author-box {
    flex-direction: column;
    text-align: center;
    padding: 14px 12px !important;
    margin: 24px 0;
    gap: 10px;
  }

  .article-author-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .article-author-info h4 {
    font-size: 0.92rem;
  }

  .article-author-info p {
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .article-page-main {
    padding: 12px 14px 36px !important;
  }
}

@media (max-width: 380px) {
  .article-page-main {
    padding: 10px 12px 32px !important;
  }

  .btn-header-home {
    padding: 0 8px;
  }

  .btn-header-home-text {
    display: none;
  }

  .article-headline {
    font-size: 1.25rem !important;
  }
}

/* ==========================================================================
   OFFICIAL BRAND PRICE LINKS & BUTTONS (BẢNG GIÁ GỐC THƯƠNG HIỆU)
   ========================================================================== */
.btn-official-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-official-source:hover {
  background: var(--accent-gold);
  color: #0b0f19 !important;
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(212, 175, 55, 0.3);
}

.btn-official-source i {
  font-size: 0.7rem;
}

.icon-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 0.7rem;
  transition: all 0.15s ease;
  text-decoration: none;
  opacity: 0.75;
}

.icon-brand-link:hover {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.15);
  transform: scale(1.15);
  opacity: 1;
}

.card-official-row {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.card-official-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-official-link-btn:hover {
  background: var(--accent-gold);
  color: #0b0f19 !important;
  border-color: var(--accent-gold);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.25);
}

/* Brand Filter Pills Bar */
.brand-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 14px 0;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.brand-filter-pills::-webkit-scrollbar {
  height: 4px;
}

.brand-filter-pills::-webkit-scrollbar-track {
  background: transparent;
}

.brand-filter-pills::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.brand-pill {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.brand-pill:hover {
  border-color: var(--accent-gold);
  color: var(--text-main);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.brand-pill.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0b0f19 !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   SƠN KIM PHÚC LOCAL JEWELER & DUAL-UNIT SUB-PRICES STYLING
   ========================================================================== */
.row-skp-highlight {
  /* Đồng bộ với các hàng bảng khác */
}

.badge-skp-owner {
  display: none !important;
}

.badge-skp-local {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(218, 165, 32, 0.15);
  border: 1px solid rgba(218, 165, 32, 0.45);
  color: var(--text-gold);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-quick-edit-skp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  margin-left: 6px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid rgba(218, 165, 32, 0.4);
  color: var(--primary-gold);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-quick-edit-skp:hover {
  background: var(--primary-gold);
  color: #0b0f19 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(218, 165, 32, 0.35);
}

.price-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
}

.time-skp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(218, 165, 32, 0.15);
  border: 1px solid rgba(218, 165, 32, 0.35);
  padding: 4px 9px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-gold);
  font-weight: 600;
}

/* =============================================================================
   9. KHỐI NHẬN ĐỊNH THỊ TRƯỜNG & KHUYẾN NGHỊ TÍCH TRỮ + MIỄN TRỪ TRÁCH NHIỆM
   ============================================================================= */
.analysis-card-top-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(218, 165, 32, 0.14);
  border: 1px solid rgba(218, 165, 32, 0.4);
  color: var(--text-gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.market-analysis-card {
  margin-top: 28px;
  margin-bottom: 28px;
  background: linear-gradient(145deg, #161e2f 0%, #0d121c 100%);
  border: 1.5px solid rgba(218, 165, 32, 0.55);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

[data-theme="light"] .market-analysis-card {
  background: linear-gradient(145deg, #fffdf8 0%, #fbf5e8 100%);
  border-color: #d4af37;
  box-shadow: 0 10px 32px rgba(218, 165, 32, 0.16);
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  user-select: none;
}

.analysis-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.analysis-icon {
  font-size: 1.6rem;
  background: rgba(218, 165, 32, 0.15);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(218, 165, 32, 0.3);
}

.analysis-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-gold);
  letter-spacing: -0.01em;
}

.analysis-subtitle {
  margin: 3px 0 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.analysis-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.analysis-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: pulseRisk 2s infinite ease-in-out;
}

@keyframes pulseRisk {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.btn-toggle-analysis {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-analysis:hover {
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}

/* 4 Thẻ chỉ số khuyến nghị */
.advice-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.advice-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 86px;
  box-sizing: border-box;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.advice-metric-card:hover {
  transform: translateY(-2px);
}

.advice-metric-card.card-buy {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="light"] .advice-metric-card.card-buy {
  background: #f0fdf4;
  border-color: #86efac;
}

.advice-metric-card.card-sell {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
}

[data-theme="light"] .advice-metric-card.card-sell {
  background: #fef2f2;
  border-color: #fca5a5;
}

.advice-metric-card.card-spread {
  background: rgba(218, 165, 32, 0.09);
  border-color: rgba(218, 165, 32, 0.38);
}

[data-theme="light"] .advice-metric-card.card-spread {
  background: #fffbeb;
  border-color: #fde68a;
}

.advice-metric-card.card-risk {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(239, 68, 68, 0.55);
}

[data-theme="light"] .advice-metric-card.card-risk {
  background: #fff1f2;
  border-color: #ef4444;
}

.advice-metric-label {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  line-height: 1.25;
}

.advice-metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.advice-metric-val.val-buy {
  color: var(--color-up);
}

.advice-metric-val.val-sell {
  color: var(--color-down);
}

.advice-metric-val.val-spread {
  color: var(--primary-gold);
}

.advice-metric-val.val-risk {
  color: #ef4444;
}

.advice-metric-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.25;
}

/* Store Note and Source Badge Styles */
.skp-store-note-box {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(218, 165, 32, 0.08);
  border: 1px solid rgba(218, 165, 32, 0.3);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.skp-store-note-box i {
  color: var(--primary-gold);
  margin-top: 2px;
  flex-shrink: 0;
}

.skp-source-badge {
  background: rgba(218, 165, 32, 0.12);
  border: 1px solid rgba(218, 165, 32, 0.35);
  color: var(--text-gold);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

/* 2 Cột nhận định chuyên gia */
.analysis-columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.analysis-col-card {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(218, 165, 32, 0.25);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .analysis-col-card {
  background: #ffffff;
  border-color: rgba(184, 142, 60, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.analysis-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.analysis-col-header h4 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-gold);
}

.analysis-col-content {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.6;
}

.analysis-col-content p {
  margin: 0 0 10px 0;
}

.analysis-summary-box {
  background: rgba(218, 165, 32, 0.08);
  border: 1px solid rgba(218, 165, 32, 0.25);
  border-left: 3px solid var(--primary-gold);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.5;
}

.analysis-summary-box.alert-box {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
  border-left-color: #ef4444;
}

/* Khung Miễn trừ trách nhiệm */
.analysis-disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.analysis-disclaimer-box .disclaimer-icon {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.analysis-disclaimer-box strong {
  color: #f59e0b;
}

/* =============================================================================
   10. THANH ĐIỀU KHIỂN BẢNG GIÁ & ĐỒNG BỘ GOOGLE SHEET
   ============================================================================= */
.table-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.82rem;
}

.sheet-sync-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.sync-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: liveDotPulse 2s infinite;
}

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

.sync-time-divider {
  color: var(--border-color);
}

/* ==========================================================================
   REALTIME TICKING FLASH ANIMATIONS (BTC & WORLD GOLD)
   ========================================================================== */
@keyframes flashGreen {
  0% { color: #10b981; text-shadow: 0 0 14px rgba(16, 185, 129, 0.7); transform: scale(1.03); }
  50% { color: #34d399; }
  100% { color: inherit; text-shadow: none; transform: scale(1); }
}

@keyframes flashRed {
  0% { color: #ef4444; text-shadow: 0 0 14px rgba(239, 68, 68, 0.7); transform: scale(1.03); }
  50% { color: #f87171; }
  100% { color: inherit; text-shadow: none; transform: scale(1); }
}

.price-flash-up {
  animation: flashGreen 0.75s ease !important;
}

.price-flash-down {
  animation: flashRed 0.75s ease !important;
}

.live-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  margin-right: 6px;
  vertical-align: middle;
  animation: liveDotPulse 1.4s infinite ease-in-out;
}

.btn-refresh-sheet {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--primary-gold);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.btn-refresh-sheet:hover {
  background: rgba(218, 165, 32, 0.15);
  border-color: var(--primary-gold);
}

.accordion-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-accordion-toggle {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-accordion-toggle:hover {
  color: var(--text-gold);
  border-color: var(--primary-gold);
}

/* =============================================================================
   11. CƠ CHẾ ACCORDION THƯƠNG HIỆU (BẤM VÀO BUNG THÔNG TIN XUỐNG DƯỚI)
   ============================================================================= */
/* Thanh tiêu đề cột bảng giá (Chuẩn Apple Stocks / Financial Table) */
.brand-table-header-row {
  display: grid;
  grid-template-columns: minmax(220px, 2.1fr) 1.2fr 1.2fr 0.95fr 1.15fr 244px;
  align-items: center;
  padding: 12px 20px;
  gap: 12px;
  box-sizing: border-box;
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  user-select: none;
}

.brand-table-header-row .brand-th-col {
  white-space: nowrap;
}

.brand-table-header-row .th-brand {
  text-align: left;
}

.brand-table-header-row .th-price,
.brand-table-header-row .th-spread {
  text-align: right;
}

.brand-table-header-row .th-time,
.brand-table-header-row .th-actions {
  text-align: center;
}

@media (max-width: 900px) {
  .brand-table-header-row {
    display: none !important;
  }
}

.brand-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.brand-accordion-card {
  background: #11141c;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  overflow: hidden;
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: 72px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.brand-accordion-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: #151924;
}

.brand-accordion-card.open {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Thẻ thương hiệu Tiệm Vàng Sơn Kim Phúc (Signature Brand Highlight) */
.brand-skp-accordion {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.14) 0%, rgba(17, 20, 28, 0.98) 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  border-left: 4px solid #d4af37 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}

.brand-skp-accordion:hover {
  border-color: rgba(212, 175, 55, 0.7) !important;
  border-left-color: #ffd700 !important;
}

/* Hàng tiêu đề thương hiệu (Click để bung) */
.brand-accordion-header {
  display: grid;
  grid-template-columns: minmax(220px, 2.1fr) 1.2fr 1.2fr 0.95fr 1.15fr 116px 116px;
  align-items: center;
  min-height: 68px;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.15s ease;
  gap: 12px;
  box-sizing: border-box;
}

.brand-accordion-header:hover {
  background: rgba(212, 175, 55, 0.05);
}

.brand-accordion-card.open .brand-accordion-header {
  background: rgba(212, 175, 55, 0.08);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.accordion-prices-group {
  display: contents;
}

.accordion-meta-group {
  display: contents;
}

.mobile-price-tag-label {
  display: none;
}

.mobile-meta-label {
  display: none;
}

.product-cat-pill-inline {
  display: none;
}

.price-sub-stacked {
  display: none;
}

.accordion-brand-col {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.accordion-brand-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.accordion-brand-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: normal;
  line-height: 1.3;
}

.accordion-brand-meta {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.accordion-price-col {
  text-align: right;
  min-width: 0;
}

.accordion-price-col .price-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.accordion-price-col .price-sub {
  white-space: nowrap;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.accordion-spread-col {
  text-align: right;
  font-weight: 700;
  color: var(--primary-gold);
  font-size: 0.88rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.accordion-spread-col .price-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: normal;
  margin-top: 2px;
}

.accordion-time-col {
  text-align: center;
  white-space: nowrap;
}

/* Cột nút Mũi tên nhấp nháy Xem chi tiết */
.accordion-expand-hint-col {
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-expand-hint {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(218, 165, 32, 0.12);
  border: 1px solid rgba(218, 165, 32, 0.45);
  color: var(--text-gold);
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.btn-expand-hint:hover {
  background: rgba(218, 165, 32, 0.24);
  border-color: var(--primary-gold);
  transform: translateY(-1px);
}

.btn-expand-hint.open {
  background: var(--bg-card-subtle);
  border-color: var(--border-color);
  color: var(--text-dim);
}

.btn-expand-hint.open:hover {
  background: rgba(218, 165, 32, 0.1);
  color: var(--text-main);
}

/* Hiệu ứng mũi tên nhấp nháy để nhắc khách bấm vào bung giá */
.hint-arrow-blink {
  display: inline-block;
  color: #f59e0b;
  font-size: 0.78rem;
  animation: pulseBlinkArrow 1.3s infinite ease-in-out;
}

@keyframes pulseBlinkArrow {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
    color: #f59e0b;
  }
  50% {
    transform: translateY(3px);
    opacity: 0.35;
    color: #ef4444;
  }
}

.hint-arrow-static {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.accordion-link-col {
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.accordion-link-col .btn-official-source,
.accordion-link-col .skp-source-badge {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  box-sizing: border-box;
  text-align: center;
}

.accordion-chevron-col {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-chevron-icon {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: transform 0.3s ease, color 0.2s ease;
}

.brand-accordion-card.open .accordion-chevron-icon {
  transform: rotate(180deg);
  color: var(--primary-gold);
}

/* Phần nội dung bung ra bên dưới */
.brand-accordion-body {
  display: none;
  padding: 16px 18px;
  background: var(--bg-card-subtle);
  animation: slideDownFade 0.25s ease-out;
}

.brand-accordion-card.open .brand-accordion-body {
  display: block;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sub-table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.sub-products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.sub-products-table th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  white-space: nowrap;
}

[data-theme="light"] .sub-products-table th {
  background: rgba(218, 165, 32, 0.08);
  color: var(--text-muted);
}

.sub-products-table th.text-right {
  text-align: right;
}

.sub-products-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

[data-theme="light"] .sub-products-table td {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.sub-products-table tr:last-child td {
  border-bottom: none;
}

.sub-products-table tr:hover td {
  background: rgba(218, 165, 32, 0.04);
}

.product-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-name-txt {
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--text-main);
}

.product-pills-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.product-spread-pill-inline {
  display: none; /* Cột thứ 4 đã hiển thị trên PC, chỉ hiện trên mobile */
}

.price-stacked-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.price-stacked-cell .price-val {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-stacked-cell .price-buy {
  color: var(--color-up);
}

.price-stacked-cell .price-sell {
  color: var(--color-down);
}

.spread-val-cell {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* =============================================================================
   RESPONSIVE: TABLET (601px - 900px)
   ============================================================================= */
@media (max-width: 900px) and (min-width: 601px) {
  .brand-accordion-header {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 0.85fr) 105px 105px;
    padding: 12px 14px;
    gap: 8px;
  }

  .accordion-brand-name {
    font-size: 0.9rem;
  }

  .accordion-time-col {
    display: none;
  }

  .btn-expand-hint {
    padding: 5px 8px;
    font-size: 0.72rem;
    width: 100%;
  }

  .accordion-link-col .btn-official-source,
  .accordion-link-col .skp-source-badge {
    padding: 5px 8px;
    font-size: 0.72rem;
    width: 100%;
  }

  /* Gộp 7 cột thành 4 cột gọn gàng trên tablet */
  .sub-products-table .col-desktop-only {
    display: none !important;
  }

  .product-cat-pill-inline {
    display: inline-block;
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(218, 165, 32, 0.12);
    color: var(--text-gold);
    margin-top: 3px;
    font-weight: 600;
    width: fit-content;
  }

  .price-sub-stacked {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 1px;
    white-space: nowrap;
  }

  .sub-products-table td.text-right {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  .sub-products-table td:first-child {
    min-width: 160px;
    white-space: normal;
  }
}

/* =============================================================================
   RESPONSIVE: MOBILE (<= 600px) - THÂN THIỆN, NGAY HÀNG THẲNG LỐI, KO BỊ CẮT CHỮ
   ============================================================================= */
@media (max-width: 600px) {
  .brand-accordion-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
  }

  .brand-accordion-header {
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 14px !important;
    gap: 10px !important;
    position: relative;
  }

  /* Dòng 1: Logo + Tên thương hiệu + Địa điểm/Số SP */
  .accordion-brand-col {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .accordion-brand-name {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
  }

  .accordion-brand-meta {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 2px;
  }

  /* Dòng 2: Hộp so sánh giá Mua - Bán ngay hàng thẳng lối (2 cột đối xứng) */
  .accordion-prices-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    background: var(--bg-card-subtle) !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    box-sizing: border-box !important;
  }

  .accordion-price-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .accordion-price-buy {
    text-align: left;
    border-right: 1px dashed var(--border-color);
    padding-right: 6px;
  }

  .accordion-price-sell {
    text-align: right;
    padding-left: 6px;
  }

  .mobile-price-tag-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .mobile-label-buy {
    color: var(--color-up);
  }

  .mobile-label-sell {
    color: var(--color-down);
  }

  .accordion-price-col .price-cell {
    font-size: 1.05rem !important;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
  }

  .accordion-price-col .price-sub {
    font-size: 0.7rem;
    color: var(--text-dim);
    white-space: nowrap;
    margin-top: 1px;
  }

  /* Dòng 3: Chân thẻ (Hàng 1: Chênh lệch + Giờ cập nhật | Hàng 2: Xem chi tiết + Xem giá gốc) */
  .accordion-meta-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    row-gap: 8px !important;
    column-gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    padding-top: 6px !important;
    border-top: 1px dashed var(--border-color) !important;
    box-sizing: border-box !important;
  }

  .accordion-spread-col {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .mobile-meta-label {
    display: inline;
    font-weight: 500;
    color: var(--text-dim);
  }

  .accordion-spread-col .desktop-only {
    display: none !important;
  }

  .accordion-time-col {
    display: flex;
    justify-content: flex-end;
    white-space: nowrap;
  }

  .accordion-time-col .time-tag {
    font-size: 0.68rem;
    padding: 2px 7px;
    white-space: nowrap;
  }

  .accordion-expand-hint-col {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .btn-expand-hint {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 6px;
    box-sizing: border-box;
    white-space: nowrap;
  }

  .accordion-link-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-left: 0 !important;
  }

  .btn-official-source,
  .skp-source-badge {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    font-size: 0.74rem;
    border-radius: 6px;
    box-sizing: border-box;
    white-space: nowrap;
  }

  /* Bảng chi tiết sản phẩm bên trong Accordion trên Mobile (Chuẩn 3 cột thông thoáng, Giá Mua - Giá Bán không bao giờ đè nhau) */
  .brand-accordion-body {
    padding: 10px 6px;
  }

  .sub-table-scroll-wrap {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .sub-products-table {
    font-size: 0.78rem;
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed !important;
    box-sizing: border-box;
    border-collapse: collapse;
  }

  .sub-products-table .col-desktop-only,
  .sub-products-table th.th-spread,
  .sub-products-table td.td-spread {
    display: none !important; /* Ẩn cột thứ 4 trên mobile để 2 cột Mua & Bán rộng rãi tuyệt đối */
  }

  .sub-products-table th {
    padding: 8px 4px !important;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 2px solid var(--border-color);
  }

  .sub-products-table td {
    padding: 8px 4px !important;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
  }

  /* Phân bổ tỷ lệ vàng 3 cột trên điện thoại: Tên loại vàng (44%) - Giá Mua (28%) - Giá Bán (28%) */
  .sub-products-table th.th-name,
  .sub-products-table td.td-product-name {
    width: 44% !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: left;
    box-sizing: border-box;
    padding-right: 6px !important;
  }

  .sub-products-table th.th-buy,
  .sub-products-table td.td-price-buy {
    width: 28% !important;
    text-align: right;
    padding-right: 10px !important;
    padding-left: 2px !important;
    box-sizing: border-box;
  }

  .sub-products-table th.th-sell,
  .sub-products-table td.td-price-sell {
    width: 28% !important;
    text-align: right;
    padding-left: 6px !important;
    padding-right: 4px !important;
    box-sizing: border-box;
  }

  .product-title-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }

  .product-name-txt {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
    word-break: break-word;
  }

  .product-pills-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
  }

  .product-cat-pill-inline {
    display: inline-block;
    font-size: 0.62rem;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(218, 165, 32, 0.12);
    color: var(--text-gold);
    font-weight: 600;
    white-space: nowrap;
  }

  .product-spread-pill-inline {
    display: inline-block !important;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    white-space: nowrap;
    border: 1px solid rgba(239, 68, 68, 0.25);
  }

  .price-stacked-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    min-width: 0;
  }

  .price-val {
    font-size: 0.74rem !important;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
  }

  .price-val.price-buy {
    color: var(--color-up);
  }

  .price-val.price-sell {
    color: var(--color-down);
  }

  .price-sub-stacked {
    display: block;
    font-size: 0.62rem;
    color: var(--text-dim);
    white-space: nowrap;
    letter-spacing: -0.01em;
    margin-top: 1px;
  }
}

@media (max-width: 380px) {
  .sub-products-table th.th-name,
  .sub-products-table td.td-product-name {
    width: 42% !important;
  }
  .sub-products-table th.th-buy,
  .sub-products-table td.td-price-buy,
  .sub-products-table th.th-sell,
  .sub-products-table td.td-price-sell {
    width: 29% !important;
  }
  .price-val {
    font-size: 0.69rem !important;
  }
  .product-name-txt {
    font-size: 0.72rem;
  }
  .advice-metric-val {
    font-size: 0.88rem !important;
  }
}

/* ==========================================================================
   GOOGLE ADSENSE & SPONSOR BANNER SLOTS (CHUẨN CHÍNH SÁCH GOOGLE)
   ========================================================================== */
.ad-banner-slot {
  width: 100%;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.03);
  border: 1px dashed rgba(212, 175, 55, 0.25);
  overflow: hidden;
  transition: all 0.2s ease;
}

[data-theme="dark"] .ad-banner-slot {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(212, 175, 55, 0.2);
}

.ad-banner-slot:hover {
  border-color: var(--primary-gold);
}

.ad-badge-label {
  align-self: flex-start;
  margin: 6px 12px 2px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.ad-slot-inner {
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

.ad-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ad-placeholder-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-gold-dark);
}

.ad-placeholder-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.ad-placeholder-contact {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 10px;
  background: var(--primary-gold-dim);
  color: var(--primary-gold-dark);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
}

/* ==========================================================================
   FOOTER POLICY NAVIGATION & LEGAL MODALS
   ========================================================================== */
.footer-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  margin: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.footer-nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 99px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  white-space: nowrap;
}

[data-theme="dark"] .footer-nav-pill {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 175, 55, 0.28);
  color: #e5e7eb;
}

.footer-nav-pill:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--primary-gold);
  color: var(--primary-gold-dark);
  transform: translateY(-1.5px);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.2);
  text-decoration: none;
}

[data-theme="dark"] .footer-nav-pill:hover {
  color: #fcd34d;
  border-color: #f59e0b;
}

.footer-nav-pill:active {
  transform: translateY(0);
}

.footer-nav-pill .pill-icon {
  font-size: 0.92rem;
  line-height: 1;
}

/* TABLET RESPONSIVE (Dưới 768px): Chia đều 2 cột 2x2 cân xứng tuyệt đối, có lề thoáng đãng */
@media (max-width: 768px) {
  .footer-nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px 10px;
    margin: 14px 0;
  }
  .footer-nav-pill {
    padding: 11px 16px;
    font-size: 0.78rem;
    white-space: nowrap;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .policy-modal-content {
    padding: 18px 20px !important;
  }
}

/* MOBILE RESPONSIVE (Dưới 480px): Tối ưu khoảng cách và kích thước nút bấm */
@media (max-width: 480px) {
  .footer-nav-links {
    gap: 10px;
    padding: 12px 6px;
    margin: 12px 0;
  }
  .footer-nav-pill {
    padding: 10px 12px;
    font-size: 0.75rem;
    gap: 6px;
    border-radius: 8px;
  }
  .footer-nav-pill .pill-icon {
    font-size: 0.85rem;
  }
  .policy-modal-content {
    padding: 16px 16px !important;
  }
}

/* EXTRA SMALL MOBILE (Dưới 360px): Fit màn hình siêu nhỏ */
@media (max-width: 360px) {
  .footer-nav-links {
    gap: 8px;
    padding: 10px 4px;
  }
  .footer-nav-pill {
    padding: 9px 8px;
    font-size: 0.71rem;
    letter-spacing: -0.01em;
  }
}

/* NỘI DUNG MODAL PHÁP LÝ: CÓ LỀ ĐẦY ĐỦ CẢ 4 PHÍA, KHÔNG DÍNH VIỀN */
.policy-modal-content {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-main);
  padding: 22px 28px !important;
  box-sizing: border-box;
}

.policy-modal-content h4 {
  font-size: 1.05rem;
  color: var(--primary-gold-dark);
  margin: 20px 0 8px;
}

.policy-modal-content h4:first-child {
  margin-top: 0;
}

.policy-modal-content p {
  margin-bottom: 12px;
}

.policy-modal-content ul {
  margin: 8px 0 16px 24px;
}

.policy-modal-content li {
  margin-bottom: 8px;
}

.policy-highlight-box {
  background: rgba(212, 175, 55, 0.08);
  border-left: 4px solid var(--primary-gold);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 0.86rem;
  line-height: 1.6;
  box-sizing: border-box;
}

/* =============================================================================
   CORPORATE LUXURY DESIGN SYSTEM (BLOOMBERG / PNJ / CARTIER / WORLD GOLD COUNCIL)
   Giao diện Tập đoàn Kim hoàn & Tài chính lớn: Tách biệt khối rõ ràng, sang trọng,
   không đa sắc cầu vồng rối mắt, chuẩn mực cả Desktop & Mobile.
   ============================================================================= */

:root {
  --bg-main: #090b10;
  --bg-card: #12161f;
  --bg-card-hover: #171c27;
  --bg-card-subtle: #161b26;
  --border-color: rgba(212, 175, 55, 0.18);
  --border-highlight: rgba(226, 190, 103, 0.45);
  --text-main: #f8f6f0;
  --text-muted: #b0a999;
  --text-dim: #7c7669;
  --text-gold: #e5c36b;
  --color-up: #10b981;
  --color-up-bg: rgba(16, 185, 129, 0.12);
  --color-up-border: rgba(16, 185, 129, 0.32);
  --color-down: #ef4444;
  --color-down-bg: rgba(239, 68, 68, 0.12);
  --color-down-border: rgba(239, 68, 68, 0.32);
}

body {
  background-color: #090b10;
  background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 55%);
}

/* --------------------------------------------------------------------------
   1. THANH ĐIỀU HƯỚNG NGANG CHUYÊN BIỆT DƯỚI HEADER (.sticky-nav)
   Luxury Glassmorphism Jewelry Style - Tách biệt hoàn toàn bảng giá vàng bên dưới
   -------------------------------------------------------------------------- */
.sticky-nav {
  position: sticky;
  top: 67px;
  z-index: 950;
  background: rgba(11, 15, 23, 0.82);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 215, 0, 0.08) inset;
  margin-bottom: 0 !important;
  padding: 8px 0;
}

.sticky-nav .container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

.sticky-nav .tabs-nav {
  position: static;
  top: auto;
  background: rgba(20, 25, 36, 0.75);
  backdrop-filter: blur(18px);
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  gap: 8px;
  padding: 5px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.sticky-nav .tabs-nav::-webkit-scrollbar {
  display: none;
}

.nav-item-btn,
.sticky-nav .tab-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-item-btn:hover,
.sticky-nav .tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  transform: translateY(-1px);
}

.nav-item-btn.active,
.sticky-nav .tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.32) 0%, rgba(184, 134, 11, 0.48) 100%);
  border: 1px solid rgba(212, 175, 55, 0.65);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-0.5px);
}

.nav-item-btn .nav-icon,
.nav-item-btn .nav-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .sticky-nav {
    top: 59px;
    margin-bottom: 0 !important;
    padding: 6px 0;
  }
  .sticky-nav .container {
    justify-content: flex-start !important;
    padding: 0 12px;
  }
  .sticky-nav .tabs-nav {
    display: flex;
    justify-content: flex-start;
    border-radius: 16px;
    padding: 5px 6px;
    gap: 6px;
    margin: 0;
    width: 100%;
  }
  .nav-item-btn,
  .sticky-nav .tab-btn {
    padding: 7px 13px;
    font-size: 0.78rem;
    gap: 6px;
  }
}

/* --------------------------------------------------------------------------
   2. KIẾN TRÚC PHÂN TÁCH BLOCK TẬP ĐOÀN LỚN (UNIFIED CORPORATE BLOCKS)
   Khoảng cách đồng bộ tuyệt đối (Strict Uniform Vertical Spacing):
   Sticky Nav -> Block 1: 32px
   Block 1 -> 2 -> 3 -> 4 -> 5 -> 6: 32px
   Block 6 -> Footer: 32px
   -------------------------------------------------------------------------- */
.main-content,
.main-content-area {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

.content-section {
  display: block !important;
  margin-bottom: 32px !important;
  scroll-margin-top: 130px;
}

.content-section:last-of-type,
.content-section:last-child {
  margin-bottom: 0 !important;
}

.app-footer {
  margin-top: 0 !important;
}

.section-card {
  background: rgba(18, 22, 32, 0.78) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(212, 175, 55, 0.22) !important;
  border-radius: 26px !important;
  padding: 28px 30px;
  margin-bottom: 0;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.section-card:hover {
  border-color: rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(212, 175, 55, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
  transform: translateY(-2px);
}

.section-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, #d4af37 50%, rgba(212, 175, 55, 0.15) 100%);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d4af37;
  margin-bottom: 3px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: #f8f6f0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 2px;
}

.section-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(184, 134, 11, 0.06)) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  color: #e5c36b !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #e5c36b;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.8s infinite;
}

@media (max-width: 768px) {
  .main-content,
  .main-content-area {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  .content-section {
    margin-bottom: 24px !important;
  }
  .content-section:last-of-type,
  .content-section:last-child {
    margin-bottom: 0 !important;
  }
  .section-card {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .section-title {
    font-size: 1.14rem;
  }
}

/* --------------------------------------------------------------------------
   3. BỐ CỤC 2 CỘT 50/50 ĐỒNG BỘ CHIỀU CAO (VỊ TRÍ 2 & VỊ TRÍ 6)
   -------------------------------------------------------------------------- */
.dual-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.col-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0 !important;
}

@media (max-width: 992px) {
  .dual-columns-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --------------------------------------------------------------------------
   4. Ô GIÁ VÀNG QUỐC TẾ TINH GỌN NHƯ SJC (CỘT TRÁI KHỐI 2)
   Nhúng Widget Single Quote chính hãng của TradingView + Quy đổi VNĐ
   -------------------------------------------------------------------------- */
.world-gold-compact-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 14px;
}

.tv-sjc-single-quote-box {
  background: rgba(9, 11, 16, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tv-sjc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-sjc-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e5c36b;
  letter-spacing: 0.01em;
}

.tv-sjc-unit {
  font-size: 0.74rem;
  font-weight: 600;
  color: #9ca3af;
}

.tv-single-quote-iframe-wrap {
  width: 100%;
  min-height: 118px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: #131722;
  display: flex;
  align-items: center;
}

/* Khung 2 Ô Realtime WebSocket: VN-INDEX & BITCOIN (Dưới Biểu Đồ Vàng Thế Giới) */
.wg-markets-realtime-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.wg-market-card {
  background: linear-gradient(145deg, rgba(19, 24, 35, 0.92) 0%, rgba(12, 16, 25, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.wg-market-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.wg-market-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  white-space: nowrap;
}

.wg-market-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-width: 0;
}

.wg-market-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-vni {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-btc {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.wg-market-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
}

.wg-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #10b981;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLiveDot 1.6s infinite;
  flex-shrink: 0;
}

.live-dot-pulse.pulse-btc {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.9); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.wg-market-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wg-market-score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}

.wg-market-score {
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(1.2rem, 1.6vw, 1.42rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  white-space: nowrap;
}

.text-btc {
  color: #ffd700;
}

.wg-market-diff {
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.wg-market-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-numbers);
  font-size: 0.72rem;
  color: #64748b;
  min-height: 18px;
  white-space: nowrap;
}

.wg-market-meta b {
  font-weight: 600;
}

@media (max-width: 640px) {
  .wg-markets-realtime-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   5. THĂM DÒ Ý KIẾN CHUẨN THIẾT KẾ VNEXPRESS (CỘT PHẢI KHỐI 2)
   -------------------------------------------------------------------------- */
.vnexpress-poll-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vne-poll-body-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.vne-poll-count-badge {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #e5c36b;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.vne-poll-question {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8f6f0;
  margin: 0 0 14px 0;
  line-height: 1.45;
}

.vne-poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.vne-poll-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.vne-poll-option:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.06);
  transform: translateY(-1px);
}

.vne-poll-option input[type="radio"] {
  display: none;
}

.vne-custom-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #9ca3af;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.vne-poll-option input[type="radio"]:checked + .vne-custom-radio {
  border-color: #d4af37;
}

.vne-poll-option input[type="radio"]:checked + .vne-custom-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4af37;
}

.vne-poll-option:has(input[type="radio"]:checked) {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
}

.vne-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vne-option-text strong {
  font-size: 0.9rem;
  color: #f8f6f0;
}

.vne-option-text small {
  font-size: 0.76rem;
  color: #9ca3af;
}

.vne-poll-buttons {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 4px auto 0 !important;
}

.btn-vne-vote {
  background: linear-gradient(135deg, #d4af37, #9a6f17);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 24px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

.btn-vne-vote:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-vne-vote:not(:disabled):hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.btn-vne-view-results {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(212, 175, 55, 0.24);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  padding: 9px 20px;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-vne-view-results:hover {
  color: #e5c36b;
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
}

.vne-poll-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vne-result-item {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.vne-result-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  margin-bottom: 7px;
}

.vne-res-label {
  font-weight: 600;
  color: #f8f6f0;
}

.vne-res-stats strong {
  color: #e5c36b;
  font-size: 0.92rem;
}

.vne-res-stats span {
  color: #9ca3af;
  font-size: 0.76rem;
  margin-left: 4px;
}

.vne-res-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  overflow: hidden;
}

.vne-res-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vne-res-bar-fill.bar-buy { background: #10b981; }
.vne-res-bar-fill.bar-sell { background: #ef4444; }
.vne-res-bar-fill.bar-hold { background: #f59e0b; }

.vne-poll-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(212, 175, 55, 0.18);
}

.vne-user-choice {
  font-size: 0.82rem;
  color: #10b981;
  font-weight: 600;
}

.btn-vne-revote {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-vne-revote:hover {
  color: #e5c36b;
  border-color: #d4af37;
}

/* --------------------------------------------------------------------------
   6. BLOCK ĐỘC LẬP GIỜ HOÀNG ĐẠO MUA VÀNG THEO TUỔI (KHỐI 4 - DƯỚI NHẬN ĐỊNH AI)
   Thiết kế tương tác kích thích: Nhập Ngày/Tháng/Năm sinh + Chọn ngày trong 1 tháng
   -> Bấm Xác Nhận mới bung bảng kết quả chi tiết
   -------------------------------------------------------------------------- */
.fengshui-badge {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #e5c36b;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.fengshui-input-panel {
  background: rgba(9, 11, 16, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.fs-input-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.6fr 1.8fr auto;
  gap: 12px;
  align-items: flex-end;
}

.fs-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fs-form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-select {
  background: #141923;
  color: #f8f6f0;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
  height: 42px;
  line-height: 42px;
  cursor: pointer;
  box-sizing: border-box;
}

.fs-select:focus,
.fs-select:hover {
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.fs-form-action {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.btn-fs-calc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  height: 42px;
  line-height: 42px;
  box-sizing: border-box;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4af37 0%, #966c13 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  border: 1px solid #e5c36b;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.btn-fs-calc:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.45);
  filter: brightness(1.08);
}

@media (max-width: 1100px) {
  .fs-input-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fs-form-action {
    grid-column: 1 / -1;
  }
  .btn-fs-calc {
    width: 100%;
  }
}

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

/* Màn hình chờ kích thích tương tác (Teaser Cover) */
.fs-teaser-cover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(18, 22, 31, 0.9) 100%);
  border: 1px dashed rgba(212, 175, 55, 0.38);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.fs-teaser-emblem {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.fs-teaser-text h4 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: #e5c36b;
  margin-bottom: 6px;
}

.fs-teaser-text p {
  font-size: 0.84rem;
  color: #cbd5e1;
  max-width: 760px;
  line-height: 1.6;
  margin: 0 auto;
}

.fs-teaser-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.fs-teaser-pills span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #e5c36b;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.26);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Hiệu ứng bung kết quả sau khi bấm Xác Nhận */
@keyframes fsRevealSlideUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fs-reveal-anim {
  animation: fsRevealSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hàng 1 của Kết quả: 2 thẻ Hồ sơ Bản mệnh & Khung giờ Đại Cát */
.fs-top-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .fs-top-cards-grid {
    grid-template-columns: 1fr;
  }
}

.fs-profile-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fs-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.fs-profile-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #9ca3af;
  text-transform: uppercase;
}

.fs-menh-pill {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #e5c36b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.fs-profile-main {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8f6f0;
  margin-bottom: 4px;
}

.fs-profile-sub {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.fs-profile-divider {
  height: 1px;
  background: rgba(212, 175, 55, 0.16);
  margin: 12px 0;
}

.fs-target-day-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fs-td-label {
  font-size: 0.76rem;
  color: #9ca3af;
  display: block;
}

.fs-td-val {
  font-size: 0.92rem;
  color: #e5c36b;
  font-weight: 700;
}

.fs-direction-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fs-dir-pill {
  background: rgba(9, 11, 16, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: #f8f6f0;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Thẻ Khung giờ Đại Cát #1 */
.fs-hero-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.04) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.fs-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fs-hero-time-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #e5c36b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fs-score-pill {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.fs-hero-hours {
  font-family: var(--font-numbers);
  font-size: clamp(1.28rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.fs-hero-reason {
  font-size: 0.84rem;
  color: #e5c36b;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
}

.fs-runner-up {
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(9, 11, 16, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 7px 11px;
  border-radius: 7px;
}

/* Bảng 12 Canh Giờ */
.fs-timeline-wrap {
  background: #FAF6EE !important;
  border: 1.5px solid rgba(184, 134, 11, 0.3) !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  margin-bottom: 16px !important;
  box-sizing: border-box !important;
}

.fs-timeline-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.fs-timeline-header > span {
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: #7A1116 !important;
  letter-spacing: 0.01em !important;
}

.fs-legend {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px 16px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 8px 12px !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(184, 134, 11, 0.22) !important;
  border-radius: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.legend-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.legend-item:nth-child(1) {
  color: #047857 !important;
}

.legend-item:nth-child(2) {
  color: #B45309 !important;
}

.legend-item:nth-child(3) {
  color: #B91C1C !important;
}

.legend-item .dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.legend-item .dot.dot-cat {
  background: #059669 !important;
  box-shadow: 0 0 5px rgba(5, 150, 105, 0.5) !important;
}

.legend-item .dot.dot-binh {
  background: #D97706 !important;
  box-shadow: 0 0 5px rgba(217, 119, 6, 0.5) !important;
}

.legend-item .dot.dot-hung {
  background: #DC2626 !important;
  box-shadow: 0 0 5px rgba(220, 38, 38, 0.5) !important;
}

.fs-timeline-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 992px) {
  .fs-timeline-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 768px) {
  .fs-timeline-wrap {
    padding: 12px 10px !important;
  }
  .fs-timeline-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .fs-slot-card {
    padding: 9px 8px !important;
    min-height: 80px !important;
  }
  .fs-slot-chi {
    font-size: 0.86rem !important;
  }
  .fs-slot-star {
    font-size: 0.62rem !important;
    padding: 1.5px 5px !important;
  }
  .fs-slot-hour {
    font-size: 0.76rem !important;
  }
  .fs-slot-status {
    font-size: 0.74rem !important;
  }
}

.fs-slot-card {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(184, 134, 11, 0.28) !important;
  border-radius: 12px !important;
  padding: 10px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 82px !important;
  gap: 4px !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 4px rgba(140, 98, 20, 0.05) !important;
  transition: transform 0.15s ease, border-color 0.15s ease !important;
  opacity: 1 !important;
  overflow: hidden !important;
  min-width: 0 !important;
}

.fs-slot-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(140, 98, 20, 0.12) !important;
}

.fs-slot-card.is-cat {
  border-color: #059669 !important;
  background: #F0FDF4 !important;
}

.fs-slot-card.is-best-slot {
  border: 2px solid #D97706 !important;
  background: linear-gradient(135deg, #FEF9C3 0%, #ECFDF5 100%) !important;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.18) !important;
}

.fs-slot-card.is-binh {
  border-color: rgba(217, 119, 6, 0.35) !important;
  background: #FFFFFF !important;
}

.fs-slot-card.is-hung {
  border-color: #EF4444 !important;
  background: #FEF2F2 !important;
  opacity: 1 !important;
}

.fs-slot-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.fs-slot-chi {
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  color: #111827 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}

.fs-slot-star {
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
  max-width: 55% !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

.fs-slot-star.star-hd {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid rgba(217, 119, 6, 0.35) !important;
}

.fs-slot-star.star-hc {
  background: #FEE2E2 !important;
  color: #991B1B !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.fs-slot-hour {
  font-size: 0.8rem !important;
  color: #1F2937 !important;
  font-weight: 700 !important;
  font-family: var(--font-numbers) !important;
  line-height: 1.3 !important;
}

.fs-slot-status {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.fs-slot-status.cat { color: #047857 !important; }
.fs-slot-status.binh { color: #B45309 !important; }
.fs-slot-status.hung { color: #B91C1C !important; }

.fs-dynamic-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(212, 175, 55, 0.07);
  border-left: 3px solid #d4af37;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #f8f6f0;
}

.fs-dynamic-tip .tip-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. MINI METRICS GRID & CRYPTO HERO BOX (VN-INDEX & BITCOIN - KHỐI 6)
   -------------------------------------------------------------------------- */
.mini-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.crypto-col .mini-metrics-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  .mini-metrics-grid {
    grid-template-columns: 1fr;
  }
  .crypto-col .mini-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.mini-metric-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 8px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
}

.mini-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.mini-val {
  font-size: 1.08rem;
  font-weight: 800;
  color: #f8f6f0;
  font-family: var(--font-numbers);
}

.mini-sub {
  font-size: 0.84rem;
  font-weight: 700;
  color: #cbd5e1;
  font-family: var(--font-numbers);
  margin-top: 2px;
}

.mini-sub .text-up { color: #10b981; }
.mini-sub .text-down { color: #ef4444; }

.crypto-hero-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.11), rgba(212, 175, 55, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.crypto-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.crypto-currency-symbol {
  font-size: 1.65rem;
  color: #e5c36b;
  font-weight: 800;
}

.crypto-big-price {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 900;
  color: #f8f6f0;
  font-family: var(--font-numbers);
  letter-spacing: -0.01em;
}

.crypto-badge {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
}

.crypto-sub-info {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   8. BỘ LỌC 4 CHUYÊN MỤC BÀI VIẾT (ALL, GOLD, STOCKS, CRYPTO - KHỐI 7)
   -------------------------------------------------------------------------- */
.articles-category-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-cat-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: inherit;
}

.cat-filter-svg,
.bank-pill-svg {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-nav-pill .pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-cat-btn:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.article-cat-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.32) 0%, rgba(184, 134, 11, 0.48) 100%);
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.65);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-0.5px);
}

@media (max-width: 768px) {
  .news-carousel-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .articles-category-filter {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

/* ==========================================================================
   KIM PHÚC JEWELRY — IMPERIAL GOLD LIGHT & MOBILE-FIRST OPTIMIZATION
   Tông màu: Kem Hoàng Gia (Warm Ivory) + Vàng 24K + Đỏ Đô Kim Hoàn
   Tối ưu: 100% Mobile / Tablet / PC - Không vỡ khung, Không lag (Zero-Blur)
   ========================================================================== */
:root,
[data-theme="light"],
[data-theme="dark"] {
  /* Typography Kim Hoàn & Bảng điện tử - Đồng bộ 100% Tiếng Việt Chuẩn Trang Chủ */
  --font-brand: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  --font-serif: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  --font-sans: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  --font-numbers: 'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;

  /* Bảng màu Sáng Hoàng Gia Kim Hoàn (Warm Ivory & 24K Gold) */
  --bg-main: #FAF6EE !important; /* Nền Kem Ngọc Trai ấm áp chất tiệm vàng */
  --bg-body: #FAF6EE !important;
  --bg-card: #FFFFFF !important; /* Mặt thẻ trắng ngà tôn sắc vàng */
  --bg-card-hover: #FDFBF5 !important;
  --bg-card-subtle: #F5EFE2 !important; /* Nền phụ màu kem vàng nhạt */

  /* Màu chữ nâu đen đậm sang trọng (không dùng đen xám công nghệ) */
  --text-main: #23180B !important;
  --text-color: #23180B !important;
  --text-muted: #5C4D38 !important;
  --text-dim: #84735B !important;
  --text-gold: #9A6B13 !important;

  /* Màu Vàng 24K & Bảng điện Mua Vào / Bán Ra */
  --primary-gold: #C59329 !important;
  --primary-gold-dark: #8C6214 !important;
  --primary-gold-light: #FDF6E4 !important;
  --accent-gold: #B8860B !important;

  --color-up: #067647 !important; /* Xanh Ngọc Bích (Jade Green) - Mua vào */
  --color-up-bg: #ECFDF3 !important;
  --color-up-border: #ABEFC6 !important;

  --color-down: #B91C1C !important; /* Đỏ Đô Kim Hoàn (Ruby Red) - Bán ra */
  --color-down-bg: #FEF2F2 !important;
  --color-down-border: #FECACA !important;

  /* Viền ánh kim & Đổ bóng vàng dịu nhẹ */
  --border-color: rgba(184, 134, 11, 0.22) !important;
  --border-highlight: #D4AF37 !important;
  --header-bg: #FFFFFF !important;
  --shadow-sm: 0 2px 10px rgba(140, 98, 20, 0.06) !important;
  --shadow-md: 0 8px 26px rgba(140, 98, 20, 0.10) !important;
}
/* 1. NỀN TRANG KEM VÀNG HOÀNG GIA (TẮT BLUR & FIXED CHỐNG LAG) */
html, body {
  background-color: #FAF6EE !important;
  background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 60%) !important;
  background-attachment: scroll !important;
  color: #23180B !important;
}

/* 2. THANH BẢNG ĐIỆN TỬ CHẠY TRÊN CÙNG (MÀU ĐỎ ĐÔ - VÀNG KIM TIỆM VÀNG) */
.ticker-wrap {
  background: linear-gradient(90deg, #5C0A0E 0%, #7A1116 50%, #5C0A0E 100%) !important;
  border-bottom: 1.5px solid #D4AF37 !important;
  color: #FFFBEB !important;
  height: 38px !important;
}

.ticker-badge {
  background: linear-gradient(135deg, #FDE047 0%, #CA8A04 100%) !important;
  color: #23180B !important;
  border-right: 1px solid #FFFBEB !important;
  font-weight: 800 !important;
  box-shadow: 8px 0 16px rgba(60, 6, 9, 0.85) !important;
  z-index: 20 !important;
}

.ticker-item .name {
  color: #FDE68A !important;
  font-weight: 600 !important;
}

.ticker-item .val {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

/* 3. HEADER KIM HOÀN CAO CẤP */
.app-header {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF9F0 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(184, 134, 11, 0.28) !important;
  padding: 12px 0 !important;
  box-shadow: 0 2px 12px rgba(140, 98, 20, 0.06) !important;
}

.brand-icon.kp-emblem-svg {
  width: 46px !important;
  height: 46px !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #7A1116 0%, #4A070A 100%) !important;
  border: 1.5px solid #D4AF37 !important;
  box-shadow: 0 4px 12px rgba(122, 17, 22, 0.25) !important;
}

.brand-info h1 {
  font-family: var(--font-brand) !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  color: #7A1116 !important;
}

.brand-info h1 span {
  color: #B45309 !important;
}

.brand-info p {
  color: #6B5A42 !important;
  font-weight: 600 !important;
}

/* 4. THANH ĐIỀU HƯỚNG 6 CHUYÊN MỤC (VÀNG CHAMPAGNE - CĂN GIỮA) */
.sticky-nav {
  position: sticky !important;
  top: 70px !important;
  z-index: 950 !important;
  background: rgba(250, 246, 238, 0.96) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(184, 134, 11, 0.22) !important;
  box-shadow: 0 4px 12px rgba(140, 98, 20, 0.05) !important;
  padding: 8px 0 !important;
  margin-bottom: 0 !important;
}

.sticky-nav .container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

.sticky-nav .tabs-nav {
  background: #F3EBD8 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(184, 134, 11, 0.32) !important;
  box-shadow: inset 0 1px 2px rgba(140, 98, 20, 0.08) !important;
  padding: 6px 14px !important;
  gap: 6px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  justify-content: center !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.nav-item-btn,
.sticky-nav .tab-btn {
  color: #5C4D38 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease !important;
}

.nav-item-btn.active,
.sticky-nav .tab-btn.active {
  background: linear-gradient(135deg, #C59329 0%, #9A6B13 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #8C6214 !important;
  box-shadow: 0 2px 8px rgba(154, 107, 19, 0.3) !important;
}

.nav-item-btn .nav-svg {
  filter: none !important;
}

.content-section {
  scroll-margin-top: 145px !important;
}

/* ĐỒNG BỘ KHOẢNG CÁCH TUYỆT ĐỐI GIỮA CÁC BLOCK (TRỤC DỌC & NGANG) */
.main-content,
.main-content-area {
  padding-top: 20px !important;
  padding-bottom: 32px !important;
}

.content-section {
  display: block !important;
  margin-bottom: 24px !important;
}

.content-section:last-of-type,
.content-section:last-child {
  margin-bottom: 0 !important;
}

.app-footer {
  margin-top: 0 !important;
}

/* 5. KHỐI BẢNG GIÁ CHÍNH & CARD ĐỒNG BỘ CĂN LỀ */
.section-card {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1.5px solid rgba(184, 134, 11, 0.32) !important;
  border-radius: 18px !important;
  padding: 22px 24px !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 20px rgba(140, 98, 20, 0.06) !important;
  transition: none !important;
}

.section-card::before {
  display: none !important;
}

/* TIÊU ĐỀ MỖI BLOCK: NỀN VÀNG KÉO DÀI HẾT KHUNG + CHỮ MÀU ĐỎ HOÀNG GIA */
.section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, #FFF1B5 0%, #F8D36A 45%, #E6AE26 100%) !important;
  border: 1.5px solid #C59329 !important;
  border-top: 1.5px solid #C59329 !important;
  border-bottom: 1.5px solid #C59329 !important;
  border-radius: 12px !important;
  padding: 12px 20px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 3px 10px rgba(184, 134, 11, 0.18) !important;
}

.section-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.section-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 9px !important;
  background: rgba(122, 17, 22, 0.08) !important;
  border: 1.5px solid rgba(122, 17, 22, 0.25) !important;
  color: #7A1116 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 2px rgba(122, 17, 22, 0.08) !important;
  flex-shrink: 0 !important;
}

.section-icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #7A1116 !important;
  display: block !important;
}

.section-eyebrow {
  color: #7A1116 !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.section-title {
  font-family: var(--font-serif) !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #7A1116 !important;
  letter-spacing: 0.01em !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.section-subtitle {
  color: #7A1116 !important;
  opacity: 0.85 !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  margin-top: 2px !important;
}

.section-badge,
.vne-poll-count-badge,
.fengshui-badge {
  background: #FFFFFF !important;
  border: 1px solid rgba(122, 17, 22, 0.3) !important;
  color: #7A1116 !important;
  font-weight: 700 !important;
  font-size: 0.76rem !important;
  border-radius: 9999px !important;
  padding: 4px 12px !important;
  box-shadow: 0 1px 3px rgba(140, 98, 20, 0.1) !important;
}

/* 6. BẢNG GIÁ VÀNG TRÊN DESKTOP (> 900px) */
@media (min-width: 901px) {
  .brand-table-header-row {
    display: grid !important;
    grid-template-columns: minmax(220px, 2.1fr) 1.2fr 1.2fr 0.95fr 1.15fr 244px !important;
    align-items: center !important;
    padding: 12px 20px !important;
    gap: 12px !important;
    background: linear-gradient(90deg, #F5EFE2 0%, #FAF6EE 100%) !important;
    border: 1px solid rgba(184, 134, 11, 0.3) !important;
    border-radius: 12px !important;
    color: #5C4D38 !important;
    font-weight: 800 !important;
    box-sizing: border-box !important;
  }
  .brand-table-header-row .th-brand {
    text-align: left !important;
  }
  .brand-table-header-row .th-price,
  .brand-table-header-row .th-spread {
    text-align: right !important;
  }
  .brand-table-header-row .th-time,
  .brand-table-header-row .th-actions {
    text-align: center !important;
  }
  .brand-accordion-header {
    display: grid !important;
    grid-template-columns: minmax(220px, 2.1fr) 1.2fr 1.2fr 0.95fr 1.15fr 116px 116px !important;
    align-items: center !important;
    padding: 14px 20px !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }
  .accordion-brand-col {
    text-align: left !important;
  }
  .accordion-price-buy,
  .accordion-price-sell {
    text-align: right !important;
  }
  .accordion-spread-col {
    text-align: right !important;
  }
  .accordion-time-col {
    text-align: center !important;
  }
  .accordion-expand-hint-col,
  .accordion-link-col {
    text-align: center !important;
  }
}

/* Thẻ từng thương hiệu vàng */
.brand-accordion-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(184, 134, 11, 0.25) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(140, 98, 20, 0.04) !important;
  contain: content !important;
}

.brand-accordion-card:hover {
  background: #FFFCF5 !important;
  border-color: #C59329 !important;
}

/* Thẻ SƠN KIM PHÚC nổi bật chuẩn Bảng Vàng Chủ Tiệm */
.brand-skp-accordion {
  background: linear-gradient(90deg, #FFF8E1 0%, #FFFFFF 65%, #FFF8E1 100%) !important;
  border: 2px solid #D97706 !important;
  border-left: 6px solid #991B1B !important;
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.14) !important;
}

.accordion-brand-name {
  color: #23180B !important;
  font-weight: 800 !important;
}
.brand-skp-accordion .accordion-brand-name {
  color: #991B1B !important;
}
.accordion-brand-meta {
  color: #6B5A42 !important;
}

/* Cỡ số Giá Mua / Giá Bán to, đậm rõ như bảng LED tiệm vàng */
.accordion-price-col .price-cell {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
}

.btn-expand-hint {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
  border: 1px solid #D97706 !important;
  color: #78350F !important;
  font-weight: 700 !important;
}

.btn-official-source,
.skp-source-badge {
  background: #F5EFE2 !important;
  border: 1px solid rgba(184, 134, 11, 0.35) !important;
  color: #5C4D38 !important;
  font-weight: 700 !important;
}

.brand-accordion-body {
  background: #FAF6EE !important;
  border-top: 1px solid rgba(184, 134, 11, 0.25) !important;
}

.sub-products-table th {
  background: #F3EBD8 !important;
  color: #5C4D38 !important;
}

.sub-products-table td {
  background: #FFFFFF !important;
  border-bottom: 1px solid rgba(184, 134, 11, 0.15) !important;
  color: #23180B !important;
}

/* 7. CÁC KHỐI CÒN LẠI (VÀNG THẾ GIỚI, AI, GIỜ HOÀNG ĐẠO, NGÂN HÀNG) */
.tv-sjc-single-quote-box,
.wg-market-card,
.vne-poll-option,
.vne-result-item,
.advice-metric-card,
.analysis-col-card,
.fs-profile-card,
.bank-forex-block,
.news-card {
  background: #FAF6EE !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(184, 134, 11, 0.25) !important;
  color: #23180B !important;
  box-shadow: none !important;
}

.fengshui-input-panel {
  background: #FAF6EE !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1.5px solid rgba(184, 134, 11, 0.35) !important;
  border-radius: 16px !important;
  color: #23180B !important;
  box-shadow: 0 2px 10px rgba(140, 98, 20, 0.04) !important;
  margin-bottom: 18px !important;
}

.tv-single-quote-iframe-wrap {
  background: #FFFFFF !important;
  border-color: rgba(184, 134, 11, 0.25) !important;
}

.tv-sjc-title,
.analysis-col-header h4,
.fs-td-val,
.fs-hero-reason {
  color: #9A6B13 !important;
}

.wg-market-score,
.vne-poll-question,
.vne-option-text strong,
.vne-res-label,
.fs-profile-main,
.fs-timeline-header,
.fs-slot-chi,
.fs-dynamic-tip {
  color: #23180B !important;
}

.text-btc {
  color: #D97706 !important;
}

.fs-form-group label {
  color: #2D2319 !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  line-height: 18px !important;
  height: 18px !important;
  display: flex !important;
  align-items: center !important;
}

.fs-select {
  background: #FFFFFF !important;
  color: #23180B !important;
  border: 1px solid rgba(184, 134, 11, 0.4) !important;
}

.fs-teaser-cover {
  background: linear-gradient(135deg, #FFFDF8 0%, #FAF4E6 100%) !important;
  border: 1.5px dashed rgba(184, 134, 11, 0.4) !important;
  border-radius: 16px !important;
  padding: 24px 20px !important;
  box-shadow: 0 4px 16px rgba(140, 98, 20, 0.05) !important;
}

.fs-teaser-emblem {
  width: 96px !important;
  height: 96px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, #FFFBEB 0%, #FEF3C7 60%, rgba(245, 158, 11, 0.2) 100%) !important;
  border: 2px solid #F59E0B !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.22) !important;
  margin: 0 auto 10px !important;
}

.fs-teaser-emblem .cute-than-tai-svg {
  width: 76px !important;
  height: 76px !important;
  display: block !important;
}

.fs-teaser-text h4 {
  color: #7A1116 !important;
  font-family: var(--font-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  margin-bottom: 8px !important;
}

.fs-teaser-text p {
  color: #2D2319 !important;
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
}

/* 4 Ô TÍNH NĂNG XẾP THÀNH 2 Ô MỖI HÀNG, DÀI BẰNG NHAU, CÙNG SIZE CHỮ */
.fs-teaser-pills {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  max-width: 520px !important;
  width: 100% !important;
  margin: 14px auto 0 !important;
}

.fs-teaser-pills span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #7A1116 !important;
  background: #FFF9ED !important;
  border: 1.5px solid rgba(184, 134, 11, 0.35) !important;
  padding: 8px 12px !important;
  border-radius: 9999px !important;
  box-shadow: 0 1px 3px rgba(140, 98, 20, 0.06) !important;
}

/* LOẠI BỎ TRIỆT ĐỂ CHỮ MÀU XÁM TRONG TOÀN BỘ GIAO DIỆN */
.btn-vne-view-results,
.btn-vne-revote {
  color: #7A1116 !important;
  border-color: rgba(122, 17, 22, 0.35) !important;
  font-weight: 700 !important;
  background: #FAF6EE !important;
}

.btn-vne-view-results:hover,
.btn-vne-revote:hover {
  color: #5C0A0E !important;
  border-color: #7A1116 !important;
  background: rgba(122, 17, 22, 0.08) !important;
}

.vne-option-text small,
.fs-profile-tag,
.fs-td-label,
.accordion-brand-meta,
.bank-block-sub {
  color: #4A3B2C !important;
  font-weight: 600 !important;
}

.fs-profile-sub {
  color: #2D2319 !important;
  font-weight: 600 !important;
}

.fs-hero-card {
  background: linear-gradient(135deg, #FFF8E1 0%, #FEF3C7 100%) !important;
  border: 1.5px solid #D97706 !important;
}

.fs-hero-hours { color: #7A1116 !important; }
.fs-runner-up { background: #FFFFFF !important; color: #5C4D38 !important; }

.bank-pill-btn,
.article-cat-btn {
  background: #F5EFE2 !important;
  border: 1px solid rgba(184, 134, 11, 0.3) !important;
  color: #5C4D38 !important;
}

.bank-pill-btn.active,
.article-cat-btn.active {
  background: linear-gradient(135deg, #7A1116 0%, #5C0A0E 100%) !important;
  color: #FDE047 !important;
  border-color: #D4AF37 !important;
}

.app-footer {
  background: #F3EBD8 !important;
  border-top: 2px solid #D4AF37 !important;
  color: #5C4D38 !important;
}

.footer-brand strong {
  color: #7A1116 !important;
}

.footer-email-link {
  color: #B45309 !important;
}

.footer-nav-pill {
  background: #FAF6EE !important;
  border: 1px solid rgba(184, 134, 11, 0.28) !important;
  color: #23180B !important;
}

.footer-nav-pill:hover {
  background: #F3EBD8 !important;
  color: #7A1116 !important;
}

.modal-overlay {
  background: rgba(35, 24, 11, 0.6) !important;
}

.modal-card {
  background: #FAF6EE !important;
  color: #23180B !important;
  border: 1.5px solid #D4AF37 !important;
  box-shadow: 0 20px 40px rgba(122, 17, 22, 0.15) !important;
}

.modal-header {
  border-bottom: 1px solid rgba(184, 134, 11, 0.25) !important;
}

.modal-footer {
  border-top: 1px solid rgba(184, 134, 11, 0.25) !important;
}

.policy-modal-content h4 {
  color: #7A1116 !important;
}

.policy-modal-content p,
.policy-modal-content li {
  color: #374151 !important;
}

.policy-highlight-box {
  background: #FFF8E1 !important;
  border: 1px solid #D97706 !important;
  color: #7A1116 !important;
}

/* Tiện ích ẩn hiện theo thiết bị */
.mobile-only {
  display: none !important;
}

/* ==========================================================================
   8. TỐI ƯU ĐẶC BIỆT CHO ĐIỆN THOẠI (MOBILE <= 768px) — DỄ NHÌN, RÕ SỐ, DỄ BẤM
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 10px !important;
  }
  .app-header {
    padding: 8px 0 !important;
  }
  .brand-icon.kp-emblem-svg {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
  }
  .brand-info h1 {
    font-size: 1.08rem !important;
  }
  /* Thanh danh mục dạng 1 khối mỗi hàng 2 danh mục trên Mobile (100% nằm gọn trong khung, không tràn viền) */
  .sticky-nav {
    position: relative !important;
    top: auto !important;
    padding: 6px 0 10px !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    border-bottom: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .sticky-nav .container {
    padding: 0 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
  }
  .sticky-nav .tabs-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 7px !important;
    border-radius: 16px !important;
    background: #F3EBD8 !important;
    border: 1.5px solid rgba(184, 134, 11, 0.3) !important;
    box-shadow: inset 0 1px 3px rgba(140, 98, 20, 0.08) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .nav-item-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 8px 6px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: #FFFFFF !important;
    color: #5C4D38 !important;
    border: 1px solid rgba(184, 134, 11, 0.22) !important;
    box-shadow: 0 1px 2px rgba(140, 98, 20, 0.05) !important;
    text-align: center !important;
    width: 100% !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
  }
  .nav-item-btn .nav-svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
  }
  .nav-item-btn .nav-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .nav-item-btn.active {
    background: linear-gradient(135deg, #C59329 0%, #9A6B13 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid #8C6214 !important;
    box-shadow: 0 2px 6px rgba(154, 107, 19, 0.35) !important;
  }
  /* Danh mục thứ 7 (Bài Viết) phủ đều full chiều ngang hàng cuối */
  .nav-item-btn:last-child {
    grid-column: 1 / -1 !important;
  }
  .main-content,
  .main-content-area {
    padding-top: 14px !important;
    padding-bottom: 16px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }
  .content-section {
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .content-section:last-of-type,
  .content-section:last-child {
    margin-bottom: 0 !important;
  }
  .section-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .section-card::before {
    display: none !important;
  }
  .section-header {
    width: 100% !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #FFF1B5 0%, #F8D36A 45%, #E6AE26 100%) !important;
    border: 1.5px solid #C59329 !important;
    border-top: 1.5px solid #C59329 !important;
    border-bottom: 1.5px solid #C59329 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.16) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .section-title-wrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .section-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 7px !important;
    background: rgba(122, 17, 22, 0.08) !important;
    border: 1px solid rgba(122, 17, 22, 0.25) !important;
    color: #7A1116 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .section-icon svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #7A1116 !important;
    display: block !important;
  }
  .section-title {
    font-size: 1.18rem !important;
    font-weight: 800 !important;
    color: #7A1116 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    line-height: 1.25 !important;
  }
  /* Ẩn thanh tiêu đề cột máy tính trên Mobile */
  .brand-table-header-row {
    display: none !important;
  }
  /* Chuyển từng dòng thương hiệu thành Thẻ Mobile 3 Tầng rõ ràng */
  .brand-accordion-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px !important;
    gap: 10px !important;
  }
  /* Tầng 1: Logo + Tên tiệm vàng */
  .accordion-brand-col {
    width: 100% !important;
  }
  .accordion-brand-name {
    font-size: 1rem !important;
  }
  .accordion-brand-meta {
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  /* Tầng 2: Ô Giá MUA VÀO (Trái) - BÁN RA (Phải) to, rõ như bảng điện tiệm vàng */
  .accordion-prices-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    background: #FAF6EE !important;
    border: 1px solid rgba(184, 134, 11, 0.28) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
  }
  .brand-skp-accordion .accordion-prices-group {
    background: #FFFFFF !important;
    border-color: #F59E0B !important;
  }
  .accordion-price-buy {
    text-align: left !important;
    border-right: 1px dashed rgba(184, 134, 11, 0.35) !important;
    padding-right: 8px !important;
  }
  .accordion-price-sell {
    text-align: right !important;
    padding-left: 8px !important;
  }
  .mobile-price-tag-label {
    display: block !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
  }
  .accordion-price-col .price-cell {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
  }
  /* Tầng 3: Chênh lệch + Giờ + 2 Nút bấm chia đôi màn hình rất dễ chạm */
  .accordion-meta-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    padding-top: 6px !important;
    border-top: 1px dashed rgba(184, 134, 11, 0.22) !important;
  }
  .btn-expand-hint,
  .btn-official-source,
  .skp-source-badge {
    height: 36px !important;
    font-size: 0.78rem !important;
    width: 100% !important;
  }

  /* Tiện ích ẩn hiện trên Mobile */
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-block !important;
  }

  /* =========================================================================
     BẢNG TỶ GIÁ NGOẠI TỆ 5 NGÂN HÀNG - GIAO DIỆN MOBILE BAO QUÁT (CHUẨN VIETCOMBANK)
     ========================================================================= */
  #sec-forex .filter-bar {
    display: none !important;
  }
  #sec-forex .bank-switch-pills {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin: 8px 0 14px 0 !important;
  }
  #sec-forex .bank-pill-btn {
    padding: 7px 4px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 9px !important;
    min-height: 34px !important;
    box-sizing: border-box !important;
  }
  #sec-forex .bank-pill-svg {
    display: none !important;
  }
  #sec-forex .bank-forex-block {
    padding: 12px 10px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
    background: #FAF6EE !important;
    border: 1px solid rgba(184, 134, 11, 0.25) !important;
  }
  #sec-forex .bank-block-header {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2) !important;
  }
  #sec-forex .bank-block-title-wrap {
    gap: 8px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }
  #sec-forex .bank-avatar-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }
  #sec-forex .bank-block-heading {
    font-size: 0.94rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #2D2319 !important;
    margin: 0 !important;
  }
  #sec-forex .bank-block-sub {
    font-size: 0.7rem !important;
    gap: 4px !important;
    color: #6B5A42 !important;
    margin-top: 2px !important;
  }
  #sec-forex .bank-source-btn {
    font-size: 0.72rem !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  #sec-forex .mobile-table-hint {
    display: none !important;
  }
  #sec-forex .table-responsive {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(184, 134, 11, 0.25) !important;
    background: #FFFFFF !important;
  }
  #sec-forex .custom-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin: 0 !important;
  }
  #sec-forex .custom-table th,
  #sec-forex .custom-table td {
    position: static !important;
    min-width: 0 !important;
    left: auto !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }
  #sec-forex .custom-table th {
    padding: 8px 3px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
    background: #F3EBD8 !important;
    color: #5C4D38 !important;
    border-bottom: 1.5px solid rgba(184, 134, 11, 0.35) !important;
    text-transform: none !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: right !important;
  }
  #sec-forex .custom-table th:first-child {
    text-align: left !important;
    padding-left: 8px !important;
  }
  #sec-forex .custom-table th:last-child {
    padding-right: 8px !important;
  }
  #sec-forex .custom-table td {
    padding: 9px 4px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(184, 134, 11, 0.12) !important;
    background: #FFFFFF !important;
  }
  #sec-forex .custom-table tr:last-child td {
    border-bottom: none !important;
  }
  #sec-forex .custom-table tr:hover td {
    background: #FAF6EE !important;
  }
  /* Ẩn cột Tên Ngoại Tệ và Chênh Lệch trên Mobile để giao diện bao quát như Vietcombank */
  #sec-forex .forex-col-name,
  #sec-forex .forex-col-spread {
    display: none !important;
  }
  /* Cột 1: Mã NT */
  #sec-forex .forex-col-curr {
    width: 19% !important;
    text-align: left !important;
    padding-left: 8px !important;
  }
  #sec-forex .currency-flag {
    display: none !important;
  }
  #sec-forex .currency-code-text {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    color: #2D2319 !important;
    letter-spacing: 0.02em !important;
  }
  #sec-forex .currency-code-cell {
    gap: 0 !important;
    justify-content: flex-start !important;
  }
  /* Cột 2: Tiền Mặt */
  #sec-forex .forex-col-buycash {
    width: 27% !important;
    text-align: right !important;
  }
  /* Cột 3: Chuyển Khoản */
  #sec-forex .forex-col-buytransfer {
    width: 27% !important;
    text-align: right !important;
  }
  /* Cột 4: Bán */
  #sec-forex .forex-col-sell {
    width: 27% !important;
    text-align: right !important;
    padding-right: 8px !important;
  }
  #sec-forex .price-cell {
    font-family: var(--font-numbers, -apple-system, sans-serif) !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }
  #sec-forex .bank-mobile-cards {
    display: none !important;
  }
}

/* =============================================================================
   TỐI ƯU SIÊU NHẸ: VÔ HIỆU HÓA CÁC HIỆU ỨNG XUNG NHỊP GÂY NẶNG CPU & PIN
   ============================================================================= */
.live-pulse-dot,
.live-dot-pulse,
.status-dot,
.ai-risk-gauge-dot,
.pulse-badge,
.risk-pulse,
.blink-arrow,
.section-badge .live-pulse-dot,
.wg-live-indicator .live-dot-pulse {
  animation: none !important;
  -webkit-animation: none !important;
  transform: none !important;
}

/* Đèn trạng thái hiển thị dạng tĩnh sắc nét, nhẹ máy */
.live-pulse-dot,
.live-dot-pulse {
  opacity: 1 !important;
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #10B981 !important;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.6) !important;
}

.live-dot-pulse.pulse-btc {
  background: #F59E0B !important;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.6) !important;
}

/* =============================================================================
   KHỐI: DỰ ĐOÁN CẶP SỐ ĐUÔI MAY MẮN (SỔ MƠ DÂN GIAN & THẦN TÀI)
   ============================================================================= */
.lucky-omen-card {
  position: relative;
  overflow: hidden;
}

.omen-badge-icon {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%) !important;
  color: #B45309 !important;
  border: 1px solid rgba(184, 134, 11, 0.3) !important;
}

.omen-interactive-box {
  padding: 10px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.omen-prompt-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2D2319;
}

.omen-prompt-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.omen-prompt-text {
  letter-spacing: -0.01em;
}

.omen-form {
  width: 100%;
}

.omen-input-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.omen-text-input {
  flex: 1;
  padding: 12px 18px;
  background: #FDFBF7;
  border: 1.5px solid rgba(184, 134, 11, 0.35);
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #2D2319;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.omen-text-input::placeholder {
  color: #8C7A6B;
  font-size: 0.86rem;
}

.omen-text-input:focus {
  border-color: #C59329;
  box-shadow: 0 0 0 3px rgba(197, 147, 41, 0.18);
  background: #FFFFFF;
}

.omen-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #C59329 0%, #9A6B13 100%);
  color: #FFFFFF;
  border: 1px solid #8C6214;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(154, 107, 19, 0.25);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.omen-submit-btn:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #A87618 100%);
  box-shadow: 0 4px 14px rgba(154, 107, 19, 0.35);
}

.omen-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.quick-tag-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #8C7A6B;
}

.omen-tag-btn {
  background: #F3EBD8;
  border: 1px solid rgba(184, 134, 11, 0.28);
  color: #5C4D38;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.omen-tag-btn:hover {
  background: #EADBBF;
  border-color: #C59329;
  color: #2D2319;
}

/* Khung hiển thị DUY NHẤT câu trả lời & icon Thần Tài */
.omen-result-container {
  margin-top: 10px;
}

.omen-result-box {
  background: linear-gradient(180deg, #FDFBF7 0%, #FAF2E3 100%);
  border: 1.5px dashed rgba(197, 147, 41, 0.45);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(140, 98, 20, 0.06);
}

.omen-result-text {
  font-size: 1.18rem;
  font-weight: 700;
  color: #2D2319;
  margin-bottom: 14px;
  line-height: 1.5;
}

.omen-lucky-number {
  font-family: var(--font-numbers, -apple-system, sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #B45309;
  background: linear-gradient(135deg, #C59329 0%, #7A1116 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-left: 6px;
  letter-spacing: 0.04em;
  filter: drop-shadow(0 2px 4px rgba(180, 83, 9, 0.2));
}

.cute-than-tai-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cute-than-tai-svg {
  display: block;
  max-width: 120px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(184, 134, 11, 0.2));
}

.than-tai-caption {
  font-size: 0.84rem;
  font-weight: 700;
  color: #8C6214;
  letter-spacing: 0.02em;
}

/* Mobile Responsive cho khối Điềm Báo & Thần Tài */
@media (max-width: 768px) {
  .omen-interactive-box {
    gap: 12px;
  }
  .omen-prompt-header {
    font-size: 0.98rem;
  }
  .omen-input-group {
    flex-direction: column;
    gap: 8px;
  }
  .omen-text-input {
    padding: 11px 14px;
    font-size: 0.88rem;
  }
  .omen-submit-btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.9rem;
  }
  .omen-quick-tags {
    gap: 6px;
  }
  .omen-tag-btn {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  .omen-result-box {
    padding: 18px 14px;
  }
  .omen-result-text {
    font-size: 1.05rem;
  }
  .omen-lucky-number {
    font-size: 1.95rem;
  }
  .cute-than-tai-svg {
    max-width: 105px;
  }
  .than-tai-caption {
    font-size: 0.78rem;
  }
}

/* =============================================================================
   9. TOÀN DIỆN TỐI ƯU CHO IPAD & TABLET (769px - 1024px, IPAD AIR, IPAD PRO)
   BẢNG BIỂU RÕ RÀNG, TOUCH TARGET CHUẨN APPLE HIG, KHÔNG TRÀN VIỀN
   ============================================================================= */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Khung bao chung */
  .container {
    padding: 0 20px !important;
    max-width: 100% !important;
  }

  .main-content,
  .main-content-area {
    padding-top: 18px !important;
    padding-bottom: 24px !important;
  }

  .section-card {
    padding: 18px 16px !important;
    border-radius: 18px !important;
    margin-bottom: 20px !important;
  }
  .section-card::before {
    display: none !important;
  }
  .section-header {
    border: 1.5px solid #C59329 !important;
    border-top: 1.5px solid #C59329 !important;
    border-bottom: 1.5px solid #C59329 !important;
    padding: 11px 18px !important;
  }
  .section-title {
    font-size: 1.25rem !important;
  }
  .section-icon {
    width: 36px !important;
    height: 36px !important;
  }
  .section-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  /* 1. Header & Brand trên Tablet */
  .app-header {
    padding: 12px 0 !important;
  }
  .brand-icon.kp-emblem-svg {
    width: 38px !important;
    height: 38px !important;
  }
  .brand-info h1 {
    font-size: 1.25rem !important;
  }

  /* 2. Thanh Điều Hướng Chuyên Mục (.sticky-nav) dạng Segmented Control bo tròn trên iPad */
  .sticky-nav {
    position: sticky !important;
    top: 56px !important;
    z-index: 99 !important;
    padding: 8px 0 12px !important;
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }
  .sticky-nav .tabs-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 7px 10px !important;
    border-radius: 16px !important;
    background: #F3EBD8 !important;
    border: 1px solid rgba(184, 134, 11, 0.3) !important;
    box-shadow: inset 0 1px 3px rgba(140, 98, 20, 0.08) !important;
    max-width: 100% !important;
  }
  .nav-item-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 13px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    min-height: 40px !important;
    flex: 0 1 auto !important;
    box-sizing: border-box !important;
  }
  .nav-item-btn .nav-svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
  }

  /* 3. BẢNG GIÁ VÀNG TRONG NƯỚC: Khắc phục lỗi ẩn tiêu đề cột, hiển thị Financial Grid chuẩn xác */
  .brand-table-header-row {
    display: grid !important;
    grid-template-columns: minmax(180px, 1.8fr) minmax(105px, 1.15fr) minmax(105px, 1.15fr) minmax(85px, 0.9fr) 210px !important;
    align-items: center !important;
    padding: 10px 16px !important;
    gap: 10px !important;
    background: linear-gradient(90deg, #F5EFE2 0%, #FAF6EE 100%) !important;
    border: 1px solid rgba(184, 134, 11, 0.3) !important;
    border-radius: 12px !important;
    color: #5C4D38 !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
  }
  .brand-table-header-row .th-brand {
    text-align: left !important;
  }
  .brand-table-header-row .th-price,
  .brand-table-header-row .th-spread {
    text-align: right !important;
  }
  .brand-table-header-row .th-time {
    display: none !important;
  }
  .brand-table-header-row .th-actions {
    text-align: center !important;
  }
  .brand-accordion-header {
    display: grid !important;
    grid-template-columns: minmax(180px, 1.8fr) minmax(105px, 1.15fr) minmax(105px, 1.15fr) minmax(85px, 0.9fr) 100px 100px !important;
    align-items: center !important;
    padding: 12px 16px !important;
    gap: 10px !important;
    min-height: 64px !important;
    box-sizing: border-box !important;
  }
  .accordion-brand-col {
    text-align: left !important;
  }
  .accordion-price-buy,
  .accordion-price-sell {
    text-align: right !important;
  }
  .accordion-spread-col {
    text-align: right !important;
  }
  .accordion-time-col {
    display: none !important;
  }
  .accordion-expand-hint-col,
  .accordion-link-col {
    text-align: center !important;
  }
  .accordion-brand-name {
    font-size: 0.95rem !important;
  }
  .accordion-price-col .price-cell {
    font-size: 1.12rem !important;
  }
  .btn-expand-hint,
  .btn-official-source,
  .skp-source-badge {
    height: 38px !important;
    font-size: 0.75rem !important;
    padding: 6px 8px !important;
  }
  /* Bảng chi tiết sản phẩm con bên trong Accordion */
  .sub-products-table {
    font-size: 0.82rem !important;
  }
  .sub-products-table th,
  .sub-products-table td {
    padding: 10px 8px !important;
  }

  /* 4. Khối 2: Vàng Quốc Tế & Thăm Dò Ý Kiến (Dual Columns) */
  .dual-columns-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .vne-poll-question {
    font-size: 0.96rem !important;
    line-height: 1.5 !important;
  }
  .vne-poll-option {
    padding: 12px 16px !important;
    min-height: 44px !important;
  }
  .btn-vne-vote,
  .btn-vne-view-results {
    min-height: 42px !important;
    padding: 10px 22px !important;
    font-size: 0.88rem !important;
  }

  /* 5. Khối Nhận Định AI: 4 Thẻ Chỉ Số & Phân Tích */
  .advice-metric-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .advice-metric-card {
    padding: 10px 12px !important;
    min-height: 84px !important;
  }
  .advice-metric-val {
    font-size: 1.05rem !important;
  }
  .analysis-body-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  /* 6. Khối Giờ Hoàng Đạo trên Tablet */
  .fs-input-grid {
    grid-template-columns: 1fr 1fr 1fr 1.3fr !important;
    gap: 10px !important;
    align-items: flex-end !important;
  }
  .fs-form-action {
    grid-column: 1 / -1 !important;
    margin-top: 6px !important;
  }
  .btn-fs-calc {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 0.92rem !important;
  }
  .fs-teaser-cover {
    padding: 24px 20px !important;
  }

  /* 7. Khối Dự Đoán Cặp Số Đuôi May Mắn */
  .omen-interactive-box {
    gap: 14px !important;
  }
  .omen-input-group {
    flex-direction: row !important;
    gap: 10px !important;
  }
  .omen-text-input {
    min-height: 44px !important;
    font-size: 0.92rem !important;
  }
  .omen-submit-btn {
    min-height: 44px !important;
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
  }

  /* 8. Khối Tỷ Giá Ngoại Tệ 5 Ngân Hàng trên Tablet */
  #sec-forex .bank-switch-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 12px 0 16px !important;
  }
  #sec-forex .bank-pill-btn {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    min-height: 38px !important;
  }
  #sec-forex .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 12px !important;
    border: 1px solid rgba(184, 134, 11, 0.25) !important;
    background: #FFFFFF !important;
  }
  #sec-forex .custom-table {
    width: 100% !important;
    min-width: 680px !important;
    border-collapse: collapse !important;
  }
  #sec-forex .custom-table th,
  #sec-forex .custom-table td {
    padding: 11px 12px !important;
    font-size: 0.84rem !important;
  }

  /* 9. Khối Bài Viết trên Tablet (2 Thẻ mỗi Slide) */
  .news-carousel-slide {
    flex: 0 0 calc((100% - 18px) / 2) !important;
  }
  .news-card-img-wrap {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
  }
  .news-title {
    font-size: 0.98rem !important;
  }
}

/* =============================================================================
   UTILITY TEXT ALIGNMENT & PER-CHỈ GLOBAL SUPPRESSION
   ============================================================================= */
.text-right {
  text-align: right !important;
}

.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

/* Triệt tiêu hoàn toàn tính theo chỉ, số dòng sản phẩm và dải viền trên block */
.section-card::before {
  display: none !important;
}

[data-brand-buy-chi],
[data-brand-sell-chi],
[data-sub-buy-chi],
[data-sub-sell-chi] {
  display: none !important;
}

/* =============================================================================
   HERO BANNER KIM PHÚC JEWELRY (TRÊN BẢNG GIÁ VÀNG TRONG NƯỚC)
   ============================================================================= */
.gold-hero-banner-wrap {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(184, 134, 11, 0.32) !important;
  background: #1a0b0b;
  line-height: 0;
  display: block;
  box-shadow: 0 4px 20px rgba(140, 98, 20, 0.08) !important;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gold-hero-banner-wrap:hover {
  box-shadow: 0 8px 28px rgba(184, 134, 11, 0.18) !important;
}

.gold-hero-banner-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 16px !important;
  aspect-ratio: 2170 / 725;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

@media (max-width: 768px) {
  .gold-hero-banner-wrap {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    border-radius: 16px !important;
    border-width: 1.5px !important;
    box-shadow: 0 3px 12px rgba(140, 98, 20, 0.08) !important;
  }
  .gold-hero-banner-img {
    border-radius: 14px !important;
  }
}

