:root {
  --bg: #f9f9fc;
  --surface: #ffffff;
  --surface-low: #f3f3f6;
  --surface-mid: #e8e8ea;
  --text: #1a1c1e;
  --muted: #5f6372;
  --outline: #c4c5d6;
  --primary: #2a50cd;
  --primary-dark: #163aa8;
  --secondary: #6b38d2;
  --tertiary: #b25f00;
  --green: #159947;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(20, 30, 70, 0.08);
}

:root[data-theme="dark"] {
  --bg: #0c1020;
  --surface: #151b2e;
  --surface-low: #101629;
  --surface-mid: #202842;
  --text: #f6f7fb;
  --muted: #aab2c5;
  --outline: #303a58;
  --primary: #7ba2ff;
  --primary-dark: #527de8;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 92px;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.material-symbols-outlined {
  display: inline-flex;
  vertical-align: middle;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 64px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border-bottom: 1px solid rgba(196, 197, 214, 0.62);
  backdrop-filter: blur(16px);
}

.menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-trigger {
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.menu-trigger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 52px;
  height: 30px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: #eef0ff;
  color: #f59e0b;
  cursor: pointer;
  transition: background 0.2s ease;
}

.theme-toggle .material-symbols-outlined {
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 10px rgba(20, 30, 70, 0.14);
  font-size: 1rem;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
  transition: transform 0.2s ease, color 0.2s ease;
}

:root[data-theme="dark"] .theme-toggle {
  background: #24304d;
  color: #f8fafc;
}

:root[data-theme="dark"] .theme-toggle .material-symbols-outlined {
  transform: translateX(22px);
  background: #111827;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
}

.topbar > .brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-size: 1.32rem;
  letter-spacing: 0;
}

.brand .material-symbols-outlined {
  font-size: 2rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  font-weight: 800;
}

.desktop-nav a {
  color: var(--muted);
  padding: 22px 2px 18px;
  border-bottom: 2px solid transparent;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-pill {
  display: none;
  align-items: center;
  gap: 6px;
  min-width: 190px;
  padding: 8px 12px;
  background: var(--surface-low);
  border-radius: 999px;
  color: var(--muted);
}

.search-pill input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.btn,
.text-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.btn-primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(42, 80, 205, 0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-soft {
  color: var(--primary);
  background: rgba(42, 80, 205, 0.1);
}

.btn-inverse {
  color: var(--primary);
  background: white;
}

.icon-button,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.home-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: #111;
  box-shadow: var(--shadow);
}

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

.poster-card::after,
.game-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.04));
}

.quick-actions {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  margin: -18px auto 18px;
  padding: 20px 18px 14px;
  background: var(--surface);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(20, 30, 70, 0.08);
}

.quick-actions::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  right: 18px;
  height: 18px;
  background: radial-gradient(46px 26px at 50% -2px, transparent 70%, var(--surface) 72%);
  pointer-events: none;
}

.quick-actions a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 800;
}

.quick-actions .material-symbols-outlined {
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--primary);
  border-radius: 10px;
}

.quick-actions a:nth-child(1) .material-symbols-outlined {
  background: #2563eb;
}

.quick-actions a:nth-child(2) .material-symbols-outlined {
  background: #16a34a;
}

.quick-actions a:nth-child(3) .material-symbols-outlined {
  background: #f59e0b;
}

.quick-actions a:nth-child(4) .material-symbols-outlined {
  background: #9333ea;
}

.section-block {
  padding: 22px 0;
}

.section-block + .section-block {
  padding-top: 8px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

.section-heading a {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
}

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

.pack-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(196, 197, 214, 0.6);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pack-card img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
}

.pack-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.pack-card strong {
  font-size: 1.05rem;
}

.pack-card a {
  display: inline-flex;
  justify-content: center;
  padding: 9px 12px;
  color: var(--primary);
  background: rgba(42, 80, 205, 0.1);
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.82rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 112px));
  gap: 10px;
}

.game-tile {
  position: relative;
  min-height: 152px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #111;
}

.game-tile img {
  width: 100%;
  height: 100%;
  min-height: 152px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-tile:hover img {
  transform: scale(1.06);
}

.game-tile strong {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: white;
  font-size: 0.75rem;
  line-height: 1.1;
}

.game-tile .status {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 7px;
  color: white;
  background: var(--tertiary);
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-tile:not(.muted) .status {
  background: var(--green);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 12px;
}

.benefit-grid div {
  padding: 16px 14px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.benefit-grid .material-symbols-outlined {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  align-items: center;
  justify-content: center;
  color: white;
  background: #10b956;
  border-radius: 10px;
  font-size: 1.25rem;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.benefit-grid strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.92rem;
  line-height: 1.15;
}

.benefit-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.benefit-grid div:nth-child(2) .material-symbols-outlined {
  color: white;
  background: #3467f6;
}

.benefit-grid div:nth-child(3) .material-symbols-outlined {
  color: white;
  background: #f58a00;
}

.benefit-grid div:nth-child(4) .material-symbols-outlined {
  color: white;
  background: #8f16f4;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.breadcrumbs strong {
  color: var(--primary);
}

.breadcrumbs .material-symbols-outlined {
  font-size: 1rem;
}

.topup-layout {
  display: grid;
  gap: 24px;
}

.product-side,
.order-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.poster-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 24px;
  background: #111;
  box-shadow: var(--shadow);
}

.poster-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.poster-card::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.88));
}

.poster-card > div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: white;
}

.poster-card span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--primary);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.poster-card h1 {
  margin: 12px 0 0;
  font-size: 2rem;
  line-height: 1;
}

.poster-card p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.help-card,
.form-panel,
.summary-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(196, 197, 214, 0.55);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.help-card .material-symbols-outlined {
  color: var(--primary);
}

.help-card h2,
.help-card p {
  margin: 0;
}

.help-card h2 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.help-card p,
.hint {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.form-panel {
  display: block;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.step-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--primary);
  border-radius: 50%;
  font-weight: 800;
}

.step-title h2 {
  margin: 0;
  font-size: 1.15rem;
}

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

.input-grid label,
.field-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.input-grid input,
.input-icon input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  outline: 0;
  background: var(--bg);
  color: var(--text);
}

.input-grid input:focus,
.input-icon input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42, 80, 205, 0.12);
}

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

.denom-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 136px;
  padding: 16px 12px;
  border: 2px solid rgba(196, 197, 214, 0.5);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.denom-card:hover,
.denom-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 18px rgba(42, 80, 205, 0.18);
}

.denom-card:active {
  transform: scale(0.98);
}

.denom-card .material-symbols-outlined {
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(42, 80, 205, 0.1);
  border-radius: 50%;
}

.denom-card strong,
.denom-card small {
  text-align: center;
}

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

.denom-card em {
  position: absolute;
  top: -9px;
  right: -7px;
  padding: 4px 9px;
  color: white;
  background: var(--tertiary);
  border-radius: 999px;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.purchase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  color: white;
  background: var(--primary);
  box-shadow: 0 18px 36px rgba(42, 80, 205, 0.24);
}

.purchase-bar span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.purchase-bar strong {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
}

.checkout-shell {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 24px 20px 120px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.stepper div {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 62px;
  color: var(--muted);
  opacity: 0.55;
  font-size: 0.72rem;
  font-weight: 800;
}

.stepper div.active {
  color: var(--primary);
  opacity: 1;
}

.stepper i {
  flex: 1;
  height: 1px;
  background: var(--outline);
}

.checkout-section {
  margin-bottom: 22px;
}

.checkout-section h1,
.checkout-section h2 {
  margin: 0 0 10px 4px;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
  font-size: 1.05rem;
}

.summary-card {
  display: grid;
}

.summary-product {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
}

.summary-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.summary-product span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.summary-product b,
.total strong {
  color: var(--primary);
}

.price-lines {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-mid);
}

.price-lines p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--muted);
}

.price-lines .total {
  align-items: center;
  color: var(--text);
  font-weight: 800;
}

.price-lines .total strong {
  font-size: 1.35rem;
}

.input-icon {
  position: relative;
  display: block;
}

.input-icon .material-symbols-outlined {
  position: absolute;
  top: 13px;
  left: 14px;
  color: var(--muted);
}

.input-icon input {
  padding-left: 48px;
}

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

.payment-option {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 14px;
  align-items: center;
  padding: 16px 52px 16px 16px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.payment-option input {
  position: absolute;
  right: 18px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.payment-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(42, 80, 205, 0.05);
}

.payment-option .material-symbols-outlined {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--surface-mid);
  border-radius: 12px;
}

.payment-option small {
  color: var(--muted);
  font-weight: 700;
}

.security-note {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-low);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.security-note p {
  margin: 0;
}

.checkout-button {
  width: 100%;
  margin-top: 18px;
}

.site-footer {
  padding: 36px 20px 112px;
  background: var(--surface-low);
  border-top: 1px solid var(--outline);
}

.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.footer-grid.compact {
  width: min(960px, 100%);
}

.footer-grid p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-grid h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-grid a:not(.brand) {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(196, 197, 214, 0.6);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 4px 8px 8px;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(196, 197, 214, 0.72);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 24px rgba(20, 30, 70, 0.08);
  backdrop-filter: blur(16px);
}

:root[data-theme="dark"] .bottom-nav {
  background: rgba(18, 24, 42, 0.92);
  border-top-color: rgba(123, 162, 255, 0.18);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.38);
}

.bottom-nav a {
  display: grid;
  min-width: 50px;
  justify-items: center;
  gap: 0;
  padding: 4px 6px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
}

.bottom-nav a.active {
  color: var(--primary);
  background: rgba(42, 80, 205, 0.1);
}

:root[data-theme="dark"] .bottom-nav a {
  color: #c6cee1;
}

:root[data-theme="dark"] .bottom-nav a.active {
  color: #ffffff;
  background: rgba(123, 162, 255, 0.16);
}

.bottom-nav a.fab {
  padding: 0;
  color: inherit;
  background: transparent;
  box-shadow: 0 12px 26px rgba(20, 30, 70, 0.18);
  transform: translateY(-24px);
}

.bottom-nav a.fab img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--bg);
}

:root[data-theme="dark"] .bottom-nav a.fab {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.46);
}

:root[data-theme="dark"] .bottom-nav a.fab img {
  border-color: #12182a;
}

.bottom-nav a.fab.active {
  color: inherit;
  background: transparent;
}

@media (max-width: 430px) {
  .topbar {
    gap: 10px;
  }

  .topbar > .brand {
    font-size: 1.2rem;
  }

  .btn.small {
    padding: 0 12px;
  }

  .pack-grid {
    grid-template-columns: 1fr;
  }

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

  .summary-product b {
    text-align: left;
  }

  .purchase-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (min-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .desktop-nav,
  .search-pill {
    display: flex;
  }

  .page-shell {
    padding-top: 32px;
  }

  .home-hero {
    width: min(100%, 880px);
    margin: 0 auto;
  }

  .quick-actions {
    max-width: 880px;
    margin: 0 auto 18px;
  }

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

  .game-grid {
    grid-template-columns: repeat(6, minmax(0, 150px));
    gap: 14px;
  }

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

  .topup-layout {
    grid-template-columns: 360px 1fr;
    align-items: start;
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-grid.compact {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .site-footer {
    padding-bottom: 34px;
  }

  .bottom-nav {
    display: none;
  }
}

@media (max-width: 719px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* ===== ADMIN PANEL ===== */
.admin-login-card {
  max-width: 420px;
  margin: 60px auto;
  padding: 40px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.admin-login-card > .material-symbols-outlined {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.admin-login-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.admin-login-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.login-form {
  text-align: left;
}

.login-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.login-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42, 80, 205, 0.12);
}

.login-form .btn {
  width: 100%;
}

.login-hint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-header h1 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}

.admin-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  background: var(--surface-low);
  border-radius: 16px;
  overflow-x: auto;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.admin-tab:hover {
  color: var(--text);
  background: rgba(42, 80, 205, 0.08);
}

.admin-tab.active {
  color: white;
  background: var(--primary);
  box-shadow: 0 6px 18px rgba(42, 80, 205, 0.28);
}

.admin-tab .material-symbols-outlined {
  font-size: 1.2rem;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

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

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

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

.filter-select {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.84rem;
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42, 80, 205, 0.12);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th {
  position: sticky;
  top: 0;
  padding: 14px 16px;
  text-align: left;
  background: var(--surface-low);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--outline);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(196, 197, 214, 0.35);
  vertical-align: top;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: rgba(42, 80, 205, 0.03);
}

.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 16px !important;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge.success,
.status-badge.delivered {
  color: #159947;
  background: rgba(21, 153, 71, 0.12);
}

.status-badge.pending {
  color: #b25f00;
  background: rgba(178, 95, 0, 0.12);
}

.status-badge.failed {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
}

.status-badge.processing {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
}

.var-id {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-low);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
}

.product-icon-cell {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.price-edit-cell {
  display: inline-grid;
  grid-template-columns: auto minmax(92px, 120px) auto;
  align-items: center;
  gap: 8px;
}

.price-input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-weight: 800;
}

.price-input:focus {
  border-color: var(--primary);
  outline: none;
}

.save-price-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(42, 80, 205, 0.1);
  color: var(--primary);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.save-price-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* Execute order form */
.execute-form {
  max-width: 560px;
  margin-top: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.form-row input,
.form-row select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
}

.form-row input:focus,
.form-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42, 80, 205, 0.12);
}

.form-row input[readonly] {
  color: var(--muted);
  cursor: not-allowed;
}

.exec-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  font-size: 0.85rem;
}

.exec-result.success {
  background: rgba(21, 153, 71, 0.1);
  border: 1px solid rgba(21, 153, 71, 0.3);
  color: #159947;
}

.exec-result.error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #dc2626;
}

.exec-result pre {
  margin: 8px 0 0;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.json-preview {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.72rem;
  cursor: pointer;
}

.json-preview:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  .admin-tabs {
    gap: 4px;
    padding: 4px;
  }

  .admin-tab {
    padding: 10px 14px;
    font-size: 0.76rem;
    gap: 4px;
  }

  .admin-tab .material-symbols-outlined {
    font-size: 1rem;
  }

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

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

/* ===== USER LOGIN & PROFILE DASHBOARD ===== */
.user-login-card {
  max-width: 440px;
  margin: 40px auto 60px;
  padding: 40px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(20, 30, 70, 0.12);
}

:root[data-theme="dark"] .user-login-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.user-login-card > .material-symbols-outlined {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 16px;
  background: rgba(42, 80, 205, 0.08);
  padding: 16px;
  border-radius: 50%;
}

.user-login-card h1 {
  margin: 0 0 8px;
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.user-login-card > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Divider styles */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: var(--outline);
  opacity: 0.45;
}

.login-divider span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Premium Google Button */
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  background: #ffffff;
  border: 1px solid var(--outline);
  border-radius: 14px;
  color: #1a1c1e;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.google-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.google-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.google-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

:root[data-theme="dark"] .google-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .google-btn:hover {
  background: #334155;
  border-color: #475569;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

/* Profile / Dashboard state */
.profile-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(42, 80, 205, 0.25);
  text-transform: uppercase;
}

.profile-info-grid {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  text-align: left;
}

.profile-info-card {
  padding: 14px 18px;
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease;
}

.profile-info-card:hover {
  border-color: var(--primary);
}

.profile-info-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-info-card strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  word-break: break-all;
}

.profile-actions {
  display: grid;
  gap: 12px;
}

.profile-actions .btn {
  width: 100%;
}
