/*
Theme Name:  GiaNhom Green
Theme URI:   https://anvinasoft.com/themes/gianhom-green
Author:      Anvinasoft
Author URI:  https://anvinasoft.com
Description: Theme WordPress giá nhôm, phong cách xanh công nghiệp. Tối ưu SEO, Schema.org, Chart.js, responsive hoàn toàn. Theo dõi giá nhôm thanh, nhôm tấm, nhôm hợp kim, nhôm phế liệu cập nhật liên tục.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gianhom
Tags:        finance, aluminum, green, custom-colors, custom-logo, featured-images, translation-ready
*/

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════════════ */
:root {
  /* ── Brand Green — xanh công nghiệp nhôm */
  --green-50:        #f0faf0;
  --green-100:       #d6f2d6;
  --green-200:       #aee4ae;
  --green-300:       #75cc75;
  --green-400:       #4ab84a;
  --green-500:       #2e9e2e;   /* primary */
  --green-600:       #1f7e1f;   /* hover */
  --green-700:       #165c16;
  --green-800:       #0f3f0f;
  --green-900:       #0a2a0a;

  /* ── Accent — cam (badges, hotline) */
  --accent:          #e85c1a;
  --accent-hover:    #c44c12;

  /* ── Backgrounds */
  --bg-page:         #f5f7f5;
  --bg-white:        #ffffff;
  --bg-section:      #f0f6f0;
  --bg-topbar:       #1f7e1f;
  --bg-header:       #ffffff;
  --bg-footer:       #1a5c1a;
  --bg-footer-dark:  #123f12;
  --bg-card:         #ffffff;
  --bg-tag:          #e8f5e8;

  /* ── Text */
  --text-dark:       #1a2e1a;
  --text-body:       #3a4a3a;
  --text-muted:      #6b7b6b;
  --text-light:      #9aaa9a;
  --text-on-green:   #ffffff;

  /* ── Borders */
  --border:          #d0ddd0;
  --border-green:    rgba(46,158,46,0.25);
  --border-card:     #e4ede4;

  /* ── Price colors */
  --price-buy:       #d63031;
  --price-sell:      #00b894;
  --price-up:        #00b894;
  --price-down:      #d63031;

  /* ── Typography */
  --font-display:    'Merriweather', 'Georgia', serif;
  --font-body:       'Nunito', 'Segoe UI', sans-serif;
  --font-mono:       'JetBrains Mono', 'Courier New', monospace;

  /* ── Spacing */
  --sp-xs:   4px;
  --sp-sm:   8px;
  --sp-md:   16px;
  --sp-lg:   24px;
  --sp-xl:   40px;
  --sp-2xl:  64px;

  /* ── Shape */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  /* ── Shadow */
  --shadow-sm:    0 1px 4px rgba(30,80,30,0.08);
  --shadow-card:  0 4px 20px rgba(30,80,30,0.10);
  --shadow-green: 0 6px 28px rgba(46,158,46,0.20);
  --shadow-hover: 0 8px 32px rgba(30,80,30,0.16);

  /* ── Transition */
  --ease: all 0.22s ease;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.75;
  font-size: 0.9375rem;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-500); text-decoration: none; transition: var(--ease); }
a:hover { color: var(--green-600); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(1.5rem, 4vw, 2.375rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: 1.125rem; }
p  { margin-bottom: var(--sp-md); color: var(--text-body); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}
.section-gap { padding: var(--sp-2xl) 0; }

/* ═══════════════════════════════════════════════════════════════
   SKIP LINK
══════════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-md);
  padding: 8px 18px;
  background: var(--green-500);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════════════ */
#topbar {
  background: var(--bg-topbar);
  color: rgba(255,255,255,0.88);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid var(--green-700);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.88);
}
.topbar-item svg { width: 14px; height: 14px; fill: currentColor; opacity: .8; }
.topbar-item a { color: inherit; }
.topbar-item a:hover { color: #fff; }
.topbar-hotline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #fff;
  font-size: 0.875rem;
}
.topbar-hotline .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.6s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════════════════
   SITE HEADER
══════════════════════════════════════════════════════════════ */
#site-header {
  background: var(--bg-header);
  border-bottom: 3px solid var(--green-500);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 900;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--sp-lg);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-600);
  white-space: nowrap;
  line-height: 1.2;
}
.site-logo .logo-icon {
  width: 38px; height: 38px;
  background: var(--green-500);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.site-logo .logo-icon svg { width: 22px; height: 22px; fill: #fff; }
.site-logo span.sub {
  display: block;
  font-size: 0.6875rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Primary Nav */
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav a {
  display: block;
  padding: 8px 15px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: var(--ease);
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--green-600);
  background: var(--green-50);
}
.primary-nav .current-menu-item > a {
  border-bottom: 2px solid var(--green-500);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--green-600);
  border-radius: 2px;
  transition: var(--ease);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 60%, var(--green-400) 100%);
  padding: var(--sp-xl) 0 var(--sp-lg);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 70%);
  pointer-events: none;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: 60px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.04);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  pointer-events: none;
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--sp-sm);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.72); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { opacity: .5; }
.page-hero h1 { color: #fff; margin-bottom: 4px; }
.page-hero .subtitle { color: rgba(255,255,255,0.78); margin: 0; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════
   PRICE HERO — Giá mua / bán
══════════════════════════════════════════════════════════════ */
.price-hero-section {
  padding: var(--sp-xl) 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.price-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
}
.price-card {
  background: var(--bg-white);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--ease);
  box-shadow: var(--shadow-card);
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.price-card.buy::before  { background: linear-gradient(90deg, var(--price-buy), #ff6b6b); }
.price-card.sell::before { background: linear-gradient(90deg, var(--green-500), var(--green-300)); }
.price-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: .05;
}
.price-card.buy::after  { background: var(--price-buy); }
.price-card.sell::after { background: var(--green-500); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.price-card.buy:hover  { border-color: var(--price-buy); }
.price-card.sell:hover { border-color: var(--green-500); }

.price-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}
.price-card .value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.875rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.price-card.buy  .value { color: var(--price-buy); }
.price-card.sell .value { color: var(--green-500); }
.price-card .unit { font-size: 0.8125rem; color: var(--text-muted); }

.change-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--sp-sm);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}
.change-badge.up       { background: #e6faf4; color: var(--price-up); }
.change-badge.down     { background: #fdeaea; color: var(--price-down); }
.change-badge.updating { background: #fff8e1; color: #f57c00; }

/* Unit Switcher */
.unit-switcher {
  display: flex;
  gap: 8px;
  margin-top: var(--sp-lg);
  justify-content: center;
  flex-wrap: wrap;
}
.unit-btn {
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--bg-white);
  color: var(--text-muted);
  transition: var(--ease);
  font-family: var(--font-body);
}
.unit-btn:hover,
.unit-btn.active {
  background: var(--green-500);
  border-color: var(--green-500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46,158,46,0.3);
}

/* ═══════════════════════════════════════════════════════════════
   CHART SECTION
══════════════════════════════════════════════════════════════ */
.chart-section {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-xl) 0;
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.chart-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--green-700);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--green-500);
  border-radius: 2px;
}
.chart-range-btns {
  display: flex;
  gap: 4px;
  background: var(--bg-white);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.range-btn {
  padding: 5px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: var(--ease);
  font-family: var(--font-body);
}
.range-btn:hover { color: var(--green-600); }
.range-btn.active {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 2px 8px rgba(46,158,46,0.3);
}
.chart-wrapper {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  height: 280px;
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════
   PRICE TABLE
══════════════════════════════════════════════════════════════ */
.table-section {
  padding: var(--sp-xl) 0;
  background: var(--bg-white);
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 24px;
  background: var(--green-500);
  border-radius: 2px;
  flex-shrink: 0;
}
.update-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-tag);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-green);
}
.update-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  animation: blink 1.8s infinite;
}

.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.price-table thead tr { background: var(--green-500); }
.price-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  white-space: nowrap;
}
.price-table th:not(:first-child) { text-align: right; }
.price-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-body);
}
.price-table td:not(:first-child) { text-align: right; }
.price-table tbody tr:nth-child(even) { background: var(--green-50); }
.price-table tbody tr:hover { background: var(--green-100); }
.price-table tbody tr:last-child td { border-bottom: none; }

.price-table .group-head td {
  background: var(--green-700);
  color: rgba(255,255,255,0.95);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 9px 20px;
  border-bottom: none;
}
.price-table .product-name { font-weight: 600; color: var(--text-dark); }
.price-table .product-spec { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.buy-price  { color: var(--price-buy);   font-weight: 700; font-family: var(--font-mono); }
.sell-price { color: var(--green-600);   font-weight: 700; font-family: var(--font-mono); }
.updating-price {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.updating-price::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.2s infinite;
}

/* ═══════════════════════════════════════════════════════════════
   TRUST BADGES
══════════════════════════════════════════════════════════════ */
.trust-section {
  background: var(--green-500);
  padding: var(--sp-xl) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-sm);
  color: #fff;
}
.trust-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.25);
}
.trust-icon svg { width: 26px; height: 26px; fill: #fff; }
.trust-item strong { font-size: 0.875rem; font-weight: 700; line-height: 1.3; }
.trust-item span   { font-size: 0.75rem; opacity: .78; }

/* ═══════════════════════════════════════════════════════════════
   CONTENT SECTION
══════════════════════════════════════════════════════════════ */
.content-section {
  padding: var(--sp-2xl) 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}
.content-section h2 {
  color: var(--green-700);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm);
  border-bottom: 2px solid var(--green-500);
  display: inline-block;
}
.content-section h3 {
  color: var(--green-600);
  margin: var(--sp-lg) 0 var(--sp-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.content-section h3::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--green-500);
  border-radius: 50%;
}
.content-section p { color: var(--text-body); }
.content-section strong { color: var(--text-dark); }
.content-section ol,
.content-section ul { list-style: none; color: var(--text-body); }
.content-section li { padding: 5px 0 5px 20px; position: relative; }
.content-section ol { counter-reset: li; }
.content-section ol li::before {
  content: counter(li);
  counter-increment: li;
  position: absolute;
  left: 0;
  width: 18px; height: 18px;
  background: var(--green-500);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  top: 8px;
}
.content-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
  top: 5px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}
.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  transition: var(--ease);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  border-color: var(--green-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-green);
}
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-card-title {
  padding: var(--sp-sm) var(--sp-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   BANNER SECTION
══════════════════════════════════════════════════════════════ */
.banner-section { padding: var(--sp-lg) 0; background: var(--bg-section); }
.banner-link {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-green);
  transition: var(--ease);
  box-shadow: var(--shadow-sm);
}
.banner-link:hover {
  border-color: var(--green-500);
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}
.banner-link img { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   SITE FOOTER
══════════════════════════════════════════════════════════════ */
#site-footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.85);
}
.footer-main { padding: var(--sp-2xl) 0 var(--sp-xl); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--sp-xl);
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-sm);
}
.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin: 0 0 var(--sp-md);
  line-height: 1.7;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 8px;
}
.footer-contact-item svg { width: 15px; height: 15px; fill: var(--green-300); flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,0.78); }
.footer-contact-item a:hover { color: #fff; }
.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-300);
  margin-bottom: var(--sp-md);
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--ease);
}
.footer-links a::before { content: '›'; color: var(--green-400); font-weight: 700; }
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
  background: var(--bg-footer-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-md) 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.footer-bottom a { color: var(--green-300); }
.footer-bottom a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   SINGULAR
══════════════════════════════════════════════════════════════ */
.singular-hero { background: var(--green-500); padding: var(--sp-lg) 0; }
.singular-hero .breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; color: rgba(255,255,255,0.75);
}
.singular-hero .breadcrumb a { color: rgba(255,255,255,0.75); }
.singular-hero .breadcrumb a:hover { color: #fff; }
.singular-hero .sep { opacity: .5; }
.singular-body { padding: var(--sp-2xl) 0; background: var(--bg-white); }
.singular-article { padding: 0; border: none; }
.singular-header {
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-lg);
  border-bottom: 2px solid var(--green-500);
}
.singular-header h1 { color: var(--green-700); }
.singular-meta { color: var(--text-muted); font-size: 0.875rem; margin-top: var(--sp-sm); }

/* ═══════════════════════════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════════════════════════ */
.error-404-page { text-align: center; padding: 80px 0; background: var(--bg-white); }
.error-404-inner { max-width: 560px; margin: 0 auto; }
.error-404-code {
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 900;
  color: var(--green-200);
  line-height: 1;
  font-family: var(--font-display);
}
.error-404-page h1 { color: var(--green-700); margin-bottom: var(--sp-md); }
.error-404-desc { color: var(--text-muted); margin-bottom: var(--sp-xl); }
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--green-500);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: 0 4px 16px rgba(46,158,46,.35);
  transition: var(--ease);
}
.btn-back-home:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════════
   INDEX LOOP
══════════════════════════════════════════════════════════════ */
.loop-page { padding: var(--sp-2xl) 0; background: var(--bg-white); }
.loop-article {
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--border);
}
.loop-article h2 a { color: var(--green-700); }
.loop-article h2 a:hover { color: var(--green-500); }
.loop-date { color: var(--text-muted); font-size: 0.875rem; margin: 6px 0 var(--sp-sm); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .trust-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .primary-nav { display: none; }
  .primary-nav.open {
    display: block;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 3px solid var(--green-500);
    box-shadow: 0 8px 24px rgba(30,80,30,0.12);
    z-index: 899;
    padding: var(--sp-sm) var(--sp-md);
  }
  .primary-nav.open ul { flex-direction: column; gap: 2px; }
  .primary-nav.open a  { padding: 10px 14px; border-radius: var(--radius-sm); }
  .menu-toggle          { display: flex; }
  .price-hero-grid      { grid-template-columns: 1fr; }
  .trust-grid           { grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
  .footer-inner         { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .footer-bottom-inner  { flex-direction: column; text-align: center; }
  .chart-header         { flex-direction: column; align-items: flex-start; }
  .topbar-left          { display: none; }
}
@media (max-width: 400px) {
  .trust-grid { grid-template-columns: 1fr; }
  .price-card { padding: var(--sp-lg) var(--sp-md); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
