:root {
  --bg:#f5f7fb;
  --surface:#fff;
  --surface-soft:#eef4ff;
  --text:#172033;
  --muted:#667085;
  --line:#e4e8f0;
  --primary:#0786a8;
  --primary-strong:#036c8b;
  --primary-soft:#e0f5fb;
  --primary-rgb:7 134 168;
  --success:#138a57;
  --success-soft:#dcfce7;
  --warning:#b7791f;
  --warning-soft:#fef3c7;
  --danger:#c2410c;
  --danger-soft:#ffedd5;
  --neutral-soft:#eef2f7;
  --sidebar:#101d3b;
  --shadow:0 18px 45px rgba(20,29,53,.08);
  --shadow-sm:0 8px 18px rgba(15,23,42,.10);
  --shadow-md:0 18px 45px rgba(15,23,42,.14);
  --shadow-lg:0 28px 80px rgba(15,23,42,.20);
  --radius:8px;
  --radius-md:10px;
  --radius-lg:14px;
  --radius-xl:18px;
  --glass:color-mix(in srgb,var(--surface) 72%,transparent);
  --glass-strong:color-mix(in srgb,var(--surface) 86%,transparent);
  --glass-border:color-mix(in srgb,var(--line) 70%,transparent);
  --ring:0 0 0 4px color-mix(in srgb,var(--primary) 16%,transparent);
  --ease:cubic-bezier(.2,.9,.2,1);
  --t-fast:140ms;
  --t-med:220ms;
  --bg-grad:
    radial-gradient(1200px 700px at 10% -10%, rgba(var(--primary-rgb) / .12), transparent 55%),
    radial-gradient(900px 600px at 110% 10%, rgba(99 102 241 / .10), transparent 60%),
    radial-gradient(800px 520px at 50% 120%, rgba(34 197 94 / .08), transparent 55%);
  --content:1180px
}

[data-theme=dark] {
  --bg:#0f172a;
  --surface:#111c31;
  --surface-soft:#172642;
  --text:#edf2ff;
  --muted:#a8b3c7;
  --line:#26354f;
  --primary:#38bdf8;
  --primary-strong:#7dd3fc;
  --primary-soft:#12324a;
  --primary-rgb:56 189 248;
  --success:#4ade80;
  --success-soft:rgba(34,197,94,.14);
  --warning:#facc15;
  --warning-soft:rgba(250,204,21,.14);
  --danger:#fb923c;
  --danger-soft:rgba(251,146,60,.14);
  --neutral-soft:#19253b;
  --shadow:0 18px 45px rgba(0,0,0,.26);
  --shadow-sm:0 8px 18px rgba(0,0,0,.28);
  --shadow-md:0 18px 50px rgba(0,0,0,.38);
  --shadow-lg:0 32px 95px rgba(0,0,0,.50);
  --glass:color-mix(in srgb,var(--surface) 66%,transparent);
  --glass-strong:color-mix(in srgb,var(--surface) 82%,transparent);
  --glass-border:color-mix(in srgb,var(--line) 62%,transparent);
  --ring:0 0 0 4px color-mix(in srgb,var(--primary) 22%,transparent);
  --bg-grad:
    radial-gradient(1200px 700px at 10% -10%, rgba(var(--primary-rgb) / .10), transparent 55%),
    radial-gradient(900px 600px at 110% 10%, rgba(129 140 248 / .10), transparent 60%),
    radial-gradient(800px 520px at 50% 120%, rgba(74 222 128 / .07), transparent 55%)
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
}

body {
  min-height:100%;
  margin:0;
  background:var(--bg);
  background-image:var(--bg-grad);
  background-attachment:fixed;
  color:var(--text);
  font-family:"Roboto Condensed","Arial Narrow",Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale
}

a {
  color:inherit;
  text-decoration:none
}

button,input {
  font:inherit
}

button {
  cursor:pointer
}

.app-shell,.main-content {
  min-height:100vh
}

.main-content {
  margin-left:0
}

.hidden {
  display:none!important
}

.sidebar,.mobile-overlay {
  display:none
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 8px 22px
}

.brand-logo {
  display:none
}

.brand-logo img {
  display:block;
  width:140px;
  height:auto;
  aspect-ratio:1024/600;
  object-fit:contain;
  transform:translateX(-4.1%)
}

.mobile-account-panel {
  display:none
}

.mobile-auth-actions {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap
}

.mobile-login-button--secondary {
  background:var(--surface);
  color:var(--primary-strong);
  border:1px solid color-mix(in srgb,var(--primary) 28%,var(--line));
  box-shadow:none
}

.brand-mark,.brand-name,.brand-subtitle,.sidebar-status {
  display:none
}

.sidebar-close {
  display:none;
  margin-left:auto;
  width:36px;
  height:36px;
  border:0;
  border-radius:var(--radius);
  background:var(--neutral-soft);
  color:var(--text);
  font-size:22px;
  line-height:1;
  place-items:center;
  padding:0
}

.nav-section {
  display:grid;
  gap:6px;
  padding:8px 0
}

.nav-label {
  margin:12px 10px 6px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em
}

.nav-link {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:10px 12px;
  border-radius:var(--radius);
  color:var(--text);
  font-weight:500;
  transition:background .16s,color .16s,transform .16s
}

.nav-link:hover,.nav-link.active {
  background:var(--surface-soft);
  color:var(--primary-strong)
}

.nav-link:hover {
  transform:translateX(2px)
}

.utility-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:44px;
  padding:8px 28px;
  background:#0786a8;
  color:#fff;
  font-size:14px
}

.utility-brand {
  font-weight:400
}

.utility-links {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  flex-wrap:wrap
}

.utility-links a,
.utility-select-trigger {
  color:#fff;
  font-weight:400
}

.utility-links a:hover,
.utility-select-trigger:hover {
  color:rgba(255,255,255,.82)
}

.utility-select {
  position:relative
}

.utility-select-trigger {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:28px;
  padding:0;
  border:0;
  background:transparent
}

.utility-select-trigger .fa-solid {
  font-size:13px
}

.utility-select-caret {
  font-size:10px!important;
  transition:transform .16s
}

.utility-select.open .utility-select-caret {
  transform:rotate(180deg)
}

.utility-select-menu {
  position:absolute;
  right:0;
  top:calc(100% + 9px);
  z-index:50;
  min-width:150px;
  display:grid;
  gap:4px;
  padding:8px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
  transition:opacity .16s,transform .16s
}

.utility-select.open .utility-select-menu,
.utility-select:hover .utility-select-menu {
  opacity:1;
  pointer-events:auto;
  transform:translateY(0)
}

.utility-select-menu button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:34px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--text);
  padding:7px 10px;
  text-align:left;
  font-weight:400
}

.utility-select-menu button:hover,
.utility-select-menu button.active {
  background:var(--surface-soft);
  color:var(--primary-strong)
}

.utility-select-menu button.active:after {
  content:"✓";
  font-size:12px
}

.store-header {
  position:sticky;
  top:0;
  z-index:80;
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(16px)
}

.store-masthead {
  display:grid;
  grid-template-columns:minmax(0,auto) minmax(280px,1fr) auto;
  align-items:center;
  gap:18px;
  min-height:112px;
  padding:22px 28px
}

.store-logo-wrap {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0
}

.store-logo {
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0
}

.store-logo-image {
  display:block;
  width:220px;
  max-width:100%;
  height:auto;
  aspect-ratio:1024/600;
  object-fit:contain;
  transform:translateX(-4.1%)
}

.store-logo-mark {
  display:none
}

.store-logo strong {
  display:block;
  color:var(--text);
  font-size:22px;
  line-height:1.05
}

.store-logo small {
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:800
}

.search-box {
  display:flex;
  align-items:center;
  min-width:0;
  border-radius:10px;
  background:var(--bg);
  border:1px solid transparent;
  overflow:hidden
}

.search-box:focus-within {
  border-color:var(--primary);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 14%,transparent)
}

.search-box input {
  width:100%;
  min-height:58px;
  border:0;
  outline:0;
  padding:0 18px;
  background:transparent;
  color:var(--text)
}

.search-box button {
  width:58px;
  height:58px;
  border:0;
  background:transparent;
  color:var(--text);
  font-size:28px;
  line-height:1
}

.store-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px
}

.mobile-menu-button,.icon-button,.store-action,.login-inline {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  min-height:52px;
  border-radius:999px;
  border:0;
  background:var(--bg);
  color:var(--text);
  font-weight:900;
  transition:background .16s,color .16s,box-shadow .16s,transform .16s
}

.icon-button:hover,.store-action:hover,.login-avatar:hover {
  background:var(--surface-soft);
  color:var(--primary-strong);
  box-shadow:0 10px 24px rgba(20,29,53,.08);
  transform:translateY(-1px)
}

.mobile-menu-button {
  display:none
}

.store-action {
  position:relative;
  font-size:20px
}

.store-action .fa-solid {
  width:auto;
  min-width:0;
  font-size:20px
}

.store-action-cart .fa-solid {
  font-size:21px
}

.store-action-saved .fa-solid {
  font-size:20px
}

.store-action-orders .fa-solid {
  font-size:19px
}

.store-action.active {
  background:var(--surface-soft);
  color:var(--primary-strong);
  box-shadow:0 10px 24px rgba(20,29,53,.08);
}

.store-action-count {
  position:absolute;
  right:-2px;
  top:-6px;
  min-width:23px;
  height:23px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#0786a8;
  color:#fff;
  font-size:12px
}

.theme-icon-img {
  display:block;
  width:23px;
  height:23px;
  object-fit:contain
}

.login-inline {
  gap:10px;
  padding:0 4px 0 0;
  background:transparent;
  border-radius:var(--radius);
  min-width:auto
}

.login-avatar {
  width:52px;
  height:52px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--bg);
  color:var(--text);
  transition:background .16s,color .16s,box-shadow .16s,transform .16s
}

.login-avatar .fa-solid {
  width:auto;
  min-width:0;
  font-size:20px
}

.login-menu {
  position:relative
}

.login-dropdown {
  position:absolute;
  right:0;
  top:calc(100% + 12px);
  z-index:45;
  width:180px;
  display:grid;
  gap:4px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
  transition:opacity .16s,transform .16s
}

.login-menu.open .login-dropdown,
.login-menu:hover .login-dropdown {
  opacity:1;
  pointer-events:auto;
  transform:translateY(0)
}

.login-dropdown a {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:7px;
  color:var(--text);
  font-weight:800
}

.login-dropdown a:hover {
  background:var(--surface-soft);
  color:var(--primary-strong)
}

.login-dropdown .fa-solid {
  width:18px;
  min-width:18px
}

.store-nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  min-height:88px;
  max-height:120px;
  margin:0 28px;
  overflow:visible;
  border-top:1px solid var(--line);
  transition:min-height .18s ease,max-height .18s ease,opacity .16s ease,transform .18s ease,border-color .18s ease
}

.store-menu {
  display:flex;
  align-items:center;
  gap:34px;
  flex-wrap:wrap
}

.store-menu a,.store-menu-trigger {
  color:var(--text);
  font-weight:500
}

.store-menu a:hover,.store-menu a.active,.store-menu-trigger:hover,.store-menu-trigger.active,.has-dropdown.open .store-menu-trigger {
  color:var(--primary-strong)
}

.store-menu-item {
  position:relative
}

@media (min-width:861px) {
  .store-menu > .store-menu-item:last-of-type {
    display:none
  }
}

.store-menu-trigger {
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:0;
  background:transparent;
  padding:0
}

.store-menu-trigger .fa-solid {
  width:12px;
  min-width:12px;
  font-size:12px
}

.store-dropdown {
  position:absolute;
  left:0;
  top:calc(100% + 14px);
  z-index:120;
  width:260px;
  display:grid;
  gap:4px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
  transition:opacity .16s,transform .16s
}

.store-dropdown--history {
  width:240px
}

.store-dropdown--history::before {
  content:"";
  position:absolute;
  left:18px;
  top:-8px;
  width:14px;
  height:14px;
  border-left:1px solid var(--line);
  border-top:1px solid var(--line);
  background:var(--surface);
  transform:rotate(45deg)
}

.store-dropdown-header {
  font-size:11px;
  font-weight:600;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.5px;
  padding:4px 10px !important;
  display:flex;
  align-items:center;
  gap:0;
}

.store-dropdown-header:hover {
  background:var(--surface-soft);
  color:var(--primary-strong);
}

.store-dropdown-header img {
  width:44px;
  height:44px;
}

.store-menu-item:hover .store-dropdown,.store-menu-item.open .store-dropdown {
  opacity:1;
  pointer-events:auto;
  transform:translateY(0)
}

.store-dropdown a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px;
  border-radius:7px;
  font-weight:500
}

.menu-item-icon {
  width:24px;
  height:24px;
  min-width:24px;
  object-fit:contain;
}

.nav-submenu a:has(.menu-item-icon),
.store-dropdown a:has(.menu-item-icon) {
  justify-content:flex-start;
}

.store-dropdown a.store-dropdown-header {
  justify-content:flex-start;
  gap:6px;
}

.store-dropdown a:hover {
  background:var(--surface-soft)
}

.store-dropdown strong {
  color:var(--primary-strong);
  font-size:13px;
  white-space:nowrap
}

.store-contact {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:30px
}

.contact-item {
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:12px
}

.contact-icon {
  width:42px;
  height:42px;
  border-radius:var(--radius);
  display:grid;
  place-items:center;
  color:#0786a8;
  font-size:26px;
  line-height:1
}

.contact-label {
  display:block;
  color:var(--muted);
  font-size:14px
}

.contact-value {
  display:block;
  min-width:86px;
  min-height:18px;
  color:var(--text);
  font-weight:850
}

.contact-value:empty:after {
  content:"";
  display:block;
  width:86px;
  height:2px;
  margin-top:8px;
  border-radius:999px;
  background:var(--line)
}

.topbar {
  display:none
}

.page {
  width:min(100%,var(--content));
  min-height:320px;
  margin:0 auto;
  padding:28px
}

.page.narrow {
  width:min(100%,760px)
}

.eyebrow {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  color:var(--primary-strong);
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em
}

.page-title {
  margin:0;
  font-size:clamp(34px,5vw,58px);
  line-height:1.05
}

.page-intro {
  margin:18px 0 0;
  color:var(--muted);
  font-size:18px;
  max-width:700px
}

.section {
  padding:20px 0 34px
}

.section-header,.panel-header,.product-toolbar {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px
}

.section-title {
  margin:0;
  font-size:26px;
  line-height:1.2
}

.section-note {
  margin:6px 0 0;
  color:var(--muted)
}

.grid {
  display:grid;
  gap:18px
}

.grid.two {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.grid.three,.price-grid {
  grid-template-columns:repeat(3,minmax(0,1fr))
}

.grid.four,.stats-grid {
  grid-template-columns:repeat(4,minmax(0,1fr))
}

.card,.price-card,.auth-card,.panel,.product-card,.stat-card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow)
}

.card,.panel,.product-card,.stat-card {
  padding:20px
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:10px 16px;
  border:1px solid transparent;
  border-radius:var(--radius);
  background:var(--primary);
  color:#fff;
  font-weight:800;
  text-align:center;
  transition:transform .16s,box-shadow .16s,background .16s,border .16s
}

.button:hover {
  transform:translateY(-1px);
  box-shadow:0 14px 24px rgba(7,134,168,.18);
  background:var(--primary-strong)
}

.button.secondary {
  background:var(--surface);
  color:var(--text);
  border-color:var(--line)
}

.button.secondary:hover {
  box-shadow:var(--shadow);
  background:var(--surface-soft)
}

.button.full {
  width:100%
}

.section-actions,.form-actions,.hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:26px
}

.price-grid {
  display:grid;
  gap:18px;
  margin-top:24px
}

.price-card {
  position:relative;
  padding:24px;
  display:flex;
  flex-direction:column;
  min-height:100%
}

.price-card.featured {
  border-color:color-mix(in srgb,var(--primary) 55%,var(--line))
}

.price-tag {
  display:inline-flex;
  align-self:flex-start;
  margin-bottom:16px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary-strong);
  font-size:12px;
  font-weight:900
}

.price-card h2,.panel h2 {
  margin-top:0
}

.price {
  margin:12px 0;
  font-size:34px;
  font-weight:900;
  color:var(--text)
}

.price-desc,.product-card p,.stat-card p,.card p {
  color:var(--muted)
}

.feature-list {
  display:grid;
  gap:10px;
  margin:0 0 24px;
  padding:0;
  list-style:none
}

.feature-list li {
  display:flex;
  gap:10px;
  color:var(--muted)
}

.feature-list li:before {
  content:"";
  flex:0 0 auto;
  width:9px;
  height:9px;
  margin-top:8px;
  border-radius:999px;
  background:var(--primary)
}

.price-card .button {
  margin-top:auto
}

.product-group {
  margin-top:22px
}

.product-group-title {
  margin:0 0 14px;
  font-size:22px
}

.product-card {
  display:grid;
  gap:12px
}

.product-card h3 {
  margin:0
}

.product-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid var(--line);
  padding-top:14px
}

.product-price {
  color:var(--text);
  font-size:22px;
  font-weight:900
}

.stock {
  color:var(--muted);
  font-size:13px
}

.auth-wrap {
  min-height:calc(100vh - 320px);
  display:grid;
  align-items:center
}

.auth-card {
  width:min(100%,460px);
  margin:0 auto;
  padding:26px
}

.auth-card h2,.auth-card h1 {
  margin:0;
  font-size:30px;
  line-height:1.15
}

.auth-card>p {
  color:var(--muted);
  margin:10px 0 22px
}

.form-grid {
  display:grid;
  gap:16px
}

.field {
  display:grid;
  gap:7px
}

.field label {
  font-size:14px;
  font-weight:800
}

.input,.field input {
  width:100%;
  min-height:44px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--text);
  padding:10px 12px;
  outline:none
}

.field input:focus,.input:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 18%,transparent)
}

.input-with-action {
  position:relative
}

.input-with-action input {
  padding-right:88px
}

.toggle-password {
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  min-height:32px;
  border:0;
  border-radius:6px;
  background:var(--neutral-soft);
  color:var(--text);
  padding:6px 10px;
  font-size:13px;
  font-weight:800
}

.form-links {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  color:var(--muted);
  font-size:14px
}

.text-link {
  color:var(--primary-strong);
  font-weight:800
}

.otp-inputs {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin:18px 0
}

.otp-inputs input {
  width:100%;
  height:54px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--text);
  text-align:center;
  font-size:22px;
  font-weight:900
}

.success-box {
  display:none;
  padding:18px;
  border:1px solid color-mix(in srgb,var(--success) 35%,var(--line));
  border-radius:var(--radius);
  background:var(--success-soft)
}

.success-box.show {
  display:block
}

.stats-grid {
  display:grid;
  gap:16px;
  margin:22px 0
}

.stat-card {
  display:grid;
  gap:8px
}

.stat-card h3 {
  margin:0;
  color:var(--muted);
  font-size:14px
}

.stat-value {
  font-size:32px;
  font-weight:900
}

.panel {
  margin-top:18px
}

.panel-header {
  align-items:center
}

.panel-header h2 {
  margin:0;
  font-size:20px
}

.table-wrap {
  width:100%;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface)
}

.table-spaced {
  margin-top:22px
}

table {
  width:100%;
  border-collapse:collapse;
  min-width:760px
}

th,td {
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:middle
}

th {
  color:var(--muted);
  font-size:13px;
  font-weight:900;
  background:var(--surface-soft)
}

tr:last-child td {
  border-bottom:0
}

.small-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--surface);
  color:var(--text);
  padding:6px 10px;
  font-size:13px;
  font-weight:800
}

.small-button.primary {
  border-color:transparent;
  background:var(--primary);
  color:#fff
}

.badge {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap
}

.badge.paid,.badge.active {
  background:var(--success-soft);
  color:var(--success)
}

.badge.pending {
  background:var(--warning-soft);
  color:var(--warning)
}

.badge.failed,.badge.expired {
  background:var(--danger-soft);
  color:var(--danger)
}

.badge.neutral {
  background:var(--neutral-soft);
  color:var(--muted)
}

.filter-bar {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:20px 0
}

.filter-button {
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:var(--text);
  min-height:38px;
  padding:8px 14px;
  font-weight:800
}

.filter-button.active {
  border-color:transparent;
  background:var(--primary);
  color:#fff
}

.checkout-grid,.order-grid,.account-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.82fr);
  gap:18px;
  align-items:start
}

.detail-list {
  display:grid;
  gap:12px;
  margin:0
}

.detail-row {
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
  border-bottom:1px solid var(--line)
}

.detail-row:last-child {
  border-bottom:0
}

.detail-row dt {
  color:var(--muted);
  font-weight:800
}

.detail-row dd {
  margin:0;
  text-align:right;
  font-weight:800
}

.transfer-box {
  display:grid;
  gap:12px;
  margin-top:16px;
  padding:16px;
  border:1px dashed color-mix(in srgb,var(--primary) 45%,var(--line));
  border-radius:var(--radius);
  background:var(--surface-soft)
}

.copy-line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}

.copy-value,.key-value,.license-code {
  font-family:"Courier New",monospace;
  font-weight:900;
  overflow-wrap:anywhere
}

.qr-demo {
  width:min(100%,250px);
  aspect-ratio:1;
  margin:0 auto;
  border:10px solid var(--surface);
  border-radius:var(--radius);
  background:linear-gradient(90deg,var(--text) 10px,transparent 10px) 0 0/38px 38px,linear-gradient(var(--text) 10px,transparent 10px) 0 0/38px 38px,linear-gradient(90deg,transparent 18px,var(--text) 18px 26px,transparent 26px) 7px 9px/46px 46px,linear-gradient(transparent 18px,var(--text) 18px 26px,transparent 26px) 5px 11px/46px 46px,var(--surface);
  box-shadow:inset 0 0 0 1px var(--line),var(--shadow)
}

.key-box {
  display:grid;
  gap:10px;
  margin-top:14px;
  padding:14px;
  border-radius:var(--radius);
  background:var(--surface-soft)
}

.status-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px
}

.account-summary {
  display:grid;
  gap:12px
}

@media (max-width:1120px) {
  .store-masthead {
    grid-template-columns:minmax(0,auto) minmax(220px,1fr) auto
  }

  .store-logo-image {
    width:220px
  }

  .grid.four,.stats-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .price-grid,.grid.three {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media (max-width:860px) {
  .store-masthead {
    grid-template-columns:1fr;
    min-height:auto;
    padding:18px 16px
  }

  .store-actions {
    justify-content:flex-start;
    flex-wrap:wrap
  }

  .store-nav {
    align-items:flex-start;
    flex-direction:column;
    margin:0 16px;
    padding:14px 0
  }

  .store-menu {
    gap:16px 22px
  }

  .store-contact {
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:14px 24px
  }

  .page {
    padding:20px 16px 30px
  }

  .checkout-grid,.order-grid,.account-grid,.grid.two {
    grid-template-columns:1fr
  }
}

@media (max-width:760px) {
  .utility-bar {
    position:relative;
    z-index:32;
    min-height:42px;
    padding:8px 12px;
    display:block
  }

  .utility-brand,.utility-links a:nth-child(n+3) {
    display:none
  }

  .utility-links {
    position:absolute;
    left:50%;
    top:50%;
    width:min(100%,300px);
    display:grid;
    grid-template-columns:repeat(2,1fr);
    justify-items:center;
    gap:0;
    transform:translate(-50%,-50%)
  }

  .utility-select {
    width:100%
  }

  .utility-select-trigger {
    width:100%;
    justify-content:center
  }

  .utility-select-menu {
    left:50%;
    right:auto;
    transform:translate(-50%,8px)
  }

  .utility-select.open .utility-select-menu,
  .utility-select:hover .utility-select-menu {
    transform:translate(-50%,0)
  }

  .store-header {
    position:relative;
    top:auto;
    z-index:31;
    background:var(--surface);
    border-bottom:1px solid var(--line)
  }

  .store-masthead {
    display:grid;
    grid-template-columns:52px minmax(0,1fr) 52px;
    align-items:center;
    gap:8px;
    min-height:84px;
    padding:14px 10px
  }

  .store-logo-wrap {
    display:contents
  }

  .mobile-menu-button {
    display:inline-grid!important;
    grid-column:1;
    width:52px;
    height:52px;
    border:0;
    border-radius:999px;
    background:var(--bg);
    color:var(--text);
    font-size:24px
  }

  .store-logo {
    grid-column:2;
    justify-self:center;
    width:160px;
    max-width:calc(100vw - 124px);
    overflow:hidden
  }

  .store-logo-image {
    width:140px;
    max-width:100%
  }

  .store-logo strong {
    font-size:18px
  }

  .store-logo small {
    font-size:11px
  }

  .search-box {
    grid-column:3;
    justify-self:end;
    width:52px;
    min-width:52px;
    height:52px;
    border-radius:999px;
    background:var(--bg);
    border:0
  }

  .search-box input {
    display:none
  }

  .search-box button {
    width:52px;
    height:52px;
    font-size:28px
  }

  .store-actions,.store-nav {
    display:none!important
  }

  .sidebar {
    position:fixed;
    inset:0 auto 0 0;
    z-index:60;
    width:min(86vw,320px);
    height:100vh;
    height:100dvh;
    display:flex!important;
    flex-direction:column;
    padding:18px;
    background:var(--surface);
    color:var(--text);
    box-shadow:18px 0 42px rgba(15,23,42,.28);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    transform:translateX(-105%);
    transition:transform .22s
  }

  .sidebar .brand {
    position:relative;
    justify-content:center;
    padding:0 0 16px
  }

  .sidebar .brand-logo {
    display:inline-flex;
    align-items:center;
    width:150px;
    overflow:hidden
  }

  .mobile-account-panel {
    display:grid;
    justify-items:center;
    gap:12px;
    margin:0 -18px 12px;
    padding:8px 18px 14px;
    border-bottom:1px solid var(--line);
    background:color-mix(in srgb,var(--neutral-soft) 62%,transparent)
  }

  .mobile-login-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-width:138px;
    min-height:44px;
    border-radius:5px;
    background:#0786a8;
    color:#fff;
    font-size:15px;
    font-weight:900;
    box-shadow:0 10px 18px rgba(7,134,168,.18)
  }

  .mobile-login-button:hover {
    background:var(--primary-strong)
  }

  .mobile-balance {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    color:var(--muted);
    font-size:16px;
    line-height:1
  }

  .mobile-balance strong {
    color:#ef4444;
    font-size:19px;
    line-height:1;
    text-shadow:0 0 10px rgba(239,68,68,.46)
  }

  .sidebar-close {
    position:absolute;
    right:0;
    top:0;
    display:inline-grid
  }

  .mobile-overlay {
    position:fixed;
    inset:0;
    z-index:55;
    display:block!important;
    background:rgba(15,23,42,.56);
    opacity:0;
    pointer-events:none;
    transition:opacity .18s
  }

  body.sidebar-open {
    overflow:hidden
  }

  body.sidebar-open .sidebar {
    transform:translateX(0)
  }

  body.sidebar-open .mobile-overlay {
    opacity:1;
    pointer-events:auto
  }

  .nav-dropdown {
    display:grid;
    gap:4px
  }

  .sidebar .nav-section {
    padding-bottom:28px
  }

  .nav-dropdown-trigger {
    width:100%;
    border:0;
    text-align:left;
    background:transparent
  }

  .nav-caret {
    margin-left:auto;
    width:14px;
    min-width:14px;
    font-size:12px;
    transition:transform .16s
  }

  .nav-dropdown.open .nav-caret {
    transform:rotate(180deg)
  }

  .nav-submenu {
    display:none;
    gap:4px;
    padding:4px 0 6px 34px
  }

  .nav-dropdown.open .nav-submenu {
    display:grid
  }

  .nav-submenu-header {
    font-size:11px;
    font-weight:600;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.5px;
    padding:8px 10px 4px !important;
    display:flex;
    align-items:center;
    gap:0;
  }

.nav-submenu-header:hover {
  background:var(--surface-soft);
  color:var(--primary-strong)
}

.nav-submenu-header img {
  width:44px;
  height:44px;
}

  .nav-submenu a {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:9px 10px;
    border-radius:7px;
    color:var(--muted);
    font-weight:500
  }

  .nav-submenu a.nav-submenu-header {
    justify-content:flex-start;
    gap:6px;
  }

  .nav-submenu a:hover {
    background:var(--surface-soft);
    color:var(--primary-strong)
  }

  .nav-submenu span {
    color:var(--primary-strong);
    font-size:13px;
    white-space:nowrap
  }
}

@media (max-width:640px) {
  body {
    font-size:15px
  }

  .page-title {
    font-size:34px
  }

  .page-intro {
    font-size:16px
  }

  .section-actions,.form-actions,.product-toolbar,.panel-header,.copy-line,.detail-row,.form-links {
    flex-direction:column;
    align-items:stretch
  }

  .grid.three,.grid.four,.price-grid,.stats-grid {
    grid-template-columns:1fr
  }

  .auth-card {
    padding:20px
  }

  .detail-row dd {
    text-align:left
  }

  .otp-inputs {
    gap:7px
  }

  .otp-inputs input {
    height:48px;
    font-size:19px
  }
}

/* Products Grid - AppStack Shop */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-card-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.product-card-header h3 {
  margin: 8px 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.product-card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.product-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.product-card-body {
  padding: 18px 20px;
  flex-grow: 1;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.product-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.product-card-body .product-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}

.product-price-free {
  color: var(--success);
}

.product-card-footer {
  padding: 16px 20px 20px;
}

.product-card-free {
  border-color: color-mix(in srgb, var(--success) 35%, var(--line));
}

.product-card-free .product-badge {
  background: var(--success-soft);
  color: var(--success);
}

/* Single Product Layout */
.price-grid.single-product {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

/* Single Product Home */
.home-product-row.single-product-home {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.home-product-row.single-product-home .home-product-copy h3 {
  font-size: 22px;
  color: var(--primary-strong);
}

.home-product-row.single-product-home .home-product-action strong {
  color: var(--primary-strong);
  font-size: 22px;
}

.price-grid.single-product .price-card {
  text-align: center;
  padding: 32px;
}

.price-grid.single-product .product-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.price-grid.single-product .product-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.price-grid.single-product h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.price-grid.single-product .price {
  font-size: 42px;
  margin: 16px 0;
}

.price-grid.single-product .price-desc {
  font-size: 16px;
  margin-bottom: 20px;
}

.price-grid.single-product .feature-list {
  text-align: left;
  max-width: 320px;
  margin: 0 auto 24px;
}

@media (max-width: 1120px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .price-grid.single-product .price-card {
    padding: 24px 18px;
  }

  .price-grid.single-product .product-header {
    flex-direction: column;
    gap: 12px;
  }

  .price-grid.single-product .product-icon {
    width: 64px;
    height: 64px;
  }

  .price-grid.single-product h2 {
    font-size: 24px;
  }

  .price-grid.single-product .price {
    font-size: 36px;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card-body .product-price {
    font-size: 24px;
  }
}

/* Category Tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 20px;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all .16s;
}

.category-tab:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.category-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.category-tab .fa-solid {
  font-size: 14px;
}

@media (max-width: 640px) {
  .category-tabs {
    margin: 18px 0 16px;
  }

  .category-tab {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Unified app pages */
.container {
  width:min(100%,var(--content));
  margin:0 auto;
  padding:0 28px;
}

.container.narrow {
  width:min(100%,760px);
}

.page-header,
.page-hero {
  width:100%;
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 92%,var(--primary-soft)),var(--bg));
  border-bottom:1px solid var(--line);
}

.page-header .container,
.page-hero .container {
  padding-top:34px;
  padding-bottom:30px;
}

.page-hero.compact .container {
  padding-top:28px;
  padding-bottom:24px;
}

.page-header h1,
.page-hero h1 {
  margin:0;
  font-size:clamp(30px,4vw,46px);
  line-height:1.08;
}

.page-header p,
.page-hero p,
.page-subtitle {
  max-width:760px;
  margin:12px 0 0;
  color:var(--muted);
  font-size:17px;
}

.auth-page {
  min-height:calc(100vh - 320px);
  display:grid;
  align-items:center;
  padding:34px 0;
}

.auth-card {
  display:grid;
  gap:18px;
}

.auth-title {
  margin:0;
  font-size:30px;
  line-height:1.15;
}

.auth-subtitle {
  margin:-8px 0 2px;
  color:var(--muted);
}

.form-card,
.status-card,
.payment-card,
.qr-card,
.table-card,
.content-card,
.account-card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.form-card,
.status-card,
.payment-card,
.qr-card,
.content-card,
.account-card {
  padding:24px;
}

.form-card {
  display:grid;
  gap:16px;
}

.table-card {
  overflow:hidden;
}

.card-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
}

.card-head h2,
.status-card h2,
.form-card h2 {
  margin:0;
  font-size:22px;
  line-height:1.2;
}

.form-group,
.field {
  display:grid;
  gap:7px;
}

.form-label,
.form-card label,
.field label {
  color:var(--text);
  font-size:14px;
  font-weight:850;
}

.form-control,
.form-card input,
.form-card select,
.form-card textarea,
.password-wrap input,
.password-field input {
  width:100%;
  min-height:46px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--text);
  padding:10px 12px;
  outline:0;
}

.form-card select {
  appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;
  background-size:5px 5px,5px 5px;
  background-repeat:no-repeat;
  padding-right:36px;
}

.form-control:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.password-wrap input:focus,
.password-field input:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--primary) 18%,transparent);
}

.form-card input[readonly] {
  background:var(--neutral-soft);
  color:var(--muted);
}

.password-wrap,
.password-field {
  position:relative;
}

.password-wrap input,
.password-field input {
  padding-right:82px;
}

.password-toggle {
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  min-height:32px;
  border:0;
  border-radius:6px;
  background:var(--neutral-soft);
  color:var(--text);
  padding:6px 10px;
  font-size:13px;
  font-weight:850;
}

.btn,
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 16px;
  border:1px solid transparent;
  border-radius:var(--radius);
  background:var(--primary);
  color:#fff;
  font-weight:850;
  text-align:center;
  transition:transform .16s,box-shadow .16s,background .16s,border .16s,color .16s;
}

.btn:hover,
.button:hover {
  transform:translateY(-1px);
  box-shadow:0 14px 24px rgba(7,134,168,.18);
  background:var(--primary-strong);
}

.btn-primary {
  background:var(--primary);
  color:#fff;
}

.btn-secondary,
.btn-outline,
.button.secondary,
.btn-card {
  background:var(--surface);
  color:var(--text);
  border-color:var(--line);
}

.btn-secondary:hover,
.btn-outline:hover,
.button.secondary:hover,
.btn-card:hover {
  background:var(--surface-soft);
  color:var(--primary-strong);
  box-shadow:var(--shadow);
}

.btn-small {
  min-height:34px;
  padding:6px 10px;
  font-size:13px;
}

.full {
  width:100%;
}

.alert,
.notice {
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-soft);
  color:var(--text);
  font-weight:750;
}

.alert-success,
.notice-success {
  border-color:color-mix(in srgb,var(--success) 38%,var(--line));
  background:var(--success-soft);
  color:var(--success);
}

.alert-error,
.alert-danger,
.notice-danger {
  border-color:color-mix(in srgb,var(--danger) 38%,var(--line));
  background:var(--danger-soft);
  color:var(--danger);
}

.alert-warning,
.notice-warning {
  border-color:color-mix(in srgb,var(--warning) 38%,var(--line));
  background:var(--warning-soft);
  color:var(--warning);
}

.stat-card {
  min-height:132px;
}

.content-card .table-wrap,
.table-card .table-wrap {
  border:0;
  border-radius:0;
  box-shadow:none;
}

.data-table,
.table-wrap table {
  width:100%;
}

.badge-success,
.badge.paid,
.badge.active,
.badge.completed {
  background:var(--success-soft);
  color:var(--success);
}

.badge-warning,
.badge.pending {
  background:var(--warning-soft);
  color:var(--warning);
}

.badge-danger,
.badge.failed,
.badge.expired {
  background:var(--danger-soft);
  color:var(--danger);
}

.badge-muted,
.badge.neutral,
.badge.used {
  background:var(--neutral-soft);
  color:var(--muted);
}

.empty-state {
  display:grid;
  justify-items:center;
  gap:10px;
  padding:28px;
  color:var(--muted);
  text-align:center;
}

.otp-input {
  width:100%;
  min-height:58px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--text);
  text-align:center;
  font-size:26px;
  font-weight:900;
  letter-spacing:.24em;
}

.otp-grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
}

.account-layout {
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(320px,1.15fr);
  gap:18px;
  align-items:start;
}

.account-card {
  display:grid;
  gap:18px;
}

.account-summary,
.bank-list,
.detail-list {
  display:grid;
  gap:0;
  margin:0;
}

.bank-list div,
.account-summary div {
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}

.bank-list div:last-child,
.account-summary div:last-child {
  border-bottom:0;
}

.bank-list dt,
.account-summary dt {
  color:var(--muted);
  font-weight:800;
}

.bank-list dd,
.account-summary dd {
  margin:0;
  text-align:right;
  font-weight:850;
  overflow-wrap:anywhere;
}

.filter-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 18px;
}

.quick-actions {
  display:grid;
  gap:12px;
  margin-top:14px;
}

.filter-row a {
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:var(--text);
  font-weight:850;
}

.filter-row a.active,
.filter-row a:hover {
  border-color:var(--primary);
  background:var(--primary);
  color:#fff;
}

.amount-box,
.transfer-code,
.key-box {
  display:grid;
  gap:8px;
  padding:16px;
  border:1px dashed color-mix(in srgb,var(--primary) 45%,var(--line));
  border-radius:var(--radius);
  background:var(--surface-soft);
}

.amount-box strong {
  font-size:30px;
  line-height:1.1;
}

.transfer-code code,
.key-box code,
.key-cell code {
  overflow-wrap:anywhere;
  font-family:"Courier New",monospace;
  font-weight:900;
}

.qr-card {
  display:grid;
  justify-items:center;
  gap:14px;
  text-align:center;
}

.qr-card img {
  width:min(100%,260px);
  height:auto;
  border:1px solid var(--line);
  border-radius:var(--radius);
}

.text-muted,
.form-note {
  color:var(--muted);
}

.text-center {
  text-align:center;
}

.mt-20 {
  margin-top:20px;
}

.check-row {
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:var(--muted);
  font-weight:750;
}

.check-row input {
  width:auto;
  min-height:0;
  margin-top:5px;
}

.icon-btn {
  justify-self:start;
  min-height:34px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--surface);
  color:var(--text);
  padding:6px 10px;
  font-weight:850;
}

@media (max-width:860px) {
  .container {
    padding:0 16px;
  }

  .account-layout {
    grid-template-columns:1fr;
  }
}

@media (max-width:640px) {
  .page-header .container,
  .page-hero .container {
    padding-top:24px;
    padding-bottom:20px;
  }

  .form-card,
  .status-card,
  .payment-card,
  .qr-card,
  .content-card,
  .account-card {
    padding:18px;
  }

  .card-head,
  .bank-list div,
  .account-summary div {
    align-items:flex-start;
    flex-direction:column;
  }

  .bank-list dd,
  .account-summary dd {
    text-align:left;
  }

  .otp-input {
    min-height:54px;
    font-size:22px;
  }
}

/* Site footer */
.site-footer {
  margin-top:48px;
  padding:34px 0 0;
  background:var(--surface);
  border-top:1px solid var(--line);
}

.footer-inner {
  width:min(100%,var(--content));
  margin:0 auto;
  padding:0 28px 56px;
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(240px,.9fr) minmax(220px,.8fr);
  gap:72px;
}

.footer-brand {
  display:grid;
  align-content:start;
  gap:18px;
}

.footer-logo {
  display:inline-flex;
  width:190px;
  max-width:100%;
  overflow:hidden;
}

.footer-logo img {
  display:block;
  width:190px;
  height:auto;
  aspect-ratio:1024/600;
  object-fit:contain;
  transform:translateX(-4.1%);
}

.footer-brand p {
  max-width:420px;
  margin:0;
  color:var(--muted);
  line-height:1.65;
}

.footer-contact h2,
.footer-links h2 {
  margin:0 0 22px;
  color:var(--text);
  font-size:24px;
  line-height:1.2;
}

.footer-contact ul,
.footer-links ul {
  display:grid;
  gap:18px;
  margin:0;
  padding:0;
  list-style:none;
}

.footer-contact li {
  display:grid;
  grid-template-columns:30px 1fr;
  align-items:center;
  gap:14px;
  color:var(--muted);
}

.footer-contact i {
  color:var(--primary);
  font-size:28px;
  text-align:center;
}

.footer-contact a,
.footer-links a {
  color:var(--muted);
  transition:color .16s;
}

.footer-contact a:hover,
.footer-links a:hover {
  color:var(--primary-strong);
}

.footer-bottom {
  width:min(100%,var(--content));
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0 auto;
  padding:0 34px;
  border-radius:7px 7px 0 0;
  background:#0786a8;
  color:#fff;
  font-size:14px;
  font-weight:850;
}

.floating-contact {
  position:fixed;
  left:10px;
  bottom:58px;
  z-index:50;
  display:grid;
  gap:10px;
}

.floating-contact-button,
.back-to-top {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:999px;
  background:#0786a8;
  color:#fff;
  box-shadow:0 10px 24px rgba(7,134,168,.24);
}

.floating-contact-button {
  border:4px solid #e8f7ff;
  font-size:22px;
}

.zalo-button {
  background:#fff;
  color:#0786a8;
  border-color:#0786a8;
  font-size:13px;
  font-weight:900;
}

.back-to-top {
  position:fixed;
  right:20px;
  bottom:32px;
  z-index:50;
  font-size:16px;
}

.mobile-bottom-nav {
  display:none;
}

.cart-progress {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:center;
  gap:20px;
  margin:0 0 22px;
}

.cart-step {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:34px;
  color:#98a2b3;
  font-size:18px;
  border-bottom:1px solid #d9dee7;
}

.cart-step span {
  width:24px;
  height:24px;
  border-radius:999px;
  background:#9aa4b2;
  flex:0 0 auto;
}

.cart-step.active {
  color:#2d72e8;
}

.cart-step.active span {
  background:#2d72e8;
}

.cart-empty-card {
  display:grid;
  grid-template-columns:minmax(0,1fr) 390px;
  gap:28px;
  min-height:520px;
  padding:42px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
}

.cart-empty-main {
  display:grid;
  justify-items:center;
  align-content:start;
  text-align:center;
}

.cart-empty-main h1 {
  margin:0 0 10px;
  font-size:44px;
}

.cart-empty-main p {
  margin:0 0 24px;
  color:#3f4652;
  font-size:16px;
}

.cart-empty-main img {
  width:min(100%,340px);
  height:auto;
  object-fit:contain;
}

.cart-empty-side {
  display:grid;
  align-content:start;
  gap:18px;
  padding-top:18px;
}

.cart-empty-side a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--text);
  font-size:16px;
  font-weight:600;
}

.cart-empty-side i {
  font-size:28px;
  color:#4b5567;
}

@media (max-width:860px) {
  .footer-inner {
    grid-template-columns:1fr;
    gap:30px;
    padding:0 16px 36px;
  }

  .footer-bottom {
    width:calc(100% - 32px);
    padding:0 18px;
  }
}

@media (max-width:640px) {
  body {
    padding-bottom:84px;
  }

  .site-footer {
    margin-top:32px;
    padding-top:28px;
  }

  .footer-contact h2,
  .footer-links h2 {
    font-size:22px;
  }

  .floating-contact-button,
  .back-to-top {
    width:40px;
    height:40px;
  }

  .mobile-bottom-nav {
    position:fixed;
    left:8px;
    right:8px;
    bottom:8px;
    z-index:80;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    background:#f2f2f2;
    border:1px solid #d8dde6;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 24px rgba(0,0,0,.18);
  }

  .mobile-bottom-nav a {
    min-height:58px;
    display:grid;
    place-items:center;
    gap:3px;
    padding:5px 4px 6px;
    color:#666;
    font-size:11px;
    text-transform:uppercase;
    border-right:0;
  }

  .mobile-bottom-nav a:last-child {
    border-right:0;
  }

  .mobile-bottom-nav a i {
    font-size:20px;
    color:#5b5b5b;
  }

  .mobile-bottom-nav a.active {
    color:#333;
    background:#e9ecef;
  }

  .mobile-bottom-nav a.active i {
    color:#333;
  }

  .cart-progress {
    gap:10px;
  }

  .cart-step {
    font-size:13px;
    gap:6px;
  }

  .cart-step span {
    width:14px;
    height:14px;
  }

  .cart-empty-card {
    grid-template-columns:1fr;
    min-height:0;
    padding:18px 14px;
    gap:14px;
  }

  .cart-empty-main h1 {
    font-size:30px;
  }

  .cart-empty-main p {
    font-size:18px;
  }

  .cart-empty-side {
    gap:10px;
    padding-top:2px;
  }

  .cart-empty-side a {
    font-size:18px;
  }

  .cart-empty-side i {
    font-size:20px;
  }
}

/* Home notice card */
.home-notice-card {
  max-width:1298px;
  margin:0 auto;
  padding:30px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:0 10px 26px rgba(15,23,42,.18);
  color:#3f4652;
}

.home-notice-title {
  text-align:center;
  padding:8px 0 18px;
  border-bottom:1px solid var(--line);
}

.home-notice-title h1 {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:0 0 6px;
  color:#00b7ff;
  font-size:44px;
  line-height:1;
  letter-spacing:5px;
  text-shadow:
    0 0 2px #eaffff,
    0 0 8px #8ff3ff,
    0 0 16px #00d5ff,
    0 0 30px #008cff,
    0 0 52px rgba(0,74,255,.9);
  animation:home-neon-pulse 2.4s ease-in-out infinite;
}

.home-neon-gif {
  width:42px;
  height:42px;
  object-fit:contain;
  flex:0 0 auto;
}

@keyframes home-neon-pulse {
  0%,100% {
    filter:brightness(1);
    text-shadow:
      0 0 2px #eaffff,
      0 0 8px #8ff3ff,
      0 0 16px #00d5ff,
      0 0 30px #008cff,
      0 0 52px rgba(0,74,255,.9);
  }

  50% {
    filter:brightness(1.18);
    text-shadow:
      0 0 4px #f5ffff,
      0 0 12px #aef7ff,
      0 0 22px #00e1ff,
      0 0 38px #0074ff,
      0 0 64px rgba(0,57,255,.98);
  }
}

.home-notice-title p {
  margin:0;
  color:#d62c22;
  font-size:19px;
  font-weight:900;
}

.home-notice-section {
  padding:18px 0 34px;
  border-bottom:1px solid var(--line);
  font-weight:800;
}

.home-notice-section h2 {
  display:flex;
  align-items:center;
  gap:4px;
  margin:0 0 8px;
  color:#3f4652;
  font-size:16px;
  font-style:italic;
  text-decoration:underline;
}

.inline-notice-icon {
  width:18px;
  height:18px;
  object-fit:contain;
}

.home-notice-section ul {
  display:grid;
  gap:8px;
  margin:0 0 10px;
  padding-left:14px;
}

.home-notice-section li {
  line-height:1.45;
}

.home-notice-section a,
.home-support-row a,
.home-notice-footer a {
  color:#087bff;
  font-weight:900;
}

.home-highlight {
  display:flex;
  align-items:center;
  gap:5px;
  margin:8px 0 4px;
  color:#087bff;
  font-size:16px;
}

.home-binance {
  display:flex;
  align-items:center;
  gap:5px;
  margin:4px 0;
  color:#ff9800;
}

.home-binance strong {
  color:#087bff;
}

.home-trc {
  margin:4px 0;
  color:#ff9800;
}

.home-warning {
  margin:8px 0 0;
  color:#d62c22;
}

.home-support-row {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 6px;
  padding:20px 0;
  border-bottom:1px solid var(--line);
  color:#111827;
  font-size:16px;
  font-weight:900;
}

.home-support-row span {
  color:#d62c22;
}

.home-notice-footer {
  padding-top:18px;
  font-weight:850;
}

.home-notice-footer p {
  margin:0 0 8px;
  line-height:1.55;
}

.home-notice-footer strong {
  color:#ef4444;
  font-size:18px;
}

.home-page {
  display:grid;
  gap:28px;
}

.home-page .home-notice-card {
  width:100%;
  max-width:none;
  justify-self:stretch;
  padding:18px 30px;
}

.home-page .home-notice-section {
  padding:18px 0 16px;
}

.home-page .home-support-row {
  padding:14px 0;
}

.home-page .home-notice-footer {
  padding-top:12px;
}

.home-shop-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,300px);
  gap:20px;
  align-items:start;
}

.home-shop-main {
  min-width:0;
}

.home-category-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}

.home-category-pill {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:58px;
  padding:10px 14px;
  border:0;
  border-radius:6px;
  background:#2f2f2f;
  color:#fff;
  font-weight:900;
  text-align:center;
  box-shadow:0 8px 18px rgba(15,23,42,.08);
  transition:background .16s,color .16s,transform .16s;
}

.home-category-pill:hover {
  transform:translateY(-1px);
  background:#252525;
}

.home-category-pill.active {
  background:#e5e7eb;
  color:#14749b;
}

.home-category-pill i {
  width:22px;
  min-width:22px;
  font-size:18px;
}

.home-product-band {
  display:flex;
  align-items:center;
  gap:14px;
  min-height:64px;
  margin:8px 0 18px;
  padding:10px 18px;
  border-radius:8px;
  background:linear-gradient(90deg,#0b86a6,#176477);
  color:#fff;
  box-shadow:0 10px 22px rgba(7,134,168,.24);
}

.home-product-band img {
  width:54px;
  height:42px;
  object-fit:contain;
  padding:5px;
  border-radius:4px;
  background:#fff;
}

.home-product-band h2 {
  margin:0;
  font-size:24px;
  line-height:1.15;
}

.home-product-list {
  display:grid;
  gap:12px;
}

.home-category-empty {
  margin-bottom:14px;
  border:1px dashed var(--line);
  border-radius:8px;
  background:var(--surface);
}

.home-product-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,.28fr);
  gap:18px;
  align-items:center;
  padding:18px 20px;
  border:1px dashed #c8ced8;
  border-radius:8px;
  background:var(--surface);
}

.home-product-copy {
  min-width:0;
}

.home-product-kicker {
  display:inline-flex;
  margin-bottom:6px;
  color:var(--muted);
  font-size:13px;
  font-weight:850;
}

.home-product-row h3 {
  margin:0 0 6px;
  color:var(--text);
  font-size:19px;
  line-height:1.25;
}

.home-product-row p {
  margin:0;
  color:var(--muted);
  line-height:1.45;
}

.home-product-desc-prefix {
  color:var(--primary-strong);
  font-weight:900;
}

.home-product-stock {
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:28px;
  margin-top:12px;
  padding:4px 10px;
  border-radius:6px;
  background:#6d28d9;
  color:#ffffff;
  font-size:14px;
  font-weight:400;
}

.home-product-action {
  display:grid;
  gap:10px;
  justify-items:stretch;
}

.home-product-action .button {
  width:100%;
}

.home-product-action strong {
  display:grid;
  place-items:center;
  min-height:50px;
  padding:10px 14px;
  border:1px dotted #ff3366;
  border-radius:8px;
  color:#ff174f;
  font-size:20px;
  font-weight:900;
}

.home-page .home-category-grid {
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  gap:10px;
}

.home-page .home-category-pill {
  flex:0 1 260px;
}

.home-page .home-category-pill {
  min-height:46px;
  padding:8px 12px;
  font-size:15px;
}

.home-page .home-product-band {
  min-height:50px;
  margin:6px 0 12px;
  padding:8px 14px;
}

.home-page .home-product-band img {
  width:42px;
  height:32px;
  padding:4px;
}

.home-page .home-product-band h2 {
  font-size:20px;
}

.home-page .home-product-list {
  gap:10px;
}

.home-page .home-product-row {
  grid-template-columns:minmax(0,1fr) 170px;
  gap:14px;
  padding:14px 16px;
}

.home-page .home-product-kicker {
  margin-bottom:4px;
  font-size:12px;
}

.home-page .home-product-row h3 {
  margin-bottom:4px;
  font-size:17px;
}

.home-page .home-product-row p {
  font-size:14px;
  line-height:1.38;
}

.home-page .home-product-stock {
  min-height:24px;
  margin-top:8px;
  padding:3px 8px;
  font-size:13px;
}

.home-page .home-product-action {
  gap:8px;
}

.home-page .home-product-action strong {
  min-height:42px;
  padding:7px 10px;
  font-size:17px;
}

.home-page .home-product-action .button {
  min-height:38px;
  padding:8px 10px;
  font-size:14px;
}

.product-modal[hidden] {
  display:none;
}

.product-modal {
  position:fixed;
  inset:0;
  z-index:130;
  display:grid;
  place-items:center;
  padding:24px;
}

body.product-modal-open {
  overflow:hidden;
}

.product-modal-backdrop {
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
}

.product-modal-dialog {
  position:relative;
  z-index:1;
  width:min(100%,1120px);
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);
  gap:28px;
  padding:36px;
  border-radius:8px;
  background:var(--surface);
  box-shadow:0 24px 70px rgba(15,23,42,.28);
}

.product-modal-close {
  position:absolute;
  top:-18px;
  right:-18px;
  width:44px;
  height:44px;
  border:0;
  border-radius:999px;
  background:var(--surface);
  color:var(--text);
  font-size:28px;
  line-height:1;
  box-shadow:var(--shadow);
}

.product-modal-main {
  display:grid;
  align-content:start;
  gap:16px;
}

.product-modal-main h2 {
  margin:0;
  font-size:32px;
  line-height:1.18;
}

.product-modal-main p {
  margin:0;
  color:var(--muted);
  font-size:18px;
}

.product-modal-price {
  color:var(--primary-strong);
  font-size:32px;
  line-height:1;
}

.product-favorite {
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:10px 16px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--text);
  font-weight:800;
}

.product-modal-summary {
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
}

.product-modal-summary h3 {
  margin:0;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  text-align:center;
  text-transform:uppercase;
  font-size:17px;
}

.product-modal-summary dl {
  margin:0;
}

.product-modal-summary dl div {
  display:grid;
  grid-template-columns:minmax(130px,.85fr) minmax(0,1.15fr);
  border-bottom:1px solid var(--line);
}

.product-modal-summary dt,
.product-modal-summary dd {
  margin:0;
  padding:14px 16px;
}

.product-modal-summary dt {
  color:var(--muted);
}

.product-modal-summary dd {
  border-left:1px solid var(--line);
  font-weight:850;
  text-align:right;
}

.product-modal-summary input {
  width:100%;
  min-height:44px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--bg);
  color:var(--text);
  padding:0 12px;
}

.quantity-stepper {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.quantity-stepper button,
.quantity-stepper input {
  width:48px;
  height:44px;
  min-height:44px;
  border:0;
  border-radius:7px;
  background:var(--neutral-soft);
  color:var(--text);
  text-align:center;
  font-weight:900;
}

.quantity-stepper input {
  width:86px;
  background:#2f2f2f;
  color:#fff;
}

.quantity-stepper button:disabled {
  cursor:not-allowed;
  opacity:.45;
}

.product-modal-total {
  color:#0047ff;
}

.product-modal-auth-note {
  margin:14px 16px 0;
  color:var(--danger);
  font-weight:800;
}

.product-modal-summary .button {
  width:calc(100% - 32px);
  margin:18px 16px 16px;
}

.checkout-product-summary {
  display:grid;
  gap:12px;
  margin-bottom:18px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface-soft);
}

.checkout-product-summary h2 {
  margin:0;
  font-size:24px;
}

.checkout-product-summary p {
  margin:0;
  color:var(--muted);
}

.checkout-product-summary dl {
  display:grid;
  gap:8px;
  margin:0;
}

.checkout-product-summary dl div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:7px;
  background:var(--surface);
}

.checkout-product-summary dt,
.checkout-product-summary dd {
  margin:0;
}

.checkout-product-summary dt {
  color:var(--muted);
}

.checkout-product-summary dd {
  font-weight:900;
  text-align:right;
}

.checkout-methods {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}

.checkout-method {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  font-weight:650;
}

.checkout-method input {
  width:16px;
  height:16px;
  margin:0;
  flex:0 0 auto;
}

.checkout-method.active {
  border-color:var(--primary);
  color:var(--primary-strong);
}

.checkout-method.disabled {
  opacity:.55;
}

@media (max-width: 640px) {
  .checkout-methods {
    grid-template-columns: 1fr;
  }

  .checkout-method {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }
}

.orders-note {
  width:min(100%,1150px);
  margin:0 auto 28px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.orders-note h2 {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  font-size:22px;
  text-transform:uppercase;
}

.orders-note-icon {
  width:28px;
  height:28px;
  object-fit:contain;
  flex:0 0 auto;
}

.orders-note p {
  margin:8px 0 0;
  color:var(--text);
  font-size:18px;
}

.orders-panel-title {
  width:min(100%,1620px);
  min-height:70px;
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 auto 18px;
  padding:16px 26px;
  border-radius:8px;
  background:linear-gradient(90deg,#0b86a6,#176477);
  color:#fff;
  font-size:26px;
  font-weight:900;
  text-transform:uppercase;
  box-shadow:0 10px 22px rgba(7,134,168,.24);
}

.orders-card {
  width:min(100%,1620px);
  margin:0 auto;
  padding:28px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.orders-filter-form {
  display:grid;
  grid-template-columns:repeat(5,minmax(150px,1fr)) auto auto;
  gap:14px;
  align-items:center;
  margin-bottom:26px;
}

.orders-filter-form input,
.orders-filter-form select {
  width:100%;
  min-height:54px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  color:var(--text);
  padding:0 14px;
}

.account-history-layout {
  display:grid;
  grid-template-columns:minmax(240px,382px) minmax(0,1fr);
  gap:30px;
  align-items:start;
}

.account-side-menu {
  display:grid;
  gap:12px;
}

.account-side-menu a {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:72px;
  padding:0 20px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--text);
  font-size:18px;
  font-weight:400;
  line-height:1.25;
  box-shadow:0 8px 22px rgba(17,24,39,.04);
}

.account-side-menu a.active {
  border-color:var(--primary);
  border-top-width:2px;
  background:var(--surface-soft);
}

.account-side-menu .fa-solid {
  width:18px;
  color:var(--text);
}

.balance-history-card {
  min-width:0;
  width:100%;
  padding:28px 38px 34px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.balance-history-head {
  padding-bottom:26px;
  margin-bottom:30px;
  border-bottom:1px solid var(--line);
}

.balance-history-head h1 {
  position:relative;
  margin:0;
  font-size:24px;
  line-height:1.2;
}

.balance-history-head h1::after {
  content:"";
  position:absolute;
  left:0;
  bottom:-33px;
  width:62px;
  height:2px;
  background:var(--primary);
}

.change-password-card {
  padding-bottom:36px;
}

.change-password-note {
  margin:0 0 24px;
  color:var(--muted);
  font-size:18px;
  line-height:1.5;
}

.change-password-form {
  display:grid;
  gap:24px;
}

.change-password-fields {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:30px;
}

.change-password-fields label {
  display:grid;
  gap:12px;
}

.change-password-fields label span {
  color:var(--text);
  font-size:18px;
  font-weight:600;
}

.change-password-fields input {
  width:100%;
  min-height:54px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  color:var(--text);
  padding:0 18px;
}

.change-password-fields input:focus {
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(19,136,172,.18);
}

.security-layout {
  display:grid;
  gap:24px;
  min-width:0;
}

.security-card {
  padding:28px 38px 34px;
}

.security-form {
  display:grid;
  gap:28px;
}

.security-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  font-size:18px;
  color:var(--text);
}

.security-row strong {
  font-weight:700;
}

.security-note {
  margin-top:20px;
  color:var(--muted);
  font-size:17px;
  line-height:1.7;
}

.security-note p {
  margin:0 0 6px;
}

.security-toggle {
  --h:36px;
  --w:66px;
  appearance:none;
  width:var(--w);
  height:var(--h);
  border-radius:999px;
  background:#b9b9b9;
  border:1px solid #9a9a9a;
  position:relative;
  cursor:pointer;
  flex:0 0 auto;
  box-shadow:0 6px 12px rgba(0,0,0,.14) inset, 0 3px 8px rgba(0,0,0,.16);
}

.security-toggle::after {
  content:"";
  position:absolute;
  top:1px;
  left:1px;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#e6e6e6;
  box-shadow:0 3px 8px rgba(0,0,0,.25);
  transition:left .2s ease;
}

.security-toggle:checked {
  background:#1584a8;
  border-color:#157899;
}

.security-toggle:checked::after {
  left:31px;
}

.vat-card {
  min-width:0;
}

.vat-tabs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  max-width:520px;
  margin:0 auto 26px;
}

.vat-tab {
  min-height:66px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  color:#8a96a6;
  font-size:18px;
  font-weight:500;
}

.vat-tab.active {
  color:#2563eb;
  border-color:#bcd2ff;
  box-shadow:0 8px 18px rgba(37,99,235,.12);
}

.vat-form {
  display:grid;
  gap:18px;
}

.vat-form label {
  font-size:18px;
  color:var(--text);
  font-weight:600;
}

.vat-form label span {
  color:#dc2626;
}

.vat-form input,
.vat-form textarea {
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  color:var(--text);
  padding:15px 22px;
  font-size:16px;
}

.vat-form textarea {
  min-height:180px;
  resize:vertical;
}

.vat-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 24px;
}

@media (max-width: 1100px) {
  .vat-tabs {
    grid-template-columns:1fr;
    max-width:100%;
    margin:0 0 18px;
  }

  .vat-tab {
    font-size:18px;
    min-height:54px;
  }

  .vat-form label {
    font-size:17px;
  }

  .vat-form input,
  .vat-form textarea {
    font-size:16px;
    padding:12px 14px;
  }

  .vat-grid {
    grid-template-columns:1fr;
    gap:14px;
  }
}

@media (max-width: 1100px) {
  .change-password-fields {
    grid-template-columns:1fr;
    gap:18px;
  }

  .change-password-note {
    font-size:16px;
  }

  .security-card {
    padding:22px;
  }

  .security-row {
    font-size:16px;
    align-items:flex-start;
  }
}

.balance-filter-form {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:30px;
  align-items:center;
  margin-bottom:32px;
}

.balance-filter-form input,
.balance-filter-form select {
  width:100%;
  min-height:54px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  color:var(--text);
  padding:0 24px;
}

.balance-filter-form .btn {
  min-height:54px;
  border-color:transparent;
  background:#e7e7e7;
  color:var(--text);
}

.balance-filter-row {
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.balance-filter-row label {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  font-weight:850;
}

.balance-filter-row select {
  width:94px;
  min-height:50px;
  padding:0 16px;
  background:var(--surface);
}

.balance-filter-row label:last-child select {
  width:154px;
}

.balance-table {
  table-layout:fixed;
  min-width:1040px;
}

.balance-table th,
.balance-table td {
  white-space:nowrap;
}

.balance-table th:nth-child(1),
.balance-table td:nth-child(1) {
  width:188px;
}

.balance-table th:nth-child(2),
.balance-table td:nth-child(2),
.balance-table th:nth-child(3),
.balance-table td:nth-child(3),
.balance-table th:nth-child(4),
.balance-table td:nth-child(4) {
  width:124px;
}

.money-cell {
  text-align:right;
  font-weight:900;
}

.money-negative {
  color:#f00;
}

.money-positive {
  color:#009b16;
}

.money-current {
  color:#001dff;
}

.reason-cell {
  overflow:hidden;
  text-overflow:ellipsis;
}

.activity-log-card .balance-filter-form {
  grid-template-columns:repeat(5,minmax(0,1fr));
}

.activity-log-table {
  min-width:860px;
  table-layout:fixed;
}

.activity-log-table th:nth-child(1),
.activity-log-table td:nth-child(1) {
  width:210px;
}

.activity-log-table th:nth-child(3),
.activity-log-table td:nth-child(3) {
  width:180px;
}

.activity-log-table td:nth-child(2) {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media (max-width:1120px) {
  .account-history-layout {
    grid-template-columns:1fr;
  }

  .balance-filter-form {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }

  .activity-log-card .balance-filter-form {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

}

.blocked-page {
  min-height:100vh;
  margin:0;
  background:#f3f6fb;
  color:#172033;
}

.blocked-shell {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 16px;
}

.blocked-card {
  width:min(100%,520px);
  padding:36px;
  border:1px solid #dbe4f0;
  border-radius:10px;
  background:#fff;
  box-shadow:0 18px 45px rgba(15,23,42,.12);
  text-align:center;
}

.blocked-icon {
  width:64px;
  height:64px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
  border-radius:999px;
  background:#fee2e2;
  color:#dc2626;
  font-size:28px;
}

.blocked-kicker {
  margin:0 0 8px;
  color:#0b7fa4;
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
}

.blocked-card h1 {
  margin:0 0 12px;
  color:#111827;
  font-size:30px;
  line-height:1.15;
}

.blocked-card p {
  margin:0;
  color:#4b5563;
  font-size:17px;
  line-height:1.6;
}

.blocked-meta {
  display:grid;
  gap:12px;
  margin:24px 0;
  text-align:left;
}

.blocked-meta div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border-radius:8px;
  background:#f8fafc;
}

.blocked-meta dt {
  color:#64748b;
  font-weight:700;
}

.blocked-meta dd {
  margin:0;
  color:#172033;
  font-weight:800;
}

.blocked-card .blocked-note {
  color:#64748b;
  font-size:15px;
}

.ip-admin-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:22px;
}

.ip-admin-grid .form-card {
  margin:0;
}

.admin-search-form {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.admin-search-form input {
  min-width:240px;
}

.inline-form {
  display:inline;
}

.btn-small {
  min-height:36px;
  padding:8px 14px;
  font-size:14px;
}

.muted {
  color:#64748b;
}

@media (max-width:760px) {
  .ip-admin-grid {
    grid-template-columns:1fr;
  }

  .admin-search-form input,
  .admin-search-form .btn {
    width:100%;
  }
}

@media (max-width:640px) {
  html,
  body {
    width:100%;
    overflow-x:hidden;
  }

  .app-shell,
  .main-content,
  .section,
  .container {
    min-width:0;
  }

  .section {
    padding:22px 0;
  }

  .container {
    width:100%;
    padding-left:14px;
    padding-right:14px;
  }

  .table-wrap {
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .btn {
    white-space:normal;
  }

  .account-side-menu a {
    min-height:90px;
    padding:0 22px;
    font-size:20px;
    font-weight:650;
  }

  .balance-history-card {
    padding:22px 14px;
  }

  .balance-history-head {
    margin-bottom:24px;
  }

  .balance-filter-form {
    grid-template-columns:1fr;
  }

  .activity-log-card .balance-filter-form {
    grid-template-columns:1fr;
  }

  .balance-filter-row {
    align-items:flex-start;
    flex-direction:column;
  }

  .balance-filter-row label,
  .balance-filter-row select,
  .balance-filter-row label:last-child select {
    width:100%;
  }

}

.orders-table th,
.orders-table td {
  vertical-align:middle;
}

.orders-actions {
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.btn-small {
  min-height:38px;
  padding:8px 10px;
  font-size:14px;
}

.orders-quantity {
  display:inline-grid;
  place-items:center;
  min-width:28px;
  min-height:28px;
  border-radius:7px;
  background:#1473ff;
  color:#fff;
  font-weight:900;
}

.orders-empty {
  padding:44px 20px;
  text-align:center;
}

.orders-empty h3 {
  margin:0 0 8px;
}

.orders-empty p {
  margin:0 0 16px;
  color:var(--muted);
}

.blog-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.blog-card {
  display:grid;
  align-content:start;
  gap:12px;
  min-height:220px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.blog-card h2 {
  margin:0;
  font-size:24px;
}

.blog-card p {
  margin:0;
  color:var(--muted);
  font-size:17px;
}

.topup-layout {
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:22px;
  align-items:start;
}

.topup-card {
  display:grid;
  gap:18px;
}

.home-auth-card {
  display:grid;
  gap:24px;
  position:sticky;
  top:150px;
  padding:30px 38px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:0 12px 28px rgba(15,23,42,.14);
}

.home-wallet-card {
  display:grid;
  gap:16px;
  position:sticky;
  top:150px;
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:0 12px 28px rgba(15,23,42,.14);
}

.home-wallet-balance,
.home-wallet-stat {
  display:grid;
  gap:8px;
}

.home-wallet-balance span,
.home-wallet-stat span {
  color:var(--muted);
  font-size:18px;
}

.home-wallet-balance strong {
  color:#0786a8;
  font-size:32px;
  line-height:1;
}

.home-wallet-stat {
  min-height:108px;
  align-content:center;
  padding:18px 22px;
  border-radius:8px;
  background:#f3f3f3;
}

.home-wallet-stat strong {
  color:#374151;
  font-size:25px;
  line-height:1.1;
}

.topup-panel-title {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:70px;
  padding:0 28px;
  border-radius:9px;
  background:linear-gradient(135deg,#0786a8,#155f73);
  color:#fff;
  box-shadow:0 8px 14px rgba(15,23,42,.28);
  font-size:24px;
  font-weight:850;
  text-transform:uppercase;
}

.topup-panel-title .fa-solid {
  font-size:26px;
}

.card-topup-grid {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.95fr);
  gap:30px;
  align-items:start;
}

.card-topup-form,
.card-topup-note {
  margin-top:20px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.card-topup-form {
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:32px 76px;
  align-items:center;
  padding:50px 38px 38px;
}

.card-topup-form label {
  color:var(--text);
  font-size:18px;
  font-weight:850;
}

.card-topup-form input,
.card-topup-form select {
  width:100%;
  min-height:54px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  color:var(--text);
  padding:0 26px;
  font-size:16px;
}

.card-topup-received {
  grid-column:1 / -1;
  min-height:84px;
  display:grid;
  place-items:center;
  border-top:3px solid var(--primary);
  background:var(--surface);
  box-shadow:0 12px 26px rgba(15,23,42,.06);
  color:#04546b;
  font-size:18px;
}

.card-topup-received strong {
  color:#f00;
}

.card-topup-submit {
  grid-column:1 / -1;
  justify-self:center;
  min-width:150px;
  min-height:56px;
  text-transform:uppercase;
}

.card-topup-note {
  padding:24px 20px;
  font-size:18px;
  line-height:1.7;
}

.card-topup-note p {
  margin:0;
}

.mt-32 {
  margin-top:32px;
}

.card-history-card {
  margin-top:20px;
}

.card-history-filter {
  grid-template-columns:repeat(6,minmax(120px,1fr));
}

.card-history-filter .balance-filter-row {
  grid-column:1 / -1;
}

.card-history-table {
  min-width:1180px;
  table-layout:fixed;
}

.card-history-table th,
.card-history-table td {
  white-space:nowrap;
}

.banking-topup-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,1.05fr);
  gap:16px;
  align-items:start;
}

.banking-alert-head,
.banking-payment-head {
  display:flex;
  align-items:center;
  gap:14px;
  min-height:74px;
  padding:0 24px;
  color:#fff;
}

.banking-alert-head {
  border-radius:8px 8px 0 0;
  background:#b85b05;
}

.banking-alert-head strong,
.banking-payment-head strong {
  display:block;
  font-size:18px;
  text-transform:uppercase;
}

.banking-alert-head small,
.banking-payment-head small {
  display:block;
  margin-top:6px;
  opacity:.88;
}

.banking-alert-icon,
.banking-bank-icon {
  display:grid;
  place-items:center;
  width:56px;
  height:48px;
  border-radius:12px;
  background:rgba(255,255,255,.18);
  font-size:24px;
}

.banking-alert-body {
  min-height:176px;
  padding:28px 24px;
  border:1px solid var(--line);
  border-top:0;
  border-radius:0 0 8px 8px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.banking-alert-body p {
  margin:0 0 12px;
  color:var(--text);
  font-weight:800;
}

.banking-alert-brand {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:18px !important;
  color:var(--primary-strong) !important;
  font-size:20px;
  font-weight:900 !important;
}

.banking-alert-gif {
  width:28px;
  height:28px;
  object-fit:contain;
  flex:0 0 auto;
}

.banking-payment-card {
  overflow:hidden;
  border-radius:8px 8px 16px 16px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.banking-payment-head {
  background:#264f7e;
}

.banking-amount-form {
  display:grid;
  grid-template-columns:130px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:22px 26px 0;
}

.banking-amount-form label {
  color:var(--text);
  font-weight:800;
}

.banking-amount-form input {
  width:100%;
  min-height:48px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  padding:0 14px;
}

.banking-qr-wrap {
  display:grid;
  place-items:center;
  padding:24px 26px;
}

.banking-qr-wrap img,
.banking-qr-wrap .qr-demo {
  width:min(100%,324px);
  min-height:324px;
  border:1px solid var(--line);
  border-radius:14px;
  object-fit:contain;
}

.banking-transfer-code {
  display:grid;
  grid-template-columns:1fr auto auto;
  align-items:center;
  gap:12px;
  margin:0 26px 22px;
  padding:22px;
  border:2px dashed #ff7878;
  border-radius:16px;
  background:#fff6f6;
  color:#e11d2e;
  text-align:center;
}

.banking-transfer-code span {
  grid-column:1 / -1;
  font-weight:850;
  text-transform:uppercase;
}

.banking-transfer-code strong {
  grid-column:1 / 3;
  font-size:28px;
}

.banking-detail-list {
  margin:0;
}

.banking-detail-list div {
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:16px;
  align-items:center;
  padding:20px 26px;
  border-top:1px solid var(--line);
}

.banking-detail-list dt {
  color:var(--muted);
}

.banking-detail-list dd {
  margin:0;
  text-align:right;
  color:#009b6a;
  font-weight:850;
  overflow-wrap:anywhere;
}

.banking-footnote {
  margin:0;
  padding:22px 26px;
  color:var(--muted);
  text-align:center;
  font-size:14px;
}

@media (max-width:1120px) {
  .banking-topup-grid {
    grid-template-columns:1fr;
  }

  .card-topup-grid {
    grid-template-columns:1fr;
  }

  .card-topup-form {
    grid-template-columns:180px minmax(0,1fr);
    gap:22px 30px;
  }

  .card-history-filter {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px) {
  .banking-alert-head,
  .banking-payment-head {
    min-height:64px;
    padding:0 16px;
  }

  .banking-alert-body {
    min-height:0;
    padding:22px 16px;
  }

  .banking-amount-form {
    grid-template-columns:1fr;
    padding:18px 16px 0;
  }

  .banking-qr-wrap {
    padding:20px 16px;
  }

  .banking-qr-wrap img,
  .banking-qr-wrap .qr-demo {
    width:min(100%,280px);
    min-height:280px;
  }

  .banking-transfer-code {
    margin:0 16px 18px;
    padding:18px 12px;
  }

  .banking-transfer-code strong {
    font-size:24px;
  }

  .banking-detail-list div {
    grid-template-columns:1fr;
    gap:8px;
    padding:16px;
  }

  .banking-detail-list dd {
    text-align:left;
  }

  .topup-panel-title {
    min-height:58px;
    padding:0 18px;
    font-size:19px;
  }

  .card-topup-form {
    grid-template-columns:1fr;
    gap:12px;
    padding:24px 16px;
  }

  .card-topup-form label {
    font-size:16px;
  }

  .card-topup-received {
    min-height:72px;
  }

  .card-topup-note {
    padding:18px 16px;
    font-size:16px;
  }

  .card-history-filter {
    grid-template-columns:1fr;
  }

  .card-history-table {
    min-width:980px;
  }
}

.home-auth-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:58px;
  padding:12px 18px;
  border-radius:7px;
  color:#fff;
  font-size:17px;
  font-weight:900;
  text-transform:uppercase;
  transition:filter .16s,transform .16s;
}

.home-auth-button:hover {
  filter:brightness(.96);
  transform:translateY(-1px);
}

.home-auth-button.primary {
  background:#4567a9;
}

.home-auth-button.danger {
  background:#ef0031;
}

@media (max-width:860px) {
  .home-notice-card {
    padding:22px;
  }

  .home-notice-title h1 {
    font-size:34px;
    letter-spacing:4px;
    gap:10px;
  }

  .home-neon-gif {
    width:34px;
    height:34px;
  }

  .home-notice-title p {
    font-size:16px;
  }

  .home-shop-layout {
    grid-template-columns:1fr;
  }

  .home-auth-card {
    order:-1;
    gap:12px;
    position:static;
    padding:18px;
  }

  .home-auth-card {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .home-wallet-card {
    display:none;
  }

  .home-category-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .home-page .home-category-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .home-page .home-category-pill {
    flex:auto;
  }
}

@media (max-width:640px) {
  .home-notice-card {
    padding:16px;
  }

  .home-notice-title h1 {
    font-size:28px;
    letter-spacing:2px;
    gap:7px;
  }

  .home-neon-gif {
    width:28px;
    height:28px;
  }

  .home-support-row {
    align-items:flex-start;
    flex-direction:column;
  }

  .home-page .home-support-row {
    display:block;
    line-height:1.9;
  }

  .home-page {
    gap:20px;
  }

  .home-page .home-notice-card {
    padding:16px;
  }

  .home-auth-card {
    grid-template-columns:1fr;
  }

  .home-category-grid {
    gap:8px;
  }

  .home-category-pill {
    min-height:48px;
    padding:8px 10px;
    font-size:14px;
  }

  .home-product-band {
    min-height:58px;
    padding:9px 12px;
  }

  .home-product-band h2 {
    font-size:20px;
  }

  .home-product-row {
    grid-template-columns:1fr;
    padding:16px;
  }

  .home-page .home-product-row {
    grid-template-columns:1fr;
    padding:14px;
  }

  .product-modal-dialog {
    grid-template-columns:1fr;
    max-height:calc(100vh - 48px);
    overflow:auto;
    padding:24px;
  }

  .product-modal-close {
    top:8px;
    right:8px;
  }

  .product-modal-main h2 {
    padding-right:42px;
    font-size:26px;
  }

  .product-modal-summary dl div {
    grid-template-columns:1fr;
  }

  .product-modal-summary dd {
    border-left:0;
    border-top:1px solid var(--line);
    text-align:left;
  }

  .orders-filter-form {
    grid-template-columns:1fr;
  }

  .orders-card {
    padding:18px;
  }

  .orders-panel-title {
    font-size:22px;
  }

  .blog-grid,
  .topup-layout {
    grid-template-columns:1fr;
  }

  .floating-contact {
    display:none;
  }
}

@media (min-width:861px) {
  .store-masthead,
  .store-nav {
    width:min(calc(100% - 32px),1620px);
    margin-left:auto;
    margin-right:auto;
  }

  .store-masthead {
    min-height:108px;
    padding-top:6px;
    padding-bottom:6px;
  }

  .utility-bar {
    width:100%;
    margin:0;
    padding-left:max(20px,calc((100% - 1620px) / 2));
    padding-right:max(20px,calc((100% - 1620px) / 2));
  }

  .store-masthead,
  .store-nav {
    padding-left:0;
    padding-right:0;
  }

  .store-nav {
    margin-top:0;
    margin-bottom:0;
  }

  body.store-nav-collapsed .store-nav {
    min-height:0;
    max-height:0;
    opacity:0;
    transform:translateY(-8px);
    border-top-color:transparent;
    pointer-events:none;
  }

  .page:has(.home-notice-card) {
    width:min(calc(100% - 32px),1620px);
    padding-top:48px;
  }

  .home-notice-card {
    max-width:none;
  }
}

@media (min-width:1400px) {
  .store-masthead,
  .store-nav,
  .page:has(.home-notice-card) {
    width:min(calc(100% - 280px),1620px);
  }

  .utility-bar {
    padding-left:max(140px,calc((100% - 1620px) / 2));
    padding-right:max(140px,calc((100% - 1620px) / 2));
  }
}

/* Entry notice modal */
.notice-modal[hidden] {
  display:none;
}

.notice-modal {
  position:fixed;
  inset:0;
  z-index:120;
  display:grid;
  place-items:start center;
  padding:110px 18px 30px;
}

body.notice-modal-open {
  overflow:hidden;
}

.notice-modal-backdrop {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.34);
}

.notice-modal-dialog {
  position:relative;
  z-index:1;
  width:min(100%,1156px);
  max-height:calc(100vh - 130px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
  border-radius:8px;
  background:var(--surface);
  box-shadow:0 18px 48px rgba(15,23,42,.28);
}

.notice-modal-header {
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 14px;
  border-bottom:1px solid var(--line);
}

.notice-modal-header strong {
  color:var(--text);
  font-size:16px;
}

.notice-modal-close {
  width:40px;
  height:40px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  font-size:34px;
  line-height:1;
}

.notice-modal-close:hover {
  background:var(--neutral-soft);
  color:var(--text);
}

.notice-modal-body {
  display:grid;
  gap:20px;
  overflow:auto;
  padding:34px 30px;
}

.notice-panel,
.notice-note {
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--surface);
  box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.notice-panel {
  padding:20px 18px 22px;
  text-align:center;
}

.notice-panel h2,
.notice-discount h2 {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 18px;
  color:#414957;
  font-size:27px;
  line-height:1.2;
  font-weight:900;
}

.notice-zalo-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid #1f2937;
  border-radius:18px;
  overflow:hidden;
}

.notice-zalo-grid a {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:72px;
  padding:10px;
  border-right:1px solid var(--line);
  background:linear-gradient(180deg,#3788ff,#1f62e9);
  color:#fff;
  font-size:17px;
  font-weight:900;
}

.notice-zalo-grid a:last-child {
  border-right:0;
}

.notice-zalo-grid a::before {
  content:"Zalo";
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  margin-right:10px;
  border-radius:999px;
  background:#fff;
  color:#1e73ff;
  font-size:8px;
  font-weight:900;
}

.notice-panel-sub {
  background:linear-gradient(180deg,#fff,#fff6f8);
}

.notice-red-button,
.notice-hide-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:22px;
  color:#fff;
  font-weight:900;
}

.notice-red-button {
  min-width:184px;
  min-height:52px;
  padding:12px 28px;
  background:#ff3f59;
  box-shadow:0 12px 26px rgba(255,63,89,.28);
}

.notice-discount {
  display:grid;
  gap:10px;
  justify-items:center;
  padding:24px 18px;
  border-radius:22px;
  background:linear-gradient(135deg,#6c50ef,#8195f8);
  color:#fff;
  text-align:center;
  box-shadow:0 10px 28px rgba(108,80,239,.22);
}

.notice-discount h2 {
  margin:0;
  color:#fff;
}

.notice-discount p {
  margin:0;
  color:#fff3a4;
  font-size:20px;
  font-weight:900;
}

.notice-note {
  padding:18px 28px;
  color:#414957;
  font-weight:850;
}

.notice-title-icon {
  width:30px;
  height:30px;
  object-fit:contain;
}

.notice-note-icon {
  width:24px;
  height:24px;
  object-fit:contain;
  vertical-align:middle;
  margin-right:6px;
}

.notice-modal-actions {
  display:flex;
  justify-content:flex-end;
  padding:0 4px 4px;
  border-top:1px solid var(--line);
  background:var(--surface);
}

.notice-hide-button {
  min-height:40px;
  padding:9px 18px;
  border-radius:5px;
  background:#e63946;
}

@media (max-width:860px) {
  .notice-modal {
    padding-top:74px;
  }

  .notice-modal-dialog {
    max-height:calc(100vh - 92px);
  }

  .notice-zalo-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .notice-zalo-grid a:nth-child(2) {
    border-right:0;
  }
}

@media (max-width:640px) {
  .notice-modal {
    padding:42px 10px 18px;
  }

  .notice-modal-body {
    padding:18px 14px;
  }

  .notice-panel h2,
  .notice-discount h2 {
    font-size:20px;
  }

  .notice-zalo-grid {
    grid-template-columns:1fr;
  }

  .notice-zalo-grid a {
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .notice-zalo-grid a:last-child {
    border-bottom:0;
  }

  .notice-modal-actions {
    justify-content:stretch;
  }

  .notice-hide-button {
    width:100%;
  }
}

@media (max-width:860px) {
  .account-side-menu {
    order:2;
  }

  .account-history-layout > :not(.account-side-menu) {
    order:1;
  }
}

@media (max-width:640px) {
  .account-side-menu {
    gap:8px;
  }

  .account-side-menu a {
    min-height:50px;
    padding:0 14px;
    font-size:15px;
    font-weight:400;
  }

  .account-side-menu .fa-solid {
    width:16px;
    min-width:16px;
    font-size:16px;
  }
}

/* Account/history pages: final responsive pass */
.account-side-menu a {
  font-weight:400;
}

.balance-filter-row label {
  font-weight:500;
}

.balance-history-card,
.activity-log-card {
  box-sizing:border-box;
}

@media (max-width:860px) {
  .account-history-layout {
    grid-template-columns:1fr;
    gap:18px;
  }

  .account-side-menu {
    width:100%;
    gap:14px;
  }

  .account-side-menu a {
    width:100%;
    min-height:78px;
    padding:0 22px;
    font-size:18px;
    font-weight:400;
  }

  .balance-history-card,
  .activity-log-card,
  .orders-card {
    width:100%;
    max-width:100%;
  }

  .balance-filter-form,
  .activity-log-card .balance-filter-form,
  .orders-filter-form {
    grid-template-columns:1fr;
    gap:12px;
  }

  .balance-filter-row {
    align-items:stretch;
    flex-direction:column;
  }

  .balance-filter-row label {
    width:100%;
    justify-content:space-between;
    font-weight:400;
  }

  .balance-filter-row select,
  .balance-filter-row label:last-child select {
    width:160px;
  }
}

@media (max-width:640px) {
  body {
    overflow-x:hidden;
  }

  .container {
    max-width:100%;
    padding-left:12px;
    padding-right:12px;
  }

  .section {
    padding:20px 0;
  }

  .account-side-menu {
    gap:14px;
  }

  .account-side-menu a {
    min-height:90px;
    padding:0 22px;
    font-size:20px;
    font-weight:500;
  }

  .account-side-menu .fa-solid {
    width:20px;
    min-width:20px;
  }

  .balance-history-card,
  .activity-log-card,
  .orders-card {
    padding:18px 12px;
    border-radius:8px;
  }

  .balance-history-head {
    padding-bottom:22px;
    margin-bottom:22px;
  }

  .balance-history-head h1 {
    font-size:22px;
  }

  .balance-filter-form input,
  .balance-filter-form select,
  .orders-filter-form input,
  .orders-filter-form select,
  .balance-filter-form .btn,
  .orders-filter-form .btn {
    min-height:50px;
  }

  .table-wrap {
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .balance-table {
    min-width:980px;
  }

  .activity-log-table {
    min-width:760px;
  }

}

/* ==============================
   Premium UI overrides (no new layout)
   ============================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.nav-link:focus-visible {
  outline:none;
  box-shadow:var(--ring);
}

.card,.price-card,.auth-card,.panel,.product-card,.stat-card,
.home-notice-card,
.home-auth-card,
.home-wallet-card,
.store-dropdown,
.login-dropdown,
.notice-modal-dialog,
.product-modal-dialog {
  border-color:var(--glass-border);
  background:var(--glass);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:var(--shadow-md);
}

.home-product-row {
  border-color:var(--glass-border);
  background:color-mix(in srgb,var(--glass-strong) 92%,transparent);
  box-shadow:var(--shadow-md);
}

.store-header {
  background:linear-gradient(180deg,color-mix(in srgb,var(--glass-strong) 96%,transparent),color-mix(in srgb,var(--glass) 88%,transparent));
  border-bottom-color:var(--glass-border);
  box-shadow:0 14px 38px rgba(15,23,42,.10);
}

.search-box {
  background:color-mix(in srgb,var(--glass-strong) 92%,transparent);
  border-color:var(--glass-border);
}

.mobile-menu-button,.icon-button,.store-action,.login-inline {
  background:color-mix(in srgb,var(--glass-strong) 92%,transparent);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
  transition:transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),background var(--t-fast) var(--ease),color var(--t-fast) var(--ease);
}

.icon-button:hover,.store-action:hover,.login-avatar:hover {
  box-shadow:0 18px 45px rgba(15,23,42,.12);
}

.nav-link,
.home-category-pill,
.home-product-row,
.button,
.store-dropdown,
.login-dropdown {
  transition:transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease),opacity var(--t-fast) var(--ease);
}

.sidebar {
  background:linear-gradient(180deg,color-mix(in srgb,var(--glass-strong) 96%,transparent),color-mix(in srgb,var(--glass) 84%,transparent));
  border-right:1px solid var(--glass-border);
}

.sidebar {
  background:var(--surface);
}

/* Menus should look crisp (avoid blur/washed glass on small popovers) */
.store-dropdown,
.login-dropdown,
.sidebar {
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.store-dropdown,
.login-dropdown {
  background:color-mix(in srgb,var(--surface) 96%,var(--bg));
  border-color:color-mix(in srgb,var(--line) 85%,transparent);
  box-shadow:0 22px 70px rgba(15,23,42,.18);
}

.nav-link:hover,.nav-link.active {
  background:color-mix(in srgb,var(--primary) 10%,var(--glass-strong));
}

.home-notice-card {
  border-radius:var(--radius-xl);
}

.home-notice-title h1 {
  letter-spacing:2px;
  color:var(--text);
  background:linear-gradient(135deg,var(--primary-strong),color-mix(in srgb,var(--primary) 65%,#6d28d9));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 10px 26px rgba(15,23,42,.16);
  animation:none;
}

.home-notice-title p {
  color:color-mix(in srgb,var(--danger) 78%,var(--text));
}

.home-shop-layout {
  scroll-margin-top:140px;
}

/* Subtle entrance (requires html.ui-enter/ui-ready from JS) */
html.ui-enter .home-notice-card,
html.ui-enter .home-shop-layout,
html.ui-enter .home-auth-card,
html.ui-enter .home-wallet-card,
html.ui-enter .card,
html.ui-enter .panel {
  opacity:0;
  transform:translateY(10px);
}

html.ui-ready .home-notice-card,
html.ui-ready .home-shop-layout,
html.ui-ready .home-auth-card,
html.ui-ready .home-wallet-card,
html.ui-ready .card,
html.ui-ready .panel {
  opacity:1;
  transform:none;
  transition:opacity var(--t-med) var(--ease),transform var(--t-med) var(--ease);
}

.home-category-pill {
  border:1px solid var(--glass-border);
  background:color-mix(in srgb,var(--glass-strong) 92%,transparent);
  border-radius:999px;
  color:var(--text);
}

.home-category-pill:hover {
  transform:translateY(-1px);
  box-shadow:0 18px 42px rgba(15,23,42,.12);
  background:color-mix(in srgb,var(--primary) 8%,var(--glass-strong));
}

.home-category-pill.active {
  background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 14%,var(--glass-strong)),color-mix(in srgb,var(--primary) 8%,var(--glass)));
  border-color:color-mix(in srgb,var(--primary) 32%,var(--glass-border));
  color:var(--primary-strong);
  box-shadow:0 22px 54px rgba(var(--primary-rgb) / .16);
}

.home-product-band {
  border:1px solid color-mix(in srgb,var(--primary) 22%,var(--glass-border));
  border-radius:var(--radius-xl);
  box-shadow:0 18px 52px rgba(var(--primary-rgb) / .16);
}

.home-product-row {
  border-style:solid;
  border-radius:var(--radius-xl);
}

.home-product-row h3 {
  color:var(--text);
}

.home-product-row p {
  color:color-mix(in srgb,var(--text) 72%,var(--muted));
}

.home-product-row:hover {
  transform:translateY(-2px);
  box-shadow:0 22px 66px rgba(15,23,42,.14);
}

.home-product-stock {
  border:1px solid color-mix(in srgb,var(--primary) 22%,var(--glass-border));
  background:color-mix(in srgb,var(--primary) 12%,var(--glass-strong));
  color:var(--text);
  font-weight:700;
}

.home-product-action strong {
  border-style:solid;
  border-color:color-mix(in srgb,var(--primary) 18%,var(--glass-border));
  background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 10%,var(--glass-strong)),color-mix(in srgb,var(--primary) 4%,var(--glass)));
  color:var(--primary-strong);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
}

.button {
  border-radius:999px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 88%,#ffffff 12%),var(--primary-strong));
  box-shadow:0 16px 40px rgba(var(--primary-rgb) / .18);
}

.button:hover {
  transform:translateY(-2px);
  box-shadow:0 22px 60px rgba(var(--primary-rgb) / .22);
}

.button.secondary {
  background:color-mix(in srgb,var(--glass-strong) 94%,transparent);
  border-color:var(--glass-border);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

.button.secondary:hover {
  transform:translateY(-1px);
  box-shadow:0 18px 45px rgba(15,23,42,.10);
}

/* Modal polish + smooth open/close (keeps data-attributes + JS logic intact) */
.product-modal[hidden],
.notice-modal[hidden] {
  display:grid;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.product-modal,
.notice-modal {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity var(--t-med) var(--ease),visibility var(--t-med) var(--ease);
}

.product-modal-backdrop,
.notice-modal-backdrop {
  background:rgba(15,23,42,.44);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.product-modal-dialog,
.notice-modal-dialog {
  border-radius:var(--radius-xl);
  background:var(--glass-strong);
  box-shadow:var(--shadow-lg);
  transform:translateY(10px) scale(.985);
  transition:transform var(--t-med) var(--ease);
}

body.product-modal-open .product-modal-dialog,
body.notice-modal-open .notice-modal-dialog {
  transform:translateY(0) scale(1);
}

.product-modal-close,
.notice-modal-close {
  background:color-mix(in srgb,var(--glass-strong) 96%,transparent);
  border:1px solid var(--glass-border);
  box-shadow:var(--shadow-sm);
}

.site-footer {
  background:linear-gradient(180deg,color-mix(in srgb,var(--glass-strong) 96%,transparent),color-mix(in srgb,var(--glass) 88%,transparent));
}

.footer-bottom {
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
  box-shadow:0 18px 55px rgba(var(--primary-rgb) / .18);
}

.floating-contact-button,
.back-to-top {
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
  box-shadow:0 18px 52px rgba(var(--primary-rgb) / .22);
  transition:transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease);
}

.floating-contact-button:hover,
.back-to-top:hover {
  transform:translateY(-2px);
  box-shadow:0 26px 70px rgba(var(--primary-rgb) / .26);
}

@media (max-width:640px) {
  .mobile-bottom-nav {
    background:color-mix(in srgb,var(--glass-strong) 92%,transparent);
    border-color:var(--glass-border);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    box-shadow:0 22px 70px rgba(15,23,42,.24);
  }

  .mobile-bottom-nav a.active {
    background:color-mix(in srgb,var(--primary) 10%,transparent);
    color:var(--text);
  }

  .mobile-bottom-nav a.active i {
    color:var(--primary-strong);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
    scroll-behavior:auto !important;
  }
}
