:root {
  color-scheme: dark;
  --bg: #070708;
  --panel: rgba(18, 18, 20, 0.24);
  --panel-soft: rgba(255, 255, 255, 0.036);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);
  --text: #f7f7f8;
  --muted: #b2b2b8;
  --soft: #74747b;
  --mint: #f2f2f4;
  --pink: #e9e9ed;
  --violet: #cfcfd6;
  --cyan: #ffffff;
  --font-th-bold: "Inter", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-th-regular: "Inter", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --theme-text-safe: #e8e1ed;
  font-family: var(--font-th-regular);
}

/* Account menu in the main nav. */
.nav-divider {
  width: 1px;
  height: 28px;
  margin: 0 6px;
  align-self: center;
  background: rgba(255, 255, 255, 0.18);
}

.account-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 2px 4px 10px;
  color: var(--text);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.account-trigger-meta {
  display: grid;
  justify-items: end;
  gap: 1px;
  line-height: 1.05;
}

.account-trigger b {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 760;
}

.account-trigger small {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  white-space: nowrap;
}

.account-point {
  display: inline !important;
}

.account-trigger i,
.account-head i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f4f4f5;
  color: #111;
  font-style: normal;
  font-weight: 780;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.account-trigger i {
  width: 36px;
  height: 36px;
}

.account-trigger svg,
.account-grid svg,
.account-logout svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-trigger svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 120;
  width: 264px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(10, 10, 12, 0.62) 50%, rgba(255, 255, 255, 0.03)),
    rgba(8, 8, 10, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(34px) saturate(1.45);
  backdrop-filter: blur(34px) saturate(1.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.account-menu.is-open .account-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.account-head i {
  width: 38px;
  height: 38px;
}

.account-head b,
.account-head small {
  display: block;
}

.account-head b {
  font-size: 0.98rem;
  font-weight: 780;
}

.account-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 2px;
  padding: 14px 12px 12px;
}

.account-grid button {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 64px;
  padding: 8px 4px;
  color: rgba(255, 255, 255, 0.72);
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
}

.account-grid button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.account-grid svg,
.account-logout svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.account-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 32px);
  min-height: 38px;
  margin: 0 16px 16px;
  color: #ff4b55;
  border: 1px solid rgba(255, 75, 85, 0.28);
  border-radius: 8px;
  background: rgba(255, 75, 85, 0.035);
  font-weight: 760;
  cursor: pointer;
}

.account-logout:hover {
  background: rgba(255, 75, 85, 0.09);
}

@media (max-width: 760px) {
  .nav-divider {
    display: none !important;
  }

  .account-menu {
    width: 100%;
  }

  .account-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
  }

  .account-trigger-meta {
    justify-items: start;
  }

  .account-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .account-menu.is-open .account-dropdown {
    display: block;
  }
}

/* Glassmorphism theme experiment */
:root {
  color-scheme: light;
  --bg: #cbd6ff;
  --panel: rgba(255, 255, 255, 0.24);
  --panel-soft: rgba(255, 255, 255, 0.22);
  --line: rgba(255, 255, 255, 0.26);
  --line-strong: rgba(255, 255, 255, 0.42);
  --text: #202332;
  --muted: #5f6578;
  --soft: #838aa0;
  --mint: #13b877;
  --pink: #f2495c;
  --violet: #6d6ee8;
  --cyan: #1f9edb;
  --theme-text-safe: #2b3041;
}

body {
  color: var(--text);
  background:
    linear-gradient(135deg, #c7d4ff 0%, #dfe6ff 45%, #f3dfe9 100%);
}

body::before {
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 198, 0, 0.96) 0 4.4rem, transparent 4.5rem),
    radial-gradient(circle at 78% 8%, rgba(242, 73, 92, 0.9) 0 5.5rem, transparent 5.6rem),
    radial-gradient(circle at 84% 78%, rgba(59, 173, 230, 0.72) 0 7.2rem, transparent 7.3rem),
    radial-gradient(circle at 32% 72%, rgba(126, 111, 255, 0.48) 0 6.6rem, transparent 6.7rem),
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 46px 46px, 46px 46px;
  mask-image: none;
}

body::after {
  z-index: 0;
  opacity: 0.92;
  background:
    linear-gradient(115deg, transparent 0 29%, rgba(255, 255, 255, 0.34) 29.1% 29.32%, transparent 29.5%),
    linear-gradient(115deg, transparent 0 67%, rgba(255, 255, 255, 0.28) 67.08% 67.28%, transparent 67.46%),
    radial-gradient(circle at 15% 82%, rgba(255, 198, 0, 0.7), transparent 10rem),
    radial-gradient(circle at 83% 10%, rgba(242, 73, 92, 0.62), transparent 11rem);
  filter: blur(18px);
}

.shell {
  position: relative;
  z-index: 1;
}

p,
.hero-shop p,
.announcement p,
.shop-info p,
.profile-hero p:last-child,
.muted,
.stats-row small,
.wallet-card span,
.recent-item strong,
.key-row span,
.admin-list-item span,
.footer,
.footer a,
label {
  color: var(--muted) !important;
}

h1,
h2,
h3,
strong,
.brand-pill,
.panel-title h2,
.section-head h2,
.shop-toolbar h1,
.shop-info h2,
.profile-hero h1,
.footer strong,
.recent-item b,
.topup-recent-item b,
.icon-button,
.notice-footer button,
.key-panel button,
.key-row button {
  color: var(--text) !important;
}

.brand-pill span,
.square-icon,
.stats-row span svg,
.drag-handle {
  color: #242633 !important;
  background: rgba(255, 255, 255, 0.34) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  box-shadow: 0 12px 34px rgba(92, 107, 148, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
  backdrop-filter: blur(18px) saturate(170%) !important;
}

.nav-actions,
.menu-toggle,
.wallet-card,
.panel,
.stats-row article,
.notice-grid,
.category-card,
.shop-card,
.admin-stats article,
.admin-form,
.admin-list-item,
.admin-tabs,
.profile-page .panel,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row,
.footer,
.modal-card,
.cookie-banner,
.payment-box {
  border: 1px solid rgba(255, 255, 255, 0.48) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)) !important;
  box-shadow:
    0 24px 70px rgba(92, 107, 148, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
  backdrop-filter: blur(26px) saturate(180%) !important;
}

.nav-actions,
.wallet-card,
.notice-grid,
.category-card,
.shop-card,
.profile-page .panel,
.modal-card {
  border-radius: 18px !important;
}

.stats-row article,
.footer,
.admin-form,
.admin-list-item,
.admin-tabs,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row {
  border-radius: 14px !important;
}

.notice-grid .panel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.notice-grid .recent {
  border-left-color: rgba(255, 255, 255, 0.42) !important;
}

.category-card::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.46) 0 54px, transparent 54px),
    rgba(255, 255, 255, 0.12) !important;
  border-bottom-color: rgba(255, 255, 255, 0.36) !important;
}

.category-card::after {
  display: none !important;
}

.category-card span {
  color: #202332 !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: 0 18px 42px rgba(92, 107, 148, 0.18) !important;
}

.icon-button:hover,
.notice-footer button:hover,
.key-panel button:hover,
.key-row button:hover,
.footer a:hover,
.shop-filter:hover {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.28) !important;
}

.icon-button.is-active,
.wallet-card button,
.submit,
.shop-info button,
.admin-tabs button.is-active,
.cookie-accept {
  color: #202332 !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 255, 0.72)) !important;
  box-shadow: 0 18px 48px rgba(92, 107, 148, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

input,
textarea,
.admin-form select,
.admin-user-row select,
.shop-filter,
.footer a,
.cookie-minimal {
  color: var(--text) !important;
  border: 1px solid rgba(255, 255, 255, 0.48) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.12)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 28px rgba(92, 107, 148, 0.1) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
  backdrop-filter: blur(18px) saturate(170%) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(43, 48, 65, 0.48);
}

input:focus,
textarea:focus,
.admin-form select:focus,
.admin-user-row select:focus {
  border-color: rgba(109, 110, 232, 0.72) !important;
  box-shadow: 0 0 0 4px rgba(109, 110, 232, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.discount-pill {
  color: #d72645 !important;
  border-color: rgba(242, 73, 92, 0.4) !important;
  background: rgba(242, 73, 92, 0.14) !important;
}

.stock-pill {
  color: #078c59 !important;
  border-color: rgba(19, 184, 119, 0.36) !important;
  background: rgba(19, 184, 119, 0.14) !important;
}

.stock-pill.is-empty,
.stock-pill.is-soon {
  color: #8d6470 !important;
  border-color: rgba(141, 100, 112, 0.24) !important;
  background: rgba(141, 100, 112, 0.1) !important;
}

.modal {
  background: rgba(7, 9, 17, 0.54) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
  backdrop-filter: blur(18px) saturate(170%) !important;
}

.toast:not(.success):not(.error):not(.info):not(.warning) {
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(12, 15, 24, 0.48) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
}

/* Final hairline pass: keep borders crisp and slim. */
.nav-actions,
.wallet-card,
.stats-row article,
.notice-grid,
.category-card,
.shop-card,
.admin-stats article,
.admin-form,
.admin-list-item,
.admin-tabs,
.profile-page .panel,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row,
.footer,
.modal-card,
.cookie-banner,
.payment-box {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(12, 15, 24, 0.34) !important;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.22),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.08) !important;
}

.stats-row article,
.notice-grid,
.wallet-card,
.category-card,
.shop-card,
.profile-page .panel {
  border-radius: 13px !important;
}

.stats-row article {
  background: rgba(12, 15, 24, 0.32) !important;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.2),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.075) !important;
}

/* Final hairline pass: keep borders crisp and slim. */
.nav-actions,
.wallet-card,
.stats-row article,
.notice-grid,
.category-card,
.shop-card,
.admin-stats article,
.admin-form,
.admin-list-item,
.admin-tabs,
.profile-page .panel,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row,
.footer,
.modal-card,
.cookie-banner,
.payment-box {
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    0 12px 32px rgba(92, 107, 148, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 0 0 0.5px rgba(70, 82, 125, 0.08) !important;
}

.stats-row article,
.notice-grid,
.wallet-card,
.category-card,
.shop-card,
.profile-page .panel {
  border-radius: 13px !important;
}

.nav-actions,
.wallet-card,
.stats-row article,
.notice-grid,
.category-card,
.shop-card,
.admin-stats article,
.admin-form,
.admin-list-item,
.admin-tabs,
.profile-page .panel,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row,
.footer,
.modal-card,
.cookie-banner,
.payment-box {
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    0 12px 32px rgba(92, 107, 148, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 0 0 0.5px rgba(70, 82, 125, 0.08) !important;
}

.stats-row article,
.notice-grid,
.wallet-card,
.category-card,
.shop-card,
.profile-page .panel {
  border-radius: 13px !important;
}

.topup-recent-item img,
.recent-main img {
  background: rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.62) !important;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-th-regular);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricprecision;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.07), transparent 25rem),
    radial-gradient(circle at 78% 8%, rgba(255, 255, 255, 0.045), transparent 22rem),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.035), transparent 24rem),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 4%, black, transparent 74%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(255, 255, 255, 0.04) 28.15% 28.35%, transparent 28.5%),
    linear-gradient(115deg, transparent 0 63%, rgba(255, 255, 255, 0.032) 63.1% 63.28%, transparent 63.4%),
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.04), transparent 18rem),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.035), transparent 18rem);
  opacity: 0.72;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

p,
li,
small,
span,
label,
input,
textarea,
button,
a,
h1,
h2,
h3,
strong {
  font-family: var(--font-th-regular);
}

p {
  white-space: pre-line;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.68;
  color: var(--theme-text-safe, #f5f5f5);
  margin-top: 2px;
  overflow-wrap: break-word;
}

.hidden {
  display: none !important;
}

.auth-pending {
  visibility: hidden !important;
}

body.is-auth-loading .wallet-card {
  min-width: 250px;
}

body.is-auth-loading .wallet-card > * {
  display: none !important;
}

body.is-auth-loading .wallet-card::before {
  display: block;
  width: min(100%, 210px);
  height: 16px;
  margin-bottom: 12px;
  border-radius: 999px;
  content: "";
}

body.is-auth-loading .wallet-card::after {
  display: block;
  width: min(100%, 220px);
  height: 44px;
  border-radius: 8px;
  content: "";
}

body.is-auth-loading .wallet-card::before,
body.is-auth-loading .wallet-card::after {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(255, 255, 255, 0.13) 50%,
      rgba(255, 255, 255, 0.045) 100%
    );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

body.is-stats-loading .stats-row article > *,
body.is-catalog-loading .category-grid > * {
  opacity: 0;
  pointer-events: none;
}

body.is-stats-loading .stats-row article::before {
  position: absolute;
  inset: 16px 18px 18px;
  border-radius: 8px;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
    linear-gradient(rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.09));
  background-repeat: no-repeat;
  background-size: 220% 100%, 44% 16px, 62px 34px, 28px 12px;
  background-position: 200% 0, 0 0, 0 calc(100% - 36px), 72px calc(100% - 23px);
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

body.is-catalog-loading .category-grid {
  min-height: 380px;
}

.category-skeleton-card {
  display: none;
}

body.is-catalog-loading .category-grid > :not(.category-skeleton-card) {
  display: none !important;
}

body.is-catalog-loading .category-skeleton-card {
  display: block;
  min-height: 178px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(10, 10, 12, 0.38) 52%, rgba(255, 255, 255, 0.025));
  background-repeat: no-repeat;
  background-size: 220% 100%, 90px 14px, 58% 34px, 42% 13px, 100% 100%;
  background-position: 200% 0, 28px 42px, 28px 72px, 28px 120px, 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 50px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(34px) saturate(1.28);
  backdrop-filter: blur(34px) saturate(1.28);
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

body.is-auth-loading [data-page-view="profile"] {
  min-height: 520px;
}

.profile-loading-shell {
  display: none;
}

body.is-auth-loading [data-page-view="profile"] > :not(.profile-loading-shell) {
  display: none !important;
}

body.is-auth-loading .profile-loading-shell {
  display: block;
}

.profile-skeleton-hero,
.profile-skeleton-card {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
}

.profile-skeleton-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  min-height: 152px;
  margin-bottom: 16px;
  padding: 28px;
}

.profile-skeleton-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
}

.profile-skeleton-card {
  display: grid;
  gap: 13px;
  min-height: 138px;
  padding: 24px;
}

.profile-skeleton-wide {
  grid-column: 1 / -1;
  min-height: 112px;
}

.profile-skeleton-hero span,
.profile-skeleton-hero strong,
.profile-skeleton-hero em,
.profile-skeleton-hero button,
.profile-skeleton-card strong,
.profile-skeleton-card span {
  display: block;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.045) 0%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.045) 100%
    );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.profile-skeleton-hero span {
  width: 120px;
  height: 12px;
}

.profile-skeleton-hero strong {
  width: min(360px, 48vw);
  height: 48px;
  grid-column: 1;
}

.profile-skeleton-hero em {
  width: min(620px, 62vw);
  height: 14px;
  grid-column: 1;
}

.profile-skeleton-hero button {
  width: 116px;
  height: 34px;
  align-self: center;
  grid-column: 2;
  grid-row: 1 / 4;
}

.profile-skeleton-card strong {
  width: 160px;
  height: 24px;
}

.profile-skeleton-card span {
  width: 72%;
  height: 14px;
}

.profile-skeleton-card span:last-child {
  width: 48%;
}

@media (max-width: 760px) {
  .profile-skeleton-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .profile-skeleton-hero button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: 160px;
  }

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

  .profile-skeleton-wide {
    grid-column: auto;
  }
}

html[data-initial-page="profile"] .page-home,
html[data-initial-page="shop"] .page-home,
html[data-initial-page="admin"] .page-home,
html[data-initial-page="product"] .page-home {
  display: none !important;
}

html[data-initial-page="profile"] [data-page-view="profile"],
html[data-initial-page="shop"] [data-page-view="shop"],
html[data-initial-page="admin"] [data-page-view="admin"],
html[data-initial-page="product"] [data-page-view="product"] {
  display: block !important;
}

html[data-initial-page="product"] [data-page-view="product"] {
  display: block !important;
}

html[data-initial-page="product"] [data-product-content] {
  display: none !important;
}

html[data-initial-page="product"] [data-product-skeleton] {
  display: grid !important;
}

.page-enter {
  animation: page-soft-in 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes page-soft-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.78;
}

.is-loading::after {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 8px;
  content: "";
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1340px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 44px 0 28px;
}

.topbar,
.nav-actions,
.brand-pill,
.menu-toggle,
.panel-title,
.notice-footer,
.section-head,
.footer {
  display: flex;
  align-items: center;
}

.topbar {
  position: relative;
  min-height: 54px;
  justify-content: space-between;
  gap: 24px;
}

.brand-pill {
  gap: 10px;
  width: fit-content;
  min-height: 38px;
  padding: 0;
  color: #f9fafb;
  font-size: 0.98rem;
  font-weight: 760;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.brand-pill span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #111215;
  background: linear-gradient(135deg, #f8f8fa, #d8d8de 52%, #ffffff);
  border-radius: 11px;
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.12);
}

.brand-pill span::before {
  content: "Z";
  font-size: 0.92rem;
  font-weight: 950;
}

.nav-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.022)),
    rgba(24, 24, 27, 0.28);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(34px) saturate(1.35);
  backdrop-filter: blur(34px) saturate(1.35);
}

.menu-toggle {
  display: none;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(22, 22, 25, 0.62);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(1.18);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.icon-button,
.notice-footer button,
.key-panel button,
.key-row button {
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  color: #f2f2f4;
  font-weight: 650;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  backdrop-filter: none;
}

.icon-button {
  display: inline-flex;
}

.icon-button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-button:hover,
.notice-footer button:hover,
.key-panel button:hover,
.key-row button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.icon-button.is-active {
  color: #17131d;
  background: linear-gradient(180deg, #ffffff, #e8e8ea);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-shop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: end;
  min-height: 195px;
  padding: 28px 0 54px;
}

.hero-shop h1 {
  margin: 0 0 10px;
  font-weight: 760;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-shop p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.wallet-card,
.panel,
.stats-row article,
.modal-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at 72% 0, rgba(255, 255, 255, 0.035), transparent 13rem),
    var(--panel);
  box-shadow: 0 28px 92px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(44px) saturate(1.42) contrast(1.05);
  backdrop-filter: blur(44px) saturate(1.42) contrast(1.05);
}

.wallet-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    rgba(18, 18, 20, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 42px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(48px) saturate(1.45) contrast(1.05);
  backdrop-filter: blur(48px) saturate(1.45) contrast(1.05);
}

.wallet-user,
.wallet-guest {
  display: grid;
  gap: 10px;
}

.wallet-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.wallet-card strong {
  font-weight: 720;
  font-size: 2.35rem;
  line-height: 1;
}

.wallet-card button,
.submit {
  min-height: 44px;
  color: #17131d;
  font-weight: 760;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #e8e8ea);
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.submit:not(:disabled):hover {
  transform: translateY(-1px);
}

.topup-field {
  display: grid;
  gap: 8px;
}

.topup-field > label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 560;
}

.topup-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0fr);
  gap: 0;
  align-items: center;
  transition:
    grid-template-columns 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    gap 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.topup-action-row input {
  grid-column: 1 / -1;
  grid-row: 1;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 240ms ease;
}

.topup-action-row .submit {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 14px;
}

[data-form="topup"].topup-pending .topup-action-row {
  grid-template-columns: minmax(0, 1fr) minmax(128px, 0.44fr);
  gap: 10px;
}

[data-form="topup"].topup-pending .topup-action-row input {
  grid-column: 1;
  transform: scaleX(0.992);
  transform-origin: left center;
}

[data-form="topup"].topup-pending .topup-action-row .submit {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
}

[data-form="topup"].topup-pending .submit {
  color: #fff;
  border: 1px solid rgba(255, 75, 98, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 36, 82, 0.95), rgba(151, 20, 38, 0.92)),
    rgba(255, 36, 82, 0.22);
  box-shadow: 0 18px 36px rgba(255, 36, 82, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: topup-cancel-rise 260ms ease both;
}

[data-form="topup"].topup-pending .submit:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(255, 36, 82, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

@keyframes topup-cancel-rise {
  from {
    opacity: 0.72;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats-row article {
  position: relative;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  min-height: 110px;
  padding: 16px 18px 18px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.012)),
    rgba(18, 18, 20, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 36px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(48px) saturate(1.45) contrast(1.05);
  backdrop-filter: blur(48px) saturate(1.45) contrast(1.05);
}

.stats-row article::after {
  display: none;
}

.stats-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 460;
}

.stats-row span svg {
  width: 20px;
  height: 20px;
  padding: 4px;
  color: #d8d2de;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.075);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.stats-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
}

.stats-row strong {
  display: block;
  font-weight: 720;
  font-size: 2.2rem;
  line-height: 1;
}

.stats-row small {
  color: var(--muted);
  font-size: 0.84rem;
}

.notice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.9fr);
  gap: 0;
  overflow: hidden;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.012)),
    rgba(18, 18, 20, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 14px 44px rgba(0, 0, 0, 0.19);
  -webkit-backdrop-filter: blur(50px) saturate(1.45) contrast(1.05);
  backdrop-filter: blur(50px) saturate(1.45) contrast(1.05);
}

.panel {
  padding: 28px 30px;
}

.notice-grid .panel {
  border: 0;
  border-radius: 0;
  padding: 22px 30px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.notice-grid .recent {
  border-left: 1px solid var(--line);
}

.panel-title {
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title h2,
.section-head h2 {
  margin: 0;
  font-weight: 620;
  font-size: 1.08rem;
}

.square-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 620;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.announcement {
  min-height: 215px;
}

.announcement p {
  max-width: 780px;
  margin: 0;
  color: #e5e5e8;
  font-size: 0.92rem;
  font-weight: 430;
  line-height: 1.75;
}

.notice-footer {
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
}

.notice-footer span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 560;
}

.admin-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 18px;
  color: #f5f5f6;
  font-weight: 620;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.admin-capsule svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-capsule:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
}

.notice-footer .admin-capsule {
  min-width: 136px;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.notice-footer .admin-capsule:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.recent-list {
  display: grid;
  gap: 0;
  margin-top: 2px;
}

.home-topups-list {
  overflow: hidden;
}

@media (min-width: 621px) {
  .home-topups-list .topup-recent-item {
    grid-template-columns: 34px minmax(72px, 1fr) minmax(92px, 1.05fr) minmax(72px, 0.8fr) minmax(84px, 0.85fr);
    gap: 8px 10px;
    min-height: 46px;
    padding: 8px 0;
  }
}

.home-topups-list.is-animating .topup-recent-item.topup-shift {
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.home-topups-list .topup-recent-item.topup-enter {
  animation: topupRowEnter 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes topupRowEnter {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.recent-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.recent-main img {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.recent-copy {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 5px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  line-height: 1.25;
  white-space: nowrap;
}

.recent-copy b {
  color: #fff;
  font-weight: 720;
}

.recent-copy em {
  color: #85818d;
  font-style: normal;
  font-weight: 520;
}

.recent-copy i {
  color: #79f2bd;
  font-style: normal;
  font-weight: 720;
}

.recent-item strong {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 480;
}

.muted {
  margin: 0;
  color: var(--soft);
}

.section-head {
  gap: 12px;
  justify-content: flex-start;
  width: 100%;
  margin: 48px 0 20px;
}

.section-head span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line), transparent);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 66px;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(30px) saturate(1.25);
  backdrop-filter: blur(30px) saturate(1.25);
}

.category-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  height: auto;
  min-height: 180px;
  padding: 50px 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.066), rgba(255, 255, 255, 0.018)),
    rgba(20, 20, 23, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 42px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(36px) saturate(1.3);
  backdrop-filter: blur(36px) saturate(1.3);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    min-height 260ms ease;
}

button.category-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.category-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 48px;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48) 0 54px, transparent 54px),
    rgba(255, 255, 255, 0.018);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card::after {
  display: none;
}

.category-card:hover {
  z-index: 2;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 52px rgba(0, 0, 0, 0.24);
}

.category-card div {
  min-width: 0;
}

.category-card div,
.category-card span {
  position: relative;
}

.category-card small {
  display: inline-block;
  margin-bottom: 8px;
  color: #f7f2f9;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateY(14px);
  transition: transform 240ms ease;
}

.category-card strong {
  display: block;
  max-width: 420px;
  font-weight: 760;
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
  line-height: 0.98;
  text-shadow: none;
  transform: translateY(14px);
  transition: transform 260ms ease 20ms;
}

.category-card p {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition:
    max-height 260ms ease,
    margin 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.category-card p:nth-of-type(1) {
  transition-delay: 70ms;
}

.category-card p:nth-of-type(2) {
  transition-delay: 130ms;
}

.category-card p:nth-of-type(3) {
  transition-delay: 190ms;
}

.category-card:hover small,
.category-card:hover strong,
.category-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

.category-card:hover p {
  max-height: 4.2em;
  margin: 6px 0 0;
}

.category-card span {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  color: #090a0c;
  font-weight: 760;
  background: #fff;
  clip-path: polygon(16% 0, 100% 0, 86% 100%, 0 100%);
  box-shadow: none;
  transform: translateX(10px);
  transition: transform 240ms ease;
}

.category-card:hover span {
  transform: translateX(0) scale(1.03);
}

.wallet-card,
.panel,
.stats-row article,
.notice-grid,
.category-card,
.shop-card,
.admin-stats article,
.admin-form,
.admin-list-item,
.admin-tabs,
.profile-page .panel,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row {
  background-color: rgba(18, 18, 20, 0.16);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.012));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}

.footer {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: auto;
  padding: 18px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.056), rgba(255, 255, 255, 0.024)),
    rgba(26, 23, 34, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(24px) saturate(1.12);
  font-size: 0.78rem;
}

.footer div {
  display: grid;
  gap: 4px;
}

.footer strong {
  color: var(--text);
  font-size: 0.92rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: #d9d9de;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.footer a:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 4, 9, 0.66);
  backdrop-filter: blur(18px) saturate(1.12);
}

.modal-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(440px, 100%);
  padding: 28px;
}

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.eyebrow {
  margin: 0;
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-card h2 {
  margin: 0 0 6px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 560;
}

input,
textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.025)),
    rgba(21, 19, 30, 0.64);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

input {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

input:disabled,
textarea:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
}

.link-button {
  color: var(--muted);
  border: 0;
  background: transparent;
}

.form-message {
  margin: 0;
  color: var(--mint);
  font-size: 0.9rem;
}

.form-message:empty {
  display: none;
}

.payment-box,
.profile-grid,
.key-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.024)),
    rgba(22, 19, 29, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.payment-box {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 14px 14px 16px;
}

[data-form="topup"].topup-pending .payment-box {
  animation: payment-reveal 320ms ease both;
}

.payment-qr {
  width: min(238px, 100%);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}

.payment-box strong {
  margin-top: 2px;
}

.payment-box span,
.payment-box small {
  color: var(--muted);
}

@keyframes payment-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(96px, 32%) minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
}

.profile-grid span,
.profile-grid strong {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.18);
}

.profile-grid span {
  color: var(--muted);
}

.profile-grid strong {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.key-panel {
  padding: 16px;
}

.key-panel > div:first-child,
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.key-panel h3 {
  margin: 0;
}

.key-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.key-row {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.key-row div {
  display: grid;
  gap: 4px;
}

.key-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-page,
.shop-page,
.admin-page {
  padding: 42px 0 78px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.admin-stats article,
.admin-form,
.admin-list-item,
.admin-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018)),
    rgba(30, 25, 39, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 14px 42px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(32px) saturate(1.24);
  backdrop-filter: blur(32px) saturate(1.24);
}

.admin-stats article {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.admin-stats span,
.admin-list-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-stats strong {
  font-size: 2rem;
  line-height: 1;
}

.admin-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin: 4px 0 16px;
}

.admin-tabs button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}

.admin-tabs button.is-active {
  color: #17131d;
  border-color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, #fff, #e8e8ea);
}

.admin-panel {
  display: grid;
  gap: 14px;
}

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

.admin-form h2 {
  margin: 0;
  font-size: 1.1rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-form-grid .wide {
  grid-column: span 2;
}

.admin-license-output {
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.55;
}

.admin-form select,
.admin-user-row select {
  width: 100%;
  min-height: 44px;
  padding: 0 42px 0 13px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  outline: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018)),
    rgba(22, 22, 25, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 34px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  backdrop-filter: blur(28px) saturate(1.25);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(245, 245, 247, 0.78) 50%),
    linear-gradient(135deg, rgba(245, 245, 247, 0.78) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018)),
    linear-gradient(180deg, rgba(26, 26, 29, 0.72), rgba(14, 14, 16, 0.58));
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%,
    0 0,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%,
    100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.admin-form select:hover,
.admin-user-row select:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 40px rgba(0, 0, 0, 0.22);
}

.admin-form select:focus,
.admin-user-row select:focus {
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 0 18px 46px rgba(0, 0, 0, 0.25);
}

.admin-form select option,
.admin-user-row select option {
  color: #f5f5f7;
  background: #151517;
}

.admin-check {
  align-content: center;
  grid-template-columns: auto 1fr;
  display: grid;
}

.admin-check input {
  width: auto;
  min-height: auto;
}

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

.admin-actions .submit {
  min-width: 150px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.admin-license-row {
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
}

.admin-list-item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-thumb-placeholder {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-list-item b {
  display: block;
}

.admin-list-item em {
  color: #a8a8ae;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-list-item em.is-on {
  color: #f2f2f4;
}

.admin-table-head,
.admin-search,
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-table-head h2 {
  margin: 0 0 4px;
}

.admin-search {
  justify-content: flex-end;
}

.admin-search input {
  width: min(280px, 50vw);
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px 110px 120px 120px auto auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
    rgba(30, 25, 39, 0.2);
}

.admin-user-row > div {
  display: grid;
  gap: 4px;
  align-self: center;
}

.admin-user-row b {
  color: var(--text);
}

.admin-user-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-user-row label {
  gap: 5px;
  font-size: 0.78rem;
}

.admin-user-row input,
.admin-user-row select {
  min-height: 36px;
  border-radius: 8px;
}

.admin-pagination {
  justify-content: center;
  padding-top: 4px;
}

.admin-pagination span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-capsule.danger {
  color: #d7d7dc;
  border-color: rgba(255, 255, 255, 0.18);
}

.drag-handle {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  cursor: grab;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.category-sort-item {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

.category-sort-item.is-dragging {
  opacity: 0.55;
}

.tag-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--tag-color);
  box-shadow: 0 0 24px color-mix(in srgb, var(--tag-color), transparent 50%);
}

.shop-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.shop-kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.shop-toolbar h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1;
}

.shop-toolbar h1 b {
  font: inherit;
}

.shop-toolbar h1 span {
  color: var(--soft);
  font-weight: 400;
}

.shop-toolbar h1::first-letter {
  color: var(--text);
}

.shop-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  color: #f3f3f5;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018)),
    rgba(22, 22, 25, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 34px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  backdrop-filter: blur(28px) saturate(1.25);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.shop-filter:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 278px));
  gap: 16px;
  align-items: stretch;
}

.shop-grid.is-category-list,
.shop-grid.is-empty {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-category-card {
  min-height: 171px;
  height: auto;
  padding-top: 46px;
}

.shop-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.055), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.026)),
    rgba(18, 18, 20, 0.64);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(26px) saturate(1.12);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 28px 86px rgba(255, 255, 255, 0.07), 0 24px 70px rgba(0, 0, 0, 0.4);
}

.shop-card.is-muted {
  filter: saturate(0.55);
}

.shop-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.shop-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shop-badges span {
  padding: 4px 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.shop-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.36));
  pointer-events: none;
}

.shop-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 220ms ease;
}

.shop-cover-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--soft);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 58%),
    rgba(255, 255, 255, 0.026);
  font-size: 0.82rem;
  font-weight: 650;
}

.shop-card:hover .shop-cover img {
  transform: scale(1.055);
}

.shop-info {
  display: grid;
  gap: 10px;
}

.shop-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.shop-info h2 {
  margin: 0;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.discount-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: #ff8ea8;
  border: 1px solid rgba(255, 72, 112, 0.46);
  border-radius: 8px;
  background: rgba(255, 45, 94, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 22px rgba(255, 45, 94, 0.08);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
}

.shop-info p {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.price-row strong {
  color: var(--muted);
  font-size: 1.08rem;
}

.stock-pill {
  justify-self: start;
  min-height: 22px;
  padding: 3px 9px;
  color: #69f0b6;
  border: 1px solid rgba(80, 255, 176, 0.38);
  border-radius: 8px;
  background: rgba(69, 255, 181, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(69, 255, 181, 0.07);
  font-size: 0.72rem;
  font-weight: 800;
}

.stock-pill.is-empty {
  color: #9a9aa1;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.stock-pill.is-soon {
  color: #c9c9cf;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.shop-info button {
  min-height: 40px;
  color: #111113;
  font-weight: 760;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #dddddf);
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.shop-info button:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.profile-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.profile-hero p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: start;
}

.profile-layout .profile-card:last-child {
  grid-column: 1 / -1;
}

.profile-page .panel,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.012)),
    rgba(18, 18, 20, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.052), 0 14px 42px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(52px) saturate(1.48) contrast(1.06);
  backdrop-filter: blur(52px) saturate(1.48) contrast(1.06);
}

.profile-page .profile-card {
  padding: 24px;
}

.profile-page .profile-hero {
  padding: 28px 30px;
}

.profile-page .profile-grid {
  gap: 0;
  overflow: hidden;
}

.profile-page .profile-grid span,
.profile-page .profile-grid strong {
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.profile-page .profile-grid span:nth-last-child(-n + 2),
.profile-page .profile-grid strong:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.profile-page .key-panel {
  padding: 18px;
}

.profile-page .key-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.012);
}

.profile-card h2 {
  margin: 0 0 16px;
}

.toast-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 44px));
  pointer-events: none;
}

.toast {
  display: grid;
  gap: 4px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  backdrop-filter: blur(22px);
  animation: toast-in 220ms ease both;
}

.toast strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.toast span {
  font-size: 0.86rem;
}

.toast.success {
  border-color: rgba(85, 246, 179, 0.42);
}

.toast.error {
  border-color: rgba(255, 120, 148, 0.52);
}

.toast.info {
  border-color: rgba(120, 186, 255, 0.48);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.cookie-banner {
  position: fixed;
  right: auto;
  bottom: 22px;
  left: 22px;
  z-index: 20;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px 14px;
  width: min(560px, calc(100% - 44px));
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 255, 255, 0.07), transparent 12rem),
    rgba(11, 11, 14, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(26px);
}

.cookie-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #f4f4f5;
  font-size: 1.15rem;
  font-weight: 950;
}

.cookie-copy h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.3;
}

.cookie-copy p {
  margin: 0;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 10px;
  padding-top: 4px;
}

.cookie-actions button {
  min-height: 42px;
  padding: 0 20px;
  font-weight: 900;
  border-radius: 8px;
}

.cookie-accept {
  color: #111113;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, #ffffff, #dedee1);
  box-shadow: 0 14px 38px rgba(255, 255, 255, 0.1);
}

.cookie-minimal {
  color: #f7f7f8;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.wallet-card,
.stats-row article,
.notice-grid,
.category-card,
.shop-card,
.admin-stats article,
.admin-form,
.admin-list-item,
.admin-tabs,
.profile-page .panel,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row {
  background-color: rgba(18, 18, 20, 0.12) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.008)) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
}

.notice-grid .panel {
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Final modal lock: this must stay at EOF so older modal styles cannot win. */
.modal {
  background: rgba(4, 4, 5, 0.24) !important;
  -webkit-backdrop-filter: blur(10px) saturate(135%) !important;
  backdrop-filter: blur(10px) saturate(135%) !important;
}

.modal::before {
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  content: "" !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 43% 26%, rgba(188, 72, 184, 0.28), transparent 16rem),
    radial-gradient(circle at 18% 22%, rgba(219, 70, 86, 0.18), transparent 18rem),
    radial-gradient(circle at 78% 74%, rgba(34, 200, 190, 0.13), transparent 20rem) !important;
  filter: blur(22px) !important;
}

.modal-card {
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.17) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(10, 10, 12, 0.52) 48%, rgba(255, 255, 255, 0.032)) !important;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.52),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.065) !important;
  -webkit-backdrop-filter: blur(38px) saturate(178%) !important;
  backdrop-filter: blur(38px) saturate(178%) !important;
}

.modal-card .close {
  border-radius: 8px !important;
  border-color: rgba(255, 255, 255, 0.17) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.05) !important;
}

.modal-card input,
.modal-card textarea {
  border-radius: 8px !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(8, 8, 10, 0.34) !important;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.04) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
  backdrop-filter: blur(18px) saturate(150%) !important;
}

.modal-card input:focus,
.modal-card textarea:focus {
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.055),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.06) !important;
}

.modal-card .submit,
.modal-card .cookie-accept,
.modal-card .payment-box {
  border-radius: 8px !important;
}

.modal-card .payment-box {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(9, 9, 11, 0.42) 48%, rgba(255, 255, 255, 0.026)) !important;
}

/* Notice divider lock: keep the two home panels clearly separated. */
.notice-grid {
  position: relative !important;
}

.notice-grid .recent {
  border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 900px) {
  .notice-grid .recent {
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
}

/* Modal dark-glass lock: align overlays with the final site theme. */
.modal {
  background: rgba(4, 4, 5, 0.24) !important;
  -webkit-backdrop-filter: blur(10px) saturate(135%) !important;
  backdrop-filter: blur(10px) saturate(135%) !important;
}

.modal::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 43% 26%, rgba(188, 72, 184, 0.28), transparent 16rem),
    radial-gradient(circle at 18% 22%, rgba(219, 70, 86, 0.18), transparent 18rem),
    radial-gradient(circle at 78% 74%, rgba(34, 200, 190, 0.13), transparent 20rem);
  filter: blur(22px);
}

.modal-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(10, 10, 12, 0.52) 48%, rgba(255, 255, 255, 0.032)) !important;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.52),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.065) !important;
  -webkit-backdrop-filter: blur(38px) saturate(178%) !important;
  backdrop-filter: blur(38px) saturate(178%) !important;
}

.modal-card .close {
  border-radius: 8px !important;
  border-color: rgba(255, 255, 255, 0.17) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.05) !important;
}

.modal-card input,
.modal-card textarea {
  border-radius: 8px !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(8, 8, 10, 0.34) !important;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.04) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
  backdrop-filter: blur(18px) saturate(150%) !important;
}

.modal-card input:focus,
.modal-card textarea:focus {
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.055),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.06) !important;
}

.modal-card .submit,
.modal-card .cookie-accept {
  border-radius: 8px !important;
}

.modal-card .payment-box {
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(9, 9, 11, 0.42) 48%, rgba(255, 255, 255, 0.026)) !important;
}

@media (max-width: 920px) {
  .hero-shop,
  .notice-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-grid {
    grid-template-columns: minmax(84px, 36%) minmax(0, 1fr);
  }

  .profile-grid strong {
    font-size: 0.94rem;
  }

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

  .admin-list-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .admin-user-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-row > div {
    grid-column: 1 / -1;
  }

  .admin-list-item .admin-capsule,
  .admin-list-item em {
    justify-self: start;
  }

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

  .notice-grid .recent {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 630px) {
  .shell {
    width: min(100% - 24px, 1340px);
    padding-top: 18px;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
    transition:
      border-color 180ms ease,
      background 180ms ease,
      box-shadow 180ms ease;
  }

  .topbar.menu-open .menu-toggle {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.095);
    box-shadow:
      0 18px 54px rgba(0, 0, 0, 0.34),
      0 0 36px rgba(255, 120, 148, 0.1);
  }

  .nav-actions {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 8;
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr;
    justify-content: stretch;
    justify-items: stretch;
    align-items: stretch;
    width: min(340px, calc(100vw - 24px));
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 34%),
      radial-gradient(circle at 18% 0, rgba(255, 120, 148, 0.12), transparent 11rem),
      rgba(10, 10, 13, 0.96);
    box-shadow:
      0 26px 86px rgba(0, 0, 0, 0.58),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .nav-actions::before {
    display: block;
    width: 100%;
    grid-column: 1 / -1;
    padding: 8px 10px 12px;
    color: var(--soft);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    content: "Navigation";
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
  }

  .icon-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-self: stretch;
    width: 100%;
    min-height: 48px;
    padding: 0 14px 0 16px;
    color: #e8e8ec;
    text-align: left;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    transition:
      background 180ms ease,
      border-color 180ms ease,
      transform 180ms ease;
  }

  .icon-button::after {
    color: var(--soft);
    content: "›";
    font-size: 1.1rem;
    line-height: 1;
  }

  .icon-button:hover {
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
  }

  .icon-button.is-active {
    color: #101114;
    border-color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(180deg, #ffffff, #e9e9ec);
    box-shadow:
      0 14px 38px rgba(255, 255, 255, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .icon-button.is-active::after {
    color: #101114;
  }

  .topbar.menu-open .nav-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  [data-form="topup"].topup-pending .topup-action-row {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 0.48fr);
    gap: 8px;
  }

  [data-form="topup"].topup-pending .topup-action-row .submit {
    padding-inline: 10px;
    font-size: 0.88rem;
  }

  .hero-shop {
    padding-bottom: 28px;
  }

  .shop-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .shop-kicker {
    margin-bottom: 16px;
  }

  .shop-filter {
    align-self: flex-start;
  }

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

  .shop-card {
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
  }

  .shop-cover {
    border-radius: 10px;
  }

  .shop-badges {
    top: 6px;
    left: 6px;
    gap: 4px;
  }

  .shop-badges span {
    padding: 3px 6px;
    font-size: 0.62rem;
  }

  .shop-info {
    gap: 6px;
  }

  .shop-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .shop-info h2 {
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .discount-pill {
    font-size: 0.62rem;
    padding: 3px 6px;
  }

  .shop-info p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .price-row strong {
    font-size: 0.9rem;
  }

  .stock-pill {
    min-height: 20px;
    padding: 2px 7px;
    font-size: 0.64rem;
  }

  .shop-info button {
    min-height: 34px;
    padding-inline: 8px;
    border-radius: 10px;
    font-size: 0.76rem;
  }

  .shop-category-card {
    min-height: 148px;
    padding-top: 40px;
  }

  .admin-stats,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-grid .wide {
    grid-column: auto;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-table-head,
  .admin-search,
  .admin-pagination {
    align-items: stretch;
    flex-direction: column;
  }

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

  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .panel,
  .modal-card {
    padding: 22px;
  }

  .notice-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 34px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .profile-hero .admin-capsule {
    width: 100%;
    justify-content: center;
  }

  .profile-page {
    padding: 28px 0 56px;
  }

  .profile-page .profile-card,
  .profile-page .profile-hero {
    padding: 18px 16px;
  }

  .profile-page .profile-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .profile-page .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-page .profile-grid span,
  .profile-page .profile-grid strong {
    padding-left: 14px;
    padding-right: 14px;
    border-bottom: 0;
  }

  .profile-page .profile-grid span {
    padding-top: 12px;
    padding-bottom: 4px;
    font-size: 0.82rem;
  }

  .profile-page .profile-grid strong {
    padding-top: 0;
    padding-bottom: 12px;
    font-size: 0.98rem;
    font-weight: 650;
  }

  .profile-page .profile-grid strong:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  }

  .profile-card h2 {
    margin-bottom: 12px;
    font-size: 1.05rem;
  }

  .profile-page .key-panel {
    padding: 14px;
  }

  .key-panel > div:first-child,
  .key-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .key-panel button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .key-row {
    gap: 12px;
  }

  .key-row button {
    width: 100%;
    white-space: normal;
  }

  .recent-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
  }

  .topup-recent-head {
    display: none;
  }

  .topup-recent-item.recent-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    flex-direction: unset;
    gap: 4px 12px;
    padding: 12px 0;
  }

  .topup-cell-icon {
    grid-row: 1 / 3;
    align-self: center;
  }

  .topup-cell-user {
    grid-column: 2;
    grid-row: 1;
  }

  .topup-cell-amount {
    grid-column: 3;
    grid-row: 1;
  }

  .topup-cell-time {
    grid-column: 2;
    grid-row: 2;
  }

  .topup-cell-points {
    grid-column: 3;
    grid-row: 2;
  }

  .topup-cell-amount strong {
    text-align: right;
  }

  .topup-cell-points i {
    text-align: right;
  }

  .recent-main {
    width: 100%;
  }

  .category-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    min-height: 214px;
    height: auto;
    padding: 52px 22px 22px;
  }

  .category-card:hover {
    min-height: 214px;
  }

  .category-card strong {
    font-size: clamp(1.35rem, 6.2vw, 1.95rem);
  }

  .category-card:hover p {
    max-height: 5em;
  }

  .category-card span {
    width: 82px;
    height: 82px;
    font-size: 0.82rem;
    justify-self: end;
  }
}

/* Final glassmorphism override: keep this last so legacy dark rules cannot win. */
:root {
  color-scheme: dark;
  --bg: #070911;
  --panel: rgba(12, 15, 24, 0.34);
  --panel-soft: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f4f6ff;
  --muted: #aeb5c8;
  --soft: #727b92;
  --mint: #62efb7;
  --pink: #ff5f79;
  --violet: #9f98ff;
  --cyan: #54c8ff;
  --theme-text-safe: #eef2ff;
}

body {
  color: var(--text);
  background: linear-gradient(135deg, #070911 0%, #0d1020 46%, #140d19 100%);
}

body::before {
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(circle at 9% 18%, rgba(255, 198, 0, 0.38) 0 4.4rem, transparent 4.5rem),
    radial-gradient(circle at 78% 8%, rgba(255, 95, 121, 0.58) 0 5.5rem, transparent 5.6rem),
    radial-gradient(circle at 84% 78%, rgba(84, 200, 255, 0.5) 0 7.2rem, transparent 7.3rem),
    radial-gradient(circle at 32% 72%, rgba(159, 152, 255, 0.42) 0 6.6rem, transparent 6.7rem),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) !important;
  background-size: auto, auto, auto, auto, 46px 46px, 46px 46px !important;
  mask-image: none !important;
}

body::after {
  z-index: 0;
  opacity: 0.92;
  background:
    linear-gradient(115deg, transparent 0 29%, rgba(255, 255, 255, 0.12) 29.1% 29.32%, transparent 29.5%),
    linear-gradient(115deg, transparent 0 67%, rgba(255, 255, 255, 0.09) 67.08% 67.28%, transparent 67.46%),
    radial-gradient(circle at 15% 82%, rgba(255, 198, 0, 0.24), transparent 10rem),
    radial-gradient(circle at 83% 10%, rgba(255, 95, 121, 0.24), transparent 11rem) !important;
  filter: blur(18px);
}

p,
.hero-shop p,
.announcement p,
.shop-info p,
.profile-hero p:last-child,
.muted,
.stats-row small,
.wallet-card span,
.recent-item strong,
.key-row span,
.admin-list-item span,
.footer,
.footer a,
label {
  color: var(--muted) !important;
}

h1,
h2,
h3,
strong,
.brand-pill,
.panel-title h2,
.section-head h2,
.shop-toolbar h1,
.shop-info h2,
.profile-hero h1,
.footer strong,
.recent-item b,
.topup-recent-item b,
.icon-button,
.notice-footer button,
.key-panel button,
.key-row button {
  color: var(--text) !important;
}

.nav-actions,
.menu-toggle,
.wallet-card,
.panel,
.stats-row article,
.notice-grid,
.category-card,
.shop-card,
.admin-stats article,
.admin-form,
.admin-list-item,
.admin-tabs,
.profile-page .panel,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row,
.footer,
.modal-card,
.cookie-banner,
.payment-box {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(12, 15, 24, 0.34) !important;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.24),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.08) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
  backdrop-filter: blur(26px) saturate(180%) !important;
}

.brand-pill span,
.square-icon,
.stats-row span svg,
.drag-handle {
  color: #f4f6ff !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 0 0 0.5px rgba(255, 255, 255, 0.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
  backdrop-filter: blur(18px) saturate(170%) !important;
}

.notice-grid .panel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.notice-grid .recent {
  border-left: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-top: 0 !important;
}

@media (max-width: 920px) {
  .notice-grid .recent {
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  }
}

.category-card::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 54px, transparent 54px),
    rgba(255, 255, 255, 0.04) !important;
  border-bottom-color: rgba(255, 255, 255, 0.11) !important;
}

.category-card::after {
  display: none !important;
}

.category-card span {
  color: #10131d !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22) !important;
}

.icon-button:hover,
.notice-footer button:hover,
.key-panel button:hover,
.key-row button:hover,
.footer a:hover,
.shop-filter:hover {
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.icon-button.is-active,
.wallet-card button,
.submit,
.shop-info button,
.admin-tabs button.is-active,
.cookie-accept {
  color: #10131d !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.84) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 0 0 0.5px rgba(255, 255, 255, 0.34) !important;
}

input,
textarea,
.admin-form select,
.admin-user-row select,
.shop-filter,
.footer a,
.cookie-minimal {
  color: var(--text) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 8px 22px rgba(0, 0, 0, 0.18) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
  backdrop-filter: blur(18px) saturate(170%) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(238, 242, 255, 0.46);
}

input:focus,
textarea:focus,
.admin-form select:focus,
.admin-user-row select:focus {
  border-color: rgba(109, 110, 232, 0.72) !important;
  box-shadow: 0 0 0 4px rgba(109, 110, 232, 0.15), inset 0 0 0 0.5px rgba(255, 255, 255, 0.34) !important;
}

.discount-pill {
  color: #d72645 !important;
  border-color: rgba(242, 73, 92, 0.4) !important;
  background: rgba(242, 73, 92, 0.14) !important;
}

.stock-pill {
  color: #078c59 !important;
  border-color: rgba(19, 184, 119, 0.36) !important;
  background: rgba(19, 184, 119, 0.14) !important;
}

.stock-pill.is-empty,
.stock-pill.is-soon {
  color: #8d6470 !important;
  border-color: rgba(141, 100, 112, 0.24) !important;
  background: rgba(141, 100, 112, 0.1) !important;
}

.modal {
  background: rgba(197, 208, 255, 0.34) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
  backdrop-filter: blur(18px) saturate(170%) !important;
}

.toast:not(.success):not(.error):not(.info):not(.warning) {
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.54) !important;
  background: rgba(255, 255, 255, 0.34) !important;
  box-shadow: 0 18px 52px rgba(92, 107, 148, 0.18) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
}

/* Final hairline pass: keep borders crisp and slim. */
.nav-actions,
.wallet-card,
.stats-row article,
.notice-grid,
.category-card,
.shop-card,
.admin-stats article,
.admin-form,
.admin-list-item,
.admin-tabs,
.profile-page .panel,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row,
.footer,
.modal-card,
.cookie-banner,
.payment-box {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 12px 32px rgba(92, 107, 148, 0.1),
    inset 0 0 0 0.5px rgba(70, 82, 125, 0.08) !important;
}

.stats-row article,
.notice-grid,
.wallet-card,
.category-card,
.shop-card,
.profile-page .panel {
  border-radius: 13px !important;
}

.stats-row article {
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 10px 26px rgba(92, 107, 148, 0.08),
    inset 0 0 0 0.5px rgba(70, 82, 125, 0.07) !important;
}

/* Dark glass polish: calmer grid and brand mark. */
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(84, 200, 255, 0.1), transparent 26rem),
    radial-gradient(circle at 76% 0%, rgba(255, 95, 121, 0.11), transparent 25rem),
    linear-gradient(135deg, #070911 0%, #0c0f1d 52%, #080a11 100%) !important;
}

body::before {
  opacity: 1 !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px) !important;
  background-size: 64px 64px !important;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62) 58%, transparent 100%) !important;
}

body::after {
  opacity: 0.72 !important;
  background:
    linear-gradient(115deg, transparent 0 27%, rgba(84, 200, 255, 0.12) 27.12% 27.32%, transparent 27.5%),
    linear-gradient(115deg, transparent 0 66%, rgba(255, 95, 121, 0.1) 66.1% 66.3%, transparent 66.48%),
    radial-gradient(circle at 18% 10%, rgba(84, 200, 255, 0.12), transparent 18rem),
    radial-gradient(circle at 82% 12%, rgba(255, 95, 121, 0.12), transparent 18rem) !important;
  filter: blur(10px) !important;
}

.brand-pill {
  color: #f7f8ff !important;
}

.brand-pill span {
  color: #141620 !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #a9ffe1 0%, #ffffff 48%, #ff8ab1 100%) !important;
  box-shadow: 0 14px 36px rgba(255, 142, 177, 0.18), 0 10px 28px rgba(84, 200, 255, 0.12) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.nav-actions,
.wallet-card,
.stats-row article,
.notice-grid,
.category-card,
.shop-card,
.admin-stats article,
.admin-form,
.admin-list-item,
.admin-tabs,
.profile-page .panel,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row,
.footer,
.modal-card,
.cookie-banner,
.payment-box {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(12, 15, 24, 0.34) !important;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.22),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.07) !important;
}

.stats-row article {
  background: rgba(12, 15, 24, 0.32) !important;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.2),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.065) !important;
}

/* True dark glass: black surface, color only from the blurred blobs behind it. */
body {
  background: #050506 !important;
}

body::before {
  opacity: 1 !important;
  background:
    radial-gradient(circle at 10% 24%, rgba(222, 68, 88, 0.78) 0 8rem, transparent 8.1rem),
    radial-gradient(circle at 46% 24%, rgba(193, 75, 184, 0.72) 0 7rem, transparent 7.1rem),
    radial-gradient(circle at 12% 84%, rgba(145, 68, 210, 0.72) 0 9rem, transparent 9.1rem),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) !important;
  background-size: auto, auto, auto, 72px 72px, 72px 72px !important;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45) 62%, transparent 100%) !important;
}

body::after {
  opacity: 0.72 !important;
  background:
    radial-gradient(circle at 20% 20%, rgba(222, 68, 88, 0.22), transparent 18rem),
    radial-gradient(circle at 50% 18%, rgba(193, 75, 184, 0.2), transparent 17rem),
    radial-gradient(circle at 14% 78%, rgba(145, 68, 210, 0.2), transparent 20rem) !important;
  filter: blur(18px) !important;
}

.nav-actions,
.wallet-card,
.stats-row article,
.notice-grid,
.category-card,
.shop-card,
.admin-stats article,
.admin-form,
.admin-list-item,
.admin-tabs,
.profile-page .panel,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row,
.footer,
.modal-card,
.cookie-banner,
.payment-box {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(16, 16, 18, 0.28) !important;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.34),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.06) !important;
  -webkit-backdrop-filter: blur(30px) saturate(165%) !important;
  backdrop-filter: blur(30px) saturate(165%) !important;
}

.stats-row article {
  background: rgba(16, 16, 18, 0.24) !important;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.28),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.055) !important;
}

.notice-grid .panel {
  background: transparent !important;
  box-shadow: none !important;
}

.icon-button.is-active,
.wallet-card button,
.submit,
.shop-info button,
.admin-tabs button.is-active,
.cookie-accept {
  color: #0d0e12 !important;
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Locked dark glassmorphism pass: black scene, sharp ribbon lines, no navy panels. */
:root {
  color-scheme: dark !important;
  --bg: #040405 !important;
  --panel: rgba(12, 12, 14, 0.42) !important;
  --panel-soft: rgba(255, 255, 255, 0.035) !important;
  --line: rgba(255, 255, 255, 0.14) !important;
  --line-strong: rgba(255, 255, 255, 0.22) !important;
  --text: #f7f7f8 !important;
  --muted: rgba(247, 247, 248, 0.62) !important;
  --soft: rgba(247, 247, 248, 0.42) !important;
  --theme-text-safe: #f7f7f8 !important;
}

html,
body {
  background: #000000 !important;
}

body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  background:
    #000000 url("/assets/bg-ribbon.svg") center / cover no-repeat !important;
  filter: none !important;
  transform: none !important;
  mask-image: none !important;
}

body::after {
  display: none !important;
  content: none !important;
}

.nav-actions,
.wallet-card,
.stats-row article,
.notice-grid,
.category-card,
.shop-card,
.shop-category-card,
.admin-stats article,
.admin-form,
.admin-list-item,
.admin-tabs,
.profile-page .panel,
.profile-page .profile-grid,
.profile-page .key-panel,
.profile-page .key-row,
.footer,
.modal-card,
.cookie-banner,
.payment-box {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(12, 12, 14, 0.46) 46%, rgba(255, 255, 255, 0.03)) !important;
  border: 1px solid rgba(255, 255, 255, 0%) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.46),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.06) !important;
  -webkit-backdrop-filter: blur(34px) saturate(175%) !important;
  backdrop-filter: blur(34px) saturate(175%) !important;
}

.stats-row article,
.wallet-card,
.category-card,
.shop-card,
.shop-category-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(10, 10, 12, 0.38) 52%, rgba(255, 255, 255, 0.025)) !important;
}

.notice-grid .panel {
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Final modal lock: this must stay at EOF so older modal styles cannot win. */
.modal {
  background: rgba(0, 0, 0, 0.48) !important;
  -webkit-backdrop-filter: blur(14px) saturate(120%) !important;
  backdrop-filter: blur(14px) saturate(120%) !important;
}

.modal::before {
  display: none !important;
  content: none !important;
  background: none !important;
  filter: none !important;
}

.modal-card {
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.17) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(10, 10, 12, 0.52) 48%, rgba(255, 255, 255, 0.032)) !important;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.52),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.065) !important;
  -webkit-backdrop-filter: blur(38px) saturate(178%) !important;
  backdrop-filter: blur(38px) saturate(178%) !important;
}

.modal-card .close {
  border-radius: 8px !important;
  border-color: rgba(255, 255, 255, 0.17) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.05) !important;
}

.modal-card input,
.modal-card textarea {
  border-radius: 8px !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(8, 8, 10, 0.34) !important;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.04) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
  backdrop-filter: blur(18px) saturate(150%) !important;
}

.modal-card input:focus,
.modal-card textarea:focus {
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.055),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.06) !important;
}

.modal-card .submit,
.modal-card .cookie-accept,
.modal-card .payment-box {
  border-radius: 8px !important;
}

.modal-card .payment-box {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(9, 9, 11, 0.42) 48%, rgba(255, 255, 255, 0.026)) !important;
}

.product-page {
  padding: 42px 0 78px;
}

.product-toolbar {
  margin-bottom: 16px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product-visual,
.product-content {
  padding: 24px;
}

.product-visual {
  display: grid;
  gap: 18px;
  align-content: start;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.product-header {
  margin: 0;
}

.product-cover {
  overflow: hidden;
  aspect-ratio: 1;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.product-facts div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.product-facts div:nth-child(2n) {
  border-right: 0;
}

.product-facts div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.product-facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-facts dd {
  margin: 0;
  font-weight: 650;
}

.product-detail-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.product-detail-panel h2 {
  margin: 0 0 14px;
}

.product-description-wrap {
  display: grid;
  gap: 14px;
}

.product-description-wrap.is-collapsed .product-description {
  overflow: hidden;
  max-height: 240px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.product-description-wrap.is-expanded .product-description {
  max-height: none;
}

.product-description {
  color: var(--text);
  line-height: 1.6;
}

.product-description p,
.product-description li {
  color: var(--muted);
}

.product-description img {
  max-width: 100%;
  border-radius: 12px;
}

.product-description-toggle {
  justify-self: center;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.product-description-toggle:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.product-description-toggle span {
  margin-left: 4px;
  opacity: 0.72;
}

.product-actions {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding-top: 0;
}

.turnstile-wrap {
  display: grid;
  justify-items: center;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.turnstile-wrap:empty {
  display: none;
}

.product-buy {
  width: 100%;
}

.product-page.is-product-loading [data-product-content] {
  display: none !important;
}

.product-page.is-product-loading [data-product-skeleton] {
  display: grid !important;
}

.product-page:not(.is-product-loading) [data-product-skeleton] {
  display: none !important;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-block {
  border-radius: 10px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0%,
      rgba(255, 255, 255, 0.09) 50%,
      rgba(255, 255, 255, 0.035) 100%
    );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-title {
  width: 72%;
  height: 34px;
  margin-bottom: 18px;
}

.skeleton-cover {
  width: 100%;
  aspect-ratio: 1;
}

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

.skeleton-fact {
  height: 52px;
}

.skeleton-detail {
  display: grid;
  gap: 12px;
}

.skeleton-detail .skeleton-line {
  height: 14px;
}

.skeleton-line-short {
  width: 58%;
}

.skeleton-buy {
  height: 46px;
  border-radius: 8px;
}

.topup-waiting {
  display: block;
  margin-top: 4px;
  color: #93c5fd;
  font-size: 0.86rem;
}

.topup-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
}

.topup-modal-title {
  min-width: 0;
}

.topup-modal-title h2 {
  margin: 0;
}

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

.topup-method {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(9, 9, 12, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
  backdrop-filter: blur(18px) saturate(1.28);
}

.topup-method:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
}

.topup-method.is-active {
  border-color: rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.028)),
    rgba(13, 13, 17, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 18px 52px rgba(0, 0, 0, 0.26);
}

.topup-method-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(26, 138, 95, 0.18);
  overflow: hidden;
}

.topup-method-icon.wallet {
  background: rgba(255, 111, 25, 0.14);
}

.topup-method-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.topup-method strong {
  display: block;
  overflow: hidden;
  color: #f5f5f7;
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: normal;
}

.topup-method small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
}

.topup-method i {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-weight: 700;
  font-size: 1.1rem;
  transition: opacity 180ms ease, transform 180ms ease;
}

.topup-method:hover i {
  transform: translateX(2px);
}

.topup-step-label {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  font-weight: 560;
}

.topup-viewport {
  width: 100%;
  min-width: 0;
}

.topup-step-select {
  display: block;
}

.topup-step-form {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}

[data-form="topup"].topup-on-form .topup-step-select {
  display: none;
}

[data-form="topup"].topup-on-form .topup-step-form {
  display: grid;
  animation: topup-step-in 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes topup-step-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.topup-back {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 620;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease;
}

.topup-back span {
  font-size: 1rem;
  line-height: 1;
}

.topup-back:hover {
  color: rgba(255, 255, 255, 0.9);
}

[data-form="topup"].topup-pending .topup-back {
  display: none;
}

.topup-intro {
  min-width: 0;
}

[data-modal="topup"] {
  align-items: safe center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

[data-modal="topup"] .modal-card {
  width: min(440px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: min(720px, calc(100dvh - 32px)) !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.wallet-topup-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(10, 10, 13, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 22px 70px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.34);
  backdrop-filter: blur(24px) saturate(1.34);
}

.wallet-topup-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-topup-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 128, 36, 0.22);
  border-radius: 12px;
  background: rgba(255, 128, 36, 0.12);
}

.wallet-topup-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.wallet-topup-head strong {
  display: block;
  color: #f7f7fb;
  font-size: 1rem;
}

.wallet-topup-head small,
.wallet-example {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.wallet-submit-disabled {
  opacity: 0.56;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.wallet-maintenance {
  margin: -8px 0 0;
  color: #ff5f76;
  font-size: 0.86rem;
  font-weight: 760;
  text-align: center;
}

.wallet-guide {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-guide > strong {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.wallet-guide ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wallet-guide li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.84rem;
  line-height: 1.55;
}

.wallet-guide li span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #ffd0a3;
  font-size: 0.72rem;
  font-weight: 820;
  border-radius: 999px;
  background: rgba(255, 128, 36, 0.18);
}

[data-form="topup"] .topup-close {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  cursor: pointer;
  pointer-events: auto;
}

[data-form="topup"].is-topup-success .topup-modal-head {
  align-items: center;
  margin-bottom: 14px;
}

[data-form="topup"].is-topup-success [data-topup-eyebrow] {
  display: none !important;
}

.topup-success {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: 100%;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.08);
}

[data-form="topup"].is-topup-success .topup-viewport,
[data-form="topup"].is-topup-success [data-topup-intro],
[data-form="topup"].is-topup-success [data-topup-methods],
[data-form="topup"].is-topup-success [data-message="topup"] {
  display: none !important;
}

[data-form="topup"].is-topup-success .payment-box {
  display: grid !important;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.topup-success-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
  font-size: 1.5rem;
  font-weight: 800;
}

.topup-success strong {
  color: #86efac;
  font-size: 1rem;
}

.topup-success-points {
  color: #86efac;
  font-size: 1rem;
  font-weight: 700;
}

.topup-success span {
  color: rgba(187, 247, 208, 0.88);
  font-size: 0.88rem;
}

.license-reveal {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.license-reveal code {
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-modal-card {
  width: min(420px, calc(100vw - 32px));
  gap: 18px;
}

.contact-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-modal-head h2 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.contact-modal-head p {
  margin: 0;
  color: var(--soft);
  font-size: 0.85rem;
}

.contact-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #101014;
  background: linear-gradient(135deg, #87ffd9, #ff7aa8);
  box-shadow: 0 12px 34px rgba(255, 122, 168, 0.22);
  font-weight: 900;
}

.contact-channel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.contact-channel:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.contact-channel-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #5865f2;
}

.contact-channel-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-channel strong,
.contact-channel small {
  display: block;
}

.contact-channel small {
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.8rem;
}

.contact-arrow {
  color: var(--soft);
  font-size: 1.1rem;
}

[data-modal="contact"] {
  place-items: center !important;
}

[data-modal="contact"] .contact-modal-card {
  display: grid !important;
  grid-template-rows: auto auto !important;
  align-content: start !important;
  width: min(420px, calc(100vw - 32px)) !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 20px 18px 18px !important;
  gap: 18px !important;
}

[data-modal="contact"] .contact-modal-head {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  padding-right: 38px !important;
}

[data-modal="contact"] .contact-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
}

[data-modal="contact"] .contact-channel {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 18px !important;
  min-height: 72px !important;
  padding: 12px !important;
}

[data-modal="contact"] .contact-channel-icon {
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

[data-modal="contact"] .contact-channel-icon .discord-logo {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  fill: #fff !important;
  stroke: none !important;
}

[data-modal="discord-popup"] {
  place-items: center !important;
}

.discord-popup-card {
  width: min(540px, calc(100vw - 32px)) !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.discord-popup-card img {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.discord-popup-close {
  top: -16px !important;
  right: -16px !important;
  z-index: 2 !important;
  border-radius: 999px !important;
  background: rgba(18, 18, 22, 0.82) !important;
}

.discord-popup-actions {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.discord-popup-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 700;
}

.discord-popup-check input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  accent-color: #5865f2;
}

.discord-popup-button {
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 44px;
  color: #101014;
  text-decoration: none;
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.16);
}

@media (max-width: 630px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-visual {
    justify-self: center;
    width: min(100%, 560px);
  }

  .product-facts {
    grid-template-columns: 1fr;
  }

  .product-facts div {
    border-right: 0;
  }

  .product-facts div:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .product-facts div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .product-visual,
  .product-content {
    padding: 18px 16px;
  }

  .product-visual {
    width: min(100%, 454px);
  }

  .product-cover {
    width: 100%;
    max-height: min(56vh, 420px);
  }

  .product-facts div {
    grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    align-items: center;
  }

  .product-facts dd {
    text-align: right;
  }
}

.profile-account {
  align-self: start;
}

.license-list-scroll {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.license-list-scroll::-webkit-scrollbar {
  width: 6px;
}

.license-list-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.license-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.license-card-head {
  display: grid;
  gap: 4px;
}

.license-card-head strong {
  font-size: 0.95rem;
}

.license-card-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.license-key-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.license-key-box code {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow-x: auto;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.84rem;
  color: #d7e8ff;
}

.license-copy {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.license-copy:hover {
  background: rgba(255, 255, 255, 0.1);
}

.license-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.license-card-foot > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.license-card-foot button {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.license-reset-cooldown {
  color: #fcd34d;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.profile-topups-list {
  display: grid;
  gap: 0;
}

@media (min-width: 621px) {
  .topup-recent-head,
  .topup-recent-item {
    display: grid;
    grid-template-columns: 40px minmax(92px, 1.15fr) minmax(108px, 1fr) minmax(88px, 0.85fr) minmax(96px, 0.9fr);
    align-items: center;
    gap: 10px 16px;
  }

  .topup-recent-item.recent-item {
    justify-content: unset;
    min-height: 52px;
    padding: 10px 0;
  }
}

.topup-recent-head {
  padding: 0 0 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topup-recent-head span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topup-recent-head span:last-child {
  text-align: right;
}

.topup-cell {
  min-width: 0;
}

.topup-cell-icon img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.topup-cell-user b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.topup-cell-time em {
  display: block;
  color: #85818d;
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 520;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.topup-cell-points i {
  display: block;
  color: #79f2bd;
  font-style: normal;
  font-weight: 720;
  font-size: 0.88rem;
  white-space: nowrap;
}

.topup-cell-amount strong {
  display: block;
  color: #f3f4f6 !important;
  font-size: 0.9rem;
  font-weight: 680;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.profile-topups-list .topup-recent-item:last-child {
  border-bottom: 0;
}

.profile-topups-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.profile-topups-nav span {
  color: var(--muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.profile-topups-nav button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Toast color lock: keep success/error/info readable on every theme pass. */
.toast.success {
  border-color: rgba(74, 222, 128, 0.42) !important;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(12, 15, 24, 0.94) 58%) !important;
  box-shadow:
    0 18px 58px rgba(0, 0, 0, 0.42),
    inset 3px 0 0 rgba(74, 222, 128, 0.88) !important;
}

.toast.success strong {
  color: #86efac !important;
}

.toast.success span {
  color: rgba(187, 247, 208, 0.82) !important;
}

.toast.error {
  border-color: rgba(251, 113, 133, 0.48) !important;
  background:
    linear-gradient(135deg, rgba(251, 113, 133, 0.14), rgba(12, 15, 24, 0.94) 58%) !important;
  box-shadow:
    0 18px 58px rgba(0, 0, 0, 0.42),
    inset 3px 0 0 rgba(251, 113, 133, 0.9) !important;
}

.toast.error strong {
  color: #fda4af !important;
}

.toast.error span {
  color: rgba(254, 205, 211, 0.84) !important;
}

.toast.info {
  border-color: rgba(96, 165, 250, 0.48) !important;
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(12, 15, 24, 0.94) 58%) !important;
  box-shadow:
    0 18px 58px rgba(0, 0, 0, 0.42),
    inset 3px 0 0 rgba(96, 165, 250, 0.9) !important;
}

.toast.info strong {
  color: #93c5fd !important;
}

.toast.info span {
  color: rgba(191, 219, 254, 0.84) !important;
}

.toast.warning {
  border-color: rgba(251, 191, 36, 0.48) !important;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(12, 15, 24, 0.94) 58%) !important;
  box-shadow:
    0 18px 58px rgba(0, 0, 0, 0.42),
    inset 3px 0 0 rgba(251, 191, 36, 0.92) !important;
}

.toast.warning strong {
  color: #fcd34d !important;
}

.toast.warning span {
  color: rgba(253, 230, 138, 0.86) !important;
}

/* Profile + shared mobile fixes (must stay after desktop topup grid rules). */
@media (max-width: 620px) {
  [data-modal="topup"] {
    padding: 12px;
    align-items: flex-start;
  }

  [data-modal="topup"] .modal-card {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    padding: 18px 14px !important;
  }

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

  .topup-method {
    min-height: 64px;
  }

  .wallet-topup-card {
    padding: 16px 12px;
  }

  .wallet-example,
  .topup-field input {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .profile-page {
    padding: 20px 0 48px;
  }

  .profile-page .profile-card,
  .profile-page .profile-hero {
    padding: 16px 14px;
  }

  .profile-page .profile-hero h1 {
    font-size: clamp(1.55rem, 7.4vw, 2rem);
    line-height: 1.15;
  }

  .profile-page .profile-hero p:last-child {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .profile-card h2,
  .profile-page .key-panel h3 {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .profile-page .profile-grid span {
    padding-top: 10px;
    padding-bottom: 2px;
  }

  .profile-page .profile-grid strong {
    padding-bottom: 10px;
    font-size: 0.94rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .profile-page .key-panel {
    padding: 12px;
  }

  .license-list-scroll {
    max-height: none;
    padding-right: 0;
  }

  .license-card {
    padding: 12px;
    gap: 8px;
  }

  .license-key-box {
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  .license-copy {
    align-self: flex-end;
  }

  .license-card-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .license-card-foot button,
  .license-reset-cooldown {
    width: 100%;
    text-align: center;
  }

  .profile-topups-list .topup-recent-head,
  .topup-recent-head {
    display: none;
  }

  .home-topups-list .topup-recent-item,
  .profile-topups-list .topup-recent-item,
  .topup-recent-item.recent-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 10px;
    min-height: unset;
    padding: 10px 0;
    flex-direction: unset;
  }

  .topup-cell-icon {
    grid-row: 1 / 3;
    align-self: center;
  }

  .topup-cell-user {
    grid-column: 2;
    grid-row: 1;
  }

  .topup-cell-amount {
    grid-column: 3;
    grid-row: 1;
  }

  .topup-cell-time {
    grid-column: 2;
    grid-row: 2;
  }

  .topup-cell-points {
    grid-column: 3;
    grid-row: 2;
  }

  .topup-cell-amount strong,
  .topup-cell-points i {
    text-align: right;
  }

  .topup-cell-user b,
  .topup-cell-time em {
    font-size: 0.84rem;
  }

  .profile-topups-nav {
    gap: 8px;
  }

  .profile-topups-nav button {
    flex: 1;
    min-width: 0;
    padding-inline: 10px;
    font-size: 0.84rem;
  }

  .footer {
    align-items: stretch;
    gap: 14px;
    padding: 16px 14px;
  }

  .footer nav {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .footer a {
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding-inline: 10px;
    font-size: 0.82rem;
  }
}

/* Account dropdown final lock: keep it above page cards and preserve glass blur. */
.topbar {
  z-index: 300 !important;
}

.nav-actions {
  z-index: 310 !important;
  overflow: visible !important;
}

.account-menu {
  position: relative !important;
  z-index: 320 !important;
}

.account-dropdown {
  z-index: 999 !important;
  position: absolute !important;
  top: calc(100% + 14px) !important;
  right: 0 !important;
  left: auto !important;
  width: 264px !important;
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 34%),
    radial-gradient(circle at 18% 0, rgba(255, 120, 148, 0.12), transparent 11rem),
    rgba(10, 10, 13, 0.96) !important;
  box-shadow:
    0 26px 86px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.055) !important;
  -webkit-backdrop-filter: blur(34px) saturate(1.35) !important;
  backdrop-filter: blur(34px) saturate(1.35) !important;
}

.account-dropdown::before {
  display: none !important;
}

.account-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.account-grid {
  background: rgba(255, 255, 255, 0.012) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.account-grid button {
  background: rgba(255, 255, 255, 0.018) !important;
}

.account-logout {
  margin-top: 14px !important;
}
