/* ================================================
   餐點訂購平台 - 共用樣式
   BoyceLab | order.boycelab.com
   科技感深色主題
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── 設計變數 ───────────────────────────────── */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1625;
  --bg-card: #131b2e;
  --bg-card-hover: #1a2540;
  --bg-glass: rgba(19, 27, 46, 0.8);

  --border-color: rgba(99, 179, 237, 0.15);
  --border-hover: rgba(99, 179, 237, 0.4);
  --border-accent: rgba(139, 92, 246, 0.4);

  --accent-blue: #63b3ed;
  --accent-purple: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-orange: #f59e0b;

  --grad-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --grad-accent: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
  --grad-dark: linear-gradient(180deg, #0a0e1a 0%, #0f1625 100%);

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #63b3ed;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(99, 179, 237, 0.15);
  --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── 背景網格效果 ─────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 179, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 179, 237, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Navbar ──────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: var(--grad-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

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

.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.navbar-link:hover { color: var(--accent-blue); }

.navbar-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Layout ──────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px;
}

.page-wrapper.wide {
  max-width: 1200px;
}

/* ── Card ────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .icon {
  font-size: 20px;
}

/* ── Hero Section ────────────────────────────── */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
}

.hero-tag::before { content: '●'; font-size: 8px; animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(99, 179, 237, 0.05);
}

.btn-danger {
  background: transparent;
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--accent-red);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }

/* ── Form Elements ───────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-label .required { color: var(--accent-red); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
}

.form-input::placeholder { color: var(--text-muted); }

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

/* ── Status Badge ────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.status-badge.open {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

.status-badge.closed {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-orange);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ── Menu Styles ─────────────────────────────── */
.store-header {
  margin-bottom: 24px;
  text-align: center;
}

.store-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.store-type-badge.drink {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.2);
  color: var(--accent-cyan);
}

.store-type-badge.food {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--accent-orange);
}

.store-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.menu-category {
  margin-bottom: 32px;
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  font-family: 'JetBrains Mono', monospace;
}

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

/* ── Menu Item Card ──────────────────────────── */
.menu-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all var(--transition);
}

.menu-item-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.menu-item-card.selected {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.15);
  background: rgba(34, 211, 238, 0.04);
}

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

.item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
}

.item-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── Option Groups ───────────────────────────── */
.option-group {
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s;
}

.option-group.shake {
  animation: shakeX 0.4s ease;
  border-color: var(--accent-red) !important;
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.option-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.required-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.choice-chip {
  cursor: pointer;
}

.choice-chip input {
  display: none;
}

.choice-chip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  user-select: none;
}

.choice-chip span em {
  font-style: normal;
  color: var(--accent-green);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

.choice-chip input:checked + span {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.choice-chip span:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ── Item Footer ─────────────────────────────── */
.item-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-add-item {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-add-item:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.06);
}

.btn-remove-item {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-green);
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-remove-item:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.quantity-ctrl {
  align-items: center;
  gap: 8px;
  display: none;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.qty-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.qty-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

.item-subtotal {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Order Summary ───────────────────────────── */
.order-summary-panel {
  position: sticky;
  bottom: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 16px 20px;
  z-index: 50;
}

.summary-items { margin-bottom: 12px; }

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.summary-price {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-cyan);
}

.summary-opts {
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 8px;
  border-left: 2px solid var(--border-color);
  margin-bottom: 4px;
}

.summary-total {
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  color: var(--text-primary);
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.summary-total strong {
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
}

.empty-summary {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
}

/* ── Toast ───────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  max-width: 320px;
  animation: slideIn 0.3s ease, fadeOut 0.4s ease 2.6s forwards;
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
}

.toast.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

.toast.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

.toast.info {
  background: rgba(99, 179, 237, 0.12);
  border-color: rgba(99, 179, 237, 0.25);
  color: var(--accent-blue);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; pointer-events: none; }
}

/* ── Loading Overlay ─────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  gap: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Closed State ────────────────────────────── */
.closed-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 16px;
}

.closed-icon {
  font-size: 64px;
  opacity: 0.6;
}

.closed-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.closed-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 360px;
}

/* ── Order Confirm View ──────────────────────── */
.order-confirm-card {
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: rgba(34, 211, 238, 0.04);
  margin-bottom: 16px;
}

.confirm-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Admin Aside ─────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  min-height: calc(100vh - 60px);
}

.admin-aside {
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.admin-main {
  padding: 24px;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 4px;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
  width: 100%;
  text-align: left;
}

.admin-nav-item:hover {
  background: rgba(99, 179, 237, 0.08);
  color: var(--text-primary);
}

.admin-nav-item.active {
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.admin-section { display: none; }
.admin-section.active { display: block; }

/* ── Status Toggle ───────────────────────────── */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input { display: none; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  transition: 0.3s;
  border: 1px solid var(--border-color);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .toggle-slider {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-green);
}

input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: var(--accent-green);
}

/* ── Order Table ─────────────────────────────── */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.orders-table th {
  padding: 10px 12px;
  text-align: left;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}

.orders-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

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

.order-item-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── Menu JSON Importer ──────────────────────── */
.json-textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  min-height: 200px;
  color: var(--accent-cyan);
}

.json-preview {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-green);
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
}

/* ── Divider ─────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: 24px 0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.info-label { font-size: 13px; color: var(--text-muted); }
.info-value { font-size: 14px; font-weight: 500; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; }

/* ── Footer ──────────────────────────────────── */
.footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-aside {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    overflow-x: auto;
    padding: 12px;
    gap: 4px;
  }
  .admin-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    margin-bottom: 0;
  }
  .admin-main { padding: 16px; }
  .items-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .navbar { padding: 0 16px; }
  .page-wrapper { padding: 20px 12px; }
  .hero { padding: 40px 16px 24px; }
}

/* ── Utility ─────────────────────────────────── */
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 13px; }
.monospace { font-family: 'JetBrains Mono', monospace; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }
