/* ==========================================================================
   VENZ AI: MASTER PREMIUM GLOBAL STYLESHEET
   Version: 4.0.0 (Eggshell & Carbon Architecture)
   Total Coverage: Landing, Auth, Dashboard, Pricing, Legal, & Loading
   ========================================================================== */

/* ==========================================================================
   1. DESIGN SYSTEM VARIABLES & TOKENS
   ========================================================================== */
:root {
  /* --- COLOR PALETTE: SNOW & EGGSHELL (LIGHT MODE) --- */
  --bg-main: #fcfcfc;
  --bg-soft: #f5f5f7;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-nav: rgba(252, 252, 252, 0.85);
  --bg-overlay: rgba(255, 255, 255, 0.5);
  
  --border-light: rgba(0, 0, 0, 0.04);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  
  --text-main: #111111;
  --text-muted: #6e6e73;
  --text-inverse: #ffffff; /* For black buttons */
  
  /* --- BRAND & ACCENTS --- */
  --primary: #000000; 
  --primary-hover: #1f1f1f;
  --primary-active: #333333;
  
  --accent-base: #7c3aed;
  --accent-glow: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --accent-glow-hover: linear-gradient(135deg, #8b5cf6 0%, #f472b6 100%);
  
  /* Semantic Colors */
  --success-bg: rgba(34, 197, 94, 0.1);
  --success-text: #16a34a;
  --success-border: rgba(34, 197, 94, 0.2);
  
  --error-bg: rgba(239, 68, 68, 0.1);
  --error-text: #dc2626;
  --error-border: rgba(239, 68, 68, 0.2);
  
  --warning-bg: rgba(245, 158, 11, 0.1);
  --warning-text: #d97706;

  /* --- GEOMETRY & SPACING --- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px; /* Premium ultra-rounded corners */
  --radius-pill: 9999px;
  
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  
  /* --- OPTICS & SHADOWS --- */
  --glass-blur: blur(24px) saturate(180%);
  --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(236, 72, 153, 0.25);
  
  /* --- MOTION & EASING --- */
  --ease-magnetic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.4s var(--ease-magnetic);
  --transition-smooth: all 0.7s var(--ease-magnetic);
  
  /* --- TYPOGRAPHY --- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. DARK MODE AUTOMATION (CARBON THEME)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #070707;
    --bg-soft: #121212;
    --bg-card: rgba(20, 20, 20, 0.7);
    --bg-nav: rgba(10, 10, 10, 0.85);
    --bg-overlay: rgba(0, 0, 0, 0.6);
    
    --border-light: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --text-inverse: #000000; /* Contrast inversion for buttons */
    
    --primary: #ffffff;
    --primary-hover: #e5e5e5;
    --primary-active: #cccccc;
    
    --accent-glow: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
    
    --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, 0.9);
  }
}

/* ==========================================================================
   3. CSS RESET & GLOBAL NORMALIZATION
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 150px; /* Safe area for anchored nav */
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ==========================================================================
   4. ANALOG TEXTURE LAYER (FRACTAL NOISE)
   ========================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

@media (prefers-color-scheme: dark) {
  body::before { opacity: 0.04; }
}

/* Optional Colored Blobs for specific pages (like Auth/Loading) */
.background-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.background-glow::before,
.background-glow::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.background-glow::before {
  top: -20%; left: -10%;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  animation: floatGlowPrimary 20s ease-in-out infinite alternate;
}

.background-glow::after {
  bottom: -20%; right: -10%;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  animation: floatGlowSecondary 25s ease-in-out infinite alternate;
}

/* ==========================================================================
   5. LAYOUT & GRID UTILITIES
   ========================================================================== */
.container, .main-container, .page-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  flex: 1;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  margin-bottom: var(--space-24);
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin: var(--space-12) 0;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden, .hidden-by-plan {
  display: none !important;
}

/* ==========================================================================
   6. GLOBAL TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin-bottom: var(--space-6);
}

.hero-subtitle, .subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto var(--space-12);
  font-weight: 500;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-8);
  text-align: center;
}

.gradient-text {
  background: var(--accent-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ==========================================================================
   7. NAVIGATION ARCHITECTURE (PERFECT ALIGNMENT)
   ========================================================================== */
.landing-nav, .app-header {
  position: fixed; 
  top: var(--space-4); 
  left: 50%; 
  transform: translateX(-50%); /* CRITICAL: Core centering */
  width: min(1100px, calc(100% - var(--space-8))); 
  z-index: 1000;
  display: flex; 
  justify-content: space-between; 
  align-items: center; /* Vertical alignment master */
  padding: 14px var(--space-8);
  background: var(--bg-nav);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); /* Maximum pill shape */
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Prevent horizontal jump on hover */
.landing-nav:hover, .app-header:hover {
  transform: translateX(-50%) !important;
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

/* --- THE ALIGNMENT FIX --- */
.nav-brand, .logo-area, .logo-section {
  display: flex;
  align-items: center; /* Locks image and text together */
  gap: 12px;
}

.nav-brand img, .nav-logo, .brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.nav-brand span, .brand-name {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1; /* Eliminates baseline descender gap */
  font-size: 1.25rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
}

/* Nav Actions */
.nav-links, .header-right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a:not(.btn-primary) {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.nav-links a:not(.btn-primary):hover {
  color: var(--text-main);
}

/* ==========================================================================
   8. BUTTONS & PREMIUM CTAs
   ========================================================================== */
.btn-primary {
  background: var(--primary);
  color: var(--text-inverse) !important; /* FIXED: White on Dark, Dark on White */
  padding: 14px var(--space-8);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-xs);
  border: 1px solid transparent;
}

.btn-primary:hover { 
  transform: scale(1.05) translateY(-2px); 
  box-shadow: var(--shadow-sm);
  background: var(--primary-hover);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text-main);
  padding: 14px var(--space-8);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-main);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* --- MONETIZATION: GLOWING VIEW PLANS BUTTON --- */
.view-plans, .pricing-btn, #upgradeCta {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.view-plans::before, .pricing-btn::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: all 0.5s ease;
  z-index: -1;
}

.view-plans:hover, .pricing-btn:hover {
  border-color: #ec4899;
  color: var(--text-main);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px) scale(1.03);
}

.view-plans:hover::before, .pricing-btn:hover::before {
  left: 100%;
}

.btn-large, .big {
  padding: 18px var(--space-12);
  font-size: 1.1rem;
}

/* Social Login Buttons */
.btn-google, .btn-github {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: var(--space-3);
  transition: var(--transition-fast);
}

.btn-google:hover, .btn-github:hover {
  background: var(--bg-soft);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   9. MAGNETIC CARDS & GLASSMORPHISM (ROUNDED & INTERACTIVE)
   ========================================================================== */
.glass-panel, .feature-card, .pricing-card, .card, .main-card, .price-card, .login-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); /* SUPER ROUNDED */
  padding: var(--space-12);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
}

/* Outer Card Float */
.feature-card:hover, .pricing-card:hover, .card:hover, .price-card:not(.highlight):hover {
  transform: translateY(-12px) scale(1.015);
  border-color: var(--text-main);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

/* --- NESTED INNER CARDS (MULTI-LEVEL INTERACTION) --- */
.inner-card, .plan-row, .use-item, .info-card, .stat-item, .payment-box {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.inner-card:hover, .plan-row:hover, .use-item:hover, .info-card:hover {
  background: var(--bg-main);
  transform: translateY(-6px) scale(1.03); /* Individual Pop */
  border-color: var(--accent-base);
  box-shadow: var(--shadow-md);
  z-index: 20;
}

/* Specific Feature Card Details */
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.step-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: var(--space-6);
  letter-spacing: 0.1em;
  transition: var(--transition-fast);
}

.feature-card:hover .step-num {
  opacity: 1;
  color: var(--accent-base);
  transform: translateX(8px);
}

/* ==========================================================================
   10. PILLS, BADGES & USAGE STRIPS
   ========================================================================== */
.usage-strip, .plan-pill, .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

/* Central Landing Usage Strip */
#usageStrip {
  margin: 0 auto var(--space-12);
  animation: floatPill 6s ease-in-out infinite;
  display: flex;
  width: fit-content;
}

/* ==========================================================================
   11. FORMS & INPUTS (AUTH & REFINER)
   ========================================================================== */
.input-group {
  margin-bottom: var(--space-6);
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.forgot-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-base);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 16px var(--space-4);
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  transition: var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  background: var(--bg-main);
  border-color: var(--accent-base);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.password-wrapper {
  position: relative;
}

.toggle-eye {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.toggle-eye:hover { color: var(--text-main); }

/* Form States */
.success-msg {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  padding: 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-6);
  text-align: center;
}

.error-container {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
  padding: 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-6);
  text-align: center;
}

/* ==========================================================================
   12. PAGE: AUTHENTICATION (LOGIN / REGISTER / FORGOT)
   ========================================================================== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: var(--space-6);
}

.login-card {
  width: 100%;
  max-width: 480px;
  padding: var(--space-16) var(--space-12);
  animation: modalEnter 0.8s var(--ease-magnetic);
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.logo-section .brand-logo {
  width: 56px;
  height: auto;
}

.header-text {
  text-align: center;
  margin-bottom: var(--space-8);
}

.header-text h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-2);
}

.header-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--space-6) 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider span { padding: 0 var(--space-4); }

.terms-text, .footer-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-6);
}

.terms-text a, .footer-text a {
  color: var(--text-main);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: var(--transition-fast);
}

.terms-text a:hover, .footer-text a:hover {
  text-decoration-color: var(--text-main);
}

/* ==========================================================================
   13. PAGE: DASHBOARD
   ========================================================================== */
.dashboard {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
  padding-top: 0; /* Override body padding for dashboard */
}

.sidebar {
  background: var(--bg-nav);
  border-right: 1px solid var(--border-color);
  padding: 80px var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .logo { width: 40px; margin-bottom: var(--space-4); }

.upgrade-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  margin-top: auto;
}

.upgrade-card h4 { margin-bottom: var(--space-2); }
.upgrade-card p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--space-4); }

.main-content {
  padding: 80px var(--space-12);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-color);
}

.user {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.dashboard-grid .card { padding: var(--space-8); }
.dashboard-grid .card h3 { margin-bottom: var(--space-6); }

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-color);
}

.stat:last-child { border-bottom: none; padding-bottom: 0; }
.stat span { color: var(--text-muted); font-size: 0.9rem; }

.card.highlight {
  border-color: var(--accent-base);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
}

.history .empty-state {
  text-align: center;
  padding: var(--space-16) 0;
}

.empty-icon {
  font-size: 3rem;
  opacity: 0.5;
  margin-bottom: var(--space-4);
  filter: grayscale(1);
}

/* ==========================================================================
   14. PAGE: PRICING & PAYMENT
   ========================================================================== */
.pricing-wrapper {
  text-align: center;
  padding-bottom: var(--space-24);
}

.pricing-wrapper .header { margin-bottom: var(--space-16); }
.pricing-wrapper .brand-logo { margin: 0 auto var(--space-6); width: 48px; }

.pricing-stage { margin-top: var(--space-12); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-12) var(--space-8);
  align-items: center;
}

.price-card h3 { color: var(--text-muted); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-4); }
.price-card h2 { font-size: 3.5rem; letter-spacing: -0.05em; margin-bottom: var(--space-2); }
.price-card .price { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--space-4); }
.price-card .desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: var(--space-8); flex: 1; }

.buy-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  color: var(--text-main);
  border: 2px solid var(--border-color);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.price-card:hover .buy-btn {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

/* Highlighted Card */
.price-card.highlight {
  border: 4px solid var(--accent-base);
  transform: scale(1.05);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
}

.price-card.highlight:hover { transform: scale(1.08) translateY(-10px); }

.price-card.highlight .badge {
  position: absolute;
  top: 24px; right: -35px;
  background: var(--accent-base);
  color: #fff;
  padding: 8px 40px;
  font-size: 0.75rem;
  font-weight: 900;
  transform: rotate(45deg);
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-sm);
}

.price-card.highlight .buy-btn {
  background: var(--accent-glow);
  color: #fff;
  border: none;
}

.price-card.highlight .buy-btn:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Test Pack */
.test-card {
  max-width: 400px;
  margin: 0 auto var(--space-12);
  padding: var(--space-8);
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Payment Specific */
.payment-box {
  background: linear-gradient(135deg, rgba(124,92,255,0.1), rgba(236,72,153,0.05));
  border-color: rgba(124,58,237,0.3);
}

.price-block h1 { font-size: 4rem; margin-bottom: var(--space-2); }
.trust-row { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-top: var(--space-6); }

/* ==========================================================================
   15. PAGE: LOADING & REFINER
   ========================================================================== */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 75vh;
}

.loading-card {
  text-align: center;
  max-width: 480px;
}

/* Advanced Loader Rings */
.loader-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-ring {
  position: absolute;
  width: 100%; height: 100%;
  border: 4px solid var(--bg-soft);
  border-top: 4px solid var(--accent-base);
  border-radius: 50%;
  animation: premiumSpin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.loader-core {
  width: 24px; height: 24px;
  background: var(--accent-glow);
  border-radius: 50%;
  animation: pulseCore 2s ease-in-out infinite alternate;
}

/* Progress Bar */
.progress-bar-container {
  width: 100%;
  height: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: var(--space-8) 0;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-glow);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.status-message { font-weight: 700; color: var(--accent-base); font-size: 1.1rem; }
.info-text { font-size: 0.9rem; color: var(--text-muted); }
.cancel-btn { margin-top: var(--space-6); font-size: 0.85rem; color: var(--text-muted); cursor: pointer; text-decoration: underline; }
.cancel-btn:hover { color: var(--error-text); }

/* ==========================================================================
   16. PAGE: ABOUT & PRIVACY
   ========================================================================== */
.about-page, .privacy-wrapper { padding: var(--space-12) 0; }
.about-wrapper, .privacy-card { max-width: 800px; margin: 0 auto; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-tags span {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}

.use-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.contact-card:hover { background: var(--bg-main); transform: translateY(-4px); border-color: var(--text-main); }
.contact-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; justify-content: center; align-items: center; background: var(--bg-card); box-shadow: var(--shadow-sm); }
.contact-card .label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; font-weight: 800; }
.contact-card .value { font-weight: 700; font-size: 1.1rem; }

/* Privacy Prose Formatting */
.policy-content section {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  transition: var(--transition-fast);
}

.policy-content section:hover { border-color: var(--text-muted); }
.policy-content h3 { color: var(--text-main); margin-bottom: var(--space-2); font-size: 1.2rem; }
.back-btn { margin-top: var(--space-8); display: inline-block; font-weight: 700; color: var(--text-muted); }
.back-btn:hover { color: var(--text-main); }

/* ==========================================================================
   17. ADVERTISING SLOTS
   ========================================================================== */
.ad-slot {
  margin: var(--space-12) auto;
  padding: var(--space-8);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(0,0,0,0.01);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: var(--transition-smooth);
}

.ad-slot:hover {
  background: var(--bg-soft);
  border-style: solid;
  border-color: var(--text-muted);
  transform: scale(1.01);
}

/* ==========================================================================
   18. ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes premiumSpin { 100% { transform: rotate(360deg); } }
@keyframes pulseCore { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(1.2); opacity: 1; } }

/* ==========================================================================
   19. FOOTER
   ========================================================================== */
footer, .footer {
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-24);
  background: var(--bg-soft);
}

.footer-content, .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-8);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer-left h3, .footer-brand h3 { font-size: 1.5rem; margin-bottom: var(--space-2); }
.footer-tagline { color: var(--text-muted); font-size: 0.95rem; }

.footer-right, .footer-links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-right a, .footer-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-right a:hover, .footer-links a:hover { color: var(--text-main); transform: translateY(-2px); }
.footer-bottom { text-align: center; margin-top: var(--space-12); font-size: 0.85rem; color: var(--text-muted); opacity: 0.6; }

/* ==========================================================================
   20. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
/* Large Tablets */
@media (max-width: 1024px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .price-card.highlight { transform: scale(1); }
  .price-card.highlight:hover { transform: translateY(-10px); }
  .pricing-grid { gap: var(--space-6); }
}

/* Mobile Devices */
@media (max-width: 768px) {
  body { padding-top: 120px; }
  .landing-nav, .app-header { width: calc(100% - 32px); padding: 12px 20px; }
  .nav-brand span { font-size: 1.1rem; }
  .nav-links { gap: var(--space-4); }
  
  .hero-title { font-size: clamp(3rem, 12vw, 4.5rem); }
  .split-layout, .dual-grid, .use-grid, .contact-row { grid-template-columns: 1fr; text-align: center; }
  
  .glass-panel, .feature-card, .pricing-card, .login-card { padding: var(--space-8) var(--space-6); }
  .btn-primary, .btn-secondary, .buy-btn { width: 100%; justify-content: center; }
  
  .footer-content { flex-direction: column; text-align: center; align-items: center; }
  .footer-right { justify-content: center; }
}

/* Small Mobile */
@media (max-width: 480px) {
  .nav-links a:not(.btn-primary) { display: none; } /* Hide text links, keep CTA */
  .hero-title { font-size: 2.8rem; }
}

/* ==========================================================================
   21. SCROLLBAR & ACCESSIBILITY
   ========================================================================== */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { 
  background: var(--border-color); 
  border-radius: 20px; 
  border: 4px solid var(--bg-main); 
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

@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;
  }
}
.nav-links {
  display: flex;
  align-items: center; /* Forces vertical center */
  gap: 28px;
  height: 100%;
}

.nav-links a:not(.btn-primary) {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1; /* Eliminates the invisible typographic gap */
  transition: var(--transition-fast);
}
.login-container {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Stops it from pulling down to dead-center */
  padding-top: 6vh; /* Pushes it exactly where it needs to be under the nav */
  min-height: calc(100vh - 150px);
}
/* Tactile Input Focus */
input:focus, textarea:focus, select:focus {
  outline: none;
  background: var(--bg-main);
  border-color: var(--accent-base);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08), 0 0 0 4px rgba(124, 58, 237, 0.1);
  transform: translateY(-2px) scale(1.01); /* Physically lifts the input towards the user */
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button "Squish" Effect on Click */
.btn-primary:active, 
.btn-google:active, 
.btn-github:active, 
.btn-secondary:active {
  transform: scale(0.96); /* Gives a satisfying physical click feel */
  transition: transform 0.1s ease;
}
/* ==========================================================================
   ULTRA-PREMIUM OPTICAL PATCH (Micro-interactions & Lighting)
   ========================================================================== */

/* 1. Custom Text Selection (Replaces default blue highlight with brand purple) */
::selection {
  background: rgba(124, 58, 237, 0.25);
  color: inherit;
}
::-moz-selection {
  background: rgba(124, 58, 237, 0.25);
  color: inherit;
}

/* 2. Glass Edge Lighting (Simulates physical glass thickness) */
.glass-panel, .feature-card, .price-card, .login-card, .inner-card, .sidebar {
  position: relative;
}
.glass-panel::after, .feature-card::after, .price-card::after, .login-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* Adds a microscopic white light-bleed to the top inner edge */
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15); 
  z-index: 10;
}

/* 3. The "Sheen" Sweep on Primary Buttons (Like Apple/Linear) */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -200%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: all 0.7s ease;
}
.btn-primary:hover::after {
  left: 200%; /* Sweeps the light across the button on hover */
}

/* 4. Muted Text Contrast Bump (Prevents eye strain on gray text) */
.text-muted, p, label, .info-text {
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5); /* Crispness in Light Mode */
}
@media (prefers-color-scheme: dark) {
  .text-muted, p, label, .info-text {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); /* Crispness in Dark Mode */
  }
}

/* 5. Smooth Focus Ring Physics for Inputs */
input:focus, textarea:focus, select:focus {
  /* Pulses the focus ring slightly when held */
  animation: focusPulse 2s infinite alternate; 
}
@keyframes focusPulse {
  0% { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); }
  100% { box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.2); }
}

/* 6. Hardware Acceleration for buttery-smooth scrolling & rendering */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* ==========================================================================
   PREMIUM SOCIAL LOGIN BUTTONS
   ========================================================================== */

.btn-google, .btn-github {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: var(--space-3);
  
  /* Smooth physics for the base button */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              border-color 0.3s ease;
}

/* 1. The Hover Lift & Shadow */
.btn-google:hover, .btn-github:hover {
  background: var(--bg-soft);
  border-color: var(--text-muted); /* Darkens the border slightly */
  transform: translateY(-3px) scale(1.01); /* Lifts up and towards the user */
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12); /* Soft ambient shadow */
}

/* 2. The Tactile "Squish" on Click */
.btn-google:active, .btn-github:active {
  transform: translateY(0) scale(0.97); /* Pushes into the screen */
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.05);
  transition: transform 0.1s ease; /* Lightning fast response */
}

/* 3. The Icon Micro-Interaction */
.btn-google img, .btn-github svg {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy easing */
}

.btn-google:hover img, .btn-github:hover svg {
  transform: scale(1.15) rotate(-5deg); /* Icon scales up and tilts playfully */
}
/* ==========================================================================
   VENZ AI: MASTER DESIGN SYSTEM (v5.0 - Ultra Premium)
   Theme: Pearl & Obsidian with Iris/Blush Mesh Accents
   Architecture: OOCSS + BEM Inspired, High-Fidelity Physics
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS & COLOR THEORY
   ========================================================================== */
:root {
  /* --- 1. BASE PALETTE (LIGHT: Pearl & Iris) --- */
  --bg-main: #fbfbfd; /* Apple-esque off-white */
  --bg-soft: #f0f0f5;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-nav: rgba(251, 251, 253, 0.85);
  
  /* Rich Brand Accents (Replacing basic B&W) */
  --brand-violet: #7c3aed;
  --brand-violet-hover: #6d28d9;
  --brand-pink: #ec4899;
  --brand-pink-hover: #db2777;
  --brand-indigo: #4f46e5;
  
  /* Gradients */
  --accent-glow: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-pink) 100%);
  --accent-glow-hover: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-violet) 100%);
  --mesh-light-1: radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.08), transparent 25%);
  --mesh-light-2: radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08), transparent 25%);
  
  /* Contrast & Text */
  --primary: #09090b; /* Rich almost-black */
  --primary-hover: #27272a;
  --text-main: #18181b;
  --text-muted: #71717a;
  --text-inverse: #ffffff;
  
  /* Borders & Dividers */
  --border-light: rgba(9, 9, 11, 0.04);
  --border-color: rgba(9, 9, 11, 0.08);
  --border-strong: rgba(9, 9, 11, 0.15);
  --border-brand: rgba(124, 58, 237, 0.3);
  
  /* Semantic Colors */
  --semantic-success: #10b981;
  --semantic-error: #ef4444;
  --semantic-warning: #f59e0b;
  --semantic-info: #3b82f6;

  /* --- 2. GEOMETRY & RADII --- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-2xl: 48px;
  --radius-pill: 9999px;

  /* --- 3. OPTICS, BLUR & SHADOWS (Multi-layered realistic depth) --- */
  --glass-blur: blur(28px) saturate(200%);
  --glass-edge: inset 0 1px 1px rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255,255,255,0.1);
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0,0,0,0.02);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.12), 0 12px 24px rgba(0,0,0,0.06);
  --shadow-brand: 0 8px 24px rgba(124, 58, 237, 0.25);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.02);

  /* --- 4. MOTION & PHYSICS --- */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-magnetic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  
  --time-fast: 0.15s;
  --time-normal: 0.3s;
  --time-slow: 0.6s;
  --time-epic: 1.2s;

  /* --- 5. TYPOGRAPHY --- */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --tracking-tight: -0.04em;
  --tracking-tighter: -0.06em;
  --leading-tight: 1.1;
  --leading-relaxed: 1.6;
}

/* ==========================================================================
   02. DARK MODE (OBSIDIAN & NEON)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #050507; /* Deep obsidian */
    --bg-soft: #111114;
    --bg-card: rgba(17, 17, 20, 0.6);
    --bg-nav: rgba(5, 5, 7, 0.85);
    
    --mesh-light-1: radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.15), transparent 30%);
    --mesh-light-2: radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.12), transparent 30%);
    
    --text-main: #ededf1;
    --text-muted: #8b8b93;
    --text-inverse: #050507;
    
    --primary: #ffffff;
    --primary-hover: #e4e4e7;
    
    --border-light: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    
    --glass-edge: inset 0 1px 1px rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255,255,255,0.02);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, 0.9), 0 12px 24px rgba(0,0,0,0.6);
  }
}

/* ==========================================================================
   03. RESET & HARDWARE ACCELERATION
   ========================================================================== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 150px; /* Safe area for Nav */
  position: relative;
}

/* Custom Purple Text Selection */
::selection { background: rgba(124, 58, 237, 0.3); color: var(--text-main); }
::-moz-selection { background: rgba(124, 58, 237, 0.3); color: var(--text-main); }

/* Custom Premium Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
  background: var(--border-strong); 
  border-radius: var(--radius-pill); 
  border: 3px solid var(--bg-main); 
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ==========================================================================
   04. ENVIRONMENT (TEXTURES & MESH GRADIENTS)
   ========================================================================== */
/* The Analog Grain */
body::after {
  content: ""; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.02; pointer-events: none; z-index: 9999;
}

/* The Breathing Premium Mesh Background */
.background-glow {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: var(--mesh-light-1), var(--mesh-light-2);
  background-size: 200% 200%;
  animation: meshBreathe 15s ease-in-out infinite alternate;
}

@keyframes meshBreathe {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ==========================================================================
   05. TYPOGRAPHY SYSTEM
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  letter-spacing: var(--tracking-tighter);
  line-height: 0.95;
  margin-bottom: var(--space-6);
  position: relative;
}

/* Enhanced Gradient Text with Glow */
.gradient-text {
  background: var(--accent-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}
.gradient-text::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; z-index: -1;
  background: var(--accent-glow); filter: blur(24px); opacity: 0.3;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto var(--space-12);
  font-weight: 500;
}

/* Sharpness Fix for modern displays */
.text-muted, p, label {
  text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}
@media (prefers-color-scheme: dark) {
  .text-muted, p, label { text-shadow: 0 1px 1px rgba(0,0,0,0.8); }
}

/* ==========================================================================
   06. NAVIGATION ARCHITECTURE (THE ALIGNMENT FIX)
   ========================================================================== */
.landing-nav, .app-header {
  position: fixed; top: var(--space-6); left: 50%; 
  transform: translateX(-50%); /* Core center lock */
  width: min(1200px, calc(100% - var(--space-8))); 
  z-index: 1000;
  display: flex; justify-content: space-between; align-items: center; 
  padding: 12px 24px;
  background: var(--bg-nav);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill); /* Elegant Pill Shape */
  box-shadow: var(--shadow-sm), var(--glass-edge);
  transition: var(--transition-normal);
}

.landing-nav:hover {
  transform: translateX(-50%) !important;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* The Holy Grail Vertical Alignment Fix */
.nav-brand, .logo-area {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo, .brand-logo {
  height: 32px; width: auto; display: block;
}
.nav-brand span, .brand-name {
  font-weight: 800; letter-spacing: -0.04em; font-size: 1.3rem;
  line-height: 1; /* Stops baseline descender shift */
  display: inline-flex; align-items: center;
  color: var(--text-main);
}

.nav-links {
  display: flex; align-items: center; gap: var(--space-8); height: 100%;
}
.nav-links a:not(.btn-primary) {
  display: inline-flex; align-items: center;
  color: var(--text-muted); font-size: 0.95rem; font-weight: 600;
  line-height: 1; text-decoration: none;
  transition: var(--transition-fast);
}
.nav-links a:not(.btn-primary):hover { color: var(--text-main); }

/* ==========================================================================
   07. BUTTONS & CONVERSION CTAs (PHYSICS & SHEEN)
   ========================================================================== */
.btn-primary {
  position: relative; overflow: hidden;
  background: var(--primary); color: var(--text-inverse) !important;
  padding: 14px 32px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

/* Premium Apple-style Light Sheen Sweep */
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -200%; width: 200%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg); transition: all 0.7s ease; z-index: 1;
}

.btn-primary:hover {
  transform: scale(1.04) translateY(-2px);
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover::after { left: 200%; }
.btn-primary:active { transform: scale(0.96); transition: var(--time-fast); }

/* Monetization "View Plans" Button */
.view-plans {
  background: var(--bg-soft); color: var(--text-main);
  border: 2px solid var(--border-color);
  padding: 12px 28px; border-radius: var(--radius-pill);
  font-weight: 800; cursor: pointer;
  transition: var(--transition-smooth);
}
.view-plans:hover {
  background: var(--bg-main);
  border-color: var(--brand-pink);
  color: var(--brand-violet);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px) scale(1.03);
}
.view-plans:active { transform: scale(0.96); }

/* ==========================================================================
   08. SOCIAL LOGIN BUTTONS (MICRO-INTERACTIONS)
   ========================================================================== */
.btn-google, .btn-github {
  width: 100%; padding: 14px; margin-bottom: var(--space-3);
  background: var(--bg-main); color: var(--text-main);
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-weight: 600; cursor: pointer;
  transition: transform var(--time-normal) var(--ease-magnetic), 
              box-shadow var(--time-normal) var(--ease-magnetic),
              border-color var(--time-normal);
}

.btn-google:hover, .btn-github:hover {
  background: var(--bg-soft);
  border-color: var(--text-muted);
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.btn-google:active, .btn-github:active {
  transform: translateY(0) scale(0.97); /* Squish */
  box-shadow: var(--shadow-xs);
  transition: transform 0.1s ease;
}

/* Icon Bouncy Pop */
.btn-google img, .btn-github svg { transition: transform 0.5s var(--ease-spring); }
.btn-google:hover img, .btn-github:hover svg { transform: scale(1.15) rotate(-5deg); }

/* ==========================================================================
   09. GLASSMORPHISM CARDS & CONTAINERS
   ========================================================================== */
.glass-panel, .feature-card, .price-card, .login-card, .card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); /* Heavy rounded modern look */
  padding: var(--space-12);
  position: relative; z-index: 1;
  transition: var(--transition-smooth);
  box-shadow: var(--glass-edge), var(--shadow-sm); /* Realistic glass edge lighting */
}

/* Float physics for main cards */
.feature-card:hover, .price-card:not(.highlight):hover, .card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--text-main);
  box-shadow: var(--glass-edge), var(--shadow-lg);
  z-index: 10;
}

/* Nested Inner Cards (The "Card within a Card" interaction) */
.inner-card, .plan-row, .use-item, .info-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6); margin-bottom: var(--space-4);
  cursor: pointer; position: relative;
  transition: var(--transition-smooth);
}

.inner-card:hover, .plan-row:hover {
  background: var(--bg-main);
  transform: translateY(-6px) scale(1.04); /* Independent lift */
  border-color: var(--brand-violet);
  box-shadow: var(--shadow-md);
  z-index: 20;
}

/* ==========================================================================
   10. FORMS & TACTILE INPUTS
   ========================================================================== */
.input-group { margin-bottom: var(--space-6); text-align: left; }
.input-group label {
  display: block; margin-bottom: var(--space-2);
  font-size: 0.9rem; font-weight: 700; color: var(--text-muted);
}

input, textarea, select {
  width: 100%; padding: 16px var(--space-4);
  background: var(--bg-soft); color: var(--text-main);
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  font-family: inherit; font-size: 1rem;
  box-shadow: var(--shadow-inner);
  transition: all 0.3s var(--ease-magnetic);
}

/* The Tactile Lift on Focus */
input:focus, textarea:focus, select:focus {
  outline: none;
  background: var(--bg-main);
  border-color: var(--brand-violet);
  transform: translateY(-2px) scale(1.01); /* Moves toward the user */
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08), 0 0 0 4px rgba(124, 58, 237, 0.15);
  animation: focusPulse 2s infinite alternate; /* Subtle breathing ring */
}

@keyframes focusPulse {
  0% { box-shadow: 0 10px 30px rgba(124,58,237,0.08), 0 0 0 3px rgba(124,58,237,0.1); }
  100% { box-shadow: 0 10px 30px rgba(124,58,237,0.08), 0 0 0 6px rgba(124,58,237,0.2); }
}

input::placeholder { color: var(--text-muted); opacity: 0.4; }

.password-wrapper { position: relative; }
.toggle-eye {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); cursor: pointer; transition: var(--transition-fast);
}
.toggle-eye:hover { color: var(--brand-violet); transform: translateY(-50%) scale(1.1); }

/* ==========================================================================
   11. AUTHENTICATION PAGES (LOGIN / REGISTER)
   ========================================================================== */
.login-container {
  display: flex; justify-content: center;
  align-items: flex-start; /* Stops dead-center pull */
  padding-top: 10vh; /* Pushes nicely below nav */
  min-height: calc(100vh - 150px);
}

.login-card {
  width: 100%; max-width: 480px;
  padding: var(--space-12);
  animation: modalEnter 1s var(--ease-magnetic) both;
}

.logo-section { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 24px; }
.logo-section .brand-logo { width: 56px; }

.header-text { text-align: center; margin-bottom: 32px; }
.header-text h2 { font-size: 2rem; margin-bottom: 8px; }

.divider {
  display: flex; align-items: center; text-align: center; margin: 32px 0;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
}
.divider::before, .divider::after { content: ""; flex: 1; border-bottom: 1px solid var(--border-color); }
.divider span { padding: 0 16px; }

/* ==========================================================================
   12. STAGGERED WATERFALL ANIMATIONS (For Login/Register Form)
   ========================================================================== */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95) translateY(40px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.stagger-1 { animation: slideUpFade 0.8s var(--ease-magnetic) 0.1s both; }
.stagger-2 { animation: slideUpFade 0.8s var(--ease-magnetic) 0.15s both; }
.stagger-3 { animation: slideUpFade 0.8s var(--ease-magnetic) 0.2s both; }
.stagger-4 { animation: slideUpFade 0.8s var(--ease-magnetic) 0.25s both; }
.stagger-5 { animation: slideUpFade 0.8s var(--ease-magnetic) 0.3s both; }
.stagger-6 { animation: slideUpFade 0.8s var(--ease-magnetic) 0.35s both; }
.stagger-7 { animation: slideUpFade 0.8s var(--ease-magnetic) 0.4s both; }

/* Global Scroll Animation */
.animate-on-scroll { 
  opacity: 0; transform: translateY(50px); 
  transition: opacity 1.2s var(--ease-magnetic), transform 1.2s var(--ease-magnetic); 
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }

/* ==========================================================================
   13. DASHBOARD ARCHITECTURE
   ========================================================================== */
.dashboard {
  display: grid; grid-template-columns: 300px 1fr;
  min-height: 100vh; padding-top: 0;
}

.sidebar {
  background: var(--bg-nav); border-right: 1px solid var(--border-color);
  padding: 80px 32px; display: flex; flex-direction: column; gap: 48px;
  backdrop-filter: var(--glass-blur); position: sticky; top: 0; height: 100vh;
}

.sidebar .nav-link {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  border-radius: var(--radius-md); color: var(--text-muted);
  font-weight: 700; transition: var(--transition-fast);
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
  background: var(--bg-soft); color: var(--text-main); transform: translateX(8px);
}

.main-content { padding: 60px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }

/* ==========================================================================
   14. PRICING & CONVERSION GRIDS
   ========================================================================== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px; margin-top: 80px;
}

.price-card.highlight {
  border: 4px solid var(--brand-violet);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  transform: scale(1.05);
}
.price-card.highlight:hover { transform: scale(1.08) translateY(-15px); }

/* ==========================================================================
   15. PILLS & USAGE STRIPS (Floating)
   ========================================================================== */
.usage-strip {
  margin: 0 auto 40px; padding: 10px 24px; width: fit-content;
  border-radius: var(--radius-pill); font-weight: 800; font-size: 0.85rem;
  background: var(--bg-soft); border: 1px solid var(--border-color);
  animation: floatPill 6s ease-in-out infinite;
}

@keyframes floatPill {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

/* ==========================================================================
   16. LOADERS & REFINER STATES
   ========================================================================== */
.loader-ring {
  width: 120px; height: 120px; border-radius: 50%;
  border: 6px solid var(--bg-soft); border-top: 6px solid var(--brand-violet);
  animation: premiumSpin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}
@keyframes premiumSpin { 100% { transform: rotate(360deg); } }

/* ==========================================================================
   17. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .price-card.highlight { transform: scale(1); }
}

@media (max-width: 768px) {
  body { padding-top: 120px; }
  .landing-nav { width: calc(100% - 32px); padding: 12px 20px; }
  .nav-links { gap: 16px; }
  .hero-title { font-size: 3.5rem; }
  .login-card { padding: 40px 24px; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ==========================================================================
   18. UTILITIES
   ========================================================================== */
.hidden { display: none !important; }
.hidden-by-plan { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

/* ==========================================================================
   END OF DESIGN SYSTEM
   ========================================================================== */

   .login-container {
  display: flex; 
  justify-content: center;
  align-items: center; /* Perfectly centers the card vertically */
  min-height: calc(100vh - 150px); /* Takes up exactly the remaining screen height */
  padding: 24px;
  margin-top: -60px; /* Slight optical lift so it feels perfectly centered to the human eye */
}
/* ==========================================================================
   19. CROSS-BROWSER OPTIMIZATIONS & FALLBACKS
   ========================================================================== */

/* Firefox Scrollbar Fallback (Since ::-webkit-scrollbar is Chrome/Safari only) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

/* iOS Safari Specific Fixes & Notches */
@supports (-webkit-touch-callout: none) {
  body {
    /* Fix for iOS 15+ viewport height bug */
    min-height: -webkit-fill-available;
    /* Respect iPhone safe areas (notches) */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .dashboard, .login-container {
    min-height: -webkit-fill-available;
  }
  
  /* Fix glassmorphism rendering artifacts on iOS */
  .glass-panel, .landing-nav, .app-header {
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    /* Transform translateZ fixes z-index bleed on Safari */
    transform: translateZ(0); 
  }
}

/* Remove default OS appearance for inputs (Fixes weird shadows on iOS) */
input[type="text"], 
input[type="email"], 
input[type="password"], 
textarea, 
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Prevent text selection highlighting on UI elements */
.btn-primary, 
.btn-secondary, 
.btn-google, 
.btn-github, 
.landing-nav, 
.theme-toggle-btn {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ==========================================================================
   20. ADVANCED RESPONSIVE DESIGN (MOBILE, TABLET, ULTRA-WIDE)
   ========================================================================== */

/* Ultra-Wide Displays (1440px and above) */
@media (min-width: 1440px) {
  .container, .main-container, .page-container, .landing-nav, .app-header {
    max-width: 1200px;
  }
  .hero-title {
    font-size: 7.5rem;
  }
}

/* Tablet Adjustments (768px to 1024px) */
@media (max-width: 1024px) {
  .split-layout {
    gap: var(--space-8);
  }
  .main-content {
    padding: 40px var(--space-6);
  }
  /* Force pricing grid to stack gracefully before it gets too squished */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Standard Mobile Adjustments (max-width: 768px) */
@media (max-width: 768px) {
  /* Force all grids into single columns */
  .split-layout, 
  .dual-grid, 
  .use-grid, 
  .contact-row, 
  .action-buttons {
    grid-template-columns: 1fr !important;
    gap: var(--space-4);
  }
  
  /* Tame padding on glass panels to save screen real estate */
  .feature-card, 
  .price-card, 
  .login-card, 
  .glass-panel,
  .inner-card {
    padding: var(--space-8) var(--space-6);
  }
  
  /* Fix Hero Spacing on Mobile */
  .hero-section {
    padding: 80px 0 60px;
  }
}

/* Small Mobile Adjustments (up to 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }
  
  /* Hide the text "VENZ AI", just show the logo to save space */
  .nav-brand span {
    display: none; 
  }
  
  /* Tighter Navigation */
  .landing-nav, .app-header {
    padding: 10px 16px;
    border-radius: var(--radius-lg);
  }

  .btn-primary, .btn-secondary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Tweak input sizes for thumb tapping */
  input, textarea, select {
    padding: 14px var(--space-3);
    /* 16px prevents iOS Safari from auto-zooming when clicking inputs */
    font-size: 16px !important; 
  }
}

/* ==========================================================================
   21. TOUCH DEVICE OPTIMIZATIONS
   ========================================================================== */

/* Handle Hover States on Touch Devices (Prevents "sticky" hovers on mobile) */
@media (hover: none) and (pointer: coarse) {
  /* Disable Y-axis lift on touch */
  .feature-card:hover, 
  .price-card:not(.highlight):hover, 
  .card:hover, 
  .inner-card:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
  }
  
  /* Disable sheen sweep on touch */
  .btn-primary:hover::after {
    left: -200%; 
  }
  
  /* Keep the tactile "squish" active (tap) animations */
  .btn-primary:active, 
  .inner-card:active,
  .btn-google:active, 
  .btn-github:active {
    transform: scale(0.96) !important;
  }
}
/* ==========================================================================
   MOBILE OPTIMIZATIONS (DASHBOARD & ABOUT PAGE FIXES)
   ========================================================================== */

@media (max-width: 1024px) {
  /* Hide sidebar on tablet and below */
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 768px) {
  /* --- DASHBOARD MOBILE FIXES --- */
  body.dashboard-page { padding-top: 0 !important; }
  .main-content { padding: 24px 16px; }
  
  /* Stack the topbar elements */
  .topbar { 
    flex-direction: column; 
    gap: 16px; 
    align-items: center; 
    text-align: center; 
    padding-bottom: 16px; 
  }
  
  /* Center the user profile */
  .topbar .user { 
    flex-direction: column; 
    gap: 8px; 
    justify-content: center; 
  }
  
  /* Center the theme toggle and logout button */
  .topbar-actions { 
    width: 100%; 
    justify-content: center; 
  }

  /* --- ABOUT US PAGE (CONTACT CARDS) FIX --- */
  .contact-row { 
    grid-template-columns: 1fr !important; 
    gap: 16px;
  }
  
  /* Stack icon and text vertically inside the card */
  .contact-row > a, 
  .contact-card,
  .contact-row > div { 
    flex-direction: column !important; 
    gap: 12px !important; 
    text-align: center; 
    align-items: center;
    padding: 24px 16px;
  }
  
  /* Force long emails (e.g., codewithclue@gmail.com) to wrap instead of overflowing */
  .contact-row .value, 
  .contact-card .value,
  .contact-row div { 
    word-break: break-word; 
    overflow-wrap: anywhere;
    width: 100%; 
  }
}
/* ==========================================================================
   02. DARK MODE AUTOMATION & MANUAL TOGGLE
   ========================================================================== */

/* 1. OS-Level Dark Mode (Fallback) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #050507; --bg-soft: #111114; --bg-card: rgba(17, 17, 20, 0.6); --bg-nav: rgba(5, 5, 7, 0.85);
    --mesh-light-1: radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.15), transparent 30%);
    --mesh-light-2: radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.12), transparent 30%);
    --text-main: #ededf1; --text-muted: #8b8b93; --text-inverse: #050507;
    --primary: #ffffff; --primary-hover: #e4e4e7;
    --border-light: rgba(255, 255, 255, 0.03); --border-color: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.15);
    --glass-edge: inset 0 1px 1px rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255,255,255,0.02);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, 0.9), 0 12px 24px rgba(0,0,0,0.6);
  }
}

/* 2. JS Manual Toggle - Dark Theme */
body.dark-theme {
  --bg-main: #050507; --bg-soft: #111114; --bg-card: rgba(17, 17, 20, 0.6); --bg-nav: rgba(5, 5, 7, 0.85);
  --mesh-light-1: radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.15), transparent 30%);
  --mesh-light-2: radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.12), transparent 30%);
  --text-main: #ededf1; --text-muted: #8b8b93; --text-inverse: #050507;
  --primary: #ffffff; --primary-hover: #e4e4e7;
  --border-light: rgba(255, 255, 255, 0.03); --border-color: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.15);
  --glass-edge: inset 0 1px 1px rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255,255,255,0.02);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, 0.9), 0 12px 24px rgba(0,0,0,0.6);
}

/* 3. JS Manual Toggle - Light Theme */
body.light-theme {
  --bg-main: #fbfbfd; --bg-soft: #f0f0f5; --bg-card: rgba(255, 255, 255, 0.75); --bg-nav: rgba(251, 251, 253, 0.85);
  --mesh-light-1: radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.08), transparent 25%);
  --mesh-light-2: radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08), transparent 25%);
  --text-main: #18181b; --text-muted: #71717a; --text-inverse: #ffffff;
  --primary: #09090b; --primary-hover: #27272a;
  --border-light: rgba(9, 9, 11, 0.04); --border-color: rgba(9, 9, 11, 0.08); --border-strong: rgba(9, 9, 11, 0.15);
  --glass-edge: inset 0 1px 1px rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255,255,255,0.1);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.12), 0 12px 24px rgba(0,0,0,0.06);
}
/* ==========================================================================
   AVATAR IMAGE FIT FIX
   ========================================================================== */
.profile-avatar, .avatar {
  overflow: hidden !important; /* Crops anything that spills out of the circle */
}

.profile-avatar img, .avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Ensures the image fills the circle perfectly without stretching */
  border-radius: 50% !important; /* Double safety to force the image itself to be round */
  display: block;
}
