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

/* ============================================
   RESTORED BASE CONTENT
   ============================================ */
/* ============================================
   DESIGN SYSTEM - Insurance Marketing SaaS
   Modern Gradient Edition
   ============================================ */
:root {
  /* Common Variables */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.9375rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.3125rem;
  --font-size-2xl: 1.625rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.75rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
:root {
  --sidebar-width: 280px;
  --header-height: 72px;
}
/* DARK MODE (Default) */
[data-theme='dark'] {
  --color-bg-primary: #060a14;
  --color-bg-secondary: #0d1321;
  --color-bg-tertiary: #141c2e;
  --color-bg-card: rgba(20, 28, 46, 0.6);
  --color-header-bg: rgba(6, 10, 20, 0.85);
  --color-bg-glass: rgba(255, 255, 255, 0.04);
  --color-bg-glass-hover: rgba(255, 255, 255, 0.08);
  --color-bg-input: rgba(255, 255, 255, 0.06);

  --color-text-primary: #f1f5f9;
  --color-text-secondary: #c0cad8;
  --color-text-muted: #7b8ba3;
  --color-text-inverse: #0f172a;

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.16);
  --color-border-focus: var(--color-primary);

  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-bg: linear-gradient(180deg, #060a14 0%, #0d1321 100%);
  --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(6, 182, 212, 0.03) 100%);
  --gradient-sidebar: linear-gradient(180deg, #0d1321 0%, #060a14 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 55%);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
}
/* LIGHT MODE */
[data-theme='light'] {
  --color-bg-primary: #f8fafc;
  --color-bg-secondary: #ffffff;
  --color-bg-tertiary: #f1f5f9;
  --color-bg-card: #ffffff;
  --color-header-bg: rgba(248, 250, 252, 0.9);
  --color-bg-glass: rgba(0, 0, 0, 0.03);
  --color-bg-glass-hover: rgba(0, 0, 0, 0.05);
  --color-bg-input: #ffffff;

  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;
  --color-text-inverse: #f8fafc;

  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;
  --color-border-focus: var(--color-primary);

  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);
  --gradient-bg: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --gradient-sidebar: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 55%);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
:root {
  /* Accent Colors (Shared) */
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-primary-dark: #4f46e5;
  --color-primary-glow: rgba(99, 102, 241, 0.3);
  --color-secondary: #06b6d4;
  --color-secondary-light: #22d3ee;
  --color-accent: #f59e0b;
  --color-accent-light: #fbbf24;

  /* Status Colors */
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.12);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.12);
  --color-info: #3b82f6;
  --color-info-bg: rgba(59, 130, 246, 0.12);

  /* Multi-color Gradients */
  --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  --gradient-amber: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-rose: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  --gradient-emerald: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --gradient-indigo-pink: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --gradient-teal-emerald: linear-gradient(135deg, #14b8a6 0%, #34d399 100%);
  --gradient-orange-rose: linear-gradient(135deg, #f97316 0%, #fb7185 100%);

  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --shadow-glow-lg: 0 0 80px rgba(99, 102, 241, 0.2);
  --shadow-glow-purple: 0 0 30px rgba(124, 58, 237, 0.2);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.2);
  --shadow-glow-amber: 0 0 30px rgba(245, 158, 11, 0.2);
}
/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-family);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
#root {
  min-height: 100vh;
}
a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-secondary-light);
}
::selection {
  background: var(--color-primary);
  color: white;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}
/* ============================================
   APP LAYOUT
   ============================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}
/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background: var(--gradient-sidebar);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition-base);
}
.sidebar-logo {
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.sidebar-logo::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}
.sidebar-logo h1 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.sidebar-logo span {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  -webkit-text-fill-color: var(--color-text-secondary);
  font-weight: 600;
  display: block;
  margin-top: var(--space-1);
  letter-spacing: 0.5px;
}
.sidebar-nav {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
}
.sidebar-nav-group {
  margin-bottom: var(--space-6);
}
.sidebar-nav-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 var(--space-3);
  margin-bottom: var(--space-2);
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
}
.sidebar-link:hover {
  background: var(--color-bg-glass-hover);
  color: var(--color-text-primary);
  transform: translateX(2px);
}
.sidebar-link.active {
  background: var(--gradient-card);
  color: var(--color-primary-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gradient-primary);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}
.sidebar-link .icon {
  font-size: 1.2em;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-footer {
  padding: var(--space-4) var(--space-3);
  border-top: 1px solid var(--color-border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.sidebar-user:hover {
  background: var(--color-bg-glass-hover);
}
.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--font-size-sm);
  flex-shrink: 0;
  position: relative;
}
.sidebar-user-avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0.4;
  animation: glow-pulse 3s ease-in-out infinite;
}
.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-email {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Sidebar logout button */
.sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  margin: 0.5rem 0 0 0;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  transition: all var(--transition-fast);
}
.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}
/* MAIN CONTENT */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  position: relative;
}
.main-content::before {
  content: '';
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: 500px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}
/* HEADER */
.main-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(20px);
  background: var(--color-header-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.main-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.2;
}
.main-header-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
}
.main-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
/* Header action buttons */
.header-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}
.header-btn-ghost {
  background: none;
  border: none;
  color: var(--color-text-secondary);
}
.header-btn-ghost:hover {
  background: var(--color-bg-glass-hover);
  color: var(--color-text-primary);
}
.header-btn-secondary {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}
.header-btn-secondary:hover {
  background: var(--color-bg-glass-hover);
  border-color: var(--color-border-hover);
}
.header-btn .icon-emoji {
  font-size: 1rem;
}
/* PAGE CONTENT */
.page-content {
  padding: var(--space-8);
  position: relative;
  z-index: 1;
  max-width: 1200px;
}
/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after {
  opacity: 1;
}
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px var(--color-primary-glow);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px var(--color-primary-glow);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
}
/* Shimmer effect on primary button */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::before {
  left: 150%;
}
.btn-secondary {
  background: var(--color-bg-glass);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-bg-glass-hover);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.btn-ghost:hover {
  background: var(--color-bg-glass);
  color: var(--color-text-primary);
}
.btn-danger {
  background: var(--color-danger);
  color: white;
}
.btn-danger:hover {
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}
.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
}
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: var(--space-5);
}
.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}
.form-label .required {
  color: var(--color-danger);
  margin-left: 2px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
  background: rgba(255, 255, 255, 0.08);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: var(--space-10);
}
.form-select option,
.form-select optgroup {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}
.form-select optgroup {
  font-weight: 600;
  color: var(--color-text-muted);
}
.form-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}
.card:hover {
  border-color: var(--color-border-hover);
}
.card-glow:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.25);
}
.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h2,
.card-header h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
}
.card-body {
  padding: var(--space-6);
}
.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}
/* ============================================
   STAT CARDS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-hover);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}
.stat-card.purple::before {
  background: var(--gradient-purple);
}
.stat-card.purple:hover {
  box-shadow: var(--shadow-glow-purple);
}
.stat-card.cyan::before {
  background: var(--gradient-cyan);
}
.stat-card.cyan:hover {
  box-shadow: var(--shadow-glow-cyan);
}
.stat-card.amber::before {
  background: var(--gradient-amber);
}
.stat-card.amber:hover {
  box-shadow: var(--shadow-glow-amber);
}
.stat-card.rose::before {
  background: var(--gradient-rose);
}
.stat-card.rose:hover {
  box-shadow: 0 0 30px rgba(225, 29, 72, 0.2);
}
.stat-card.emerald::before {
  background: var(--gradient-emerald);
}
.stat-card.emerald:hover {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}
.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-4);
  transition: transform var(--transition-spring);
}
.stat-card:hover .stat-card-icon {
  transform: scale(1.1) translateY(-2px);
}
.stat-card-icon.purple {
  background: rgba(124, 58, 237, 0.12);
  color: #a78bfa;
}
.stat-card-icon.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-secondary-light);
}
.stat-card-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-accent-light);
}
.stat-card-icon.rose {
  background: rgba(225, 29, 72, 0.12);
  color: #fb7185;
}
.stat-card-icon.green {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.stat-card-value {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}
.stat-card-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
/* ============================================
   BADGES / TAGS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
}
.badge-primary {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary-light);
}
.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.badge-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}
.badge-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}
.badge-info {
  background: var(--color-info-bg);
  color: var(--color-info);
}
/* ============================================
   TABS
   ============================================ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
  gap: var(--space-1);
}
.tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-family);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}
.tab:hover {
  color: var(--color-text-secondary);
}
.tab.active {
  color: var(--color-primary-light);
  border-bottom-color: transparent;
}
.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}
/* ============================================
   CONTENT PREVIEW
   ============================================ */
.content-preview {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}
.content-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.content-preview-body {
  color: var(--color-text-primary);
  line-height: 1.8;
  font-size: var(--font-size-sm);
  white-space: pre-wrap;
  word-break: break-word;
}
.content-preview-body h1,
.content-preview-body h2,
.content-preview-body h3 {
  color: var(--color-text-primary);
  margin: var(--space-4) 0 var(--space-2);
}
.content-preview-body p {
  margin-bottom: var(--space-3);
}
.compliance-box {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-6);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.8;
}
.compliance-box strong {
  color: var(--color-text-secondary);
}
/* ============================================
   COMPLIANCE CHECKER
   ============================================ */
.compliance-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
}
.compliance-status.pass {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.compliance-status.warn {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.compliance-status.fail {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.compliance-items {
  list-style: none;
  padding: 0;
}
.compliance-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
}
.compliance-item:last-child {
  border-bottom: none;
}
.compliance-item .icon {
  flex-shrink: 0;
  margin-top: 2px;
}
/* ============================================
   LOADING / SPINNER
   ============================================ */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-bg-glass-hover);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-16);
  color: var(--color-text-muted);
}
.generating-animation {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.generating-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.generating-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.generating-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes pulse-dot {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}
/* ============================================
   HISTORY LIST
   ============================================ */
.history-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.history-item:hover {
  background: var(--color-bg-glass);
}
.history-item:last-child {
  border-bottom: none;
}
.history-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary-light);
}
.history-item-icon.threads {
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-secondary-light);
}
.history-item-content {
  flex: 1;
  min-width: 0;
}
.history-item-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-3);
}
.history-item-actions {
  display: flex;
  gap: var(--space-2);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.history-item:hover .history-item-actions {
  opacity: 1;
}
/* ============================================
   SETTINGS
   ============================================ */
.settings-section {
  margin-bottom: var(--space-8);
}
.settings-section h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}
.empty-state h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}
.empty-state p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  max-width: 400px;
  margin-bottom: var(--space-6);
}
/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  z-index: 1000;
  animation: slide-up 0.3s var(--transition-spring);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.toast-success {
  background: rgba(16, 185, 129, 0.9);
  color: white;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}
.toast-error {
  background: rgba(239, 68, 68, 0.9);
  color: white;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}
@keyframes slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fade-in 0.2s ease;
}
.modal {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  animation: scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2 {
  font-size: var(--font-size-lg);
  font-weight: 600;
}
.modal-body {
  padding: var(--space-6);
}
.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scale-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ============================================
   DASHBOARD - Welcome Banner
   ============================================ */
.welcome-banner {
  margin-bottom: var(--space-8);
  background: var(--gradient-card);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.welcome-banner .card-body {
  position: relative;
  z-index: 1;
  padding: var(--space-8);
}
.welcome-banner h2 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}
.welcome-banner p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-base);
}
.welcome-banner-actions {
  display: flex;
  gap: var(--space-3);
}
/* ============================================
   DASHBOARD - Quick Actions
   ============================================ */
.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}
.quick-action-card {
  cursor: pointer;
  text-align: left;
  background: var(--color-bg-glass);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.quick-action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.quick-action-card:hover {
  transform: translateY(-3px);
  background: var(--color-bg-glass-hover);
  box-shadow: var(--shadow-md);
}
.quick-action-card:hover::before {
  opacity: 1;
}
.quick-emoji {
  font-size: 1.8rem;
  margin-bottom: var(--space-3);
  display: inline-block;
  transition: transform var(--transition-spring);
}
.quick-action-card:hover .quick-emoji {
  transform: scale(1.15);
}
.quick-title {
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-1);
  color: var(--color-text-primary);
}
.quick-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
/* ============================================
   DASHBOARD - Notices Section
   ============================================ */
.notice-item {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  transition: background var(--transition-fast);
}
.notice-item:hover {
  background: var(--color-bg-glass);
}
.notice-item:last-child {
  border-bottom: none;
}
.notice-badge {
  font-size: var(--font-size-xs);
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.notice-content {
  flex: 1;
  min-width: 0;
}
.notice-title {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}
.notice-preview {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  white-space: pre-wrap;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notice-date {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  flex-shrink: 0;
}
/* ============================================
   FOOTER
   ============================================ */
.app-footer {
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-glass);
  margin-top: auto;
  position: relative;
}
.app-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.15;
}
.footer-grid {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-10);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.footer-section-title {
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-1);
}
.footer-link {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-link:hover {
  color: var(--color-secondary-light);
}
.footer-donate-btn {
  background: linear-gradient(135deg, #FFEB00 0%, #FEE500 100%);
  color: #3C1E1E;
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(255, 235, 0, 0.2);
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}
.footer-donate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 235, 0, 0.3);
}
.footer-copyright {
  margin-top: var(--space-4);
}
/* ============================================
   DONATION MODAL
   ============================================ */
.donation-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
  padding: var(--space-4);
  animation: fade-in 0.2s ease;
}
.donation-modal {
  background: var(--color-bg-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  position: relative;
  text-align: center;
  animation: scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.donation-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.donation-modal-close:hover {
  color: var(--color-text-primary);
}
.donation-modal-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}
.donation-modal h3 {
  margin-bottom: var(--space-2);
  font-size: 1.25rem;
  font-weight: 700;
}
.donation-modal-desc {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  font-size: 0.9rem;
  line-height: 1.5;
}
.donation-account-box {
  background: var(--color-bg-glass);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-primary);
  margin-bottom: var(--space-6);
}
.donation-bank {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.donation-number {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: var(--space-1);
  letter-spacing: 0.5px;
}
.donation-holder {
  font-size: 1.1rem;
  font-weight: 600;
}
/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-primary);
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.login-page::after {
  content: '';
  position: absolute;
  bottom: -300px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}
.login-brand {
  text-align: center;
  margin-bottom: var(--space-8);
}
.login-brand h1 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-2);
}
.login-brand p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}
.login-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.login-card h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-6);
  text-align: center;
  color: var(--color-text-primary);
}
.login-footer {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
.login-footer button {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: var(--space-1);
}
.login-footer button:hover {
  text-decoration: underline;
}
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
/* ============================================
   Coverage Analysis Layout
   ============================================ */
.coverage-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 768px) {
  .coverage-top-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   Content Generator Layout
   ============================================ */
.content-generator-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 1280px) {
  .content-generator-layout.has-result {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}
/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}
.animate-in-delay-1 {
  animation-delay: 0.08s;
  opacity: 0;
}
.animate-in-delay-2 {
  animation-delay: 0.16s;
  opacity: 0;
}
.animate-in-delay-3 {
  animation-delay: 0.24s;
  opacity: 0;
}
.animate-in-delay-4 {
  animation-delay: 0.32s;
  opacity: 0;
}
.animate-in-delay-5 {
  animation-delay: 0.4s;
  opacity: 0;
}
/* Shimmer animation */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
/* Float animation for icons */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
/* Gradient shift animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* Glow pulse animation */
@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}
/* Modal animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
/* ============================================
   RESPONSIVE
   ============================================ */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-2);
}
.sidebar-overlay {
  display: none;
}
/* Tablet breakpoint */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-quick-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .page-content {
    padding: var(--space-6);
  }
}
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .sidebar-overlay.show {
    opacity: 1;
    pointer-events: all;
  }

  .main-content {
    margin-left: 0;
  }

  .main-content::before {
    left: 0;
  }

  .main-header {
    padding: var(--space-3) var(--space-4);
    height: 56px;
  }

  .main-header-title {
    font-size: var(--font-size-base) !important;
  }

  .main-header-actions {
    gap: var(--space-1) !important;
  }

  .page-content {
    padding: var(--space-4);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: var(--space-2);
  }

  .card-header h3 {
    font-size: var(--font-size-sm);
  }

  .dashboard-quick-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-2) !important;
  }

  .dashboard-quick-grid .quick-action-card {
    padding: var(--space-3) !important;
  }

  .dashboard-quick-grid .quick-emoji {
    font-size: 1.3rem !important;
    margin-bottom: var(--space-1) !important;
  }

  .dashboard-quick-grid .quick-title {
    font-size: 0.72rem !important;
  }

  .dashboard-quick-grid .quick-desc {
    display: none !important;
  }

  .welcome-banner .card-body {
    padding: var(--space-5);
  }

  .welcome-banner h2 {
    font-size: var(--font-size-lg);
  }

  .welcome-banner-actions {
    flex-direction: column;
  }

  .welcome-banner-actions .btn {
    width: 100%;
  }

  .footer-grid {
    gap: var(--space-4) var(--space-6);
  }

  .app-footer {
    padding: var(--space-4) var(--space-5);
  }
}
@media (max-width: 480px) {
  .page-content {
    padding: var(--space-3);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .stat-card {
    padding: var(--space-3);
  }

  .stat-card-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
  }

  .stat-card-value {
    font-size: var(--font-size-lg);
  }

  .stat-card-label {
    font-size: 0.65rem;
  }

  .main-header-actions .btn-label {
    display: none;
  }
}
/* ============================================
   UTILITY: Gradient text
   ============================================ */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-purple {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ============================================
   KEYWORD COMBINATOR PAGE
   ============================================ */
.kc-page {
  max-width: 1200px;
  margin: 0 auto;
}
.kc-page-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.kc-page-desc {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}
/* AI Section */
.kc-ai-section {
  border-left: 3px solid var(--color-primary);
}
.kc-ai-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.kc-ai-input {
  flex: 1;
}
.kc-ai-btn {
  white-space: nowrap;
  min-width: 120px;
}
.kc-ai-tip {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-hover);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
}
/* Settings Row */
.kc-settings-row {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.kc-setting-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.kc-setting-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}
.kc-slot-count-btns {
  display: flex;
  gap: var(--space-1);
}
.kc-slot-count-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kc-slot-count-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.kc-slot-count-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.kc-sep-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.kc-sep-select {
  width: 160px;
}
.kc-sep-custom {
  width: 100px;
}
.kc-sep-check {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
}
.kc-sep-check input[type="checkbox"] {
  accent-color: var(--color-primary);
}
/* Slots Grid */
.kc-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.kc-slot-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-normal);
}
.kc-slot-card.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15);
}
.kc-slot-card.active:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-purple);
}
.kc-slot-card.inactive {
  opacity: 0.5;
}
.kc-slot-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.kc-slot-check {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
  flex-shrink: 0;
}
.kc-slot-check input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}
.kc-slot-num {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.kc-slot-label-input {
  font-size: var(--font-size-sm) !important;
  padding: var(--space-1) var(--space-2) !important;
  flex: 1;
  min-width: 0;
}
.kc-slot-textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  font-size: var(--font-size-sm) !important;
  line-height: 1.5;
  font-family: inherit;
}
.kc-slot-textarea:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.kc-slot-count {
  text-align: right;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
/* Action Buttons */
.kc-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.kc-actions-left {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}
.kc-generate-btn {
  font-size: var(--font-size-base) !important;
  padding: var(--space-3) var(--space-6) !important;
}
/* Results Section */
.kc-results-section {
  margin-top: var(--space-4);
}
.kc-results-actions {
  display: flex;
  gap: var(--space-2);
}
.kc-results-search {
  margin-bottom: var(--space-4);
}
.kc-results-list {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.kc-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  transition: background var(--transition-fast);
}
.kc-result-item:last-child {
  border-bottom: none;
}
.kc-result-item:hover {
  background: var(--color-surface-hover);
}
.kc-result-num {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  min-width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.kc-result-text {
  color: var(--color-text-primary);
}
.kc-results-more {
  padding: var(--space-3);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  background: var(--color-surface-hover);
}
/* Order Section */
.kc-order-section {
  margin-bottom: var(--space-6);
}
.kc-order-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.kc-order-toggle input[type="checkbox"] {
  accent-color: var(--color-primary);
}
.kc-order-default-info {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.kc-order-preview {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
}
.kc-order-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.kc-order-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-hover);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.kc-order-item-num {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  min-width: 28px;
}
.kc-order-item-slots {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  flex: 1;
}
.kc-order-slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.kc-order-slot-badge .kc-order-slot-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}
.kc-order-slot-badge .kc-order-slot-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-left: 2px;
}
.kc-order-slot-badge.editing .kc-order-slot-num {
  background: var(--gradient-purple);
}
.kc-order-arrow {
  color: var(--color-text-muted);
  font-size: 0.7rem;
  margin: 0 2px;
}
.kc-order-remove-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1;
}
.kc-order-remove-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.kc-order-empty {
  padding: var(--space-3);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}
.kc-order-builder {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}
.kc-order-builder-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}
.kc-order-builder-current {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-hover);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.kc-order-builder-placeholder {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.kc-order-builder-btns {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.kc-order-builder-slot-btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.kc-order-builder-slot-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
}
.kc-order-builder-slot-btn.used {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.kc-order-builder-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
/* ============================================
   CONSULT FEEDBACK PAGE
   ============================================ */
.cf-page {
  max-width: 1200px;
  margin: 0 auto;
}
.cf-header-card {
  margin-bottom: var(--space-6);
}
.cf-page-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.cf-page-desc {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}
.cf-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-6);
  align-items: start;
}
.cf-settings-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.cf-settings-col .card {
  margin-bottom: 0;
}
/* Dropzone */
.cf-dropzone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}
.cf-dropzone:hover {
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.05);
}
.cf-dropzone.has-file {
  border-color: var(--color-primary);
  border-style: solid;
  background: rgba(99, 102, 241, 0.05);
  padding: var(--space-4);
}
.cf-dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}
.cf-dropzone-text {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}
.cf-dropzone-formats {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.cf-file-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.cf-file-icon {
  font-size: 1.5rem;
}
.cf-file-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  word-break: break-all;
  text-align: center;
}
.cf-file-size {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.cf-file-remove {
  background: none;
  border: none;
  color: #ef4444;
  font-size: var(--font-size-xs);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-1);
}
.cf-file-remove:hover {
  background: rgba(239, 68, 68, 0.1);
}
/* Consult Type */
.cf-type-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.cf-type-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}
.cf-type-btn:hover {
  border-color: var(--color-primary);
}
.cf-type-btn.active {
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
}
.cf-type-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}
.cf-type-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
/* Focus Area Body */
.cf-focus-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cf-focus-body .form-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
/* Custom Note */
.cf-custom-note {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: var(--font-size-sm) !important;
  resize: vertical;
  font-family: inherit;
  min-height: 80px;
}
/* Analyze Button */
.cf-analyze-btn {
  width: 100%;
  font-size: var(--font-size-base) !important;
  padding: var(--space-3) var(--space-4) !important;
}
/* Error */
.cf-error {
  padding: var(--space-3) var(--space-4);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  color: #ef4444;
  font-size: var(--font-size-sm);
}
/* Empty State */
.cf-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-10) var(--space-6);
  min-height: 400px;
}
.cf-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}
.cf-empty-state h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}
.cf-empty-state p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-6);
}
.cf-empty-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.cf-feature-item {
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-hover);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
/* Loading State */
.cf-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-10) var(--space-6);
  min-height: 400px;
  gap: var(--space-4);
}
.cf-loading-state h3 {
  font-size: var(--font-size-lg);
}
.cf-loading-state p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}
/* Result */
.cf-result-card {
  margin-bottom: 0;
}
.cf-result-content {
  white-space: pre-wrap;
  font-size: var(--font-size-sm);
  line-height: 1.8;
  color: var(--color-text-secondary);
}
/* Responsive */
@media (max-width: 1024px) {
  .cf-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .cf-empty-features {
    grid-template-columns: 1fr;
  }
}
/* Responsive: Tablet */
@media (max-width: 1024px) {
  .kc-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Responsive: Mobile */
@media (max-width: 768px) {
  .kc-ai-row {
    flex-direction: column;
  }

  .kc-ai-btn {
    width: 100%;
  }

  .kc-settings-row {
    flex-direction: column;
    gap: var(--space-4);
  }

  .kc-slots-grid {
    grid-template-columns: 1fr;
  }

  .kc-actions-left {
    width: 100%;
  }

  .kc-generate-btn {
    width: 100%;
  }

  .kc-results-actions {
    flex-wrap: wrap;
  }
}


/* ============================================
   PREMIUM LOGIN PAGE DESIGN
   ============================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #050816;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(124, 58, 237, 0.06) 0%, transparent 40%);
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
    color: #fff;
}
/* ============================================
   Large Animated Orbs (more dramatic)
   ============================================ */
.auth-wrapper::before,
.auth-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}
.auth-wrapper::before {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.35), rgba(124, 58, 237, 0.15) 40%, transparent 65%);
    top: -30%;
    left: -15%;
    animation: floatOrbLarge 20s ease-in-out infinite alternate;
}
.auth-wrapper::after {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.3), rgba(14, 165, 233, 0.1) 40%, transparent 65%);
    bottom: -25%;
    right: -15%;
    animation: floatOrbLarge 16s ease-in-out infinite alternate-reverse;
}
@keyframes floatOrbLarge {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(80px, 60px) scale(1.15);
    }
    66% {
        transform: translate(-40px, 80px) scale(0.95);
    }
    100% {
        transform: translate(50px, -30px) scale(1.08);
    }
}
/* ============================================
   Extra Orbs (via .auth-orbs container)
   ============================================ */
.auth-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.auth-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.auth-orbs .orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 60%);
    top: 20%;
    right: -10%;
    animation: floatOrbMid 18s ease-in-out infinite alternate;
}
.auth-orbs .orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 60%);
    bottom: 10%;
    left: -5%;
    animation: floatOrbMid 22s ease-in-out infinite alternate-reverse;
}
.auth-orbs .orb:nth-child(3) {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.14), transparent 55%);
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    animation: floatOrbMid 25s ease-in-out infinite alternate;
}
@keyframes floatOrbMid {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(60px, -40px) scale(1.1);
    }
    100% {
        transform: translate(-30px, 50px) scale(0.92);
    }
}
/* ============================================
   Animated White Wave / Aurora Background
   ============================================ */
.auth-wave-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.auth-wave-bg .wave {
    position: absolute;
    width: 250%;
    height: 250%;
    top: -80%;
    left: -75%;
    border-radius: 42%;
    opacity: 0;
    animation: waveRotate linear infinite;
}
.auth-wave-bg .wave:nth-child(1) {
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.07), transparent 55%);
    animation-duration: 16s;
    opacity: 0.9;
}
.auth-wave-bg .wave:nth-child(2) {
    background: radial-gradient(ellipse at 60% 40%, rgba(255, 255, 255, 0.05), transparent 50%);
    animation-duration: 20s;
    animation-delay: -5s;
    animation-direction: reverse;
    opacity: 0.7;
}
.auth-wave-bg .wave:nth-child(3) {
    background: radial-gradient(ellipse at 50% 60%, rgba(200, 210, 255, 0.06), transparent 45%);
    animation-duration: 24s;
    animation-delay: -10s;
    opacity: 0.8;
}
.auth-wave-bg .wave:nth-child(4) {
    background: radial-gradient(ellipse at 40% 30%, rgba(180, 200, 255, 0.04), transparent 50%);
    animation-duration: 28s;
    animation-delay: -15s;
    animation-direction: reverse;
    opacity: 0.6;
}
.auth-wave-bg .wave:nth-child(5) {
    background: radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.05), transparent 50%);
    animation-duration: 32s;
    animation-delay: -8s;
    opacity: 0.5;
}
.auth-wave-bg .wave:nth-child(6) {
    background: radial-gradient(ellipse at 20% 70%, rgba(200, 180, 255, 0.04), transparent 45%);
    animation-duration: 36s;
    animation-delay: -18s;
    animation-direction: reverse;
    opacity: 0.6;
}
@keyframes waveRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* ============================================
   Floating light particles (15 particles)
   ============================================ */
.auth-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.auth-particles .particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}
/* Bright large ones */
.auth-particles .particle:nth-child(1) {
    left: 8%;
    width: 4px; height: 4px;
    animation-duration: 11s;
    animation-delay: 0s;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}
.auth-particles .particle:nth-child(2) {
    left: 22%;
    width: 3px; height: 3px;
    animation-duration: 14s;
    animation-delay: -2s;
}
.auth-particles .particle:nth-child(3) {
    left: 35%;
    width: 5px; height: 5px;
    animation-duration: 16s;
    animation-delay: -5s;
    background: rgba(200, 210, 255, 0.35);
    box-shadow: 0 0 8px rgba(200, 210, 255, 0.25);
}
.auth-particles .particle:nth-child(4) {
    left: 48%;
    width: 2px; height: 2px;
    animation-duration: 12s;
    animation-delay: -1s;
}
.auth-particles .particle:nth-child(5) {
    left: 58%;
    width: 3px; height: 3px;
    animation-duration: 18s;
    animation-delay: -7s;
    background: rgba(180, 200, 255, 0.3);
}
.auth-particles .particle:nth-child(6) {
    left: 68%;
    width: 4px; height: 4px;
    animation-duration: 13s;
    animation-delay: -3s;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}
.auth-particles .particle:nth-child(7) {
    left: 78%;
    width: 2px; height: 2px;
    animation-duration: 20s;
    animation-delay: -9s;
}
.auth-particles .particle:nth-child(8) {
    left: 88%;
    width: 3px; height: 3px;
    animation-duration: 15s;
    animation-delay: -4s;
    background: rgba(160, 180, 255, 0.3);
}
.auth-particles .particle:nth-child(9) {
    left: 95%;
    width: 2px; height: 2px;
    animation-duration: 17s;
    animation-delay: -11s;
}
.auth-particles .particle:nth-child(10) {
    left: 3%;
    width: 3px; height: 3px;
    animation-duration: 19s;
    animation-delay: -6s;
    background: rgba(255, 255, 255, 0.25);
}
/* Subtle small ones */
.auth-particles .particle:nth-child(11) {
    left: 15%;
    width: 2px; height: 2px;
    animation-duration: 22s;
    animation-delay: -13s;
    background: rgba(200, 180, 255, 0.2);
}
.auth-particles .particle:nth-child(12) {
    left: 42%;
    width: 3px; height: 3px;
    animation-duration: 21s;
    animation-delay: -8s;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
}
.auth-particles .particle:nth-child(13) {
    left: 62%;
    width: 2px; height: 2px;
    animation-duration: 24s;
    animation-delay: -14s;
}
.auth-particles .particle:nth-child(14) {
    left: 82%;
    width: 4px; height: 4px;
    animation-duration: 13s;
    animation-delay: -2s;
    background: rgba(220, 230, 255, 0.25);
    box-shadow: 0 0 10px rgba(220, 230, 255, 0.15);
}
.auth-particles .particle:nth-child(15) {
    left: 52%;
    width: 2px; height: 2px;
    animation-duration: 25s;
    animation-delay: -16s;
    background: rgba(255, 255, 255, 0.18);
}
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(40vh) translateX(20px);
        opacity: 1;
    }
    95% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(-15px);
        opacity: 0;
    }
}
/* ============================================
   Horizontal aurora sweep
   ============================================ */
.auth-aurora {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.auth-aurora .streak {
    position: absolute;
    height: 1px;
    border-radius: 50%;
    filter: blur(1px);
    animation: auroraStreak linear infinite;
}
.auth-aurora .streak:nth-child(1) {
    top: 20%;
    width: 200px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation-duration: 8s;
    animation-delay: 0s;
}
.auth-aurora .streak:nth-child(2) {
    top: 40%;
    width: 300px;
    background: linear-gradient(90deg, transparent, rgba(180,200,255,0.1), transparent);
    animation-duration: 12s;
    animation-delay: -3s;
}
.auth-aurora .streak:nth-child(3) {
    top: 65%;
    width: 180px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation-duration: 10s;
    animation-delay: -6s;
}
.auth-aurora .streak:nth-child(4) {
    top: 80%;
    width: 250px;
    background: linear-gradient(90deg, transparent, rgba(200,180,255,0.08), transparent);
    animation-duration: 14s;
    animation-delay: -2s;
}
@keyframes auroraStreak {
    0% {
        left: -20%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 110%;
        opacity: 0;
    }
}
/* ============================================
   Auth Container & Header
   ============================================ */
.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
    padding: 2rem;
}
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
/* Hooking message slider - BIGGER */
.auth-hooking {
    height: 36px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-hooking-text {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0.85), rgba(200,210,255,0.9), rgba(255,255,255,0.35));
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hookingSlide 0.6s cubic-bezier(0.22, 1, 0.36, 1), hookingShimmer 4s ease-in-out infinite;
}
@keyframes hookingSlide {
    0% {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
@keyframes hookingShimmer {
    0%, 100% {
        background-position: -300% center;
    }
    50% {
        background-position: 300% center;
    }
}
.auth-logo-text {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.auth-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}
/* ============================================
   Glassmorphism Card
   ============================================ */
.auth-glass-card {
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.auth-glass-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 35px 60px -15px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 2rem;
    text-align: center;
}
/* Enhanced Form Inputs */
.auth-form-group {
    margin-bottom: 1.25rem;
    position: relative;
}
.auth-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}
.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.auth-label-row .auth-label {
    margin-bottom: 0;
}
.auth-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
}
.auth-input::placeholder {
    color: #64748b;
}
.auth-input:focus {
    background: rgba(30, 41, 59, 0.8);
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.auth-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
}
.auth-forgot-link {
    color: #818cf8;
    font-size: 0.8rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}
.auth-forgot-link:hover {
    color: #a5b4fc;
}
/* Beautiful Button */
.auth-btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5);
}
.auth-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    transform: skewX(-20deg);
}
.auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 25px -10px rgba(99, 102, 241, 0.6);
}
.auth-btn-primary:hover::after {
    left: 150%;
}
.auth-btn-ghost {
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
}
.auth-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}
.auth-footer button {
    background: none;
    border: none;
    color: #818cf8;
    font-weight: 600;
    cursor: pointer;
    padding: 0 0.25rem;
    font-family: inherit;
    transition: color 0.2s;
}
.auth-footer button:hover {
    color: #a5b4fc;
}
/* Mobile: 후킹 문구 애니메이션 비활성화 */
@media (max-width: 768px) {
    .auth-hooking-text {
        animation: none;
        background: none;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.7);
        color: rgba(255, 255, 255, 0.7);
    }
}
.auth-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.auth-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
