:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Fira Code', Consolas, Monaco, monospace;

  /* Color Palette */
  --bg-body: #070a12;
  --bg-surface: #0f1626;
  --bg-surface-elevated: #162035;
  
  --primary: #f38020;
  --primary-light: #faad3f;
  --primary-glow: rgba(243, 128, 32, 0.35);

  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(243, 128, 32, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --panel-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 24px 0 rgba(243, 128, 32, 0.03);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  selection-background-color: var(--primary);
  selection-color: #fff;
}

/* Ambient Glowing Background Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.orb-top {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -120px;
  right: -100px;
}

.orb-bottom {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  bottom: -180px;
  left: -120px;
}

/* App Container Layout */
.app-layout {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* Glass Panel Utility */
.glass-panel {
  background: rgba(15, 22, 38, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--panel-shadow);
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  background: rgba(15, 22, 38, 0.8);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #ff5722);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.brand-logo svg {
  width: 24px;
  height: 24px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-store {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.brand-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Device Fingerprint Pill */
.device-fingerprint-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.fp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.fp-label {
  font-weight: 600;
  color: #a5f3fc;
}

.fp-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #38bdf8;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.nav-tab svg {
  width: 16px;
  height: 16px;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: linear-gradient(135deg, var(--primary), #ff6b00);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Notice Banner */
.notice-banner {
  background: rgba(243, 128, 32, 0.08);
  border: 1px solid rgba(243, 128, 32, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.notice-tag {
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.notice-text {
  color: #fed7aa;
}

/* Tab Views Management */
.tab-view {
  display: none;
  animation: fadeIn 0.35s ease;
}

.tab-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.filter-btn.active {
  background: rgba(243, 128, 32, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: transform var(--transition-smooth), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px 0 var(--primary-glow);
}

.product-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.prod-icon {
  font-size: 2.2rem;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.prod-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(243, 128, 32, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(243, 128, 32, 0.3);
  padding: 3px 9px;
  border-radius: 20px;
}

.prod-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.prod-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  min-height: 48px;
}

.prod-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
  flex-grow: 1;
}

.prod-features li {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-check {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 0.85rem;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.price-wrap {
  display: flex;
  flex-direction: column;
}

.price-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-light);
}

.price-num .currency {
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 2px;
}

.stock-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.stock-available {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
}

.stock-low {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
}

.stock-empty {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.1);
}

.btn-buy {
  background: linear-gradient(135deg, var(--primary), #ff6b00);
  border: none;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all var(--transition-fast);
}

.btn-buy:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(243, 128, 32, 0.5);
}

.btn-buy:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
}

/* Tab 2: Aftersales & Query */
.query-hero {
  padding: 36px 40px;
  margin-bottom: 30px;
}

.query-hero-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.query-hero-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.query-hero-icon svg {
  width: 30px;
  height: 30px;
}

.query-hero-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
}

.query-hero-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.fp-retrieval-box {
  background: rgba(6, 182, 212, 0.05);
  border: 1px dashed rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.btn-hero-fp {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.btn-hero-fp:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.btn-hero-fp svg {
  width: 20px;
  height: 20px;
}

.fp-hint {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 10px;
}

.query-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.query-divider::before,
.query-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.query-divider span {
  padding: 0 14px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.query-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

.input-wrap label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input-wrap input,
.form-group input,
.form-group textarea,
.custom-select {
  width: 100%;
  background: rgba(5, 8, 15, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.input-wrap input:focus,
.form-group input:focus,
.form-group textarea:focus,
.custom-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(243, 128, 32, 0.2);
}

/* Order Query Results Card */
.query-order-card {
  padding: 24px;
  margin-bottom: 20px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.order-badge-paid {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.delivered-card-row {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-account-line {
  color: #38bdf8;
  word-break: break-all;
}

/* Tab 3: Admin Console */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 6px 0;
}

.stat-card .stat-foot {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.text-accent { color: var(--primary-light); }
.text-emerald { color: var(--accent-emerald); }
.text-muted { color: var(--text-muted); }

.admin-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  margin-bottom: 24px;
}

.admin-import-box,
.admin-fingerprint-box,
.admin-table-box {
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.panel-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.badge-mini {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

.table-wrap {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

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

.data-table th {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tag-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.tag-available {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.tag-sold {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.count-badge {
  font-size: 0.75rem;
  background: rgba(243, 128, 32, 0.15);
  color: var(--primary-light);
  padding: 2px 8px;
  border-radius: 12px;
}

.admin-filters {
  display: flex;
  gap: 8px;
}

.select-mini {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-dialog {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--primary-glow);
}

.delivery-dialog {
  max-width: 660px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 1.8rem;
}

.modal-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.btn-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.order-summary-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.summary-row:not(:last-child) {
  margin-bottom: 8px;
}

.price-val {
  color: var(--primary-light);
  font-size: 1.2rem;
  font-family: var(--font-mono);
}

.stock-badge {
  color: var(--accent-emerald);
  font-weight: 700;
}

.stepper-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 140px;
}

.btn-stepper {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-wrap input {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 6px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pay-option.active {
  border-color: var(--primary);
  background: rgba(243, 128, 32, 0.08);
}

.pay-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.pay-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.pay-tag {
  font-size: 0.7rem;
  background: var(--primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.fp-protection-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 14px;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: #94a3b8;
}

.fp-protection-notice svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}

.total-price-wrap {
  display: flex;
  flex-direction: column;
}

.total-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.total-amount {
  font-size: 1.55rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-light);
}

/* Delivery Modal */
.success-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.success-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}

.cards-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.actions-group {
  display: flex;
  gap: 8px;
}

.cards-scroll-box {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-item-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-item-box code {
  color: #7dd3fc;
}

.delivery-tips {
  margin-top: 16px;
  font-size: 0.82rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Common Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff6b00);
  border: none;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(243, 128, 32, 0.5);
}

.btn-large {
  padding: 12px 28px;
  font-size: 1rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-mini {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.full-width {
  width: 100%;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: rgba(15, 22, 38, 0.95);
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-size: 0.88rem;
  backdrop-filter: blur(12px);
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-tech-stack {
  margin-top: 6px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 960px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
  .query-form-row {
    grid-template-columns: 1fr;
  }
  .navbar {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-tabs {
    justify-content: center;
  }
}
