:root {
  --bg: #111315;
  --bg-deep: #0b0d0f;
  --surface: #1b1f22;
  --surface-raised: #22282c;
  --surface-soft: #2a3035;
  --ink: #f4f7f5;
  --muted: #a6b0aa;
  --line: #333b40;
  --primary: #21b992;
  --primary-dark: #63e6c1;
  --blue: #5d8df2;
  --coral: #ff7d66;
  --gold: #f2bf55;
  --violet: #8b7cf6;
  --success: #53d184;
  --danger: #ff766b;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(33, 185, 146, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 0%, rgba(93, 141, 242, 0.16), transparent 30rem),
    linear-gradient(180deg, #171a1d 0%, var(--bg) 52%, var(--bg-deep) 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: var(--primary-dark);
}

.site-header,
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.75rem;
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 19, 21, 0.9);
  backdrop-filter: blur(10px);
}

.brand-lockup,
.header-nav,
.auth-actions,
.user-chip,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-lockup {
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-lockup span:last-child {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.brand-lockup strong,
.topbar h1 {
  font-size: clamp(1.08rem, 2vw, 1.55rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.brand-lockup small {
  color: var(--muted);
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(135deg, var(--primary), var(--blue));
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(33, 185, 146, 0.22);
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.header-nav {
  justify-content: center;
  flex-wrap: wrap;
}

.header-nav a,
.ghost-link,
.ghost-button,
.inline-form button,
.row-actions button,
.admin-token-panel button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(34, 40, 44, 0.78);
  text-decoration: none;
  padding: 0 0.85rem;
  font-weight: 850;
}

.primary-small,
.primary-link,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #1ba780, #2d81cf);
  padding: 0 1rem;
  text-decoration: none;
  font-weight: 900;
}

.primary-button {
  width: 100%;
  min-height: 2.95rem;
}

.primary-small:hover,
.primary-link:hover,
.primary-button:hover,
.contact-links a:hover {
  background: linear-gradient(135deg, #24c79d, #4b9cff);
}

.icon-button {
  width: 2.35rem;
  padding: 0;
}

.user-chip {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.user-chip span {
  color: var(--muted);
  font-weight: 800;
}

.user-chip strong {
  color: var(--primary-dark);
}

.user-chip button {
  min-height: 2rem;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0 0.65rem;
  font-weight: 850;
}

.page-shell {
  display: grid;
  gap: 1rem;
  padding: clamp(0.85rem, 2.7vw, 2rem);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  min-height: 23rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 15%, rgba(242, 191, 85, 0.24), transparent 24rem),
    radial-gradient(circle at 14% 80%, rgba(33, 185, 146, 0.23), transparent 22rem),
    linear-gradient(135deg, rgba(22, 26, 30, 0.98), rgba(33, 39, 48, 0.92)),
    #171a1d;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero-content {
  align-self: center;
  padding: clamp(1.25rem, 5vw, 3rem);
  max-width: 48rem;
}

.hero-content h1 {
  margin: 0;
  max-width: 44rem;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 0.96;
}

.hero-content p:not(.eyebrow) {
  margin: 1rem 0 0;
  max-width: 35rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.5;
}

.hero-panel .eyebrow {
  color: #f8d77c;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.hero-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(8rem, 1fr));
  gap: 0.8rem;
  align-self: stretch;
  padding: clamp(1rem, 3vw, 2rem);
  transform: rotate(-3deg);
}

.animated-tile {
  display: grid;
  place-items: end start;
  width: 100%;
  height: 100%;
  min-height: 9rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(135deg, rgba(240, 185, 79, 0.92), rgba(223, 101, 75, 0.78));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 950;
  padding: 1rem;
  animation: tileFloat 7s ease-in-out infinite;
}

.animated-tile:nth-child(2) {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.32), transparent 26%),
    linear-gradient(135deg, rgba(103, 88, 199, 0.9), rgba(47, 100, 183, 0.82));
  animation-delay: 650ms;
}

.animated-tile:nth-child(3) {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(135deg, rgba(93, 141, 242, 0.92), rgba(139, 124, 246, 0.82));
  animation-delay: 1200ms;
}

.animated-tile:nth-child(4) {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(135deg, rgba(13, 123, 103, 0.92), rgba(47, 125, 80, 0.82));
  animation-delay: 1650ms;
}

.tile-lg {
  grid-row: span 2;
}

@keyframes tileFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

.topup-grid {
  display: grid;
  grid-template-columns: minmax(245px, 320px) minmax(0, 1fr) minmax(310px, 380px);
  align-items: start;
  gap: 1rem;
}

.side-stack,
.checkout-stack {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.glass-panel,
.main-panel,
.deposit-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 31, 34, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.glass-panel,
.main-panel,
.deposit-panel,
.panel {
  padding: 1rem;
}

.checkout-stack {
  position: sticky;
  top: 5.75rem;
}

.section-heading,
.catalog-header,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2,
.catalog-header h2,
.section-title h2,
.glass-panel h2,
.main-panel h2,
.deposit-panel h2,
.topbar h1,
.panel h2 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.small-copy {
  margin: 0.75rem 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.category-tabs {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

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

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

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

.category-tab {
  display: grid;
  align-content: start;
  gap: 0.18rem;
  min-width: 0;
  min-height: 4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--ink);
  padding: 0.75rem;
  text-align: left;
}

.category-tab span {
  min-width: 0;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.category-tab small {
  min-width: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.category-tab.active {
  border-color: rgba(99, 230, 193, 0.58);
  background: linear-gradient(135deg, rgba(33, 185, 146, 0.22), rgba(242, 191, 85, 0.13));
  box-shadow: 0 12px 28px rgba(33, 185, 146, 0.13);
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.field span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.field input,
.field select,
.field textarea,
.inline-form input {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111518;
  color: var(--ink);
  padding: 0.72rem 0.78rem;
}

.field textarea {
  resize: vertical;
}

.field-hint {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.nickname-button {
  width: 100%;
  margin: 0 0 0.85rem;
  border-color: rgba(99, 230, 193, 0.34);
  background: rgba(99, 230, 193, 0.08);
  color: var(--ink);
}

.nickname-button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--ink);
  padding: 0;
  text-align: left;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.game-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.game-card span {
  display: block;
  padding: 0.75rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.game-card.selected,
.game-card:hover,
.product-card.selected,
.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 26px rgba(33, 185, 146, 0.16);
  transform: translateY(-1px);
}

.package-heading {
  margin-top: 0.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.75rem;
}

.product-more {
  display: flex;
  justify-content: center;
  margin-top: 0.9rem;
}

.product-more .ghost-button {
  min-width: min(14rem, 100%);
}

.product-card {
  display: grid;
  overflow: hidden;
  min-height: 14rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--ink);
  padding: 0;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.product-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-soft);
}

.image-placeholder {
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(135deg, var(--primary), var(--blue));
  font-weight: 950;
}

.product-card-body {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
}

.product-card-body small {
  color: var(--muted);
  font-weight: 800;
}

.product-card-body strong {
  min-height: 2.4rem;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.product-card-body span {
  color: var(--primary-dark);
  font-weight: 950;
}

.wallet-card strong#walletBalanceLarge {
  display: block;
  margin-top: 0.25rem;
  color: var(--primary-dark);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 999px;
  padding: 0 0.7rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge.subtle,
.muted-badge {
  color: var(--primary-dark);
  background: var(--surface-soft);
}

.selected-empty,
.empty-state {
  display: grid;
  place-items: center;
  min-height: 8rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  text-align: center;
  padding: 1rem;
}

.selected-product {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.8rem;
  border-radius: 8px;
  background: var(--surface-soft);
  margin-bottom: 1rem;
}

.selected-cover {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 8px;
  object-fit: cover;
}

.selected-product h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.selected-product p {
  margin: 0.15rem 0;
  color: var(--muted);
}

.selected-product strong {
  color: var(--primary-dark);
  overflow-wrap: anywhere;
}

.deposit-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
}

.deposit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 0.75rem;
}

.span-2 {
  grid-column: 1 / -1;
}

.payment-methods,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.payment-methods span,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 8px;
  padding: 0 0.65rem;
  font-size: 0.86rem;
  font-weight: 850;
}

.payment-methods span {
  color: var(--primary-dark);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.contact-links a {
  color: #ffffff;
  background: var(--primary);
  text-decoration: none;
}

.payment-account-card {
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  border: 1px solid rgba(99, 230, 193, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(33, 185, 146, 0.14), rgba(242, 191, 85, 0.1));
  padding: 0.95rem;
}

.payment-account-card span,
.payment-account-card small {
  color: var(--muted);
  font-weight: 800;
}

.payment-account-card strong {
  color: var(--ink);
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.mini-result {
  display: grid;
  gap: 0.22rem;
  min-height: 2rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.nickname-result {
  min-height: 0;
  margin-top: -0.15rem;
  margin-bottom: 0.65rem;
}

.nickname-result .alert {
  margin-top: 0;
}

.alert {
  display: grid;
  gap: 0.35rem;
  border-radius: 8px;
  padding: 0.9rem;
  margin-top: 1rem;
}

.alert.success {
  border: 1px solid rgba(83, 209, 132, 0.28);
  background: rgba(83, 209, 132, 0.12);
}

.alert.error {
  border: 1px solid rgba(255, 118, 107, 0.3);
  background: rgba(255, 118, 107, 0.12);
}

.error-text {
  color: var(--danger);
  font-weight: 850;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 6, 8, 0.72);
}

.modal-card {
  width: min(100%, 430px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.topup-modal-card {
  width: min(100%, 520px);
  animation: modalRise 220ms ease-out;
}

.topup-animation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.topup-animation span {
  display: grid;
  place-items: end start;
  min-height: 7rem;
  border: 1px solid rgba(99, 230, 193, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.25), transparent 26%),
    linear-gradient(135deg, rgba(33, 185, 146, 0.42), rgba(93, 141, 242, 0.36));
  color: #ffffff;
  font-weight: 950;
  padding: 0.85rem;
  animation: tileFloat 7s ease-in-out infinite;
}

.topup-animation span:nth-child(2) {
  animation-delay: 300ms;
}

.topup-animation span:nth-child(3) {
  animation-delay: 600ms;
}

.topup-animation span:nth-child(4) {
  animation-delay: 900ms;
}

.topup-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

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

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  margin-bottom: 1rem;
}

.auth-tabs button {
  min-height: 2.45rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.auth-tabs button.active {
  background: var(--surface-raised);
  color: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.social-login-panel {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.social-login-slot {
  min-height: 2.6rem;
  display: grid;
  place-items: center;
}

.hidden {
  display: none !important;
}

.admin-shell {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  max-width: 1180px;
  margin: 0 auto;
}

.admin-token-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 0.8rem;
}

.admin-token-panel .field {
  margin: 0;
}

.settings-list {
  display: grid;
  gap: 0.75rem;
}

.settings-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  gap: 0.75rem;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 0.85rem;
}

.catalog-row {
  grid-template-columns: minmax(180px, 0.8fr) minmax(140px, 0.45fr) minmax(220px, 1.4fr) auto;
}

.branding-row {
  grid-template-columns: minmax(220px, 1fr);
}

.custom-product-row {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.settings-row .field {
  margin: 0;
}

.setting-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--muted);
  font-weight: 850;
}

.admin-save-button {
  margin-top: 0.9rem;
  max-width: 18rem;
}

.orders-table {
  display: grid;
  gap: 0.65rem;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.7fr) auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  padding: 0.85rem;
}

.order-row div {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.order-row span,
.order-row small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.row-actions {
  display: flex !important;
  flex-direction: row;
  gap: 0.5rem;
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .topup-grid {
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  }

  .checkout-stack {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header,
  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .header-nav {
    justify-content: start;
  }

  .auth-actions,
  .user-chip {
    width: 100%;
    justify-content: start;
  }

  .hero-panel,
  .topup-grid,
  .deposit-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-showcase {
    grid-template-columns: repeat(3, 1fr);
    transform: none;
    padding-top: 0;
  }

  .tile-lg {
    grid-row: auto;
  }

  .deposit-form,
  .admin-token-panel,
  .settings-row,
  .catalog-row,
  .order-row {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .row-actions {
    justify-content: stretch;
  }

  .row-actions button {
    flex: 1;
  }
}

@media (max-width: 540px) {
  .page-shell {
    padding: 0.75rem;
  }

  .header-nav,
  .auth-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

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

  .header-nav a,
  .ghost-button,
  .primary-small {
    padding: 0 0.45rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .category-tabs.three-tabs,
  .category-tabs.four-tabs {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .selected-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
