/* ============================================================
   Bio Studio - CSS Framework
   A modern, complete design system for a multi-tenant
   link-in-bio page builder.
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* --- Colors --- */
  --color-primary: #7c3aed;
  --color-primary-light: #a78bfa;
  --color-primary-dark: #5b21b6;
  --color-primary-50: #f5f3ff;
  --color-primary-100: #ede9fe;
  --color-primary-200: #ddd6fe;
  --color-primary-500: #8b5cf6;
  --color-primary-600: #7c3aed;
  --color-primary-700: #6d28d9;
  --color-primary-800: #5b21b6;
  --color-primary-900: #4c1d95;

  --color-secondary: #ec4899;
  --color-secondary-light: #f9a8d4;
  --color-secondary-dark: #be185d;
  --color-secondary-50: #fdf2f8;
  --color-secondary-100: #fce7f3;
  --color-secondary-500: #ec4899;
  --color-secondary-600: #db2777;
  --color-secondary-700: #be185d;

  --color-accent: #06b6d4;
  --color-accent-light: #67e8f9;
  --color-accent-dark: #0891b2;

  --color-success: #10b981;
  --color-success-light: #6ee7b7;
  --color-success-dark: #059669;
  --color-success-50: #ecfdf5;
  --color-success-100: #d1fae5;

  --color-warning: #f59e0b;
  --color-warning-light: #fcd34d;
  --color-warning-dark: #d97706;
  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;

  --color-danger: #ef4444;
  --color-danger-light: #fca5a5;
  --color-danger-dark: #dc2626;
  --color-danger-50: #fef2f2;
  --color-danger-100: #fee2e2;

  --color-info: #3b82f6;
  --color-info-light: #93c5fd;
  --color-info-dark: #2563eb;
  --color-info-50: #eff6ff;
  --color-info-100: #dbeafe;

  /* --- Background Shades --- */
  --bg-white: #ffffff;
  --bg-50: #f9fafb;
  --bg-100: #f3f4f6;
  --bg-200: #e5e7eb;
  --bg-300: #d1d5db;
  --bg-400: #9ca3af;
  --bg-500: #6b7280;
  --bg-600: #4b5563;
  --bg-700: #374151;
  --bg-800: #1f2937;
  --bg-900: #111827;
  --bg-950: #030712;

  /* --- Text Colors --- */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  --text-link: #7c3aed;

  /* --- Typography --- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* --- Spacing (4px base) --- */
  --space-0: 0;
  --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 */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-glow-primary: 0 0 20px rgba(124, 58, 237, 0.3);
  --shadow-glow-secondary: 0 0 20px rgba(236, 72, 153, 0.3);

  /* --- Border Radius --- */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Z-Index Scale --- */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;

  /* --- Sidebar --- */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --navbar-height: 64px;
}

/* --- Dark Mode Override --- */
[data-theme="dark"],
.dark {
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  --text-muted: #9ca3af;
  --text-inverse: #111827;
  --text-link: #a78bfa;

  --bg-white: #1f2937;
  --bg-50: #111827;
  --bg-100: #1f2937;
  --bg-200: #374151;
  --bg-300: #4b5563;
  --bg-400: #6b7280;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);

  color-scheme: dark;
}


/* ============================================================
   2. RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--bg-200);
  margin: var(--space-4) 0;
}

::selection {
  background-color: var(--color-primary-200);
  color: var(--color-primary-900);
}

.dark ::selection {
  background-color: var(--color-primary-700);
  color: var(--bg-50);
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, .h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h2, .h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h3, .h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

h4, .h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

h5, .h5 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  color: var(--text-primary);
}

h6, .h6 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

small, .text-small {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

strong, .text-bold {
  font-weight: var(--font-bold);
}

.text-code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  background: var(--bg-100);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}

/* Responsive heading scaling */
@media (max-width: 640px) {
  h1, .h1 { font-size: var(--text-3xl); }
  h2, .h2 { font-size: var(--text-2xl); }
  h3, .h3 { font-size: var(--text-xl); }
  h4, .h4 { font-size: var(--text-lg); }
}


/* ============================================================
   4. LAYOUT SYSTEM
   ============================================================ */

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }
.container-xl { max-width: 1280px; }

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-cols-auto-sm { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* --- Flex Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.items-baseline { align-items: baseline; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.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); }

/* --- Section Spacing --- */
.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section-sm {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.section-lg {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

@media (max-width: 768px) {
  .section { padding-top: var(--space-10); padding-bottom: var(--space-10); }
  .section-lg { padding-top: var(--space-16); padding-bottom: var(--space-16); }
}


/* ============================================================
   5. NAVIGATION
   ============================================================ */

/* --- Top Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bg-200);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.dark .navbar {
  background: rgba(17, 24, 39, 0.85);
  border-bottom-color: var(--bg-700);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-logo svg,
.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar-logo span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Nav Links --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-links a,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-link:hover,
.nav-links a.active,
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-50);
}

.dark .nav-links a:hover,
.dark .nav-link:hover,
.dark .nav-links a.active,
.dark .nav-link.active {
  background: rgba(124, 58, 237, 0.15);
}

/* --- Mobile Hamburger --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.nav-hamburger:hover {
  background: var(--bg-100);
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Nav Drawer --- */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  background: var(--bg-white);
  padding: var(--space-6);
  overflow-y: auto;
  animation: slideDown 0.25s ease;
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav-mobile a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--color-primary);
  background: var(--color-primary-50);
}

/* --- User Dropdown --- */
.user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.user-dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.user-dropdown-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-dropdown-name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 220px;
  background: var(--bg-white);
  border: 1px solid var(--bg-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-menu a,
.user-dropdown-menu button {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover {
  background: var(--bg-100);
  color: var(--text-primary);
}

.user-dropdown-menu .divider {
  height: 1px;
  background: var(--bg-200);
  margin: var(--space-2) 0;
}

.user-dropdown-menu a.danger,
.user-dropdown-menu button.danger {
  color: var(--color-danger);
}

.user-dropdown-menu a.danger:hover,
.user-dropdown-menu button.danger:hover {
  background: var(--color-danger-50);
  color: var(--color-danger-dark);
}

/* --- Navbar Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .user-dropdown-name { display: none; }
}


/* ============================================================
   6. BUTTONS
   ============================================================ */

/* --- Base Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--font-semibold);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

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

/* --- Button Sizes --- */
.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
}

.btn-md {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* --- Primary Button (Gradient) --- */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-color: transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary-dark));
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-1px);
}

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

/* --- Secondary Button (Outline) --- */
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary-dark);
}

.dark .btn-secondary:hover {
  background: rgba(124, 58, 237, 0.15);
}

/* --- Ghost Button --- */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-100);
  color: var(--text-primary);
}

/* --- Danger Button --- */
.btn-danger {
  background: var(--color-danger);
  color: white;
  border-color: transparent;
}

.btn-danger:hover {
  background: var(--color-danger-dark);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

/* --- Success Button --- */
.btn-success {
  background: var(--color-success);
  color: white;
  border-color: transparent;
}

.btn-success:hover {
  background: var(--color-success-dark);
  transform: translateY(-1px);
}

/* --- Icon Button --- */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-lg);
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

.btn-icon.btn-lg {
  width: 48px;
  height: 48px;
}

/* --- Button Loading State --- */
.btn.loading {
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
}

.btn-ghost.loading::after,
.btn-secondary.loading::after {
  border-color: rgba(0, 0, 0, 0.15);
  border-top-color: var(--color-primary);
}

/* --- Button Group --- */
.btn-group {
  display: inline-flex;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.btn-group .btn:last-child {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.btn-group .btn + .btn {
  margin-left: -2px;
}


/* ============================================================
   7. FORM ELEMENTS
   ============================================================ */

/* --- Input Fields --- */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1.5px solid var(--bg-300);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--bg-400);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

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

/* --- Textarea --- */
.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* --- Select --- */
.form-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='%236b7280' 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-3) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

/* --- Labels --- */
.form-label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

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

.form-hint {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- Form Group --- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

/* --- Validation States --- */
.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.is-error:focus,
.form-select.is-error:focus,
.form-textarea.is-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-error {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-danger);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.form-input.is-success,
.form-select.is-success,
.form-textarea.is-success {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-success {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* --- Input with Icon --- */
.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .form-input {
  padding-left: var(--space-10);
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

/* --- Toggle Switch --- */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  width: 44px;
  height: 24px;
  background: var(--bg-300);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition-normal);
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: var(--radius-full);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-track {
  background: var(--color-primary);
}

.toggle input:checked + .toggle-track::after {
  transform: translateX(20px);
}

.toggle input:focus-visible + .toggle-track {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.toggle-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  user-select: none;
}

/* --- Checkbox & Radio --- */
.checkbox,
.radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.checkbox input,
.radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}


/* ============================================================
   8. CARDS
   ============================================================ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--bg-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.dark .card-hover:hover {
  border-color: var(--color-primary-700);
}

.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--bg-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3,
.card-header h4 {
  margin: 0;
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--bg-200);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}


/* ============================================================
   9. DASHBOARD LAYOUT
   ============================================================ */

/* --- Sidebar --- */
.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-white);
  border-right: 1px solid var(--bg-200);
  display: flex;
  flex-direction: column;
  transition: width var(--transition-normal);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-fixed);
  overflow: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--bg-200);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-logo span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar.collapsed .sidebar-logo span {
  display: none;
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: var(--bg-100);
  color: var(--text-primary);
}

.sidebar.collapsed .sidebar-toggle {
  margin: 0 auto;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-3);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-section {
  margin-bottom: var(--space-4);
}

.sidebar-section-title {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-3);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.collapsed .sidebar-section-title {
  display: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-link:hover {
  background: var(--bg-100);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--color-primary-50);
  color: var(--color-primary);
}

.dark .sidebar-link.active {
  background: rgba(124, 58, 237, 0.15);
}

.sidebar-link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar.collapsed .sidebar-link span:not(.sidebar-link-icon) {
  display: none;
}

.sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: var(--space-2);
}

.sidebar-footer {
  padding: var(--space-3);
  border-top: 1px solid var(--bg-200);
  flex-shrink: 0;
}

/* --- Main Content --- */
.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed ~ .dashboard-main {
  margin-left: var(--sidebar-collapsed-width);
}

.dashboard-header {
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  border-bottom: 1px solid var(--bg-200);
  background: var(--bg-white);
  flex-shrink: 0;
}

.dashboard-content {
  flex: 1;
  padding: var(--space-6);
  background: var(--bg-50);
}

/* --- Stats Cards Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--bg-200);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon.primary { background: var(--color-primary-50); color: var(--color-primary); }
.stat-card-icon.success { background: var(--color-success-50); color: var(--color-success); }
.stat-card-icon.warning { background: var(--color-warning-50); color: var(--color-warning); }
.stat-card-icon.danger { background: var(--color-danger-50); color: var(--color-danger); }
.stat-card-icon.info { background: var(--color-info-50); color: var(--color-info); }

.dark .stat-card-icon.primary { background: rgba(124, 58, 237, 0.2); }
.dark .stat-card-icon.success { background: rgba(16, 185, 129, 0.2); }
.dark .stat-card-icon.warning { background: rgba(245, 158, 11, 0.2); }
.dark .stat-card-icon.danger { background: rgba(239, 68, 68, 0.2); }
.dark .stat-card-icon.info { background: rgba(59, 130, 246, 0.2); }

.stat-card-info {
  flex: 1;
  min-width: 0;
}

.stat-card-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.stat-card-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: var(--leading-tight);
}

.stat-card-change {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  margin-top: var(--space-1);
}

.stat-card-change.positive { color: var(--color-success); }
.stat-card-change.negative { color: var(--color-danger); }

/* --- Data Tables --- */
.data-table-wrapper {
  background: var(--bg-white);
  border: 1px solid var(--bg-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.data-table-header {
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-200);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.data-table-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.data-table-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.data-table-search {
  position: relative;
}

.data-table-search .form-input {
  padding-left: var(--space-9);
  min-width: 220px;
}

.data-table-search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

table.data-table {
  width: 100%;
  text-align: left;
}

.data-table thead {
  background: var(--bg-50);
}

.dark .data-table thead {
  background: rgba(255, 255, 255, 0.03);
}

.data-table th {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-top: 1px solid var(--bg-100);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--bg-50);
}

.data-table-footer {
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bg-200);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- Dashboard Mobile --- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width) !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: var(--shadow-2xl);
  }

  .sidebar.collapsed {
    transform: translateX(-100%);
    width: var(--sidebar-width) !important;
  }

  .dashboard-main {
    margin-left: 0 !important;
  }

  .dashboard-header {
    padding: 0 var(--space-4);
  }

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

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

  .data-table-search .form-input {
    min-width: 0;
    width: 100%;
  }
}

/* --- Sidebar Overlay (mobile) --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-fixed) - 1);
  animation: fadeIn 0.2s ease;
}

.sidebar-overlay.open {
  display: block;
}


/* ============================================================
   10. LINK-IN-BIO PAGE STYLES
   ============================================================ */
.bio-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-10) var(--space-4);
  background: linear-gradient(135deg, var(--color-primary-100), var(--color-secondary-100));
  position: relative;
}

.bio-page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}

.bio-page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
}

/* --- Profile Section --- */
.bio-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-8);
  max-width: 480px;
  width: 100%;
}

.bio-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  border: 3px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-name {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}

.bio-username {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  opacity: 0.8;
}

.bio-bio {
  font-size: var(--text-base);
  max-width: 400px;
  line-height: var(--leading-relaxed);
  opacity: 0.9;
}

/* --- Link Buttons --- */
.bio-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 480px;
}

.bio-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 50px;
}

.bio-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(236, 72, 153, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.bio-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--color-primary-200);
}

.bio-link:hover::before {
  opacity: 1;
}

.bio-link:active {
  transform: translateY(0);
}

.bio-link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.bio-link-text {
  position: relative;
  z-index: 1;
}

/* --- Product Cards --- */
.bio-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  width: 100%;
  max-width: 480px;
  margin-top: var(--space-6);
}

.bio-product {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.bio-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bio-product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-100);
}

.bio-product-info {
  padding: var(--space-3);
}

.bio-product-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bio-product-price {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

/* --- Social Icons Row --- */
.bio-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.bio-social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-normal);
  font-size: var(--text-lg);
}

.bio-social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* --- Bio Page Theme Text Variants --- */
.bio-page.theme-text-light {
  color: #ffffff;
}

.bio-page.theme-text-light .bio-name,
.bio-page.theme-text-light .bio-username,
.bio-page.theme-text-light .bio-bio {
  color: #ffffff;
}

.bio-page.theme-text-light .bio-link {
  color: var(--text-primary);
}

.bio-page.theme-text-dark {
  color: var(--text-primary);
}

.bio-page.theme-text-dark .bio-name,
.bio-page.theme-text-dark .bio-username,
.bio-page.theme-text-dark .bio-bio {
  color: var(--text-primary);
}

/* --- Bio Page Footer --- */
.bio-page-footer {
  margin-top: auto;
  padding-top: var(--space-10);
  text-align: center;
  font-size: var(--text-xs);
  opacity: 0.6;
}

.bio-page-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: var(--font-semibold);
}

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


/* ============================================================
   11. THEME-SPECIFIC CLASSES
   ============================================================ */

/* --- Default Theme --- */
.theme-default {
  background: linear-gradient(135deg, #f5f3ff, #fce7f3);
  color: var(--text-primary);
}

.theme-default .bio-link {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
}

.theme-default .bio-link:hover {
  background: white;
  border-color: var(--color-primary-200);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

/* --- Dark Theme --- */
.theme-dark {
  background: linear-gradient(135deg, #0f0f23, #1a1a2e, #16213e);
  color: #e2e8f0;
}

.theme-dark .bio-name { color: #f1f5f9; }
.theme-dark .bio-username { color: #94a3b8; }
.theme-dark .bio-bio { color: #cbd5e1; }
.theme-dark .bio-avatar { border-color: rgba(255, 255, 255, 0.2); }

.theme-dark .bio-link {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .bio-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.theme-dark .bio-link::before {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
}

.theme-dark .bio-social-link {
  background: rgba(255, 255, 255, 0.1);
}

.theme-dark .bio-social-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.theme-dark .bio-product {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.theme-dark .bio-product-price { color: var(--color-primary-light); }

/* --- Minimal Theme --- */
.theme-minimal {
  background: #fafafa;
  color: var(--text-primary);
}

.theme-minimal .bio-link {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--bg-200);
  border-radius: var(--radius-lg);
}

.theme-minimal .bio-link:hover {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.theme-minimal .bio-social-link {
  background: var(--bg-100);
  color: var(--text-secondary);
}

.theme-minimal .bio-social-link:hover {
  background: var(--bg-200);
}

/* --- Ocean Theme --- */
.theme-ocean {
  background: linear-gradient(135deg, #0c4a6e, #155e75, #164e63);
  color: #e0f2fe;
}

.theme-ocean .bio-name { color: #f0f9ff; }
.theme-ocean .bio-username { color: #7dd3fc; }
.theme-ocean .bio-bio { color: #bae6fd; }
.theme-ocean .bio-avatar { border-color: rgba(125, 211, 252, 0.4); }

.theme-ocean .bio-link {
  background: rgba(255, 255, 255, 0.1);
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, 0.2);
}

.theme-ocean .bio-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #7dd3fc;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
}

.theme-ocean .bio-link::before {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
}

.theme-ocean .bio-social-link {
  background: rgba(125, 211, 252, 0.15);
}

.theme-ocean .bio-social-link:hover {
  background: rgba(125, 211, 252, 0.3);
}

.theme-ocean .bio-product {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 211, 252, 0.2);
  color: #e0f2fe;
}

.theme-ocean .bio-product-price { color: #7dd3fc; }

/* --- Sunset Theme --- */
.theme-sunset {
  background: linear-gradient(135deg, #7c2d12, #9a3412, #c2410c);
  color: #fff7ed;
}

.theme-sunset .bio-name { color: #fff7ed; }
.theme-sunset .bio-username { color: #fdba74; }
.theme-sunset .bio-bio { color: #fed7aa; }
.theme-sunset .bio-avatar { border-color: rgba(253, 186, 116, 0.4); }

.theme-sunset .bio-link {
  background: rgba(255, 255, 255, 0.12);
  color: #fff7ed;
  border-color: rgba(253, 186, 116, 0.2);
}

.theme-sunset .bio-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fdba74;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.25);
}

.theme-sunset .bio-link::before {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
}

.theme-sunset .bio-social-link {
  background: rgba(253, 186, 116, 0.15);
}

.theme-sunset .bio-social-link:hover {
  background: rgba(253, 186, 116, 0.3);
}

.theme-sunset .bio-product {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(253, 186, 116, 0.2);
  color: #fff7ed;
}

.theme-sunset .bio-product-price { color: #fdba74; }

/* --- Aurora Theme --- */
.theme-aurora {
  background: linear-gradient(135deg, #064e3b, #065f46, #047857, #0e7490);
  color: #d1fae5;
}

.theme-aurora .bio-name { color: #ecfdf5; }
.theme-aurora .bio-username { color: #6ee7b7; }
.theme-aurora .bio-bio { color: #a7f3d0; }
.theme-aurora .bio-avatar { border-color: rgba(110, 231, 183, 0.4); }

.theme-aurora .bio-link {
  background: rgba(255, 255, 255, 0.1);
  color: #d1fae5;
  border-color: rgba(110, 231, 183, 0.2);
}

.theme-aurora .bio-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #6ee7b7;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.theme-aurora .bio-link::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(14, 116, 144, 0.1));
}

.theme-aurora .bio-social-link {
  background: rgba(110, 231, 183, 0.15);
}

.theme-aurora .bio-social-link:hover {
  background: rgba(110, 231, 183, 0.3);
}

.theme-aurora .bio-product {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(110, 231, 183, 0.2);
  color: #d1fae5;
}

.theme-aurora .bio-product-price { color: #6ee7b7; }

/* --- Lavender Theme --- */
.theme-lavender {
  background: linear-gradient(135deg, #4c1d95, #5b21b6, #6d28d9, #7e22ce);
  color: #ede9fe;
}

.theme-lavender .bio-name { color: #f5f3ff; }
.theme-lavender .bio-username { color: #c4b5fd; }
.theme-lavender .bio-bio { color: #ddd6fe; }
.theme-lavender .bio-avatar { border-color: rgba(196, 181, 253, 0.4); }

.theme-lavender .bio-link {
  background: rgba(255, 255, 255, 0.12);
  color: #ede9fe;
  border-color: rgba(196, 181, 253, 0.2);
}

.theme-lavender .bio-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #c4b5fd;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.theme-lavender .bio-link::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.1));
}

.theme-lavender .bio-social-link {
  background: rgba(196, 181, 253, 0.15);
}

.theme-lavender .bio-social-link:hover {
  background: rgba(196, 181, 253, 0.3);
}

.theme-lavender .bio-product {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(196, 181, 253, 0.2);
  color: #ede9fe;
}

.theme-lavender .bio-product-price { color: #c4b5fd; }

/* --- Midnight Theme --- */
.theme-midnight {
  background: linear-gradient(135deg, #020617, #0f172a, #1e1b4b);
  color: #e2e8f0;
}

.theme-midnight .bio-name { color: #f8fafc; }
.theme-midnight .bio-username { color: #94a3b8; }
.theme-midnight .bio-bio { color: #cbd5e1; }
.theme-midnight .bio-avatar { border-color: rgba(148, 163, 184, 0.3); }

.theme-midnight .bio-link {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.12);
}

.theme-midnight .bio-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.theme-midnight .bio-link::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.theme-midnight .bio-social-link {
  background: rgba(255, 255, 255, 0.08);
}

.theme-midnight .bio-social-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.theme-midnight .bio-product {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

.theme-midnight .bio-product-price { color: #818cf8; }

/* --- Forest Theme --- */
.theme-forest {
  background: linear-gradient(135deg, #14532d, #166534, #15803d);
  color: #dcfce7;
}

.theme-forest .bio-name { color: #f0fdf4; }
.theme-forest .bio-username { color: #86efac; }
.theme-forest .bio-bio { color: #bbf7d0; }
.theme-forest .bio-avatar { border-color: rgba(134, 239, 172, 0.4); }

.theme-forest .bio-link {
  background: rgba(255, 255, 255, 0.1);
  color: #dcfce7;
  border-color: rgba(134, 239, 172, 0.2);
}

.theme-forest .bio-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #86efac;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25);
}

.theme-forest .bio-link::before {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
}

.theme-forest .bio-social-link {
  background: rgba(134, 239, 172, 0.15);
}

.theme-forest .bio-social-link:hover {
  background: rgba(134, 239, 172, 0.3);
}

.theme-forest .bio-product {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(134, 239, 172, 0.2);
  color: #dcfce7;
}

.theme-forest .bio-product-price { color: #86efac; }

/* --- Rose Gold Theme --- */
.theme-rosegold {
  background: linear-gradient(135deg, #4a2030, #6b3040, #8b4050, #a05060);
  color: #fecdd3;
}

.theme-rosegold .bio-name { color: #ffe4e6; }
.theme-rosegold .bio-username { color: #fda4af; }
.theme-rosegold .bio-bio { color: #fecdd3; }
.theme-rosegold .bio-avatar { border-color: rgba(253, 164, 175, 0.4); }

.theme-rosegold .bio-link {
  background: rgba(255, 255, 255, 0.1);
  color: #fecdd3;
  border-color: rgba(253, 164, 175, 0.2);
}

.theme-rosegold .bio-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fda4af;
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.25);
}

.theme-rosegold .bio-link::before {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.1), rgba(236, 72, 153, 0.1));
}

.theme-rosegold .bio-social-link {
  background: rgba(253, 164, 175, 0.15);
}

.theme-rosegold .bio-social-link:hover {
  background: rgba(253, 164, 175, 0.3);
}

.theme-rosegold .bio-product {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(253, 164, 175, 0.2);
  color: #fecdd3;
}

.theme-rosegold .bio-product-price { color: #fda4af; }


/* ============================================================
   12. LANDING PAGE
   ============================================================ */

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: var(--space-32) var(--space-4) var(--space-24);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-900), var(--color-primary-700), var(--color-secondary-700));
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(124, 58, 237, 0.2) 0%, transparent 50%);
  animation: aurora 20s ease infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  color: white;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.hero p {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-cta .btn-primary {
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-lg);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.hero-cta .btn-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-lg);
}

.hero-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
  .hero {
    padding: var(--space-16) var(--space-4) var(--space-12);
  }
  .hero h1 { font-size: var(--text-4xl); }
  .hero p { font-size: var(--text-lg); }
}

/* --- Features Grid --- */
.features {
  padding: var(--space-20) var(--space-4);
}

.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.features-header h2 {
  margin-bottom: var(--space-4);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--bg-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.dark .feature-card-icon {
  background: rgba(124, 58, 237, 0.15);
}

.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Testimonial Cards --- */
.testimonials {
  padding: var(--space-20) var(--space-4);
  background: var(--bg-100);
}

.testimonials-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--bg-200);
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-3);
  color: var(--color-warning);
  font-size: var(--text-lg);
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.testimonial-author-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- Pricing Section --- */
.pricing {
  padding: var(--space-20) var(--space-4);
}

.pricing-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border: 2px solid var(--bg-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow-primary);
}

.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-4);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card-name {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.pricing-card-price {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-1);
}

.pricing-card-price .currency {
  font-size: var(--text-xl);
  vertical-align: super;
}

.pricing-card-price .period {
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  color: var(--text-muted);
}

.pricing-card-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.pricing-card-features {
  text-align: left;
  margin-bottom: var(--space-6);
}

.pricing-card-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-card-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: var(--font-bold);
  flex-shrink: 0;
}

.pricing-card-features li.disabled {
  opacity: 0.4;
  text-decoration: line-through;
}

/* --- Footer --- */
.footer {
  background: var(--bg-900);
  color: var(--bg-300);
  padding: var(--space-16) var(--space-4) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand p {
  color: var(--bg-400);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  max-width: 300px;
}

.footer-col h4 {
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--bg-400);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-12) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--bg-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--bg-500);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-4);
}

.footer-bottom-links a {
  color: var(--bg-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}


/* ============================================================
   13. MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  z-index: var(--z-modal);
}

.modal-lg { max-width: 640px; }
.modal-xl { max-width: 800px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--bg-200);
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-100);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--bg-200);
}


/* ============================================================
   14. TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
  max-width: 400px;
  width: 100%;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--bg-200);
  pointer-events: auto;
  animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.toast.toast-exit {
  animation: toastSlideOut 0.25s ease forwards;
}

.toast-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast-message {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.toast-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.toast-close:hover {
  background: var(--bg-100);
  color: var(--text-primary);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  animation: toastProgress 5s linear forwards;
}

/* Toast Types */
.toast-success {
  border-left: 4px solid var(--color-success);
}

.toast-success .toast-icon { color: var(--color-success); }
.toast-success .toast-progress { background: var(--color-success); }

.toast-error {
  border-left: 4px solid var(--color-danger);
}

.toast-error .toast-icon { color: var(--color-danger); }
.toast-error .toast-progress { background: var(--color-danger); }

.toast-warning {
  border-left: 4px solid var(--color-warning);
}

.toast-warning .toast-icon { color: var(--color-warning); }
.toast-warning .toast-progress { background: var(--color-warning); }

.toast-info {
  border-left: 4px solid var(--color-info);
}

.toast-info .toast-icon { color: var(--color-info); }
.toast-info .toast-progress { background: var(--color-info); }

@media (max-width: 480px) {
  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
    max-width: none;
  }
}


/* ============================================================
   15. UTILITY CLASSES
   ============================================================ */

/* --- Text Alignment --- */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* --- Text Colors --- */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-info { color: var(--color-info) !important; }
.text-white { color: #ffffff !important; }
.text-accent { color: var(--color-accent) !important; }
.text-brand { color: var(--color-primary) !important; }

/* --- Text Sizes --- */
.text-xs { font-size: var(--text-xs) !important; }
.text-sm { font-size: var(--text-sm) !important; }
.text-base { font-size: var(--text-base) !important; }
.text-lg { font-size: var(--text-lg) !important; }
.text-xl { font-size: var(--text-xl) !important; }
.text-2xl { font-size: var(--text-2xl) !important; }
.text-3xl { font-size: var(--text-3xl) !important; }
.text-4xl { font-size: var(--text-4xl) !important; }

/* --- Font Weight --- */
.font-light { font-weight: var(--font-light) !important; }
.font-normal { font-weight: var(--font-normal) !important; }
.font-medium { font-weight: var(--font-medium) !important; }
.font-semibold { font-weight: var(--font-semibold) !important; }
.font-bold { font-weight: var(--font-bold) !important; }
.font-extrabold { font-weight: var(--font-extrabold) !important; }

/* --- Margin Shortcuts --- */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--space-1) !important; }
.m-2 { margin: var(--space-2) !important; }
.m-3 { margin: var(--space-3) !important; }
.m-4 { margin: var(--space-4) !important; }
.m-6 { margin: var(--space-6) !important; }
.m-8 { margin: var(--space-8) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mt-auto { margin-top: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.ml-0 { margin-left: 0 !important; }
.ml-auto { margin-left: auto !important; }

.mr-0 { margin-right: 0 !important; }
.mr-auto { margin-right: auto !important; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-4 { margin-top: var(--space-4) !important; margin-bottom: var(--space-4) !important; }
.my-6 { margin-top: var(--space-6) !important; margin-bottom: var(--space-6) !important; }
.my-8 { margin-top: var(--space-8) !important; margin-bottom: var(--space-8) !important; }

/* --- Padding Shortcuts --- */
.p-0 { padding: 0 !important; }
.p-1 { padding: var(--space-1) !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-6 { padding: var(--space-6) !important; }
.p-8 { padding: var(--space-8) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-4 { padding-top: var(--space-4) !important; }
.pt-6 { padding-top: var(--space-6) !important; }
.pt-8 { padding-top: var(--space-8) !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-4 { padding-bottom: var(--space-4) !important; }
.pb-6 { padding-bottom: var(--space-6) !important; }
.pb-8 { padding-bottom: var(--space-8) !important; }

.px-4 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.px-6 { padding-left: var(--space-6) !important; padding-right: var(--space-6) !important; }
.py-2 { padding-top: var(--space-2) !important; padding-bottom: var(--space-2) !important; }
.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
.py-6 { padding-top: var(--space-6) !important; padding-bottom: var(--space-6) !important; }

/* --- Display --- */
.hidden { display: none !important; }
.block { display: block !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }
.inline { display: inline !important; }

/* --- Width --- */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.max-w-none { max-width: none !important; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-x-auto { overflow-x: auto !important; }
.truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* --- Position --- */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.sticky { position: sticky !important; }
.fixed { position: fixed !important; }

/* --- Border Radius --- */
.rounded-none { border-radius: 0 !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* --- Shadow --- */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* --- Opacity --- */
.opacity-0 { opacity: 0 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* --- Cursor --- */
.cursor-pointer { cursor: pointer !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* --- Pointer Events --- */
.pointer-events-none { pointer-events: none !important; }

/* --- User Select --- */
.select-none { user-select: none !important; }

/* --- Z-index --- */
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-50 { z-index: 50 !important; }

/* --- Background --- */
.bg-white { background: var(--bg-white) !important; }
.bg-50 { background: var(--bg-50) !important; }
.bg-100 { background: var(--bg-100) !important; }
.bg-brand { background: var(--color-primary) !important; }
.bg-gradient { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important; }

/* --- Responsive Breakpoints --- */
/* sm: 640px */
@media (max-width: 639px) {
  .sm\:hidden { display: none !important; }
  .sm\:block { display: block !important; }
  .sm\:flex { display: flex !important; }
  .sm\:grid { display: grid !important; }
  .sm\:text-center { text-align: center !important; }
  .sm\:w-full { width: 100% !important; }
  .sm\:grid-cols-1 { grid-template-columns: 1fr !important; }
}

@media (min-width: 640px) {
  .sm\:show { display: block !important; }
  .sm\:flex-row { flex-direction: row !important; }
}

/* md: 768px */
@media (max-width: 767px) {
  .md\:hidden { display: none !important; }
  .md\:grid-cols-1 { grid-template-columns: 1fr !important; }
}

@media (min-width: 768px) {
  .md\:show { display: block !important; }
  .md\:flex { display: flex !important; }
  .md\:flex-row { flex-direction: row !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
}

/* lg: 1024px */
@media (max-width: 1023px) {
  .lg\:hidden { display: none !important; }
}

@media (min-width: 1024px) {
  .lg\:show { display: block !important; }
  .lg\:flex { display: flex !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
}

/* xl: 1280px */
@media (min-width: 1280px) {
  .xl\:show { display: block !important; }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
}

/* Hide on specific breakpoints (show only above) */
.mobile-only { }
@media (min-width: 768px) { .mobile-only { display: none !important; } }
.desktop-only { display: none !important; }
@media (min-width: 768px) { .desktop-only { display: block !important; } }


/* ============================================================
   16. ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

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

@keyframes aurora {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

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

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

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

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

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

/* --- Animation Utilities --- */
.animate-fade-in { animation: fadeIn 0.4s ease both; }
.animate-fade-out { animation: fadeOut 0.3s ease both; }
.animate-slide-up { animation: slideUp 0.5s ease both; }
.animate-slide-down { animation: slideDown 0.4s ease both; }
.animate-slide-in-right { animation: slideInRight 0.5s ease both; }
.animate-slide-in-left { animation: slideInLeft 0.5s ease both; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-bounce { animation: bounce 1s ease infinite; }
.animate-scale-in { animation: scaleIn 0.3s ease both; }

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.2s !important; }
.delay-3 { animation-delay: 0.3s !important; }
.delay-4 { animation-delay: 0.4s !important; }
.delay-5 { animation-delay: 0.5s !important; }

/* --- Smooth Transitions on Interactive Elements --- */
a, button, input, select, textarea,
[role="button"],
.btn, .card, .nav-link, .sidebar-link,
.bio-link, .bio-social-link, .bio-product {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: 250ms;
  transition-timing-function: ease;
}

/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-100) 25%, var(--bg-200) 50%, var(--bg-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-heading {
  height: 24px;
  width: 50%;
  margin-bottom: var(--space-4);
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
}


/* ============================================================
   17. SCROLLBARS
   ============================================================ */

/* Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-300);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-400);
  background-clip: content-box;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-300) transparent;
}

/* Sidebar & Modal scrollbars */
.sidebar-nav::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
  background: var(--bg-200);
  border-radius: var(--radius-full);
}


/* ============================================================
   18. RESPONSIVE DESIGN (ADDITIONAL MOBILE-FIRST RULES)
   ============================================================ */

/* --- General Mobile Adjustments --- */
@media (max-width: 640px) {
  body {
    font-size: var(--text-sm);
  }

  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  h1, .h1 { font-size: var(--text-2xl); }
  h2, .h2 { font-size: var(--text-xl); }
  h3, .h3 { font-size: var(--text-lg); }

  .section { padding-top: var(--space-8); padding-bottom: var(--space-8); }

  /* Stack grids on mobile */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  /* Full-width bio links on small screens */
  .bio-links {
    max-width: 100%;
  }

  .bio-products {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Full-width buttons */
  .btn-md,
  .btn-lg {
    width: 100%;
  }

  /* Stack form rows */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Adjust data table to horizontal scroll */
  .data-table-wrapper {
    overflow-x: auto;
  }

  table.data-table {
    min-width: 600px;
  }

  /* Stack pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  /* Modal full width */
  .modal {
    max-width: 100%;
    margin: var(--space-2);
    max-height: 95vh;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Print Styles --- */
@media print {
  .navbar,
  .sidebar,
  .sidebar-overlay,
  .toast-container,
  .modal-backdrop,
  .btn,
  .nav-hamburger {
    display: none !important;
  }

  .dashboard-main {
    margin-left: 0 !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}


/* ============================================================
   END OF BIO STUDIO CSS FRAMEWORK
   ============================================================ */


/* ============================================================
   LANDING PAGE & MARKETING STYLES
   ============================================================ */

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-16);
  padding-bottom: var(--space-20);
  background: linear-gradient(135deg, #0f0c29 0%, #1a0533 25%, #2d1b69 50%, #1a0533 75%, #0f0c29 100%);
  color: white;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.3), transparent),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(236, 72, 153, 0.2), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(6, 182, 212, 0.15), transparent);
  animation: aurora 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: var(--space-6);
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #a78bfa, #f9a8d4, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  max-width: 540px;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: white;
}

.hero-stat span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* --- Hero Mockup --- */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-phone {
  width: 280px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  padding: 12px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 80px rgba(124, 58, 237, 0.25), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mockup-notch {
  width: 100px;
  height: 24px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0 0 16px 16px;
  margin: 0 auto var(--space-4);
}

.mockup-screen {
  background: linear-gradient(135deg, #1a0533, #2d1b69);
  border-radius: 28px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  min-height: 380px;
}

.mockup-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.mockup-name {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: white;
}

.mockup-bio {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.mockup-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.mockup-link {
  height: 36px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: shimmer 3s ease-in-out infinite;
}

.mockup-link:nth-child(2) { animation-delay: 0.3s; }
.mockup-link:nth-child(3) { animation-delay: 0.6s; }
.mockup-link:nth-child(4) { animation-delay: 0.9s; }

/* Hero Decorative Shapes */
.hero-shape {
  position: absolute;
  border-radius: var(--radius-full);
  pointer-events: none;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent);
  top: -100px;
  right: -100px;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1), transparent);
  bottom: -50px;
  left: -50px;
}

/* Hero Responsive */
@media (max-width: 768px) {
  .hero {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
    min-height: auto;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
  }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; flex-wrap: wrap; }
  .hero-stats { justify-content: center; }
  .hero-mockup { order: -1; }
  .mockup-phone { width: 220px; }
  .mockup-screen { min-height: 280px; padding: var(--space-4); }
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

.section-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary-50);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* --- Feature Cards --- */
.feature-card {
  padding: var(--space-8);
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto var(--space-5);
}

.feature-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.feature-card p { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 0; }

/* --- How It Works --- */
.how-it-works { background: var(--bg-50); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16.67%;
  right: 16.67%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0.3;
}

.step-card { text-align: center; position: relative; }

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin: 0 auto var(--space-4);
}

.step-content h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.step-content p { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 0; }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .steps-grid::before { display: none; }
}

/* --- Testimonials --- */
.testimonial-card { padding: var(--space-8); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: var(--space-4); }
.testimonial-quote {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: var(--font-bold); font-size: var(--text-lg); flex-shrink: 0;
}
.testimonial-name { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--text-primary); }
.testimonial-role { font-size: var(--text-xs); color: var(--text-muted); }

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr !important; }
}

/* --- Pricing --- */
.pricing { background: var(--bg-50); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card { padding: 0; position: relative; }

.pricing-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-xl);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-5);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-header { padding: var(--space-8) var(--space-8) var(--space-4); text-align: center; }
.pricing-header h3 { font-size: var(--text-xl); margin-bottom: var(--space-4); }

.pricing-price {
  display: flex; align-items: baseline; justify-content: center;
  gap: 2px; margin-bottom: var(--space-2);
}
.pricing-currency { font-size: var(--text-2xl); font-weight: var(--font-bold); color: var(--text-primary); }
.pricing-amount { font-size: var(--text-6xl); font-weight: var(--font-extrabold); line-height: 1; color: var(--text-primary); }
.pricing-period { font-size: var(--text-base); color: var(--text-muted); }
.pricing-desc { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 0; }

.pricing-features { padding: 0 var(--space-8); margin-bottom: var(--space-6); }
.pricing-features li {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) 0; font-size: var(--text-sm); color: var(--text-secondary);
}

.pricing-btn {
  display: block; margin: 0 var(--space-8) var(--space-8);
  width: calc(100% - var(--space-16)); text-align: center;
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-featured { transform: none; }
}

/* --- CTA Section --- */
.cta-section { background: var(--bg-white); }

.cta-box {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  padding: var(--space-16) var(--space-8);
  text-align: center;
}

.cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f0c29, #1a0533, #2d1b69);
  z-index: 0;
}

.cta-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.3), transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(236, 72, 153, 0.2), transparent 50%);
}

.cta-content { position: relative; z-index: 1; color: white; }
.cta-content h2 { color: white; font-size: var(--text-4xl); margin-bottom: var(--space-4); }
.cta-content p {
  color: rgba(255, 255, 255, 0.7); font-size: var(--text-lg);
  max-width: 500px; margin: 0 auto var(--space-8);
}
.cta-note {
  font-size: var(--text-sm) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  margin-top: var(--space-4) !important; margin-bottom: 0 !important;
}

/* --- Site Footer --- */
.site-footer {
  background: var(--bg-900);
  color: var(--bg-400);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand .navbar-logo { color: white; }

.footer-tagline {
  font-size: var(--text-sm); color: var(--bg-400);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6); max-width: 280px;
}

.footer-social { display: flex; gap: var(--space-3); }

.social-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-400); transition: all var(--transition-normal);
}

.social-icon:hover {
  background: var(--color-primary); border-color: var(--color-primary);
  color: white; transform: translateY(-2px);
}

.footer-col h4 { color: white; font-size: var(--text-sm); font-weight: var(--font-semibold); margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--text-sm); color: var(--bg-400); transition: color var(--transition-fast); }
.footer-col a:hover { color: white; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-8); border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-sm); color: var(--bg-500);
}

.footer-bottom-links { display: flex; gap: var(--space-6); }
.footer-bottom-links a { font-size: var(--text-sm); color: var(--bg-500); }
.footer-bottom-links a:hover { color: white; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
}

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

/* --- Flash Messages --- */
.flash-message {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm); font-weight: var(--font-medium);
  position: relative; z-index: var(--z-toast);
}
.flash-success { background: var(--color-success-50); color: var(--color-success-dark); border-bottom: 2px solid var(--color-success); }
.flash-error { background: var(--color-danger-50); color: var(--color-danger-dark); border-bottom: 2px solid var(--color-danger); }
.flash-warning { background: var(--color-warning-50); color: var(--color-warning-dark); border-bottom: 2px solid var(--color-warning); }

/* --- Legal Pages --- */
.legal-page { background: var(--bg-white); }

.legal-header { text-align: center; margin-bottom: var(--space-10); }
.legal-header h1 { font-size: var(--text-4xl); margin-bottom: var(--space-2); }
.legal-updated { font-size: var(--text-sm); color: var(--text-muted); }

.legal-content h2 {
  font-size: var(--text-2xl); margin-top: var(--space-10); margin-bottom: var(--space-4);
  padding-bottom: var(--space-2); border-bottom: 2px solid var(--color-primary-100);
}
.legal-content h3 { font-size: var(--text-xl); margin-top: var(--space-8); margin-bottom: var(--space-3); }
.legal-content p { font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--text-secondary); }

.legal-list {
  list-style: disc; padding-left: var(--space-6); margin-bottom: var(--space-4);
}
.legal-list li {
  padding: var(--space-1) 0; font-size: var(--text-base);
  color: var(--text-secondary); line-height: var(--leading-relaxed);
}

/* --- About Page --- */
.about-hero {
  background: linear-gradient(135deg, #0f0c29, #1a0533, #2d1b69);
  color: white; padding-bottom: var(--space-10);
}
.about-hero .section-header h1 { color: white; }
.about-hero .section-desc { color: rgba(255, 255, 255, 0.7); }

.about-grid { gap: var(--space-12); align-items: center; }
.about-text h2 { margin-bottom: var(--space-4); }
.about-text p { font-size: var(--text-base); }

.about-visual-card { padding: var(--space-10); text-align: center; }
.about-icon-large { margin-bottom: var(--space-6); display: flex; justify-content: center; }
.about-icon-large svg { display: inline-block; }

/* Stats Counters */
.stats-counter-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8); text-align: center;
}
.stat-counter-value { font-size: var(--text-5xl); font-weight: var(--font-extrabold); line-height: 1; margin-bottom: var(--space-2); }
.stat-counter-label { font-size: var(--text-sm); color: var(--text-muted); font-weight: var(--font-medium); }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr !important; }
  .stats-counter-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .stat-counter-value { font-size: var(--text-4xl); }
}

/* Values */
.value-card { padding: var(--space-8); text-align: center; }
.value-icon {
  width: 56px; height: 56px; border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-5);
}
.value-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.value-card p { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 0; }

/* Team */
.team-card { padding: var(--space-8); text-align: center; }
.team-avatar {
  width: 80px; height: 80px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-4); color: white;
  font-size: var(--text-2xl); font-weight: var(--font-bold);
}
.team-role { font-size: var(--text-sm); color: var(--color-primary); font-weight: var(--font-medium); margin-bottom: var(--space-3) !important; }
.team-bio { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 0 !important; }

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr !important; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Contact Page --- */
.contact-grid { gap: var(--space-8); align-items: flex-start; }
.contact-form-wrapper h3 { margin-bottom: var(--space-2); }

.contact-sidebar { display: flex; flex-direction: column; gap: var(--space-6); }

.contact-info-list { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-info-list li { display: flex; align-items: flex-start; gap: var(--space-4); }
.contact-info-icon {
  width: 40px; height: 40px; border-radius: var(--radius-lg);
  background: var(--color-primary-50); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-list strong { display: block; font-size: var(--text-sm); color: var(--text-primary); margin-bottom: 2px; }
.contact-info-list a, .contact-info-list span { font-size: var(--text-sm); color: var(--text-secondary); }

.contact-faq-list { display: flex; flex-direction: column; gap: var(--space-1); }
.contact-faq-list a {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); font-size: var(--text-sm);
  color: var(--text-secondary); border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.contact-faq-list a:hover { color: var(--color-primary); background: var(--color-primary-50); }

.contact-map-card { overflow: hidden; }
.contact-map-placeholder {
  padding: var(--space-10); text-align: center; background: var(--bg-50);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
}
.contact-map-placeholder svg { display: inline-block; }
.contact-map-placeholder p { font-size: var(--text-base); font-weight: var(--font-semibold); color: var(--text-primary); margin-bottom: 0; }
.contact-map-placeholder span { font-size: var(--text-sm); color: var(--text-muted); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr !important; }
}


/* ============================================================
   AUTH PAGES
   ============================================================ */

/* --- Auth Page Layout --- */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: var(--space-6) var(--space-4);
}

/* --- Animated Gradient Background --- */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 30%, #24243e 60%, #1a1a2e 100%);
  overflow: hidden;
}

.auth-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: authFloat 20s ease-in-out infinite;
}

.auth-bg-shape-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.auth-bg-shape-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.auth-bg-shape-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes authFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.05); }
}

/* --- Auth Container --- */
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

/* --- Auth Card --- */
.auth-card {
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: authCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-card-body {
  padding: var(--space-8) var(--space-8);
}

.auth-verify-body {
  text-align: center;
}

@media (max-width: 480px) {
  .auth-card-body {
    padding: var(--space-6) var(--space-5);
  }
}

/* --- Auth Logo --- */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.auth-logo svg {
  flex-shrink: 0;
}

.auth-logo-text {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Auth Title & Subtitle --- */
.auth-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.auth-redirect-note {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-style: italic;
  margin-top: var(--space-2);
  margin-bottom: 0;
  animation: authPulse 2s ease-in-out infinite;
}

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

/* --- Auth Alerts --- */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-5);
  line-height: var(--leading-relaxed);
  animation: authAlertIn 0.3s ease;
}

@keyframes authAlertIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-alert svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-alert-success {
  background: var(--color-success-50);
  color: var(--color-success-dark);
  border: 1px solid var(--color-success-100);
}

.auth-alert-error {
  background: var(--color-danger-50);
  color: var(--color-danger-dark);
  border: 1px solid var(--color-danger-100);
}

.auth-alert-warning {
  background: var(--color-warning-50);
  color: var(--color-warning-dark);
  border: 1px solid var(--color-warning-100);
}

.auth-alert-info {
  background: var(--color-info-50);
  color: var(--color-info-dark);
  border: 1px solid var(--color-info-100);
}

/* --- Auth Form --- */
.auth-form {
  margin-bottom: var(--space-5);
}

.auth-form .form-input {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

/* --- Auth Password Input (extra right padding for toggle) --- */
.auth-password-input {
  padding-right: var(--space-10) !important;
}

/* --- Auth Password Toggle --- */
.auth-password-toggle {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-password-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-100);
}

/* --- Auth Label Row (with forgot link) --- */
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}

.auth-label-row .form-label {
  margin-bottom: 0;
}

.auth-forgot-link {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-forgot-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* --- Auth Submit Button --- */
.auth-submit-btn {
  width: 100%;
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-lg);
}

/* --- Auth Switch Link --- */
.auth-switch {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

.auth-switch a {
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-switch a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* --- Auth Validation Icon (checkmark/X) --- */
.auth-validation-icon {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon-wrapper .auth-validation-icon ~ .form-input {
  padding-right: var(--space-10);
}

/* --- Auth Spinner (loading) --- */
.auth-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg-300);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* --- Auth Password Strength Meter --- */
.auth-strength-meter {
  min-height: 0;
  transition: min-height var(--transition-fast);
}

/* --- Auth Password Requirements Checklist --- */
.auth-password-reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.auth-req-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.auth-req-item.met {
  color: var(--color-success);
}

.auth-req-item svg {
  flex-shrink: 0;
}

.auth-req-item.met svg {
  color: var(--color-success);
}

/* --- Auth Terms Checkbox --- */
.auth-terms-checkbox {
  align-items: flex-start;
}

.auth-terms-checkbox span {
  line-height: var(--leading-normal);
}

.auth-terms-checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.3);
  text-underline-offset: 2px;
}

.auth-terms-checkbox a:hover {
  text-decoration-color: var(--color-primary);
}

/* --- Auth Status Icons --- */
.auth-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.auth-status-success svg {
  animation: authBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-status-error svg {
  animation: authShake 0.4s ease;
}

.auth-status-warning svg {
  animation: authBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authBounceIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

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

/* --- Auth Responsive --- */
@media (max-width: 480px) {
  .auth-page {
    padding: var(--space-4) var(--space-3);
  }

  .auth-title {
    font-size: var(--text-xl);
  }

  .auth-card {
    border-radius: var(--radius-xl);
  }

  .auth-password-reqs {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   12. CREATOR DASHBOARD COMPONENTS
   ============================================================ */

/* --- Sidebar User Footer --- */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-avatar span {
  display: block;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-handle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed .sidebar-logout {
  display: none;
}

.sidebar.collapsed .sidebar-user {
  justify-content: center;
}

/* --- Dashboard Grid Layout --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.empty-state-icon {
  margin-bottom: var(--space-6);
}

.empty-state h3 {
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-sm {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-muted);
}

.empty-state-sm svg {
  margin: 0 auto var(--space-4);
}

.empty-state-sm p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- Activity List --- */
.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--bg-100);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dark .activity-icon {
  background: rgba(124, 58, 237, 0.2);
}

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

.activity-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- Quick Actions --- */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quick-action-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-200);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.quick-action-card:hover {
  border-color: var(--color-primary-200);
  background: var(--color-primary-50);
  transform: translateX(4px);
  color: var(--color-primary);
}

.dark .quick-action-card:hover {
  border-color: var(--color-primary-700);
  background: rgba(124, 58, 237, 0.1);
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-action-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: 2px;
}

.quick-action-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --- Links List --- */
.links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.link-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--bg-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  cursor: default;
}

.link-item:hover {
  border-color: var(--bg-300);
  box-shadow: var(--shadow-sm);
}

.link-item.dragging {
  opacity: 0.5;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.link-drag-handle {
  cursor: grab;
  color: var(--bg-300);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: var(--space-1);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast);
}

.link-drag-handle:hover {
  color: var(--bg-500);
}

.link-drag-handle:active {
  cursor: grabbing;
}

.link-icon-display {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

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

.link-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.link-url {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-clicks {
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}

.link-clicks-count {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.link-clicks-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.link-toggle {
  flex-shrink: 0;
}

.link-actions {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .link-item {
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .link-clicks {
    display: none;
  }
  .link-actions {
    margin-left: auto;
  }
}

/* --- Icon Selector --- */
.icon-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--space-2);
}

.icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-1);
  border: 2px solid var(--bg-200);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.icon-option:hover {
  border-color: var(--color-primary-200);
  background: var(--color-primary-50);
  color: var(--color-primary);
}

.icon-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-50);
  color: var(--color-primary);
}

.icon-option-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}

.icon-option.selected .icon-option-label {
  color: var(--color-primary);
  font-weight: var(--font-medium);
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-dialog-open {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--bg-200);
}

.modal-header h3 {
  margin: 0;
  font-size: var(--text-lg);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--bg-200);
}

/* --- Appearance Layout --- */
.appearance-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 1024px) {
  .appearance-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Theme Grid --- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}

.theme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--bg-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-white);
  padding: 0;
}

.theme-card:hover {
  border-color: var(--color-primary-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.theme-card.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-100);
}

.theme-card-preview {
  height: 64px;
  width: 100%;
}

.theme-card-name {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  text-align: center;
}

.theme-card-check {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Appearance Preview --- */
.appearance-preview {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-6));
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.preview-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--bg-200);
  box-shadow: var(--shadow-lg);
}

.bio-preview {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
}

.bio-preview-content {
  text-align: center;
  max-width: 280px;
}

.bio-preview-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  margin: 0 auto var(--space-4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: white;
  font-weight: var(--font-bold);
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.bio-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-preview-avatar span {
  display: block;
}

.bio-preview-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: white;
  margin-bottom: var(--space-1);
}

.bio-preview-handle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-3);
}

.bio-preview-bio {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.bio-preview-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bio-preview-link-btn {
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-fast);
}

/* --- Avatar Upload --- */
.avatar-upload {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.avatar-upload-preview {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-upload-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* --- Analytics Grid --- */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Visitor List --- */
.visitor-list {
  display: flex;
  flex-direction: column;
}

.visitor-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--bg-100);
  font-size: var(--text-sm);
}

.visitor-item:last-child {
  border-bottom: none;
}

.visitor-flag {
  font-size: var(--text-lg);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.country-flag {
  font-weight: var(--font-semibold);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

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

.visitor-device {
  display: block;
  color: var(--text-primary);
  font-weight: var(--font-medium);
}

.visitor-country {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.visitor-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-shrink: 0;
}

/* --- Settings Layout --- */
.settings-layout {
  max-width: 720px;
}

.danger-zone-card {
  border-color: var(--color-danger-100);
}

/* --- Dashboard Header Mobile Hamburger Override --- */
.dashboard-header .nav-hamburger {
  display: none;
}

@media (max-width: 768px) {
  .dashboard-header .nav-hamburger {
    display: flex;
  }
}
