﻿/* ============================================================
   LarisGen â€” Neon Dark Premium Design System
   TikTok Narrative Generator
   Version: 1.0.0
   ============================================================ */

/* â”€â”€ Google Fonts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* â”€â”€ CSS Custom Properties (Design Tokens) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  /* â”€ Color Palette â”€ */
  --color-bg-primary: #0a0e1a;
  --color-bg-secondary: #111827;
  --color-bg-tertiary: #1a2035;
  --color-bg-elevated: #1e2640;
  --color-bg-hover: rgba(124, 58, 237, 0.08);

  /* Surfaces */
  --color-surface: rgba(30, 38, 64, 0.60);
  --color-surface-hover: rgba(30, 38, 64, 0.80);
  --color-surface-border: rgba(148, 163, 184, 0.08);
  --color-surface-border-hover: rgba(148, 163, 184, 0.16);

  /* Primary â€” Electric Violet */
  --color-primary: #7c3aed;
  --color-primary-light: #a855f7;
  --color-primary-dark: #6d28d9;
  --color-primary-glow: rgba(124, 58, 237, 0.35);
  --color-primary-subtle: rgba(124, 58, 237, 0.12);
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --gradient-primary-hover: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);

  /* Accent â€” Cyan/Teal */
  --color-accent: #06b6d4;
  --color-accent-light: #22d3ee;
  --color-accent-glow: rgba(6, 182, 212, 0.30);
  --color-accent-subtle: rgba(6, 182, 212, 0.12);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);

  /* Semantic Colors */
  --color-success: #10b981;
  --color-success-light: #34d399;
  --color-success-subtle: rgba(16, 185, 129, 0.12);
  --color-success-glow: rgba(16, 185, 129, 0.30);

  --color-warning: #f59e0b;
  --color-warning-light: #fbbf24;
  --color-warning-subtle: rgba(245, 158, 11, 0.12);

  --color-danger: #ef4444;
  --color-danger-light: #f87171;
  --color-danger-subtle: rgba(239, 68, 68, 0.12);
  --color-danger-glow: rgba(239, 68, 68, 0.30);

  /* Text */
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-tertiary: #64748b;
  --color-text-muted: #475569;
  --color-text-inverse: #0a0e1a;
  --color-text-accent: #a855f7;

  /* Borders */
  --color-border: rgba(148, 163, 184, 0.10);
  --color-border-strong: rgba(148, 163, 184, 0.20);
  --color-border-focus: rgba(124, 58, 237, 0.50);

  /* â”€ Typography â”€ */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --text-xs: 0.6875rem;    /* 11px */
  --text-sm: 0.8125rem;    /* 13px */
  --text-base: 0.9375rem;  /* 15px */
  --text-lg: 1.0625rem;    /* 17px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* â”€ Spacing â”€ */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */

  /* â”€ Border Radius â”€ */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.625rem;   /* 10px */
  --radius-lg: 0.875rem;   /* 14px */
  --radius-xl: 1.125rem;   /* 18px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* â”€ Shadows â”€ */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.40);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.50);
  --shadow-glow-primary: 0 0 20px var(--color-primary-glow), 0 0 60px rgba(124, 58, 237, 0.10);
  --shadow-glow-accent: 0 0 20px var(--color-accent-glow), 0 0 60px rgba(6, 182, 212, 0.10);
  --shadow-glow-success: 0 0 20px var(--color-success-glow);
  --shadow-glow-danger: 0 0 20px var(--color-danger-glow);

  /* â”€ Transitions â”€ */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* â”€ Z-Index Scale â”€ */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-navbar: 500;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-toast: 1100;
  --z-tooltip: 1200;

  /* â”€ Layout â”€ */
  --container-max: 480px;
  --container-desktop: 1200px;
  --sidebar-width: 260px;
  --navbar-height: 64px;
  --header-height: 56px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-top: env(safe-area-inset-top, 0px);
}


/* â”€â”€ CSS Reset & Base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#app {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-primary);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

#page-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-accent-light);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

ul, ol { list-style: none; }

hr {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-4) 0;
}

::selection {
  background: var(--color-primary);
  color: white;
}


/* â”€â”€ Typography â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
h1, h2, h3, h4, h5, h6,
.heading {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h1, .h1 { font-size: var(--text-3xl); font-weight: 700; }
h2, .h2 { font-size: var(--text-2xl); font-weight: 700; }
h3, .h3 { font-size: var(--text-xl); }
h4, .h4 { font-size: var(--text-lg); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--color-text-secondary); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* â”€â”€ Layout Utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.hidden { display: none !important; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: var(--space-2); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* â”€â”€ Page System â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.page {
  display: none;
  flex-direction: column;
  flex: 1;
  height: 100%;
  width: 100%;
  position: relative;
  top: 0;
  left: 0;
  background-color: var(--color-bg-primary);
  will-change: transform, opacity;
}

.page.active {
  display: flex;
  z-index: var(--z-base);
}

.page.slide-in {
  display: flex;
  animation: pageSlideIn 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  z-index: calc(var(--z-base) + 1);
}

.page.slide-out {
  display: flex;
  animation: pageSlideOut 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  z-index: var(--z-base);
}

.page.fade-in {
  display: flex;
  animation: pageFadeIn 300ms ease-out forwards;
}

.page.fade-out {
  display: flex;
  animation: pageFadeOut 200ms ease-in forwards;
}

@keyframes pageSlideIn {
  from { transform: translateX(100%); opacity: 0.5; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes pageSlideOut {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(-30%);  opacity: 0; }
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pageFadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.97); }
}

.page-header {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  min-height: var(--header-height);
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  flex-shrink: 0;
}

.page-header .back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.page-header .back-btn:hover,
.page-header .back-btn:active {
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
}

.page-header .page-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  flex: 1;
}

.page-header .header-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}
.page-header .header-action:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
}

.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-5);
  padding-bottom: calc(var(--navbar-height) + var(--safe-area-bottom) + var(--space-6));
  -webkit-overflow-scrolling: touch;
}

.page-content.no-padding {
  padding: 0;
  padding-bottom: calc(var(--navbar-height) + var(--safe-area-bottom));
}


/* â”€â”€ Glass Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-surface-border-hover);
}

.glass-card {
  background: rgba(30, 38, 64, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.glass-card:hover {
  border-color: rgba(148, 163, 184, 0.15);
  background: rgba(30, 38, 64, 0.55);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.glass-card.interactive {
  cursor: pointer;
}
.glass-card.interactive:active {
  transform: scale(0.98);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.card-body {
  margin-bottom: var(--space-3);
}

.card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}


/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  min-height: 48px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 12px var(--color-primary-glow);
}
.btn-primary:hover {
  background: var(--gradient-primary-hover);
  box-shadow: var(--shadow-glow-primary);
}
.btn-primary:active {
  box-shadow: 0 1px 4px var(--color-primary-glow);
}
/* Shimmer effect on primary button */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,255,255,0.08) 45%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.08) 55%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: none;
}
.btn-primary:hover::after {
  animation: btnShimmer 0.8s ease-out;
}

@keyframes btnShimmer {
  to { transform: translateX(60%); }
}

.btn-secondary {
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
  border-color: rgba(124, 58, 237, 0.20);
}
.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.20);
  border-color: rgba(124, 58, 237, 0.35);
}

.btn-danger {
  background: var(--color-danger-subtle);
  color: var(--color-danger-light);
  border-color: rgba(239, 68, 68, 0.20);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.20);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 2px 12px var(--color-danger-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--color-text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-light);
  border-color: rgba(124, 58, 237, 0.30);
}
.btn-outline:hover {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
}

.btn-success {
  background: var(--color-success-subtle);
  color: var(--color-success-light);
  border-color: rgba(16, 185, 129, 0.20);
}
.btn-success:hover {
  background: rgba(16, 185, 129, 0.20);
  box-shadow: 0 2px 12px var(--color-success-glow);
}

.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  min-height: 36px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  min-height: 56px;
  border-radius: var(--radius-lg);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}
.btn-icon.btn-sm {
  width: 36px;
  height: 36px;
  min-height: 36px;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: calc(var(--navbar-height) + var(--safe-area-bottom) + var(--space-5));
  right: var(--space-5);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-primary), var(--shadow-lg);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}
.fab:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--color-primary-glow), var(--shadow-xl);
}
.fab:active {
  transform: scale(0.95);
}
.fab svg,
.fab i {
  font-size: 1.5rem;
  width: 24px;
  height: 24px;
}

/* Button Group */
.btn-group {
  display: flex;
  gap: var(--space-2);
}
.btn-group .btn {
  flex: 1;
}


/* â”€â”€ Form Elements â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.form-label .required {
  color: var(--color-danger);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: rgba(30, 38, 64, 0.50);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  min-height: 48px;
  transition: all var(--transition-fast);
  caret-color: var(--color-primary-light);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-muted);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: rgba(148, 163, 184, 0.30);
  background: rgba(30, 38, 64, 0.65);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--color-primary);
  background: rgba(30, 38, 64, 0.70);
  box-shadow: 0 0 0 3px var(--color-primary-subtle), 0 0 16px rgba(124, 58, 237, 0.08);
}

.input.error,
.textarea.error,
.select.error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-subtle);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-danger-light);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: var(--leading-relaxed);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' 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 var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}
.select option {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

/* Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  min-height: 48px;
  padding: var(--space-2) 0;
  -webkit-user-select: none;
  user-select: none;
}

.checkbox {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.checkbox .checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background: rgba(30, 38, 64, 0.5);
}

.checkbox input:checked + .checkmark {
  background: var(--gradient-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.checkbox input:checked + .checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Toggle Switch */
.toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  cursor: pointer;
  min-height: 48px;
  padding: var(--space-2) 0;
}

.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.toggle .toggle-track {
  width: 48px;
  height: 28px;
  background: rgba(100, 116, 139, 0.3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition-base);
}

.toggle .toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-track {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.toggle input:checked + .toggle-track::after {
  transform: translateX(20px);
  background: #fff;
}

/* File Upload */
.file-upload {
  position: relative;
  min-height: 48px;
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(30, 38, 64, 0.50);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  min-height: 48px;
}

.file-upload:hover .file-upload-label {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
}

/* Input with icon */
.input-wrapper {
  position: relative;
}
.input-wrapper .input-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
  transition: color var(--transition-fast);
}
.input-wrapper .input {
  padding-left: calc(var(--space-4) + 24px + var(--space-2));
}
.input-wrapper .input:focus ~ .input-icon {
  color: var(--color-primary-light);
}

/* Counter / character count */
.char-count {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-align: right;
  margin-top: var(--space-1);
}
.char-count.warning { color: var(--color-warning); }
.char-count.danger { color: var(--color-danger); }


/* â”€â”€ Bottom Navbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.navbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max);
  height: var(--navbar-height);
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-2);
  padding-bottom: var(--safe-area-bottom);
  z-index: var(--z-navbar);
}

.navbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  transition: color var(--transition-base);
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-width: 48px;
}

.navbar-item svg,
.navbar-item i {
  font-size: 1.25rem;
  width: 22px;
  height: 22px;
  transition: transform var(--transition-spring);
}

.navbar-item span {
  font-size: 0.625rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.navbar-item.active {
  color: var(--color-primary-light);
}

.navbar-item.active svg,
.navbar-item.active i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px var(--color-primary-glow));
}

/* Sliding pill indicator */
.navbar-indicator {
  position: absolute;
  top: 0;
  height: 3px;
  width: 32px;
  background: var(--gradient-primary);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
  transition: left var(--transition-slow);
  box-shadow: 0 2px 12px var(--color-primary-glow);
}

/* Navbar ripple effect on tap */
.navbar-item::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary-subtle);
  opacity: 0;
  transform: scale(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.navbar-item:active::after {
  opacity: 1;
  transform: scale(1.5);
  transition: 0s;
}


/* â”€â”€ Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: var(--container-max);
  max-height: 85vh;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-surface-border);
  border-bottom: none;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.modal-backdrop.active .modal {
  transform: translateY(0);
}

.modal-handle {
  display: flex;
  justify-content: center;
  padding: var(--space-3) 0 var(--space-1);
  flex-shrink: 0;
}

.modal-handle::after {
  content: '';
  width: 36px;
  height: 4px;
  background: var(--color-text-muted);
  border-radius: var(--radius-full);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-5) var(--space-4);
  flex-shrink: 0;
}

.modal-header .modal-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
}

.modal-header .modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-tertiary);
  transition: all var(--transition-fast);
}
.modal-header .modal-close:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--color-text-primary);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-5) var(--space-5);
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}
.modal-footer .btn {
  flex: 1;
}

/* Center modal variant */
.modal-backdrop.center {
  align-items: center;
  padding: var(--space-5);
}
.modal-backdrop.center .modal {
  border-radius: var(--radius-2xl);
  border-bottom: 1px solid var(--color-surface-border);
  max-height: 80vh;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
}
.modal-backdrop.center.active .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}


/* â”€â”€ Toast Notifications â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.toast-container {
  position: fixed;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--space-8));
  max-width: calc(var(--container-max) - var(--space-8));
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: all;
  animation: toastSlideIn 400ms var(--transition-spring) forwards;
  position: relative;
  overflow: hidden;
}

.toast.removing {
  animation: toastSlideOut 300ms ease-in forwards;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: var(--leading-normal);
}

.toast-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-tertiary);
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.toast-close:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--color-text-primary);
}

/* Toast progress bar for auto-dismiss */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 0 var(--radius-full) 0 0;
  animation: toastProgress 4s linear forwards;
}

/* Toast variants */
.toast.success::before,
.toast.success .toast-progress { background: var(--color-success); }
.toast.success .toast-icon { color: var(--color-success); }

.toast.error::before,
.toast.error .toast-progress { background: var(--color-danger); }
.toast.error .toast-icon { color: var(--color-danger); }

.toast.warning::before,
.toast.warning .toast-progress { background: var(--color-warning); }
.toast.warning .toast-icon { color: var(--color-warning); }

.toast.info::before,
.toast.info .toast-progress { background: var(--color-accent); }
.toast.info .toast-icon { color: var(--color-accent); }

@keyframes toastSlideIn {
  from { transform: translateY(-100%) scale(0.9); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}
@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}


/* â”€â”€ Loading States â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Skeleton */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(30, 38, 64, 0.50);
  border-radius: var(--radius-md);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(148, 163, 184, 0.06) 40%,
    rgba(148, 163, 184, 0.10) 50%,
    rgba(148, 163, 184, 0.06) 60%,
    transparent 100%
  );
  animation: skeletonShimmer 1.8s ease-in-out infinite;
}
.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
}
.skeleton-text:last-child {
  width: 65%;
  margin-bottom: 0;
}
.skeleton-title {
  height: 20px;
  width: 45%;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-sm);
}
.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
}
.skeleton-card {
  height: 120px;
  border-radius: var(--radius-lg);
}
.skeleton-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
}

@keyframes skeletonShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(148, 163, 184, 0.15);
  border-top-color: var(--color-primary-light);
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }
.spinner-xl { width: 56px; height: 56px; border-width: 3.5px; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Full-page loader */
.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background: rgba(10, 14, 26, 0.80);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
}
.loading-overlay .loading-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(30, 38, 64, 0.6);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  position: relative;
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25));
  border-radius: var(--radius-full);
}

/* Indeterminate progress bar */
.progress-bar.indeterminate .progress-bar-fill {
  width: 40% !important;
  animation: progressIndeterminate 1.5s ease-in-out infinite;
}

@keyframes progressIndeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}


/* â”€â”€ Badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: var(--tracking-wide);
}

.badge-primary {
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
}
.badge-accent {
  background: var(--color-accent-subtle);
  color: var(--color-accent-light);
}
.badge-success {
  background: var(--color-success-subtle);
  color: var(--color-success-light);
}
.badge-warning {
  background: var(--color-warning-subtle);
  color: var(--color-warning-light);
}
.badge-danger {
  background: var(--color-danger-subtle);
  color: var(--color-danger-light);
}

/* Score Badge â€” green/yellow/red based on data-score */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  font-variant-numeric: tabular-nums;
}
.score-badge[data-score="high"],
.score-badge.score-high {
  background: var(--color-success-subtle);
  color: var(--color-success-light);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}
.score-badge[data-score="medium"],
.score-badge.score-medium {
  background: var(--color-warning-subtle);
  color: var(--color-warning-light);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.15);
}
.score-badge[data-score="low"],
.score-badge.score-low {
  background: var(--color-danger-subtle);
  color: var(--color-danger-light);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}

/* Duration Badge */
.duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-accent-subtle);
  color: var(--color-accent-light);
  font-variant-numeric: tabular-nums;
}

/* Status Badges */
.status-used {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(100, 116, 139, 0.15);
  color: var(--color-text-tertiary);
}
.status-unused {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-success-subtle);
  color: var(--color-success-light);
}

/* Count badge (small circular indicator) */
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 8px var(--color-primary-glow);
}


/* â”€â”€ Chips (Category Selection) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: rgba(30, 38, 64, 0.50);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-user-select: none;
  user-select: none;
  min-height: 36px;
}

.chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  background: var(--color-primary-subtle);
}

.chip.chip-active,
.chip.active {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.12);
}

.chip .chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.15);
  transition: all var(--transition-fast);
}
.chip .chip-remove:hover {
  background: var(--color-danger-subtle);
  color: var(--color-danger);
}


/* â”€â”€ Wizard Progress â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wizard-progress {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  gap: 0;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  position: relative;
}

.wizard-step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--color-border-strong);
  margin: 0 var(--space-2);
  transition: background var(--transition-base);
}

.wizard-step.completed:not(:last-child)::after {
  background: var(--color-primary);
}

.wizard-step-indicator {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  background: rgba(30, 38, 64, 0.6);
  border: 2px solid var(--color-border-strong);
  color: var(--color-text-tertiary);
  transition: all var(--transition-base);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.wizard-step.active .wizard-step-indicator {
  background: var(--gradient-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 16px var(--color-primary-glow);
}

.wizard-step.completed .wizard-step-indicator {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.wizard-step.completed .wizard-step-indicator::after {
  content: 'âœ“';
  font-size: var(--text-sm);
}

.wizard-step-label {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.wizard-step.active .wizard-step-label,
.wizard-step.completed .wizard-step-label {
  color: var(--color-text-secondary);
}

/* Wizard step content panels */
.wizard-panel {
  display: none;
  animation: wizardFadeIn 300ms ease-out;
}
.wizard-panel.active {
  display: block;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* â”€â”€ Upload Zone (Drag & Drop) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-5);
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-xl);
  background: rgba(30, 38, 64, 0.30);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  position: relative;
  min-height: 160px;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.upload-zone.drag-over {
  border-style: solid;
  box-shadow: inset 0 0 30px var(--color-primary-subtle);
}

.upload-zone-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
  transition: all var(--transition-base);
}
.upload-zone:hover .upload-zone-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.upload-zone-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.upload-zone-text strong {
  color: var(--color-primary-light);
}
.upload-zone-hint {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* Uploaded preview */
.upload-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.upload-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.upload-preview .remove-upload {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.upload-preview .remove-upload:hover {
  background: var(--color-danger);
}


/* â”€â”€ Stat Cards (Dashboard) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stat-card {
  background: rgba(30, 38, 64, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(148, 163, 184, 0.14);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  font-size: 1.25rem;
}
.stat-card-icon.primary {
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
}
.stat-card-icon.accent {
  background: var(--color-accent-subtle);
  color: var(--color-accent-light);
}
.stat-card-icon.success {
  background: var(--color-success-subtle);
  color: var(--color-success-light);
}
.stat-card-icon.warning {
  background: var(--color-warning-subtle);
  color: var(--color-warning-light);
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-card-label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 500;
}

.stat-card-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-2);
}
.stat-card-trend.up { color: var(--color-success); }
.stat-card-trend.down { color: var(--color-danger); }


/* â”€â”€ Narrative Cards (Results) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.narrative-card {
  background: rgba(30, 38, 64, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  margin-bottom: var(--space-3);
}

.narrative-card:hover {
  border-color: rgba(148, 163, 184, 0.15);
}

.narrative-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-4) var(--space-2);
}

.narrative-card-type {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.narrative-card-type-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
}
.narrative-card-type-icon.hook {
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
}
.narrative-card-type-icon.body {
  background: var(--color-accent-subtle);
  color: var(--color-accent-light);
}
.narrative-card-type-icon.cta {
  background: var(--color-success-subtle);
  color: var(--color-success-light);
}

.narrative-card-body {
  padding: var(--space-2) var(--space-4);
}

.narrative-card-text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  white-space: pre-wrap;
}

.narrative-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  flex-wrap: wrap;
}

.narrative-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
}

.narrative-card-actions .btn-ghost {
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

/* Copy confirmation animation */
.narrative-card .copy-success {
  color: var(--color-success);
  animation: copyPop 600ms ease-out;
}

@keyframes copyPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}


/* â”€â”€ Hook Cards (Selection) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hook-card {
  background: rgba(30, 38, 64, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.hook-card:hover {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(30, 38, 64, 0.55);
}

.hook-card:active {
  transform: scale(0.99);
}

.hook-card.selected {
  border-color: var(--color-primary);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.08), inset 0 0 30px rgba(124, 58, 237, 0.03);
}

.hook-card.selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.hook-card-check {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.hook-card.selected .hook-card-check {
  background: var(--gradient-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary-glow);
}
.hook-card.selected .hook-card-check::after {
  content: 'âœ“';
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
}

.hook-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding-right: var(--space-8);
}

.hook-card-text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
}

.hook-card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}


/* â”€â”€ Persona Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.persona-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: rgba(30, 38, 64, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
  margin-bottom: var(--space-3);
}

.persona-card:hover {
  border-color: rgba(148, 163, 184, 0.15);
}

.persona-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 12px var(--color-primary-glow);
}

.persona-info {
  flex: 1;
  min-width: 0;
}

.persona-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.persona-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.persona-actions {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
}


/* â”€â”€ Product History Cards (Expandable) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.product-card {
  background: rgba(30, 38, 64, 0.40);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  margin-bottom: var(--space-3);
}

.product-card:hover {
  border-color: rgba(148, 163, 184, 0.14);
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.product-card-image {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg-tertiary);
}

.product-card-info {
  flex: 1;
  min-width: 0;
}

.product-card-name {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: 2px;
}

.product-card-date {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.product-card-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-tertiary);
  transition: all var(--transition-base);
  flex-shrink: 0;
}
.product-card.expanded .product-card-toggle {
  transform: rotate(180deg);
  color: var(--color-primary-light);
}

.product-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.product-card.expanded .product-card-content {
  max-height: 2000px;
}

.product-card-content-inner {
  padding: 0 var(--space-4) var(--space-4);
  border-top: 1px solid var(--color-border);
}


/* â”€â”€ Filter Tabs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.filter-tabs {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2);
  background: rgba(30, 38, 64, 0.40);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-tertiary);
  border-radius: var(--radius-md);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 36px;
}

.filter-tab:hover {
  color: var(--color-text-secondary);
  background: rgba(148, 163, 184, 0.06);
}

.filter-tab.active {
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
  font-weight: 600;
}


/* â”€â”€ Empty State â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-6);
  gap: var(--space-4);
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(30, 38, 64, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.empty-state-desc {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  max-width: 280px;
  line-height: var(--leading-relaxed);
}


/* â”€â”€ Cost Summary â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cost-summary {
  background: rgba(30, 38, 64, 0.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.cost-summary-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}

.cost-row .cost-label {
  color: var(--color-text-tertiary);
}

.cost-row .cost-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-primary);
}

.cost-row.total {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
}

.cost-row.total .cost-label {
  color: var(--color-text-primary);
  font-weight: 600;
}

.cost-row.total .cost-value {
  font-size: var(--text-lg);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* â”€â”€ Login Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: var(--space-6);
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    var(--color-bg-primary);
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.login-logo-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-2xl);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-glow-primary), var(--shadow-lg);
  position: relative;
}

.login-logo-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-2xl) + 2px);
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0.4;
  filter: blur(12px);
}

.login-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.login-form {
  width: 100%;
  max-width: 320px;
}

.login-pin-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.login-pin-input {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.login-pin-input input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  background: rgba(30, 38, 64, 0.60);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
  caret-color: var(--color-primary-light);
}

.login-pin-input input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-subtle), 0 0 16px rgba(124, 58, 237, 0.12);
}

.login-mode-select {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.login-mode-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: rgba(30, 38, 64, 0.45);
  border: 1.5px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.login-mode-option:hover {
  border-color: rgba(148, 163, 184, 0.20);
  background: rgba(30, 38, 64, 0.60);
}

.login-mode-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.login-mode-option .mode-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.login-mode-option .mode-icon.admin {
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
}

.login-mode-option .mode-icon.user {
  background: var(--color-accent-subtle);
  color: var(--color-accent-light);
}

.login-mode-option .mode-info {
  flex: 1;
}

.login-mode-option .mode-name {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: 2px;
}

.login-mode-option .mode-desc {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* Admin-only elements */
.admin-only {
  display: none;
}
body.admin-mode .admin-only {
  display: initial;
}


/* â”€â”€ Animations & Keyframes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px var(--color-primary-glow); }
  50%      { box-shadow: 0 0 24px var(--color-primary-glow), 0 0 48px rgba(124, 58, 237, 0.10); }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(124, 58, 237, 0.3); }
  50%      { border-color: rgba(124, 58, 237, 0.6); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Staggered entry for lists */
.stagger-enter > * {
  opacity: 0;
  animation: fadeInUp 400ms ease-out forwards;
}
.stagger-enter > *:nth-child(1) { animation-delay: 0ms; }
.stagger-enter > *:nth-child(2) { animation-delay: 60ms; }
.stagger-enter > *:nth-child(3) { animation-delay: 120ms; }
.stagger-enter > *:nth-child(4) { animation-delay: 180ms; }
.stagger-enter > *:nth-child(5) { animation-delay: 240ms; }
.stagger-enter > *:nth-child(6) { animation-delay: 300ms; }
.stagger-enter > *:nth-child(7) { animation-delay: 360ms; }
.stagger-enter > *:nth-child(8) { animation-delay: 420ms; }
.stagger-enter > *:nth-child(9) { animation-delay: 480ms; }
.stagger-enter > *:nth-child(10) { animation-delay: 540ms; }

/* Utility animation classes */
.animate-fade-in     { animation: fadeIn 300ms ease-out; }
.animate-fade-in-up  { animation: fadeInUp 400ms ease-out; }
.animate-fade-in-scale { animation: fadeInScale 300ms ease-out; }
.animate-bounce-in   { animation: bounceIn 500ms ease-out; }
.animate-float       { animation: float 3s ease-in-out infinite; }
.animate-pulse       { animation: pulse 2s ease-in-out infinite; }
.animate-glow        { animation: glow 2s ease-in-out infinite; }
.animate-spin        { animation: rotate 1s linear infinite; }


/* â”€â”€ Scrollbar Styling â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.12) transparent;
}

*::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-full);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.25);
}

/* Hide scrollbar on touch-friendly areas */
.page-content::-webkit-scrollbar {
  width: 3px;
}

.filter-tabs::-webkit-scrollbar,
.chips-container::-webkit-scrollbar {
  display: none;
}


/* â”€â”€ Responsive Adjustments â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Desktop: center the app container with a decorative frame */
@media (min-width: 481px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
      radial-gradient(ellipse 60% 50% at 30% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse 60% 50% at 70% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
      linear-gradient(180deg, #080c16, #0a0e1a);
  }

  #app {
    height: 100vh;
    max-height: 900px;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(148, 163, 184, 0.06);
    overflow: hidden;
    box-shadow:
      0 0 0 1px rgba(148, 163, 184, 0.04),
      0 25px 80px rgba(0, 0, 0, 0.6),
      0 0 120px rgba(124, 58, 237, 0.06);
  }

  .navbar {
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  }

  .fab {
    right: calc(50% - var(--container-max)/2 + var(--space-5));
  }
}

/* Very small phones */
@media (max-width: 359px) {
  :root {
    --text-base: 0.875rem;
    --text-lg: 1rem;
    --text-xl: 1.125rem;
    --text-2xl: 1.375rem;
    --text-3xl: 1.625rem;
    --space-5: 1rem;
  }

  .login-pin-input input {
    width: 44px;
    height: 52px;
  }

  .stat-card { padding: var(--space-3); }
  .glass-card { padding: var(--space-4); }
}

/* Large phones */
@media (min-width: 390px) and (max-width: 480px) {
  .grid-cols-2 { gap: var(--space-3); }
}

/* Landscape prevention (lock to portrait feel) */
@media (max-height: 500px) and (orientation: landscape) {
  .navbar { height: 48px; }
  .page-content {
    padding-bottom: calc(48px + var(--space-4));
  }
}

/* Safe area adjustments for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .navbar {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(var(--navbar-height) + env(safe-area-inset-bottom));
  }
  .page-content {
    padding-bottom: calc(var(--navbar-height) + env(safe-area-inset-bottom) + var(--space-6));
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support (already dark, but reinforce) */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}


/* â”€â”€ Section Dividers â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.section-title:first-child {
  margin-top: 0;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}


/* â”€â”€ Quick Actions Grid (Dashboard) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-3);
  background: rgba(30, 38, 64, 0.40);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.06);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.quick-action-card:hover {
  border-color: rgba(148, 163, 184, 0.14);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-action-card:active {
  transform: scale(0.97);
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-base);
}

.quick-action-card:hover .quick-action-icon {
  transform: scale(1.1);
}

.quick-action-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}


/* â”€â”€ Divider â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-4) 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}


/* â”€â”€ Settings Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.settings-group {
  margin-bottom: var(--space-6);
}

.settings-group-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  min-height: 56px;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item-info {
  flex: 1;
  margin-right: var(--space-4);
}

.settings-item-label {
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: 2px;
}

.settings-item-desc {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  line-height: var(--leading-normal);
}

.settings-item-value {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}


/* â”€â”€ Confirm Dialog â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.confirm-dialog {
  text-align: center;
  padding: var(--space-4) 0;
}

.confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--space-4);
}
.confirm-icon.danger {
  background: var(--color-danger-subtle);
  color: var(--color-danger-light);
}
.confirm-icon.warning {
  background: var(--color-warning-subtle);
  color: var(--color-warning-light);
}

.confirm-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.confirm-message {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 280px;
  margin: 0 auto;
}


/* â”€â”€ Search Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.search-bar {
  position: relative;
  margin-bottom: var(--space-4);
}

.search-bar .search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.search-bar .input {
  padding-left: calc(var(--space-4) + 20px + var(--space-2));
  padding-right: var(--space-10);
}

.search-bar .input:focus ~ .search-icon {
  color: var(--color-primary-light);
}

.search-bar .search-clear {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0;
  visibility: hidden;
}

.search-bar .input:not(:placeholder-shown) ~ .search-clear {
  opacity: 1;
  visibility: visible;
}

.search-bar .search-clear:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--color-text-primary);
}


/* â”€â”€ Tag / Label â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, 0.10);
  color: var(--color-text-tertiary);
}

.tag-primary { background: var(--color-primary-subtle); color: var(--color-primary-light); }
.tag-accent { background: var(--color-accent-subtle); color: var(--color-accent-light); }
.tag-success { background: var(--color-success-subtle); color: var(--color-success-light); }


/* â”€â”€ Tooltip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text-primary);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: var(--z-tooltip);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}


/* â”€â”€ Notification Dot â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-danger);
  border: 2px solid var(--color-bg-primary);
  animation: pulse 2s ease-in-out infinite;
}


/* â”€â”€ Collapsed Text / Read More â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.collapsed-text {
  position: relative;
  max-height: 4.5em; /* ~3 lines */
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.collapsed-text.expanded {
  max-height: 1000px;
}

.collapsed-text:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2em;
  background: linear-gradient(transparent, var(--color-bg-primary));
  pointer-events: none;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-light);
  cursor: pointer;
  margin-top: var(--space-1);
  transition: color var(--transition-fast);
}

.read-more-btn:hover {
  color: var(--color-accent-light);
}


/* â”€â”€ Accordion â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  cursor: pointer;
  font-weight: 500;
  -webkit-user-select: none;
  user-select: none;
}

.accordion-icon {
  transition: transform var(--transition-base);
  color: var(--color-text-tertiary);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--color-primary-light);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-item.open .accordion-body {
  max-height: 500px;
}

.accordion-body-inner {
  padding-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* â”€â”€ DESKTOP RESPONSIVE LAYOUT (â‰¥769px)                    â”€â”€ */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

@media (min-width: 769px) {

  /* â”€â”€ Full-Screen App Shell â”€â”€ */
  body {
    display: block;
    overflow: hidden;
  }

  #app {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    flex-direction: row;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  /* â”€â”€ Page Container: Fill remaining space â”€â”€ */
  #page-container {
    flex: 1;
    min-width: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.06);
  }

  /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
  /* â”€â”€ SIDEBAR NAVIGATION                           â”€â”€ */
  /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
  .navbar {
    position: static;
    transform: none;
    flex-direction: column;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100%;
    border-top: none;
    border-right: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 0;
    justify-content: flex-start;
    padding: 0;
    gap: 2px;
    flex-shrink: 0;
    order: -1;
    background: linear-gradient(180deg, rgba(13, 17, 30, 0.98) 0%, rgba(10, 14, 26, 0.99) 100%);
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Scrollbar for sidebar */
  .navbar::-webkit-scrollbar { width: 3px; }
  .navbar::-webkit-scrollbar-track { background: transparent; }
  .navbar::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.1); border-radius: 10px; }

  /* Brand Header */
  .navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    margin-bottom: 8px;
    flex-shrink: 0;
  }

  .navbar-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  }

  .navbar-brand-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c4b5fd, #a855f7, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1.2;
  }

  .navbar-brand-sub {
    font-size: 0.65rem;
    color: var(--color-text-tertiary);
    letter-spacing: 0.05em;
    display: block;
    margin-top: 2px;
  }

  .navbar-indicator {
    display: none;
  }

  /* Sidebar Nav Items */
  .navbar-item {
    flex-direction: row;
    gap: 14px;
    padding: 12px 20px;
    height: auto;
    min-height: 44px;
    justify-content: flex-start;
    border-radius: 10px;
    margin: 1px 12px;
    flex: none;
    transition: all 0.15s ease;
    position: relative;
  }

  .navbar-item:hover {
    background: rgba(124, 58, 237, 0.06);
    color: var(--color-text-secondary);
  }

  .navbar-item.active {
    background: rgba(124, 58, 237, 0.12);
    color: var(--color-primary-light);
  }

  /* Active indicator bar on left side */
  .navbar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 4px 4px 0;
    background: var(--gradient-primary);
    box-shadow: 0 0 8px var(--color-primary-glow);
  }

  .navbar-item span {
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
  }

  .navbar-item.active span {
    font-weight: 600;
  }

  .navbar-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .navbar-item::after {
    display: none;
  }

  /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
  /* â”€â”€ PAGE CONTENT AREA                            â”€â”€ */
  /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

  .page-content {
    padding: var(--space-6) var(--space-8);
    padding-bottom: var(--space-8);
  }

  .page-body {
    padding: var(--space-6) var(--space-8);
    padding-bottom: var(--space-8);
  }

  /* Content flows full-width â€” no max-width constraint */
  .page-content,
  .page-body {
    max-width: none;
    width: 100%;
  }

  /* Page Header */
  .page-header {
    padding: var(--space-5) var(--space-8);
    border-bottom: 1px solid var(--color-border);
  }

  .page-header .page-title {
    font-size: var(--text-2xl);
  }

  .page-header-content .page-subtitle {
    font-size: var(--text-sm);
  }

  /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
  /* â”€â”€ GRIDS & CARDS                                â”€â”€ */
  /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .persona-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hooks-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .narrative-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .settings-section {
    max-width: 720px;
  }

  .persona-select-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .wizard-panel {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .wizard-step-label {
    display: inline;
  }

  /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
  /* â”€â”€ OVERLAYS & MODALS                            â”€â”€ */
  /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

  .modal-backdrop {
    align-items: center;
  }

  .modal-backdrop .modal {
    max-width: 520px;
    border-radius: var(--radius-2xl);
    border-bottom: 1px solid var(--color-surface-border);
    transform: translateY(30px) scale(0.97);
    transition: transform var(--transition-slow), opacity var(--transition-slow);
    opacity: 0;
  }

  .modal-backdrop.active .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .modal-handle {
    display: none;
  }

  /* Toast: top-right */
  .toast-container {
    left: auto;
    right: 32px;
    top: 24px;
    bottom: auto;
    max-width: 380px;
  }

  .loader-overlay .loader-content {
    max-width: 440px;
  }

  /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
  /* â”€â”€ COMPONENT REFINEMENTS                        â”€â”€ */
  /* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

  #page-login .lg-container {
    max-width: 440px;
  }

  .upload-zone {
    min-height: 200px;
  }

  .glass-card {
    padding: var(--space-6);
  }

  .analyzed-product-list {
    max-height: 420px;
  }

  .results-info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .filter-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }

  .analysis-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .chip-grid {
    gap: 10px;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-title {
    font-size: var(--text-base);
  }

  /* â”€â”€ Hover Effects â”€â”€ */
  .product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(124, 58, 237, 0.15);
  }

  .persona-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .persona-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  }

  .hook-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .hook-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  }

  .stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .empty-state {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    padding: var(--space-10) var(--space-6);
  }

  .home-cta {
    max-width: 420px;
  }

  .btn {
    min-height: 44px;
  }

  .btn-lg {
    min-height: 52px;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
  }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* â”€â”€ ULTRA-WIDE DESKTOP (â‰¥1200px)                         â”€â”€ */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

@media (min-width: 1200px) {

  /* Wider sidebar */
  .navbar {
    width: 280px;
    min-width: 280px;
  }

  .navbar-brand {
    padding: 32px 28px 24px;
  }

  .navbar-brand-icon {
    width: 46px;
    height: 46px;
  }

  .navbar-brand-title {
    font-size: 1.4rem;
  }

  .navbar-item {
    padding: 13px 24px;
    gap: 16px;
    margin: 1px 14px;
  }

  .navbar-item span {
    font-size: 0.875rem;
  }

  /* Wider content padding */
  .page-content,
  .page-body {
    padding: var(--space-8) var(--space-10);
  }

  .page-header {
    padding: var(--space-6) var(--space-10);
  }

  /* 3-column grids */
  .product-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .persona-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .hooks-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .persona-select-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Narrative cards: 2-column */
  .narrative-results-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* History cards: 2-column */
  .history-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .settings-section {
    max-width: 800px;
  }

  .wizard-panel {
    max-width: 780px;
  }

  .modal-backdrop .modal {
    max-width: 560px;
  }
}






/* â”€â”€ Print Styles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .navbar,
  .fab,
  .toast-container,
  .modal-backdrop {
    display: none !important;
  }
  .glass-card,
  .card,
  .narrative-card,
  .hook-card,
  .persona-card,
  .product-card,
  .stat-card {
    background: #fff;
    border: 1px solid #ddd;
    backdrop-filter: none;
    box-shadow: none;
  }
}
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* â”€â”€ LarisGen Extended Styles v2                          â”€â”€ */
/* â”€â”€ Bridges gap between CSS design system & JS pages     â”€â”€ */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* â”€â”€ LOGIN PAGE                                           â”€â”€ */
/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

#page-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lg-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}

.lg-bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
  animation: orbFloat 8s ease-in-out infinite;
}

.lg-bg-orb--1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.4), transparent 70%);
  top: -80px; left: -60px; animation-duration: 7s;
}

.lg-bg-orb--2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(6,182,212,0.3), transparent 70%);
  bottom: -50px; right: -40px; animation-duration: 9s; animation-delay: 2s;
}

.lg-bg-orb--3 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(168,85,247,0.25), transparent 70%);
  top: 40%; left: 60%; animation-duration: 11s; animation-delay: 4s;
}

.lg-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -15px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.02); }
}

.lg-container {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  padding: 32px 20px;
  padding-top: max(32px, env(safe-area-inset-top, 32px));
  padding-bottom: max(32px, env(safe-area-inset-bottom, 32px));
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh; min-height: 100dvh; justify-content: center;
}

.lg-brand { text-align: center; margin-bottom: 36px; animation: fadeInUp 500ms ease-out; }

.lg-brand-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #06b6d4 100%);
  display: flex; align-items: center; justify-content: center; color: white;
  box-shadow: 0 8px 32px rgba(124,58,237,0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(124,58,237,0.3), 0 0 0 1px rgba(255,255,255,0.1) inset; }
  50% { box-shadow: 0 8px 48px rgba(124,58,237,0.5), 0 0 0 1px rgba(255,255,255,0.15) inset; }
}

.lg-brand-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.25rem; font-weight: 700;
  background: linear-gradient(135deg, #c4b5fd, #a855f7, #22d3ee);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1; margin-bottom: 8px;
}

.lg-brand-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: #a78bfa; margin-bottom: 12px;
}

.lg-brand-desc { font-size: 0.85rem; line-height: 1.5; color: #94a3b8; }

.lg-auth { width: 100%; animation: fadeIn 0.4s ease-out; }

.lg-section {
  background: rgba(30, 38, 64, 0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.08); border-radius: 20px;
  padding: 24px 20px; position: relative; overflow: hidden;
}

.lg-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.lg-section--compact { padding: 20px; }

.lg-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }

.lg-icon-wrap {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.lg-icon-wrap--violet { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.lg-icon-wrap--cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.lg-icon-wrap--emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.lg-section-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; color: #f1f5f9; margin-bottom: 2px; }
.lg-section-sub { font-size: 0.75rem; color: #64748b; }
.lg-label { display: block; font-size: 0.8rem; font-weight: 500; color: #94a3b8; margin-bottom: 10px; }

.lg-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.lg-pin input {
  width: 100%;
  max-width: 38px;
  height: 46px;
  flex-shrink: 1;
  min-width: 24px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  caret-color: #a855f7;
}

.lg-pin input::-webkit-inner-spin-button,
.lg-pin input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.lg-pin input::placeholder { color: #334155; font-size: 1.5rem; }

.lg-pin input:focus {
  border-color: #7c3aed; background: rgba(124, 58, 237, 0.08);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12), 0 0 20px rgba(124, 58, 237, 0.08);
  transform: translateY(-1px);
}

.lg-pin input:not(:placeholder-shown) { border-color: rgba(124, 58, 237, 0.3); }
.lg-pin-sep { color: #334155; font-size: 0.85rem; margin: 0 2px; flex-shrink: 0; }

.lg-error {
  font-size: 0.75rem; color: #f87171; text-align: center;
  min-height: 20px; line-height: 20px; margin-bottom: 4px;
  opacity: 0; transform: translateY(-4px); transition: all 0.2s ease;
}
.lg-error.visible { opacity: 1; transform: translateY(0); }

.lg-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 50px; border: none; border-radius: 14px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; position: relative; overflow: hidden;
}

.lg-btn--primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7); color: white;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}
.lg-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4); }
.lg-btn--primary:active { transform: translateY(0) scale(0.98); }
.lg-btn--primary::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: btnShimmer 3s ease-in-out infinite;
}
@keyframes btnShimmer { 0% { left: -100%; } 50%, 100% { left: 100%; } }

.lg-btn--secondary {
  background: rgba(6, 182, 212, 0.1); border: 1.5px solid rgba(6, 182, 212, 0.2); color: #22d3ee;
}
.lg-btn--secondary:hover { background: rgba(6, 182, 212, 0.15); border-color: rgba(6, 182, 212, 0.35); transform: translateY(-1px); }
.lg-btn--secondary:active { transform: translateY(0) scale(0.98); }

.lg-divider {
  display: flex; align-items: center; gap: 16px; margin: 20px 0;
  color: #475569; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.lg-divider::before, .lg-divider::after {
  content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(148,163,184,0.12), transparent);
}

.lg-footer { text-align: center; font-size: 0.7rem; color: #334155; margin-top: 32px; animation: fadeIn 0.4s ease-out; }

@keyframes lgShake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-6px); }
  30%, 60%, 90% { transform: translateX(6px); }
}
.lg-shake { animation: lgShake 0.4s ease-in-out; }

@media (max-width: 360px) {
  .lg-pin input { font-size: 1rem; border-radius: 10px; }
  .lg-pin { gap: 4px; }
  .lg-brand-title { font-size: 1.85rem; }
  .lg-section { padding: 20px 16px; border-radius: 16px; }
}

@media (max-height: 650px) {
  .lg-brand { margin-bottom: 20px; }
  .lg-brand-desc { display: none; }
  .lg-brand-icon { width: 48px; height: 48px; }
  .lg-brand-title { font-size: 1.8rem; }
}


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* â”€â”€ HOME / DASHBOARD PAGE                                â”€â”€ */
/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

.page-header-content { flex: 1; }

.page-subtitle {
  font-size: 0.75rem; color: #64748b; margin-top: 2px; font-weight: 400;
}

.page-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 20px;
  padding-bottom: calc(64px + 24px);
  -webkit-overflow-scrolling: touch;
}

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px;
}

/* Stat card color variants */
.stat-card-violet .stat-card-icon { background: rgba(124,58,237,0.15); color: #a78bfa; }
.stat-card-cyan .stat-card-icon { background: rgba(6,182,212,0.15); color: #22d3ee; }
.stat-card-amber .stat-card-icon { background: rgba(245,158,11,0.15); color: #fbbf24; }
.stat-card-emerald .stat-card-icon { background: rgba(16,185,129,0.15); color: #34d399; }

.stat-card-info { display: flex; flex-direction: column; }

.stat-card-value-small { font-size: 1rem !important; }

.home-cta { margin-bottom: 24px; }

.section { margin-bottom: 20px; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}

.section-header .section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.03em;
}

.section-header .section-title svg { color: #64748b; }

.category-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 600;
  background: rgba(124,58,237,0.1); color: #a78bfa;
}

.product-list { display: flex; flex-direction: column; gap: 10px; }

.product-card {
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
  padding: 16px !important;
}

.product-card:active { transform: scale(0.98); }

.product-card-top {
  display: flex; justify-content: space-between; align-items: center;
}

.product-card-date { font-size: 0.7rem; color: #64748b; }

.product-card-name {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 600;
  color: #f1f5f9;
}

.product-card-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
}

.product-card-meta-item {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; color: #64748b;
}

.product-card-meta-item svg { flex-shrink: 0; }

.product-card-arrow {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: #475569;
}

.text-emerald { color: #34d399 !important; }


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* â”€â”€ SETTINGS PAGE                                        â”€â”€ */
/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

.settings-section {
  background: rgba(30, 38, 64, 0.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.08); border-radius: 14px;
  padding: 20px; margin-bottom: 16px;
}

.settings-section-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-weight: 600;
  color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

.settings-row { margin-bottom: 16px; }
.settings-row:last-child { margin-bottom: 0; }

.settings-row label {
  display: block; font-size: 0.8rem; font-weight: 500; color: #94a3b8; margin-bottom: 6px;
}

.settings-row .input,
.settings-row input[type="text"],
.settings-row input[type="password"],
.settings-row input[type="number"],
.settings-row input[type="range"] {
  width: 100%; padding: 10px 14px; background: rgba(15, 23, 42, 0.5);
  border: 1.5px solid rgba(148, 163, 184, 0.1); border-radius: 10px;
  color: #f1f5f9; font-size: 0.875rem; transition: all 0.2s ease;
}

.settings-row input:focus {
  border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.settings-row .hint {
  font-size: 0.7rem; color: #475569; margin-top: 4px;
}

.settings-actions { display: flex; gap: 8px; margin-top: 8px; }

.input-with-toggle { position: relative; }
.input-with-toggle input { padding-right: 44px; }
.input-with-toggle .toggle-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #64748b; cursor: pointer; transition: all 0.15s ease;
}
.input-with-toggle .toggle-btn:hover { color: #f1f5f9; background: rgba(148,163,184,0.1); }

.range-display { display: flex; justify-content: space-between; align-items: center; }
.range-value {
  padding: 2px 10px; border-radius: 8px;
  background: rgba(124,58,237,0.1); color: #a78bfa;
  font-size: 0.8rem; font-weight: 600; font-family: 'Space Grotesk', sans-serif;
}

.pin-change-form { display: flex; flex-direction: column; gap: 12px; }
.pin-change-form input {
  width: 100%; padding: 10px 14px; background: rgba(15, 23, 42, 0.5);
  border: 1.5px solid rgba(148, 163, 184, 0.1); border-radius: 10px;
  color: #f1f5f9; font-size: 0.875rem;
}

.data-actions { display: flex; flex-direction: column; gap: 10px; }

.access-denied {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px; gap: 16px;
}

.access-denied-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(239, 68, 68, 0.1); color: #f87171;
  display: flex; align-items: center; justify-content: center;
}


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* â”€â”€ PERSONA PAGE                                         â”€â”€ */
/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

.persona-header { display: flex; align-items: center; justify-content: space-between; }

.persona-list { display: flex; flex-direction: column; gap: 12px; }

.persona-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.persona-card {
  padding: 20px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(30, 38, 64, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  position: relative;
}

.persona-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.persona-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.persona-avatar {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: white;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.25);
}

.persona-info { flex: 1; min-width: 0; }

.persona-name {
  font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600;
  color: #f1f5f9; margin-bottom: 2px;
}

.persona-meta {
  display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: #64748b;
}

.persona-meta svg {
  color: #475569;
}

.persona-usage-badge {
  display: flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 9999px; background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.15); color: #fbbf24;
  font-size: 0.7rem; font-weight: 600; line-height: 1;
}

.persona-usage-badge svg {
  color: #fbbf24; fill: #fbbf24;
}

.persona-categories {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0;
}

.persona-snippet {
  font-size: 0.8rem; color: #94a3b8; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; margin: 2px 0 6px 0;
}

.persona-card-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: auto;
  padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.persona-form-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(10, 14, 26, 0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}

.persona-form-overlay.overlay-visible {
  opacity: 1; pointer-events: auto;
}

.persona-form-panel {
  width: 100%; max-width: 440px; max-height: 85vh;
  display: flex; flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.1); border-radius: 20px;
  overflow: hidden; background: rgba(20, 26, 46, 0.95);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.persona-form-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.persona-form-header h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 600; color: #f8fafc;
}

.persona-form-body {
  flex: 1; overflow-y: auto; padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
}

.persona-form-footer {
  padding: 16px 24px; border-top: 1px solid rgba(148, 163, 184, 0.08);
  display: flex; gap: 10px; justify-content: flex-end;
  background: rgba(15, 23, 42, 0.2);
}


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* â”€â”€ HISTORY PAGE                                         â”€â”€ */
/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

.history-summary {
  display: flex; gap: 12px; margin-bottom: 16px;
}

.history-summary-item {
  flex: 1; text-align: center; padding: 12px 8px;
  background: rgba(30, 38, 64, 0.4); border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.06);
}

.history-summary-value {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700;
  display: block;
}

.history-summary-label {
  font-size: 0.65rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em;
}

.history-list { display: flex; flex-direction: column; gap: 10px; }

.history-card { padding: 16px !important; cursor: pointer; }
.history-card:active { transform: scale(0.98); }

.history-card-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px;
}

.history-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.history-card-body { margin-bottom: 8px; }

.history-card-name {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 600;
  margin-bottom: 4px;
}

.history-card-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}

.history-card-expand {
  border-top: 1px solid rgba(148,163,184,0.06); padding-top: 12px; margin-top: 8px;
}

.history-card-narratives {
  display: flex; flex-direction: column; gap: 8px; max-height: 0;
  overflow: hidden; transition: max-height 0.3s ease;
}

.history-card.expanded .history-card-narratives { max-height: 2000px; }

.mini-narrative {
  padding: 10px; border-radius: 10px;
  background: rgba(15, 23, 42, 0.4); border: 1px solid rgba(148,163,184,0.05);
}

.mini-narrative-text { font-size: 0.8rem; color: #cbd5e1; line-height: 1.5; margin-bottom: 6px; }

.mini-narrative-actions { display: flex; gap: 6px; align-items: center; }


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* â”€â”€ RESULTS PAGE                                         â”€â”€ */
/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

.results-info { padding: 16px !important; margin-bottom: 12px; }

.results-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.results-info-item { display: flex; flex-direction: column; gap: 2px; }
.results-info-label { font-size: 0.65rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.results-info-value { font-size: 0.85rem; font-weight: 500; }

.narrative-list { display: flex; flex-direction: column; gap: 12px; }

.narrative-card { padding: 16px !important; }

.narrative-hook {
  font-size: 0.9rem; font-weight: 600; color: #a78bfa;
  margin-bottom: 8px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(148,163,184,0.06);
  line-height: 1.4;
}

.narrative-body {
  font-size: 0.85rem; color: #cbd5e1; line-height: 1.65; margin-bottom: 12px;
  white-space: pre-wrap;
}

.narrative-badges {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}

.narrative-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 600;
  background: rgba(30, 38, 64, 0.6); color: #94a3b8;
}

.narrative-actions {
  display: flex; gap: 6px; flex-wrap: wrap; padding-top: 10px;
  border-top: 1px solid rgba(148,163,184,0.06);
}

.narrative-edit-area {
  width: 100%; min-height: 120px; padding: 12px;
  background: rgba(15, 23, 42, 0.5); border: 1.5px solid rgba(124,58,237,0.3);
  border-radius: 10px; color: #f1f5f9; font-size: 0.85rem;
  line-height: 1.65; resize: vertical; font-family: 'Inter', sans-serif;
}

.used-badge {
  background: rgba(16, 185, 129, 0.12); color: #34d399;
  padding: 2px 8px; border-radius: 9999px; font-size: 0.65rem; font-weight: 600;
}

.fav-active { color: #f87171 !important; }


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* â”€â”€ GENERATE / WIZARD                                    â”€â”€ */
/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

.wizard-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.btn-glow { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-sm { padding: 4px 10px; font-size: 0.75rem; }

/* Upload */
.upload-input { display: none; }
.upload-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 48px 16px; color: #64748b; text-align: center;
}
.upload-placeholder p { font-size: 0.875rem; font-weight: 500; }
.upload-preview { position: relative; text-align: center; padding: 12px; }
.upload-preview img { max-width: 100%; max-height: 240px; border-radius: 10px; object-fit: contain; }
.upload-remove {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(239, 68, 68, 0.9); color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; transition: all 0.15s ease;
}
.upload-remove:hover { background: #ef4444; transform: scale(1.1); }
.upload-filename { display: block; font-size: 0.75rem; color: #64748b; margin-top: 8px; }
.upload-dragover { border-color: #7c3aed !important; background: rgba(124, 58, 237, 0.08) !important; }

/* Analysis */
.analysis-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 60px 16px; text-align: center;
}
.analysis-status { font-size: 0.875rem; color: #94a3b8; animation: pulse 2s ease-in-out infinite; }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.analysis-item { display: flex; flex-direction: column; gap: 2px; }
.analysis-label { font-size: 0.7rem; color: #64748b; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.analysis-value { font-size: 0.875rem; color: #f1f5f9; font-weight: 500; }
.analysis-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, 0.08); }
.analysis-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.analysis-list { list-style: none; padding: 0; margin: 8px 0 0; }
.analysis-list li { font-size: 0.875rem; padding: 4px 0 4px 20px; position: relative; color: #cbd5e1; }
.analysis-list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; transform: translateY(-50%); }
.analysis-list.success li::before { background: #10b981; }
.analysis-list.warning li::before { background: #f59e0b; }
.analysis-description { font-size: 0.875rem; color: #94a3b8; line-height: 1.6; margin-top: 8px; }

/* Persona Selector */
.persona-select-list { display: flex; flex-direction: column; gap: 12px; }
.persona-select-card {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  cursor: pointer; transition: all 0.2s ease; border: 1.5px solid transparent;
}
.persona-select-card:hover { border-color: rgba(148, 163, 184, 0.15); }
.persona-select-card.selected { border-color: #7c3aed; background: rgba(124, 58, 237, 0.08); }
.persona-select-info { flex: 1; min-width: 0; }
.persona-select-name { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.persona-select-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.persona-select-preview { font-size: 0.75rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.persona-select-check {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(148, 163, 184, 0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s ease; color: transparent;
}
.persona-select-card.selected .persona-select-check { background: #7c3aed; border-color: #7c3aed; color: white; }


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* â”€â”€ HOOKS PAGE                                           â”€â”€ */
/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

.hooks-info { padding: 16px; margin-bottom: 12px; }
.hooks-info-row { display: flex; justify-content: space-between; align-items: center; }
.hooks-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; }
.hooks-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding: 8px 0; }
.hooks-counter { font-size: 0.875rem; color: #94a3b8; font-weight: 500; }
.hooks-counter span { color: #a78bfa; font-weight: 700; font-size: 1.125rem; }
.hooks-quick-actions { display: flex; gap: 8px; }
.hooks-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 100px; }
.hook-rank { font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; color: #475569; font-weight: 600; }
.hook-score-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
}
.hook-score-badge.score-excellent { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.hook-score-badge.score-good { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.hook-score-badge.score-weak { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.hook-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hook-card-body { padding: 8px 0; }
.hook-text { font-size: 0.875rem; line-height: 1.6; color: #f1f5f9; margin-bottom: 8px; }
.hook-meta { display: flex; gap: 8px; align-items: center; }
.hook-card-reason { padding-top: 8px; border-top: 1px solid rgba(148, 163, 184, 0.08); transition: all 0.2s ease; }
.hook-card-reason.collapsed { max-height: 0; overflow: hidden; padding: 0; border: none; }
.hook-checkbox {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(148, 163, 184, 0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease; color: transparent; flex-shrink: 0;
}
.hook-card.selected .hook-checkbox { background: #7c3aed; border-color: #7c3aed; color: white; }
.hooks-bottom-bar {
  position: fixed; bottom: 64px; left: 0; right: 0;
  max-width: 480px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  z-index: 40; border-radius: 16px 16px 0 0;
}
.hooks-bottom-info { display: flex; flex-direction: column; gap: 2px; }
.hooks-bottom-count { font-size: 0.875rem; font-weight: 600; }
.hooks-bottom-cost { font-size: 0.75rem; color: #64748b; }


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* â”€â”€ BADGES & SCORES                                      â”€â”€ */
/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

.score-excellent { color: #34d399; }
.score-good { color: #fbbf24; }
.score-weak { color: #f87171; }

.badge-sm { padding: 2px 8px; font-size: 0.65rem; border-radius: 9999px; font-weight: 600; }
.badge-sm.score-excellent { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-sm.score-good { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-sm.score-weak { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.cost-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; background: rgba(245, 158, 11, 0.12); color: #fbbf24;
  border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
}


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* â”€â”€ MISC UTILITIES                                       â”€â”€ */
/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

.progress-bar-container {
  width: 100%; max-width: 280px; height: 4px;
  background: rgba(148, 163, 184, 0.1); border-radius: 9999px; overflow: hidden; margin-top: 16px;
}
.progress-bar { height: 100%; background: linear-gradient(135deg, #7c3aed, #a855f7); border-radius: 9999px; transition: width 0.5s ease; width: 0%; }
.spinner-large { width: 48px; height: 48px; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #94a3b8; margin-bottom: 8px; }
.form-hint { font-size: 0.75rem; color: #475569; margin-top: 4px; }

.text-secondary { color: #94a3b8; }
.btn-sm { padding: 4px 12px; font-size: 0.75rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }


/* ???????????????????????????????????????????????????????? */
/* -- ADDITIONAL MISSING CLASSES                           -- */
/* ???????????????????????????????????????????????????????? */

/* Empty State */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px; gap: 16px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(30, 38, 64, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-top: 8px;
  min-height: 280px;
}
.empty-state-sm {
  padding: 24px 16px; gap: 8px;
  background: rgba(30, 38, 64, 0.15);
  border-radius: 12px;
  min-height: auto;
}
.empty-state-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.12);
  color: #a78bfa;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.25);
}
.empty-state-icon-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}
.empty-state-title { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; color: #f1f5f9; }
.empty-state-desc { font-size: 0.8rem; color: #94a3b8; max-width: 260px; line-height: 1.5; }

/* Filter Tabs */
.filter-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 6px 14px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: all 0.2s ease;
  background: rgba(30, 38, 64, 0.4); color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.06);
}
.filter-tab:hover { color: #94a3b8; border-color: rgba(148, 163, 184, 0.12); }
.filter-tab.active { background: rgba(124, 58, 237, 0.15); color: #a78bfa; border-color: rgba(124, 58, 237, 0.3); }

/* Wizard */
.wizard-progress {
  display: flex; align-items: center; gap: 0; padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}
.wizard-step {
  display: flex; align-items: center; gap: 6px; flex: 1;
  font-size: 0.7rem; color: #475569; font-weight: 500; position: relative;
}
.wizard-step::after {
  content: ''; flex: 1; height: 2px; background: rgba(148, 163, 184, 0.1);
  margin: 0 8px;
}
.wizard-step:last-child::after { display: none; }
.wizard-step.active { color: #a78bfa; }
.wizard-step.completed { color: #34d399; }
.wizard-step .step-num {
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; flex-shrink: 0;
  background: rgba(148, 163, 184, 0.1); color: #475569;
}
.wizard-step.active .step-num { background: rgba(124, 58, 237, 0.2); color: #a78bfa; }
.wizard-step.completed .step-num { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.wizard-panel { display: none; padding: 20px; animation: fadeIn 0.3s ease-out; }
.wizard-panel.active { display: block; }
.wizard-panel-header { margin-bottom: 16px; }
.wizard-panel-header h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.wizard-panel-header p { font-size: 0.8rem; color: #64748b; }

/* Upload Zone */
.upload-zone {
  border: 2px dashed rgba(148, 163, 184, 0.15); border-radius: 14px;
  cursor: pointer; transition: all 0.2s ease; overflow: hidden;
  min-height: 160px; display: flex; align-items: center; justify-content: center;
}
.upload-zone:hover { border-color: rgba(124, 58, 237, 0.3); background: rgba(124, 58, 237, 0.03); }

/* Form Extended */
.form-input {
  width: 100%; padding: 10px 14px; background: rgba(15, 23, 42, 0.5);
  border: 1.5px solid rgba(148, 163, 184, 0.1); border-radius: 10px;
  color: #f1f5f9; font-size: 0.875rem; transition: all 0.2s ease;
}
.form-input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); }
.form-row { display: flex; gap: 12px; align-items: flex-end; }
.form-label-row { display: flex; justify-content: space-between; align-items: center; }
.form-range { width: 100%; accent-color: #7c3aed; }
.form-range-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: #475569; }

.input-suffix {
  position: relative;
}
.input-suffix::after {
  content: attr(data-suffix); position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 0.75rem; color: #64748b;
}

/* Cost Summary */
.cost-summary-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(245, 158, 11, 0.06); border: 1px solid rgba(245, 158, 11, 0.1);
  margin-bottom: 16px;
}
.cost-summary-item { display: flex; flex-direction: column; align-items: center; }
.cost-summary-label { font-size: 0.65rem; color: #64748b; text-transform: uppercase; }
.cost-summary-value { font-size: 0.85rem; font-weight: 600; }
.cost-summary-divider { width: 1px; height: 28px; background: rgba(148, 163, 184, 0.1); }
.cost-accent { color: #fbbf24; }

/* Settings Extended */
.settings-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.settings-section-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.settings-icon-violet { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.settings-icon-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.settings-icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.settings-icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.settings-icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.settings-icon-rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.settings-section-desc { font-size: 0.75rem; color: #475569; margin-bottom: 16px; }
.settings-save-bar {
  position: fixed; bottom: 64px; left: 0; right: 0;
  max-width: 480px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; justify-content: center;
  z-index: 40;
}

.data-actions-divider { height: 1px; background: rgba(148, 163, 184, 0.06); margin: 4px 0; }

/* Spinner Variants */
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }

/* Persona Extended */
.persona-avatar-letter { /* handled by .persona-avatar */ }
.persona-categories { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.detected-categories-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.persona-form-overlay { /* handled by .persona-form */ }
.persona-form-panel { /* handled by .persona-form */ }

/* Product narratives list in results */
.product-narratives-list { display: flex; flex-direction: column; gap: 12px; }
.narrative-results-list { display: flex; flex-direction: column; gap: 12px; }
.narrative-actions-row { display: flex; gap: 6px; flex-wrap: wrap; }
.narrative-editing textarea { width: 100%; }
.narrative-edit-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Results extended */
.results-info-highlight { color: #a78bfa; font-weight: 600; }

/* Mini narrative meta */
.mini-narrative-meta { display: flex; gap: 6px; flex-wrap: wrap; }

/* Misc */
.meta-divider { width: 4px; height: 4px; border-radius: 50%; background: #334155; flex-shrink: 0; }
.clickable { cursor: pointer; }
.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-slide-up { animation: fadeInUp 0.4s ease-out; }
.file-upload-area {
  border: 1.5px dashed rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}
.file-upload-area:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.05);
}
.file-upload-content {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px;
  font-size: 0.8rem; color: #94a3b8;
}
.file-upload-content svg {
  color: #a78bfa;
}
.file-input-hidden {
  display: none !important;
}
.form-textarea {
  width: 100%; padding: 10px 14px; background: rgba(15, 23, 42, 0.5);
  border: 1.5px solid rgba(148, 163, 184, 0.1); border-radius: 10px;
  color: #f1f5f9; font-size: 0.875rem; transition: all 0.2s ease;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}
.form-textarea:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ======================================================== */
/* â”€â”€ PREMIUM LOADER & DEBUG TERMINAL STYLES                â”€â”€ */
/* ======================================================== */

.premium-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  min-height: 380px;
}

.glowing-pulse-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: pulseRotate 3s linear infinite;
}

.pulse-ring--violet {
  border-top-color: #7c3aed;
  border-bottom-color: rgba(124, 58, 237, 0.1);
  animation-duration: 2s;
}

.pulse-ring--cyan {
  border-left-color: #06b6d4;
  border-right-color: rgba(6, 182, 212, 0.1);
  width: 80%;
  height: 80%;
  animation-duration: 1.5s;
  animation-direction: reverse;
}

.pulse-core {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #7c3aed 0%, #06b6d4 100%);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.6);
  animation: corePulse 2s ease-in-out infinite alternate;
}

@keyframes pulseRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes corePulse {
  from { transform: scale(0.9); box-shadow: 0 0 15px rgba(6, 182, 212, 0.4); }
  to { transform: scale(1.15); box-shadow: 0 0 35px rgba(124, 58, 237, 0.8); }
}

.debug-terminal {
  width: 100%;
  max-height: 200px;
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 14px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.72rem;
  color: #a7f3d0;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-top: 25px;
  backdrop-filter: blur(10px);
}

.debug-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  padding-bottom: 6px;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.debug-terminal-output {
  overflow-y: auto;
  flex: 1;
  max-height: 120px;
  padding-right: 4px;
}

/* Custom cyberpunk thin glowing scrollbars for debug terminal */
.debug-terminal-output::-webkit-scrollbar {
  width: 4px;
}
.debug-terminal-output::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 2px;
}
.debug-terminal-output::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(6, 182, 212, 0.4);
}
.debug-terminal-output::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.8);
}

.debug-terminal-dots {
  display: flex;
  gap: 4px;
}

.debug-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.debug-dot--red { background: #ef4444; }
.debug-dot--yellow { background: #eab308; }
.debug-dot--green { background: #22c55e; }

.debug-line {
  margin-bottom: 4px;
  line-height: 1.3;
  word-break: break-all;
  animation: terminalFadeIn 200ms ease-out;
}

.debug-line--info { color: #94a3b8; }
.debug-line--success { color: #34d399; }
.debug-line--warning { color: #f59e0b; }
.debug-line--error { color: #f43f5e; font-weight: 600; }

@keyframes terminalFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Premium Global Loader Overlay Enhancement */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.loader-overlay.loader-visible {
  opacity: 1;
  pointer-events: auto;
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(124, 58, 237, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 320px;
  width: 85%;
}

/* Analyzed Product Selector */
.analyzed-product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 10px;
}
.analyzed-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(30, 38, 64, 0.25);
}
.analyzed-product-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.03);
}
.analyzed-product-card.selected {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.06);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}
.analyzed-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(148, 163, 184, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #a78bfa;
}
.analyzed-product-info {
  flex: 1;
  min-width: 0;
}
.analyzed-product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.analyzed-product-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.analyzed-product-check {
  color: #06b6d4;
  opacity: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.analyzed-product-card.selected .analyzed-product-check {
  opacity: 1;
}


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* â”€â”€ NAVBAR BRAND (hidden on mobile)                       â”€â”€ */
/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.navbar-brand {
  display: none;
}


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* â”€â”€ DESKTOP OVERRIDES FOR EXTENDED COMPONENTS              â”€â”€ */
/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
@media (min-width: 769px) {

  /* Settings save bar: not fixed, natural flow */
  .settings-save-bar {
    position: static;
    max-width: 640px;
    padding: 16px 0;
    margin: 0;
  }

  /* Hooks bottom bar: static, no overlapping */
  .hooks-bottom-bar {
    position: static;
    max-width: 100%;
    padding: 16px 0;
    margin-top: 16px;
    bottom: auto;
    border-radius: 14px;
  }

  /* Persona form: wider on desktop */
  .persona-form-overlay .persona-form-panel,
  .persona-form .persona-form-panel {
    max-width: 560px;
    max-height: 80vh;
  }

  /* Cost summary bar: same layout, comfortable width */
  .cost-summary-bar {
    max-width: 640px;
  }

  /* Debug terminal: wider */
  .debug-terminal {
    max-height: 250px;
  }
  .debug-terminal-output {
    max-height: 180px;
  }

  /* Premium loader: more breathing room */
  .premium-loader-container {
    min-height: 420px;
    padding: 40px 30px;
  }

  /* Analyzed product list: taller + 2 columns optionally */
  .analyzed-product-list {
    max-height: 350px;
  }

  /* Wizard progress bar: more space between steps */
  .wizard-progress {
    padding: 18px 28px;
    gap: 4px;
  }

  .wizard-step {
    font-size: 0.75rem;
  }

  .wizard-step .step-num {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  /* Upload placeholder: bigger icon */
  .upload-placeholder svg {
    width: 56px;
    height: 56px;
  }

  /* Page header left: proper alignment */
  .page-header-left {
    gap: 12px;
  }

  /* Product history card: better hover */
  .product-history-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .product-history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  }

  /* Narrative card: desktop hover */
  .narrative-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .narrative-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  }

  /* Mini narrative cards: row layout within expanded product */
  .product-narratives-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Search bar: narrower on desktop */
  .search-bar-container {
    max-width: 400px;
  }

  /* Form textarea: comfortable size */
  .form-textarea {
    min-height: 160px;
  }

  /* Login sections: max width */
  .lg-container {
    max-width: 440px;
  }

  .lg-section {
    padding: 28px 24px;
  }

  /* Form input with toggle */
  .input-with-action {
    max-width: 500px;
  }

  /* Data actions: comfortable layout */
  .data-actions {
    max-width: 480px;
  }
}

