/*
Theme Name: VietEx
Theme URI: https://vietex.vn
Author: VietEx
Description: Giao diện app ngân hàng - Đổi tiền VND ↔ TWD
Version: 1.5.6
Text Domain: vietex
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@400;500;600;700&display=swap');

:root {
  --vietex-navy: #0B3C5D;
  --vietex-navy-light: #0d4d73;
  --vietex-navy-hover: #08324a;
  /* Link / phụ: xanh dương */
  --vietex-link: #1E88E5;
  --vietex-primary: #1E88E5;
  --vietex-primary-light: #42a5f5;
  /* CTA: xanh lá (hành động / tiền) */
  --vietex-cta: #2ECC71;
  --vietex-cta-hover: #27ae60;
  --vietex-accent: #c0392b;
  --vietex-success: #2ECC71;
  --vietex-danger: #c0392b;
  --vietex-bg: #F5F7FA;
  --vietex-surface: #FFFFFF;
  --vietex-card: #FFFFFF;
  --vietex-text: #1a2a3a;
  --vietex-text-muted: #5a6b7a;
  --vietex-border: #e4e8ed;
  --vietex-shadow: 0 1px 3px rgba(11, 60, 93, 0.08);
  --vietex-shadow-lg: 0 4px 16px rgba(11, 60, 93, 0.1);
  --vietex-radius: 8px;
  --vietex-radius-sm: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --vietex-bottom-nav-h: 72px;
  --vietex-sticky-cta-h: 52px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: rgba(30, 136, 229, 0.2); }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--vietex-bg);
  color: var(--vietex-text);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  padding-bottom: calc(var(--vietex-bottom-nav-h) + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 767px) {
  body.vietex-has-sticky-cta {
    padding-bottom: calc(var(--vietex-bottom-nav-h) + var(--vietex-sticky-cta-h) + var(--safe-bottom));
  }
}

a { color: var(--vietex-link); text-decoration: none; }
a:hover { color: var(--vietex-navy); }
.vietex-text-muted { color: var(--vietex-text-muted); }

.vietex-header {
  background: var(--vietex-navy);
  padding: 1rem 20px;
  padding-top: calc(1rem + env(safe-area-inset-top));
  box-shadow: 0 2px 8px rgba(11, 60, 93, 0.22);
  position: sticky;
  top: 0;
  z-index: 100;
}

.vietex-header-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.vietex-header-actions { display: flex; align-items: center; gap: 1rem; }
.vietex-header-icon { color: rgba(255, 255, 255, 0.9); padding: 0.5rem; border-radius: var(--vietex-radius-sm); }
.vietex-header-icon:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.vietex-icon { width: 22px; height: 22px; }
.vietex-nav-desktop { display: none; }
@media (min-width: 768px) { .vietex-nav-desktop { display: flex; gap: 0.25rem; } }
.vietex-nav-desktop a { padding: 0.5rem 0.6rem; border-radius: var(--vietex-radius-sm); font-weight: 500; font-size: 0.85rem; color: rgba(255, 255, 255, 0.88); text-decoration: none; }
.vietex-nav-desktop a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.vietex-logo { font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.vietex-logo-viet { color: #fff; }
.vietex-logo-ex { color: var(--vietex-cta); }
.vietex-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.vietex-nav a {
  padding: 0.5rem 0.6rem;
  border-radius: var(--vietex-radius-sm);
  font-weight: 500;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}
.vietex-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.vietex-nav-active { color: var(--vietex-cta) !important; font-weight: 600; }
.vietex-logo:hover { opacity: 0.9; }

.vietex-main { max-width: 720px; margin: 0 auto; padding: 1.5rem 20px; min-height: 50vh; }
@media (min-width: 1024px) {
  .vietex-main { max-width: 800px; padding: 2rem 24px; }
  .vietex-header-inner { max-width: 800px; }
  .vietex-bottom-nav-inner { max-width: 800px; }
  .vietex-footer-links { max-width: 800px; }
}

/* Hero — navy đặc, không gradient loè (tông hệ thống tài chính) */
.vietex-hero {
  background: var(--vietex-navy);
  border-radius: var(--vietex-radius);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--vietex-shadow);
}
.vietex-hero .vietex-status-pipeline {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.vietex-hero .vietex-status-pipeline span:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.2);
}
.vietex-hero .vietex-status-pipeline .is-active { color: var(--vietex-cta); }
.vietex-hero-title { margin: 0 0 0.5rem 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.vietex-hero-sub { margin: 0; font-size: 0.9rem; opacity: 0.92; font-weight: 400; }
.vietex-hero-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Quick Action Cards */
.vietex-quick-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 480px) { .vietex-quick-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .vietex-quick-cards { grid-template-columns: repeat(5, 1fr); } }
.vietex-quick-card-highlight { border: 2px solid var(--vietex-cta); background: rgba(46, 204, 113, 0.08); }
.vietex-quick-card-highlight:hover { background: rgba(46, 204, 113, 0.14); }
.vietex-quick-card {
  background: var(--vietex-surface);
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius);
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--vietex-text);
  box-shadow: var(--vietex-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.vietex-quick-card:hover { transform: translateY(-2px); box-shadow: var(--vietex-shadow-lg); }
.vietex-quick-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 0.5rem;
  color: var(--vietex-navy);
  transition: transform 0.3s ease;
}
.vietex-quick-card:hover .vietex-quick-icon {
  animation: vietex-icon-pulse 1.2s ease-in-out infinite;
}
@keyframes vietex-icon-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.vietex-quick-card:nth-child(1):hover .vietex-quick-icon { animation: vietex-icon-spin 2s linear infinite; }
@keyframes vietex-icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.vietex-quick-card:nth-child(2):hover .vietex-quick-icon {
  animation: vietex-icon-send 1.5s ease-in-out infinite;
}
@keyframes vietex-icon-send {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
.vietex-quick-card:nth-child(3):hover .vietex-quick-icon {
  animation: vietex-icon-bounce 0.8s ease-in-out infinite;
}
@keyframes vietex-icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.vietex-quick-card:nth-child(4):hover .vietex-quick-icon {
  animation: vietex-icon-ring 1s ease-in-out infinite;
}
@keyframes vietex-icon-ring {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}
.vietex-quick-icon svg,
.vietex-nav-icon svg,
.vietex-icon svg { width: 100%; height: 100%; }
.vietex-card-title-icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 0.25rem; }
.vietex-quick-label { font-size: 0.85rem; font-weight: 500; }

/* Rate card */
.vietex-card-title { margin: 0 0 1rem 0; font-size: 1.125rem; }
.vietex-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--vietex-border);
}
.vietex-rate-row:last-of-type { border-bottom: none; }
.vietex-rate-value { color: var(--vietex-navy); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.vietex-rate-up { color: var(--vietex-success); font-weight: 600; }
.vietex-rate-down { color: var(--vietex-danger); font-weight: 600; }
.vietex-rate-buy { color: var(--vietex-success); font-weight: 600; }
.vietex-rate-sell { color: #c0392b; font-weight: 600; }
.vietex-rate-footer { margin: 0.75rem 0 0; font-size: 0.8rem; color: var(--vietex-text-muted); }

/* Convert tool */
.vietex-select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--vietex-border); border-radius: var(--vietex-radius-sm); font-size: 1rem; }
.vietex-about-card p { margin: 0; line-height: 1.7; color: var(--vietex-text-muted); }

.vietex-card {
  background: var(--vietex-card);
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius);
  box-shadow: var(--vietex-shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.vietex-form-group { margin-bottom: 1rem; }
.vietex-form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; font-size: 0.875rem; }
.vietex-form-group input,
.vietex-form-group select,
.vietex-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius-sm);
  font-size: 16px; /* tránh zoom tự động trên iOS khi focus */
  touch-action: manipulation;
}
.vietex-form-group input:focus,
.vietex-form-group select:focus,
.vietex-form-group textarea:focus {
  outline: none;
  border-color: var(--vietex-link);
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.22);
}
.vietex-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .vietex-form-row { grid-template-columns: 1fr; } }

/* Tiện lợi: chọn cửa hàng */
.vietex-store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}
@media (min-width: 520px) { .vietex-store-grid { grid-template-columns: repeat(4, 1fr); } }
.vietex-store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  border: 2px solid var(--vietex-border);
  border-radius: var(--vietex-radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vietex-store-card:hover { border-color: var(--vietex-primary); }
.vietex-store-card:has(input:checked) { border-color: var(--vietex-link); box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.28); }
.vietex-store-card input { display: none; }
.vietex-store-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  min-height: 36px;
  text-align: center;
}
.vietex-store-name { font-size: 0.85rem; font-weight: 500; color: var(--vietex-text); }

.vietex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  min-height: 44px; /* touch target tối thiểu iOS/Android */
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--vietex-radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.vietex-btn:hover { opacity: 0.95; }
.vietex-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.vietex-btn-primary { background: var(--vietex-cta); color: #fff; }
.vietex-btn-primary:hover { background: var(--vietex-cta-hover); opacity: 1; }
.vietex-btn-secondary { background: var(--vietex-border); color: var(--vietex-text); }
.vietex-btn-block { width: 100%; }

/* Bottom nav app-style */
.vietex-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--vietex-surface);
  border-top: 1px solid var(--vietex-border);
  padding: 0.5rem 0;
  padding-bottom: calc(0.5rem + var(--safe-bottom));
  box-shadow: 0 -2px 10px rgba(11, 60, 93, 0.06);
  z-index: 90;
}
.vietex-bottom-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}
.vietex-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  min-height: 48px; /* touch target cho bottom nav */
  min-width: 64px;
  color: var(--vietex-text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: var(--vietex-radius-sm);
  transition: color 0.2s, background 0.2s;
  touch-action: manipulation;
}
.vietex-nav-item:hover { color: var(--vietex-link); background: var(--vietex-bg); }
.vietex-nav-item.active { color: var(--vietex-navy); font-weight: 600; }
.vietex-nav-item.active .vietex-nav-icon { color: var(--vietex-cta); animation: vietex-nav-active 2s ease-in-out infinite; }
@media (max-width: 767px) {
  .vietex-nav-item.active .vietex-nav-icon { animation: none; }
}
@keyframes vietex-nav-active {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

/* CTA “Đổi tiền ngay” cố định phía trên bottom nav — chỉ mobile */
.vietex-sticky-exchange-bar {
  display: none;
}
@media (max-width: 767px) {
  .vietex-sticky-exchange-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--vietex-bottom-nav-h) + var(--safe-bottom));
    z-index: 95;
    padding: 0 12px;
    padding-top: 6px;
    background: linear-gradient(to top, var(--vietex-bg) 70%, transparent);
    pointer-events: none;
  }
  .vietex-sticky-exchange-bar__btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--vietex-sticky-cta-h);
    padding: 0 1rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    background: var(--vietex-cta);
    border: none;
    border-radius: 12px;
    box-shadow: 0 -2px 12px rgba(11, 60, 93, 0.12);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .vietex-sticky-exchange-bar__btn:active {
    background: var(--vietex-cta-hover);
  }
  body.vietex-has-sticky-cta .vietex-chat-fab-wrap {
    bottom: calc(158px + var(--vietex-sticky-cta-h) + var(--safe-bottom));
  }
  body.vietex-has-sticky-cta .vietex-activity-toasts {
    bottom: calc(88px + var(--vietex-sticky-cta-h) + var(--safe-bottom));
  }
}
.vietex-nav-icon { width: 24px; height: 24px; flex-shrink: 0; color: inherit; display: block; }
.vietex-nav-label { white-space: nowrap; }
.vietex-footer-links {
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 20px;
  padding-bottom: calc(var(--vietex-bottom-nav-h) + 1.5rem);
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
@media (max-width: 767px) {
  body.vietex-has-sticky-cta .vietex-footer-links {
    padding-bottom: calc(var(--vietex-bottom-nav-h) + var(--vietex-sticky-cta-h) + 1.5rem);
  }
}
.vietex-footer-links a { color: var(--vietex-text-muted); text-decoration: none; }
.vietex-footer-links a:hover { color: var(--vietex-link); }

.vietex-alert { padding: 1rem; border-radius: var(--vietex-radius-sm); margin-bottom: 1rem; }
.vietex-alert-success { background: #d1fae5; color: #065f46; }
.vietex-alert-error { background: #fee2e2; color: #991b1b; }
.vietex-alert-warning { background: #fef3c7; color: #92400e; }
.vietex-alert-info { background: #dbeafe; color: #1e40af; }

.vietex-step { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.vietex-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--vietex-navy); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.vietex-step-done .vietex-step-num { background: var(--vietex-navy); }
.vietex-step-active .vietex-step-num { box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.35); }

.vietex-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1rem; }
.vietex-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 480px; }
.vietex-table th, .vietex-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--vietex-border); }
.vietex-table th { font-weight: 600; color: var(--vietex-text-muted); white-space: nowrap; }
.vietex-admin-table td { vertical-align: middle; }
.vietex-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.vietex-btn-outline { background: transparent; border: 1px solid var(--vietex-primary); color: var(--vietex-primary); }
.vietex-btn-outline:hover { background: var(--vietex-bg); }
.vietex-link-red { color: var(--vietex-accent); font-size: 0.8rem; }
.vietex-inline-form { margin: 0; display: inline; }
.vietex-inline-form select { padding: 0.25rem 0.5rem; font-size: 0.8rem; border-radius: 6px; }
.vietex-rate-updated { font-size: 0.8rem; color: var(--vietex-text-muted); margin: 0 0 1rem 0; }
.vietex-bank-row { margin-bottom: 1rem; padding: 0.75rem; background: var(--vietex-bg); border-radius: var(--vietex-radius-sm); }
.vietex-stepper { display: flex; justify-content: space-between; margin: 1rem 0; flex-wrap: wrap; gap: 0.5rem; }
.vietex-stepper-item { display: flex; align-items: center; gap: 0.25rem; font-size: 0.8rem; color: var(--vietex-text-muted); }
.vietex-stepper-item.done { color: var(--vietex-navy); }
.vietex-stepper-item.active .vietex-stepper-dot { background: var(--vietex-cta); box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.35); }
.vietex-stepper-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--vietex-border); }
.vietex-stepper-item.done .vietex-stepper-dot { background: var(--vietex-cta); }
.vietex-invoice-summary { background: var(--vietex-bg); border-radius: var(--vietex-radius-sm); padding: 1rem; margin: 1rem 0; border: 1px solid var(--vietex-border); }
.vietex-invoice-summary p { margin: 0.25rem 0; }
.vietex-bank-box { background: rgba(46, 204, 113, 0.1); border: 1px solid var(--vietex-cta); border-radius: var(--vietex-radius-sm); padding: 0.75rem; margin: 0.5rem 0; }
.vietex-bank-boxes .vietex-bank-box { margin: 0.5rem 0; }
.vietex-payment-section { margin: 1rem 0; padding-top: 1rem; border-top: 1px solid var(--vietex-border); }
.vietex-payment-section h3 { font-size: 0.95rem; margin: 0 0 0.75rem 0; }
.vietex-payment-opt { padding: 0.75rem; border: 1px solid var(--vietex-border); border-radius: var(--vietex-radius-sm); margin: 0.5rem 0; cursor: pointer; }
.vietex-payment-opt.active, .vietex-payment-opt:hover { border-color: var(--vietex-primary); background: var(--vietex-bg); }
.vietex-status-badge { padding: 0.2rem 0.5rem; border-radius: 6px; font-size: 0.8rem; }
/* Trạng thái: phân cấp màu rõ (ví / ngân hàng) */
.vietex-status-pill { font-weight: 600; border-radius: 999px; padding: 0.25rem 0.65rem; }
.vietex-status-0 { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.vietex-status-1 { background: #fef9c3; color: #a16207; border: 1px solid #fde047; }
.vietex-admin-actions .vietex-inline-form { display: inline; }
.vietex-admin-actions .vietex-status-select { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
.vietex-status-2 { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.vietex-status-3 { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.vietex-status-4 { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
.vietex-status-5 { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.vietex-stepper-visual .vietex-stepper-item.active .vietex-stepper-dot { transform: scale(1.15); }
.vietex-stepper-dot--muted { background: #9ca3af; }
.vietex-file-input { width: 100%; padding: 0.75rem; border: 2px dashed var(--vietex-border); border-radius: var(--vietex-radius-sm); background: var(--vietex-bg); }
.vietex-support-notice { margin-top: 1rem; padding: 0.75rem; background: var(--vietex-bg); border-radius: var(--vietex-radius-sm); }
.vietex-btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.vietex-receive-box { background: var(--vietex-bg); border: 1px solid var(--vietex-border); border-radius: var(--vietex-radius-sm); padding: 1rem; margin-bottom: 1rem; }
.vietex-result-box { background: rgba(46, 204, 113, 0.1); border: 1px solid var(--vietex-cta); border-radius: var(--vietex-radius-sm); padding: 1rem; margin-top: 1rem; }
.vietex-code { font-family: monospace; font-weight: 600; color: var(--vietex-navy); }
.vietex-amount-lg { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.vietex-amount-result .vietex-amount-lg { font-size: 1.5rem; color: var(--vietex-navy); }
.vietex-dashboard-card { margin-bottom: 1.5rem; }
.vietex-tx-list { margin: 0 -0.5rem; }
.vietex-tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--vietex-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.vietex-tx-item:last-child { border-bottom: none; }
.vietex-tx-item:hover { background: var(--vietex-bg); }
.vietex-tx-item-left { display: flex; flex-direction: column; gap: 0.15rem; }
.vietex-tx-code { font-weight: 600; color: var(--vietex-link); font-size: 0.9rem; }
.vietex-tx-date { font-size: 0.75rem; color: var(--vietex-text-muted); }
.vietex-tx-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.vietex-tx-item-right .vietex-amount-lg { font-size: 1rem; }

.vietex-empty { text-align: center; padding: 2rem; color: var(--vietex-text-muted); }
.vietex-notif-list { display: flex; flex-direction: column; gap: 1rem; }
.vietex-notif-item { padding: 1rem; background: var(--vietex-bg); border-radius: var(--vietex-radius-sm); border: 1px solid var(--vietex-border); }
.vietex-notif-header { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; }
.vietex-notif-date { font-size: 0.8rem; color: var(--vietex-text-muted); }
.vietex-notif-content { font-size: 0.9rem; line-height: 1.5; }
.vietex-modal { display: flex; }
.vietex-modal .vietex-modal-close { font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--vietex-text-muted); line-height: 1; padding: 0 0.25rem; }
.vietex-tx-detail { color: var(--vietex-link); font-weight: 600; text-decoration: none; }
.vietex-tx-detail:hover { text-decoration: underline; }
.vietex-contact-item { padding: 0.75rem 0; border-top: 1px solid var(--vietex-border); }
.vietex-contact-item a { font-weight: 600; }
.vietex-loading { text-align: center; padding: 2rem; color: var(--vietex-text-muted); }

/* Trang Hướng dẫn */
.vietex-guide-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.vietex-guide-section { scroll-margin-top: 4rem; }
.vietex-guide-section-title { font-size: 1.25rem; margin: 0 0 0.5rem 0; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.vietex-guide-badge { background: var(--vietex-navy); color: #fff; padding: 0.25rem 0.6rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; }
.vietex-guide-badge-dv { background: #0B3C5D; }
.vietex-guide-badge-dk { background: #546e7a; }
.vietex-guide-steps { margin: 1.5rem 0; }
.vietex-guide-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--vietex-border);
}
.vietex-guide-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.vietex-guide-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--vietex-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.vietex-guide-step-content { flex: 1; min-width: 0; }
.vietex-guide-step-content h3 { font-size: 1rem; margin: 0 0 0.5rem 0; }
.vietex-guide-step-content p { margin: 0 0 0.75rem 0; font-size: 0.95rem; line-height: 1.65; color: var(--vietex-text); }
.vietex-guide-step-content p:last-of-type { margin-bottom: 0.75rem; }
.vietex-guide-img-wrap { margin-top: 0.75rem; }
.vietex-guide-img-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: var(--vietex-radius-sm);
  border: 1px solid var(--vietex-border);
  box-shadow: var(--vietex-shadow);
}
.vietex-guide-img-placeholder {
  min-height: 180px;
  background: var(--vietex-bg);
  border: 2px dashed var(--vietex-border);
  border-radius: var(--vietex-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--vietex-text-muted);
  font-size: 0.9rem;
  text-align: center;
}
.vietex-guide-img-placeholder span { font-weight: 500; margin-bottom: 0.25rem; }
.vietex-guide-img-placeholder small { font-size: 0.75rem; opacity: 0.9; }
.vietex-guide-img-placeholder code { background: rgba(0,0,0,0.06); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.7rem; }
.vietex-guide-mockups-stack .vietex-guide-mockup + .vietex-guide-mockup { margin-top: 1rem; }

/* Sự kiện ưu đãi */
.vietex-events-section { margin-bottom: 1.5rem; }
.vietex-events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .vietex-events-grid { grid-template-columns: repeat(4, 1fr); } }
.vietex-event-card {
  background: var(--vietex-bg);
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius-sm);
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vietex-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--vietex-shadow-lg);
}
.vietex-event-date { font-size: 0.8rem; color: var(--vietex-text-muted); margin-bottom: 0.35rem; }
.vietex-event-title { font-size: 1rem; font-weight: 600; color: var(--vietex-text); margin-bottom: 0.5rem; }
.vietex-event-title a { color: inherit; text-decoration: none; }
.vietex-event-title a:hover { color: var(--vietex-navy); }
.vietex-event-desc { font-size: 0.85rem; line-height: 1.5; color: var(--vietex-text-muted); }
.vietex-event-badge {
  display: inline-block;
  background: var(--vietex-navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

@media (max-width: 639px) {
  .vietex-quick-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .vietex-header, .vietex-main, .vietex-footer-inner { padding-left: 16px; padding-right: 16px; }
  .vietex-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .vietex-nav a { white-space: nowrap; flex-shrink: 0; }
}

/* —— Trang chủ: niềm tin & quy trình ngân hàng —— */
.vietex-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.vietex-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
}
.vietex-trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .vietex-trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .vietex-trust-strip { grid-template-columns: repeat(4, 1fr); }
}
.vietex-trust-item {
  background: var(--vietex-surface);
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius-sm);
  padding: 1rem 1rem 0.9rem;
  box-shadow: var(--vietex-shadow);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.vietex-trust-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--vietex-radius-sm);
  background: rgba(30, 136, 229, 0.1);
  color: var(--vietex-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vietex-trust-item h3 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vietex-text);
}
.vietex-trust-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--vietex-text-muted);
  line-height: 1.45;
}
.vietex-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
  background: var(--vietex-surface);
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius);
  overflow: hidden;
  box-shadow: var(--vietex-shadow);
}
.vietex-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--vietex-border);
}
.vietex-flow-step:last-child { border-bottom: 0; }
.vietex-flow-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--vietex-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.vietex-flow-step h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.vietex-flow-step p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--vietex-text-muted);
  line-height: 1.45;
}
.vietex-status-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--vietex-bg);
  border-radius: var(--vietex-radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--vietex-text-muted);
}
.vietex-status-pipeline span { flex: 1; text-align: center; position: relative; }
.vietex-status-pipeline span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12%;
  top: 50%;
  width: 24%;
  height: 2px;
  background: var(--vietex-border);
  transform: translateY(-50%);
}
.vietex-status-pipeline .is-active { color: var(--vietex-navy); }
.vietex-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.vietex-stat-card {
  background: var(--vietex-surface);
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius-sm);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--vietex-shadow);
}
.vietex-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--vietex-navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.vietex-stat-label {
  font-size: 0.75rem;
  color: var(--vietex-text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.vietex-stat-hint {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--vietex-text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* 3 điều tâm lý: an toàn — liên hệ — đã có GD */
.vietex-psych-guarantees {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--vietex-surface);
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius);
  box-shadow: var(--vietex-shadow);
}
@media (min-width: 640px) {
  .vietex-psych-guarantees {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
.vietex-psych-item {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--vietex-text-muted);
}
.vietex-psych-item strong {
  display: block;
  color: var(--vietex-navy);
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}
.vietex-rate-board {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  margin: 0.5rem 0 0;
}
.vietex-rate-board th,
.vietex-rate-board td {
  padding: 0.65rem 0.5rem;
  text-align: right;
  border-bottom: 1px solid var(--vietex-border);
}
.vietex-rate-board th:first-child,
.vietex-rate-board td:first-child { text-align: left; }
.vietex-rate-board th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vietex-text-muted);
  font-weight: 600;
}
.vietex-rate-board tbody tr:last-child td { border-bottom: 0; }
.vietex-rate-board .vietex-rate-footnote {
  text-align: left;
  font-size: 0.78rem;
  color: var(--vietex-text-muted);
  padding-top: 0.75rem;
  border-bottom: 0;
}
.vietex-fake-tx .vietex-tx-item { cursor: default; }
.vietex-fake-tx .vietex-tx-item:hover { background: transparent; }
.vietex-legal-teaser {
  font-size: 0.85rem;
  color: var(--vietex-text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}
.vietex-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}
.vietex-legal-links a {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Toast hoạt động */
.vietex-activity-toasts {
  position: fixed;
  right: 12px;
  bottom: calc(88px + var(--safe-bottom));
  z-index: 115;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(320px, calc(100vw - 24px));
  pointer-events: none;
}
.vietex-activity-toast {
  pointer-events: none;
  background: var(--vietex-navy);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 0.65rem 0.85rem;
  border-radius: var(--vietex-radius-sm);
  box-shadow: var(--vietex-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: vietex-toast-in 0.35s ease-out;
}
@keyframes vietex-toast-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
.vietex-activity-toast-fade {
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* Nút CSKH nổi */
.vietex-chat-fab-wrap {
  position: fixed;
  right: 12px;
  bottom: calc(158px + var(--safe-bottom));
  z-index: 120;
  font-family: inherit;
}
.vietex-chat-fab-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--vietex-navy);
  color: #fff;
  box-shadow: var(--vietex-shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vietex-chat-fab-toggle:hover { transform: scale(1.04); background: var(--vietex-cta); }
.vietex-chat-fab-toggle:focus-visible {
  outline: 2px solid var(--vietex-link);
  outline-offset: 2px;
}
.vietex-chat-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(280px, calc(100vw - 24px));
  background: var(--vietex-surface);
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius);
  box-shadow: var(--vietex-shadow-lg);
  padding: 1rem;
  display: none;
}
.vietex-chat-panel.is-open { display: block; }
.vietex-chat-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--vietex-success);
  margin: 0 0 0.25rem;
}
.vietex-chat-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vietex-success);
  margin-right: 0.35rem;
  vertical-align: middle;
}
.vietex-chat-hint {
  font-size: 0.78rem;
  color: var(--vietex-text-muted);
  margin: 0 0 0.85rem;
  line-height: 1.4;
}
.vietex-chat-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.vietex-chat-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--vietex-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.vietex-chat-messenger {
  background: #0084ff;
  color: #fff;
}
.vietex-chat-telegram {
  background: #229ed9;
  color: #fff;
}
.vietex-chat-fallback {
  background: var(--vietex-bg);
  color: var(--vietex-text);
  border: 1px solid var(--vietex-border);
}
@media (min-width: 768px) {
  .vietex-chat-fab-wrap { bottom: calc(24px + var(--safe-bottom)); }
  .vietex-activity-toasts { bottom: calc(24px + var(--safe-bottom)); }
}

/* Dashboard tài khoản */
.vietex-dashboard-hero h1 { font-size: 1.35rem; }
.vietex-dashboard-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 520px) {
  .vietex-dashboard-stats { grid-template-columns: repeat(3, 1fr); }
}
.vietex-dash-stat {
  background: var(--vietex-surface);
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--vietex-shadow);
}
.vietex-dash-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--vietex-navy);
  font-variant-numeric: tabular-nums;
}
.vietex-dash-stat-label { font-size: 0.72rem; color: var(--vietex-text-muted); margin-top: 0.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.vietex-dashboard-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .vietex-dashboard-status-grid { grid-template-columns: repeat(3, 1fr); }
}
.vietex-dash-status-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--vietex-radius-sm);
  border: 1px solid var(--vietex-border);
  background: var(--vietex-surface);
  font-size: 0.78rem;
}
.vietex-dash-status-n { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 1.25rem; }
.vietex-dash-status-t { color: var(--vietex-text-muted); flex: 1; line-height: 1.25; }
.vietex-dash-s-1 .vietex-dash-status-n { color: #a16207; }
.vietex-dash-s-2 .vietex-dash-status-n { color: #1d4ed8; }
.vietex-dash-s-3 .vietex-dash-status-n { color: #0369a1; }
.vietex-dash-s-4 .vietex-dash-status-n { color: #5b21b6; }
.vietex-dash-s-5 .vietex-dash-status-n { color: #15803d; }
.vietex-dash-s-0 .vietex-dash-status-n { color: #b91c1c; }

/* Hóa đơn: toolbar & cam kết */
.vietex-invoice-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.vietex-trust-inline {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  background: var(--vietex-bg);
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius-sm);
  font-size: 0.78rem;
  color: var(--vietex-text-muted);
  line-height: 1.4;
}
@media (min-width: 640px) {
  .vietex-trust-inline { flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
}
.vietex-trust-inline-item strong { margin-right: 0.25rem; }

/* Biên lai: preview & thumbnail */
.vietex-bill-preview { margin-top: 0.75rem; }
.vietex-bill-preview-label { font-size: 0.8rem; color: var(--vietex-text-muted); margin: 0 0 0.35rem; }
.vietex-bill-preview-img {
  max-width: 100%;
  max-height: 220px;
  border-radius: var(--vietex-radius-sm);
  border: 1px solid var(--vietex-border);
  object-fit: contain;
  background: var(--vietex-bg);
}
.vietex-bill-thumb-wrap { margin-top: 0.75rem; }
.vietex-bill-thumb {
  max-width: 100%;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--vietex-radius-sm);
  border: 1px solid var(--vietex-border);
  display: block;
  background: var(--vietex-bg);
  cursor: zoom-in;
}
.vietex-bill-thumb-hint { font-size: 0.75rem; color: var(--vietex-text-muted); margin: 0.35rem 0 0; }

.vietex-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11, 60, 93, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.vietex-lightbox[hidden] { display: none !important; }
.vietex-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--vietex-radius-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.vietex-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--vietex-navy);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
}

.vietex-rate-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vietex-cta);
  margin-left: 0.25rem;
  vertical-align: middle;
  opacity: 0.85;
  transition: transform 0.2s, opacity 0.2s;
}
.vietex-rate-live-dot.is-pulse { transform: scale(1.4); opacity: 1; }

@media print {
  .vietex-no-print,
  .vietex-bottom-nav,
  .vietex-sticky-exchange-bar,
  .vietex-header,
  .vietex-chat-fab-wrap,
  .vietex-activity-toasts,
  .vietex-footer-links { display: none !important; }
  body { background: #fff !important; padding-bottom: 0 !important; }
  .vietex-main { max-width: 100% !important; padding: 1rem !important; }
  #vietex-invoice-print { box-shadow: none !important; border: 1px solid #ccc !important; }
}

/* Feed “giao dịch gần nhất” chậm — trang chủ (khách) */
.vietex-live-feed-card .vietex-lf-box {
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  font-family: inherit;
}
.vietex-lf-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--vietex-navy);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.vietex-lf-live {
  color: var(--vietex-cta);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.vietex-lf-sub {
  font-size: 0.75rem;
  color: var(--vietex-text-muted);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}
.vietex-lf-feed {
  max-height: none;
  overflow: visible;
}
.vietex-lf-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--vietex-border);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.vietex-lf-item:last-child {
  border-bottom: none;
}
.vietex-lf-id {
  font-weight: 700;
  color: var(--vietex-navy);
  font-size: 0.9rem;
}
.vietex-lf-info {
  font-size: 0.75rem;
  color: var(--vietex-text-muted);
  margin-top: 0.2rem;
}
.vietex-lf-amount {
  font-size: 0.85rem;
  margin: 0.35rem 0;
  color: var(--vietex-text);
  font-variant-numeric: tabular-nums;
}
.vietex-lf-status {
  font-size: 0.8rem;
  font-weight: 600;
}
.vietex-lf-status--green { color: var(--vietex-cta); }
.vietex-lf-status--blue { color: var(--vietex-link); }
.vietex-lf-status--orange { color: #e67e22; }
.vietex-lf-disclaimer {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--vietex-text-muted);
}

/* —— Mobile-first: trang chủ “1 màn = 1 hành động” —— */
.vietex-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.vietex-home-above-fold {
  background: var(--vietex-surface);
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius);
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--vietex-shadow);
}
.vietex-home-fold-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vietex-navy);
}
.vietex-rate-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.vietex-rate-compact-cell {
  background: var(--vietex-bg);
  border-radius: var(--vietex-radius-sm);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--vietex-border);
}
.vietex-rate-compact-cell .vietex-rc-label {
  display: block;
  font-size: 0.75rem;
  color: var(--vietex-text-muted);
  margin-bottom: 0.2rem;
}
.vietex-rate-compact-cell .vietex-rc-val {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--vietex-navy);
}
.vietex-rate-compact-foot {
  font-size: 0.75rem;
  color: var(--vietex-text-muted);
  margin: 0 0 0.85rem;
  line-height: 1.35;
}
.vietex-fold-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff !important;
  background: var(--vietex-cta);
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.35);
  touch-action: manipulation;
}
.vietex-fold-cta:active {
  background: var(--vietex-cta-hover);
}
.vietex-trust-chips {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--vietex-text-muted);
}
.vietex-trust-chips li {
  margin-bottom: 0.35rem;
  padding-left: 1.1rem;
  position: relative;
}
.vietex-trust-chips li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--vietex-cta);
  font-size: 0.75rem;
  font-weight: 700;
}
.vietex-fold-lookup {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin: 0;
}
.vietex-fold-lookup-input {
  flex: 1;
  min-height: 48px;
  padding: 0 0.85rem;
  font-size: 16px;
  border: 1px solid var(--vietex-border);
  border-radius: var(--vietex-radius-sm);
  background: var(--vietex-surface);
}
.vietex-fold-lookup .vietex-btn {
  flex-shrink: 0;
  min-height: 48px;
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: 0.9375rem;
}
.vietex-fold-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.vietex-fold-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--vietex-radius-sm);
  background: var(--vietex-bg);
  border: 1px solid var(--vietex-border);
  color: var(--vietex-navy);
  text-decoration: none;
}
.vietex-fold-contact a.vietex-fold-contact--call {
  background: var(--vietex-navy);
  color: #fff;
  border-color: var(--vietex-navy);
}
.vietex-fold-contact a.vietex-fold-contact--tg {
  background: #229ed9;
  color: #fff;
  border-color: #229ed9;
}
.vietex-fold-contact a.vietex-fold-contact--fb {
  background: #0084ff;
  color: #fff;
  border-color: #0084ff;
}
@media (max-width: 767px) {
  .vietex-hero {
    padding: 1.1rem 1rem !important;
    margin-bottom: 1rem !important;
  }
  .vietex-hero-title {
    font-size: 1.15rem !important;
  }
  .vietex-hero-sub {
    font-size: 0.9rem !important;
  }
  .vietex-hero-badges,
  .vietex-status-pipeline {
    display: none !important;
  }
  .vietex-stats-row {
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .vietex-stat-card {
    min-width: calc(50% - 0.35rem);
  }
  .vietex-live-feed-card .vietex-lf-title {
    font-size: 0.9rem;
  }
  .vietex-live-feed-card .vietex-lf-item {
    padding: 0.45rem 0;
    font-size: 0.8rem;
  }
  .vietex-live-feed-card .vietex-lf-id {
    font-size: 0.78rem;
  }
  .vietex-live-feed-card .vietex-lf-info,
  .vietex-live-feed-card .vietex-lf-amount {
    font-size: 0.72rem;
  }
  .vietex-live-feed-card .vietex-lf-status {
    font-size: 0.72rem;
  }
  .vietex-input-mobile-16,
  .vietex-select-mobile-16,
  .vietex-form-group input,
  .vietex-form-group select,
  .vietex-form-group textarea {
    font-size: 16px !important;
  }
  .vietex-quydoi-meta {
    display: none;
  }
  .vietex-tx-hint-long {
    display: none;
  }
}
@media (min-width: 768px) {
  .vietex-home-above-fold {
    display: none;
  }
}

/* Tra cứu — timeline */
.vietex-lookup-eta {
  font-size: 0.875rem;
  color: var(--vietex-text-muted);
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  background: var(--vietex-bg);
  border-radius: var(--vietex-radius-sm);
  border: 1px solid var(--vietex-border);
}
.vietex-timeline {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.vietex-timeline li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--vietex-border);
  font-size: 0.875rem;
}
.vietex-timeline li:last-child {
  border-bottom: none;
}
.vietex-timeline-mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--vietex-border);
  color: var(--vietex-text-muted);
}
.vietex-timeline li.is-done .vietex-timeline-mark {
  background: var(--vietex-cta);
  color: #fff;
}
.vietex-timeline li.is-active .vietex-timeline-mark {
  background: var(--vietex-link);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.25);
}
.vietex-timeline-body strong {
  display: block;
  color: var(--vietex-navy);
}

/* Hóa đơn — copy STK inline */
.vietex-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.vietex-eta-banner {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vietex-navy);
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  background: rgba(46, 204, 113, 0.12);
  border-radius: var(--vietex-radius-sm);
  border: 1px solid rgba(46, 204, 113, 0.35);
}
