:root {
  --bg-dark: #07060d;
  --bg-panel: #121022;
  --bg-panel-2: #17142b;
  --line: #2a2650;
  --accent: #a855f7;
  --accent-2: #e879f9;
  --gold: #fbbf24;
  --success: #22c55e;
  --danger: #f87171;
  --text-muted: #9b96b8;
}

* { box-sizing: border-box; }

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(168,85,247,.16), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(232,121,249,.10), transparent 35%),
    var(--bg-dark);
  color: #ecebf5;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

a { color: inherit; }
.footer-link { color: var(--text-muted); text-decoration: none; }
.footer-link:hover { color: var(--accent-2); }

/* Topbar */
.topbar {
  background: #050409;
  color: #c9c6db;
  padding: 6px 0;
  font-size: .82rem;
  border-bottom: 1px solid var(--line);
}

/* Navbar */
.main-nav {
  background: linear-gradient(90deg, #0c0a18, #171331);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 24px rgba(168,85,247,.12);
}
.brand-logo {
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.main-nav .nav-link { color: #d8d6e6; font-weight: 500; }
.main-nav .nav-link:hover { color: var(--accent-2); }
.coin-badge {
  background: rgba(168,85,247,.12);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 4px 14px !important;
  color: #e9d5ff !important;
  font-weight: 600;
}

.btn-neon {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(168,85,247,.45);
  transition: filter .15s ease, transform .15s ease;
}
.btn-neon:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; }
.btn-neon:disabled { opacity: .5; box-shadow: none; }

.btn-outline-neon {
  border: 1px solid var(--accent);
  color: #e9d5ff;
  background: transparent;
  font-weight: 600;
}
.btn-outline-neon:hover { background: rgba(168,85,247,.12); color: #fff; }

/* Hero */
.hero {
  background: radial-gradient(circle at top right, rgba(232,121,249,.10), var(--bg-dark) 70%);
  border-bottom: 1px solid var(--line);
}
.hero-icon { font-size: 220px; color: rgba(168,85,247,.16); }
.text-light-50 { color: #c7c5d6; }

/* Trust bar */
.trust-bar { background: var(--bg-panel); padding: 24px 0; border-bottom: 1px solid var(--line); }
.trust-bar i { color: var(--accent-2); }

/* Section title */
.section-title { border-left: 4px solid var(--accent); padding-left: 10px; }

/* Product cards */
.acc-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  height: 100%;
}
.acc-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 26px rgba(168,85,247,.25);
}
.acc-thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #1a1730;
}
.badge-rank {
  position: absolute;
  top: 8px; left: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: .7rem;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 700;
}
.badge-stock {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--success);
  color: var(--success);
  font-size: .68rem;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
}
.acc-body { padding: 12px 14px; }
.acc-title {
  font-weight: 700;
  font-size: .92rem;
  color: #f4f2fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-meta { color: var(--text-muted); margin: 4px 0; }
.acc-price { color: var(--accent-2); font-weight: 800; font-size: 1.02rem; }
.acc-price small { color: var(--text-muted); font-weight: 500; font-size: .72rem; }

/* Filter box / auth box */
.filter-box, .auth-box {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

/* Detail page */
.detail-thumb { border: 1px solid var(--line); border-radius: 18px; }
.gallery-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); cursor: pointer; opacity: .6;
}
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--accent); }

.stat-box {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  padding: 14px 6px;
  font-weight: 700;
}
.stat-box i { color: var(--gold); display:block; margin-bottom: 4px; }
.stat-box small { color: var(--text-muted); font-weight: 500; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: #d9d7ea;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list i { color: var(--success); margin-right: 8px; }

/* Buy panel (giống ảnh mẫu: chọn gói bên phải) */
.buy-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  position: sticky;
  top: 90px;
}
.buy-panel .price-range {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pkg-option {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-panel-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.pkg-option:hover { border-color: var(--accent); }
.pkg-option.selected {
  border-color: var(--accent);
  background: rgba(168,85,247,.10);
  box-shadow: 0 0 14px rgba(168,85,247,.25);
}
.pkg-option.disabled { opacity: .45; cursor: not-allowed; }
.pkg-name { font-weight: 700; color: #f4f2fb; }
.pkg-sub { font-size: .78rem; color: var(--text-muted); }
.pkg-price { font-weight: 800; color: var(--accent-2); font-size: 1.02rem; }
.pkg-stock-ok { color: var(--success); font-size: .76rem; }
.pkg-stock-out { color: var(--danger); font-size: .76rem; }

/* Footer */
.site-footer { background: #050409; border-top: 1px solid var(--line); }

/* Floating contact buttons */
.floating-contact {
  position: fixed;
  right: 18px; bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1050;
}
.fab-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
  animation: pulse 2s infinite;
}
.fab-zalo { background: #0068ff; font-weight: 800; font-size: 1.4rem; font-style: normal; }
.fab-tele { background: #229ed9; }
.fab-coin { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(168,85,247,.5); }
  70% { box-shadow: 0 0 0 12px rgba(168,85,247,0); }
  100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); }
}

.form-control, .form-select {
  background: #0d0b1a;
  border: 1px solid var(--line);
  color: #eee;
}
.form-control:focus, .form-select:focus {
  background: #0d0b1a;
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 .15rem rgba(168,85,247,.25);
}

code { color: var(--gold); background: rgba(251,191,36,.08); padding: 2px 6px; border-radius: 6px; }

.table-dark { --bs-table-bg: var(--bg-panel); }
.badge.bg-success { background-color: var(--success) !important; color: #06210f; }
.badge.bg-danger { background-color: var(--danger) !important; }

/* ================= SIDEBAR MENU ================= */
.app-shell { display: flex; align-items: flex-start; }

.app-sidebar {
  width: 250px;
  flex-shrink: 0;
  min-height: calc(100vh - 1px);
  background: var(--bg-panel);
  border-right: 1px solid var(--line);
  padding: 22px 14px 30px;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.app-sidebar .sb-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.app-sidebar .sb-brand img {
  max-width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.sb-section-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 22px 10px 10px;
}
.sb-section-title:first-of-type { margin-top: 14px; }

.sb-nav { list-style: none; margin: 0; padding: 0; }
.sb-nav li { margin-bottom: 4px; }

.sb-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #d8d5ec;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.sb-link:hover {
  background: var(--bg-panel-2);
  color: #fff;
}
.sb-link.active {
  background: linear-gradient(90deg, rgba(168,85,247,.28), rgba(232,121,249,.14));
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(168,85,247,.35);
}
.sb-link .sb-icon {
  width: 20px;
  text-align: center;
  font-size: .95rem;
  color: var(--accent-2);
  flex-shrink: 0;
}
.sb-link.active .sb-icon { color: #fff; }

.sb-badge {
  margin-left: auto;
  font-size: .64rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34,197,94,.15);
  color: var(--success);
  border: 1px solid rgba(34,197,94,.35);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.app-content { flex: 1; min-width: 0; }

.sb-mobile-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  margin: 12px;
}

@media (max-width: 991px) {
  .app-sidebar {
    position: fixed;
    z-index: 1050;
    left: 0; top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 20px 0 40px rgba(0,0,0,.5);
  }
  .app-sidebar.open { transform: translateX(0); }
  .sb-mobile-toggle { display: inline-flex; }
  .sb-overlay {
    display: none;
    position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1040;
  }
  .sb-overlay.open { display: block; }
}

/* ================= CONTENT TOPBAR (search / lang / wallet / user) ================= */
.content-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(7,6,13,.85);
  backdrop-filter: blur(10px);
}

.ct-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
}
.ct-search i { color: var(--text-muted); }
.ct-search input {
  background: transparent;
  border: 0;
  outline: none;
  color: #ecebf5;
  width: 100%;
  font-size: .88rem;
}
.ct-search input::placeholder { color: var(--text-muted); }

.ct-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ct-lang-btn, .ct-wallet, .ct-user > a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  color: #ecebf5;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
}
.ct-lang-btn:hover, .ct-wallet:hover, .ct-user > a:hover { border-color: var(--accent); color: #fff; }
.ct-wallet i, .ct-lang-btn i { color: var(--accent-2); }
.ct-wallet { color: var(--success); }

.ct-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px;
}

@media (max-width: 767px) {
  .content-topbar { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .ct-search { order: 3; max-width: 100%; flex-basis: 100%; }
}

/* ================= AUTH PAGES (login / register) ================= */
body.auth-page {
  min-height: 100vh;
  display: flex;
}
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 30px;
  box-shadow: 0 0 0 1px rgba(168,85,247,.12), 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(168,85,247,.08);
}
.auth-card .auth-logo {
  display: block;
  max-width: 190px;
  height: auto;
  margin: 0 auto 18px;
}
.auth-card h3 { font-size: 1.45rem; }
.auth-card .auth-sub { color: var(--text-muted); font-size: .88rem; }
.auth-card .auth-sub strong { color: var(--accent-2); font-weight: 700; }

.auth-field label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}
.auth-field .field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-field .field-wrap i.f-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: .9rem;
}
.auth-field input {
  width: 100%;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px 11px 40px;
  color: #ecebf5;
  font-size: .9rem;
  outline: none;
}
.auth-field input:focus { border-color: var(--accent); }
.auth-field .toggle-eye {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-size: .9rem;
}

.auth-submit {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-submit:hover { filter: brightness(1.08); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: .78rem;
  margin: 18px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-panel-2);
  color: #ecebf5;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 10px;
  position: relative;
}
.oauth-btn:hover { border-color: var(--accent); color: #fff; }
.oauth-btn .soon {
  position: absolute;
  right: 10px;
  font-size: .62rem;
  color: var(--text-muted);
  font-weight: 500;
}
.oauth-btn.discord { background: #17142b; }

.auth-foot { text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: 6px; }
.auth-foot a { color: var(--accent-2); font-weight: 700; text-decoration: none; }

/* ================= FOOTER LOGO ================= */
.footer-logo { max-width: 220px; height: auto; }

/* ================= TOPUP PAGE ================= */
.tu-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.tu-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}
.tu-card-head h5 { display: flex; align-items: center; gap: 10px; margin: 0; }
.tu-icon-badge {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(34,197,94,.15); color: var(--success);
  display: inline-flex; align-items: center; justify-content: center;
}
.tu-auto-pill {
  font-size: .72rem; font-weight: 700; color: var(--success);
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35);
  border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.tu-balance { color: var(--text-muted); font-size: .85rem; margin: 4px 0 18px; }
.tu-balance strong { color: var(--accent-2); }

.tu-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tu-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-panel-2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
}
.tu-tab.active {
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(90deg, rgba(168,85,247,.25), rgba(232,121,249,.12));
}

.tu-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.tu-amount-btn {
  border: 1px solid var(--line);
  background: var(--bg-panel-2);
  color: #ecebf5;
  border-radius: 10px;
  padding: 12px 8px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}
.tu-amount-btn:hover, .tu-amount-btn.active { border-color: var(--accent); color: #fff; }

.tu-custom-amount {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 18px;
}
.tu-custom-amount span { color: var(--accent-2); font-weight: 700; font-size: .82rem; }
.tu-custom-amount input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: #ecebf5; font-size: .95rem; text-align: right;
}

.tu-note-box {
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: .84rem;
  color: var(--text-muted);
  margin-top: 18px;
}
.tu-note-box li { margin-bottom: 6px; }
.tu-note-box li:last-child { margin-bottom: 0; }
.tu-note-box strong { color: #ecebf5; }

.tu-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.tu-steps li {
  counter-increment: step;
  display: flex; gap: 12px;
  padding: 10px 0;
  color: var(--text-muted);
  font-size: .88rem;
}
.tu-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(168,85,247,.18); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  font-size: .76rem; font-weight: 700;
}

.tu-recent-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 0 12px;
}
.tu-recent-head .badge-count {
  font-size: .72rem; color: var(--text-muted);
  background: var(--bg-panel-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px; margin-left: 8px;
}

/* ================= WELCOME NOTICE MODAL ================= */
.wn-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(4,3,10,.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
}
.wn-overlay.show { display: flex; }
.wn-box {
  position: relative;
  width: 100%; max-width: 480px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px 20px;
  box-shadow: 0 0 0 1px rgba(168,85,247,.15), 0 20px 60px rgba(0,0,0,.55);
  animation: wnPop .22s ease;
}
@keyframes wnPop {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.wn-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-panel-2); border: 1px solid var(--line);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .85rem;
}
.wn-close:hover { color: #fff; border-color: var(--accent); }
.wn-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  box-shadow: 0 8px 24px rgba(168,85,247,.35);
}
.wn-title { text-align: center; font-weight: 800; font-size: 1.25rem; color: #fff; margin-bottom: 2px; }
.wn-sub { text-align: center; font-size: .72rem; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 18px; text-transform: uppercase; }
.wn-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.wn-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; font-size: .88rem; color: #e5e2f5;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.wn-item:last-child { border-bottom: none; }
.wn-item i.wn-ico {
  flex-shrink: 0; width: 20px; text-align: center; color: var(--accent-2); font-size: .95rem;
}
.wn-item .wn-link, .wn-item a { color: var(--accent-2); font-weight: 700; text-decoration: underline; }
.wn-item strong { color: #fff; }
a.wn-item:hover { background: rgba(168,85,247,.08); }
.wn-actions { display: flex; gap: 10px; }
.wn-btn {
  flex: 1; border: none; border-radius: 10px; padding: 11px 14px;
  font-weight: 700; font-size: .85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.wn-btn-later { background: var(--bg-panel-2); border: 1px solid var(--line); color: var(--text-muted); }
.wn-btn-later:hover { color: #fff; border-color: var(--accent); }
.wn-btn-ok { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
.wn-btn-ok:hover { filter: brightness(1.08); }
@media (max-width: 480px) {
  .wn-box { padding: 22px 16px 16px; }
}

/* ================= DOWNLOAD PAGE CARDS ================= */
.dl-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.dl-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.dl-thumb {
  height: 120px;
  background: linear-gradient(135deg, rgba(168,85,247,.22), rgba(232,121,249,.10)), var(--bg-panel-2);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-thumb i { font-size: 2.6rem; color: var(--accent-2); opacity: .9; }
.dl-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.dl-tag {
  display: inline-block; align-self: flex-start;
  background: rgba(168,85,247,.15); color: var(--accent-2);
  border: 1px solid rgba(168,85,247,.35);
  font-size: .66rem; font-weight: 700; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 6px; margin-bottom: 8px;
  text-transform: uppercase;
}
.dl-title { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.dl-desc {
  font-size: .76rem; color: var(--text-muted); margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.1em;
}
.dl-meta {
  display: flex; gap: 14px; font-size: .72rem; color: var(--text-muted);
  margin-bottom: 12px; margin-top: auto;
}
.dl-meta i { color: var(--accent-2); margin-right: 3px; }
.dl-actions { display: flex; gap: 6px; }
.dl-btn-main {
  flex: 1; text-align: center;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: .78rem;
  padding: 9px 8px; border-radius: 9px; text-decoration: none;
}
.dl-btn-main:hover { color: #fff; filter: brightness(1.08); }
.dl-btn-copy {
  width: 38px; flex-shrink: 0;
  background: var(--bg-panel-2); border: 1px solid var(--line);
  color: var(--text-muted); border-radius: 9px;
}
.dl-btn-copy:hover { color: #fff; border-color: var(--accent); }
.dl-btn-extra {
  display: block; text-align: center; margin-top: 6px;
  background: var(--bg-panel-2); border: 1px solid var(--line);
  color: var(--text-muted); font-size: .76rem; font-weight: 600;
  padding: 8px; border-radius: 9px; text-decoration: none;
}
.dl-btn-extra:hover { color: #fff; border-color: var(--accent); }
.dl-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
  background: var(--bg-panel); border: 1px dashed var(--line); border-radius: 14px;
}
.dl-empty i { font-size: 2.2rem; margin-bottom: 10px; display: block; }

/* ================= TOPUP WIDGET (TRANG CHỦ) ================= */
.topup-widget-section { padding: 8px 0 36px; }
.tw-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 20px 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.tw-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tw-title { font-weight: 800; font-size: .98rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.tw-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--success); display: inline-block;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: twPulse 1.6s infinite;
}
@keyframes twPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,.08); } }
.tw-sub { font-size: .76rem; color: var(--success); font-weight: 700; }
.tw-features {
  font-size: .78rem; color: var(--text-muted); text-align: center;
  padding: 9px 10px; margin-bottom: 14px;
  background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 10px;
}
.tw-features i { color: var(--success); margin-right: 4px; }
.tw-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: .92rem; letter-spacing: .02em;
  padding: 14px; border-radius: 12px; text-decoration: none;
  box-shadow: 0 10px 26px rgba(168,85,247,.35);
  margin-bottom: 14px;
}
.tw-cta:hover { color: #fff; filter: brightness(1.07); }
.tw-methods { text-align: center; font-size: .74rem; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; }
.tw-stats { display: flex; gap: 8px; margin-bottom: 18px; }
.tw-stat {
  flex: 1; text-align: center; background: var(--bg-panel-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px;
}
.tw-stat strong { display: block; font-size: .92rem; color: #fff; font-weight: 800; }
.tw-stat span { font-size: .68rem; color: var(--text-muted); }
.tw-banners { display: flex; flex-direction: column; gap: 12px; }
.tw-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  border-radius: 14px; padding: 18px 20px;
  text-decoration: none;
  background:
    radial-gradient(circle at 90% 15%, rgba(255,215,0,.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,215,0,.18), transparent 40%),
    linear-gradient(135deg, #7a0d0d, #b91c1c 55%, #7a0d0d);
  border: 1px solid rgba(251,191,36,.35);
}
.tw-banner:hover { filter: brightness(1.06); }
.tw-banner-icon {
  flex-shrink: 0; font-size: 2.1rem; color: #fbbf24;
  background: rgba(0,0,0,.25); width: 58px; height: 58px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(251,191,36,.4);
}
.tw-banner-text {
  color: #fff; font-weight: 900; font-size: 1.05rem; line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
  letter-spacing: .01em;
}
.tw-banner-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  background: #fbbf24; color: #3b0a0a; font-size: .72rem; font-weight: 800;
  padding: 5px 12px; border-radius: 999px;
}
.tw-banner-spark {
  position: absolute; border-radius: 50%; background: rgba(251,191,36,.55);
  filter: blur(1px);
}
.tw-banner .s1 { width: 8px; height: 8px; top: 14px; right: 26%; }
.tw-banner .s2 { width: 5px; height: 5px; bottom: 18px; right: 14%; }
.tw-banner .s3 { width: 6px; height: 6px; top: 40%; right: 8%; }
@media (max-width: 480px) {
  .tw-banner-text { font-size: .92rem; }
  .tw-banner-icon { width: 48px; height: 48px; font-size: 1.7rem; }
}

/* ================= CONTACT PAGE ================= */
.ct-head { display: flex; align-items: center; gap: 16px; }
.ct-head-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(248,113,113,.14); border: 1px solid rgba(248,113,113,.35);
  color: var(--danger); display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.ct-hr { border-color: var(--line); margin: 16px 0; }
.ct-hours { font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; flex-wrap: wrap; }
.ct-hours strong { color: var(--accent-2); }
.ct-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 8px;
}
.ct-dot-accent { background: var(--accent-2); margin-right: 8px; }

.ct-card {
  display: block; height: 100%;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.ct-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ct-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.ct-ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff;
}
.ct-ico-zalo { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.ct-ico-fb { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.ct-ico-tele { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.ct-ico-other { background: var(--bg-panel-2); border: 1px solid var(--line); color: var(--text-muted); }
.ct-platform { font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: var(--accent-2); }
.ct-title { font-size: .98rem; font-weight: 700; color: #fff; }
.ct-ext {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  background: var(--bg-panel-2); border: 1px solid var(--line);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: .75rem;
}
.ct-card:hover .ct-ext { color: #fff; border-color: var(--accent); }
.ct-desc { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; }
.ct-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-tag {
  font-size: .68rem; font-weight: 700; color: var(--accent-2);
  background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.3);
  padding: 3px 10px; border-radius: 999px;
}

.ct-feature {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; height: 100%;
}
.ct-feature-title { font-weight: 700; color: #fff; font-size: .88rem; margin-bottom: 4px; display: flex; align-items: center; }
.ct-feature-desc { font-size: .78rem; color: var(--text-muted); margin: 0; }

.ct-empty {
  text-align: center; padding: 50px 20px; color: var(--text-muted);
  background: var(--bg-panel); border: 1px dashed var(--line); border-radius: 14px;
}
.ct-empty i { font-size: 2rem; margin-bottom: 10px; display: block; }
