/* =========================================================== tokens & fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --ink: #05070a;
  --ink-2: #0b0e13;
  --panel: #0f1319;
  --panel-card: #131821;
  --bone: #e7ece7;
  --bone-dim: #9aa5a0;
  --muted: #6d7871;
  --line: rgba(231,236,231,.10);
  --line-soft: rgba(231,236,231,.06);
  --brand: #e0231c;
  --brand-2: #ff5a3c;
  --brand-glow: rgba(255, 90, 60, 0.4);
  --gold: #c9a24a;
  --success: #3cb478;
  --success-glow: rgba(60, 180, 120, 0.35);
  --ease: cubic-bezier(.22,.61,.36,1);
  --radius: 14px;
  --pad: clamp(18px, 3.4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--brand); color: #fff; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

/* Background Canvas for Interactive Particles (Embers / Sakura / Snow) */
#bg-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* =========================================================== reveal */
[data-rv] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-rv].in { opacity: 1; transform: none; }

/* =========================================================== nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}

/* LOGO: { } and tight .VN */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 19px;
  user-select: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  display: grid;
  place-items: center;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 4px 14px -3px rgba(224, 35, 28, 0.6);
  flex-shrink: 0;
}
.brand-text {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-tld {
  color: var(--brand-2);
  margin-left: 0px;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 90, 60, 0.4);
}

.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a {
  font-size: 14px;
  color: var(--bone-dim);
  transition: color .25s, transform .25s;
  position: relative;
  padding: 6px 0;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--bone); }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  box-shadow: 0 0 8px var(--brand-2);
}
.nav-admin-link {
  color: #ffc5b8 !important;
  background: rgba(224, 35, 28, 0.15);
  padding: 4px 10px !important;
  border-radius: 6px;
  border: 1px solid rgba(224, 35, 28, 0.3);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }
.user-bal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 90, 60, 0.1);
  border: 1px solid rgba(255, 90, 60, 0.3);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--bone);
  transition: all .25s;
}
.user-bal-btn:hover {
  background: rgba(255, 90, 60, 0.18);
  border-color: var(--brand-2);
  transform: translateY(-1px);
}
.user-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bone);
  cursor: pointer;
  outline: none;
  transition: all .25s var(--ease);
}
.user-avatar-btn:hover, .user-avatar-btn.menu-open {
  border-color: rgba(255, 90, 60, 0.5);
  background: rgba(255, 90, 60, 0.08);
  box-shadow: 0 0 16px rgba(224, 35, 28, 0.25);
}
.user-caret-ic {
  font-size: 11px;
  color: var(--muted);
  transition: transform .25s var(--ease);
  line-height: 1;
}
.user-avatar-btn.menu-open .user-caret-ic {
  transform: rotate(180deg);
  color: var(--brand-2);
}
.avatar-img, .avatar-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-initial {
  background: linear-gradient(135deg, var(--brand-2), #7a0f0a);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

/* User Dropdown Popover Menu (Toggle on click, click again to collapse) */
.user-dropdown-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: linear-gradient(160deg, #151a24 0%, #0d1017 100%);
  border: 1px solid rgba(255, 90, 60, 0.35);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(224, 35, 28, 0.16);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 1000;
  pointer-events: none;
}
.user-dropdown-popover.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.udp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.udp-avatar-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--line);
  box-shadow: 0 0 0 2px rgba(255, 90, 60, 0.3);
}
.udp-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.udp-avatar-initial {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-2), #7a0f0a);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.udp-user-info { min-width: 0; flex: 1; text-align: left; }
.udp-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.udp-badge { margin-top: 3px; }
.badge-role-admin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(224, 35, 28, 0.25), rgba(255, 90, 60, 0.15));
  border: 1px solid rgba(255, 90, 60, 0.4);
  color: #ff8e75;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}
.badge-role-user {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--bone-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}
.udp-balance-box {
  margin: 10px 0 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.udp-bal-title { font-size: 12px; color: var(--muted); }
.udp-bal-num {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--gold);
}
.udp-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.udp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--bone);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s var(--ease);
  text-align: left;
}
.udp-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(3px);
}
.udp-item-admin {
  background: linear-gradient(135deg, rgba(224, 35, 28, 0.22), rgba(255, 90, 60, 0.1));
  border: 1px solid rgba(255, 90, 60, 0.4);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(224, 35, 28, 0.22);
}
.udp-item-admin:hover {
  background: linear-gradient(135deg, rgba(224, 35, 28, 0.35), rgba(255, 90, 60, 0.2));
  border-color: var(--brand-2);
  color: #fff;
  box-shadow: 0 6px 22px rgba(224, 35, 28, 0.38);
}
.udp-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--brand);
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.udp-sep {
  height: 1px;
  background: var(--line-soft);
  margin: 5px 0;
}
.udp-item-logout {
  color: #ff6b6b;
}
.udp-item-logout:hover {
  background: rgba(255, 70, 70, 0.12);
  color: #ff8e8e;
}
.nav-burger {
  display: none;
  width: 26px;
  height: 18px;
  position: relative;
  background: none;
  border: 0;
  padding: 0;
}
.nav-burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bone);
  transition: all .3s;
}
.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 8px; }
.nav-burger span:nth-child(3) { top: 16px; }

/* =========================================================== buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .3s var(--ease);
  user-select: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(224, 35, 28, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(224, 35, 28, 0.75);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--bone);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  background: rgba(231, 236, 231, 0.08);
  border-color: rgba(231, 236, 231, 0.35);
  transform: translateY(-1px);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; justify-content: center; }

/* =========================================================== hero */
.hero {
  position: relative;
  padding: 80px var(--pad) 64px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 75%;
  z-index: 1;
  background: radial-gradient(60% 70% at 70% 15%, rgba(224, 35, 28, 0.18), transparent 70%),
              radial-gradient(50% 60% at 20% 10%, rgba(60, 90, 160, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; text-align: center; }

/* =========================================================== hero video background */
.hero-video {
  padding: 100px var(--pad) 74px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 10, 0.65) 0%,
    rgba(5, 7, 10, 0.45) 40%,
    rgba(5, 7, 10, 0.55) 70%,
    rgba(5, 7, 10, 0.92) 100%
  );
  z-index: 1;
}
.hero-video .hero-in {
  z-index: 3;
}
.hero-video::before {
  z-index: 2;
}
/* Sidebar Video Audio Toggle Card */
.video-audio-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.vat-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 90, 60, 0.12);
  color: var(--brand-2);
  display: grid;
  place-items: center;
}
.vat-text {
  display: flex;
  flex-direction: column;
}
.vat-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bone);
}
.vat-status {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.btn-vat-toggle {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--bone);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.btn-vat-toggle:hover {
  background: rgba(255, 90, 60, 0.2);
  border-color: var(--brand-2);
  color: #fff;
}
.btn-vat-toggle.is-active {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(224, 35, 28, 0.4);
}
@media (max-width: 768px) {
  .hero-video {
    min-height: 80vh;
    padding: 80px var(--pad) 54px;
  }
  .hero-sound-toggle {
    bottom: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 18px;
  margin-bottom: 24px;
  background: rgba(15, 19, 25, 0.5);
  backdrop-filter: blur(8px);
}
.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 10px var(--brand-2);
}
.hero h1 {
  font-size: clamp(32px, 5.2vw, 62px);
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 650px;
  margin: 0 auto 34px;
  color: var(--bone-dim);
  font-size: 16.5px;
  line-height: 1.65;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px; }
.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(36, 161, 222, 0.12);
  border: 1px solid rgba(36, 161, 222, 0.38);
  color: #4dc2f7;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-telegram:hover {
  background: rgba(36, 161, 222, 0.24);
  border-color: #24a1de;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(36, 161, 222, 0.4);
  transform: translateY(-1px);
}
.btn-icon-tg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--line-soft);
  padding-top: 32px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 60, 0.35);
  background: rgba(255, 90, 60, 0.03);
}
.stat-number {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-unit {
  font-size: 0.65em;
  color: var(--brand-2);
  font-weight: 800;
}
.stat-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bone-dim);
  line-height: 1.35;
}
@media (max-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 24px;
  }
  .stat-card {
    padding: 12px 8px;
  }
}

/* =========================================================== sections */
.sec { position: relative; z-index: 2; padding: 68px var(--pad); }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.sec-head h2 { font-size: clamp(24px, 2.8vw, 34px); margin: 0 0 8px; font-weight: 800; letter-spacing: -0.01em; }
.sec-head p { color: var(--bone-dim); margin: 0; max-width: 540px; font-size: 15px; }
.kicker {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-2);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

/* =========================================================== grids & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }

.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 60, 0.35);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6), 0 0 20px -8px rgba(224, 35, 28, 0.25);
}
.thumb-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #0b0e13; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .thumb-wrap img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 4px 12px rgba(224, 35, 28, 0.5);
  z-index: 2;
}
.badge-lang {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(5, 7, 10, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--bone);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 12px; color: var(--brand-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; line-height: 1.35; }
.card h3 a { transition: color .2s; }
.card h3 a:hover { color: var(--brand-2); }
.card .desc { font-size: 13.5px; color: var(--bone-dim); margin: 0 0 16px; line-height: 1.5; flex: 1; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--bone-dim);
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.card-foot .price b { font-size: 18px; color: var(--bone); font-weight: 800; }
.card-foot .price s { font-size: 13px; color: var(--muted); margin-left: 6px; }
.card-foot .sales { font-size: 12px; color: var(--muted); }

/* =========================================================== categories */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  transition: all .3s var(--ease);
}
.cat-card:hover {
  border-color: rgba(255, 90, 60, 0.35);
  background: rgba(15, 19, 25, 0.85);
  transform: translateY(-2px);
}
.cat-card .n { font-size: 26px; font-weight: 800; color: var(--brand-2); line-height: 1; margin-bottom: 8px; }
.cat-card .t { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cat-card .c { font-size: 12px; color: var(--muted); }

/* =========================================================== features & steps */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 60, 0.3);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
}
.feature .ic {
  font-size: 28px;
  margin-bottom: 14px;
}
.feature .ic.ic-gradient {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 0;
  color: #fff;
}
.feature .ic.ic-bolt { background: linear-gradient(135deg, #ff5a3c, #c91a0e); }
.feature .ic.ic-wrench { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.feature .ic.ic-shield { background: linear-gradient(135deg, #3cb478, #1a7a44); }
.feature .ic.ic-cpu { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.feature h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.feature p { font-size: 14px; color: var(--bone-dim); margin: 0; line-height: 1.55; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.step { padding: 32px 28px; border-right: 1px solid var(--line-soft); }
.step:last-child { border-right: none; }
.step .num { font-size: 28px; font-weight: 900; color: var(--brand-2); margin-bottom: 12px; }
.step h4 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.step p { margin: 0; font-size: 14px; color: var(--bone-dim); }

.cta-band {
  text-align: center;
  padding: 70px var(--pad);
  border-top: 1px solid var(--line-soft);
  background: radial-gradient(50% 60% at 50% 50%, rgba(224, 35, 28, 0.08), transparent 70%);
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); margin: 0 0 12px; font-weight: 800; }
.cta-band p { color: var(--bone-dim); max-width: 540px; margin: 0 auto 26px; font-size: 15.5px; }

/* =========================================================== product detail */
.pd { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; margin-bottom: 50px; }
.pd-gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #0b0e13;
  aspect-ratio: 16/10;
}
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs img {
  width: 80px;
  height: 54px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  object-fit: cover;
  opacity: 0.65;
  transition: all .2s;
}
.pd-thumbs img.active, .pd-thumbs img:hover { opacity: 1; border-color: var(--brand); }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.pd-price-row b { font-size: 30px; font-weight: 800; color: #fff; }
.pd-price-row s { font-size: 17px; color: var(--muted); }
.pd-cta { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 16px; }
.pd-note { font-size: 13px; color: var(--bone-dim); margin: 0; }

.tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 12px 14px;
  background: none;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
  position: relative;
  white-space: nowrap;
  transition: color .2s;
}
.tab-btn.active { color: var(--bone); }
.tab-btn.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-2);
  box-shadow: 0 0 10px var(--brand-2);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel ul { display: flex; flex-direction: column; gap: 10px; }
.tab-panel li { display: flex; gap: 10px; font-size: 14.5px; color: var(--bone-dim); }
.tab-panel li::before { content: '✓'; color: var(--brand-2); font-weight: 800; }

/* =========================================================== forms & inputs */
.form-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--panel);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--bone-dim); margin-bottom: 7px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--bone);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 12px -2px rgba(255, 90, 60, 0.35);
}
.field textarea { min-height: 100px; resize: vertical; }

/* Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.switch-toggle input { opacity: 0; width: 0; height: 0; }
.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 26px;
}
.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
.switch-toggle input:checked + .slider {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}
.switch-toggle input:checked + .slider:before {
  transform: translateX(20px);
}

/* =========================================================== 4 Contact Cards */
.contact-quad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.contact-quad-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all .3s var(--ease);
}
.contact-quad-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 60, 0.35);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}
.quad-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
}
.telegram-icon { background: linear-gradient(135deg, #0088cc, #005580); }
.zalo-icon { background: linear-gradient(135deg, #0068ff, #0044b3); }
.email-icon { background: linear-gradient(135deg, #ff5a3c, #b32d18); }
.hours-icon { background: linear-gradient(135deg, #3cb478, #1f6b44); }
.quad-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bone-dim);
  margin-bottom: 10px;
}
.contact-quad-card h3 { font-size: 20px; margin: 0 0 6px; font-weight: 700; }
.quad-val { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.quad-desc { font-size: 13.5px; color: var(--bone-dim); margin: 0; line-height: 1.5; flex: 1; }

/* =========================================================== FLOATING PILL MOBILE NAV */
.mobile-pill-nav {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 9999;
  width: calc(100% - 24px);
  max-width: 410px;
  pointer-events: none;
}
.mobile-pill-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 8px;
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.85),
              0 0 20px -5px rgba(224, 35, 28, 0.25);
  box-sizing: border-box;
}
.pill-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 48px;
  max-width: 68px;
  border-radius: 50%;
  color: var(--bone-dim);
  text-decoration: none;
  position: relative;
  transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}
.pill-tab .pill-icon {
  display: grid;
  place-items: center;
  transition: transform .25s;
}
.pill-tab .pill-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .01em;
  margin-top: 2px;
  white-space: nowrap;
}

/* Active tab: circular active tab with glowing neon highlight */
.pill-tab.is-active {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 90, 60, 0.75),
              0 0 32px rgba(224, 35, 28, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transform: translateY(-4px) scale(1.05);
}
.pill-tab.is-active .pill-label { display: none; }
.pill-tab.is-active .pill-icon svg { stroke-width: 2.4; }

/* =========================================================== THEME ALERTS & FLASH NOTIFICATIONS */
.alert {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 18px !important;
  margin-bottom: 24px !important;
  border-radius: 14px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  backdrop-filter: blur(20px) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  animation: alertSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.alert .alert-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.alert .alert-content {
  flex: 1;
}
.alert-success {
  background: linear-gradient(135deg, rgba(16, 44, 28, 0.92), rgba(10, 24, 16, 0.95)) !important;
  border: 1px solid rgba(74, 222, 128, 0.35) !important;
  border-left: 5px solid #4ade80 !important;
  color: #ecfdf5 !important;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.7),
              0 0 24px -6px rgba(74, 222, 128, 0.25) !important;
}
.alert-success .alert-icon {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
}
.alert-danger {
  background: linear-gradient(135deg, rgba(46, 18, 18, 0.92), rgba(24, 10, 10, 0.95)) !important;
  border: 1px solid rgba(248, 113, 113, 0.35) !important;
  border-left: 5px solid #f87171 !important;
  color: #fef2f2 !important;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.7),
              0 0 24px -6px rgba(248, 113, 113, 0.25) !important;
}
.alert-danger .alert-icon {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.5);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.35);
}
.alert-warning {
  background: linear-gradient(135deg, rgba(46, 38, 16, 0.92), rgba(24, 20, 10, 0.95)) !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  border-left: 5px solid #fbbf24 !important;
  color: #fffbeb !important;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.7),
              0 0 24px -6px rgba(251, 191, 36, 0.25) !important;
}
.alert-warning .alert-icon {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

@media (max-width: 768px) {
  .mobile-pill-nav { display: block; }
  body { padding-bottom: 105px !important; } /* Leave clearance for floating dock */
  .nav-links { display: none; }
  html, body { overflow-x: hidden; }
}

/* =========================================================== AI CHATBOT WIDGET (RIGHT SIDE) */
.ai-chat-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  z-index: 990;
}
@media (max-width: 768px) {
  .ai-chat-wrapper { bottom: 85px; right: 16px; left: auto; }
}

.ai-chat-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px -4px rgba(224, 35, 28, 0.55), 0 0 0 0 rgba(255, 90, 60, 0);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.ai-chat-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px -4px rgba(224, 35, 28, 0.7), 0 0 0 6px rgba(255, 90, 60, 0.12);
}
.ai-trigger-icon { display: grid; place-items: center; color: #fff; }
.ai-trigger-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand-2);
  animation: triggerPulse 2.5s infinite ease-out;
  pointer-events: none;
}
@keyframes triggerPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.45); opacity: 0; }
}
.ai-online-ping {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  background: #3cb478;
  border: 2px solid #0b0e13;
  border-radius: 50%;
  box-shadow: 0 0 8px #3cb478;
}

/* AI Chat Popup Box (Anchored to the Right) */
.ai-chat-box {
  display: none;
  position: absolute;
  bottom: 68px;
  right: 0;
  left: auto;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: 75vh;
  background: rgba(15, 19, 25, 0.95);
  backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(231, 236, 231, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 0 25px rgba(224, 35, 28, 0.2);
  flex-direction: column;
  overflow: hidden;
  animation: chatPop .3s var(--ease);
}
.ai-chat-box.open { display: flex; }
@keyframes chatPop {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: none; }
}

.ai-chat-head {
  padding: 14px 16px;
  background: rgba(11, 14, 19, 0.85);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-head-info { display: flex; align-items: center; gap: 10px; }
.ai-head-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  display: grid;
  place-items: center;
  font-size: 18px;
}
.ai-head-title { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.ai-model-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-2);
  background: rgba(255, 90, 60, 0.12);
  border: 1px solid rgba(255, 90, 60, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}
.ai-head-status { font-size: 11.5px; color: var(--bone-dim); display: flex; align-items: center; gap: 5px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #3cb478; box-shadow: 0 0 6px #3cb478; }
.ai-chat-close { background: none; border: 0; color: var(--bone-dim); font-size: 16px; padding: 4px; cursor: pointer; }

.ai-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-msg { display: flex; flex-direction: column; max-width: 85%; }
.ai-msg.ai-bot { align-self: flex-start; }
.ai-msg.ai-user { align-self: flex-end; }
.ai-bubble {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
}
.ai-bot .ai-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  color: var(--bone);
  border-bottom-left-radius: 4px;
}
.ai-user .ai-bubble {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.typing-dots { display: flex; gap: 4px; padding: 6px 4px; }
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  animation: bounceDot 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounceDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.ai-quick-prompts {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  border-top: 1px solid var(--line-soft);
  background: rgba(11, 14, 19, 0.4);
}
.quick-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--bone-dim);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 100px;
  white-space: nowrap;
  transition: all .2s;
}
.quick-btn:hover { background: rgba(255, 90, 60, 0.15); border-color: var(--brand-2); color: #fff; }

.ai-chat-form {
  padding: 10px 14px;
  background: rgba(11, 14, 19, 0.9);
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 8px;
}
.ai-chat-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 14px;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
}
.ai-chat-form input:focus { outline: none; border-color: var(--brand-2); }
.ai-chat-form button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform .2s;
}
.ai-chat-form button:hover { transform: scale(1.05); }

/* =========================================================== THEME & MUSIC SIDEBAR (RIGHT EDGE & FULL HEIGHT) */
.theme-edge-sidebar {
  position: fixed;
  right: 0;
  left: auto;
  top: 0;
  bottom: 0;
  height: 100vh;
  z-index: 980;
}

/* Arrow Toggle Button on the Right Edge */
.theme-edge-toggle {
  position: fixed;
  right: 0;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 56px;
  background: rgba(15, 19, 25, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(231, 236, 231, 0.14);
  border-right: none;
  border-radius: 12px 0 0 12px;
  color: var(--brand-2);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.6);
  transition: all 0.35s var(--ease);
  z-index: 982;
}
.theme-edge-toggle:hover { background: rgba(255, 90, 60, 0.2); width: 32px; }
.theme-edge-sidebar.open .theme-edge-toggle { right: 320px; }

/* Full-height sliding panel (Kịch đầu và cuối website) */
.theme-panel-content.theme-panel-fullheight {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -320px;
  left: auto;
  width: 320px;
  height: 100vh;
  max-height: 100vh;
  background: rgba(11, 14, 19, 0.96);
  backdrop-filter: blur(24px) saturate(1.4);
  border-left: 1px solid rgba(231, 236, 231, 0.14);
  border-right: none;
  border-radius: 0;
  padding: 24px 20px;
  box-shadow: -16px 0 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transition: right 0.4s var(--ease);
  z-index: 981;
}
.theme-edge-sidebar.open .theme-panel-content.theme-panel-fullheight { right: 0; }

.theme-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.theme-panel-header h4 { margin: 0; font-size: 16px; font-weight: 800; color: var(--bone); }
.theme-panel-close { background: none; border: 0; color: var(--bone-dim); font-size: 16px; cursor: pointer; }

.theme-panel-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}
.theme-panel-section { margin-bottom: 24px; }
.theme-sec-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bone-dim);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.theme-sec-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
}

.effect-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.effect-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .2s;
}
.effect-pill input { display: none; }
.effect-pill:has(input:checked) {
  background: rgba(255, 90, 60, 0.16);
  border-color: var(--brand-2);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(255, 90, 60, 0.2);
}

/* Simplified Music Playlist */
.simple-track-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.simple-track-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .25s var(--ease);
  user-select: none;
}
.simple-track-card:hover {
  background: rgba(255, 90, 60, 0.08);
  border-color: rgba(255, 90, 60, 0.3);
  transform: translateX(-2px);
}
.simple-track-card.is-playing {
  background: rgba(255, 90, 60, 0.16);
  border-color: var(--brand-2);
  box-shadow: 0 0 16px rgba(255, 90, 60, 0.25);
}
.simple-track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.simple-track-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bone);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.simple-track-status-icon {
  font-size: 12px;
  color: var(--bone-dim);
  margin-left: auto;
  transition: color .2s;
}
.simple-track-card.is-playing .simple-track-status-icon {
  color: var(--brand-2);
}
.soundwave-bars {
  display: none;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
}
.simple-track-card.is-playing .soundwave-bars { display: flex; }
.soundwave-bars span {
  width: 3px;
  background: var(--brand-2);
  border-radius: 2px;
  animation: waveAnim 0.8s infinite ease-in-out alternate;
}
.soundwave-bars span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.soundwave-bars span:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.soundwave-bars span:nth-child(3) { height: 9px; animation-delay: 0.2s; }
@keyframes waveAnim {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* =========================================================== SITE ANNOUNCEMENT POPUP MODAL */
.site-announcement-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.site-announcement-modal.active { display: flex; }
.site-announcement-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(14px);
}
.site-announcement-box {
  position: relative;
  z-index: 2;
  background: linear-gradient(145deg, #131822, #0b0e14);
  border: 1px solid rgba(255, 90, 60, 0.4);
  border-radius: 22px;
  padding: 34px 28px 24px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.88), 0 0 35px rgba(224, 35, 28, 0.25);
  animation: modalScale .35s var(--ease);
}
.announcement-close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: color .2s;
}
.announcement-close-x:hover { color: #fff; }
.announcement-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}
.announcement-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(224, 35, 28, 0.55);
}
.announcement-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 1px solid rgba(255, 90, 60, 0.35);
  animation: pulseGlow 2s infinite ease-in-out;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.08); opacity: 0.8; }
}
.announcement-title { font-size: 21px; margin: 0 0 12px; font-weight: 800; color: #fff; }
.announcement-body {
  font-size: 14px;
  color: var(--bone-dim);
  line-height: 1.6;
  margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
}
.announcement-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.btn-ann-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
}
.btn-ann-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 13.5px;
  color: var(--bone-dim);
}
@media (max-width: 600px) {
  .site-announcement-box {
    padding: 28px 20px 22px;
    border-radius: 20px;
    max-width: 92vw;
  }
  .announcement-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 10px auto 0;
  }
  .announcement-actions .btn {
    width: 100%;
    max-width: 290px;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 12px;
  }
  .btn-ann-secondary {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
  }
}

/* =========================================================== HOLD-TO-VERIFY MODAL */
.verify-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.verify-modal.active { display: flex; }
.verify-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(12px);
}
.verify-box {
  position: relative;
  z-index: 2;
  background: var(--panel);
  border: 1px solid rgba(255, 90, 60, 0.35);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(224, 35, 28, 0.25);
  animation: modalScale .3s var(--ease);
}
@keyframes modalScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}
.verify-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 16px;
}
.verify-head .verify-shield-ic { font-size: 32px; display: block; margin-bottom: 8px; }
.verify-head h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.verify-head p { margin: 0 0 24px; font-size: 13.5px; color: var(--bone-dim); }

.hold-ring-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hold-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 6; }
.ring-fill {
  fill: none;
  stroke: var(--brand-2);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.05s linear;
}
.hold-ring-wrapper.holding .ring-fill {
  filter: drop-shadow(0 0 8px var(--brand-2));
}
.hold-ring-wrapper.completed .ring-fill {
  stroke: #3cb478;
  filter: drop-shadow(0 0 10px #3cb478);
}
.hold-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hold-icon { font-size: 22px; color: var(--brand-2); transition: all .3s; }
.hold-ring-wrapper.completed .hold-icon { color: #3cb478; font-size: 30px; font-weight: 900; }
.hold-text { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--bone); margin-top: 2px; }
.hold-percent { font-size: 10px; color: var(--muted); }
.verify-status { font-size: 13px; color: var(--bone-dim); transition: color .2s; }
.hold-ring-wrapper.shake { animation: shakeAnim .4s ease-in-out; }
@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Page Transition Overlay — REMOVED: caused black screen on hosting after auth redirect */

/* =========================================================== DEPOSIT (NAP TIEN) */
.deposit-form-card { max-width: 680px; margin: 0 auto; }
.deposit-label { font-size: 14px; font-weight: 600; margin-bottom: 12px; display: block; }
.amount-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 480px) { .amount-presets { grid-template-columns: repeat(2, 1fr); } }
.preset-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 10px;
  color: var(--bone);
  font-weight: 700;
  font-size: 14.5px;
  transition: all .2s;
}
.preset-btn:hover, .preset-btn.active {
  background: rgba(255, 90, 60, 0.15);
  border-color: var(--brand-2);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 90, 60, 0.3);
}
.deposit-notes {
  margin: 20px 0;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--bone-dim);
}
.deposit-notes ul { display: flex; flex-direction: column; gap: 6px; }

/* Active Invoice View - Elevated 3D QR Card */
.elevated-qr-card {
  position: relative;
  background: linear-gradient(145deg, #131822, #0c1017);
  border: 1px solid rgba(255, 90, 60, 0.38);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px -5px rgba(255, 90, 60, 0.25);
  overflow: hidden;
}
.elevated-qr-glow {
  position: absolute;
  top: -80px;
  left: 20%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 60, 0.18), transparent 70%);
  pointer-events: none;
}
.elevated-qr-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 820px) {
  .elevated-qr-grid { grid-template-columns: 1fr; gap: 24px; }
  .elevated-qr-card { padding: 24px 18px; border-radius: 18px; }
  .qr-floating-frame { max-width: 270px; margin: 0 auto; }
  .detail-row { flex-wrap: wrap; padding: 10px 14px; }
  .detail-row .d-label { width: 100%; font-size: 12.5px; margin-bottom: 2px; }
  .detail-row .d-val { flex: 1; font-size: 15px; word-break: break-all; }
  .invoice-bottom-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .invoice-bottom-actions > div { justify-content: center; width: 100%; }
}

.qr-floating-frame {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 45px -8px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 255, 255, 0.08);
  transition: transform .3s;
}
.qr-floating-frame:hover { transform: translateY(-3px); }
.qr-bank-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mb-pill {
  background: #0033a0;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .04em;
}
.qr-auto-badge {
  background: rgba(60, 180, 120, 0.15);
  color: #1f7a46;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 100px;
}
.qr-img-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
}
.qr-actual-img { width: 100%; height: 100%; object-fit: contain; }
.qr-laser-scanner {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff5a3c, transparent);
  box-shadow: 0 0 12px #ff5a3c;
  animation: scanMove 2.2s infinite ease-in-out;
}
@keyframes scanMove {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.qr-card-foot {
  text-align: center;
  font-size: 12px;
  color: #6d7871;
  margin-top: 10px;
  font-weight: 600;
}

.countdown-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.status-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--bone-dim);
}
.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 8px var(--brand-2);
  animation: pulseGlow 1.5s infinite;
}
.pay-info-heading { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: #fff; }
.pay-info-sub { color: var(--bone-dim); font-size: 13.5px; margin: 0 0 20px; line-height: 1.5; }

.detail-rows { display: flex; flex-direction: column; gap: 8px; }
.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-size: 14px;
  gap: 10px;
}
.detail-row.highlight-amount {
  background: rgba(255, 90, 60, 0.09);
  border-color: rgba(255, 90, 60, 0.3);
}
.detail-row.highlight-code {
  background: rgba(201, 162, 74, 0.1);
  border-color: rgba(201, 162, 74, 0.35);
}
.amount-val b { font-size: 18px; color: #fff; }
.copy-btn-modern {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.copy-btn-modern:hover { background: rgba(255, 255, 255, 0.14); }
.copy-btn-modern.copied {
  background: rgba(60, 180, 120, 0.25);
  border-color: #3cb478;
  color: #8fe0b8;
}
.copy-btn-amount {
  background: rgba(255, 90, 60, 0.18);
  border-color: var(--brand-2);
  color: #fff;
}
.copy-btn-code {
  background: rgba(201, 162, 74, 0.2);
  border-color: var(--gold);
  color: #fff;
}
.invoice-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.live-checking-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--bone-dim);
}

.invoice-box {
  background: var(--panel);
  border: 1px solid rgba(255, 90, 60, 0.35);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}
.copy-field.highlight {
  background: rgba(255, 90, 60, 0.08);
  border-color: rgba(255, 90, 60, 0.25);
}
.copy-field.highlight-alert {
  background: rgba(201, 162, 74, 0.1);
  border-color: rgba(201, 162, 74, 0.35);
}
.btn-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all .2s;
}
.btn-copy:hover { background: rgba(255, 255, 255, 0.12); }
.code-val { font-family: monospace; font-size: 16px; color: var(--brand-2); font-weight: 800; }
.spinner-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--brand-2);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================== USER PROFILE */
.profile-hero-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.profile-avatar-box { position: relative; width: 90px; height: 90px; flex-shrink: 0; }
.profile-avatar-big, .profile-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 90, 60, 0.4);
}
.profile-avatar-fallback {
  background: linear-gradient(135deg, var(--brand-2), #7a0f0a);
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
  color: #fff;
}
.avatar-cam-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--bone);
  transition: all .2s;
}
.avatar-cam-btn:hover { border-color: var(--brand-2); color: #fff; }
.profile-hero-info { flex: 1; min-width: 200px; }
.profile-name-row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.profile-name-row h2 { margin: 0; font-size: 24px; font-weight: 800; }
.profile-email { margin: 0 0 6px; font-size: 14px; color: var(--bone-dim); }
.profile-hero-bal {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 24px;
  text-align: center;
  min-width: 200px;
}
.bal-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: block; }
.bal-val b { font-size: 24px; color: var(--brand-2); font-weight: 900; }

/* =========================================================== DATA TABLES */
.table-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-responsive { width: 100%; overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.data-table th, .data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.data-table th {
  background: rgba(11, 14, 19, 0.6);
  color: var(--bone-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.data-table tr:hover td { background: rgba(255, 255, 255, 0.015); }
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.status-success { background: rgba(60, 180, 120, 0.15); color: #8fe0b8; border: 1px solid rgba(60, 180, 120, 0.35); }
.status-warning { background: rgba(201, 162, 74, 0.15); color: #ffd678; border: 1px solid rgba(201, 162, 74, 0.35); }
.status-expired { background: rgba(224, 35, 28, 0.15); color: #ff9e99; border: 1px solid rgba(224, 35, 28, 0.35); }

/* =========================================================== AUTH PAGES */
.auth-sec {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(224, 35, 28, 0.08) 0%, transparent 60%);
}
.auth-container { max-width: 460px; width: 100%; }
.auth-card {
  padding: 40px 36px;
  background: linear-gradient(145deg, rgba(19, 24, 33, 0.95), rgba(11, 14, 19, 0.98));
  border: 1px solid rgba(255, 90, 60, 0.2);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7), 0 0 30px -8px rgba(224, 35, 28, 0.15);
}
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-logo-mark { width: 44px; height: 44px; font-size: 20px; margin: 0 auto 14px; }
.auth-head h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.auth-head p { margin: 0; font-size: 14px; color: var(--bone-dim); }
.auth-foot { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--bone-dim); }
.auth-foot a { color: var(--brand-2); font-weight: 600; transition: color .2s; }
.auth-foot a:hover { color: #ff8e75; }
.auth-card .btn svg { flex-shrink: 0; }

/* =========================================================== FOOTER */
.foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
  background: var(--ink-2);
  padding: 70px var(--pad) 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
}
.foot-brand p { font-size: 14px; color: var(--bone-dim); margin-top: 12px; max-width: 320px; line-height: 1.6; }
.foot h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--bone); margin: 0 0 16px; font-weight: 700; }
.foot ul { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.foot a { color: var(--bone-dim); transition: color .2s; }
.foot a:hover { color: var(--bone); }
.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================== CURSOR */
.cur-dot {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid rgba(231, 236, 231, 0.4);
  border-radius: 50%;
  pointer-events: none;
  transition: width .3s, height .3s, margin .3s, background .3s, opacity .3s;
  opacity: 0;
}
.cur-dot.act {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: rgba(224, 35, 28, 0.14);
  border-color: var(--brand);
}
@media (hover: hover) and (pointer: fine) { .cur-dot { opacity: 1; } }

/* =========================================================== RESPONSIVE FIXES */
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pd { grid-template-columns: 1fr; }
  .profile-hero-card { flex-direction: column; text-align: center; }
  .profile-name-row { justify-content: center; }
  .profile-hero-bal { width: 100%; }
}
@media (max-width: 768px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 10, 0.98);
    flex-direction: column;
    padding: 24px var(--pad);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 90;
  }
  .nav-links.open { transform: none; display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-soft); }

  /* Mobile Top Navbar Cleanup (Fits logo, balance and avatar without clipping) */
  .nav { padding: 12px 16px; }
  .user-name-label { display: none !important; }
  .user-caret-ic { display: none !important; }
  .user-menu-wrap .pc-logout-btn { display: none !important; }
  .nav-burger { display: none !important; }
  .user-bal-btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
    gap: 4px !important;
  }
  .user-avatar-btn {
    padding: 3px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }
  .avatar-img, .avatar-initial {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }
  .user-dropdown-popover {
    position: fixed !important;
    top: 58px !important;
    right: 12px !important;
    left: auto !important;
    width: min(300px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
  }
}

/* =========================================================== CATALOG TOOLBAR & CATEGORY PILLS */
.catalog-cat-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 16px;
  margin-bottom: 20px;
}
.catalog-cat-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  color: var(--bone-dim);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.cat-pill.is-active {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #ffffff;
  border-color: rgba(255, 90, 60, 0.6);
  box-shadow: 0 4px 18px rgba(224, 35, 28, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}
.cat-pill-count {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
.cat-pill.is-active .cat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 14px;
}
.toolbar-stats {
  font-size: 14px;
  color: var(--bone-dim);
}
.toolbar-stats b {
  color: var(--bone);
}
.toolbar-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}
.custom-select-wrap {
  position: relative;
}
.custom-sort-select {
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 7px 32px 7px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa89f' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-sort-select:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 10px rgba(255, 90, 60, 0.3);
}

.empty-catalog-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 16px;
  margin: 30px 0;
}
.empty-icon { font-size: 44px; margin-bottom: 12px; }
.empty-catalog-state h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--bone); }
.empty-catalog-state p { color: var(--bone-dim); font-size: 14px; margin: 0 0 20px; }


