/* ═══════════════════════════════════════════════════════════════════════════
   MC STORE — Main Stylesheet
   Design: Dark Minecraft theme — mobile-first, Android optimised
   Colors: --green (grass), --gold (gold block), --red (danger), dark bg
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ───────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #0a0a0a;
  --bg-surface: #141414;
  --bg-card:    #1a1a1a;
  --bg-raised:  #222222;
  --bg-input:   #111111;

  /* Borders */
  --border:       #2a2a2a;
  --border-focus: #4ade80;

  /* Brand / Action */
  --green:      #4ade80;
  --green-dark: #22c55e;
  --green-dim:  rgba(74, 222, 128, 0.12);

  /* Accent */
  --gold:     #f59e0b;
  --gold-dim: rgba(245, 158, 11, 0.12);

  /* Danger */
  --red:     #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);

  /* Info */
  --blue:     #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.12);

  /* Text */
  --text:         #f0f0f0;
  --text-sec:     #a0a0a0;
  --text-muted:   #606060;

  /* Shape */
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadow */
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

button { cursor: pointer; font-family: inherit; }

/* ─── Utility ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

.hidden { display: none !important; }

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

/* ─── Skeleton Loading ─────────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-tab,
.skeleton-card,
.skeleton-stat {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-raised) 50%, var(--bg-card) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius);
}
.skeleton-tab  { height: 42px; width: 120px; }
.skeleton-card { height: 280px; }
.skeleton-stat { height: 100px; }

/* ─── Header ───────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo--sm { font-size: 1rem; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-username {
  font-size: 0.875rem;
  color: var(--text-sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn:disabled { opacity: 0.5; pointer-events: none; }

.btn-primary {
  background: var(--green);
  color: #0a0a0a;
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text-sec); }

.btn-ghost {
  background: transparent;
  color: var(--text-sec);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-danger:hover { background: #dc2626; }

.btn-full  { width: 100%; }
.btn-sm    { height: 32px; padding: 0 12px; font-size: 0.8rem; }
.btn-lg    { height: 48px; font-size: 1rem; padding: 0 28px; }

/* Spinner inside button */
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
.btn-primary .btn-spinner { border-color: rgba(0,0,0,0.2); border-top-color: #0a0a0a; }
.btn-outline .btn-spinner,
.btn-ghost  .btn-spinner { border-color: rgba(255,255,255,0.2); border-top-color: var(--text); }

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

/* ─── Spinner (standalone) ─────────────────────────────────────────────────── */
.spinner-large {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

/* ─── Alert / Feedback ─────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-success { background: var(--green-dim); color: var(--green); border-color: rgba(74,222,128,0.25); }
.alert-error   { background: var(--red-dim);   color: var(--red);   border-color: rgba(239,68,68,0.25); }
.alert-info    { background: var(--blue-dim);  color: var(--blue);  border-color: rgba(96,165,250,0.25); }

/* ─── Site Notices ─────────────────────────────────────────────────────────── */
.notice-banner {
  padding: 10px 16px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice-banner--info        { background: var(--blue-dim);  color: var(--blue);  border-bottom: 1px solid rgba(96,165,250,0.2); }
.notice-banner--warning     { background: var(--gold-dim);  color: var(--gold);  border-bottom: 1px solid rgba(245,158,11,0.2); }
.notice-banner--maintenance { background: var(--red-dim);   color: var(--red);   border-bottom: 1px solid rgba(239,68,68,0.2); }

/* ─── Form Fields ──────────────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-sec);
  letter-spacing: 0.01em;
}

.field-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.field-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.field-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--green-dim);
}
.field-input::placeholder { color: var(--text-muted); }

.field-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.field-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.required { color: var(--red); }

/* Custom Toggle Checkbox */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-sec);
  user-select: none;
}
.toggle-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-custom {
  flex-shrink: 0;
  width: 36px; height: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.toggle-custom::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.2s, background 0.2s;
}
.toggle-label input:checked + .toggle-custom { background: var(--green-dim); border-color: var(--green); }
.toggle-label input:checked + .toggle-custom::after { transform: translateX(16px); background: var(--green); }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 36px;
  text-align: center;
}
.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}
.hero-sub {
  margin-top: 10px;
  color: var(--text-sec);
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}

/* ─── Server Selector ──────────────────────────────────────────────────────── */
.server-section { margin: 28px 0 0; }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.server-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-sec);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.server-tab:hover:not(:disabled) {
  border-color: var(--border-focus);
  color: var(--text);
}
.server-tab.active {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green);
  font-weight: 600;
}
.server-tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.server-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-active     { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-coming     { background: var(--gold); }
.dot-maintenance{ background: var(--red); }

.status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}
.badge-coming  { background: var(--gold-dim);  color: var(--gold); }
.badge-maint   { background: var(--red-dim);   color: var(--red); }

/* ─── Products Grid ────────────────────────────────────────────────────────── */
.products-section { margin: 28px 0 48px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.badge-count {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--border-focus); transform: translateY(-2px); }

.product-card.featured { border-color: rgba(245,158,11,0.35); }
.product-card.featured .product-img-wrap::after {
  content: 'FEATURED';
  position: absolute; top: 10px; right: 10px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 7px; border-radius: 4px;
  background: var(--gold-dim); color: var(--gold);
  border: 1px solid rgba(245,158,11,0.3);
}

.product-img-wrap {
  position: relative;
  height: 130px;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* Category icon placeholder */
.cat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.cat-rank     { background: var(--gold-dim);  color: var(--gold); }
.cat-kit      { background: var(--green-dim); color: var(--green); }
.cat-cosmetic { background: var(--blue-dim);  color: var(--blue); }
.cat-currency { background: var(--gold-dim);  color: var(--gold); }
.cat-other    { background: var(--bg-card);   color: var(--text-muted); }

.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.product-desc {
  font-size: 0.8125rem;
  color: var(--text-sec);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  padding: 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
}

/* ─── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state p { margin-top: 8px; font-size: 0.9rem; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-logo { font-weight: 700; color: var(--text-muted); }
.footer-note { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Auth Pages ───────────────────────────────────────────────────────────── */
.auth-body { display: flex; flex-direction: column; }
.auth-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 60px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.auth-header { margin-bottom: 24px; }
.auth-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.auth-sub { margin-top: 4px; color: var(--text-sec); font-size: 0.9rem; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-sec);
}
.auth-link { color: var(--green); font-weight: 600; }

/* Bedrock Warning */
.bedrock-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--gold-dim);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--gold);
  line-height: 1.5;
  margin-bottom: 20px;
}
.bedrock-warning svg { flex-shrink: 0; margin-top: 2px; }
.bedrock-warning code {
  background: rgba(245,158,11,0.2);
  padding: 0 4px;
  border-radius: 3px;
  font-size: 0.85em;
  font-family: 'Courier New', Courier, monospace;
}
.bedrock-warning--sm { margin-bottom: 12px; }

.bedrock-examples { display: flex; gap: 12px; margin-top: 6px; }
.example-good { color: var(--green); font-weight: 600; }
.example-bad  { color: var(--red);   font-weight: 600; }

/* ─── Checkout ─────────────────────────────────────────────────────────────── */
.checkout-main { padding-top: 32px; padding-bottom: 60px; }

.checkout-loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-sec);
}

.checkout-error {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-sec);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.checkout-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 768px) {
  .checkout-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
  .checkout-form-col { flex: 1; min-width: 0; }
  .checkout-summary-col { width: 300px; flex-shrink: 0; position: sticky; top: 80px; }
}

.checkout-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.checkout-step {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}
.step-num {
  width: 28px; height: 28px;
  background: var(--green-dim);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.order-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.order-summary-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.order-summary-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.order-summary-meta { font-size: 0.8125rem; color: var(--text-sec); }

.delivery-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.875rem;
}
.info-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.info-key { color: var(--text-sec); }
.info-val { font-weight: 600; }

.friend-toggle-row { margin-bottom: 12px; }

.friend-ign-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terms-row { margin-bottom: 16px; }

/* Price Summary Aside */
.price-summary {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.price-summary-title { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-sec); margin-bottom: 16px; }
.price-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; padding: 8px 0; color: var(--text-sec); }
.price-divider { height: 1px; background: var(--border); margin: 4px 0; }
.price-total { font-weight: 700; color: var(--text); font-size: 1rem; }
.total-amount { color: var(--green); font-size: 1.1rem; font-weight: 800; }
.price-note { margin-top: 12px; font-size: 0.75rem; color: var(--text-muted); }

/* ─── Modals ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal-box--wide { max-width: 640px; }
.modal-box--sm   { max-width: 380px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 1.15rem; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  padding: 4px; border-radius: var(--radius);
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }

.modal-body { color: var(--text-sec); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.success-icon { text-align: center; margin-bottom: 16px; }

/* ─── Admin Layout ─────────────────────────────────────────────────────────── */
.admin-body {
  display: flex;
  min-height: 100dvh;
}

/* Sidebar */
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.admin-sidebar.open { transform: translateX(0); }

@media (min-width: 900px) {
  .admin-sidebar { transform: translateX(0); position: sticky; top: 0; height: 100dvh; }
  .admin-main { margin-left: 0; }
  .mobile-menu-btn { display: none; }
  .sidebar-overlay { display: none; }
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.admin-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 100px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 40px;
  border-radius: var(--radius);
  border: none;
  background: none;
  color: var(--text-sec);
  font-size: 0.875rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--bg-raised); color: var(--text); }
.nav-item.active { background: var(--green-dim); color: var(--green); font-weight: 600; }

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-user-info { font-size: 0.8rem; color: var(--text-sec); }
.admin-user-ign  { font-weight: 700; color: var(--text); font-size: 0.875rem; }

/* Admin Main */
.admin-main {
  flex: 1;
  min-width: 0;
  padding: 28px 20px 60px;
  overflow-x: auto;
}

@media (min-width: 900px) {
  .admin-main { padding: 32px 32px 60px; }
}

/* Mobile menu button */
.mobile-menu-btn {
  position: fixed;
  top: 14px; left: 14px;
  z-index: 300;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  color: var(--text);
  display: flex;
  align-items: center;
}

.sidebar-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.6);
  display: none;
}
.sidebar-overlay.visible { display: block; }

/* Admin Sections */
.admin-section { display: none; }
.admin-section.active { display: block; }

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

.admin-page-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.stat-value--green { color: var(--green); }
.stat-value--gold  { color: var(--gold); }

/* Admin Tables */
.table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8625rem;
  min-width: 600px;
}
.admin-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-sec);
  vertical-align: middle;
}
.admin-table tbody tr:hover td { background: var(--bg-card); }
.admin-table tbody tr:last-child td { border-bottom: none; }

.table-loading {
  text-align: center;
  padding: 40px !important;
  color: var(--text-muted);
}

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

/* Status Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pill-active     { background: var(--green-dim); color: var(--green); }
.pill-inactive   { background: var(--bg-raised);  color: var(--text-muted); }
.pill-coming     { background: var(--gold-dim);   color: var(--gold); }
.pill-completed  { background: var(--green-dim);  color: var(--green); }
.pill-pending    { background: var(--gold-dim);   color: var(--gold); }
.pill-cancelled  { background: var(--red-dim);    color: var(--red); }

/* Servers List */
.servers-list { display: flex; flex-direction: column; gap: 12px; }

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 560px) {
  .server-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.server-card-info { display: flex; flex-direction: column; gap: 4px; }
.server-card-name { font-weight: 700; font-size: 1rem; }
.server-card-slug { font-size: 0.8rem; color: var(--text-muted); }
.server-card-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Status select in server card */
.status-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  color: var(--text);
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
}

/* Notices List */
.notices-list { display: flex; flex-direction: column; gap: 12px; }

.notice-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 560px) {
  .notice-admin-card {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
}
.notice-admin-msg   { font-size: 0.9rem; color: var(--text); flex: 1; line-height: 1.5; }
.notice-admin-meta  { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.notice-admin-acts  { display: flex; gap: 6px; flex-shrink: 0; align-items: flex-start; }

/* Admin Form (in modals) */
.admin-form { display: flex; flex-direction: column; gap: 16px; }

.form-row {
  display: flex;
  gap: 16px;
  flex-direction: column;
}
@media (min-width: 480px) {
  .form-row { flex-direction: row; }
  .form-row .field { flex: 1; }
}

.server-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.server-cb-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-sec);
  cursor: pointer;
  padding: 6px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.server-cb-label:has(input:checked) { border-color: var(--green); color: var(--green); }

/* ─── Responsive Tweaks ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card { padding: 24px 18px; }
  .hero { padding: 28px 0 24px; }
  .products-grid { grid-template-columns: 1fr; }
  .checkout-step { padding: 16px; }
  .admin-main { padding: 60px 14px 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
  .container { padding-inline: 24px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (min-width: 900px) {
  .container { padding-inline: 32px; }
}
