/* =============================================
   FanCentro AI — Global Styles
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #e91e8c;
  --brand-dark: #c2177a;
  --brand-light: #ff6bb5;
  --brand-glow: rgba(233, 30, 140, 0.25);
  --bg: #0a0a0f;
  --bg-2: #111118;
  --bg-3: #18181f;
  --bg-4: #1e1e28;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #f0f0f5;
  --text-muted: #888898;
  --text-dim: #555565;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-brand: 0 4px 24px var(--brand-glow);
  --font: 'Inter', system-ui, sans-serif;
  --transition: 0.18s ease;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea { font-family: var(--font); }

/* =============================================
   Utilities
   ============================================= */
.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w-full { width: 100%; }

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 32px var(--brand-glow); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); background: var(--bg-3); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* =============================================
   Header
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.logo-ai {
  color: var(--brand);
}

.logo-sm { font-size: 15px; }
.logo-sm .logo-icon { width: 30px; height: 30px; font-size: 11px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }

/* =============================================
   Hero
   ============================================= */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* Chat Preview */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-preview {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 340px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 80px rgba(233,30,140,0.1);
}

.chat-preview-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}

.chat-preview-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #ff6b35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.chat-preview-name { font-weight: 600; font-size: 15px; }
.chat-preview-status { font-size: 12px; color: #4ade80; }

.chat-preview-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}

.preview-msg {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 85%;
  animation: fadeIn 0.4s ease;
}

.preview-msg.assistant {
  background: var(--bg-3);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.preview-msg.user {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.preview-msg.typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px;
  width: 64px;
}

.preview-msg.typing span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.preview-msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.preview-msg.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* =============================================
   Creators Section
   ============================================= */
.creators-section {
  background: var(--bg-2);
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.creators-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.creator-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.creator-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.creator-card:hover {
  border-color: rgba(233,30,140,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 40px var(--brand-glow);
}

.creator-card:hover::before { opacity: 1; }

.creator-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.creator-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.creator-avatar.color-0 { background: linear-gradient(135deg, #e91e8c, #ff6b35); }
.creator-avatar.color-1 { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.creator-avatar.color-2 { background: linear-gradient(135deg, #00b894, #00cec9); }
.creator-avatar.color-3 { background: linear-gradient(135deg, #e17055, #fdcb6e); }
.creator-avatar.color-4 { background: linear-gradient(135deg, #fd79a8, #e84393); }

.creator-card-info { flex: 1; }
.creator-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.creator-username { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.creator-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(233,30,140,0.15);
  color: var(--brand-light);
  border: 1px solid rgba(233,30,140,0.25);
}

.creator-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

.creator-stats {
  display: flex;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.creator-stat { display: flex; flex-direction: column; }
.creator-stat-value { font-size: 15px; font-weight: 700; }
.creator-stat-label { font-size: 11px; color: var(--text-muted); }

.creator-card-action {
  margin-top: 4px;
}

/* =============================================
   Features Section
   ============================================= */
.features-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* =============================================
   Footer
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-text { font-size: 13px; color: var(--text-muted); }

/* =============================================
   Loading Spinner
   ============================================= */
.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px;
  color: var(--text-muted);
}

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

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

/* =============================================
   Chat Page
   ============================================= */
body.chat-page {
  overflow: hidden;
  height: 100vh;
}

.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.chat-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-2);
  z-index: 1;
}

.sidebar-close {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--text-muted);
  font-size: 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.creator-profile {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.creator-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: 3px solid rgba(233,30,140,0.3);
  box-shadow: 0 0 30px var(--brand-glow);
}

.creator-info { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.creator-info h3 { font-size: 18px; font-weight: 700; }

.creator-category-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(233,30,140,0.15);
  color: var(--brand-light);
  border: 1px solid rgba(233,30,140,0.25);
}

.creator-bio-sidebar {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.creator-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}

.topic-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-4);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.sidebar-actions {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-footer {
  padding: 16px 20px;
  margin-top: auto;
}

.sidebar-footer p {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}

/* Chat Main */
.chat-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.chat-header {
  padding: 12px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--text);
  font-size: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.chat-header-creator {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.creator-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.creator-header-name { font-size: 15px; font-weight: 600; }
.creator-header-status { font-size: 12px; color: #4ade80; }

.chat-header-actions { display: flex; gap: 8px; margin-left: auto; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--border-hover); color: var(--text); }

/* Messages */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px 0;
  scroll-behavior: smooth;
}

.messages-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  gap: 12px;
  animation: fadeIn 0.25s ease;
}

.message.user { flex-direction: row-reverse; }

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}

.message.assistant .message-avatar {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.message.user .message-avatar {
  background: var(--bg-4);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

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

.message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.65;
  word-break: break-word;
}

.message.assistant .message-bubble {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.message.user .message-bubble {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
  text-align: right;
}

.message-time {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 5px;
  padding: 0 4px;
}

.message.user .message-time { text-align: right; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* Greeting card */
.greeting-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.greeting-card .gc-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 0 30px var(--brand-glow);
}

.greeting-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.greeting-card p { font-size: 14px; color: var(--text-muted); }

/* Input Area */
.chat-input-area {
  padding: 16px 20px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 8px 8px 16px;
  transition: border-color var(--transition);
}

.chat-input-inner:focus-within {
  border-color: rgba(233,30,140,0.5);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.message-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  outline: none;
  max-height: 160px;
  padding: 6px 0;
  overflow-y: auto;
}

.message-input::placeholder { color: var(--text-dim); }

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  opacity: 0.5;
  pointer-events: none;
}

.send-btn:not(:disabled) {
  opacity: 1;
  pointer-events: all;
  cursor: pointer;
}

.send-btn:not(:disabled):hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-brand);
}

.send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.input-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   Fan Name Modal
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.modal-overlay.hidden { display: none; }

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  box-shadow: 0 0 40px var(--brand-glow);
}

.modal h2 { font-size: 24px; font-weight: 800; }
.modal p { font-size: 15px; color: var(--text-muted); }

.modal-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
  text-align: center;
}

.modal-input:focus {
  border-color: rgba(233,30,140,0.5);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.modal-input::placeholder { color: var(--text-dim); }

/* =============================================
   Creator Dashboard
   ============================================= */
.dashboard-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-header h1 { font-size: 28px; font-weight: 800; }
.dashboard-header p { color: var(--text-muted); font-size: 15px; margin-top: 4px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

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

.stat-card-icon { font-size: 24px; margin-bottom: 12px; }
.stat-card-value { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.stat-card-label { font-size: 13px; color: var(--text-muted); }

.panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header h2 { font-size: 18px; font-weight: 700; }
.panel-body { padding: 24px; }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }

.form-input, .form-textarea, .form-select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: rgba(233,30,140,0.5);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-select { cursor: pointer; }
.form-select option { background: var(--bg-3); }

.creator-select-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.creator-select-item {
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}

.creator-select-item:hover { background: var(--bg-3); }
.creator-select-item.active { background: rgba(233,30,140,0.1); border: 1px solid rgba(233,30,140,0.2); }

.csi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.csi-info { flex: 1; }
.csi-name { font-size: 14px; font-weight: 600; }
.csi-category { font-size: 12px; color: var(--text-muted); }

.success-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #22c55e;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 300;
}

.success-toast.show { transform: translateY(0); opacity: 1; }

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

/* =============================================
   Scrollbar
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 24px 60px;
    text-align: center;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

  .chat-layout { grid-template-columns: 1fr; }

  .chat-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 150;
    transform: translateX(-100%);
  }

  .chat-sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .menu-btn { display: flex; }

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

@media (max-width: 600px) {
  .header-nav .nav-link { display: none; }
  .creators-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
  .modal { padding: 28px 20px; }
}
