/* มือปราบโทรลล์ — Dark Gaming Theme */
:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-elevated: #111111;
  --border: rgba(255, 215, 0, 0.15);
  --gold: #ffd700;
  --gold-dark: #ff8c00;
  --gold-muted: #b8860b;
  --text: #ffffff;
  --text-muted: #a1a1aa;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --font-display: 'Kanit', sans-serif;
  --font-body: 'Prompt', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.container.narrow { max-width: 640px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.title-gaming {
  font-family: var(--font-display);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 0 #ffd700,
    0 2px 0 #e6c200,
    0 4px 12px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(255, 215, 0, 0.25);
}

.text-gold-gradient {
  background: linear-gradient(135deg, #fff7cc 0%, #ffd700 45%, #ff8c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title-gaming {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0;
  background: linear-gradient(180deg, #fff 30%, #ffd700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-fade { animation: page-fade-in 0.45s ease-out; }

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-link-active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18) 0%, rgba(255, 140, 0, 0.12) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  color: #ffd700 !important;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.12);
}

.card-gaming {
  border-radius: 1rem;
  border: 1px solid rgba(255, 215, 0, 0.15);
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.95) 0%, rgba(0, 0, 0, 0.88) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(255, 215, 0, 0.04);
  padding: 1.25rem;
}

.gold-ring {
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.3),
    0 0 20px rgba(255, 215, 0, 0.15);
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-link:hover { opacity: 0.92; }

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ffe566, #ffd700, #ff8c00);
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.125rem;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: rgba(217, 119, 6, 0.8);
  font-weight: 600;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.nav-pill:hover { color: #ffd700; }

.nav-pill-sm {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

.nav-mobile {
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  padding-bottom: 0.625rem;
  border-top: 1px solid rgba(255, 140, 0, 0.12);
  scrollbar-width: none;
}

.nav-mobile::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .nav-mobile { display: none; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-user {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.header-user:hover {
  border-color: rgba(255, 140, 0, 0.3);
  background: rgba(255, 140, 0, 0.08);
}

@media (min-width: 640px) {
  .header-user { display: flex; }
}

.header-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.header-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #27272a;
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
}

.header-username {
  max-width: 6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  color: #d4d4d8;
}

.points-pill {
  display: none;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #ffd700;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .points-pill { display: inline-flex; }
}

.btn-ghost-sm {
  display: none;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(113, 113, 122, 0.5);
  color: #a1a1aa;
  font-size: 0.75rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost-sm:hover {
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

@media (min-width: 640px) {
  .btn-ghost-sm { display: inline-flex; }
}

.btn-admin-sm {
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 140, 0, 0.3);
  color: rgba(251, 191, 36, 0.9);
  font-size: 0.75rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-admin-sm:hover {
  border-color: #ffd700;
  color: #ffd700;
}

.btn-discord-inline {
  background: #5865F2 !important;
  color: #fff !important;
  border-color: transparent !important;
}

.nav-logout { color: #f87171 !important; }

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-note { font-size: 0.75rem; margin-top: 0.5rem; }

.main-content { min-height: calc(100vh - 140px); }

/* Hero */
.hero-banner { width: 100%; overflow: hidden; }
.hero-img { display: block; width: 100%; height: auto; }
.hero-cta { padding: 2rem 1rem 1rem; }
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 32rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .cta-row { flex-direction: row; justify-content: center; }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.card {
  background: linear-gradient(145deg, var(--surface-elevated), var(--surface));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.04);
}

.card h3 {
  font-family: var(--font-display);
  color: var(--gold);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  background: linear-gradient(180deg, #ffe566 0%, #ffd700 40%, #ff8c00 100%);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 0 #b8860b,
    0 8px 24px rgba(255, 140, 0, 0.35),
    0 0 20px rgba(255, 215, 0, 0.15);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  color: #000;
  box-shadow:
    0 5px 0 #b8860b,
    0 12px 32px rgba(255, 140, 0, 0.45),
    0 0 30px rgba(255, 215, 0, 0.25);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #b8860b, 0 4px 16px rgba(255, 140, 0, 0.3);
}

.btn-gold { /* alias */ }

.btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; box-shadow: 0 3px 0 #b8860b, 0 6px 16px rgba(255, 140, 0, 0.3); }
.btn-block { width: 100%; }
.btn-outline {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #fef3c7;
  box-shadow: none;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(0,0,0,0.8);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.12);
  transform: translateY(-1px);
}
.btn-discord {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 4px 0 #4752c4, 0 8px 20px rgba(88, 101, 242, 0.35);
  border: none;
}
.btn-discord:hover {
  background: #4752c4;
  color: #fff;
  box-shadow: 0 5px 0 #3c45a5, 0 10px 28px rgba(88, 101, 242, 0.45);
}
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 0 #b91c1c; }
.btn-danger:hover { color: #fff; box-shadow: 0 0 16px rgba(239, 68, 68, 0.4); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  color: #d4d4d8;
}

.input, select.input, textarea.input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 0.625rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.15);
}

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

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

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab-option, .tab-link {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.875rem;
  cursor: pointer;
  color: #d4d4d8;
}

.tab-option:has(input:checked), .tab-link.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
}

.tab-option input { display: none; }

.payment-options { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 0.625rem;
  cursor: pointer;
}

.promptpay-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed rgba(255, 215, 0, 0.3);
  border-radius: 0.75rem;
  text-align: center;
}

.qr-img {
  margin: 1rem auto 0;
  display: block;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.5rem;
}

.price-summary { position: sticky; bottom: 1rem; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-lines {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Alerts */
.alert {
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.alert-error, .alert-warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

/* Toast popup */
.toast-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  animation: toast-fade-in 0.2s ease;
}

.toast-overlay-out {
  animation: toast-fade-out 0.2s ease forwards;
}

.toast-popup {
  width: min(100%, 22rem);
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast-popup.toast-visible {
  transform: scale(1);
  opacity: 1;
}

.toast-popup.toast-hidden {
  display: none;
}

.toast-success {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.15);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.12);
}

.toast-warning {
  border-color: rgba(245, 158, 11, 0.45);
}

.toast-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.toast-success .toast-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.toast-warning .toast-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.toast-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.toast-message {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.toast-close {
  min-width: 6rem;
}

@keyframes toast-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes toast-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Booking cards */
.booking-list { display: flex; flex-direction: column; gap: 1rem; }

.booking-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
}

.booking-card.status-farming { border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 0 24px rgba(255, 215, 0, 0.12); }
.booking-card.status-done { border-color: rgba(16, 185, 129, 0.4); }
.booking-card.status-cancel { border-color: rgba(113, 113, 122, 0.4); opacity: 0.75; }
.booking-card.status-confirmed { border-color: rgba(56, 189, 248, 0.35); }

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.avatar-wrap { display: flex; align-items: center; gap: 0.75rem; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.avatar-lg { width: 64px; height: 64px; font-size: 1.5rem; }

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #27272a;
  color: var(--gold);
  font-weight: 700;
}

.queue-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
}

.queue-badge.lg { font-size: 0.875rem; padding: 0.25rem 0.625rem; }

.status-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
}

.service-line { font-weight: 500; margin: 0.25rem 0; }
.booking-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(255, 215, 0, 0.06);
  color: #fde68a;
  font-size: 0.8125rem;
}

.empty-state { padding: 2.5rem 1rem; }
.empty-icon { font-size: 2.5rem; margin: 0; }

/* Profile */
.profile-header .profile-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Reviews */
.review-header {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
}

.stars { color: var(--gold); letter-spacing: 0.1em; }
.review-comment { margin: 0; line-height: 1.7; }

.review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.review-images img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

/* Admin */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card { text-align: center; }
.stat-label { display: block; font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.stat-value { font-family: var(--font-display); font-size: 1.75rem; }

.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th, .admin-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table th { color: var(--gold-muted); font-weight: 600; }

.queue-card .queue-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badges { display: flex; gap: 0.375rem; flex-wrap: wrap; }

.queue-slip-preview {
  margin: 1rem 0 0.5rem;
  max-width: 100%;
}

.queue-slip-preview a {
  display: inline-block;
  max-width: min(220px, 100%);
  line-height: 0;
}

.queue-slip-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 280px;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.inline-form { display: inline; }

.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 1.5rem 0;
}

::selection {
  background: rgba(255, 215, 0, 0.35);
  color: #000;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(1) saturate(5) hue-rotate(5deg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-full { grid-column: 1 / -1; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

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

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

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

.text-danger { color: #f87171; }

.block { display: block; }

code {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.admin-nav {
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.admin-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.admin-nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.12);
}

.footer-discord-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #000, rgba(120, 80, 0, 0.25), #000);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-discord-banner:hover {
  background: linear-gradient(90deg, rgba(80, 50, 0, 0.4), rgba(120, 80, 0, 0.35), rgba(80, 50, 0, 0.4));
}

.footer-brand {
  font-weight: 700;
  color: var(--gold);
}

.step-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.step-pill {
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.step-pill.active {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  font-weight: 600;
}

.step-pill.done {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.tier-card {
  display: block;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-align: center;
  cursor: pointer;
}

.tier-card.selected {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
}

.tier-exp { display: block; font-size: 0.75rem; font-weight: 600; }
.tier-sub { display: block; font-size: 0.65rem; color: var(--muted); }
.tier-price { display: block; font-size: 0.65rem; color: var(--muted); margin-top: 0.25rem; }

/* Book wizard */
.book-page .page-title { margin-bottom: 1.5rem; }
.book-user-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice-btn {
  flex: 1;
  min-width: 8rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.choice-btn.selected,
.choice-btn:has(input:checked) {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
}

.hour-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.hour-btn,
.party-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.hour-btn.selected,
.party-btn.selected {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
}

.party-btn.selected {
  background: linear-gradient(180deg, #ffd700, #d4a017);
  color: #000;
  border-color: #ffd700;
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.package-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.package-card {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.package-card.selected {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(255, 215, 0, 0.08);
}

.package-name {
  display: block;
  font-weight: 600;
  color: #fff;
}

.package-card.selected .package-name { color: var(--gold); }

.package-price {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
}

.package-details {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.package-details li {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.contact-package-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.contact-package-link:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(49, 46, 129, 0.2);
}

.contact-package-title {
  font-weight: 600;
  color: #e4e4e7;
}

.contact-package-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  background: #4f46e5;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.group-discount-note {
  font-size: 0.75rem;
  color: #6ee7b7;
  margin: 0.5rem 0 0;
}

.inline-breakdown {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.875rem;
}

.price-breakdown { margin-bottom: 0.75rem; }

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.price-line .text-white { color: #fff; }

.price-discount { color: #6ee7b7; }

.price-total-inline {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--gold);
}

.time-error {
  font-size: 0.75rem;
  color: #f87171;
  margin: 0.25rem 0 0.5rem;
}

.payment-choice {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-option-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.payment-option-btn.selected {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(255, 215, 0, 0.08);
}

.payment-option-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.payment-option-title {
  display: block;
  font-weight: 600;
  color: #fff;
}

.payment-option-btn.selected .payment-option-title { color: var(--gold); }

.payment-option-sub {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.promptpay-box {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
}

.promptpay-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.qr-wrap { text-align: center; }

.slip-upload {
  display: block;
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}

.slip-upload:hover { border-color: rgba(255, 215, 0, 0.35); }

.slip-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.slip-icon { font-size: 1.75rem; }

.slip-upload-preview {
  display: block;
  max-height: 10rem;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0.5rem;
  object-fit: contain;
}

@media (max-width: 640px) {
  .hour-grid { grid-template-columns: repeat(4, 1fr); }
  .party-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; }
}

.success-card .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.queue-number { font-size: 2.5rem; font-weight: 900; color: var(--gold); }

.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-2 { gap: 0.5rem; }
.justify-center { justify-content: center; }

/* Profile page */
.profile-hero { padding: 1.25rem; }

.profile-hero-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 215, 0, 0.4);
  flex-shrink: 0;
}

.profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #27272a;
  color: #fbbf24;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.profile-discord {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.profile-wallet {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: rgba(254, 243, 199, 0.85);
}

.profile-wallet strong { color: #ffd700; }

.profile-cta {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.profile-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar { display: none; }

.profile-tab {
  flex-shrink: 0;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid rgba(39, 39, 42, 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  color: #a1a1aa;
  text-decoration: none;
  transition: all 0.15s;
}

.profile-tab:hover { color: #e4e4e7; }

.tab-count { color: #52525b; margin-left: 0.25rem; }

.profile-tab.nav-link-active .tab-count { color: rgba(255, 215, 0, 0.6); }

.profile-bookings { display: flex; flex-direction: column; gap: 1rem; }

.booking-card-v2 { padding: 1rem; }

.booking-card-v2.accent-farming {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.12);
}

.booking-card-v2.accent-completed {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

.booking-card-v2.accent-cancelled {
  border-color: rgba(63, 63, 70, 0.6);
  opacity: 0.85;
}

.booking-card-v2.accent-confirmed {
  border-color: rgba(56, 189, 248, 0.35);
}

.booking-card-v2.accent-pending {
  border-color: rgba(255, 140, 0, 0.3);
}

.booking-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.booking-queue {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0;
}

.booking-time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.badge {
  display: inline-flex;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-success {
  background: rgba(6, 78, 59, 0.6);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}

.badge-warning {
  background: rgba(120, 53, 15, 0.5);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.badge-danger {
  background: rgba(127, 29, 29, 0.5);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.badge-info {
  background: rgba(24, 24, 27, 0.6);
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.3);
}

.booking-service {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: rgba(254, 243, 199, 0.9);
}

.booking-schedule {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.booking-card-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.booking-payment-info {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.booking-payment-info p { margin: 0.125rem 0; }

.msg-awaiting { color: #fbbf24 !important; margin-top: 0.25rem !important; }
.msg-rejected { color: #f87171 !important; margin-top: 0.25rem !important; }

.booking-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffd700;
  margin: 0;
}

.review-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #fbbf24;
  text-decoration: none;
}

.review-link:hover { color: #fde68a; }

.empty-state-box {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.empty-icon { font-size: 2.5rem; margin: 0; }
