/* ============================================
   AI COMPANION DIRECTORY - DESIGN SYSTEM
   Official Color Palette - January 2026
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (Official Design Tokens)
   ============================================ */
:root {
  /* ═══════════════════════════════════════════
     🖤 BACKGROUND SYSTEM
     ═══════════════════════════════════════════ */
  --bg-page: #0B0B0D;           /* Main page background */
  --bg-card: #111113;           /* Card background */
  --bg-card-hover: #16161A;     /* Chat bubble / hover background */
  --bg-sidebar: #0C0C0F;        /* Sidebar background */
  --bg-header: #0E0E11;         /* Header / navbar dark */
  --bg-input: #0C0C0F;          /* Input background */
  
  /* ═══════════════════════════════════════════
     🎨 PRIMARY BRAND COLORS
     ═══════════════════════════════════════════ */
  --brand-primary: #E24876;     /* Logo pink / primary accent */
  --brand-primary-hover: #FF4FA3; /* CTA hover / bright magenta */
  --brand-secondary: #6C3CF0;   /* Secondary accent (purple) */
  --brand-accent: #C7A14A;      /* Gold VIP icon color */
  
  /* ═══════════════════════════════════════════
     ⚪ TEXT COLORS
     ═══════════════════════════════════════════ */
  --text-primary: #FFFFFF;      /* Primary text */
  --text-body: #C8C8CC;         /* Secondary text */
  --text-muted: #9A9AA0;        /* Muted / description text */
  --text-disabled: #6C6C72;     /* Disabled / placeholders */
  
  /* ═══════════════════════════════════════════
     🧷 BORDER & DIVIDER COLORS
     ═══════════════════════════════════════════ */
  --border-color: #1C1C20;      /* Card border subtle */
  --border-input: #2A2A30;      /* Input box outline */
  --border-separator: #222226;  /* Separator line */
  
  /* ═══════════════════════════════════════════
     🟢 STATUS / SYSTEM COLORS
     ═══════════════════════════════════════════ */
  --status-success: #3CCF7E;    /* Success / online */
  --status-warning: #F4B444;    /* Warning */
  --status-danger: #FF5D5D;     /* Error */
  --status-info: #3F8CFF;       /* Info / blue */
  --status-online: #3CCF7E;     /* Online indicator */
  --status-premium: #C7A14A;    /* Gold - Premium/VIP */
  
  /* ═══════════════════════════════════════════
     🫦 EXTRA ACCENTS (Optional Use)
     ═══════════════════════════════════════════ */
  --accent-skin: #F3D3C2;       /* Light skin highlight */
  --accent-pink-gradient: #FF88B6; /* Card pink gradient tone */
  --accent-peach: #FFBDA4;      /* Peach accent glow */
  
  /* ═══════════════════════════════════════════
     SHADOWS & GLOWS
     ═══════════════════════════════════════════ */
  --glow-primary: rgba(226, 72, 118, 0.4);   /* Pink Glow */
  --glow-secondary: rgba(108, 60, 240, 0.3); /* Purple Glow */
  --glow-gold: rgba(199, 161, 74, 0.3);      /* Gold Glow */
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-pink-glow: 0px 4px 20px rgba(226, 72, 118, 0.4);
  
  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing - Compact Design */
  --spacing-xs: 0.2rem;
  --spacing-sm: 0.375rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.5rem;
  --spacing-2xl: 2rem;
  
  /* Border Radius - Glossy Look */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Layout - Compact */
  --header-height: 56px;
  --sidebar-width: 240px;
  
  /* Glassmorphism */
  --glass-bg: rgba(12, 12, 15, 0.8);
  --glass-blur: blur(12px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

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

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

/* ============================================
   BUTTONS - Official Brand Colors
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Primary Button - Logo Pink with Glow */
.btn-primary {
  background: var(--brand-primary);
  color: white;
  box-shadow: var(--shadow-pink-glow);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  box-shadow: 0px 6px 30px rgba(255, 79, 163, 0.5);
  transform: translateY(-2px);
}

/* Secondary Button - Purple */
.btn-secondary {
  background: var(--brand-secondary);
  color: white;
  box-shadow: 0px 4px 20px var(--glow-secondary);
}

.btn-secondary:hover {
  background: var(--brand-secondary);
  filter: brightness(1.15);
  box-shadow: 0px 6px 25px rgba(108, 60, 240, 0.5);
  transform: translateY(-2px);
}

/* Accent Button - Gold VIP */
.btn-accent {
  background: var(--brand-accent);
  color: var(--bg-page);
  font-weight: 700;
  box-shadow: 0px 4px 20px var(--glow-gold);
}

.btn-accent:hover {
  background: var(--brand-accent);
  filter: brightness(1.1);
  box-shadow: 0px 6px 25px rgba(199, 161, 74, 0.5);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--brand-secondary);
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Visit Button */
.btn-visit {
  background: var(--brand-primary);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  box-shadow: var(--shadow-pink-glow);
}

.btn-visit:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

/* ============================================
   FORM INPUTS
   ============================================ */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--bg-input);
  color: var(--text-body);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
  width: 100%;
  transition: all var(--transition-base);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(226, 72, 118, 0.2);
}

input::placeholder, textarea::placeholder {
  color: var(--text-disabled);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   PUBLIC LAYOUT - Main Grid
   ============================================ */
.public-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--header-height) 1fr auto;
  min-height: 100vh;
}

/* ============================================
   STICKY HEADER - Glassmorphism
   ============================================ */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  grid-column: 1 / -1;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  height: 100%;
  padding: 0 var(--spacing-xl);
  max-width: 1800px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.header-logo:hover {
  color: var(--brand-primary);
}

.header-logo svg {
  width: 40px;
  height: 40px;
}

/* Header Search */
.header-search {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  flex: 1;
  max-width: 500px;
  transition: all var(--transition-base);
}

.header-search:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(226, 72, 118, 0.15);
}

.header-search svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.25rem;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.header-search input:focus {
  outline: none;
  box-shadow: none;
}

.search-shortcut {
  background: var(--bg-sidebar);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* ============================================
   SIDEBAR - Dark Theme
   ============================================ */
.public-sidebar {
  grid-row: 2;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: var(--spacing-xl);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  padding: 0 var(--spacing-sm);
}

.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.sidebar-category-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
}

.sidebar-category-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar-category-item.active {
  background: rgba(226, 72, 118, 0.15);
  color: var(--brand-primary);
  border-left: 3px solid var(--brand-primary);
  margin-left: -3px;
}

.sidebar-category-item.active .category-icon {
  color: var(--brand-primary);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.category-icon svg {
  width: 18px;
  height: 18px;
}

.category-name {
  flex: 1;
}

.category-count {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* ============================================
   FILTER BY FEATURES - Custom Checkboxes
   ============================================ */
.feature-tags-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.feature-tag-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-base);
  cursor: pointer;
  user-select: none;
}

.feature-tag-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.feature-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--bg-page);
  border: 2px solid var(--border-input);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.checkbox-tick {
  width: 12px;
  height: 12px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast);
}

.feature-checkbox:checked + .checkbox-custom {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 0 10px var(--glow-primary);
}

.feature-checkbox:checked + .checkbox-custom .checkbox-tick {
  opacity: 1;
  transform: scale(1);
}

.feature-tag-item:hover .checkbox-custom {
  border-color: var(--brand-primary);
}

.feature-tag-item:has(.feature-checkbox:checked) {
  background: rgba(226, 72, 118, 0.1);
  color: var(--text-primary);
}

.feature-tag-name {
  flex: 1;
}

.feature-tag-count {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.clear-filters-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  width: 100%;
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.clear-filters-btn:hover {
  border-color: var(--status-danger);
  color: var(--status-danger);
  background: rgba(255, 93, 93, 0.1);
}

.clear-filters-btn svg {
  width: 14px;
  height: 14px;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
}

.sidebar-cta {
  background: linear-gradient(135deg, rgba(226, 72, 118, 0.15) 0%, rgba(108, 60, 240, 0.15) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  text-align: center;
}

.sidebar-cta h5 {
  font-size: 0.875rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.sidebar-cta p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.public-main {
  grid-row: 2;
  padding: var(--spacing-xl);
  overflow-y: auto;
}

/* ============================================
   HERO SECTION - Brand Gradients
   ============================================ */
.hero-section {
  position: relative;
  padding: var(--spacing-2xl) 0;
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: rgba(226, 72, 118, 0.15);
  border: 1px solid rgba(226, 72, 118, 0.3);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--brand-primary);
  margin-bottom: var(--spacing-lg);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 50%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-body);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Search */
.hero-search-container {
  margin-bottom: var(--spacing-xl);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  max-width: 550px;
  margin: 0 auto;
  transition: all var(--transition-base);
}

.hero-search:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(226, 72, 118, 0.15);
}

.hero-search svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.5rem;
  font-size: 1rem;
}

.hero-search input:focus {
  outline: none;
  box-shadow: none;
}

.hero-search .search-btn {
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-pink-glow);
}

.hero-search .search-btn:hover {
  background: var(--brand-primary-hover);
  transform: scale(1.02);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Hero Background Effects */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero-glow-1 {
  width: 400px;
  height: 400px;
  background: var(--brand-primary);
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-glow-2 {
  width: 350px;
  height: 350px;
  background: var(--brand-secondary);
  bottom: -50px;
  right: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(108, 60, 240, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 60, 240, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.results-section {
  position: relative;
}

.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.results-title h2 {
  margin-bottom: var(--spacing-xs);
}

.results-meta {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.results-meta .highlight {
  color: var(--brand-primary);
  font-weight: 600;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-secondary);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
  box-shadow: var(--shadow-pink-glow);
}

/* ============================================
   TOOLS GRID
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

/* ============================================
   TOOL CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-secondary);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--glow-secondary);
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-lg);
}

.tool-card.featured {
  border-color: var(--brand-primary);
  box-shadow: 0 0 20px var(--glow-primary);
}

.tool-card.featured:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px var(--glow-primary);
}

.featured-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.featured-badge svg {
  width: 12px;
  height: 12px;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-header {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.card-logo {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--bg-sidebar);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.card-logo svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

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

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body {
  flex: 1;
  margin-bottom: var(--spacing-md);
}

.card-description {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* ============================================
   PRICING TAGS
   ============================================ */
.pricing-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.pricing-free {
  background: rgba(60, 207, 126, 0.15);
  color: var(--status-success);
}

.pricing-freemium {
  background: rgba(108, 60, 240, 0.15);
  color: var(--brand-secondary);
}

.pricing-paid {
  background: rgba(199, 161, 74, 0.15);
  color: var(--brand-accent);
}

.pricing-enterprise {
  background: rgba(226, 72, 118, 0.15);
  color: var(--brand-primary);
}

/* ============================================
   RATINGS - Stars
   ============================================ */
.rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.rating-star {
  color: var(--brand-accent);
}

.rating-star svg {
  width: 14px;
  height: 14px;
}

.rating-star.empty {
  color: var(--border-input);
}

.rating-star.half {
  position: relative;
}

.rating-star.half svg {
  clip-path: inset(0 50% 0 0);
}

.rating-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
}

/* ============================================
   TOOL DETAIL PAGE
   ============================================ */
.tool-detail {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-xl);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-primary);
}

.breadcrumb .separator {
  color: var(--border-color);
}

.breadcrumb .current {
  color: var(--text-body);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.tool-header-main {
  display: flex;
  gap: var(--spacing-lg);
  flex: 1;
}

.tool-logo-large {
  width: 100px;
  height: 100px;
  min-width: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.tool-logo-large svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
}

.tool-header-info {
  flex: 1;
}

.tool-badges {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-featured {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
}

.badge-category {
  background: var(--brand-secondary);
  color: white;
  text-decoration: none;
}

.badge-category:hover {
  background: var(--brand-secondary);
  filter: brightness(1.15);
}

.badge-primary {
  background: var(--brand-primary);
  color: white;
}

.badge-secondary {
  background: var(--brand-secondary);
  color: white;
}

.badge-accent {
  background: var(--brand-accent);
  color: var(--bg-page);
}

.badge-success {
  background: rgba(60, 207, 126, 0.2);
  color: var(--status-success);
}

.badge-danger {
  background: rgba(255, 93, 93, 0.2);
  color: var(--status-danger);
}

.tool-name {
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

.tool-tagline {
  font-size: 1.125rem;
  color: var(--text-body);
  margin-bottom: var(--spacing-sm);
}

.tool-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.rating-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tool-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.tool-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--spacing-xl);
}

.tool-main {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.tool-section h2 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
}

.tool-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--status-success);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tag {
  background: var(--brand-secondary);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Tool Sidebar */
.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.tool-info-card,
.tool-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
}

.tool-info-card h3,
.tool-cta-card h3 {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.info-item dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.info-item dd {
  font-size: 0.9375rem;
  color: var(--text-body);
}

.info-item dd a {
  color: var(--brand-primary);
}

.tool-cta-card {
  background: linear-gradient(135deg, rgba(226, 72, 118, 0.1) 0%, rgba(108, 60, 240, 0.1) 100%);
  border-color: var(--brand-primary);
  text-align: center;
}

.tool-cta-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

/* Related Section */
.related-section {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-2xl);
  border-top: 1px solid var(--border-color);
}

.related-section h2 {
  margin-bottom: var(--spacing-lg);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

/* Related Companions List - Compact Cards */
.related-companions-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.related-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
}

.related-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-primary);
  transform: translateX(4px);
}

.related-card-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card-hover);
}

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

.related-card-avatar svg {
  width: 100%;
  height: 100%;
  padding: 12px;
  color: var(--text-muted);
}

.related-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--status-success);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
}

.related-card:hover .related-online-dot {
  border-color: var(--bg-card-hover);
}

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

.related-card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-card-app {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 var(--spacing-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.related-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--brand-accent);
  font-weight: 600;
}

.related-rating svg {
  width: 12px;
  height: 12px;
  fill: var(--brand-accent);
  color: var(--brand-accent);
}

.related-card-meta .pricing-tag {
  font-size: 0.6875rem;
  padding: 2px 6px;
}

.related-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.related-card-arrow svg {
  width: 16px;
  height: 16px;
}

.related-card:hover .related-card-arrow {
  color: var(--brand-primary);
  transform: translateX(4px);
}

/* Related Section Responsive */
@media (max-width: 768px) {
  .related-card {
    padding: var(--spacing-sm);
  }
  
  .related-card-avatar {
    width: 48px;
    height: 48px;
  }
  
  .related-card-name {
    font-size: 0.875rem;
  }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-2xl);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-lg);
  color: var(--text-muted);
}

.empty-icon svg {
  width: 100%;
  height: 100%;
}

.empty-state h3 {
  margin-bottom: var(--spacing-sm);
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.error-content {
  text-align: center;
  max-width: 400px;
}

.error-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  color: var(--status-danger);
}

.error-icon svg {
  width: 100%;
  height: 100%;
}

.error-content h1 {
  margin-bottom: var(--spacing-sm);
}

.error-content p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   LOADING INDICATOR
   ============================================ */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  color: var(--text-muted);
}

.loading-indicator.hidden {
  display: none;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================
   FOOTER
   ============================================ */
.public-footer {
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-2xl) 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.footer-brand svg {
  width: 32px;
  height: 32px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-xs);
}

.footer-credit {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ============================================
   ADMIN LAYOUT
   ============================================ */
.admin-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
}

.admin-sidebar-header {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.admin-logo svg {
  width: 32px;
  height: 32px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-base);
}

.admin-nav-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.admin-nav-item.active {
  background: rgba(226, 72, 118, 0.15);
  color: var(--brand-primary);
}

.admin-nav-item svg {
  width: 20px;
  height: 20px;
}

.admin-nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--spacing-md) 0;
}

.admin-main {
  padding: var(--spacing-xl);
  overflow-y: auto;
}

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

.admin-header h1 {
  font-size: 1.5rem;
}

/* ============================================
   ADMIN CARDS & STATS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(108, 60, 240, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: var(--brand-secondary);
}

.stat-card-icon svg {
  width: 20px;
  height: 20px;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.stat-card-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.stat-card.success .stat-card-icon {
  background: rgba(60, 207, 126, 0.15);
  color: var(--status-success);
}

.stat-card.danger .stat-card-icon {
  background: rgba(255, 93, 93, 0.15);
  color: var(--status-danger);
}

/* ============================================
   ADMIN TABLES
   ============================================ */
.admin-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--bg-sidebar);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--bg-card-hover);
}

.table-tool-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.table-tool-logo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--bg-sidebar);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.table-tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.table-tool-logo svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.table-tool-name {
  font-weight: 600;
  color: var(--text-primary);
}

.table-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.table-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.table-action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--brand-secondary);
}

.table-action-btn.danger:hover {
  background: rgba(255, 93, 93, 0.1);
  color: var(--status-danger);
  border-color: var(--status-danger);
}

.table-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-published {
  background: rgba(60, 207, 126, 0.15);
  color: var(--status-success);
}

.status-draft {
  background: rgba(255, 93, 93, 0.15);
  color: var(--status-danger);
}

/* ============================================
   ADMIN FORMS
   ============================================ */
.admin-form,
.tool-form {
  max-width: 900px;
}

/* Fix admin form SVG icons - constrain all SVGs */
.admin-main svg {
  max-width: 24px;
  max-height: 24px;
  flex-shrink: 0;
}

.admin-main h1 svg,
.admin-main h2 svg,
.admin-main h3 svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.admin-main .card-logo svg {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
}

.admin-main .btn svg {
  width: 16px;
  height: 16px;
}

/* Admin tool preview header */
.admin-main .card .flex.items-center.gap-lg > .card-logo {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 12px;
  background-color: var(--bg-sidebar);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin-main .card .flex.items-center.gap-lg > .card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.admin-main .card .flex.items-center.gap-lg > .card-logo svg {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  color: var(--text-muted);
}

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.form-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* Toggle Switch */
.toggle-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--border-input);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: all var(--transition-base);
}

.toggle.active {
  background: var(--brand-primary);
  box-shadow: 0 0 10px var(--glow-primary);
}

.toggle.active::after {
  left: 25px;
}

.toggle-label {
  font-size: 0.875rem;
  color: var(--text-body);
}

/* Image Preview */
.image-preview {
  width: 120px;
  height: 120px;
  background: var(--bg-sidebar);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-sm);
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.image-preview svg {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}

/* ============================================
   AUTH PAGES - Login/Register
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.auth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

.auth-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--brand-primary);
  top: -150px;
  right: -150px;
  animation: float 12s ease-in-out infinite;
}

.auth-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--brand-secondary);
  bottom: -100px;
  left: -100px;
  animation: float 15s ease-in-out infinite reverse;
}

.auth-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(108, 60, 240, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 60, 240, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: var(--spacing-xl);
}

.auth-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.auth-logo svg {
  width: 48px;
  height: 48px;
}

.auth-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.auth-form .form-group {
  margin-bottom: var(--spacing-md);
}

.auth-form .btn {
  width: 100%;
  margin-top: var(--spacing-md);
}

.auth-footer {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.auth-footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--brand-primary);
  font-weight: 500;
}

.auth-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--spacing-md);
}

.auth-security svg {
  width: 14px;
  height: 14px;
}

/* Auth Form Fields */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.auth-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
}

.auth-label svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.auth-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(226, 72, 118, 0.15);
}

.auth-input::placeholder {
  color: var(--text-disabled);
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  width: 100%;
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border: none;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: var(--spacing-sm);
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(226, 72, 118, 0.35);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit svg {
  width: 18px;
  height: 18px;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-back-link:hover {
  color: var(--brand-primary);
}

.auth-back-link svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.auth-error {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  color: #EF4444;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

.auth-error svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   ALERTS & TOASTS
   ============================================ */
.alert {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

.alert-success {
  background: rgba(60, 207, 126, 0.1);
  border: 1px solid rgba(60, 207, 126, 0.3);
  color: var(--status-success);
}

.alert-danger {
  background: rgba(255, 93, 93, 0.1);
  border: 1px solid rgba(255, 93, 93, 0.3);
  color: var(--status-danger);
}

.alert-warning {
  background: rgba(244, 180, 68, 0.1);
  border: 1px solid rgba(244, 180, 68, 0.3);
  color: var(--status-warning);
}

.toast-container {
  position: fixed;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  animation: slideIn 0.3s ease;
}

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

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 13, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.125rem;
}

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

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

.modal-body {
  padding: var(--spacing-lg);
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-center { text-align: center; }
.text-primary { color: var(--brand-primary); }
.text-secondary { color: var(--brand-secondary); }
.text-accent { color: var(--brand-accent); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--status-success); }
.text-danger { color: var(--status-danger); }
.text-warning { color: var(--status-warning); }

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-sidebar);
}

::-webkit-scrollbar-thumb {
  background: var(--border-input);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-secondary);
}

/* Text Selection */
::selection {
  background: var(--brand-primary);
  color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
  .tool-content {
    grid-template-columns: 1fr;
  }
  
  .tool-sidebar {
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .tool-info-card,
  .tool-cta-card {
    flex: 1;
    min-width: 280px;
  }
}

@media (max-width: 992px) {
  .public-layout {
    grid-template-columns: 1fr;
  }
  
  .public-sidebar {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    z-index: 99;
    box-shadow: var(--shadow-elevated);
  }
  
  .public-sidebar.open {
    display: flex;
  }
  
  .admin-layout {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    display: none;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-search {
    display: none;
  }
  
  .header-inner {
    padding: 0 var(--spacing-md);
  }
  
  .public-main {
    padding: var(--spacing-md);
  }
  
  .hero-section {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-stats {
    gap: var(--spacing-md);
  }
  
  .stat-divider {
    display: none;
  }
  
  .results-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-pills {
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
  }
  
  .tool-header {
    flex-direction: column;
  }
  
  .tool-header-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .tool-badges {
    justify-content: center;
  }
  
  .tool-actions {
    width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-body);
  cursor: pointer;
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: flex;
  }
}

.mobile-menu-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ============================================
   PROFILE HERO - Dating-App Style for AI Companions
   ============================================ */
.companion-detail {
  max-width: 1400px;
}

/* ============================================
   DESIGN E: PREMIUM PROFILE - Dating-app inspired
   Conversion-focused layout with blurred backdrop
   ============================================ */

.profile-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

/* Blurred Background Backdrop */
.profile-hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: blur(60px);
  opacity: 0.15;
  transform: scale(1.1);
  z-index: 0;
}

/* Profile Card - Main Container */
.profile-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(17, 17, 19, 0.85), rgba(12, 12, 15, 0.95));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  filter: blur(60px);
  opacity: 0.15;
  z-index: -1;
}

/* Left Column: Avatar & Stats */
.profile-left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.avatar-container {
  position: relative;
}

.avatar-frame {
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid rgba(226, 72, 118, 0.4);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px var(--glow-primary);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}

.avatar-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
}

/* Avatar Badges - Positioned on avatar */
.avatar-badges {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--status-success);
}

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--status-success);
  border-radius: 50%;
  animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(199, 161, 74, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-accent);
}

.score-badge svg {
  width: 14px;
  height: 14px;
  color: var(--brand-accent);
}

/* Stats Bar under avatar */
.stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Right Column: Profile Info */
.profile-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Header Row: Logo + Title */
.header-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.app-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.app-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-text h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  line-height: 1.2;
}

.header-text .verified {
  color: var(--status-info);
  display: inline-flex;
}

.header-text .verified svg {
  width: 20px;
  height: 20px;
}

.char-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(108, 60, 240, 0.15);
  border: 1px solid rgba(108, 60, 240, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.char-badge .label {
  color: var(--text-muted);
}

.char-badge .value {
  color: var(--text-primary);
  font-weight: 600;
}

/* Bio Line */
.bio-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--text-body);
}

.bio-line .dot {
  color: var(--brand-primary);
}

/* Tagline Box */
.tagline-box {
  padding: 1rem;
  background: rgba(226, 72, 118, 0.1);
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.tagline-box p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-primary);
  margin: 0;
}

/* Features Row */
.features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-pill svg {
  width: 14px;
  height: 14px;
}

.feature-pill.voice {
  background: rgba(108, 60, 240, 0.15);
  border-color: rgba(108, 60, 240, 0.3);
  color: var(--brand-secondary);
}

.feature-pill.video {
  background: rgba(63, 140, 255, 0.15);
  border-color: rgba(63, 140, 255, 0.3);
  color: var(--status-info);
}

.feature-pill.roleplay {
  background: rgba(199, 161, 74, 0.15);
  border-color: rgba(199, 161, 74, 0.3);
  color: var(--brand-accent);
}

.feature-pill.nsfw {
  background: rgba(255, 93, 93, 0.15);
  border-color: rgba(255, 93, 93, 0.3);
  color: var(--status-danger);
}

.feature-pill.sfw {
  background: rgba(60, 207, 126, 0.2);
  border-color: rgba(60, 207, 126, 0.4);
  color: var(--status-success);
}

/* Scores Grid - 2x2 */
.scores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.score-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.score-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.score-label {
  color: var(--text-body);
}

.score-value {
  color: var(--text-primary);
  font-weight: 700;
}

.score-bar-track {
  height: 6px;
  background: var(--bg-sidebar);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* CTA Section */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover));
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px var(--glow-primary);
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-primary);
}

.cta-button svg {
  width: 20px;
  height: 20px;
}

/* Secondary Actions */
.secondary-actions {
  display: flex;
  gap: 0.75rem;
}

.sec-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.sec-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-secondary);
  color: var(--text-primary);
}

.sec-btn svg {
  width: 16px;
  height: 16px;
}

.sec-btn.voice-sample {
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
}

.sec-btn.voice-sample:hover {
  background: rgba(108, 60, 240, 0.15);
}

/* Tags Strip */
.tags-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tags-strip .tag {
  padding: 0.375rem 0.75rem;
  background: var(--bg-sidebar);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============================================
   LOWER SECTION: Capabilities & Personality
   Design E: 2-column grid layout
   ============================================ */
.lower-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--spacing-lg);
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--brand-primary);
}

/* Capabilities Chips */
.caps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cap-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
}

.cap-chip svg {
  width: 14px;
  height: 14px;
}

.cap-chip.available {
  border-color: rgba(60, 207, 126, 0.3);
  color: var(--status-success);
}

.cap-chip.unavailable {
  opacity: 0.4;
  color: var(--text-muted);
}

.cap-chip.nsfw {
  border-color: rgba(255, 93, 93, 0.3);
  color: var(--status-danger);
}

/* Personality Tags */
.personality-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.p-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-sidebar);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-body);
}

/* Alternating colors for personality tags */
.p-tag:nth-child(odd) {
  background: rgba(226, 72, 118, 0.1);
  color: var(--brand-primary);
}

.p-tag:nth-child(even) {
  background: rgba(108, 60, 240, 0.1);
  color: var(--brand-secondary);
}

/* Legacy support for old class names */
.profile-hero-info,
.profile-features,
.profile-scores,
.profile-tags,
.profile-secondary-actions {
  /* Fallback styles if old markup is used */
}

/* ============================================
   Old ProfileHero fallback - keeping for compatibility
   ============================================ */
.profile-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: linear-gradient(
    135deg,
    rgba(17, 17, 19, 0.85) 0%,
    rgba(12, 12, 15, 0.95) 100%
  );
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

/* Portrait Frame - Legacy support */
.profile-hero-portrait {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.portrait-frame {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 3px solid rgba(226, 72, 118, 0.3);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 40px var(--glow-primary);
}

.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}

.portrait-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
}

/* Online Status Badge - Legacy */
.online-status {
  position: absolute;
  bottom: var(--spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--status-online);
}

/* Average Score Badge - Legacy */
.avg-score-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-accent);
  border: 1px solid rgba(199, 161, 74, 0.3);
}

.avg-score-badge svg {
  width: 12px;
  height: 12px;
  color: var(--brand-accent);
}

/* Portrait Stats - Legacy */
.portrait-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
}

.portrait-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.portrait-stat-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.portrait-stat-label {
  font-size: 0.5625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.portrait-stat-divider {
  width: 1px;
  height: 18px;
  background: var(--border-color);
}

/* Gallery Preview - Legacy */
.gallery-preview {
  display: flex;
  justify-content: center;
}

.gallery-trigger {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.625rem 1.25rem;
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-trigger:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-secondary);
  color: var(--text-primary);
}

.gallery-trigger svg {
  width: 18px;
  height: 18px;
}

/* Profile Info - Legacy */
.profile-hero-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: 0;
}

/* App Header - Legacy */
.profile-app-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.app-logo-small {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-logo-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name Row - Legacy */
.profile-name-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.verified-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--status-info);
  flex-shrink: 0;
}

.verified-badge svg {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 6px rgba(63, 140, 255, 0.3));
}

/* Character Badge - Legacy */
.profile-character-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, rgba(108, 60, 240, 0.15) 0%, rgba(226, 72, 118, 0.1) 100%);
  border: 1px solid rgba(108, 60, 240, 0.3);
  border-radius: var(--radius-full);
  width: fit-content;
}

.profile-character-badge .character-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-secondary);
}

.profile-character-badge .character-icon svg {
  width: 14px;
  height: 14px;
}

.profile-character-badge .character-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-character-badge .character-name {
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 700;
}

/* Subheader */
.profile-subheader {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--text-body);
  font-weight: 500;
  margin: 0;
}

.profile-subheader .bullet {
  color: var(--brand-primary);
  opacity: 0.7;
}

/* Tagline */
.profile-tagline {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
  padding-left: var(--spacing-xs);
  border-left: 2px solid var(--brand-primary);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Feature Pills */
.profile-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0.25rem 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-pill svg {
  width: 10px;
  height: 10px;
}

.feature-pill.voice {
  background: rgba(108, 60, 240, 0.15);
  border-color: rgba(108, 60, 240, 0.3);
  color: var(--brand-secondary);
}

.feature-pill.video {
  background: rgba(63, 140, 255, 0.15);
  border-color: rgba(63, 140, 255, 0.3);
  color: var(--status-info);
}

.feature-pill.roleplay {
  background: rgba(199, 161, 74, 0.15);
  border-color: rgba(199, 161, 74, 0.3);
  color: var(--brand-accent);
}

.feature-pill.nsfw {
  background: rgba(255, 93, 93, 0.15);
  border-color: rgba(255, 93, 93, 0.3);
  color: var(--status-danger);
}

.feature-pill.sfw {
  background: rgba(60, 207, 126, 0.2);
  border-color: rgba(60, 207, 126, 0.4);
  color: var(--status-success);
}

/* Score Metrics - Compact */
.profile-scores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xs) var(--spacing-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
}

.score-bar-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.score-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-label {
  font-size: 0.6875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.score-value {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.score-bar-track {
  height: 4px;
  background: var(--bg-sidebar);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* Chat CTA Button - Compact & Clean */
.chat-cta-button {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 12px rgba(226, 72, 118, 0.4);
  position: relative;
  overflow: hidden;
}

.chat-cta-button:hover {
  background: linear-gradient(135deg, var(--brand-primary-hover) 0%, var(--brand-primary) 100%);
  box-shadow: 0 6px 24px rgba(255, 79, 163, 0.5);
  transform: translateY(-2px);
}

.chat-cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(226, 72, 118, 0.4);
}

.cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
}

.cta-icon svg {
  width: 14px;
  height: 14px;
}

.cta-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.cta-main {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
}

.cta-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: capitalize;
}

.cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
}

.cta-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
}

.chat-cta-button:hover .cta-arrow svg {
  transform: translateX(3px);
}

/* Secondary Actions */
.profile-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.secondary-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.375rem 0.625rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.secondary-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-secondary);
  color: var(--text-primary);
}

.secondary-action-btn svg {
  width: 12px;
  height: 12px;
}

.secondary-action-btn.voice-sample {
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
}

.secondary-action-btn.voice-sample:hover {
  background: rgba(108, 60, 240, 0.15);
}

.secondary-action-btn.share-btn {
  border-color: var(--border-color);
}

.secondary-action-btn.share-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Profile Tags */
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-color);
}

.profile-tag {
  padding: 0.25rem 0.5rem;
  background: var(--bg-sidebar);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Companion Content Layout */
.companion-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--spacing-xl);
}

.companion-main {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.companion-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* ============================================
   MEDIA GALLERY SECTION - Carousel & Lightbox
   ============================================ */
.media-gallery-section {
  margin-bottom: var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Gallery Header */
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.gallery-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.gallery-title svg {
  width: 18px;
  height: 18px;
  color: var(--brand-primary);
}

.gallery-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Gallery Tabs */
.gallery-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
}

.gallery-tab {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-tab:hover {
  color: var(--text-primary);
  background: rgba(226, 72, 118, 0.05);
}

.gallery-tab.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  background: rgba(226, 72, 118, 0.1);
}

.gallery-tab svg {
  width: 16px;
  height: 16px;
}

.tab-count {
  font-size: 0.6875rem;
  padding: 1px 6px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.gallery-tab.active .tab-count {
  background: var(--brand-primary);
  color: white;
}

/* Gallery Content */
.gallery-content {
  padding: var(--spacing-sm);
}

.gallery-grid {
  display: none;
}

.gallery-grid.active {
  display: grid;
}

/* Images Grid - Horizontal Carousel Strip */
.images-grid {
  display: block;
}

.images-grid.active {
  display: block;
}

/* Carousel Container */
.gallery-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Carousel Scroll Buttons */
.carousel-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 13, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-scroll-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-scroll-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-scroll-left {
  left: var(--spacing-md);
}

.carousel-scroll-right {
  right: var(--spacing-md);
}

/* Horizontal Scrollable Strip */
.gallery-carousel-strip {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) 48px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) var(--bg-sidebar);
  -webkit-overflow-scrolling: touch;
}

.gallery-carousel-strip::-webkit-scrollbar {
  height: 8px;
}

.gallery-carousel-strip::-webkit-scrollbar-track {
  background: var(--bg-sidebar);
  border-radius: var(--radius-full);
}

.gallery-carousel-strip::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: var(--radius-full);
}

/* Carousel Item */
.gallery-carousel-item {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  background: var(--bg-sidebar);
}

.gallery-carousel-item:hover {
  border-color: var(--status-info);
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px rgba(63, 140, 255, 0.25),
    0 0 40px rgba(63, 140, 255, 0.15);
}

.gallery-carousel-item:focus {
  outline: none;
  border-color: var(--status-info);
  box-shadow: 
    0 0 0 3px rgba(63, 140, 255, 0.3),
    0 8px 24px rgba(63, 140, 255, 0.25);
}

.gallery-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-base);
}

.gallery-carousel-item:hover img {
  transform: scale(1.05);
}

/* Carousel Item Overlay */
.carousel-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: var(--spacing-md);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-carousel-item:hover .carousel-item-overlay {
  opacity: 1;
}

.carousel-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  border-radius: 50%;
  color: white;
  box-shadow: 0 4px 16px rgba(226, 72, 118, 0.4);
}

.carousel-zoom-icon svg {
  width: 22px;
  height: 22px;
}

.carousel-item-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

/* Legacy gallery-item support */
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-zoom-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.gallery-zoom-btn:hover {
  transform: scale(1.1);
}

.gallery-zoom-btn svg {
  width: 24px;
  height: 24px;
}

/* Audio Grid */
.audio-grid {
  grid-template-columns: 1fr;
}

.audio-player-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.audio-visual {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: var(--radius-lg);
}

.audio-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
}

.wave-bar {
  width: 4px;
  height: 100%;
  background: white;
  border-radius: var(--radius-full);
  animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.audio-info {
  flex: 1;
}

.audio-info h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.audio-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.audio-play-btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-pink-glow);
}

.audio-play-btn:hover {
  background: var(--brand-primary-hover);
  transform: scale(1.05);
}

.audio-play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 2px;
}

/* Videos Grid */
.videos-grid {
  grid-template-columns: 1fr;
}

/* Gallery Empty State */
.gallery-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl);
  color: var(--text-muted);
}

.gallery-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.gallery-empty p {
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
}

.coming-soon-badge {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: var(--brand-secondary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* ============================================
   RESPONSIVE - Design E: Premium Profile
   ============================================ */
@media (max-width: 1200px) {
  /* Design E */
  .profile-card {
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .header-text h1 {
    font-size: 1.75rem;
  }
  
  .lower-section {
    grid-template-columns: 1fr;
  }
  
  /* Legacy */
  .profile-hero-content {
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-xl);
  }
  
  .companion-content {
    grid-template-columns: 1fr;
  }
  
  .companion-sidebar {
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .companion-sidebar > * {
    flex: 1;
    min-width: 280px;
  }
}

@media (max-width: 992px) {
  /* Design E - Stack to single column */
  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .profile-left {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .avatar-badges {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .header-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .header-text {
    text-align: center;
  }
  
  .header-text h1 {
    justify-content: center;
  }
  
  .char-badge {
    margin-left: auto;
    margin-right: auto;
  }
  
  .bio-line {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .tagline-box {
    border-left: none;
    border-top: 3px solid var(--brand-primary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    text-align: center;
  }
  
  .features-row {
    justify-content: center;
  }
  
  .tags-strip {
    justify-content: center;
  }
  
  .lower-section {
    grid-template-columns: 1fr;
  }
  
  /* Legacy */
  .profile-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .profile-hero-portrait {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .profile-app-header {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .app-logo-small {
    margin: 0 auto;
  }
  
  .profile-name-row {
    justify-content: center;
  }
  
  .profile-character-badge {
    margin: 0 auto;
  }
  
  .profile-subheader {
    justify-content: center;
  }
  
  .profile-tagline {
    border-left: none;
    border-top: 3px solid var(--brand-primary);
    padding-left: 0;
    padding-top: var(--spacing-md);
  }
  
  .profile-features {
    justify-content: center;
  }
  
  .profile-secondary-actions {
    justify-content: center;
  }
  
  .profile-tags {
    justify-content: center;
  }
  
  .cta-text {
    text-align: center;
  }
  
  /* Gallery responsive */
  .gallery-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .gallery-tab {
    padding: var(--spacing-md) var(--spacing-lg);
    white-space: nowrap;
  }
  
  .gallery-header {
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  .gallery-carousel-strip {
    padding: var(--spacing-md) 50px;
  }
  
  .gallery-carousel-item {
    width: 150px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* Design E - Mobile optimizations */
  .profile-card {
    padding: 1rem;
    gap: 1rem;
    border-radius: var(--radius-lg);
  }
  
  .profile-left {
    max-width: 240px;
  }
  
  .avatar-frame {
    border-width: 2px;
  }
  
  .stats-bar {
    padding: 0.75rem;
  }
  
  .stat-value {
    font-size: 1rem;
  }
  
  .header-text h1 {
    font-size: 1.5rem;
  }
  
  .bio-line {
    font-size: 0.875rem;
  }
  
  .tagline-box {
    padding: 0.75rem;
  }
  
  .tagline-box p {
    font-size: 1rem;
  }
  
  .feature-pill {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
  }
  
  .scores-grid {
    padding: 1rem;
    gap: 0.625rem;
  }
  
  .cta-button {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
  
  .secondary-actions {
    flex-direction: column;
  }
  
  .sec-btn {
    width: 100%;
  }
  
  .caps-list,
  .personality-tags {
    justify-content: center;
  }
  
  /* Legacy */
  .profile-hero-content {
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    grid-template-columns: 1fr;
  }
  
  .profile-hero-portrait {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .portrait-frame {
    aspect-ratio: 3/4;
  }
  
  .profile-name {
    font-size: 1.5rem;
  }
  
  .profile-hero-info {
    text-align: center;
    align-items: center;
  }
  
  .profile-features {
    justify-content: center;
  }
  
  .chat-cta-button {
    padding: 0.625rem 0.875rem;
  }
  
  .cta-arrow {
    display: none;
  }
  
  .score-bar-header {
    flex-direction: row;
    gap: 4px;
  }
  
  .profile-secondary-actions {
    justify-content: center;
  }
  
  /* Gallery responsive */
  .gallery-tab span:not(.tab-count) {
    display: none;
  }
  
  .gallery-tab {
    padding: var(--spacing-md);
  }
  
  .gallery-header {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
  
  .gallery-carousel-strip {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .gallery-carousel-item {
    width: 120px;
    height: 160px;
  }
  
  .carousel-scroll-btn {
    display: none;
  }
  
  .carousel-zoom-icon {
    width: 40px;
    height: 40px;
  }
  
  .carousel-zoom-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .gallery-item {
    aspect-ratio: 1;
  }
  
  .audio-player-card {
    flex-direction: column;
    text-align: center;
  }
  
  .portrait-stats {
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }
  
  .portrait-stat-value {
    font-size: 1rem;
  }
}

/* ====================================
   Phase 4: Capabilities & Personality - INLINE COMPACT DESIGN
   ==================================== */

/* Shared Inline Section Styles */
.capabilities-inline-section,
.personality-inline-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.5rem;
}

.inline-section-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.inline-section-header svg {
  width: 14px;
  height: 14px;
  color: var(--brand-primary);
}

/* Capabilities Inline List */
.capabilities-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
}

.capability-inline-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.capability-inline-item.available {
  color: var(--text-body);
}

.capability-inline-item.unavailable {
  opacity: 0.5;
}

.capability-inline-item.nsfw {
  color: var(--status-danger);
}

.capability-inline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.capability-inline-icon svg {
  width: 12px;
  height: 12px;
}

.capability-inline-item.available .capability-inline-icon svg {
  color: var(--text-body);
}

.capability-inline-item.unavailable .capability-inline-icon svg {
  color: var(--text-muted);
}

.capability-inline-item.nsfw .capability-inline-icon svg {
  color: var(--status-danger);
}

.capability-inline-name {
  font-weight: 500;
}

.capability-inline-status {
  display: flex;
  align-items: center;
  justify-content: center;
}

.capability-inline-status svg {
  width: 10px;
  height: 10px;
}

.capability-inline-item.available .capability-inline-status svg {
  color: var(--status-success);
}

.capability-inline-item.unavailable .capability-inline-status svg {
  color: var(--status-danger);
  opacity: 0.6;
}

.capability-inline-item.nsfw .capability-inline-status svg {
  color: var(--status-danger);
}

/* Personality Inline List */
.personality-inline-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.125rem;
}

.personality-inline-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-body);
  font-weight: 500;
}

.trait-separator {
  color: var(--brand-primary);
  margin-left: 0.375rem;
  font-weight: 400;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .capabilities-inline-section,
  .personality-inline-section {
    padding: 0.875rem 1rem;
  }
  
  .capabilities-inline-list {
    gap: 0.375rem 0.75rem;
  }
  
  .capability-inline-item {
    font-size: 0.75rem;
  }
  
  .capability-inline-icon svg {
    width: 12px;
    height: 12px;
  }
  
  .capability-inline-status svg {
    width: 10px;
    height: 10px;
  }
  
  .personality-inline-item {
    font-size: 0.75rem;
  }
  
  .inline-section-header {
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
  }
  
  .inline-section-header svg {
    width: 14px;
    height: 14px;
  }
}

/* Legacy support - keep old classes */
.capability-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capability-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.capability-status svg {
  width: 14px;
  height: 14px;
}

/* Grid and layout utilities */
.grid { display: grid; gap: var(--spacing-md); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* Form inputs - full styling */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(226, 72, 118, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-disabled);
}

/* Admin responsive grid */
@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }

/* Table styling */
.table-container { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: var(--spacing-md); text-align: left; border-bottom: 1px solid var(--border-color); }
.table th { background: var(--bg-sidebar); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

/* Form styling */
.form-input { background: var(--bg-input); border: 1px solid var(--border-input); color: var(--text-body); }
.form-input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(226, 72, 118, 0.2); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { cursor: pointer; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-body); margin-bottom: var(--spacing-sm); }
.form-help { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.form-checkbox { display: flex; align-items: center; gap: var(--spacing-sm); cursor: pointer; }

/* Sidebar navigation for admin */
.sidebar { background: var(--bg-sidebar); border-right: 1px solid var(--border-color); padding: var(--spacing-lg); display: flex; flex-direction: column; height: 100vh; }
.sidebar-logo { display: flex; align-items: center; gap: var(--spacing-sm); font-size: 1rem; font-weight: 700; color: var(--text-primary); padding: var(--spacing-md); margin-bottom: var(--spacing-lg); border-bottom: 1px solid var(--border-color); }
.sidebar-nav { display: flex; flex-direction: column; gap: var(--spacing-xs); flex: 1; }
.sidebar-nav-item { display: flex; align-items: center; gap: var(--spacing-sm); padding: var(--spacing-sm) var(--spacing-md); border-radius: var(--radius-lg); color: var(--text-body); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: all var(--transition-base); }
.sidebar-nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.sidebar-nav-item.active { background: rgba(226, 72, 118, 0.15); color: var(--brand-primary); }
.sidebar-nav-item svg { width: 20px; height: 20px; }

/* Page layout */
.page-layout { display: grid; grid-template-columns: var(--sidebar-width) 1fr; min-height: 100vh; }
.main-content { padding: var(--spacing-xl); overflow-y: auto; }
.header { margin-bottom: var(--spacing-xl); }

/* Card header and body */
.card-header { padding: var(--spacing-md) var(--spacing-lg); border-bottom: 1px solid var(--border-color); }
.card-body { padding: var(--spacing-lg); }

/* Stats card in admin */
.stats-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: var(--spacing-lg); text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.875rem; color: var(--text-muted); }
.text-brand { color: var(--brand-primary); }

/* Code block for import page */
.code-block { background: var(--bg-sidebar); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: var(--spacing-md); font-family: 'Monaco', 'Menlo', monospace; font-size: 0.8125rem; overflow-x: auto; white-space: pre; color: var(--text-body); }

/* Drop zone for file upload */
.drop-zone { border: 2px dashed var(--border-input); border-radius: var(--radius-xl); padding: var(--spacing-2xl); text-align: center; cursor: pointer; transition: all var(--transition-base); }
.drop-zone:hover { border-color: var(--brand-primary); background: rgba(226, 72, 118, 0.05); }
.drop-zone.dragover { border-color: var(--brand-primary); background: rgba(226, 72, 118, 0.1); }

/* ============================================
   SITE FOOTER - Universal Footer Component
   ============================================ */
.site-footer {
  grid-column: 1 / -1;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-color);
  padding: 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-xl);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-logo:hover {
  color: var(--brand-primary);
}

.footer-logo svg {
  width: 36px;
  height: 36px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

.footer-links-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-body);
  margin: 0 0 var(--spacing-sm) 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-tech {
  font-size: 0.75rem;
  color: var(--text-disabled);
  margin: 0;
}

.tech-highlight {
  color: var(--brand-primary);
  font-weight: 500;
}

/* ============================================
   CHAT TEASER - Phase 5: Conversion Booster
   ============================================ */
.chat-teaser-section {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.chat-teaser-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

/* Chat Header */
.chat-teaser-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
}

.chat-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card-hover);
  flex-shrink: 0;
}

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

.chat-avatar svg {
  width: 100%;
  height: 100%;
  padding: 10px;
  color: var(--text-muted);
}

.chat-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--status-success);
  border: 2px solid var(--bg-sidebar);
  border-radius: 50%;
}

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

.chat-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--status-success);
}

.chat-status .status-dot {
  width: 6px;
  height: 6px;
  background: var(--status-success);
  border-radius: 50%;
  animation: pulse-online 2s ease-in-out infinite;
}

.chat-header-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.chat-action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-base);
}

.chat-action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--brand-primary);
}

.chat-action-btn svg {
  width: 18px;
  height: 18px;
}

/* Chat Messages Area */
.chat-messages-area {
  padding: var(--spacing-sm) var(--spacing-md);
  min-height: 140px;
  max-height: 200px;
  overflow-y: auto;
  background: var(--bg-page);
}

.chat-timestamp {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

/* Chat Messages */
.chat-message {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.chat-message.incoming {
  justify-content: flex-start;
}

.chat-message.outgoing {
  justify-content: flex-end;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card-hover);
  flex-shrink: 0;
}

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

.message-avatar svg {
  width: 100%;
  height: 100%;
  padding: 6px;
  color: var(--text-muted);
}

.message-content {
  max-width: 80%;
}

.message-bubble {
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.chat-message.incoming .message-bubble {
  background: var(--bg-card);
  color: var(--text-body);
  border-bottom-left-radius: 4px;
}

.chat-message.outgoing .message-bubble {
  background: var(--brand-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-time {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-disabled);
  margin-top: 4px;
  padding-left: 4px;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-card);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    background: var(--text-muted);
  }
  30% {
    transform: translateY(-6px);
    background: var(--brand-primary);
  }
}

/* Chat Input Area */
.chat-input-area {
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px var(--spacing-md);
  transition: all var(--transition-base);
}

.chat-input-wrapper:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(226, 72, 118, 0.15);
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  color: var(--text-primary);
  padding: var(--spacing-sm) 0;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
}

.chat-send-btn:hover {
  background: var(--brand-primary-hover);
  transform: scale(1.05);
}

.chat-send-btn svg {
  width: 18px;
  height: 18px;
}

.chat-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--spacing-sm);
}

/* Chat Teaser CTA */
.chat-teaser-cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.chat-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-pink-glow);
}

.chat-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(226, 72, 118, 0.4),
    0 0 60px rgba(226, 72, 118, 0.2);
}

.chat-start-btn svg {
  width: 20px;
  height: 20px;
}

/* Chat Teaser Responsive */
@media (max-width: 768px) {
  .chat-teaser-container {
    max-width: 100%;
  }
  
  .chat-header-actions {
    display: none;
  }
  
  .chat-messages-area {
    min-height: 160px;
    max-height: 240px;
  }
  
  .message-content {
    max-width: 85%;
  }
}

/* Footer Responsive */
@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand-section {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
  
  .footer-tagline {
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  .footer-container {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }
  
  .footer-links-section {
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }
}

/* ============================================
   SKELETON LOADING - Fast Perceived Loading
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, 
    var(--bg-card) 25%, 
    var(--bg-card-hover) 50%, 
    var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

/* Skeleton Variants */
.skeleton-text {
  height: 0.875rem;
  width: 100%;
  margin-bottom: var(--spacing-xs);
}

.skeleton-text-sm {
  height: 0.75rem;
  width: 60%;
}

.skeleton-text-lg {
  height: 1.25rem;
  width: 80%;
}

.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
}

.skeleton-button {
  height: 36px;
  width: 120px;
  border-radius: var(--radius-full);
}

/* Content fade-in after load */
.content-loaded {
  animation: fadeIn 0.3s ease-out;
}

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

/* Hide skeleton when content is loaded */
.content-loaded .skeleton {
  display: none;
}

/* Loading state for images */
img.loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.loaded {
  opacity: 1;
}

/* ========================================
   DESIGN E: Full-Width Immersive Chat Teaser
   Dating-app style with blurred background + promo panel
======================================== */
.chat-immersive-section {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.chat-immersive-container {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  min-height: 480px;
}

/* Blurred Background Layer */
.chat-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.chat-bg-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: blur(20px);
  transform: scale(1.1);
}

.chat-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 13, 0.7) 0%,
    rgba(11, 11, 13, 0.9) 100%
  );
}

/* Main Content Grid */
.chat-immersive-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 480px;
}

/* Left: Chat Column */
.chat-column {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
}

/* Chat Header Row */
.chat-header-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.chat-header-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--brand-primary);
  box-shadow: var(--shadow-pink-glow);
  position: relative;
  flex-shrink: 0;
}

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

.chat-header-avatar svg {
  width: 100%;
  height: 100%;
  padding: 12px;
  color: var(--text-muted);
}

.chat-header-avatar .online-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--status-success);
  border: 3px solid var(--bg-card);
  border-radius: 50%;
}

.chat-header-info {
  flex: 1;
}

.chat-header-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.chat-status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--status-success);
}

.chat-status-line .status-dot {
  width: 8px;
  height: 8px;
  background: var(--status-success);
  border-radius: 50%;
  animation: pulse-online 2s ease-in-out infinite;
}

.chat-header-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.chat-h-action {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-base);
}

.chat-h-action:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--brand-primary);
}

.chat-h-action svg {
  width: 20px;
  height: 20px;
}

/* Messages Container */
.chat-messages-container {
  flex: 1;
  background: rgba(11, 11, 13, 0.6);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  overflow-y: auto;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.chat-time-stamp {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

/* Chat Message Items */
.chat-msg-item {
  display: flex;
  gap: var(--spacing-sm);
}

.chat-msg-item.from-ai {
  justify-content: flex-start;
}

.chat-msg-item.from-user {
  justify-content: flex-end;
}

.chat-msg-avi {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-msg-avi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-msg-avi svg {
  width: 100%;
  height: 100%;
  padding: 6px;
  color: var(--text-muted);
}

.chat-msg-body {
  max-width: 70%;
}

.chat-msg-bubble {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.chat-msg-item.from-ai .chat-msg-bubble {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--text-body);
  border-bottom-left-radius: 4px;
}

.chat-msg-item.from-user .chat-msg-bubble {
  background: var(--brand-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-msg-timestamp {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-disabled);
  margin-top: 4px;
  padding-left: 4px;
}

/* Typing Animation */
.chat-typing-animation {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.chat-typing-box {
  display: flex;
  gap: 4px;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}

/* Input Row */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px var(--spacing-md);
  transition: all var(--transition-base);
}

.chat-input-row:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(226, 72, 118, 0.15);
}

.chat-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  color: var(--text-primary);
  padding: var(--spacing-sm) 0;
  font-family: inherit;
}

.chat-input-field::placeholder {
  color: var(--text-muted);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
}

.chat-send-btn:hover {
  background: var(--brand-primary-hover);
  transform: scale(1.05);
}

.chat-send-btn svg {
  width: 20px;
  height: 20px;
}

/* Right: Promo Column */
.chat-promo-column {
  background: rgba(11, 11, 13, 0.8);
  border-left: 1px solid var(--border-color);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.promo-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
  border: 4px solid var(--brand-primary);
  box-shadow: 
    0 0 30px rgba(226, 72, 118, 0.4),
    0 0 60px rgba(226, 72, 118, 0.2);
}

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

.promo-avatar svg {
  width: 100%;
  height: 100%;
  padding: 24px;
  color: var(--text-muted);
}

.promo-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-xs);
}

.promo-tagline {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9375rem;
  margin: 0 0 var(--spacing-xl);
  max-width: 280px;
}

/* Promo Stats Grid */
.promo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  width: 100%;
}

.stat-box {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.stat-lbl {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Promo Features */
.promo-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-body);
}

.feature-chip svg {
  width: 14px;
  height: 14px;
  color: var(--status-success);
}

.feature-chip.sfw {
  background: rgba(60, 207, 126, 0.1);
  border-color: rgba(60, 207, 126, 0.3);
  color: var(--status-success);
}

/* Promo CTA */
.promo-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover));
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-pink-glow);
  text-decoration: none;
}

.promo-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(226, 72, 118, 0.5);
  color: white;
}

.promo-cta-btn svg {
  width: 20px;
  height: 20px;
}

.promo-cta-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: var(--spacing-md) 0 0;
}

/* ========================================
   Chat Immersive Responsive
======================================== */
@media (max-width: 1200px) {
  .chat-immersive-content {
    grid-template-columns: 1fr 340px;
  }
  
  .promo-avatar {
    width: 100px;
    height: 100px;
  }
  
  .promo-name {
    font-size: 1.25rem;
  }
}

@media (max-width: 992px) {
  .chat-immersive-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .chat-column {
    padding: var(--spacing-lg);
  }
  
  .chat-promo-column {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) var(--spacing-lg);
  }
  
  .promo-avatar {
    width: 80px;
    height: 80px;
  }
  
  .promo-tagline {
    margin-bottom: var(--spacing-lg);
  }
  
  .promo-stats {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .chat-immersive-container {
    min-height: auto;
  }
  
  .chat-column {
    padding: var(--spacing-md);
  }
  
  .chat-header-row {
    flex-wrap: wrap;
  }
  
  .chat-header-avatar {
    width: 48px;
    height: 48px;
  }
  
  .chat-header-name {
    font-size: 1.125rem;
  }
  
  .chat-header-actions {
    display: none;
  }
  
  .chat-messages-container {
    max-height: 240px;
    padding: var(--spacing-md);
  }
  
  .chat-msg-body {
    max-width: 85%;
  }
  
  .chat-promo-column {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .promo-stats {
    gap: var(--spacing-xs);
  }
  
  .stat-box {
    padding: var(--spacing-sm);
  }
  
  .stat-num {
    font-size: 1rem;
  }
  
  .promo-features {
    gap: var(--spacing-xs);
  }
  
  .feature-chip {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
  }
  
  .promo-cta-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .chat-header-avatar {
    width: 40px;
    height: 40px;
    border-width: 2px;
  }
  
  .chat-header-avatar .online-badge {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }
  
  .promo-avatar {
    width: 64px;
    height: 64px;
    border-width: 3px;
  }
  
  .promo-name {
    font-size: 1.125rem;
  }
  
  .promo-tagline {
    font-size: 0.8125rem;
  }
}

/* Performance optimizations */
.will-change-opacity {
  will-change: opacity;
}

.will-change-transform {
  will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .content-loaded,
  img.loaded,
  .typing-dot,
  .online-dot,
  .wave-bar {
    animation: none !important;
  }
  
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   DESIGN A: LIGHT MINIMAL TOOL PAGE
   Clean, professional, easy-to-read design
   ============================================ */

/* Light theme for tool pages */
.tool-page-light {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f5f5;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #888888;
  --accent: #ff4d8d;
  --accent-hover: #ff3377;
  --accent-gradient: linear-gradient(135deg, #ff4d8d, #bd34fe);
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --font-heading: 'Inter', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

.tool-page-light {
  background: var(--bg-primary) !important;
  min-height: 100vh;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tool-page-light .public-main {
  background: var(--bg-primary);
}

/* Light Breadcrumb */
.tool-page-light .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.tool-page-light .breadcrumb a {
  color: var(--text-secondary);
}

.tool-page-light .breadcrumb a:hover {
  color: var(--accent);
}

.tool-page-light .breadcrumb .separator {
  color: var(--text-muted);
}

.tool-page-light .breadcrumb .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Light Hero Card */
.tool-page-light .hero-card-light {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.tool-page-light .hero-card-light > .avatar-section-light {
  flex-shrink: 0;
  width: 140px;
}

.tool-page-light .hero-card-light > .info-section-light {
  flex: 1;
  min-width: 0;
}

.tool-page-light .hero-card-light > .cta-section-light {
  flex-shrink: 0;
  width: 280px;
}

/* Avatar Section */
.tool-page-light .avatar-section-light {
  text-align: center;
}

.tool-page-light .avatar-light {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-md);
  display: block;
}

.tool-page-light .status-badge-light {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: #ecfdf5;
  color: #059669;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.tool-page-light .status-dot-light {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-light 2s infinite;
}

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

/* Info Section */
.tool-page-light .info-section-light {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-page-light .info-section-light h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.tool-page-light .verified-badge-light {
  width: 24px;
  height: 24px;
  color: #3b82f6;
}

.tool-page-light .tagline-light {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Character Info Grid */
.tool-page-light .character-info-light {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.tool-page-light .char-item-light {
  display: flex;
  flex-direction: column;
}

.tool-page-light .char-label-light {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.tool-page-light .char-value-light {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Features Grid */
.tool-page-light .features-grid-light {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tool-page-light .feature-tag-light {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
}

.tool-page-light .feature-tag-light:hover {
  background: var(--border);
}

.tool-page-light .feature-tag-light.active {
  background: #fef2f2;
  color: #dc2626;
}

.tool-page-light .feature-tag-light.nsfw {
  background: #fef2f2;
  color: #dc2626;
  font-weight: 600;
}

.tool-page-light .feature-tag-light svg {
  width: 16px;
  height: 16px;
}

/* CTA Section */
.tool-page-light .cta-section-light {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Scores Card */
.tool-page-light .scores-card-light {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 1rem;
}

.tool-page-light .scores-title-light {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.tool-page-light .score-row-light {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 0.625rem;
}

.tool-page-light .score-row-light:last-child {
  margin-bottom: 0;
}

.tool-page-light .score-label-light {
  font-size: 0.75rem;
  color: var(--text-secondary);
  width: 95px;
  flex-shrink: 0;
}

.tool-page-light .score-bar-light {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin: 0 0.75rem;
  overflow: hidden;
}

.tool-page-light .score-fill-light {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.tool-page-light .score-value-light {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 32px;
  text-align: right;
}

/* CTA Button */
.tool-page-light .cta-btn-light {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}

.tool-page-light .cta-btn-light:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 77, 141, 0.3);
}

.tool-page-light .cta-btn-light svg {
  width: 20px;
  height: 20px;
}

/* Pricing Badge */
.tool-page-light .pricing-badge-light {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Stats Row */
.tool-page-light .stats-row-light {
  display: flex;
  gap: 0.75rem;
}

.tool-page-light .stat-item-light {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: var(--bg-tertiary);
  border-radius: 10px;
}

.tool-page-light .stat-value-light {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tool-page-light .stat-label-light {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 500;
}

/* Description Card */
.tool-page-light .description-card-light {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tool-page-light .description-card-light h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-page-light .description-card-light h2 svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.tool-page-light .description-card-light p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Tags Section */
.tool-page-light .tags-section-light {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.tool-page-light .tag-light {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Capabilities Card */
.tool-page-light .capabilities-card-light {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tool-page-light .capabilities-card-light h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-page-light .capabilities-card-light h2 svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.tool-page-light .capabilities-grid-light {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.tool-page-light .cap-item-light {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.tool-page-light .cap-item-light:hover {
  background: var(--border);
}

.tool-page-light .cap-item-light.available {
  background: #ecfdf5;
  color: #059669;
}

.tool-page-light .cap-item-light.unavailable {
  opacity: 0.5;
}

.tool-page-light .cap-item-light svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tool-page-light .cap-status-light {
  margin-left: auto;
}

.tool-page-light .cap-status-light svg {
  width: 14px;
  height: 14px;
}

.tool-page-light .cap-item-light.available .cap-status-light {
  color: #10b981;
}

.tool-page-light .cap-item-light.unavailable .cap-status-light {
  color: #ef4444;
}

/* Related Tools Section */
.tool-page-light .related-section-light {
  margin-top: 2rem;
}

.tool-page-light .related-section-light h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.25rem 0;
}

.tool-page-light .related-grid-light {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tool-page-light .related-card-light {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.tool-page-light .related-card-light:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tool-page-light .related-avatar-light {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.tool-page-light .related-info-light h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.tool-page-light .related-info-light p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .tool-page-light .hero-card-light {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .tool-page-light .hero-card-light > .avatar-section-light {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .tool-page-light .hero-card-light > .info-section-light {
    width: 100%;
  }
  
  .tool-page-light .hero-card-light > .cta-section-light {
    width: 100%;
    order: -1;
  }
  
  .tool-page-light .avatar-light {
    width: 120px;
    height: 120px;
  }
  
  .tool-page-light .info-section-light h1 {
    font-size: 1.75rem;
    justify-content: center;
    text-align: center;
  }
  
  .tool-page-light .tagline-light {
    text-align: center;
  }
  
  .tool-page-light .character-info-light {
    justify-content: center;
  }
  
  .tool-page-light .features-grid-light {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .tool-page-light .hero-card-light {
    padding: 1rem;
    border-radius: 16px;
  }
  
  .tool-page-light .avatar-light {
    width: 100px;
    height: 100px;
  }
  
  .tool-page-light .info-section-light h1 {
    font-size: 1.375rem;
  }
  
  .tool-page-light .tagline-light {
    font-size: 0.875rem;
  }
  
  .tool-page-light .character-info-light {
    gap: 0.75rem;
  }
  
  .tool-page-light .char-item-light {
    min-width: calc(50% - 0.5rem);
  }
  
  .tool-page-light .stats-row-light {
    flex-wrap: nowrap;
  }
  
  .tool-page-light .stat-item-light {
    flex: 1;
    min-width: 0;
  }
  
  .tool-page-light .capabilities-grid-light {
    grid-template-columns: 1fr 1fr;
  }
  
  .tool-page-light .description-card-light,
  .tool-page-light .capabilities-card-light {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .tool-page-light .cta-btn-light {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* Hide dark sidebar on tool page light */
.tool-page-light .public-sidebar {
  display: none;
}

.tool-page-light .public-main {
  margin-left: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* Light header override for tool pages */
.tool-page-light .sticky-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.tool-page-light .header-logo span {
  color: var(--text-primary);
}

.tool-page-light .header-search {
  background: var(--bg-tertiary);
  border-color: var(--border);
}

.tool-page-light .header-search input {
  color: var(--text-primary);
}

.tool-page-light .header-search input::placeholder {
  color: var(--text-muted);
}

.tool-page-light .header-nav .btn {
  color: var(--text-secondary);
}

.tool-page-light .header-nav .btn:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
