:root {
  --bg: #0b0d0c;
  --bg-elev: #141816;
  --bg-card: #1a1f1c;
  --line: #2a332c;
  --text: #eef3ee;
  --muted: #9aa79c;
  --accent: #c8f135;
  --accent-ink: #12160f;
  --danger: #ff6b5a;
  --ok: #7dffb3;
  --radius: 14px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Bebas Neue", Impact, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 15% -10%, rgba(200, 241, 53, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(125, 255, 179, 0.08), transparent 50%),
    var(--bg);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

.site-header,
.store,
.site-footer,
.admin-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.site-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

.nav-count {
  display: inline-flex;
  min-width: 1.2rem;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--accent-ink);
  color: var(--accent);
  font-size: 0.75rem;
}

.site-nav a.active .nav-count,
.site-nav a:hover .nav-count {
  background: rgba(18, 22, 15, 0.18);
  color: var(--accent-ink);
}

.brand {
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
  text-transform: none;
}

.brand:hover {
  color: var(--accent);
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.store {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.announcement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-top: 2rem;
}

.announcement-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1d2420 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow);
}

.announcement-card.wide {
  grid-column: 1 / -1;
}

.announcement-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.announcement-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.announcement-tag {
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 241, 53, 0.3);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.contact-label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
}

.contact-note {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 600px) {
  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.tier-pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tier-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 13, 12, 0.55);
}

.tier-label {
  width: fit-content;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(200, 241, 53, 0.14);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tier-card ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

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

.tier-price {
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 90, 0.2);
  background: rgba(255, 107, 90, 0.08);
}

.tier-price span {
  display: block;
  color: #ffd3cd;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tier-price strong {
  display: block;
  margin-top: 0.2rem;
  color: #ff8d7f;
  font-size: 1.3rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.hero p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1.25rem;
}

.search input {
  width: min(320px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  padding: 0.75rem 1rem;
  font: inherit;
}

.search input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.count {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1d2420 0%, var(--bg-card) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 241, 53, 0.45);
}

.product-media {
  aspect-ratio: 4 / 3;
  background: #101411;
  overflow: hidden;
}

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

.product-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 4rem;
  color: rgba(200, 241, 53, 0.55);
  background:
    radial-gradient(circle at 30% 30%, rgba(200, 241, 53, 0.18), transparent 55%),
    #121612;
}

.product-body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product-body h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.product-body .primary {
  margin-top: 0.35rem;
}

.flavour-pick select {
  width: 100%;
}

.flavours-wrap {
  padding: 0.85rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
}

.flavours-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.flavour-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 110px auto;
  gap: 0.65rem;
  align-items: end;
}

.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr 90px 110px auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-media,
.cart-media img,
.product-placeholder.small {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #101411;
}

.product-placeholder.small {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2rem;
  color: rgba(200, 241, 53, 0.55);
}

.cart-info h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.cart-info p,
.cart-line {
  margin: 0;
  color: var(--muted);
}

.cart-qty input {
  width: 100%;
}

.cart-summary,
.checkout-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  align-items: start;
}

.checkout-total {
  margin: 0.75rem 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.checkout-discount {
  margin: 0.5rem 0 0;
  color: var(--accent, #c9f04a);
  font-weight: 600;
}

.wallet-balance {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
}

.wallet-credit {
  color: #7dffb2;
}

.wallet-debit {
  color: #ff8f8f;
}

.inline-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 1rem;
}

.payment-option.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.order-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.payment-methods {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.payment-methods legend {
  padding: 0;
  margin: 0 0 0.15rem;
  font-weight: 600;
}

.payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  cursor: pointer;
}

.payment-option input {
  margin-top: 0.2rem;
}

.payment-option strong {
  display: block;
  margin-bottom: 0.2rem;
}

.payment-option p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-option:has(input:checked),
.payment-option.is-selected {
  border-color: rgba(200, 241, 53, 0.45);
  background: rgba(200, 241, 53, 0.08);
}

.bank-box {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(200, 241, 53, 0.25);
  background: rgba(200, 241, 53, 0.06);
}

.bank-box h3,
.bank-box p {
  margin: 0 0 0.4rem;
}

.orders-list,
.order-detail {
  display: grid;
  gap: 1rem;
}

.order-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: inherit;
  text-decoration: none;
  align-items: center;
}

.order-card-meta {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
}

.order-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.status-pill.pending {
  background: #ffb020;
  color: #1a1200;
  border: 1px solid #ffd36a;
}

.status-pill.paid {
  background: rgba(125, 255, 179, 0.16);
  color: var(--ok);
  border: 1px solid rgba(125, 255, 179, 0.4);
}

.status-pill.cancelled {
  background: rgba(255, 107, 90, 0.16);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 90, 0.4);
}

@media (max-width: 800px) {
  .cart-row,
  .checkout-layout,
  .flavour-row {
    grid-template-columns: 1fr;
  }
}

.price {
  font-weight: 700;
  color: var(--accent);
}

.stock {
  font-size: 0.8rem;
  color: var(--ok);
}

.stock.sold-out {
  color: var(--danger);
}

.empty,
.error {
  margin: 2rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--muted);
}

.error {
  border-color: rgba(255, 107, 90, 0.45);
  color: #ffc2ba;
}

.site-footer {
  padding: 1.5rem clamp(1.2rem, 4vw, 3rem) 2.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* Admin */
.admin-body {
  min-height: 100vh;
}

.admin-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.admin-shell-wide {
  width: min(1480px, calc(100% - 2rem));
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.admin-header-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.session-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.admin-nav {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.admin-nav a:hover {
  color: var(--text);
}

.admin-nav a.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.panel + .panel {
  margin-top: 1.25rem;
}

.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.panel-lede {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

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

@media (max-width: 700px) {
  .form-grid.two {
    grid-template-columns: 1fr;
  }

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

  .site-header-right {
    align-items: flex-start;
  }

  .admin-header {
    flex-direction: column;
  }

  .admin-nav {
    width: 100%;
  }

  .admin-nav a {
    flex: 1;
    justify-content: center;
  }
}

label.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}

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

label.field input,
label.field textarea,
label.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f1310;
  color: var(--text);
  padding: 0.7rem 0.8rem;
  font: inherit;
}

label.field textarea {
  min-height: 96px;
  resize: vertical;
}

label.field input:focus,
label.field textarea:focus,
label.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.google-signin {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.google-signin iframe {
  max-width: 100%;
}

button,
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.primary,
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

button.ghost,
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

button.danger {
  background: rgba(255, 107, 90, 0.15);
  color: #ffb2a8;
  border: 1px solid rgba(255, 107, 90, 0.35);
}

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

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: min(420px, 100%);
}

.login-card .brand {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
}

.login-card h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: 0.04em;
}

.login-card .lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.status {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status.error {
  color: #ffb2a8;
}

.status.ok {
  color: var(--ok);
}

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

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

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

.admin-table-products .col-name { width: 36%; }
.admin-table-products .col-price { width: 14%; }
.admin-table-products .col-stock { width: 10%; }
.admin-table-products .col-status { width: 14%; }
.admin-table-products .col-actions { width: 18%; }

.admin-table-staff .col-name { width: 22%; }
.admin-table-staff .col-email { width: 26%; }
.admin-table-staff .col-verified { width: 12%; }
.admin-table-staff .col-role { width: 18%; }
.admin-table-staff .col-actions { width: 16%; }

.admin-table-orders .col-order { width: 7%; }
.admin-table-orders .col-customer { width: 22%; }
.admin-table-orders .col-total { width: 9%; }
.admin-table-orders .col-reference { width: 30%; }
.admin-table-orders .col-status { width: 14%; }
.admin-table-orders .col-actions { width: 18%; }

.admin-table-orders .col-reference {
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.admin-table-orders .col-status {
  white-space: nowrap;
}

.admin-table-customers {
  min-width: 980px;
  table-layout: fixed;
}

.admin-table-customers .col-name { width: 16%; }
.admin-table-customers .col-email { width: 20%; }
.admin-table-customers .col-phone { width: 12%; }
.admin-table-customers .col-wallet { width: 10%; }
.admin-table-customers .col-verified { width: 14%; }
.admin-table-customers .col-account { width: 10%; }
.admin-table-customers .col-actions { width: 18%; }

.admin-table-customers .col-wallet,
.admin-table-customers .col-verified,
.admin-table-customers .col-account {
  white-space: nowrap;
}

.admin-table-customers .col-actions {
  white-space: normal;
}

.admin-table-customers .col-actions .ghost,
.admin-table-customers .col-actions .role-select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
}

.admin-table-customers .col-actions .ghost:first-child {
  margin-top: 0;
}

.admin-table-topups {
  min-width: 920px;
  table-layout: fixed;
}

.admin-table-topups .col-topup { width: 8%; }
.admin-table-topups .col-customer { width: 24%; }
.admin-table-topups .col-amount { width: 10%; }
.admin-table-topups .col-method { width: 14%; }
.admin-table-topups .col-reference { width: 22%; }
.admin-table-topups .col-status { width: 12%; }
.admin-table-topups .col-actions { width: 10%; }

.admin-table-topups .col-reference {
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.admin-table-wallet-topups {
  width: 100%;
  min-width: 1280px;
  table-layout: fixed;
}

.admin-table-wallet-topups .col-topup { width: 6%; }
.admin-table-wallet-topups .col-date { width: 13%; }
.admin-table-wallet-topups .col-customer { width: 20%; }
.admin-table-wallet-topups .col-amount { width: 11%; }
.admin-table-wallet-topups .col-method { width: 12%; }
.admin-table-wallet-topups .col-reference { width: 26%; }
.admin-table-wallet-topups .col-status { width: 12%; }
.admin-table-wallet-topups .col-action { width: 10%; }

.admin-table-wallet-topups .col-customer {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.admin-table-wallet-topups .col-amount {
  white-space: nowrap;
}

.admin-table-wallet-topups .col-reference {
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.admin-table-wallet-topups .col-status {
  white-space: nowrap;
}

.admin-table-wallet-topups .col-date {
  font-size: 0.9rem;
  line-height: 1.4;
}

.admin-table-wallet-history {
  width: 100%;
  min-width: 1240px;
  table-layout: fixed;
}

.admin-table-wallet-history .col-date { width: 14%; }
.admin-table-wallet-history .col-customer { width: 22%; }
.admin-table-wallet-history .col-type { width: 13%; }
.admin-table-wallet-history .col-amount { width: 12%; }
.admin-table-wallet-history .col-balance { width: 12%; }
.admin-table-wallet-history .col-note { width: 27%; }

.admin-table-wallet-history .col-note {
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.admin-table-wrap {
  overflow-x: auto;
}

.pagination-slot {
  margin-top: 0.85rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
}

.pagination-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-left: auto;
}

.pagination-page,
.pagination-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pagination-page {
  min-width: 2.5rem;
  padding: 0.45rem 0.7rem;
}

.pagination-page.is-active {
  border-color: rgba(200, 241, 53, 0.7);
  background: rgba(200, 241, 53, 0.16);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(200, 241, 53, 0.2);
}

.pagination-page:hover:not(:disabled):not(.is-active),
.pagination-nav:hover:not(:disabled) {
  border-color: rgba(200, 241, 53, 0.45);
  background: rgba(200, 241, 53, 0.08);
}

.pagination-page:disabled,
.pagination-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: var(--muted);
  padding: 0 0.25rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-controls {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}

.col-actions {
  text-align: right;
}

.cell-sub {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.table-thumb {
  width: 68px;
  height: 52px;
  object-fit: cover;
  display: block;
  margin-top: 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #101411;
}

.image-preview {
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #0f1310;
  color: var(--text);
}

.image-preview.empty {
  color: var(--muted);
}

.image-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 10px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.checkbox-row input {
  width: auto;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
  padding: 1.5rem 0.75rem !important;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
}

.table-actions button {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.role-select {
  width: 100%;
  max-width: 8.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1310;
  color: var(--text);
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.85rem;
}

.badge-you {
  margin-left: 0.45rem;
  vertical-align: middle;
}

.admin-table .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-table button {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--line);
}

.badge.on {
  color: var(--ok);
  border-color: rgba(125, 255, 179, 0.35);
}

.badge.off {
  color: var(--danger);
  border-color: rgba(255, 107, 90, 0.35);
}

@media (max-width: 800px) {
  .admin-table-wrap {
    overflow-x: auto;
  }
}
