/* ═══════════════════════════════════════════════════════════════
   餐饮 Banner 生成中心 — V2 UI Design System
   Based on design mockups 2026-06-03
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  /* Backgrounds */
  --bg: #0a0e1a;
  --bg-deep: #070a12;
  --bg-surface: #111827;
  --bg-surface-2: #1a1f2e;
  --bg-surface-3: #232838;
  --bg-card: #161b27;
  --bg-hover: #1e2433;

  /* Borders */
  --border: #232838;
  --border-light: #2d3548;
  --border-glow: rgba(108, 99, 255, 0.15);

  /* Text */
  --text: #e8eaf6;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #475569;

  /* Accents */
  --primary: #6c63ff;
  --primary-light: #8b82ff;
  --primary-dark: #5a52d9;
  --primary-glow: rgba(108, 99, 255, 0.3);
  --secondary: #48c9b0;
  --secondary-light: #5dd4bd;
  --secondary-glow: rgba(72, 201, 176, 0.3);
  --gold: #f0b429;
  --gold-glow: rgba(240, 180, 41, 0.3);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --success: #10b981;
  --info: #3b82f6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6c63ff, #8b5cf6);
  --gradient-secondary: linear-gradient(135deg, #48c9b0, #0ea5e9);
  --gradient-gold: linear-gradient(135deg, #f0b429, #f59e0b);
  --gradient-card: linear-gradient(180deg, rgba(108, 99, 255, 0.06), transparent 60%);
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(108, 99, 255, 0.12), transparent);

  /* Spacing */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow-primary: 0 0 20px rgba(108, 99, 255, 0.2);
  --shadow-glow-secondary: 0 0 20px rgba(72, 201, 176, 0.2);

  /* Layout */
  --sidebar-width: 220px;
  --header-height: 60px;
  --mobile-nav-height: 64px;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', Consolas, monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(108, 99, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 20% 100%, rgba(72, 201, 176, 0.05), transparent);
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Layout ── */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.content-area {
  flex: 1;
  padding: 24px 32px 32px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.sidebar-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.sidebar-logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

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

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.sidebar-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.sidebar-item.active {
  background: rgba(108, 99, 255, 0.12);
  color: var(--primary-light);
  font-weight: 600;
}

.sidebar-item .icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.quota-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.quota-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quota-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.quota-number span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.quota-bar {
  height: 4px;
  background: var(--bg-surface-3);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.quota-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.quota-btn {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quota-btn:hover { opacity: 0.9; }

/* ── Header ── */
.top-header {
  height: var(--header-height);
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-tabs {
  display: none;
  gap: 4px;
}

.header-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  background: none;
  text-decoration: none;
}

.header-tab:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.header-tab.active {
  background: rgba(108, 99, 255, 0.12);
  color: var(--primary-light);
  font-weight: 600;
}

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

.remaining-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
}

.remaining-badge .count {
  color: var(--secondary);
  font-weight: 700;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: var(--transition-fast);
}

.avatar:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* ── Page Header ── */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.card-glow:hover {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: var(--shadow-glow-primary);
}

.card-glow-green:hover {
  border-color: rgba(72, 201, 176, 0.3);
  box-shadow: var(--shadow-glow-secondary);
}

/* Mode Cards */
.mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.mode-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.mode-card-icon.purple { background: rgba(108, 99, 255, 0.15); }
.mode-card-icon.blue { background: rgba(59, 130, 246, 0.15); }
.mode-card-icon.green { background: rgba(72, 201, 176, 0.15); }

.mode-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mode-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.mode-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-fast);
  margin-top: auto;
}

.mode-card-btn.purple {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(108, 99, 255, 0.25);
}

.mode-card-btn.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.mode-card-btn.green {
  background: rgba(72, 201, 176, 0.15);
  color: var(--secondary-light);
  border: 1px solid rgba(72, 201, 176, 0.25);
}

.mode-card:hover .mode-card-btn.purple {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.mode-card:hover .mode-card-btn.blue {
  background: var(--info);
  color: #fff;
  border-color: var(--info);
}

.mode-card:hover .mode-card-btn.green {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.badge-green {
  background: rgba(72, 201, 176, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(72, 201, 176, 0.25);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--bg-deep);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(240, 180, 41, 0.25);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240, 180, 41, 0.35);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-block { width: 100%; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius);
}

/* ── Form Elements ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

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

.form-input {
  padding: 10px 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

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

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

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
  position: relative;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.04);
}

.upload-zone.dragover {
  border-color: var(--secondary);
  background: rgba(72, 201, 176, 0.06);
}

.upload-zone-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.upload-zone-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.upload-zone-hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.upload-formats {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.upload-format-tag {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  background: var(--bg-surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ── Result Cards (AI Analysis) ── */
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: var(--transition-fast);
}

.result-card:hover {
  border-color: var(--border-light);
}

.result-card-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.result-card-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.result-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.tag {
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.tag-primary {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-light);
  border-color: rgba(108, 99, 255, 0.2);
}

.tag-secondary {
  background: rgba(72, 201, 176, 0.1);
  color: var(--secondary);
  border-color: rgba(72, 201, 176, 0.2);
}

/* ── Similarity Score ── */
.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--secondary) calc(var(--score) * 3.6deg), var(--bg-surface-3) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto 16px;
}

.score-circle::before {
  content: '';
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-card);
}

.score-value {
  position: relative;
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary);
}

.score-label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.score-desc {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Section ── */
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.section-title a:hover { color: var(--primary-light); }

/* ── Case Cards ── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}

.case-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-surface-2);
}

.case-card-body {
  padding: 16px;
}

.case-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.case-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Image Grid ── */
.image-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.image-grid-5 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition-fast);
}

.image-grid-5 img:hover {
  transform: scale(1.03);
  border-color: var(--primary);
}

/* ── Banner Result ── */
.banner-result {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
}

.banner-result img {
  width: 100%;
  display: block;
}

/* ── Action Panel ── */
.action-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Progress Steps ── */
.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.progress-step.active {
  background: rgba(108, 99, 255, 0.08);
  color: var(--primary-light);
}

.progress-step.done {
  color: var(--secondary);
}

.progress-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--bg-surface-3);
  flex-shrink: 0;
}

.progress-step.active .progress-step-icon {
  background: var(--primary);
  color: #fff;
}

.progress-step.done .progress-step-icon {
  background: var(--secondary);
  color: #fff;
}

/* ── Spinner ── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ── Toast / Error ── */
.error-box {
  padding: 14px 18px;
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.error-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
  margin-bottom: 4px;
}

.error-message {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Collapsible Section ── */
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition-fast);
  user-select: none;
}

.collapsible-header:hover {
  border-color: var(--border-light);
}

.collapsible-body {
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  display: none;
}

.collapsible-body.open { display: block; }

.collapsible-arrow {
  transition: transform 0.2s;
  font-size: 12px;
}

.collapsible-header.open .collapsible-arrow {
  transform: rotate(180deg);
}

/* ── Mobile Bottom Nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  padding: 0 16px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  text-decoration: none;
  transition: var(--transition-fast);
  flex: 1;
}

.mobile-nav-item.active {
  color: var(--primary-light);
}

.mobile-nav-item .icon {
  font-size: 20px;
}

.mobile-nav-center {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-top: -16px;
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
}

/* ── Mobile Header ── */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.mobile-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

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

/* ── Hero ── */
.hero-section {
  text-align: center;
  padding: 48px 20px;
  position: relative;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 20%, #a5b4fc 50%, var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ── Grid Layouts ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ── Flex utilities ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ── Spacing ── */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }

/* ── Text utilities ── */
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ── Hide/Show ── */
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 1199px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .mobile-header { display: flex; }
  .top-header { display: none; }
  .content-area { padding: 16px; padding-bottom: calc(var(--mobile-nav-height) + 24px); }
}

@media (min-width: 1200px) {
  .mobile-nav { display: none !important; }
  .mobile-header { display: none !important; }
}

@media (max-width: 991px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .image-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .image-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
  .mobile-nav { display: block; }
  .hero-section { padding: 32px 16px; }
}

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