/* ════════════════════════════════════════════════════════════════════════════
   ROUXMIND v4.0 — THE ULTIMATE CULINARY DESIGN SYSTEM
   Where Every Plate Tells Your Story
   Built by Sooban Talha Tech | soobantalhatech.xyz
   
   COMPLETE REBUILD — 12,500+ LINES OF PREMIUM CSS
   All bugs fixed: sidebar, main area, mobile, photo model, modals
   ════════════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 1: CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── PRIMARY PALETTE ── */
  --gold: #d4af37;
  --gold-light: #f3d67a;
  --gold-dark: #a8842a;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --gold-glow: rgba(212, 175, 55, 0.4);
  --gold-rgb: 212, 175, 55;

  /* ── SEMANTIC COLORS ── */
  --success: #3ddc84;
  --success-rgb: 61, 220, 132;
  --danger: #ff5470;
  --danger-rgb: 255, 84, 112;
  --warning: #ffb020;
  --warning-rgb: 255, 176, 32;
  --info: #00d4ff;
  --info-rgb: 0, 212, 255;

  /* ── BACKGROUND LAYERS ── */
  --bg-void: #03050c;
  --bg-deep: #070b1a;
  --bg-mid: #0a1128;
  --bg-panel: #0d1330;
  --bg-card: #0e1029;
  --bg-input: #111430;
  --bg-hover: rgba(212, 175, 55, 0.06);
  --bg-0: #050503;
  --bg-1: #0a0a08;
  --bg-2: #121210;
  --bg-3: #1a1a16;

  /* ── TEXT INK LEVELS ── */
  --ink: #eef1f8;
  --ink-soft: #aab2cc;
  --ink-faint: #6b7394;
  --text-1: #f6f2e8;
  --text-2: #b8b0a0;
  --text-3: #736c5c;

  /* ── BORDER & LINE ── */
  --line: rgba(238, 241, 248, 0.08);
  --line-strong: rgba(238, 241, 248, 0.16);
  --border: rgba(212, 175, 55, 0.16);
  --border-strong: rgba(212, 175, 55, 0.35);

  /* ── GLASS ── */
  --glass: rgba(13, 19, 48, 0.55);
  --glass-strong: rgba(13, 19, 48, 0.78);

  /* ── SHADOWS ── */
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.25);
  --shadow-blue: 0 0 40px rgba(0, 212, 255, 0.18);

  /* ── RADIUS ── */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --radius-full: 9999px;

  /* ── EASING ── */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in: cubic-bezier(1, 0, 1, 1);

  /* ── TYPOGRAPHY ── */
  --display: 'Fraunces', 'Playfair Display', serif;
  --body: 'Inter', system-ui, sans-serif;
  --tech: 'Orbitron', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  /* ── ACCENT COLORS ── */
  --blue: #00d4ff;
  --blue-rgb: 0, 212, 255;
  --violet: #9b6bff;
  --violet-rgb: 155, 107, 255;
  --emerald: #26e0a4;
  --emerald-rgb: 38, 224, 164;
  --ruby: #ff5c7c;
  --ruby-rgb: 255, 92, 124;
  --silver: #e8e8ec;
  --silver-rgb: 232, 232, 236;

  /* ── SPACING ── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* ── Z-INDEX LAYERS ── */
  --z-base: 1;
  --z-sidebar: 100;
  --z-header: 50;
  --z-overlay: 200;
  --z-modal: 1000;
  --z-toast: 2000;
  --z-loading: 9999;

  /* ── SIDEBAR ── */
  --sidebar-width: 300px;
  --sidebar-collapsed-width: 0px;
  --header-height: 64px;
  --transition-speed: 0.35s;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 2: LIGHT THEME
   ════════════════════════════════════════════════════════════════════════════ */

[data-theme="light"] {
  --bg-void: #f8fbff;
  --bg-deep: #eef4ff;
  --bg-mid: #e1e9fc;
  --bg-panel: rgba(255, 255, 255, 0.92);
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-input: #dde4f0;
  --bg-hover: rgba(212, 175, 55, 0.08);
  --ink: #0d1330;
  --ink-soft: #4a5568;
  --ink-faint: #718096;
  --text-1: #1a1a2e;
  --text-2: #4a4a5a;
  --text-3: #8a8a9a;
  --line: rgba(0, 0, 0, 0.06);
  --line-strong: rgba(0, 0, 0, 0.12);
  --border: rgba(212, 175, 55, 0.25);
  --border-strong: rgba(212, 175, 55, 0.45);
  --glass: rgba(255, 255, 255, 0.65);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 3: GLOBAL RESET & NORMALIZATION
   ════════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--body);
  background: var(--bg-void);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--gold);
  transition: color 0.2s var(--ease);
}

a:hover { color: var(--gold-light); }

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

button { cursor: pointer; }

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

::selection {
  background: var(--gold);
  color: #000;
}

::-moz-selection {
  background: var(--gold);
  color: #000;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 4: SCROLLBAR STYLING
   ════════════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-input);
  border-radius: 10px;
  border: 2px solid var(--bg-deep);
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-input) var(--bg-deep);
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 5: ATMOSPHERIC ENGINE (BACKGROUND EFFECTS)
   ════════════════════════════════════════════════════════════════════════════ */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 1200px 800px at 10% 5%, rgba(212, 175, 55, 0.08), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 90% 15%, rgba(0, 212, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 900px 900px at 50% 100%, rgba(155, 107, 255, 0.05), transparent 60%),
    radial-gradient(ellipse 600px 400px at 70% 80%, rgba(212, 175, 55, 0.04), transparent 50%),
    linear-gradient(180deg, var(--bg-void) 0%, var(--bg-deep) 40%, var(--bg-mid) 100%);
}

.gridlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 30%, transparent 75%);
}

#starfield,
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 6: PARTICLE SYSTEM
   ════════════════════════════════════════════════════════════════════════════ */

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(-100vh) translateX(30px);
    opacity: 0;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 7: LOADING OVERLAY
   ════════════════════════════════════════════════════════════════════════════ */

.dashboard-loading {
  position: fixed;
  inset: 0;
  z-index: var(--z-loading);
  background: var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.dashboard-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dl-inner {
  position: relative;
  text-align: center;
}

.dl-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px var(--gold-glow));
  animation: dlPulse 2s ease-in-out infinite;
}

.dl-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: dlSpin 1.1s linear infinite;
}

.dl-ring-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  border: 1px solid transparent;
  border-bottom-color: var(--blue);
  border-radius: 50%;
  animation: dlSpin 1.8s linear infinite reverse;
}

.dl-text {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.dl-bar {
  width: 200px;
  height: 3px;
  background: var(--line);
  border-radius: 10px;
  margin: 16px auto 0;
  overflow: hidden;
}

.dl-bar-fill {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 10px;
  animation: dlBarMove 1.5s ease-in-out infinite;
}

@keyframes dlPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.95); }
}

@keyframes dlSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes dlBarMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 8: TOAST NOTIFICATIONS
   ════════════════════════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(14, 16, 41, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  max-width: 100%;
  animation: toastIn 0.4s var(--ease-spring);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
}

.toast.success::before { background: var(--success); }
.toast.error::before { background: var(--danger); }
.toast.warning::before { background: var(--warning); }
.toast.info::before { background: var(--info); }

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-message { flex: 1; min-width: 0; }

.toast-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--line);
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.2s;
}

.toast-close:hover {
  background: var(--line-strong);
  color: var(--ink);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(50px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(50px) scale(0.95); }
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 9: MAIN DASHBOARD LAYOUT
   ════════════════════════════════════════════════════════════════════════════ */

.dash-body {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 10: LEFT SIDEBAR
   ════════════════════════════════════════════════════════════════════════════ */

.left-panel {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: rgba(5, 8, 18, 0.6);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--transition-speed) var(--ease),
              width var(--transition-speed) var(--ease),
              margin var(--transition-speed) var(--ease);
  z-index: var(--z-sidebar);
  position: relative;
}

.left-panel.collapsed {
  transform: translateX(-100%);
  margin-right: calc(var(--sidebar-width) * -1);
  width: 0;
  min-width: 0;
  overflow: hidden;
  border-right: none;
}

/* ── Sidebar Brand ── */
.lp-brand {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.lp-brand-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 0 20px var(--gold-glow));
  transition: filter 0.3s;
}

.lp-brand-img:hover {
  filter: drop-shadow(0 0 30px var(--gold-glow));
}

/* ── Sidebar Profile ── */
.lp-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.04), transparent);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.lp-profile:hover {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent);
}

.lp-avatar {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
  transform: rotate(-3deg);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.lp-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.lp-avatar:hover {
  transform: rotate(0deg) scale(1.08);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.avatar-icon { pointer-events: none; }

.lp-profile-info {
  min-width: 0;
  flex: 1;
}

.lp-profile-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-profile-rank {
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 3px;
  font-weight: 600;
}

/* ── Sidebar Stats Grid ── */
.lp-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin: 16px 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.lp-stat {
  background: var(--bg-deep);
  padding: 14px 10px;
  text-align: center;
  transition: background 0.2s;
}

.lp-stat:hover {
  background: var(--bg-mid);
}

.lp-stat-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--mono);
}

.lp-stat-lbl {
  font-size: 0.65rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.lp-stat-lbl i { color: var(--gold); font-size: 0.7rem; }

/* ── Sidebar Navigation ── */
.lp-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px 16px;
}

.lp-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
  position: relative;
}

.lp-nav-item:hover {
  background: var(--line);
  color: var(--ink);
  border-color: var(--line-strong);
}

.lp-nav-item:active {
  transform: scale(0.98);
}

.lp-nav-icon {
  width: 18px;
  text-align: center;
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.lp-nav-cta {
  background: linear-gradient(135deg, var(--gold-soft), transparent);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1);
}

.lp-nav-cta .lp-nav-icon { color: var(--gold-light); }

.lp-nav-cta:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), transparent);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}

.lp-nav-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-family: var(--mono);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lp-nav-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 4px;
}

/* ── Sidebar Saved Recipes ── */
.lp-recent {
  padding: 0 20px 16px;
}

.lp-recent-hdr {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-faint);
  margin-bottom: 10px;
  padding: 0 4px;
  font-weight: 600;
}

.lp-recent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: var(--radius-sm);
  transition: box-shadow 0.4s;
}

.lp-recent-list.flash {
  box-shadow: 0 0 0 2px var(--gold), 0 0 20px var(--gold-glow);
}

/* ── Sidebar About ── */
.lp-about {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

.lp-about a {
  color: var(--gold);
  font-weight: 600;
}

.lp-about a:hover {
  color: var(--gold-light);
}

.lp-about strong {
  color: var(--ink-soft);
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 11: RIGHT / MAIN PANEL
   ════════════════════════════════════════════════════════════════════════════ */

.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 12: DASHBOARD HEADER
   ════════════════════════════════════════════════════════════════════════════ */

.dash-hdr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(4, 6, 16, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: var(--z-header);
  flex-shrink: 0;
  min-height: var(--header-height);
}

.hdr-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--line);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.25s var(--ease);
}

.hdr-icon-btn:hover {
  background: var(--line-strong);
  color: var(--gold);
  border-color: var(--border);
  transform: translateY(-1px);
}

.hdr-icon-btn:active {
  transform: translateY(0) scale(0.95);
}

/* ── Header Search ── */
.hdr-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 18px;
  transition: all 0.3s var(--ease);
  color: var(--ink-faint);
}

.hdr-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
  background: var(--bg-input);
}

.hdr-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.88rem;
  min-width: 0;
}

.hdr-search input::placeholder { color: var(--ink-faint); }

.hdr-search kbd {
  font-size: 0.6rem;
  font-family: var(--mono);
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 3px 7px;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ── Header Stats ── */
.hdr-stats {
  display: flex;
  gap: 8px;
}

.hdr-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.2s;
}

.hdr-stat:hover {
  border-color: var(--line-strong);
}

.hdr-stat i { color: var(--gold); }

.hdr-stat .stat-value {
  font-weight: 800;
  color: var(--ink);
  font-family: var(--mono);
}

.hdr-stat small { color: var(--ink-faint); }

/* ── Header Actions ── */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.hdr-btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #100c02;
  border: none;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--gold-glow);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.hdr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--gold-glow);
}

.hdr-btn-primary:active {
  transform: translateY(0) scale(0.97);
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 13: ANALYTICS PANEL
   ════════════════════════════════════════════════════════════════════════════ */

.analytics-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-deep);
  border-left: 1px solid var(--line);
  z-index: var(--z-overlay);
  padding: 24px;
  overflow-y: auto;
  transition: right 0.4s var(--ease);
  box-shadow: var(--shadow-lg);
}

.analytics-panel.active {
  right: 0;
}

.ap-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
}

.ap-hdr i { color: var(--gold); margin-right: 10px; }

.ap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.ap-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  transition: all 0.2s;
}

.ap-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-input);
}

.ap-card-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--mono);
}

.ap-card-lbl {
  font-size: 0.68rem;
  color: var(--ink-faint);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ap-section {
  margin-bottom: 24px;
}

.ap-section h4 {
  font-size: 0.85rem;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
}

/* ── Chart Bars ── */
.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
}

.chart-bar-label {
  width: 90px;
  flex-shrink: 0;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-bar-fill {
  flex: 1;
  height: 10px;
  background: var(--bg-input);
  border-radius: 10px;
  overflow: hidden;
}

.chart-bar-fill span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 10px;
  transition: width 0.6s var(--ease);
}

.chart-bar-value {
  color: var(--ink-faint);
  width: 24px;
  text-align: right;
  font-family: var(--mono);
}

/* ── Top Dishes ── */
.top-dishes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-dish {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  transition: all 0.2s;
}

.top-dish:hover {
  border-color: var(--line-strong);
  background: var(--bg-input);
}

.dish-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  font-family: var(--mono);
}

.dish-name {
  flex: 1;
  text-transform: capitalize;
  color: var(--ink-soft);
}

.dish-count {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 14: OUTPUT / CONTENT AREA
   ════════════════════════════════════════════════════════════════════════════ */

.out-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.out-area::-webkit-scrollbar { width: 6px; }
.out-area::-webkit-scrollbar-track { background: transparent; }
.out-area::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 15: WELCOME / EMPTY STATE
   ════════════════════════════════════════════════════════════════════════════ */

.welcome-section {
  text-align: center;
  max-width: 700px;
  margin: 4vh auto 30px;
  animation: fadeInUp 0.8s var(--ease);
}

.ws-mark {
  font-size: 64px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px var(--gold-glow));
  animation: float 4s ease-in-out infinite;
  display: block;
}

.ws-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

.ws-sub {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.ws-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #100c02;
  border: none;
  border-radius: 40px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 12px 36px var(--gold-glow);
  transition: all 0.3s var(--ease);
  font-family: var(--body);
}

.ws-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px var(--gold-glow);
}

.ws-cta:active {
  transform: translateY(0) scale(0.97);
}

.ws-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.ws-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
  cursor: default;
}

.ws-feat i { color: var(--gold); font-size: 0.85rem; }

.ws-feat:hover {
  border-color: var(--border-strong);
  background: var(--gold-soft);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 16: INPUT METHOD TILES
   ════════════════════════════════════════════════════════════════════════════ */

.input-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 30px;
  justify-content: center;
}

.im-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 120px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
  font-family: var(--body);
  position: relative;
  overflow: hidden;
}

.im-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.im-tile:hover::before { opacity: 1; }

.im-tile:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.im-tile:active {
  transform: translateY(-2px) scale(0.97);
}

.im-icon {
  font-size: 22px;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.im-tile span {
  position: relative;
  z-index: 1;
}

.im-tile-accent {
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.1), var(--bg-card));
  border-color: var(--border);
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 17: GENERATION PROGRESS
   ════════════════════════════════════════════════════════════════════════════ */

.generation-progress {
  display: none;
  max-width: 720px;
  margin: 20px auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.generation-progress.active,
.generation-progress[style*="block"] {
  display: block;
}

.gp-stages {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 8px;
}

.gp-stages .stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  opacity: 0.3;
  transition: opacity 0.4s, transform 0.4s;
}

.gp-stages .stage.active {
  opacity: 1;
  transform: scale(1.05);
}

.gp-stages .stage.completed {
  opacity: 0.7;
}

.stage-icon { font-size: 24px; }

.stage-label {
  font-size: 0.68rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.gp-bar {
  height: 6px;
  background: var(--bg-input);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.gp-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 10px;
  transition: width 0.5s var(--ease);
  position: relative;
}

.gp-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  bottom: -2px;
  width: 20px;
  background: var(--gold);
  border-radius: 10px;
  box-shadow: 0 0 12px var(--gold-glow);
}

.gp-cancel {
  display: none;
  margin: 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.gp-cancel:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 84, 112, 0.08);
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 18: STREAMING OUTPUT
   ════════════════════════════════════════════════════════════════════════════ */

.streaming-output {
  display: none;
  max-width: 800px;
  margin: 0 auto 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.streaming-output.active,
.streaming-output[style*="block"] {
  display: block;
}

.so-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 700;
}

.so-hdr i { animation: pulse 1.5s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.so-content {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 19: RECIPE CARD (THE MASTERPIECE)
   ════════════════════════════════════════════════════════════════════════════ */

.recipe-area {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.recipe-area.active,
.recipe-area[style*="flex"] {
  display: flex !important;
  flex-direction: column;
}

.recipe-card {
  width: 100%;
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  animation: scaleIn 0.5s var(--ease-spring);
}

.recipe-card-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 36px 36px 28px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06), transparent);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.recipe-card-hdr::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
}

.recipe-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.recipe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 5px 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 30px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
}

.recipe-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ra-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.25s var(--ease);
}

.ra-btn:hover {
  color: var(--gold);
  border-color: var(--border-strong);
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.ra-danger:hover {
  color: var(--danger);
  border-color: rgba(255, 84, 112, 0.4);
  background: rgba(255, 84, 112, 0.08);
}

.recipe-content {
  padding: 36px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  font-weight: 300;
}

.recipe-content h1,
.recipe-content h2,
.recipe-content h3 {
  color: var(--ink);
  font-family: var(--display);
  margin: 1.5em 0 0.6em;
}

.recipe-content h2 {
  font-size: 1.3rem;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
}

.recipe-content h3 { font-size: 1.1rem; }

.recipe-content ul,
.recipe-content ol {
  padding-left: 24px;
  margin: 0.8em 0;
}

.recipe-content li {
  margin-bottom: 8px;
  list-style: disc;
}

.recipe-content ol li { list-style: decimal; }

.recipe-content strong {
  color: var(--gold-light);
  font-weight: 700;
}

.recipe-content em { font-style: italic; color: var(--ink-soft); }

.recipe-content code {
  background: var(--bg-input);
  padding: 2px 8px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.9em;
}

.recipe-content p {
  margin-bottom: 14px;
}

.recipe-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 20: MODAL SYSTEM
   ════════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 60px 150px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s var(--ease-spring);
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-sm { max-width: 420px; }
.modal-md { max-width: 560px; }
.modal-lg { max-width: 720px; }

.modal-hdr {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-hdr h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.modal-hdr h2 i { color: var(--gold); }

.modal-x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-x:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 84, 112, 0.08);
}

.modal-body {
  padding: 28px;
  flex: 1;
  overflow-y: auto;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.1);
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 21: WIZARD MODAL
   ════════════════════════════════════════════════════════════════════════════ */

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 28px 0;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.progress-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  transition: all 0.3s;
}

.progress-step.active {
  color: var(--ink);
}

.progress-step.active span {
  background: var(--gold);
  color: #100c02;
  border-color: var(--gold);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.progress-step.completed {
  color: var(--gold);
}

.progress-step.completed span {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 8px;
  transition: background 0.3s;
}

.progress-line.active {
  background: var(--gold);
}

.wizard-body {
  min-height: 360px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: stepIn 0.3s var(--ease);
}

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

.wizard-footer { justify-content: flex-end; }

/* ── Input Tabs ── */
.input-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.input-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: var(--body);
  font-weight: 500;
}

.input-tab:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.input-tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #100c02;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--gold-glow);
}

.input-panel { display: none; }

.input-panel.active {
  display: block;
  animation: stepIn 0.25s var(--ease);
}

/* ── Text Input ── */
textarea#textInput,
.smart-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.92rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.6;
  min-height: 100px;
}

textarea#textInput:focus,
.smart-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

textarea#textInput::placeholder,
.smart-input::placeholder {
  color: var(--ink-faint);
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.suggestion-tag {
  padding: 6px 14px;
  background: var(--gold-soft);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.74rem;
  color: var(--gold-light);
  cursor: pointer;
  transition: all 0.2s;
}

.suggestion-tag:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.2);
}

/* ── Quick Ingredients ── */
.quick-ingredients {
  margin-top: 18px;
}

.quick-ingredients h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-faint);
  margin-bottom: 12px;
  font-family: var(--body);
  font-weight: 700;
}

.ingredient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ingredient-chip {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.ingredient-chip:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

/* ── Camera ── */
.camera-box {
  position: relative;
  background: var(--bg-input);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-md);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}

.camera-box video {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.camera-overlay {
  text-align: center;
  color: var(--ink-faint);
  padding: 20px;
}

.camera-overlay i {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.camera-overlay p {
  font-size: 0.88rem;
}

.camera-thumb {
  position: relative;
  width: 100%;
}

.camera-thumb img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.thumb-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.thumb-remove:hover {
  background: var(--danger);
  border-color: var(--danger);
}

.camera-controls,
.camera-actions,
.voice-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}

/* ── Voice ── */
.voice-box {
  position: relative;
  background: var(--bg-input);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-md);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color 0.3s;
}

.voice-box.recording {
  border-color: var(--danger);
  background: rgba(255, 84, 112, 0.05);
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 70px;
  padding: 0 20px;
}

.voice-wave span {
  width: 6px;
  height: 16px;
  background: var(--gold);
  border-radius: 4px;
  animation: waveBounce 1.2s ease-in-out infinite;
  opacity: 0.4;
}

.voice-wave span:nth-child(2) { animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { animation-delay: 0.4s; }

.voice-box.recording .voice-wave span {
  animation: waveBounceActive 0.8s ease-in-out infinite;
  opacity: 1;
  background: var(--danger);
}

@keyframes waveBounce {
  0%, 100% { height: 12px; }
  50% { height: 24px; }
}

@keyframes waveBounceActive {
  0%, 100% { height: 14px; }
  50% { height: 56px; }
}

.voice-transcript {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  min-height: 60px;
  line-height: 1.6;
}

.voice-transcript em {
  color: var(--ink-faint);
  font-style: italic;
}

/* ── Upload ── */
.upload-zone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.upload-zone i {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.upload-zone h4 {
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 1rem;
  font-family: var(--body);
}

.upload-zone p {
  color: var(--ink-faint);
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.upload-preview {
  position: relative;
  margin-top: 16px;
}

.upload-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ── Smart Input ── */
.smart-input {
  min-height: auto;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.smart-suggestions {
  margin-top: 16px;
}

/* ── Preferences ── */
.pref-block {
  margin-bottom: 24px;
}

.pref-block h4 {
  font-size: 0.9rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
}

.pref-block h4 i {
  color: var(--gold);
  font-size: 0.85rem;
}

.pref-slider {
  width: 100%;
  accent-color: var(--gold);
  height: 6px;
  cursor: pointer;
}

.pref-slider-val {
  text-align: center;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 500;
}

.pref-row {
  display: flex;
  gap: 16px;
}

.pref-half { flex: 1; }

.servings-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.serving-btn,
.time-btn {
  padding: 12px 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: var(--body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
}

.serving-btn:hover,
.time-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.serving-btn.active,
.time-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #100c02;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--gold-glow);
}

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

.pref-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--ink);
  font-size: 0.88rem;
  outline: none;
  font-family: var(--body);
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7394' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.pref-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.pref-select option {
  background: var(--bg-deep);
  color: var(--ink);
}

/* ── Review ── */
.review-title {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
}

.review-title i { color: var(--gold); }

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.review-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--ink-soft);
  transition: all 0.2s;
}

.review-item:hover {
  border-color: var(--line-strong);
}

.review-item i {
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 22: BUTTONS
   ════════════════════════════════════════════════════════════════════════════ */

.btn-primary,
.btn-secondary,
.btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  font-family: var(--body);
  white-space: nowrap;
}

.btn-primary {
  background: var(--bg-card);
  border-color: var(--line-strong);
  color: var(--gold-light);
}

.btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--line);
}

.btn-generate {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #100c02;
  font-weight: 800;
  box-shadow: 0 6px 20px var(--gold-glow);
  margin-left: auto;
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--gold-glow);
}

.btn-generate:active {
  transform: translateY(0) scale(0.97);
}

.btn-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 23: HISTORY MODAL
   ════════════════════════════════════════════════════════════════════════════ */

.history-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.history-toolbar .hdr-search {
  flex: 1;
  min-width: 160px;
}

.history-toolbar select { max-width: 150px; }

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.history-item:hover {
  border-color: var(--line-strong);
  background: var(--bg-input);
}

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

.item-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.item-date {
  font-size: 0.72rem;
  color: var(--ink-faint);
  flex-shrink: 0;
  margin-left: 10px;
}

.item-preview {
  color: var(--ink-faint);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.item-time {
  font-size: 0.7rem;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.saved-item:hover {
  border-color: var(--line-strong);
  background: var(--bg-input);
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 24: SETTINGS MODAL
   ════════════════════════════════════════════════════════════════════════════ */

.settings-block {
  margin-bottom: 22px;
}

.settings-block label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-weight: 700;
}

.avatar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avatar-option {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 2px solid var(--line);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
}

.avatar-option:hover {
  border-color: var(--line-strong);
  transform: scale(1.08);
}

.avatar-option.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px var(--gold-soft);
  transform: scale(1.08);
}

.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.confirm-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.confirm-buttons .btn-generate {
  margin-left: 0;
  flex: 1;
  justify-content: center;
}

.confirm-buttons .btn-secondary {
  flex: 1;
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 25: BACK TO TOP
   ════════════════════════════════════════════════════════════════════════════ */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #100c02;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 8px 24px var(--gold-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
  z-index: 500;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--gold-glow);
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 26: EMPTY STATE
   ════════════════════════════════════════════════════════════════════════════ */

.empty-state {
  color: var(--ink-faint);
  font-size: 0.82rem;
  padding: 16px 8px;
  text-align: center;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 27: UTILITY CLASSES
   ════════════════════════════════════════════════════════════════════════════ */

.glow-gold {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
}

.glow-blue {
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Glass Levels */
.glass-1 { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
.glass-2 { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(8px); }
.glass-3 { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(16px); }
.glass-4 { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(24px); }
.glass-5 { background: rgba(4,6,16,0.85); border: 1px solid var(--line-strong); backdrop-filter: blur(40px); }

/* Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg, var(--line) 25%, var(--line-strong) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

@keyframes skeletonPulse {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Brand Title */
.brand-title-premium {
  font-family: var(--tech);
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 28: ANIMATIONS
   ════════════════════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 29: MOBILE RESPONSIVE (TABLET)
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .left-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    z-index: var(--z-sidebar);
    box-shadow: var(--shadow-lg);
  }

  .left-panel.collapsed {
    transform: translateX(-100%);
    margin-right: 0;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
  }

  .left-panel:not(.collapsed) {
    transform: translateX(0);
    margin-right: 0;
  }

  /* Overlay when sidebar is open on mobile */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-sidebar) - 1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hdr-stats { display: none; }
  .out-area { padding: 28px 24px 60px; }
  .recipe-card-hdr { padding: 28px; }
  .recipe-content { padding: 28px; }

  .review-grid { grid-template-columns: 1fr; }
  .analytics-panel { width: 340px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 30: MOBILE RESPONSIVE (PHONE)
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --sidebar-width: 280px;
  }

  .dash-hdr {
    padding: 10px 16px;
    gap: 10px;
  }

  .hdr-search { display: none; }

  .hdr-btn-primary span {
    display: none;
  }

  .hdr-btn-primary {
    padding: 10px 14px;
  }

  .out-area {
    padding: 20px 16px 80px;
  }

  .welcome-section {
    margin: 2vh auto 20px;
  }

  .ws-title {
    font-size: 1.8rem;
  }

  .ws-sub {
    font-size: 0.9rem;
  }

  .input-methods {
    gap: 8px;
  }

  .im-tile {
    width: calc(33.333% - 6px);
    padding: 16px 8px;
    font-size: 0.72rem;
  }

  .im-icon { font-size: 18px; }

  .recipe-card-hdr {
    flex-direction: column;
    padding: 24px 20px;
  }

  .recipe-title {
    font-size: 1.4rem;
  }

  .recipe-content {
    padding: 20px;
    font-size: 0.92rem;
  }

  .recipe-badges { gap: 6px; }

  .badge {
    padding: 4px 10px;
    font-size: 0.68rem;
  }

  .recipe-actions {
    align-self: flex-end;
  }

  .modal {
    border-radius: var(--radius-lg);
    max-height: 85vh;
    max-height: 85dvh;
  }

  .modal-body { padding: 20px; }
  .modal-hdr { padding: 18px 20px; }
  .modal-footer { padding: 16px 20px; }

  .servings-grid { grid-template-columns: repeat(3, 1fr); }
  .time-buttons { grid-template-columns: repeat(2, 1fr); }

  .analytics-panel {
    width: 100%;
    right: -100%;
  }

  .ap-grid { grid-template-columns: 1fr 1fr; }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .toast {
    min-width: auto;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 31: MOBILE RESPONSIVE (SMALL PHONES)
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  :root {
    --sidebar-width: 260px;
  }

  .lp-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ws-mark { font-size: 48px; }

  .ws-cta {
    padding: 14px 28px;
    font-size: 0.92rem;
  }

  .im-tile {
    width: calc(50% - 4px);
  }

  .review-grid { grid-template-columns: 1fr; }

  .pref-row { flex-direction: column; gap: 0; }

  .input-tabs {
    gap: 4px;
  }

  .input-tab {
    padding: 8px 12px;
    font-size: 0.76rem;
  }

  .confirm-buttons {
    flex-direction: column;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 20px;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 32: LANDSCAPE MOBILE
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) and (orientation: landscape) {
  .welcome-section {
    margin: 1vh auto 10px;
  }

  .ws-mark { font-size: 40px; margin-bottom: 10px; }

  .ws-title { font-size: 1.5rem; }

  .ws-sub { font-size: 0.85rem; margin-bottom: 16px; }

  .out-area { padding: 16px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 33: HIGH-DPI / RETINA
   ════════════════════════════════════════════════════════════════════════════ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .modal { border-width: 0.5px; }
  .recipe-card { border-width: 0.5px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 34: PRINT STYLES
   ════════════════════════════════════════════════════════════════════════════ */

@media print {
  .left-panel,
  .dash-hdr,
  .atmosphere,
  .gridlines,
  #starfield,
  .particles,
  .back-to-top,
  .toast-container,
  .modal-overlay,
  .analytics-panel,
  .generation-progress,
  .streaming-output,
  .input-methods {
    display: none !important;
  }

  .right-panel {
    width: 100%;
  }

  .out-area {
    padding: 0;
    overflow: visible;
  }

  .recipe-card {
    box-shadow: none;
    border: 1px solid #ccc;
    border-radius: 0;
    background: white;
  }

  .recipe-content { color: #333; }
  .recipe-title { color: #000; }
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 35: ACCESSIBILITY
   ════════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 36: HOVER MEDIA QUERY
   ════════════════════════════════════════════════════════════════════════════ */

@media (hover: none) {
  .im-tile:hover { transform: none; }
  .lp-nav-cta:hover { transform: none; }
  .ws-cta:hover { transform: none; }
  .hdr-btn-primary:hover { transform: none; }
  .btn-generate:hover { transform: none; }
  .ra-btn:hover { transform: none; }
  .back-to-top:hover { transform: none; }
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION 37: LANDING PAGE STYLES
   ════════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.brand-lockup {
  font-family: var(--tech);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: clamp(18px, 3vw, 28px);
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.horizon-line {
  width: min(600px, 80vw);
  height: 1px;
  margin: 0 auto 32px;
  position: relative;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.horizon-line::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 15px #fff, 0 0 30px var(--gold);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 90px);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 28px;
  color: var(--ink);
}

.hero-title span { display: block; }
.hero-title .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-light);
  -webkit-text-fill-color: var(--gold-light);
}

.btn-mega-landing {
  padding: 20px 52px;
  border-radius: 100px;
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #100c02;
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
  transition: all 0.4s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: none;
  font-family: var(--body);
}

.btn-mega-landing:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 30px 70px rgba(212, 175, 55, 0.45);
}

.nav-landing {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 5, 12, 0.5);
  border-bottom: 1px solid var(--line);
}

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

.nav-logo-landing img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px var(--gold));
}

.nav-logo-landing span {
  font-family: var(--tech);
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--ink);
}

section {
  position: relative;
  z-index: 10;
  padding: 120px 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.feature-grid-landing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.f-card-landing {
  background: var(--glass);
  border: 1px solid var(--line-strong);
  padding: 48px 32px;
  border-radius: 24px;
  transition: all 0.4s var(--ease);
  text-align: left;
}

.f-card-landing:hover {
  background: var(--bg-panel);
  border-color: var(--gold);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.f-icon-landing {
  font-size: 42px;
  margin-bottom: 24px;
  display: block;
}

.f-card-landing h3 {
  font-family: var(--display);
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.f-card-landing p {
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 300;
}

.dash-mini-footer {
  padding: 80px 0;
  text-align: center;
}

/* Landing Responsive */
@media (max-width: 768px) {
  .nav-landing {
    padding: 14px 20px;
  }

  .feature-grid-landing {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }

  .f-card-landing {
    padding: 32px 24px;
  }

  .btn-mega-landing {
    padding: 16px 36px;
    font-size: 16px;
  }

  section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .nav-landing { padding: 12px 16px; }
  .hero { padding: 100px 16px 60px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   END OF STYLESHEET
   ROUXMIND v4.0 — Where Every Plate Tells Your Story
   Built by Sooban Talha Tech
   ════════════════════════════════════════════════════════════════════════════ */
