:root {
  --primary: #ee4d2d;
  --primary-dark: #d73211;
  --primary-light: #fff5f1;
  --accent: #ff5722;
  --accent-soft: #fff1f0;
  --accent-hover: #c53213;
  --slate: #0f172a;
  --slate-light: #1e293b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shopee: #ee4d2d;
  --tiktok: #000000;
  --warning: #f59e0b;
  --success: #10b981;
  --info: #3b82f6;
  --card-radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

header, main, footer {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* HEADER */
header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff5722 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.35);
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 18px; font-weight: 800; color: var(--slate); letter-spacing: -0.5px; line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.btn-text-full { display: inline; }
.btn-text-short { display: none; }

.top-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 999px;
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-btn:hover { color: var(--text); }
.nav-btn.active {
  color: var(--primary);
  background: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.nav-btn.btn-highlight {
  background: linear-gradient(135deg, #ee4d2d 0%, #ff5722 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.3);
}
.nav-btn.btn-highlight:hover {
  background: linear-gradient(135deg, #d73211 0%, #ea580c 100%);
}

@media (min-width: 769px) {
  .header-bar {
    display: contents;
  }
  .brand {
    order: 1;
  }
  .top-nav {
    order: 2;
  }
  .header-actions {
    order: 3;
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* MAIN CONTENT */
main {
  padding: 32px 20px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--accent-hover);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--slate);
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* SEARCH BOX */
.search-box {
  display: flex;
  gap: 10px;
  background: #ffffff;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  max-width: 680px;
  margin-bottom: 28px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  background: transparent;
}

.search-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-btn:hover { background: var(--primary-dark); }

/* ==========================================================
   FINTECH VIRTUAL WALLET CARD
   ========================================================== */
.lookup-result {
  margin-bottom: 40px;
}

.fintech-wallet-card {
  position: relative;
  background: linear-gradient(135deg, #061912 0%, #0d3125 45%, #064e3b 85%, #022c20 100%);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 24px;
  padding: 28px;
  color: #ffffff;
  box-shadow: 0 16px 36px -10px rgba(6, 78, 59, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.35s ease;
}

/* TIER 0: VÔ HẠNG (UNRANKED) - Cam Shopee Khởi Đầu (Warm Shopee Glow) */
.card-tier-unranked {
  background: linear-gradient(135deg, #180905 0%, #2e1008 45%, #4a180b 85%, #230803 100%);
  border: 1px solid rgba(238, 77, 45, 0.35);
  box-shadow: 0 16px 36px -10px rgba(238, 77, 45, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.card-tier-unranked .card-glass-glow {
  background: radial-gradient(circle, rgba(238, 77, 45, 0.3) 0%, rgba(238, 77, 45, 0) 70%);
}
.card-tier-unranked .contactless-icon, .card-tier-unranked .security-dot {
  color: #ee4d2d;
}
.card-tier-unranked .balance-label {
  color: rgba(254, 215, 204, 0.95);
}
.card-tier-unranked .btn-card-withdraw {
  background: linear-gradient(135deg, #ee4d2d 0%, #ff5722 100%);
  box-shadow: 0 4px 14px rgba(238, 77, 45, 0.45);
}

/* TIER 1: HẠNG ĐỒNG (BRONZE) - Đồng Kim Loại & Micro-mesh Tổ Ong */
.card-tier-bronze {
  background-color: #1a0d06;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(251, 146, 60, 0.14) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #1c0e07 0%, #3a1608 38%, #5c2009 72%, #7c2d12 100%);
  background-size: 16px 16px, 100% 100%;
  border: 1px solid rgba(251, 146, 60, 0.45);
  box-shadow: 0 16px 36px -10px rgba(124, 45, 18, 0.55), 0 0 0 1px rgba(251, 146, 60, 0.2);
}
.card-tier-bronze .card-glass-glow {
  background: radial-gradient(circle, rgba(251, 146, 60, 0.35) 0%, rgba(124, 45, 18, 0) 70%);
}
.card-tier-bronze .contactless-icon, .card-tier-bronze .security-dot {
  color: #fb923c;
}
.card-tier-bronze .balance-label {
  color: rgba(253, 186, 116, 0.95);
}
.card-tier-bronze .emv-chip {
  background: linear-gradient(135deg, #fed7aa 0%, #fb923c 50%, #c2410c 100%);
}
.card-tier-bronze .btn-card-withdraw {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45);
}

/* TIER 2: HẠNG BẠC (SILVER) - Bạch Kim & Phay Xước Laser Lines */
.card-tier-silver {
  background-color: #0b0f19;
  background-image: 
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 7px),
    linear-gradient(135deg, #090e17 0%, #1e293b 40%, #334155 75%, #475569 100%);
  border: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: 0 16px 36px -10px rgba(30, 41, 59, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.card-tier-silver .card-glass-glow {
  background: radial-gradient(circle, rgba(241, 245, 249, 0.3) 0%, rgba(71, 85, 105, 0) 70%);
}
.card-tier-silver .contactless-icon {
  color: #cbd5e1;
}
.card-tier-silver .security-dot {
  color: #38bdf8;
}
.card-tier-silver .balance-label {
  color: rgba(226, 232, 240, 0.95);
}
.card-tier-silver .emv-chip {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
}
.card-tier-silver .btn-card-withdraw {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  border: 1px solid rgba(226, 232, 240, 0.35);
  box-shadow: 0 4px 14px rgba(51, 65, 85, 0.5);
}

/* TIER 3: HẠNG VÀNG (GOLD) - 24K Imperial Gold & Hoàng Gia Guilloché */
.card-tier-gold {
  background-color: #171102;
  background-image: 
    repeating-radial-gradient(circle at 100% 0%, rgba(253, 224, 71, 0.14) 0, rgba(253, 224, 71, 0.14) 2px, transparent 2px, transparent 10px),
    repeating-radial-gradient(circle at 0% 100%, rgba(253, 224, 71, 0.1) 0, rgba(253, 224, 71, 0.1) 2px, transparent 2px, transparent 10px),
    linear-gradient(135deg, #1c1402 0%, #3d2b06 35%, #785208 75%, #a16207 100%);
  border: 1px solid rgba(253, 224, 71, 0.65);
  box-shadow: 0 16px 36px -10px rgba(161, 98, 7, 0.65), 0 0 25px rgba(253, 224, 71, 0.22);
}
.card-tier-gold .card-glass-glow {
  background: radial-gradient(circle, rgba(253, 224, 71, 0.45) 0%, rgba(161, 98, 7, 0) 70%);
}
.card-tier-gold .contactless-icon, .card-tier-gold .security-dot {
  color: #facc15;
}
.card-tier-gold .balance-label {
  color: rgba(254, 240, 138, 0.95);
}
.card-tier-gold .emv-chip {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 50%, #ca8a04 100%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.7), 0 2px 8px rgba(0,0,0,0.4);
}
.card-tier-gold .btn-card-withdraw {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border: 1px solid rgba(253, 224, 71, 0.4);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.5);
}

.card-glass-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.25) 0%, rgba(6, 78, 59, 0) 70%);
  pointer-events: none;
}

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

.chip-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.emv-chip {
  width: 42px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #b45309 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 2px 6px rgba(0,0,0,0.3);
}

.emv-chip .chip-line {
  position: absolute;
  background: rgba(0, 0, 0, 0.25);
}
.emv-chip .chip-line:nth-child(1) { top: 35%; left: 0; right: 0; height: 1px; }
.emv-chip .chip-line:nth-child(2) { top: 65%; left: 0; right: 0; height: 1px; }

.contactless-icon {
  color: rgba(52, 211, 153, 0.7);
}

.card-brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}
.security-dot {
  color: #34d399;
  font-size: 10px;
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.badge-role {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-role.role-owner {
  background: rgba(254, 243, 199, 0.3);
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.6);
}
.badge-role.role-gold {
  background: rgba(254, 243, 199, 0.25);
  color: #fef08a;
  border: 1px solid rgba(253, 224, 71, 0.55);
}
.badge-role.role-silver {
  background: rgba(241, 245, 249, 0.2);
  color: #f1f5f9;
  border: 1px solid rgba(226, 232, 240, 0.45);
}
.badge-role.role-bronze {
  background: rgba(254, 215, 170, 0.2);
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.45);
}
.badge-role.role-unranked {
  background: rgba(209, 250, 229, 0.15);
  color: #a7f3d0;
  border: 1px solid rgba(167, 243, 208, 0.3);
}
.badge-role.role-member {
  background: rgba(209, 250, 229, 0.15);
  color: #a7f3d0;
  border: 1px solid rgba(167, 243, 208, 0.3);
}

/* TIẾN TRÌNH THĂNG HẠNG THÀNH VIÊN */
.card-tier-progress {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}
.tier-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  flex-wrap: wrap;
  gap: 6px;
}
.tier-progress-title {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}
.tier-progress-target {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}
.tier-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.tier-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-tier-bronze .tier-progress-bar {
  background: linear-gradient(90deg, #fb923c 0%, #ea580c 100%);
}
.card-tier-silver .tier-progress-bar {
  background: linear-gradient(90deg, #e2e8f0 0%, #94a3b8 100%);
}
.card-tier-gold .tier-progress-bar {
  background: linear-gradient(90deg, #fde047 0%, #eab308 100%);
}

.card-balance-section {
  margin-bottom: 22px;
}
.balance-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: rgba(167, 243, 208, 0.9);
  display: block;
  margin-bottom: 6px;
}
.balance-amount {
  font-size: clamp(34px, 5.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.card-user-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  margin-bottom: 22px;
}
.info-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 4px;
}
.user-name-val {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}
.user-id-val {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-top: 2px;
}

.btn-card-withdraw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}
.btn-card-withdraw:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}
.btn-arrow { font-size: 15px; }

.card-sub-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sub-stat-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}
.sub-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  font-weight: 500;
}
.sub-val {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

/* BANNER BẢO MẬT */
.security-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: #166534;
  font-size: 13px;
  line-height: 1.45;
}
.shield-icon { font-size: 20px; flex-shrink: 0; }

/* ==========================================================
   HISTORY CONTAINER & CONTROLS
   ========================================================== */
.history-container {
  margin-top: 10px;
  margin-bottom: 32px;
}

.history-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.history-tab-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-tab-btn:hover {
  background: #f1f5f9;
  color: var(--slate);
}

.history-tab-btn.active {
  background: #e6f4ea;
  color: var(--primary-dark);
  font-weight: 800;
}

.history-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.status-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: #e2e8f0;
}

.filter-chip.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.history-search-input {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  min-width: 220px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s;
}

.history-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.orders-list, .withdrawals-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}
.order-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}

.order-main { flex: 1; }
.order-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.order-time { font-size: 12px; color: var(--text-muted); }
.order-title { font-size: 15px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.order-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.cashback-highlight { color: var(--accent-hover); font-weight: 800; }

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-shopee { background: #ffefe9; color: var(--shopee); border: 1px solid #fed7cc; }
.badge-tiktok { background: #0f172a; color: #ffffff; }

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed, .status-ready { background: #d1fae5; color: #065f46; }
.status-paid { background: #dbeafe; color: #1e40af; }
.status-failed, .status-blocked, .status-unsupported { background: #fee2e2; color: #991b1b; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}
.button:hover { background: var(--primary-dark); }
.btn-small { padding: 8px 14px; font-size: 12px; border-radius: 10px; }
.btn-secondary {
  background: #f1f5f9;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.btn-secondary:hover { background: #e2e8f0; }

/* WITHDRAWAL HISTORY */
.withdrawals-section { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 24px; }
.withdrawal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 13px;
}

/* PRODUCT FEED GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}
.card-art {
  height: 110px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: grid;
  place-items: center;
  font-size: 44px;
}
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-tags { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--slate);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-pricing { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; margin-bottom: 12px; }
.card-price { font-size: 16px; font-weight: 800; color: var(--slate); }
.card-cb { font-size: 13px; font-weight: 800; color: var(--accent-hover); background: #ecfdf5; padding: 2px 8px; border-radius: 6px; }
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.card-btn { color: var(--primary); font-weight: 700; }

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-card:hover {
  border-color: #fed7aa;
  box-shadow: 0 6px 18px rgba(238, 77, 45, 0.08);
  transform: translateY(-2px);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff5f1 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  color: var(--primary);
  font-weight: 900;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(238, 77, 45, 0.12);
}
.step-content {
  flex: 1;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
}
.step-content b {
  color: var(--slate);
  font-weight: 700;
}
/* Fallback if old span markup is present */
.steps > span {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 12px;
  line-height: 1.4;
  font-size: 13px;
  color: var(--text-muted);
}
.steps > span b { color: var(--primary); display: block; font-size: 16px; margin-bottom: 4px; }

/* PRODUCT DETAIL VIEW */
.product {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.illustration {
  background: #f1f5f9;
  border-radius: 20px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.illustration svg { width: 65%; max-width: 240px; }
.illustration span { font-size: 10px; letter-spacing: 2px; color: var(--text-muted); margin-top: 10px; font-weight: 700; }
.pill { background: var(--accent-soft); color: #065f46; border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700; display: inline-block; }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.disclosure { font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 24px; }
.product-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 16px;
  font-size: 13px;
  color: #334155;
}
.product-user-bar b {
  color: #0f172a;
}
.btn-goto-profile {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-goto-profile:hover {
  background: var(--primary);
  transform: translateY(-1px);
}
.empty, .error { padding: 14px; border-radius: 12px; font-size: 13px; margin-top: 14px; }
.empty { background: #f1f5f9; color: var(--text-muted); }
.error { background: #fee2e2; color: #991b1b; }

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 16px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  z-index: 10;
  overflow: hidden;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 17px; color: var(--slate); font-weight: 800; }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--slate); }
.form-group input, .form-group select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--accent);
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.status-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  background: #f1f5f9;
}
.status-msg.success { background: #d1fae5; color: #065f46; font-weight: 600; }
.status-msg.error { background: #fee2e2; color: #991b1b; }

/* PROFILE HUB HEADER */
.profile-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  gap: 16px;
}
.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff5722 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.35);
}
.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--slate);
  letter-spacing: -0.4px;
}
.profile-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}
.profile-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text-muted);
  font-weight: 600;
}
.pin-status-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.pin-status-pill.pin-active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.pin-status-pill.pin-missing {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.btn-text-action {
  background: none;
  border: none;
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.btn-text-action:hover {
  color: var(--primary);
}
.btn-logout {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-logout:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

/* CASHFLOW TIMELINE */
.cashflow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cashflow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  transition: all 0.2s ease;
  gap: 14px;
}
.cashflow-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.cashflow-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.cashflow-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.cashflow-icon.icon-inflow {
  background: #dcfce7;
  color: #15803d;
}
.cashflow-icon.icon-outflow {
  background: #fee2e2;
  color: #b91c1c;
}
.cashflow-icon.icon-holding {
  background: #fef3c7;
  color: #d97706;
}
.cashflow-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cashflow-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate);
}
.cashflow-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
.cashflow-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.cashflow-amount {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.cashflow-amount.positive {
  color: #15803d;
}
.cashflow-amount.negative {
  color: #b91c1c;
}
.cashflow-amount.holding {
  color: #d97706;
}
.cashflow-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  margin-top: 40px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* SHOPEE GUIDE MODAL (ANTI-DROP NOTICE) */
.modal-guide-card {
  max-width: 480px;
  border-radius: 24px;
}
.guide-header {
  background: #fff5f1;
  border-bottom: 1px solid #fed7aa;
}
.guide-header h3 {
  color: #c2410c;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-subtitle {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 8px;
}
.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.guide-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff5722 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.guide-step-content {
  flex: 1;
  color: #334155;
}
.guide-step-content b {
  color: #0f172a;
}
.guide-cache-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: #9f1239;
  line-height: 1.4;
  margin-top: 8px;
}
.btn-proceed-shop {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 15px;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff5722 100%);
  box-shadow: 0 4px 14px rgba(238, 77, 45, 0.4);
}
.btn-proceed-shop:hover {
  background: linear-gradient(135deg, #d73211 0%, #ea580c 100%);
}

/* NÚT VÀO NHÓM ZALO TRÊN HEADER */
.btn-nav-zalo {
  background: #0068ff !important;
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 104, 255, 0.35);
  transition: all 0.2s ease;
}
.btn-nav-zalo:hover {
  background: #0056d6 !important;
  transform: translateY(-1px);
}

/* HERO LANDING BANNER (SEO & AEO) */
.hero-banner {
  background: linear-gradient(135deg, #fff5f1 0%, #ffffff 55%, #fff1f0 100%);
  border: 1.5px solid rgba(238, 77, 45, 0.25);
  border-radius: 24px;
  padding: 32px 24px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(238, 77, 45, 0.08);
  position: relative;
  overflow: hidden;
}
.hero-headline {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #1e293b;
  margin: 8px 0 14px 0;
  line-height: 1.25;
}
.hero-desc {
  font-size: 15px;
  color: #475569;
  max-width: 740px;
  margin: 0 auto 22px auto;
  line-height: 1.6;
}
.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-hero-zalo {
  background: #0068ff;
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 104, 255, 0.35);
  transition: all 0.2s ease;
}
.btn-hero-zalo:hover {
  background: #0056d6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 104, 255, 0.45);
}
.btn-hero-profile {
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 13px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-hero-profile:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}
.btn-inline-zalo {
  background: #f0f7ff;
  color: #0068ff;
  border: 1px solid #bfdbfe;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-inline-zalo:hover {
  background: #0068ff;
  color: #ffffff;
}

/* 4 PILLARS TRUST GRID */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: left;
  border-top: 1px solid rgba(238, 77, 45, 0.15);
  padding-top: 20px;
}
.trust-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 14px 16px;
  transition: transform 0.2s ease;
}
.trust-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.trust-metric {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}
.trust-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.trust-detail {
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
}

/* FAQ / AEO ACCORDION */
.faq-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  margin: 36px 0 24px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.faq-title {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}
.faq-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.5;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  transition: all 0.2s ease;
}
.faq-item[open] {
  background: #fff5f1;
  border-color: #fed7aa;
}
.faq-question {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: "＋";
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-left: 12px;
}
.faq-item[open] .faq-question::after {
  content: "—";
}
.faq-answer {
  margin-top: 10px;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  border-top: 1px solid rgba(238, 77, 45, 0.15);
  padding-top: 10px;
}
.faq-answer ul {
  margin: 8px 0 0 18px;
  padding: 0;
}
.faq-answer li {
  margin-bottom: 4px;
}

/* MODAL THAM GIA ZALO */
.modal-zalo-card {
  max-width: 480px;
  border-radius: 24px;
}
.zalo-header {
  background: #f0f7ff;
  border-bottom: 1px solid #bfdbfe;
}
.zalo-header h3 {
  color: #0068ff;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.zalo-badge-pill {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}
.zalo-steps-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
}
.btn-zalo-modal-open {
  width: 100%;
  background: #0068ff;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 104, 255, 0.35);
  transition: all 0.2s ease;
}
.btn-zalo-modal-open:hover {
  background: #0056d6;
  transform: translateY(-1px);
}
.btn-zalo-modal-copy {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-zalo-modal-copy:hover {
  background: #e2e8f0;
}
.zalo-copy-toast {
  font-size: 12px;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 6px 10px;
}

/* FOOTER MULTI-COLUMN */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 24px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col a {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--primary);
}

/* PERSONAL HUB CARD (HOMEPAGE PRIVACY & LOOKUP) */
.personal-hub-card {
  margin-top: 24px;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(238, 77, 45, 0.08);
  position: relative;
  overflow: hidden;
}

.personal-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ee4d2d 0%, #ff7a45 100%);
}

.hub-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.hub-header-text {
  flex: 1;
  min-width: 0;
}

.hub-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.hub-subtitle {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.hub-action-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.hub-input-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hub-input-wrap input {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 13.5px;
  outline: none;
  background: #ffffff;
  transition: all 0.2s;
}

.hub-input-wrap input:focus {
  border-color: #ee4d2d;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.15);
}

.btn-hub-search {
  background: linear-gradient(135deg, #ee4d2d 0%, #ff5722 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(238, 77, 45, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-hub-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(238, 77, 45, 0.45);
}

.hub-hints {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.hub-hints code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  color: #0f172a;
}

[hidden] { display: none !important; }

@media (max-width: 768px) {
  /* 1. HEADER & NAVIGATION */
  header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
    width: 100%;
  }

  .header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .mark {
    width: 34px;
    height: 34px;
    font-size: 15px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 16px;
    letter-spacing: -0.3px;
    line-height: 1.2;
  }

  .brand-sub {
    font-size: 10px;
  }

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

  .header-actions .nav-btn {
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
  }

  .btn-text-full {
    display: none;
  }

  .btn-text-short {
    display: inline;
  }

  .top-nav {
    display: flex;
    width: 100%;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 12px;
    gap: 4px;
    box-sizing: border-box;
  }

  .top-nav .nav-btn {
    flex: 1 1 50%;
    width: 50%;
    padding: 8px 6px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 9px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: none;
    box-sizing: border-box;
  }

  .top-nav .nav-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  /* 2. HERO BANNER & TRUST GRID */
  main {
    padding: 16px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-banner {
    padding: 20px 14px 18px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  .hero-banner .eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.8px;
    line-height: 1.4;
    word-break: break-word;
  }

  .hero-headline {
    font-size: clamp(20px, 5.5vw, 26px);
    line-height: 1.25;
    letter-spacing: -0.4px;
    margin: 6px 0 10px 0;
    text-wrap: balance;
  }

  .hero-desc {
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 auto 18px auto;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
  }

  .btn-hero-zalo,
  .btn-hero-profile {
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    font-size: 14.5px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 16px;
  }

  .trust-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding: 12px 10px;
    border-radius: 14px;
    box-sizing: border-box;
  }

  .trust-metric {
    font-size: 20px;
    letter-spacing: -0.3px;
    margin-bottom: 2px;
    line-height: 1.1;
  }

  .trust-title {
    font-size: 12.5px;
    margin-bottom: 3px;
    line-height: 1.3;
  }

  .trust-detail {
    font-size: 11px;
    line-height: 1.4;
  }

  /* 3. PERSONAL HUB CARD */
  .personal-hub-card {
    padding: 16px 14px;
    border-radius: 18px;
    margin-top: 18px;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  .hub-header {
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
  }

  .hub-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .hub-header-text {
    flex: 1;
    min-width: 0;
  }

  .hub-title {
    font-size: clamp(15px, 4.3vw, 17.5px);
    line-height: 1.35;
    margin-bottom: 6px;
    word-break: break-word;
    text-wrap: balance;
  }

  .hub-subtitle {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .hub-action-box {
    padding: 12px;
    border-radius: 14px;
    box-sizing: border-box;
  }

  .hub-input-wrap {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hub-input-wrap input {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .btn-hub-search {
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
  }

  .hub-hints {
    font-size: 12px;
    line-height: 1.45;
    margin-top: 10px;
  }

  /* 4. 3 STEPS & FAQ */
  .steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
  }

  .step-card {
    padding: 12px 14px;
    border-radius: 14px;
    gap: 12px;
    box-sizing: border-box;
  }

  .step-num {
    width: 32px;
    height: 32px;
    font-size: 13.5px;
    border-radius: 8px;
  }

  .step-content {
    font-size: 13px;
    line-height: 1.45;
  }

  .faq-section {
    padding: 20px 14px;
    border-radius: 18px;
    margin: 24px 0 20px 0;
    box-sizing: border-box;
  }

  .faq-title {
    font-size: clamp(17px, 4.8vw, 21px);
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .faq-subtitle {
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .faq-item {
    padding: 12px 14px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .faq-question {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .faq-answer {
    font-size: 13px;
    line-height: 1.55;
    margin-top: 8px;
    padding-top: 8px;
  }

  /* 5. FINTECH WALLET & LOOKUP ON MOBILE */
  .fintech-wallet-card {
    padding: 18px 16px;
    border-radius: 18px;
    box-sizing: border-box;
  }

  .balance-amount {
    font-size: clamp(26px, 7vw, 36px);
  }

  .card-user-info {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-card-withdraw {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
  }

  .card-sub-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-box {
    flex-direction: column;
    padding: 8px;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .search-box input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
  }

  .search-btn {
    width: 100%;
    min-height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .profile-header-card {
    padding: 14px;
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
  }

  .profile-actions {
    width: 100%;
  }

  .btn-logout {
    width: 100%;
    text-align: center;
    padding: 9px;
  }

  .history-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }

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

  .history-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 13px;
  }

  .history-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .history-search-input {
    width: 100%;
    min-width: 0;
  }

  .order-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
    box-sizing: border-box;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
    border-radius: 18px;
  }

  .product-user-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-goto-profile {
    width: 100%;
    text-align: center;
  }

  /* FOOTER */
  footer {
    padding: 24px 14px;
    box-sizing: border-box;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* MODALS */
  .modal {
    padding: 12px;
  }

  .modal-card {
    max-width: 100%;
    border-radius: 18px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
}

/* Extra breakpoint for ultra-small screens (320px - 360px) */
@media (max-width: 360px) {
  header {
    padding: 8px 10px;
  }

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 15px;
  }

  .header-actions .nav-btn {
    padding: 5px 8px;
    font-size: 11.5px;
  }

  .top-nav .nav-btn {
    font-size: 12px;
    padding: 7px 4px;
  }

  .hero-banner {
    padding: 16px 10px;
  }

  .trust-metric {
    font-size: 18px;
  }

  .trust-title {
    font-size: 11.5px;
  }

  .trust-detail {
    font-size: 10.5px;
  }

  .personal-hub-card {
    padding: 14px 10px;
  }

  .step-card {
    padding: 10px 12px;
  }
}
