/*
 * main.css — CSS chính của GiaXangDau Theme
 *
 * Kiến trúc: CSS Custom Properties + BEM methodology
 * Màu sắc: Đồng bộ với maythichgi.com (Anvinasoft design system)
 *
 * Thứ tự import (không thay đổi):
 *   1. CSS Variables (Design Tokens)
 *   2. Reset / Normalize
 *   3. Base Typography
 *   4. Layout
 *   5. Components
 *   6. Sections (page-specific)
 *   7. Utilities
 *   8. Responsive breakpoints
 *   9. Accessibility helpers
 *
 * @package GiaXangDau
 * @author  Anvinasoft Engineering Team
 */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   Thay đổi màu tại đây — tự động áp dụng toàn theme
   ============================================================ */
:root {
  /* Màu chủ đạo xanh lá — đồng bộ với maythichgi.com */
  --clr-green:        #2D8C4E;
  --clr-green-dark:   #1F6B3A;
  --clr-green-deeper: #164D29;
  --clr-green-light:  #EDF7F1;
  --clr-green-mid:    #B8DFC7;
  --clr-green-accent: #3AAB64;

  /* Màu phụ */
  --clr-orange:       #E07C1A;
  --clr-orange-light: #FFF6ED;
  --clr-red:          #E03C3C;
  --clr-red-light:    #FEF2F2;
  --clr-blue:         #1D4ED8;

  /* Màu văn bản */
  --clr-text:         #111827;
  --clr-text-sub:     #4B5563;
  --clr-text-muted:   #9CA3AF;

  /* Màu nền & viền */
  --clr-border:       #E5E7EB;
  --clr-border-light: #F3F4F6;
  --clr-bg:           #F9FAFB;
  --clr-white:        #FFFFFF;

  /* Typography */
  --font-body:    'Be Vietnam Pro', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --font-size-xs: 10px;
  --font-size-sm: 11px;
  --font-size-md: 13px;
  --font-size-base: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 20px;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  12px;
  --space-lg:  16px;
  --space-xl:  20px;
  --space-2xl: 28px;

  /* Border radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);

  /* Transitions */
  --transition: 0.18s ease;

  /* Layout */
  --header-height: 58px;
  --bottomnav-height: 64px;
}

/* ============================================================
   2. RESET & NORMALIZE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--clr-green); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   3. ACCESSIBILITY
   ============================================================ */

/* Screen reader only — ẩn khỏi màn hình nhưng screen reader vẫn đọc được */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible cho keyboard navigation */
:focus-visible {
  outline: 2px solid var(--clr-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.page-wrap {
  padding: 0 var(--space-lg);
  padding-bottom: calc(var(--bottomnav-height) + var(--space-xl));
}

/* Section spacing */
.section {
  margin-top: var(--space-xl);
}

/* Section header: title + "xem thêm" link */
.sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.sec-hd__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Thanh xanh trước tiêu đề section — giống maythichgi.com */
.sec-hd__title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 16px;
  background: var(--clr-green);
  border-radius: 2px;
  flex-shrink: 0;
}

.sec-hd__more {
  font-size: var(--font-size-sm);
  color: var(--clr-green);
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   5. TOPBAR
   ============================================================ */
.topbar {
  background: var(--clr-green-deeper);
  padding: 5px var(--space-lg);
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.topbar__link {
  color: #86efac;
  font-weight: 600;
  text-decoration: none;
}

/* Ẩn topbar trên mobile nhỏ */
@media (max-width: 479px) {
  .topbar { display: none; }
}

/* ============================================================
   6. SITE HEADER
   ============================================================ */
.site-header {
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  padding: 10px var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-sm);
}

/* Logo */
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__icon {
  width: 36px; height: 36px;
  background: var(--clr-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.logo__name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -0.5px;
  line-height: 1.1;
  display: block;
}

.logo__name strong { color: var(--clr-green); }

.logo__tagline {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Actions bên phải header */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-ky-pill {
  background: var(--clr-green-light);
  border: 1px solid var(--clr-green-mid);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-green-dark);
  white-space: nowrap;
}

.header-notif-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  background: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}

.header-notif-btn:hover {
  border-color: var(--clr-green);
  background: var(--clr-green-light);
}

.notif-btn__dot {
  position: absolute;
  top: -3px; right: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-red);
  border: 2px solid var(--clr-white);
}

/* ============================================================
   7. TICKER BAR
   ============================================================ */
.ticker-bar {
  background: var(--clr-green);
  padding: 7px var(--space-lg);
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
  font-size: 12px;
  color: var(--clr-white);
}

.ticker-bar::-webkit-scrollbar { display: none; }

.ticker__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid rgba(255,255,255,.2);
}

.ticker__item:last-child { border-right: none; padding-right: 0; margin-right: 0; }

.ticker__label { color: rgba(255,255,255,.6); white-space: nowrap; font-size: 11px; }
.ticker__val   { font-family: var(--font-heading); font-weight: 700; }
.ticker__chg--up   { color: #fca5a5; font-size: 11px; font-weight: 600; }
.ticker__chg--dn   { color: #86efac; font-size: 11px; font-weight: 600; }

/* ============================================================
   8. BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 8px 0;
  font-size: 12px;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.breadcrumb a { color: var(--clr-green); font-weight: 500; }
.breadcrumb__sep { color: var(--clr-border); }

/* ============================================================
   9. PAGE TITLE
   ============================================================ */
.page-title { padding-top: var(--space-lg); }

.page-title__heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

.page-title__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--clr-text-muted);
  flex-wrap: wrap;
}

/* Live badge — chấm nhấp nháy */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--clr-green-light);
  color: var(--clr-green);
  border: 1px solid var(--clr-green-mid);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.live-badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ============================================================
   10. PRICE HERO
   ============================================================ */
.price-hero {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.price-hero__header {
  background: linear-gradient(135deg, var(--clr-green) 0%, var(--clr-green-accent) 100%);
  padding: 10px var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-hero__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 2px;
}

.price-hero__subtitle { font-size: 11px; color: rgba(255,255,255,.7); }
.price-hero__time     { font-size: 11px; color: rgba(255,255,255,.8); background: rgba(255,255,255,.15); padding: 3px 9px; border-radius: var(--radius-full); white-space: nowrap; }

/* Featured RON 95 */
.price-hero__featured {
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  background: linear-gradient(160deg, var(--clr-green-light) 0%, var(--clr-white) 60%);
  border-bottom: 1px solid var(--clr-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fuel-type-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--clr-green);
  margin-bottom: 4px;
  display: block;
}

.fuel-badge {
  display: inline-block;
  background: var(--clr-green);
  color: var(--clr-white);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.price-display {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 6px 0 8px;
}

.price-main {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  color: var(--clr-text);
  letter-spacing: -2px;
  line-height: 1;
}

.price-meta { padding-bottom: 6px; }
.price-unit { font-size: 14px; color: var(--clr-text-muted); font-weight: 500; display: block; }
.price-currency { font-size: 12px; color: var(--clr-text-muted); display: block; }

.price-hero__featured-icon { font-size: 50px; opacity: .7; }

/* Trust badges */
.price-hero__trust {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border-light);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-text-sub);
}

.trust-item__icon {
  width: 20px; height: 20px;
  background: var(--clr-green-light);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Bảng giá */
.price-table { width: 100%; border-collapse: collapse; }
.price-table__row { border-bottom: 1px solid var(--clr-border-light); transition: background var(--transition); }
.price-table__row:last-child { border-bottom: none; }
.price-table__row:nth-child(even) { background: var(--clr-bg); }
.price-table__row:hover { background: var(--clr-green-light); }
.price-table td { padding: 10px var(--space-lg); }
.fuel-name { font-weight: 700; font-size: 13px; }
.price-table__price { font-family: var(--font-heading); font-size: 16px; font-weight: 800; text-align: right; }
.price-table__price small { font-size: 10px; color: var(--clr-text-muted); font-weight: 400; }
.price-table__delta { text-align: right; }

/* Delta badges */
.delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-full);
}
.delta-badge--sm { font-size: 11px; padding: 2px 8px; }
.delta-badge--up     { background: var(--clr-red-light);   color: var(--clr-red); }
.delta-badge--down   { background: #dcfce7;                 color: #16a34a; }
.delta-badge--flat   { background: var(--clr-border-light); color: var(--clr-text-muted); }

/* ============================================================
   11. COUNTDOWN
   ============================================================ */
.countdown {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.countdown__left { display: flex; align-items: center; gap: var(--space-md); }

.countdown__icon {
  width: 42px; height: 42px;
  background: var(--clr-green-light);
  border: 1px solid var(--clr-green-mid);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

.countdown__label { font-size: 11px; color: var(--clr-text-muted); margin-bottom: 2px; }
.countdown__date  { font-size: 14px; font-weight: 700; }

.countdown__trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}
.countdown__trend--up   { background: var(--clr-red-light); color: var(--clr-red); }
.countdown__trend--down { background: #dcfce7; color: #16a34a; }
.countdown__trend--flat { background: var(--clr-border-light); color: var(--clr-text-muted); }

.countdown__days {
  text-align: right;
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  color: var(--clr-green);
  line-height: 1;
  letter-spacing: -1px;
}
.countdown__unit { font-size: 12px; font-weight: 500; color: var(--clr-text-muted); letter-spacing: 0; }

/* ============================================================
   12. CALCULATOR
   ============================================================ */
.calc-widget {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calc-widget__header {
  background: linear-gradient(135deg, var(--clr-green), var(--clr-green-accent));
  padding: 10px var(--space-lg);
}

.calc-widget__title { font-size: 13px; font-weight: 700; color: var(--clr-white); }
.calc-widget__body  { padding: var(--space-md) var(--space-lg); }

.calc-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

.calc-field__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-text-sub);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 5px;
}

.calc-field__input {
  width: 100%;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.calc-field__input:focus {
  border-color: var(--clr-green);
  box-shadow: 0 0 0 3px rgba(45,140,78,.1);
  background: var(--clr-white);
}

.calc-field__error { display: block; font-size: 11px; color: var(--clr-red); margin-top: 3px; min-height: 16px; }

.calc-btn {
  width: 100%;
  background: var(--clr-green);
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition), transform .1s;
  letter-spacing: .1px;
}
.calc-btn:hover  { background: var(--clr-green-dark); }
.calc-btn:active { transform: scale(.99); }

.calc-result {
  margin-top: 10px;
  background: var(--clr-green-light);
  border: 1px solid var(--clr-green-mid);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-result__label { font-size: 12px; color: var(--clr-text-sub); font-weight: 500; }
.calc-result__detail { display: block; font-size: 11px; color: var(--clr-text-muted); margin-top: 2px; }
.calc-result__value { font-family: var(--font-heading); font-size: 22px; font-weight: 900; color: var(--clr-green-dark); letter-spacing: -.5px; }

/* ============================================================
   13. CHART
   ============================================================ */
.chart-widget {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.chart-widget__header {
  background: linear-gradient(135deg, var(--clr-green), var(--clr-green-accent));
  padding: 10px var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-widget__title { font-size: 13px; font-weight: 700; color: var(--clr-white); }
.chart-widget__body  { padding: var(--space-md) var(--space-lg); }

.chart-tabs { display: flex; gap: 4px; }
.chart-tab {
  font-size: 11px; font-weight: 600;
  padding: 4px 11px; border-radius: 6px; border: none;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.chart-tab--active, .chart-tab:hover { background: var(--clr-white); color: var(--clr-green); font-weight: 700; }

.chart-area { width: 100%; height: 150px; position: relative; }
.chart-loading { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--clr-text-muted); font-size: 13px; }
.chart-xlabels { display: flex; justify-content: space-between; font-size: 10px; color: var(--clr-text-muted); margin-top: 5px; }

/* ============================================================
   14. PROVINCE GRID
   ============================================================ */
.province-widget {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.province-widget__header {
  background: linear-gradient(135deg, var(--clr-green), var(--clr-green-accent));
  padding: 10px var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.province-widget__map-btn { font-size: 11px; color: rgba(255,255,255,.8); font-weight: 500; }

.province-search {
  padding: 9px 12px;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
}

.province-search__input {
  width: 100%;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  background: var(--clr-white);
  outline: none;
  color: var(--clr-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.province-search__input:focus { border-color: var(--clr-green); box-shadow: 0 0 0 3px rgba(45,140,78,.08); }

.province-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  max-height: 270px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-green-mid) transparent;
}
.province-grid::-webkit-scrollbar { width: 3px; }
.province-grid::-webkit-scrollbar-thumb { background: var(--clr-green-mid); border-radius: 4px; }

.province-item {
  border-right: 1px solid var(--clr-border-light);
  border-bottom: 1px solid var(--clr-border-light);
  padding: 9px 10px;
  background: none;
  border-top: none;
  border-left: none;
  text-align: left;
  transition: background var(--transition);
  cursor: pointer;
}
.province-item:nth-child(3n) { border-right: none; }
.province-item:hover         { background: var(--clr-green-light); }
.province-item--active       { background: var(--clr-green-light); }

.province-item__name  { font-size: 12px; font-weight: 700; color: var(--clr-text); display: block; }
.province-item__price { font-size: 11px; color: var(--clr-text-muted); display: block; margin-top: 1px; }
.province-item--active .province-item__name  { color: var(--clr-green-dark); }
.province-item--active .province-item__price { color: var(--clr-green); font-weight: 700; }

.province-not-found { padding: var(--space-lg); text-align: center; color: var(--clr-text-muted); font-size: 13px; }

/* ============================================================
   15. NEWS LIST
   ============================================================ */
.news-widget {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.news-item {
  display: flex;
  gap: 10px;
  padding: 11px var(--space-md);
  border-bottom: 1px solid var(--clr-border-light);
  transition: background var(--transition);
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--clr-bg); }

.news-item__num {
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: var(--clr-green);
  color: var(--clr-white);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.news-item__tag   { font-size: 10px; font-weight: 700; color: var(--clr-orange); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; display: block; }
.news-item__title { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.news-item__link  { color: var(--clr-text); }
.news-item__link:hover { color: var(--clr-green); text-decoration: none; }
.news-item__time  { font-size: 11px; color: var(--clr-text-muted); }

/* ============================================================
   16. SHARE BAR
   ============================================================ */
.share-bar {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.share-bar__title { font-size: 13px; font-weight: 700; }
.share-bar__sub   { font-size: 11px; color: var(--clr-text-muted); margin-top: 2px; }

.share-bar__buttons { display: flex; gap: 7px; }

.share-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.share-btn:hover { border-color: var(--clr-green); background: var(--clr-green-light); text-decoration: none; }

/* ============================================================
   17. FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-green-deeper);
  color: rgba(255,255,255,.65);
  border-radius: var(--radius-md);
  margin: var(--space-xl) var(--space-lg) 0;
  padding: var(--space-lg);
  font-size: 12px;
  line-height: 1.8;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  color: var(--clr-white);
  margin-bottom: 6px;
}
.footer-logo strong { color: #86efac; }

.footer-desc { margin-bottom: 10px; }
.footer-contact { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.footer-contact a { color: #86efac; text-decoration: none; font-weight: 500; }

.footer-links__list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.footer-links__list a { color: rgba(255,255,255,.5); font-size: 11px; text-decoration: none; }
.footer-links__list a:hover { color: rgba(255,255,255,.8); }

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px;
  color: rgba(255,255,255,.35);
}
.footer-copy a { color: rgba(255,255,255,.5); }

/* ============================================================
   18. BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--clr-white);
  border-top: 1px solid var(--clr-border);
  display: flex;
  padding: 5px 0 calc(5px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 0;
  color: var(--clr-text-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  text-decoration: none;
  transition: color var(--transition);
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.bottom-nav__item--active,
.bottom-nav__item:hover { color: var(--clr-green); text-decoration: none; }
.bottom-nav__icon  { font-size: 18px; line-height: 1; }
.bottom-nav__label { line-height: 1; }

/* ============================================================
   19. RESPONSIVE — Desktop (>= 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  /* Desktop: ẩn bottom nav */
  .bottom-nav { display: none; }

  .page-wrap {
    padding-bottom: var(--space-2xl);
    max-width: 760px;
    margin: 0 auto;
  }

  .price-main { font-size: 56px; }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .price-main { font-size: 52px; }
}

/* ============================================================
   20. PRINT STYLES
   In ấn: ẩn nav, ticker, ads; chỉ giữ nội dung chính
   ============================================================ */
@media print {
  .topbar, .site-header, .ticker-bar, .bottom-nav,
  .share-bar, .calc-widget, .chart-widget { display: none !important; }

  .price-hero, .price-table { break-inside: avoid; }
  body { background: white; color: black; font-size: 12pt; }
}
