/* ============================================================
   EtefaWorldAdvertisement — Complete Design System
   Version: 3.0 | Consolidated, Optimized & Maintainable
   ============================================================ */

/* ============================================================
   SECTION 1: CSS RESET & BASE NORMALIZATION
   ============================================================ */
*,
*::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%;
  line-height: 1.15;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
  padding-bottom: calc(var(--bottom-bar-height) + 20px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote::before, blockquote::after,
q::before, q::after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   SECTION 2: DESIGN TOKENS (CSS CUSTOM PROPERTIES)
   ============================================================ */
:root {
  /* --- Color Palette: Light Theme --- */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-card: #f8fafc;
  --bg-card-hover: #f1f4f9;
  --bg-elevated: #ffffff;
  --bg-overlay: rgba(15, 23, 42, 0.55);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-dark: rgba(15, 23, 42, 0.85);

  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #4b5563;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  --text-link: #4f46e5;

  /* Border Colors */
  --border-color: #e2e8f0;
  --border-color-light: #f1f5f9;
  --border-color-dark: #cbd5e1;
  --border-focus: #4f46e5;

  /* Brand Colors */
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #4338ca;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;

  --secondary: #8b5cf6;
  --secondary-light: #a78bfa;
  --secondary-dark: #7c3aed;

  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-dark: #0891b2;

  /* Semantic Colors */
  --success: #22c55e;
  --success-light: #4ade80;
  --success-dark: #16a34a;
  --success-bg: rgba(34, 197, 94, 0.12);

  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --warning-dark: #d97706;
  --warning-bg: rgba(245, 158, 11, 0.12);

  --danger: #ef4444;
  --danger-light: #f87171;
  --danger-dark: #dc2626;
  --danger-bg: rgba(239, 68, 68, 0.12);

  --info: #3b82f6;
  --info-light: #60a5fa;
  --info-dark: #2563eb;
  --info-bg: rgba(59, 130, 246, 0.12);

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-main-reverse: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --gradient-success: linear-gradient(135deg, #22c55e, #16a34a);
  --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
  --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
  --gradient-info: linear-gradient(135deg, #3b82f6, #2563eb);
  --gradient-purple-pink: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-sunset: linear-gradient(135deg, #f97316, #ec4899);
  --gradient-ocean: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-forest: linear-gradient(135deg, #22c55e, #14b8a6);
  --gradient-royal: linear-gradient(135deg, #4f46e5, #8b5cf6, #ec4899);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.12);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 4px 16px rgba(79, 70, 229, 0.25);
  --shadow-primary-lg: 0 8px 32px rgba(79, 70, 229, 0.35);
  --shadow-success: 0 4px 16px rgba(34, 197, 94, 0.25);
  --shadow-danger: 0 4px 16px rgba(239, 68, 68, 0.25);
  --shadow-warning: 0 4px 16px rgba(245, 158, 11, 0.25);

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;

  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 0.9rem;
  --text-md: 0.95rem;
  --text-lg: 1rem;
  --text-xl: 1.2rem;
  --text-2xl: 1.4rem;
  --text-3xl: 1.8rem;
  --text-4xl: 2rem;
  --text-5xl: 2.5rem;
  --text-6xl: 3rem;

  --leading-tight: 1.2;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Layout */
  --bottom-bar-height: 68px;
  --header-height: 80px;
  --container-max: 1440px;
  --container-narrow: 1200px;
  --container-wide: 1600px;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-header: 1000;
  --z-bottom-bar: 999;
  --z-modal: 2000;
  --z-modal-nested: 2500;
  --z-auth-modal: 3000;
  --z-notification: 4000;
  --z-toast: 5000;
  --z-toast-top: 6000;
  --z-tooltip: 7000;
  --z-max: 9999;
}

/* --- Dark Theme Overrides --- */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-card-hover: #2d3a4f;
  --bg-elevated: #1e293b;
  --bg-overlay: rgba(0, 0, 0, 0.75);
  --bg-glass: rgba(15, 23, 42, 0.85);
  --bg-glass-dark: rgba(0, 0, 0, 0.85);

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-inverse: #0f172a;

  --border-color: #334155;
  --border-color-light: #1e293b;
  --border-color-dark: #475569;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.6);
}

/* --- High Contrast Mode --- */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-muted: #333333;
    --shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
  }
  [data-theme="dark"] {
    --border-color: #ffffff;
    --text-muted: #cccccc;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   SECTION 3: SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

::-webkit-scrollbar-corner {
  background: var(--bg-secondary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-secondary);
}

/* ============================================================
   SECTION 4: TYPOGRAPHY SYSTEM
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

small {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

strong {
  font-weight: 700;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-tertiary);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-xs);
}

pre {
  font-family: var(--font-mono);
  background: var(--bg-dark);
  color: #f8fafc;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

blockquote {
  border-left: 4px solid var(--primary);
  padding-left: var(--space-4);
  margin: var(--space-4) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ============================================================
   SECTION 5: UTILITY CLASSES
   ============================================================ */

/* Display */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline { display: inline !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-around { display: flex; align-items: center; justify-content: space-around; }
.flex-start { display: flex; align-items: center; justify-content: flex-start; }
.flex-end { display: flex; align-items: center; justify-content: flex-end; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

/* Gap */
.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-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* Spacing */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.pt-2 { padding-top: var(--space-2); }
.pt-4 { padding-top: var(--space-4); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-4 { padding-bottom: var(--space-4); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-half { width: 50%; }
.w-fit { width: fit-content; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }

/* Max Width */
.max-w-xs { max-width: 320px; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 768px; }
.max-w-xl { max-width: 1024px; }
.max-w-2xl { max-width: 1280px; }
.max-w-full { max-width: 100%; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Text */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-clip { overflow: hidden; text-overflow: ellipsis; display: -webkit-box;  -webkit-box-orient: vertical; }
.text-clip-3 { overflow: hidden; text-overflow: ellipsis; display: -webkit-box;  -webkit-box-orient: vertical; }
.text-break { word-break: break-word; overflow-wrap: break-word; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre { white-space: pre; }

/* Font Size */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

/* Font Weight */
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* Colors */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-success {
  background: var(--gradient-success);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-danger {
  background: var(--gradient-danger);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-inverse { color: var(--text-inverse); }

/* Background */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }
.bg-card { background: var(--bg-card); }
.bg-gradient { background: var(--gradient-main); }
.bg-gradient-success { background: var(--gradient-success); }
.bg-gradient-danger { background: var(--gradient-danger); }
.bg-gradient-warning { background: var(--gradient-warning); }

/* Border */
.border { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-l { border-left: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }
.border-none { border: none; }
.border-primary { border-color: var(--primary); }
.border-success { border-color: var(--success); }
.border-danger { border-color: var(--danger); }

.rounded-xs { border-radius: var(--radius-xs); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-primary { box-shadow: var(--shadow-primary); }
.shadow-none { box-shadow: none; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-grab { cursor: grab; }
.cursor-grabbing { cursor: grabbing; }

/* User Select */
.select-none { user-select: none; }
.select-all { user-select: all; }
.select-auto { user-select: auto; }

/* ============================================================
   SECTION 6: ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes scaleOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0); opacity: 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--primary); }
  50% { box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes modalFade {
  0% { opacity: 0; transform: scale(0.96) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slideUpModal {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes progressBar {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Animation Utility Classes */
.animate-fadeIn { animation: fadeIn 0.3s ease; }
.animate-fadeUp { animation: fadeUp 0.5s ease; }
.animate-fadeDown { animation: fadeDown 0.5s ease; }
.animate-slideInRight { animation: slideInRight 0.4s ease; }
.animate-slideInLeft { animation: slideInLeft 0.4s ease; }
.animate-slideUp { animation: slideUp 0.3s ease; }
.animate-slideDown { animation: slideDown 0.3s ease; }
.animate-pulse { animation: pulse 1.5s infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-shake { animation: shake 0.5s ease; }
.animate-wiggle { animation: wiggle 0.5s ease; }
.animate-heartbeat { animation: heartbeat 1.5s ease infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-scaleIn { animation: scaleIn 0.3s ease; }
.animate-rotate { animation: rotate 1s linear infinite; }

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

.animate-duration-fast { animation-duration: 0.3s; }
.animate-duration-normal { animation-duration: 0.5s; }
.animate-duration-slow { animation-duration: 1s; }

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   SECTION 7: HEADER
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 64px;
  height: 64px;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
  overflow: hidden;
  transition: var(--transition);
}

.logo-circle:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: var(--shadow-primary-lg);
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text .logo {
  height: 56px;
  width: auto;
  display: block;
}

.logo-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  letter-spacing: 0.3px;
}

.storage-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--success-bg);
  border-radius: var(--radius-full);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--success);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.storage-info:hover {
  background: rgba(34, 197, 94, 0.18);
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

#direct-post-button {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  font-size: 0.9rem;
  box-shadow: var(--shadow-primary);
}

#direct-post-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-primary-lg);
}

#direct-post-button:active {
  transform: translateY(0) scale(0.98);
}

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}

/* ============================================================
   SECTION 8: PAGE SECTIONS
   ============================================================ */
.page-section {
  display: none;
  padding: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  animation: fadeUp 0.5s ease;
}

.page-section.active {
  display: block;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h1 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-size: 1.05rem;
}

/* ============================================================
   SECTION 9: SLIDER
   ============================================================ */
.slider-container {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.slider-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

.slider-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.slider-title h1 {
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slider-title p {
  color: #94a3b8;
  font-size: 1.05rem;
}

.slideshow-container {
  position: relative;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  background: #000;
}

.mySlides {
  display: none;
  height: 100%;
  position: relative;
}

.mySlides.fade {
  animation: fade 1.8s ease;
}

.slide-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.8) saturate(1.1);
  transition: transform 6s ease;
}

.mySlides:hover .slide-image {
  transform: scale(1.03);
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 700px;
}

.company-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

.company-category {
  display: inline-block;
  background: rgba(79, 70, 229, 0.2);
  color: var(--primary-light);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  width: fit-content;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.company-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.company-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.company-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.company-stats .stat {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-sm);
  text-align: center;
  flex: 1;
  min-width: 80px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.company-stats .stat:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.company-stats .stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary-light);
}

.company-stats .stat span {
  font-size: 0.8rem;
  color: #94a3b8;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 14px 18px;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  transition: var(--transition);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev { left: 16px; }
.next { right: 16px; }

.prev:hover,
.next:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-primary-lg);
}

.dots-container {
  text-align: center;
  padding: 0.75rem;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition);
}

.dot.active,
.dot:hover {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

.slide-indicators {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.indicator {
  padding: 0.3rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
  color: #94a3b8;
  border: 1px solid transparent;
}

.indicator.active,
.indicator:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION 10: VIDEO SECTION
   ============================================================ */
.video-section {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.video-section:hover {
  box-shadow: var(--shadow);
}

.video-container {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #000;
}

.video-player {
  width: 100%;
  height: auto;
  max-height: 600px;
  background: #000;
  display: block;
  border-radius: var(--radius-sm);
}

.view-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.view-counter i {
  color: var(--primary);
}

.video-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.video-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ============================================================
   SECTION 11: FEATURES ACCORDION
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-main);
  transition: var(--transition);
}

.feature-card:hover::before,
.feature-card.active::before {
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-title i {
  transition: var(--transition);
}

.feature-card.active .feature-title i {
  transform: rotate(180deg);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.feature-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.feature-card.active .feature-detail {
  max-height: 400px;
}

.feature-detail ul {
  padding-left: 1.2rem;
  margin-top: 0.75rem;
}

.feature-detail li {
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  list-style: disc;
}

/* ============================================================
   SECTION 12: UPLOAD SYSTEM
   ============================================================ */
.upload-post-system {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.upload-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  flex-wrap: wrap;
  color: var(--text-primary);
}

.unlimited-badge {
  background: var(--gradient-success);
  padding: 0.2rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

.upload-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.upload-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.2rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-primary);
  font-family: inherit;
}

.upload-option:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.06);
  box-shadow: var(--shadow-sm);
}

.upload-option i {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  transition: var(--transition);
}

.upload-option:hover i {
  transform: scale(1.15);
  color: var(--primary);
}

.upload-option span {
  font-weight: 600;
  font-size: 0.85rem;
}

.upload-option small {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.unlimited-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.unlimited-features .feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.unlimited-features .feature:hover {
  background: var(--primary-50);
  transform: translateY(-2px);
}

.unlimited-features .feature i {
  color: var(--primary);
}

/* ============================================================
   SECTION 13: NEW FEATURES GRID
   ============================================================ */
.new-features-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 2px dashed var(--border-color);
  transition: var(--transition);
}

.new-features-container:hover {
  border-color: var(--primary);
}

.new-features-container h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.new-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.new-feature-btn {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.2rem 0.8rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-weight: 500;
  font-family: inherit;
}

.new-feature-btn:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: rgba(79, 70, 229, 0.04);
}

.new-feature-btn > div:first-child {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  transition: var(--transition);
}

.new-feature-btn:hover > div:first-child {
  transform: scale(1.15);
}

.new-feature-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ============================================================
   SECTION 14: ENGAGEMENT CONTAINER
   ============================================================ */
.engagement-container {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--primary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: var(--transition);
}

.metric-card:hover::after {
  transform: scaleX(1);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.2rem;
  transition: var(--transition);
}

.metric-card:hover .metric-value {
  transform: scale(1.1);
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.engagement-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.engagement-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #fff;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.engagement-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.engagement-btn:hover::before {
  width: 300px;
  height: 300px;
}

.engagement-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.engagement-btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-subscribe { background: var(--gradient-main); }
.btn-like { background: var(--gradient-danger); }
.btn-flower { background: var(--gradient-success); }
.btn-share { background: var(--gradient-main); }
.btn-copy { background: var(--gradient-warning); }
.btn-watched { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.btn-logout { background: var(--gradient-danger); width: 100%; margin-top: 1rem; }

.business-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
}

.business-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.business-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 0.75rem;
  font-family: inherit;
}

.business-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.business-input::placeholder {
  color: var(--text-muted);
}

/* ============================================================
   SECTION 15: TEACHABLE & PRIVACY SECTIONS
   ============================================================ */
.teachable-section {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
  transition: var(--transition);
}

.teachable-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.teachable-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  outline: none;
  line-height: 1.8;
  color: var(--text-primary);
  min-height: 160px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.teachable-content:focus {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.teachable-content ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.teachable-content li {
  margin-bottom: 0.3rem;
  list-style: disc;
}

.privacy-section {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
  transition: var(--transition);
}

.privacy-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.privacy-list {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.privacy-list li {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  list-style: disc;
}

.privacy-warning {
  background: var(--danger-bg);
  border-left: 4px solid var(--danger);
  padding: 0.8rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--danger);
}

/* ============================================================
   SECTION 16: INVITE SYSTEM
   ============================================================ */
.invite-growth-system {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.invite-growth-system h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.invite-growth-system p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.invite-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.invite-platform-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 0.5rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.8rem;
  font-family: inherit;
}

.invite-platform-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.invite-platform-btn i {
  font-size: 1.8rem;
  transition: var(--transition);
}

.invite-platform-btn:hover i {
  transform: scale(1.15);
}

.invitation-link-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.invite-link-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.invite-link-container input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  min-width: 180px;
  transition: var(--transition);
}

.invite-link-container input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.copy-invite-btn {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
}

.copy-invite-btn:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-primary);
}

.invite-stats {
  font-weight: 600;
  color: var(--success);
  font-size: 0.95rem;
}

.invitation-step {
  animation: fadeUp 0.4s ease;
}

.invitation-confirm-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin: 1rem 0;
}

.invitation-confirm-box ul {
  padding-left: 1.2rem;
  margin: 0.75rem 0;
}

.invitation-confirm-box li {
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  list-style: none;
}

.confirm-btn {
  padding: 0.7rem 2rem;
  background: var(--gradient-success);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.5rem;
  font-family: inherit;
  transition: var(--transition);
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-success);
}

.decline-btn {
  padding: 0.7rem 2rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.decline-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-bg);
}

.registration-form {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.register-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  transition: var(--transition);
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.friends-storage {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.friends-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.friends-header h3 {
  color: var(--text-primary);
}

.invite-more-btn {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
}

.invite-more-btn:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-primary);
}

.friends-list {
  min-height: 140px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.empty-friends {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.empty-friends i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}

.friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.friend-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.friend-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.friend-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.friend-name {
  font-weight: 600;
  color: var(--text-primary);
}

.friend-status {
  padding: 0.1rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.status-active {
  background: var(--success-bg);
  color: var(--success);
}

.status-pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.friend-earnings {
  font-weight: 600;
  color: var(--success);
  font-size: 1rem;
}

.friends-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================================
   SECTION 17: CONTENT FEED
   ============================================================ */
.content-feed-container {
  margin-top: 2rem;
}

.content-feed {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 180px;
  max-height: 560px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
}

.no-content-message {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.no-content-message i {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}

.content-item {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  animation: fadeUp 0.3s ease;
}

.content-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.content-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.content-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.content-info {
  flex: 1;
}

.content-author {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.content-time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.content-text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.content-media {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.content-media img {
  width: 100%;
  height: auto;
  display: block;
}

.content-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  font-size: 0.85rem;
  font-family: inherit;
}

.action-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.action-btn.liked {
  color: var(--danger);
}

.trending-tag {
  display: inline-block;
  background: var(--danger-bg);
  color: var(--danger);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
  margin-right: 0.3rem;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ============================================================
   SECTION 18: ENGAGEMENT DASHBOARD
   ============================================================ */
.engagement-dashboard {
  margin-top: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.analytic-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.analytic-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.analytic-icon {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.analytic-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.analytic-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================================
   SECTION 19: PROFILE PAGE
   ============================================================ */
.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.profile-card-compact {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border-color);
  text-align: center;
}

.profile-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: #fff;
  font-weight: 700;
  margin: 0 auto 0.8rem;
  box-shadow: var(--shadow-primary);
  position: relative;
  transition: var(--transition);
}

.profile-avatar-lg:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-primary-lg);
}

.profile-avatar-lg .badge-check {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--success);
  border: 3px solid var(--bg-secondary);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
}

.profile-name-lg {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-username-lg {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-bio-lg {
  margin: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.profile-stats-lg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.profile-stat-lg {
  background: var(--bg-primary);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.profile-stat-lg:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.profile-stat-lg .num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-stat-lg .label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.achievement-row {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--warning-bg);
  color: var(--warning);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.achievement-badge i {
  font-size: 0.8rem;
}

.profile-details-panel {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.profile-details-panel .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.profile-details-panel .detail-row:last-child {
  border-bottom: none;
}

.profile-details-panel .detail-row .label {
  color: var(--text-muted);
}

.profile-details-panel .detail-row .value {
  font-weight: 500;
  color: var(--text-primary);
}

.profile-settings-panel {
  margin-top: 1.5rem;
}

.profile-settings-panel h3 {
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.setting-item-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 0.4rem;
  transition: var(--transition);
}

.setting-item-panel:hover {
  border-color: var(--primary);
}

.setting-item-panel .setting-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.setting-item-panel .setting-left i {
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.setting-item-panel .setting-left .label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.setting-item-panel .setting-left .desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}

.profile-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.profile-actions-row .btn-secondary,
.profile-actions-row .btn-primary {
  flex: 1;
}

/* ============================================================
   SECTION 20: TOGGLE SWITCH
   ============================================================ */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

[data-theme="dark"] .toggle-switch {
  background: #475569;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

.toggle-switch:hover {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ============================================================
   SECTION 21: ANALYTICS PAGE
   ============================================================ */
.chart-container {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.chart-container h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-wrapper {
  position: relative;
  height: 220px;
}

#viewsChart {
  max-height: 200px;
}

.engagement-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.engagement-item {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.engagement-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.engagement-item .num {
  font-size: 1.4rem;
  font-weight: 700;
}

.engagement-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   SECTION 22: BUSINESS PAGE
   ============================================================ */
.business-dashboard {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.business-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.business-stat-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.business-stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.business-stat-card .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.business-stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

.business-stat-card .stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.business-stat-card.accent .stat-value { color: var(--primary); }
.business-stat-card.gold .stat-value { color: var(--warning); }
.business-stat-card.green .stat-value { color: var(--success); }
.business-stat-card.blue .stat-value { color: #3b82f6; }

.business-insights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 0.5rem 0 1.5rem 0;
}

.insight-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.insight-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.insight-card .insight-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.insight-card .insight-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.insight-card .insight-change {
  font-size: 0.7rem;
  font-weight: 600;
}

.insight-card .insight-change.up { color: var(--success); }
.insight-card .insight-change.down { color: var(--danger); }

.business-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.business-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.business-card h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.campaign-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.campaign-item {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  transition: var(--transition);
}

.campaign-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.campaign-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.campaign-status {
  font-size: 0.7rem;
  padding: 0.1rem 0.7rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-block;
}

.status-ended {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-muted);
}

.campaign-meta,
.campaign-stats {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.campaign-stats strong {
  color: var(--text-primary);
}

.campaign-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.85rem;
}

.campaign-delete-btn:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

.earnings-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.earnings-row:last-child {
  border-bottom: none;
}

.commission-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.commission-box {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.commission-box .amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
}

.commission-box .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.invoice-item {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  transition: var(--transition);
}

.invoice-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.invoice-item .invoice-info {
  display: flex;
  flex-direction: column;
}

.invoice-item .invoice-id {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.invoice-item .invoice-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.invoice-item .invoice-amount {
  font-weight: 700;
  color: var(--success);
  font-size: 0.95rem;
}

.invoice-item .invoice-status {
  font-size: 0.65rem;
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.invoice-status.paid {
  background: var(--success-bg);
  color: var(--success);
}

.invoice-status.pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.invoice-status.overdue {
  background: var(--danger-bg);
  color: var(--danger);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.8rem;
}

.product-card {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.product-card .product-icon {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.product-card .product-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.product-card .product-price {
  font-weight: 700;
  color: var(--success);
  font-size: 0.9rem;
}

.product-card .product-sales {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.realtime-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.realtime-status .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.5s infinite;
  display: inline-block;
}

.realtime-status.offline {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.15);
}

.realtime-status.offline .pulse-dot {
  background: var(--danger);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.status-grid .status-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.status-grid .status-item .val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.status-grid .status-item .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.status-grid .status-item .val.green { color: var(--success); }
.status-grid .status-item .val.gold { color: var(--warning); }
.status-grid .status-item .val.blue { color: #3b82f6; }

/* ============================================================
   SECTION 23: ACTIVE PAGE
   ============================================================ */
.active-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.active-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.active-stat {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.active-stat:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.active-stat .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.active-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.live-feed {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  max-height: 560px;
  overflow-y: auto;
}

.live-feed h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.live-feed h3 span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse 1.5s infinite;
}

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  animation: fadeUp 0.3s ease;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.feed-content {
  flex: 1;
}

.feed-text {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.feed-text strong {
  font-weight: 600;
}

.feed-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.feed-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.online-users {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.online-users h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.online-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.online-user:last-child {
  border-bottom: none;
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.online-user .name {
  font-weight: 500;
  color: var(--text-primary);
}

.online-user .activity {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ============================================================
   SECTION 24: BOTTOM ENGAGEMENT BAR
   ============================================================ */
.bottom-engagement-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
  z-index: var(--z-bottom-bar);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

[data-theme="dark"] .bottom-engagement-bar {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.bottom-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.65rem;
  gap: 0.1rem;
  min-width: 48px;
  position: relative;
  font-family: inherit;
}

.bottom-bar-btn i {
  font-size: 1.3rem;
  transition: var(--transition);
}

.bottom-bar-btn span {
  font-size: 0.55rem;
  font-weight: 500;
}

.bottom-bar-btn:hover {
  color: var(--text-primary);
  background: rgba(79, 70, 229, 0.06);
}

.bottom-bar-btn:hover i {
  transform: scale(1.2);
}

.bottom-bar-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

.bottom-bar-btn.liked i { color: var(--danger); }
.bottom-bar-btn.loved i { color: #ec4899; }
.bottom-bar-btn.gifted i { color: var(--warning); }
.bottom-bar-btn.active-btn i { color: var(--primary); }

.bottom-bar-share-menu {
  display: none;
  position: absolute;
  bottom: calc(var(--bottom-bar-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  z-index: var(--z-modal);
  animation: fadeUp 0.25s ease;
}

.bottom-bar-share-menu.open {
  display: block;
}

.share-menu-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.bottom-bar-share-menu .share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.bottom-bar-share-menu .share-grid button {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.3rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-family: inherit;
}

.bottom-bar-share-menu .share-grid button:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  background: var(--primary-50);
}

.bottom-bar-share-menu .share-grid button i {
  font-size: 1.4rem;
}

.bottom-bar-comment-input {
  display: none;
  position: absolute;
  bottom: calc(var(--bottom-bar-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  z-index: var(--z-modal);
  animation: fadeUp 0.25s ease;
}

.bottom-bar-comment-input.open {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.bottom-bar-comment-input input {
  flex: 1;
  padding: 0.6rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

.bottom-bar-comment-input input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.bottom-bar-comment-input button {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
}

.bottom-bar-comment-input button:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-primary);
}

/* ============================================================
   SECTION 25: MODALS
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open,
.modal[style*="display: flex"],
.modal[style*="display:flex"] {
  display: flex;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 2rem;
  width: 90%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  animation: fadeUp 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.modal-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-family: inherit;
}

.modal-btn-cancel {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.modal-btn-cancel:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.modal-btn-upload {
  background: var(--gradient-main);
  color: #fff;
}

.modal-btn-upload:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.modal-btn:hover {
  transform: translateY(-2px);
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.creation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.creation-header h2 {
  color: var(--text-primary);
}

.modal-actions-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.direct-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.direct-post-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.2rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-primary);
  font-family: inherit;
}

.direct-post-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.direct-post-option i {
  font-size: 1.8rem;
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.connection-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.2rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-primary);
  font-family: inherit;
}

.connection-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.connection-option i {
  font-size: 1.8rem;
}

.share-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.8rem;
}

.share-platform-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
}

.share-platform-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.share-platform-btn i {
  font-size: 1.8rem;
}

.share-link-container {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.share-link-container input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  min-width: 180px;
}

/* ============================================================
   SECTION 26: CAMERA MODAL
   ============================================================ */
.camera-container {
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1rem 0;
}

.camera-preview {
  width: 100%;
  max-height: 380px;
  background: #000;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  object-fit: cover;
}

.camera-controls {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.camera-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #fff;
  font-family: inherit;
}

.camera-btn:hover {
  transform: scale(1.05);
}

.camera-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.camera-start { background: var(--success); }
.camera-record { background: var(--danger); }
.camera-stop { background: var(--warning); }
.camera-switch { background: var(--primary); }
.camera-capture { background: var(--secondary); }

.recording-status {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0;
  padding: 0.5rem;
  background: var(--danger-bg);
  border-radius: var(--radius-sm);
  color: var(--danger);
}

.recording-status[style*="flex"] {
  display: flex;
}

.preview-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-success {
  background: var(--gradient-success);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-success);
}

.btn-warning {
  background: var(--gradient-warning);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-warning);
}

.btn-danger {
  background: var(--gradient-danger);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-danger);
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

/* ============================================================
   SECTION 27: SOUND RECORDER
   ============================================================ */
.sound-visualizer-canvas {
  width: 100%;
  height: 120px;
  background: #0f172a;
  border-radius: var(--radius-sm);
  display: block;
}

.sound-level-bar {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.5rem 0;
}

.sound-level-fill {
  height: 100%;
  background: var(--gradient-main);
  width: 0%;
  transition: width 0.15s ease;
}

.recorder-controls {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.recorder-timer {
  text-align: center;
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(79, 70, 229, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.recorder-timer i {
  color: var(--primary);
  margin-right: 0.4rem;
}

/* ============================================================
   SECTION 28: PICTURE SOURCES
   ============================================================ */
.picture-sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.picture-source-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
}

.picture-source-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.picture-source-option i {
  font-size: 1.5rem;
}

#selectedPicture {
  width: 100%;
  max-height: 300px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  object-fit: contain;
}

.file-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   SECTION 29: INVITE MODAL
   ============================================================ */
.invite-modal-section {
  margin-bottom: 1.5rem;
}

.invite-modal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.invite-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: inherit;
}

.invite-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.invite-option i {
  font-size: 1.5rem;
}

.engagement-track-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.engagement-track-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.engagement-track-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.engagement-actions-grid {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.engagement-action-btn {
  flex: 1;
  min-width: 80px;
  padding: 0.6rem;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}

.engagement-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.engagement-action-btn.btn-like { background: var(--primary); }
.engagement-action-btn.btn-love { background: var(--danger); }
.engagement-action-btn.btn-comment { background: var(--secondary); }
.engagement-action-btn.btn-gift { background: var(--warning); }

/* ============================================================
   SECTION 30: CONTENT CREATION
   ============================================================ */
#contentText {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  transition: var(--transition);
}

#contentText:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.btn-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-main);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  margin: 1rem 0;
  font-family: inherit;
  transition: var(--transition);
}

.btn-upload-label:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.media-preview {
  margin-top: 0.8rem;
}

.media-preview img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  max-height: 200px;
}

.publish-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  transition: var(--transition);
}

.publish-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.publish-story {
  background: linear-gradient(135deg, #f472b6, #ec4899);
}

/* ============================================================
   SECTION 31: SUCCESS MODAL
   ============================================================ */
.success-modal {
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1rem;
  animation: bounce 1s ease infinite;
}

.success-modal h2 {
  color: var(--text-primary);
}

.success-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  border: 1px solid var(--border-color);
  margin: 1rem 0;
  text-align: left;
}

.success-box h3 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.success-box ol {
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.success-box li {
  margin-bottom: 0.3rem;
  list-style: decimal;
}

.start-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--gradient-success);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  transition: var(--transition);
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-success);
}

/* ============================================================
   SECTION 32: AUTH MODAL
   ============================================================ */
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-auth-modal);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal.open,
.auth-modal.active {
  display: flex;
}

.auth-modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 2rem;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  animation: fadeUp 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.close-auth {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 0.5rem;
  position: absolute;
  right: 1.2rem;
  top: 0.8rem;
  transition: var(--transition);
}

.close-auth:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.auth-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.auth-tab {
  flex: 1;
  padding: 0.8rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
  position: relative;
}

.auth-tab.active {
  color: var(--primary);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeUp 0.3s ease;
}

.auth-form h2 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.auth-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
  font-family: inherit;
}

.auth-btn:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-primary);
}

.auth-helper {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
}

.auth-helper a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.auth-helper a:hover {
  text-decoration: underline;
}

.auth-helper.muted {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-helper.muted a {
  font-weight: 600;
}

/* ============================================================
   SECTION 33: FORM HELPERS
   ============================================================ */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ============================================================
   SECTION 34: AUTH ERROR & NO ACCOUNT BOX
   ============================================================ */
.auth-error-box {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: shake 0.5s ease;
}

.auth-error-box.success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.auth-error-box[hidden] {
  display: none;
}

.no-account-box {
  background: var(--bg-secondary);
  border: 2px dashed var(--warning);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  animation: fadeUp 0.35s ease;
}

.no-account-icon {
  font-size: 3rem;
  color: var(--warning);
  margin-bottom: 0.75rem;
  animation: bounce 1.5s ease infinite;
}

.no-account-box h3 {
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.no-account-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.no-account-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-register-now {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  font-size: 0.9rem;
  font-family: inherit;
}

.btn-register-now:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-cancel-login {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  font-size: 0.9rem;
  font-family: inherit;
}

.btn-cancel-login:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-bg);
}

/* ============================================================
   SECTION 35: RESET PASSWORD
   ============================================================ */
.reset-card-inner {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  display: none;
}

.reset-card-inner[hidden] {
  display: none !important;
}

.reset-card-inner.visible {
  display: block;
  animation: fadeUp 0.3s ease;
}

.reset-card-inner h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
}

.steps-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border-color);
  transform: translateY(-50%);
  z-index: 0;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  z-index: 1;
}

.step-dot .circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  transition: var(--transition);
}

.step-dot.active .circle {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.step-dot.done .circle {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-dot .label {
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
}

.step-content {
  display: none;
  animation: fadeUp 0.35s ease;
}

.step-content.active {
  display: block;
}

.code-input-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.5rem 0;
}

.code-input-group input {
  width: 44px;
  height: 48px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.code-input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.resend-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0;
}

.resend-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.resend-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.resend-btn:hover:not(:disabled) {
  color: var(--secondary);
  text-decoration: underline;
}

.message-box {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: none;
  font-weight: 500;
  font-size: 0.85rem;
}

.message-box.show {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 0.3s ease;
}

.message-box.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.message-box.success {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
}

.message-box.info {
  background: var(--info-bg);
  border: 1px solid var(--info);
  color: var(--info);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 2.8rem;
}

.password-wrapper .toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
  transition: var(--transition);
}

.password-wrapper .toggle-pw:hover {
  color: var(--text-primary);
}

/* ============================================================
   SECTION 36: SETTINGS MODAL
   ============================================================ */
.settings-modal-content {
  max-width: 820px;
}

.settings-tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.settings-tab {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
}

.settings-tab:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.settings-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.settings-pane {
  display: none;
  animation: fadeUp 0.3s ease;
}

.settings-pane.active {
  display: block;
}

.setting-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.setting-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.setting-group h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.setting-group h4 i {
  color: var(--primary);
  font-size: 1rem;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 0.4rem;
  transition: var(--transition);
}

.setting-row:hover {
  border-color: var(--primary);
}

.setting-row .setting-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.setting-row .setting-info i {
  color: var(--primary);
  width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.setting-row .setting-info .label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.setting-row .setting-info .sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}

.setting-row select,
.setting-row input[type="number"],
.setting-row input[type="text"] {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  transition: var(--transition);
  min-width: 80px;
}

.setting-row select:focus,
.setting-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

.settings-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ============================================================
   SECTION 37: NOTIFICATIONS / TOASTS
   ============================================================ */
#notificationContainer {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: var(--z-notification);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
  width: 100%;
}

.notification {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  border-left: 4px solid;
  box-shadow: var(--shadow);
  animation: slideInRight 0.4s ease;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-left-width: 4px;
}

.notification.success { border-left-color: var(--success); }
.notification.error { border-left-color: var(--danger); }
.notification.info { border-left-color: var(--primary); }
.notification.warning { border-left-color: var(--warning); }

.toast-global {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + 30px);
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.20);
  opacity: 0;
  transition: all 0.35s ease;
  z-index: var(--z-toast);
  pointer-events: none;
  white-space: nowrap;
}

.toast-global.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-global i {
  margin-right: 10px;
  color: #4ade80;
}

.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + 24px);
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: var(--z-toast-top);
}

.toast-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px 22px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
  min-width: 280px;
  backdrop-filter: blur(4px);
}

.toast-item i {
  font-size: 18px;
}

.toast-item.success i { color: var(--success); }
.toast-item.error i { color: var(--danger); }
.toast-item.info i { color: var(--primary); }
.toast-item.warning i { color: var(--warning); }

/* ============================================================
   SECTION 38: FLOATING CREATE BUTTON & FOOTER
   ============================================================ */
.floating-create-btn {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + 2rem);
  right: 2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  box-shadow: var(--shadow-primary-lg);
  z-index: var(--z-bottom-bar);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.floating-create-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 40px rgba(79, 70, 229, 0.5);
}

.floating-create-btn:active {
  transform: scale(0.95) rotate(90deg);
}

.footer {
  background: var(--bg-secondary);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  transition: var(--transition);
  margin-bottom: var(--bottom-bar-height);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-section p,
.footer-section a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
  margin-bottom: 0.3rem;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-section i {
  width: 20px;
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-stats {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   SECTION 39: COMPANY SECTIONS
   ============================================================ */
.company-links-section {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.company-links-section:hover {
  box-shadow: var(--shadow);
}

.company-links-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.company-links-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.company-link {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.2rem 0.8rem;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
}

.company-link:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  background: rgba(79, 70, 229, 0.04);
}

.company-logo {
  font-size: 2.8rem;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
  transition: var(--transition);
}

.company-link:hover .company-logo {
  transform: scale(1.15);
}

.company-link .company-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.company-commission {
  background: var(--gradient-success);
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.2rem;
  display: inline-block;
}

.commission-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.affiliate-program {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.affiliate-program:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.affiliate-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 4px;
}

.affiliate-name {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.affiliate-rate {
  background: var(--gradient-success);
  color: #fff;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
}

.affiliate-note {
  background: var(--gradient-warning);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  margin: 1rem 0;
}

/* Company Brand Colors */
.costco { color: #e31837; }
.walmart { color: #007dc6; }
.rakuten { color: #BF0000; }
.jcpenney { color: #E71324; }
.wayfair { color: #006400; }
.Lowe { color: #0046be; }
.Newegg { color: #FBD32C; }
.Reverb { color: #225ED8; }
.Poshmark { color: #4DAF7C; }
.Nordstrom { color: #000000; }
.QVC { color: #FF6600; }
.Stockx { color: #41AD33; }
.Mercari { color: #5E6DF2; }
.Bonanza { color: #523B2C; }
.walgreen { color: #d32d27; }
.cvs { color: #cc0000; }
.wholefoods { color: #78be20; }
.wegmans { color: #e31837; }
.giant { color: #dc291e; }
.aldi { color: #0093d0; }
.safeway { color: #e31837; }
.bestbuy { color: #0046be; }
.megamarket { color: #ff6b00; }
.target { color: #cc0000; }
.amazon { color: #ff9900; }
.ebay { color: #e53238; }
.shin { color: #000000; }
.macys { color: #e21836; }
.taotao { color: #ff0000; }
.tmall { color: #ff4400; }
.jd { color: #d7141a; }
.apple { color: #000000; }
.pdd { color: #e60012; }
.alibaba { color: #ff6a00; }
.temu { color: #7b2cbf; }
.etsy { color: #f16521; }
.sephora { color: #ed6ca7; }
.homedepo { color: #f16521; }

/* Music Service Colors */
.youtube { color: #ff0000; }
.netflix { color: #e50914; }
.spotify { color: #1db954; }
.tidal { color: #000000; }
.epidemic-sound { color: #fe5000; }
.digitally-imported { color: #00a0e3; }
.accordion { color: #8a2be2; }
.disney { color: #006400; }
.amazon-prime { color: #00a8e1; }
.hulu { color: #1ce783; }
.hbo-max { color: #821bf0; }
.paramount { color: #0066cc; }
.peacock { color: #f4c842; }
.twitch { color: #9146ff; }
.universal-music { color: #1e1e1e; }
.sony-music { color: #000000; }
.warner-music { color: #1e3264; }
.live-nation { color: #00a0e3; }
.reku-channel { color: #ff6b00; }

/* News Service Colors */
.bbc-news { color: #bb1919; }
.reuters { color: #ff8000; }
.associated-press { color: #ff2d2d; }
.new-york-times { color: #000000; }
.variety { color: #000000; }
.hollywood-reporter { color: #000000; }
.billboard { color: #ff2d55; }
.rolling-stone { color: #ff2d55; }
.techcrunch { color: #00a562; }
.the-verge { color: #000000; }
.fox-news { color: #003366; }
.cnn { color: #cc0000; }
.bloomberg { color: #000000; }
.financial-times { color: #fff1e5; }
.the-economist { color: #e3120b; }
.washington-post { color: #231f20; }
.nbc-news { color: #e1ac13; }
.al-jazeera { color: #851c2d; }
.the-guardian { color: #14284a; }
.wired { color: #000000; }
.the-wall-street-journal { color: #0074c4; }
.fana { color: #006400; }
.africa-amharic { color: #006400; }
.africanews { color: #006400; }

/* Car Company Colors */
.general-motors { color: #0033a0; }
.ford { color: #003478; }
.tesla { color: #cc0000; }
.volkswagen { color: #1b1464; }
.mercedes-benz { color: #000000; }
.bmw { color: #0066b1; }
.toyota { color: #eb0a1e; }
.honda { color: #000000; }
.nissan { color: #c3002f; }
.mazda { color: #a00000; }
.suzuki { color: #e30613; }
.mitsubishi { color: #e60012; }
.hyundai { color: #002c5f; }
.byd { color: #008fd5; }
.geely { color: #0033a0; }
.saic { color: #008fd5; }
.cadillac { color: #003057; }
.chevrolet { color: #e4002b; }
.dodge { color: #c30000; }
.jeep { color: #006241; }

/* Insurance Colors */
.state-farm { color: #e1251b; }
.geico { color: #004481; }
.allstate { color: #004481; }
.usaa { color: #004481; }
.liberty-mutual { color: #000000; }
.nationwide { color: #004481; }
.farmers { color: #00843d; }
.travelers { color: #004481; }
.american-family { color: #ed1c24; }
.erie { color: #004481; }
.auto-owners { color: #004481; }
.hartford { color: #004481; }
.csaa { color: #004481; }
.amica { color: #004481; }
.root { color: #5a4099; }
.the-general { color: #004481; }

/* Health Insurance Colors */
.unitedhealthcare { color: #008fd5; }
.kaiser { color: #6e267b; }
.elevance { color: #004481; }
.cigna { color: #0097a9; }
.humana { color: #d62b27; }
.molina { color: #00843d; }
.centene { color: #00843d; }
.medicare { color: #0072bc; }
.medicaid { color: #00843d; }
.veterans { color: #003366; }
.tricare { color: #004481; }
.atena { color: #00843d; }
.careFrist { color: #00843d; }
.guidewell { color: #00843d; }
.hightmark { color: #00843d; }
.kemper { color: #004481; }
.american-familly { color: #004481; }
.progressive { color: #004481; }
.mercury { color: #004481; }

/* Airlines Colors */
.ethiopian-airlines { color: #006400; }
.air-canada { color: #ff0000; }
.turkish-airlines { color: #e30a17; }
.emirates { color: #d71921; }
.delta { color: #003366; }
.american-airlines { color: #002868; }
.qatar-airways { color: #5a0f47; }
.air-france { color: #002147; }
.british-airways { color: #075aaa; }
.lufthansa { color: #f9ba00; }
.etihad-airways { color: #bd8b13; }
.jet-airways { color: #ed1c24; }
.air-asia { color: #ff0000; }
.southern-airways { color: #0033a0; }
.airways { color: #0b3d91; }
.virgin-atlantic { color: #e31b23; }
.china-southern { color: #3c8dbc; }

/* ============================================================
   SECTION 40: CHAT / MESSAGING
   ============================================================ */
.chat-messages {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.chat-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.chat-msg {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  animation: fadeUp 0.3s ease;
}

.chat-msg:last-child {
  border-bottom: none;
}

.chat-user {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
}

.chat-text {
  color: var(--text-primary);
  word-break: break-word;
}

.chat-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

.chat-input-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chat-input-container input {
  flex: 1;
  padding: 0.6rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
}

.chat-input-container input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.chat-emoji {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.chat-emoji:hover {
  border-color: var(--primary);
  transform: scale(1.1);
}

/* ============================================================
   SECTION 41: SPINNER / LOADING
   ============================================================ */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-primary {
  border-color: rgba(79, 70, 229, 0.25);
  border-top-color: var(--primary);
}

.spinner-dark {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--text-primary);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-max);
  backdrop-filter: blur(4px);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-main);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: var(--radius-full);
}

.progress-text {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.3rem;
}

.upload-progress {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  margin: 1rem 0;
}

/* ============================================================
   SECTION 42: BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-primary { background: var(--primary-50); color: var(--primary); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--bg-tertiary); color: var(--text-muted); }

.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   SECTION 43: DIVIDERS
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.5rem 0;
  border: none;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ============================================================
   SECTION 44: TOOLTIPS
   ============================================================ */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-dark);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: var(--z-tooltip);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   SECTION 45: EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
  display: block;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ============================================================
   SECTION 46: RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1200px) {
  .profile-grid {
    grid-template-columns: 240px 1fr;
  }
  .business-dashboard {
    grid-template-columns: 1fr;
  }
  .business-insights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .profile-grid { grid-template-columns: 1fr; }
  .business-dashboard { grid-template-columns: 1fr; }
  .active-grid { grid-template-columns: 1fr; }
  .slideshow-container { height: 380px; }
  .form-row { grid-template-columns: 1fr; }
  .company-stats { flex-direction: column; gap: 0.5rem; }
  .settings-modal-content { max-width: 95%; padding: 1.5rem; }
  .bottom-bar-btn span { display: none; }
  .bottom-bar-btn i { font-size: 1.5rem; }
  .business-insights { grid-template-columns: 1fr 1fr; }
  .commission-summary { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
  }
  .logo-container { justify-content: center; }
  .nav-links { justify-content: center; }
  #direct-post-button { justify-content: center; }
  .slider-title h1 { font-size: 1.5rem; }
  .slide-content { padding: 1.5rem; }
  .company-name { font-size: 1.2rem; }
  .metrics-grid,
  .analytics-grid,
  .business-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .new-features-grid { grid-template-columns: 1fr 1fr; }
  .invite-platforms-grid { grid-template-columns: repeat(3, 1fr); }
  .engagement-buttons { flex-direction: column; }
  .modal-content { padding: 1.2rem; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .business-insights { grid-template-columns: 1fr 1fr; }
  .bottom-bar-share-menu { min-width: 200px; }
  .bottom-bar-comment-input { min-width: 200px; }
}

@media (max-width: 480px) {
  .slideshow-container { height: 320px; }
  .video-title { font-size: 1.2rem; }
  .upload-options { grid-template-columns: repeat(2, 1fr); }
  .new-features-grid,
  .invite-platforms-grid { grid-template-columns: 1fr; }
  .analytics-grid,
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .bottom-bar-share-menu { min-width: 180px; }
  .bottom-bar-comment-input { min-width: 180px; }
  .floating-create-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    bottom: calc(var(--bottom-bar-height) + 1.2rem);
    right: 1.2rem;
  }
  .business-insights { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .commission-summary { grid-template-columns: 1fr; }
  .profile-stats-lg { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 360px) {
  .page-section { padding: 1rem; }
  .modal-content { padding: 1rem; }
  .engagement-btn { min-width: 100%; }
}

/* ============================================================
   SECTION 47: PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .bottom-engagement-bar,
  .floating-create-btn,
  .footer,
  .toast-container,
  .toast-global,
  #notificationContainer {
    display: none !important;
  }
  body {
    padding-bottom: 0;
    background: #fff;
    color: #000;
  }
  .page-section {
    display: block !important;
    page-break-inside: avoid;
  }
}

/* ============================================================
   SECTION 48: ACCESSIBILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1.5rem;
  z-index: var(--z-max);
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   SECTION 49: CUSTOM FORM CONTROLS
   ============================================================ */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-primary);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

input[type="file"] {
  display: none;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
  cursor: pointer;
}

/* ============================================================
   SECTION 50: MISCELLANEOUS COMPONENTS
   ============================================================ */

/* Avatar Group */
.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -8px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* Count Badge */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

.count-badge.danger { background: var(--danger); }
.count-badge.success { background: var(--success); }

/* Stat Pill */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.stat-pill i {
  color: var(--primary);
}

/* Card */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  color: var(--text-secondary);
}

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Alert */
.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert i {
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.alert-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.alert-content p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success-dark);
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--warning-dark);
}

.alert-danger {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger-dark);
}

.alert-info {
  background: var(--info-bg);
  border-color: var(--info);
  color: var(--info-dark);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.3rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.6rem 1.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  font-family: inherit;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--primary);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: var(--z-dropdown);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-align: left;
  font-family: inherit;
  border: none;
  background: none;
}

.dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.dropdown-item i {
  width: 18px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.4rem 0;
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-header {
  padding: 1rem 1.2rem;
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  width: 100%;
  text-align: left;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
}

.accordion-header:hover {
  background: var(--bg-card-hover);
}

.accordion-header i {
  transition: var(--transition);
}

.accordion-item.open .accordion-header i {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1.2rem;
}

.accordion-item.open .accordion-body {
  max-height: 500px;
  padding: 1rem 1.2rem;
}

/* Rating Stars */
.rating {
  display: flex;
  gap: 2px;
}

.rating i {
  color: var(--border-color);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.rating i.active,
.rating i:hover {
  color: var(--warning);
  transform: scale(1.1);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.timeline-content {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Code Block */
.code-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
  position: relative;
}

.code-block .copy-code {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition);
}

.code-block .copy-code:hover {
  background: var(--primary);
}

/* ============================================================
   SECTION 51: THEME TRANSITION
   ============================================================ */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* ============================================================
   SECTION 52: RIPPLE EFFECT
   ============================================================ */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s, opacity 0.5s;
  opacity: 0;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: 0s;
}

/* ============================================================
   SECTION 53: GLASSMORPHISM CARDS
   ============================================================ */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-card {
  background: var(--bg-glass-dark);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   SECTION 54: GRADIENT BORDERS
   ============================================================ */
.gradient-border {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-main);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.gradient-border:hover::before {
  opacity: 1;
}

/* ============================================================
   SECTION 55: TEXT EFFECTS
   ============================================================ */
.text-shadow {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.text-glow {
  text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

.text-outline {
  -webkit-text-stroke: 1px var(--text-primary);
  -webkit-text-fill-color: transparent;
}

.text-highlight {
  background: linear-gradient(180deg, transparent 60%, rgba(79, 70, 229, 0.3) 60%);
  padding: 0 2px;
}

/* ============================================================
   SECTION 56: HOVER EFFECTS
   ============================================================ */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hover-grow {
  transition: var(--transition);
}

.hover-grow:hover {
  transform: scale(1.03);
}

.hover-glow {
  transition: var(--transition);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
}

.hover-shine {
  position: relative;
  overflow: hidden;
}

.hover-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.hover-shine:hover::before {
  left: 100%;
}

/* ============================================================
   SECTION 57: STATUS INDICATORS
   ============================================================ */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online { background: var(--success); animation: pulse 2s infinite; }
.status-dot.offline { background: var(--text-muted); }
.status-dot.busy { background: var(--danger); }
.status-dot.away { background: var(--warning); }

/* ============================================================
   SECTION 58: CUSTOM CHECKBOX
   ============================================================ */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  display: none;
}

.custom-checkbox .checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.custom-checkbox input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.custom-checkbox input:checked + .checkmark::after {
  content: '✓';
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ============================================================
   SECTION 59: CUSTOM RADIO
   ============================================================ */
.custom-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.custom-radio input {
  display: none;
}

.custom-radio .radio-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.custom-radio input:checked + .radio-mark {
  border-color: var(--primary);
}

.custom-radio input:checked + .radio-mark::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

/* ============================================================
   SECTION 60: FINAL OVERRIDES & IMPORTANT RULES
   ============================================================ */
.no-select { user-select: none !important; }
.no-pointer { pointer-events: none !important; }
.no-scroll { overflow: hidden !important; }
.full-height { height: 100vh !important; }
.full-width { width: 100vw !important; }
.z-max { z-index: var(--z-max) !important; }

.modal,
.auth-modal {
  z-index: var(--z-modal);
}

.auth-modal {
  z-index: var(--z-auth-modal);
}

.bottom-engagement-bar {
  z-index: var(--z-bottom-bar);
}

@media print {
  .no-print { display: none !important; }
}

/* ============================================================
   APPENDED AUTH & PROFILE STYLES (MERGED)
   ============================================================ */

/* Auth overlay */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  overflow-y: auto;
}

.auth-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.auth-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.edit-card { max-width: 560px; }

.auth-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-size: 1.6rem;
  color: var(--muted);
  transition: var(--transition);
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-close:hover {
  color: var(--danger);
  background: var(--danger-soft);
  transform: rotate(90deg);
}

.auth-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-soft);
  padding: 0.35rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-panel { display: none; animation: fadeUp 0.3s ease; }
.auth-panel.active { display: block; }

.auth-panel h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.auth-sub {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap > i {
  position: absolute;
  left: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: var(--transition);
}

.input-wrap input {
  width: 100%;
  padding: 0.75rem 2.6rem 0.75rem 2.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.input-wrap input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.input-wrap input:focus ~ i,
.input-wrap input:focus + i { color: var(--primary); }

.input-wrap input.error {
  border-color: var(--danger);
  background: #fff5f5;
}

.pw-toggle {
  position: absolute;
  right: 0.7rem;
  color: var(--muted);
  padding: 0.3rem;
  border-radius: 6px;
  transition: var(--transition);
  font-size: 0.9rem;
}

.pw-toggle:hover { color: var(--primary); background: var(--primary-soft); }

.hint {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.optional { color: var(--muted); font-weight: 400; }

.pw-strength {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.pw-bar {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.pw-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width 0.3s ease, background 0.3s ease;
  background: var(--danger);
}

.pw-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 90px;
  text-align: right;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0.5rem 0 1rem;
  cursor: pointer;
}

.check-row input { margin-top: 0.2rem; accent-color: var(--primary); }
.check-row a { color: var(--primary); font-weight: 600; }
.check-row a:hover { text-decoration: underline; }

.btn-auth {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  margin-top: 0.4rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.36);
}

.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--text-soft);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text);
}

.auth-msg {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: shake 0.4s ease;
}

.auth-msg[hidden] { display: none; }

.auth-msg.error {
  background: var(--danger-soft);
  color: #b91c1c;
  border-left: 4px solid var(--danger);
}

.auth-msg.success {
  background: var(--success-soft);
  color: #15803d;
  border-left: 4px solid var(--success);
}

.auth-msg.info {
  background: var(--primary-soft);
  color: var(--primary-hover);
  border-left: 4px solid var(--primary);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-links a {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.auth-links a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.no-account-box {
  background: var(--warning-soft);
  border: 2px dashed var(--warning);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  animation: popIn 0.35s ease;
}

.no-account-icon {
  font-size: 2.6rem;
  color: var(--warning);
  margin-bottom: 0.6rem;
  animation: bounce 1.6s ease infinite;
}

.no-account-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.no-account-box p {
  color: #92400e;
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
}

.no-account-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.no-account-actions .btn-auth { width: auto; flex: 1; min-width: 130px; margin-top: 0; }

.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 1.2rem 0 1.5rem;
}

.steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}

.step small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.step.active > span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
}

.step.active small { color: var(--primary); }

.step.done > span {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.forgot-step { display: none; animation: fadeUp 0.3s ease; }
.forgot-step.active { display: block; }

.step-info {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 0.8rem;
  text-align: center;
}

.code-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.8rem 0 1rem;
}

.code-digit {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  outline: none;
  transition: var(--transition);
}

.code-digit:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.resend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resend-btn {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.resend-btn:hover:not(:disabled) { color: var(--primary-hover); text-decoration: underline; }
.resend-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.app { min-height: 100vh; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.8rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  font-family: var(--font-display);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.brand h1 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.brand p { font-size: 0.72rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 0.7rem; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  background: var(--primary-soft);
  color: var(--primary-hover);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
}

.app-header .btn-ghost {
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.profile-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.2rem 3rem;
}

.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: fadeUp 0.4s ease;
}

.profile-cover {
  height: 150px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #06b6d4 100%);
  position: relative;
}

.profile-avatar {
  position: absolute;
  bottom: -46px;
  left: 2rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-display);
  border: 5px solid #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.profile-body { padding: 3.6rem 2rem 2rem; }

.profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.profile-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.profile-handle { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.profile-bio { color: var(--text-soft); font-size: 0.9rem; max-width: 400px; }

.profile-head .btn-primary {
  width: auto;
  padding: 0.65rem 1.3rem;
  margin-top: 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.3rem 0;
}

.stat {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
}

.stat span { font-size: 0.78rem; color: var(--muted); }

.profile-details {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
}

.profile-details h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
}

.profile-details h3 i { color: var(--primary); }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  gap: 1rem;
}

.detail-row:last-child { border-bottom: none; }
.detail-row span { color: var(--text-soft); }
.detail-row strong { color: var(--text); font-weight: 600; text-align: right; }

.text-success { color: var(--success); }

.edit-section {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border);
}

.edit-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.edit-section h3 i { color: var(--primary); }

.modal-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.modal-actions .btn-auth { margin-top: 0; }

.success-card { text-align: center; max-width: 400px; }

.success-icon {
  font-size: 3.4rem;
  color: var(--success);
  margin-bottom: 0.8rem;
  animation: bounce 1s ease;
}

.success-card h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.4rem; }
.success-card p { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 1.2rem; }

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #0f172a;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  z-index: 3000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast i { color: #4ade80; }
.toast.error i { color: #f87171; }
.toast.warning i { color: #fbbf24; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn {
  from { opacity: 0; transform: scale(0.94) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 560px) {
  .auth-card { padding: 1.5rem 1.2rem; border-radius: var(--radius); }
  .field-row { grid-template-columns: 1fr; }
  .auth-panel h2 { font-size: 1.3rem; }
  .code-digit { width: 40px; height: 48px; font-size: 1.1rem; }
  .profile-avatar { width: 84px; height: 84px; font-size: 2rem; left: 1.2rem; bottom: -40px; }
  .profile-body { padding: 3rem 1.2rem 1.4rem; }
  .profile-head { flex-direction: column; }
  .profile-head .btn-primary { width: 100%; }
  .profile-stats { grid-template-columns: 1fr; }
  .app-header { padding: 0.8rem 1rem; }
  .brand h1 { font-size: 0.95rem; }
  .user-chip span { display: none; }
  .detail-row { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .detail-row strong { text-align: left; }
  .modal-actions { flex-direction: column-reverse; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }