@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
:root {
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-section-1: #0a0a0a;
  --bg-section-2: #0f0f0f;
  --bg-section-3: #131313;
  --bg-section-4: #080808;
  --section-divider: rgba(255, 255, 255, 0.05);
  --accent-gold: #F0C419;
  --accent-gold-hover: #e5b022;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-bg-hover: rgba(255, 255, 255, 0.06);
  --primary-yellow-rgb: 240, 196, 25;
  --white-rgb: 255, 255, 255;    /* Mã RGB của màu Trắng */
  --gradient-yellow-light-start: 244, 249, 184; /* Màu vàng nhạt (0%) */
  --gradient-yellow-light-end: 240, 196, 25;    /* Màu vàng đậm (100%) */

  /* Stats Colors */
  --stat-blue: #4F7AE8;
  --stat-green: #22C55E;
  --stat-purple: #A855F7;
  /* Typography */
  --font-family: 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 1440px;
  --section-padding: 80px 0;
  --announcement-h: 38px;
  --header-h: 72px;
  --site-top-h: calc(var(--announcement-h) + var(--header-h));
  
  /* Utilities */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s ease;
}

/* =========================================
   Reset & Base
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-section-1);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--site-top-h);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-family);
  transition: var(--transition);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   Typography Utilities
   ========================================= */
.text-gradient {
  background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold { color: var(--accent-gold); }

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* =========================================
   Announcement Bar
   ========================================= */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background-color: var(--bg-section-2);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 13px;
  display: flex;
  overflow: hidden;
  min-height: var(--announcement-h);
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ticker {
  display: inline-block;
  animation: ticker 50s linear infinite;
}

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

.ticker-item strong {
  color: var(--accent-gold);
  margin: 0 4px;
}

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

/* =========================================
   Header
   ========================================= */
.header {
  position: fixed;
  top: var(--announcement-h);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 109;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header .container,
.header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-h);
}

.logo img {
  margin-top: 14px;
  height: 55px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.mobile-menu-btn {
  display: none;
  color: white;
  font-size: 24px;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  padding: 56px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #0a0a0a;
  min-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/vnbc/index/background.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-section-2) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* --- 1. KHUNG BADGE (Nền kính mờ + Viền vàng sang trọng) --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* Khoảng cách giữa chấm xanh và chữ */
  
  background-color: rgba(var(--primary-yellow-rgb), 0.08); 
  backdrop-filter: blur(8px); /* Tạo độ mờ nhẹ phía sau như kính */
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(var(--primary-yellow-rgb), 0.22); 
  
  /* Bo tròn hoàn toàn dạng viên thuốc */
  padding: 8px 24px; /* Trên/Dưới 8px - Trái/Phải 24px giúp badge thon dài */
  border-radius: 9999px; 
  margin-bottom: 4px;
}
.dot {
  width: 8px;          /* Chiều rộng chấm tròn */
  height: 8px;         /* Chiều cao chấm tròn */
  background-color: #4ADE80; 
  border-radius: 50%;  /* Bo tròn tuyệt đối */
  flex-shrink: 0;      /* Ngăn không cho vòng tròn bị bóp méo khi thu nhỏ màn hình */
  
  /* Đẩy nhẹ bóng đổ ra ngoài để hiệu ứng glow mượt hơn */
  filter: drop-shadow(0 0 3px rgba(74, 222, 128, 0.8)); 
}

/* --- 3. CHỮ (.badge-text) - Màu vàng Amber + Khoảng cách chữ rộng --- */
.badge-text {
  color: #F0C419; 
  font-size: 13px;
  font-weight: 700; /* Chữ đậm tương đương tinh chỉnh */
  text-transform: uppercase; /* Luôn viết hoa */
  
  /* Tạo khoảng cách rộng giữa các ký tự */
  letter-spacing: 3px; 
  
  /* Bù trừ khoảng cách cho ký tự cuối cùng để chữ nằm chính giữa */
  margin-right: -3px; 
}

.hero-title {
  font-family: var(--font-family);
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-top: 10px;
  margin-bottom: 10px;
  max-width: 846px;
  margin-left: auto;
  margin-right: auto;
}

/* Kiểu chữ trắng đặc */
.text-solid {
  color: #ffffff;
}

.text-outline {
  color: rgba(var(--white-rgb), 0.2);
}

.hero p {
  font-size: 18px;
  color: rgb(var(--white-rgb));
  max-width: 800px;
  margin: 0 auto 40px;
}

.hero .btn-primary {
  padding: 16px 32px;
  width: min(453px, 100%);
  font-size: 18px;
  background: linear-gradient(
    to right,
    rgba(var(--gradient-yellow-light-start), 0.76) 0%,   /* 76% Opacity */
    rgba(var(--gradient-yellow-light-end), 1) 100%       /* 100% Opacity */
  );
  color: #ffffff;
  border-radius: var(--radius-lg);
}

/* --- Khung chứa tổng thể (Xếp hàng ngang và tự giãn đều) --- */
.hero-stats {
  display: grid;
  /* Chia đều thành 4 cột bằng nhau trên desktop */
  grid-template-columns: repeat(4, 1fr); 
  gap: 24px; /* Khoảng cách giữa các hộp box */
  
  max-width: 1440px; /* Chiều rộng tối đa của cụm stats */
  margin: 60px auto 0 auto; /* Căn giữa toàn bộ cụm */
  padding: 0 20px; /* Đệm nhẹ 2 bên để không bị dính sát màn hình nhỏ */
}

/* --- Từng hộp box chỉ số (Stat Item) --- */
/* --- Từng hộp box chỉ số (Stat Item) --- */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px; 
  border-radius: 20px; /* Bo góc mượt mà hoàn chỉnh */
  
  /* Nền tối trong suốt + kính mờ */
  background-color: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Mẹo nâng cao: Dùng viền gradient vẽ từ góc trên bên trái (ẩn) xuống góc dưới bên phải (hiện viền).
    Nó giúp viền Top và Left trong suốt (transparent), chỉ lộ viền Right và Bottom màu trắng xám 0.15.
  */
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)), 
                    linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.18) 100%);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;

  /* ĐỔ BÓNG (SHADOW): Đổ bóng sẫm màu lan tỏa rộng để tạo độ nổi khối (Glow) trên nền tối
    0px trục X, 10px trục Y xuôi xuống dưới, độ nhòe 30px, màu đen mờ 0.5
  */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hiệu ứng hover cho card thêm sống động */
.stat-item:hover {
  transform: translateY(-4px);
  /* Khi hover bóng đổ đậm và sâu hơn */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

/* --- Con số lớn (H3) --- */
.stat-item h3 {
  font-family: var(--font-family);
  font-size: 36px; /* Kích thước số chuẩn vừa vặn trong box */
  font-weight: 800; /* Ép chữ đậm, dày dặn */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: var(--accent-gold);
  color: var(--accent-gold);
  
  margin: 0 0 12px 0; /* Khoảng cách dưới con số */
  line-height: 1;
}

/* --- Dòng chữ mô tả phía dưới (P) --- */
.stat-item p {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff; /* Chữ trắng nhẹ dễ đọc trên nền tối */
  opacity: 0.85;  /* Hơi mờ nhẹ để nhường sự nổi bật cho con số */
  margin: 0;
  text-align: center;
  white-space: nowrap; /* Ngăn chữ bị xuống dòng đột ngột */
}



/* =========================================
   Exchanges Section
   ========================================= */
.exchanges {
  padding: var(--section-padding);
  background-color: var(--bg-section-2);
  border-top: 1px solid var(--section-divider);
}

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

.section-title {
  font-size: 32px;
  font-weight: 700;
}

.filters {
  display: flex;
  gap: 12px;
}

.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
}

.filter-btn.active, .filter-btn:hover {
  background: rgba(212, 160, 23, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.exchanges-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 40px;
  align-items: start;
}

.exchanges-main {
  min-width: 0;
}

.exchanges-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.exchanges-pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  transition: var(--transition);
}

.pagination-btn:hover:not(:disabled),
.pagination-btn.is-active {
  background: rgba(212, 160, 23, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.exchange-card {
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 24px 20px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.exchange-card:hover {
  border-color: rgba(243, 186, 47, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.card-bg-percent {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(88px, 12vw, 128px);
  font-weight: 900;
  color: rgba(243, 186, 47, 0.09);
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  opacity: 0.4;
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.exchange-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.exchange-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.exchange-icon-circle {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exchange-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.exchange-icon-fallback {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-gold);
}

.exchange-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.exchange-type {
  display: inline-block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.card-details {
  width: 100%;
}

.card-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
}

.card-detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  font-size: 13px;
}

.detail-value {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: right;
  justify-content: flex-end;
}

.rebate-value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.detail-highlight {
  color: #f3ba2f;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.ref-code-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  max-width: min(100%, 168px);
}

.ref-code-box:hover {
  border-color: rgba(243, 186, 47, 0.35);
  background: rgba(0, 0, 0, 0.5);
}

.ref-code-box.is-copied {
  border-color: rgba(34, 197, 94, 0.45);
}

.ref-code-box.is-copied .ref-code-text {
  color: var(--stat-green);
}

.ref-code-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-code-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0 16px;
}

.card-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

.btn-card-secondary,
.btn-card-primary {
  flex: 1;
  min-width: 0;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  text-align: center;
  line-height: 1.25;
}

.btn-card-secondary {
  background: #333333;
  color: #ffffff;
}

.btn-card-secondary:hover {
  background: #404040;
  color: #ffffff;
  transform: none;
}

.btn-card-primary {
  background: #f3ba2f;
  color: #000000;
}

.btn-card-primary:hover {
  background: #ffcc33;
  color: #000000;
  transform: none;
}

/* Legacy detail rows (other pages) */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}

/* Calculator */
.calculator-widget {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px 24px;
  position: sticky;
  top: calc(var(--site-top-h) + 16px);
  width: 350px;
  max-width: 100%;
  justify-self: end;
}

.calc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.calc-title-icon {
  color: #f3ba2f;
  flex-shrink: 0;
}

.calc-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-select {
  width: 100%;
  margin-bottom: 22px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  padding: 14px 40px 14px 16px;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 14px;
  appearance: none;
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.calc-select:valid,
.calc-select option:not([value=""]) {
  color: var(--text-primary);
}

.calc-group {
  margin-bottom: 20px;
}

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

.calc-row-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.calc-row-value {
  font-size: 14px;
  font-weight: 700;
  color: #f3ba2f;
}

.calc-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
}

.calc-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.calc-input:focus {
  border-color: rgba(243, 186, 47, 0.4);
}

.calc-slider-wrap {
  position: relative;
  padding-top: 30px;
}

.calc-tooltip {
  position: absolute;
  top: 0;
  left: var(--thumb-pos, 50%);
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffffff;
  color: #111111;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.calc-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #ffffff;
}

.calc-range {
  --range-progress: 50%;
  width: 100%;
  appearance: none;
  background: transparent;
  height: 20px;
  margin: 0;
  cursor: pointer;
}

.calc-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #f3ba2f 0%,
    #f3ba2f var(--range-progress),
    rgba(255, 255, 255, 0.12) var(--range-progress),
    rgba(255, 255, 255, 0.12) 100%
  );
}

.calc-range::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #f3ba2f;
  border: 2px solid #1a1a1a;
  box-shadow: 0 0 0 2px rgba(243, 186, 47, 0.25);
}

.calc-range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.calc-range::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: #f3ba2f;
}

.calc-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f3ba2f;
  border: 2px solid #1a1a1a;
}

.calc-result-box {
  text-align: center;
  margin-top: 8px;
  padding: 20px 16px 16px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.04);
}

.calc-result-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}

.calc-result-value {
  font-size: 36px;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 6px;
  line-height: 1.1;
}

.calc-result-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.calc-disclaimer {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
}

/* =========================================
   Why VNBC Section
   ========================================= */
.why-vnbc {
  padding: var(--section-padding);
  position: relative;
  background-color: var(--bg-section-3);
  border-top: 1px solid var(--section-divider);
}

.why-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.why-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 17px;
  border-radius: 999px;
  background: rgba(var(--primary-yellow-rgb), 0.08);
  border: 1px solid rgba(var(--primary-yellow-rgb), 0.22);
  color: rgba(240, 196, 25, 0.9);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.why-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 100%;
}

.why-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.4);
  max-width: 560px;
}

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

.reason-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 33px 29px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.reason-card--featured {
  grid-column: span 2;
}

.reason-card--blue {
  background: linear-gradient(146.86deg, rgb(12, 18, 32) 0%, rgb(10, 15, 28) 100%);
}

.reason-card--green {
  background: linear-gradient(146.34deg, rgb(12, 26, 20) 0%, rgb(9, 20, 16) 100%);
}

.reason-card--gold {
  background: linear-gradient(146.11deg, rgb(19, 16, 12) 0%, rgb(16, 13, 8) 100%);
}

.reason-card--purple {
  background: linear-gradient(146.28deg, rgb(15, 12, 26) 0%, rgb(12, 10, 22) 100%);
}

.reason-card--ecosystem {
  background: linear-gradient(146.28deg, rgb(10, 18, 24) 0%, rgb(8, 16, 20) 100%);
}

.reason-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.3;
  pointer-events: none;
}

.reason-card--blue::after { width: 220px; height: 220px; background: rgba(30, 79, 212, 0.6); bottom: -60px; right: -60px; }
.reason-card--green::after { width: 160px; height: 160px; background: rgba(34, 197, 94, 0.6); bottom: -40px; right: -40px; }
.reason-card--gold::after { width: 140px; height: 140px; background: rgba(240, 196, 25, 0.6); bottom: -30px; right: -30px; filter: blur(25px); }
.reason-card--purple::after { width: 140px; height: 140px; background: rgba(168, 85, 247, 0.6); bottom: -30px; right: -30px; filter: blur(25px); }
.reason-card--ecosystem::after { width: 140px; height: 140px; background: rgba(240, 196, 25, 0.6); bottom: -30px; right: -30px; filter: blur(25px); }

.reason-accent {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.reason-card--blue .reason-accent { background: #1e4fd4; }
.reason-card--green .reason-accent { background: #22c55e; }
.reason-card--gold .reason-accent { background: #f0c419; }
.reason-card--purple .reason-accent { background: #a855f7; }
.reason-card--ecosystem .reason-accent { background: rgba(240, 196, 25, 0.7); }

.reason-stat {
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: baseline;
  letter-spacing: -3px;
}

.reason-stat span { font-size: 36px; }

.reason-card--blue .reason-stat { color: #1e4fd4; }
.reason-card--green .reason-stat { color: #22c55e; }
.reason-card--gold .reason-stat { color: #f0c419; }
.reason-card--purple .reason-stat { color: #a855f7; }
.reason-stat--symbol { color: rgba(240, 196, 25, 0.65); font-size: 72px; }

.reason-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}

.reason-desc {
  font-size: 16px;
  line-height: 1.53;
  color: rgba(255, 255, 255, 0.42);
  max-width: 100%;
}

.reason-desc strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.reason-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.reason-tag--blue {
  background: rgba(30, 79, 212, 0.12);
  border-color: rgba(30, 79, 212, 0.28);
  color: #5c8eff;
}

.reason-tag--green {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
  color: #4ade80;
}

.reason-tag--gold {
  background: rgba(240, 196, 25, 0.08);
  border-color: rgba(240, 196, 25, 0.22);
  color: #f0c419;
}

.reason-tag--purple {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.22);
  color: #c084fc;
}

/* =========================================
   Comparison Section
   ========================================= */
.comparison {
  padding: var(--section-padding);
  background-color: var(--bg-section-2);
  border-top: 1px solid var(--section-divider);
}

.comparison-viewport {
  width: 100%;
}

.comparison-visual {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.comparison-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* =========================================
   Testimonials
   ========================================= */
.testi-badge {
  display: inline-flex;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(240, 196, 25, 0.08);
  border: 1px solid rgba(240, 196, 25, 0.22);
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 600;
}

.testimonials {
  padding: var(--section-padding);
  overflow: hidden;
  background-color: var(--bg-section-1);
  border-top: 1px solid var(--section-divider);
}
.testimonial-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.avatars-circle {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.avatar-main {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 4px solid var(--bg-primary);
  z-index: 2;
  overflow: hidden;
}

.avatar-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-icon {
  position: absolute;
  bottom: 0; right: 0;
  width: 48px; height: 48px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: white;
}

.avatar-small {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  overflow: hidden;
}
.avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.av-1 { top: 0; left: 20%; }
.av-2 { top: 20%; right: -10%; border-color: var(--accent-gold); }
.av-3 { bottom: 0; right: 20%; }
.av-4 { bottom: 20%; left: -10%; border-color: var(--accent-gold); }

.circle-line {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed var(--border-color);
  border-radius: 50%;
}
.circle-1 { width: 100%; height: 100%; }
.circle-2 { width: 120%; height: 120%; }

.testi-content {
  position: relative;
  padding-left: 40px;
  padding-right: 24px;
  padding-bottom: 72px;
  min-height: 320px;
}

.stars {
  color: var(--accent-gold);
  font-size: 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.stars .star--dim {
  color: rgba(255, 255, 255, 0.22);
}

.testi-slide {
  min-height: 200px;
}

.quote-text {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 500;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-text.is-exiting,
.author-name.is-exiting,
.stars.is-exiting,
.avatar-main img.is-exiting,
.avatar-small img.is-exiting {
  opacity: 0;
  transform: translateX(-28px);
}

.quote-text.is-entering,
.author-name.is-entering,
.stars.is-entering,
.avatar-main img.is-entering,
.avatar-small img.is-entering {
  opacity: 0;
  transform: translateX(28px);
}

.testi-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.nav-btn.next {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: black;
}

.nav-btn:not(:disabled):hover {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .quote-text,
  .author-name,
  .stars,
  .avatar-main img,
  .avatar-small img {
    transition: opacity 0.2s ease;
  }

  .quote-text.is-exiting,
  .author-name.is-exiting,
  .quote-text.is-entering,
  .author-name.is-entering,
  .stars.is-exiting,
  .stars.is-entering,
  .avatar-main img.is-exiting,
  .avatar-main img.is-entering,
  .avatar-small img.is-exiting,
  .avatar-small img.is-entering {
    transform: none;
  }
}

/* =========================================
   Footer
   ========================================= */
.footer {
  border-top: 1px solid var(--section-divider);
  padding: 60px 0 24px;
  background: var(--bg-section-4);
}

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

.footer-logo { height: 40px; margin-bottom: 24px;}
.footer-desc { color: var(--text-secondary); margin-bottom: 24px; max-width: 400px;}
.social-links { display: flex; gap: 16px;}
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
}
.social-links a:hover {
  background: var(--card-bg-hover);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}

.footer-col h4 { font-size: 18px; font-weight: 600; margin-bottom: 24px;}
.footer-col ul li { margin-bottom: 16px;}
.footer-col ul a { color: var(--text-secondary); }
.footer-col ul a:hover { color: var(--accent-gold); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 14px;
}

/* =========================================
   Responsive
   ========================================= */
/* Exchanges: 4 cột → 3 → 2 → 1 (mobile) */
@media (max-width: 1200px) {
  .exchanges-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .reasons-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-card--featured {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  .exchanges-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .exchanges-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .calculator-widget {
    position: static;
    width: 100%;
    max-width: 600px;
    margin: 32px auto 0;
    justify-self: center;
  }
  .hero h1 { font-size: 56px; }
  .hero-stats { gap: 40px; flex-wrap: wrap; }
  .reasons-bento {
    grid-template-columns: 1fr;
  }

  .reason-card--featured {
    grid-column: span 1;
  }
  .testimonial-container { grid-template-columns: 1fr; text-align: center;}
  .testi-content {
    padding-left: 0;
    padding-right: 0;
    min-height: 300px;
  }

  .stars { justify-content: center; }

  .testi-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .exchanges .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .exchanges .section-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .exchanges .filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .exchanges .filters::-webkit-scrollbar {
    display: none;
  }

  .exchanges .filter-btn {
    flex-shrink: 0;
    font-size: 13px;
    padding: 8px 14px;
  }

  .exchanges-pagination {
    justify-content: flex-start;
  }

  .exchanges-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .exchange-card {
    padding: 20px 16px 16px;
  }

  .card-bg-percent {
    font-size: 72px;
  }

  .exchange-name {
    font-size: 16px;
  }

  .card-detail-row {
    font-size: 12px;
  }

  .detail-highlight {
    font-size: 18px;
  }

  .btn-card-secondary,
  .btn-card-primary {
    font-size: 12px;
    padding: 10px 8px;
  }

  .ref-code-box {
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero {
    min-height: auto;
    padding: 40px 0 56px;
  }
  .hero::after {
    height: 80px;
  }
  .hero h1 { font-size: 40px; }
  .hero-stats { gap: 20px; justify-content: space-around; }
  .stat-item h3 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
  .avatars-circle { width: 300px; height: 300px; }
  .avatar-main { width: 150px; height: 150px; }
  .avatar-small { width: 60px; height: 60px; }
}

@media (max-width: 480px) {
  .exchanges-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .exchange-card {
    padding: 20px 16px;
  }

  .exchange-icon-circle {
    width: 56px;
    height: 56px;
  }

  .exchange-name {
    font-size: 17px;
  }

  .btn-card-secondary,
  .btn-card-primary {
    font-size: 13px;
  }

  .card-bg-percent {
    font-size: 96px;
  }
}

/* --- Tối ưu hiển thị Responsive cho điện thoại (Mobile) --- */
@media (max-width: 768px) {
  .hero-stats {
    /* Trên mobile tự chuyển thành 2 hàng, mỗi hàng 2 hộp box */
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px;
  }
  .stat-item {
    padding: 24px 16px; /* Thu nhỏ padding trên điện thoại */
  }
  .stat-item h3 {
    font-size: 28px; /* Thu nhỏ chữ số trên mobile */
  }
}

/* =========================================
   Customer Support FAB
   ========================================= */
.vnbc-support {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  pointer-events: none;
}

.vnbc-support.is-open {
  pointer-events: auto;
}

.vnbc-support__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.vnbc-support.is-open .vnbc-support__panel {
  pointer-events: auto;
}

.vnbc-support__backdrop {
  position: fixed;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  cursor: default;
}

.vnbc-support.is-open .vnbc-support__backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vnbc-support__channels {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.vnbc-support:not(.is-open) .vnbc-support__channels {
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.vnbc-support__channel {
  opacity: 0;
  transform: translateY(18px) scale(0.88);
  pointer-events: none;
  transition:
    opacity 0.32s cubic-bezier(0.34, 1.4, 0.64, 1),
    transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
  transition-delay: calc(var(--i) * 0.07s);
}

.vnbc-support.is-open .vnbc-support__channel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.vnbc-support:not(.is-open) .vnbc-support__channel {
  transition-delay: calc((3 - var(--i)) * 0.05s);
}

.vnbc-support__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.vnbc-support__link:hover {
  transform: scale(1.08);
}

.vnbc-support__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vnbc-support__trigger {
  width: 72px;
  height: 72px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
  pointer-events: auto;
}

.vnbc-support__trigger:hover {
  transform: scale(1.06);
}

.vnbc-support.is-open .vnbc-support__trigger {
  transform: scale(0.95);
}

.vnbc-support__trigger-img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .vnbc-support {
    bottom: 16px;
    right: 16px;
  }

  .vnbc-support__trigger {
    width: 64px;
    height: 64px;
  }

  .vnbc-support__link {
    width: 48px;
    height: 48px;
  }
}