:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: rgba(124,58,237,.18);
  --secondary: #4F46E5;
  --accent: #EC4899;
  --text: #E2E8F0;
  --text-secondary: #94A3B8;
  --border: #2A2A4A;
  --bg: #0D0D1A;
  --bg-soft: #12121F;
  --card: #16162A;
  --card2: #1E1E38;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.4), 0 4px 6px -2px rgba(0,0,0,.3);
  --shadow-xl: 0 20px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(124,58,237,.08);

  /* Dark vars (dashboard/admin) */
  --dark-bg: #0D0D1A;
  --dark-card: #15152A;
  --dark-card2: #1E1E38;
  --dark-border: #2A2A4A;
  --dark-text: #E2E8F0;
  --dark-text2: #94A3B8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== UTILS ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section { padding: 80px 0; }
.section-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.section-sub { font-size: 18px; color: var(--text-secondary); max-width: 560px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 600;
  transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff; box-shadow: 0 4px 15px rgba(124,58,237,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,.45); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { background: var(--card); color: var(--text); }
.btn-outline {
  border: 1.5px solid var(--border); color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,26,.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; height: 64px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: #fff; flex-shrink: 0; text-decoration: none; }
.logo-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(124,58,237,.45);
  position: relative; overflow: hidden;
}
.logo-icon::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 60%);
}
.logo-icon svg { position: relative; z-index: 1; }
.logo-wordmark { display: flex; align-items: baseline; gap: 1px; line-height: 1; }
.logo-ai { font-size: 20px; font-weight: 900; color: #ffffff; letter-spacing: -0.5px; }
.logo-exp { font-size: 20px; font-weight: 700; color: #a78bfa; letter-spacing: -0.5px; }
.header-nav { display: flex; gap: 4px; flex: 1; }
.header-nav a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: all .15s; }
.header-nav a:hover { color: var(--text); background: var(--card); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(124,58,237,.35) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 80% 60%, rgba(236,72,153,.12) 0%, transparent 60%);
}
.hero-inner { text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,.15); color: #A78BFA;
  padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px; border: 1px solid rgba(124,58,237,.3);
}
.hero h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: #fff; }
.hero-sub { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 40px; }

.hero-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 0 0 1px rgba(124,58,237,.1), 0 24px 48px rgba(0,0,0,.4);
  display: flex; flex-direction: column; gap: 12px;
}
.hero-form textarea {
  width: 100%; resize: none; border: none; outline: none;
  font-family: inherit; font-size: 16px; color: var(--text);
  min-height: 80px; line-height: 1.5; background: transparent;
}
.hero-form textarea::placeholder { color: #4B5563; }
.hero-form-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.style-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.style-pill {
  padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 500;
  border: 1.5px solid var(--border); color: var(--text-secondary); cursor: pointer;
  transition: all .15s;
}
.style-pill:hover, .style-pill.active { border-color: var(--primary); color: #A78BFA; background: rgba(124,58,237,.15); }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-secondary); }
.hero-note span { color: #A78BFA; font-weight: 600; }

/* Hero tools grid */
.hero-tools-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: 860px; margin: 40px auto 0;
}
.hero-tools-grid-7 { grid-template-columns: repeat(4, 1fr); }
.hero-tools-grid-8 { grid-template-columns: repeat(4, 1fr); }

.hero-tool-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; cursor: pointer; transition: all .2s; text-align: left;
}
.hero-tool-card:hover { border-color: var(--primary); background: rgba(124,58,237,.08); transform: translateY(-2px); }
.hero-tool-card-accent { border-color: rgba(124,58,237,.25); background: rgba(124,58,237,.06); }
.hero-tool-card-accent:hover { border-color: var(--primary); }
.hero-tool-icon { font-size: 26px; flex-shrink: 0; }
.hero-tool-info strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.hero-tool-info span { font-size: 11px; color: var(--text-secondary); }
.hero-cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 14px; }

/* Tools overview grid */
.tools-overview-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px;
}
.tool-overview-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; transition: all .2s;
}
.tool-overview-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tool-overview-card-expert { border-color: rgba(124,58,237,.3); background: rgba(124,58,237,.05); }
.tool-ov-icon { font-size: 36px; margin-bottom: 14px; }
.tool-overview-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.tool-overview-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.tool-ov-tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 100px; background: var(--primary-light); color: #A78BFA;
  border: 1px solid rgba(124,58,237,.3);
}

/* Experts grid */
.experts-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px;
}
.expert-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.expert-header { display: flex; align-items: center; gap: 16px; }
.expert-avatar {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 28px; flex-shrink: 0;
}
.expert-header h3 { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.expert-header p { font-size: 12px; color: var(--text-secondary); }
.expert-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.expert-features li { font-size: 13px; color: var(--text-secondary); padding-left: 18px; position: relative; line-height: 1.5; }
.expert-features li::before { content: '✓'; color: var(--primary); font-weight: 700; position: absolute; left: 0; }
.expert-ask { background: var(--bg-soft); border-radius: 12px; padding: 14px; }
.expert-ask-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; }
.expert-input {
  width: 100%; background: transparent; border: none; outline: none;
  font-size: 13px; color: var(--text); line-height: 1.5; resize: none;
  font-family: inherit; min-height: 46px; box-sizing: border-box;
}
.expert-input::placeholder { color: var(--text-secondary); opacity: 0.75; font-style: italic; }

/* Growing section */
.growing-section { background: linear-gradient(135deg, #0f0a2e 0%, #1a0f3e 50%, #0f1a2e 100%); border-top: 1px solid rgba(124,58,237,.2); border-bottom: 1px solid rgba(124,58,237,.2); }
.growing-inner { display: flex; align-items: center; gap: 32px; padding: 12px 0; }
.growing-icon { font-size: 52px; flex-shrink: 0; }
.growing-content { flex: 1; }
.growing-content h2 { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 10px; }
.growing-content p { font-size: 15px; color: #94a3b8; margin: 0 0 16px; line-height: 1.6; max-width: 600px; }
.growing-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.growing-tag { font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 20px; }
.growing-tag-soon { background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); color: #a78bfa; }
@media (max-width: 768px) {
  .growing-inner { flex-direction: column; text-align: center; gap: 20px; }
  .growing-content p { max-width: 100%; }
  .growing-tags { justify-content: center; }
}

@media (max-width: 1024px) {
  .tools-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-tools-grid-7, .hero-tools-grid-8 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .experts-grid { grid-template-columns: 1fr; }
  .tools-overview-grid { grid-template-columns: 1fr; }
  .hero-tools-grid-7, .hero-tools-grid-8 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== LOGOS BAR ===== */
/* ===== Promo strip ===== */
.promo-strip {
  background: linear-gradient(90deg, #1a0a3e 0%, #2d1060 50%, #1a0a3e 100%);
  border-top: 1px solid rgba(124,58,237,.3);
  border-bottom: 1px solid rgba(124,58,237,.3);
  position: relative;
  overflow: hidden;
}
.promo-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(124,58,237,.06) 0px, rgba(124,58,237,.06) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}
.promo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  text-decoration: none;
  flex-wrap: wrap;
  position: relative;
  transition: opacity .2s;
}
.promo-strip-inner:hover { opacity: .88; }
.promo-strip-fire { font-size: 22px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.18)} }
.promo-strip-text { display: flex; flex-direction: column; gap: 2px; }
.promo-strip-text strong { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -.2px; }
.promo-strip-sub { font-size: 12px; color: #c4b5fd; font-weight: 400; }
.promo-strip-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(249,115,22,.4);
  letter-spacing: .2px;
}

.logos-bar { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.logos-bar-inner { display: flex; align-items: center; gap: 32px; justify-content: center; flex-wrap: wrap; }
.logos-bar span { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.logos-bar-divider { width: 1px; height: 20px; background: var(--border); }
.logos-list { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; justify-content: center; }
.logos-list .logo-item { font-size: 14px; font-weight: 700; color: #3D3D6B; letter-spacing: .02em; }

/* ===== VISION FEATURE SECTION ===== */
.vision-section {
  background: linear-gradient(135deg, #0a0520 0%, #150a35 50%, #0a1530 100%);
  border-top: 1px solid rgba(124,58,237,.3); border-bottom: 1px solid rgba(124,58,237,.3);
  padding: 72px 0;
}
.vision-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.vision-label { display: inline-flex; align-items: center; gap: 8px; background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); border-radius: 20px; padding: 4px 14px; font-size: 12px; font-weight: 600; color: #a78bfa; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.vision-title { font-size: clamp(26px,3vw,40px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.vision-sub { font-size: 16px; color: #94a3b8; margin-bottom: 32px; line-height: 1.6; }
.vision-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.vision-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: #cbd5e1; line-height: 1.5; }
.vision-list li::before { content: ''; width: 20px; height: 20px; border-radius: 50%; background: rgba(124,58,237,.2); border: 1px solid rgba(124,58,237,.4); flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.vision-check { width: 20px; height: 20px; border-radius: 50%; background: rgba(124,58,237,.2); border: 1px solid rgba(124,58,237,.4); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; margin-top: 2px; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vision-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 18px; transition: border-color .2s, background .2s; cursor: default; }
.vision-card:hover { border-color: rgba(124,58,237,.4); background: rgba(124,58,237,.06); }
.vision-card-icon { font-size: 28px; margin-bottom: 10px; }
.vision-card-title { font-size: 13px; font-weight: 700; color: #e2e8f0; margin-bottom: 4px; }
.vision-card-desc { font-size: 12px; color: #64748b; line-height: 1.4; }
@media (max-width: 768px) {
  .vision-inner { grid-template-columns: 1fr; gap: 40px; }
  .vision-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== CHAT WELCOME ===== */
.chat-welcome { padding: 24px 16px; max-width: 600px; margin: 0 auto; }
.chat-welcome-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.chat-welcome-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }
.chat-welcome-section { font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.chat-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chat-preset-chip {
  display: flex; align-items: center; gap: 7px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 20px; padding: 7px 14px; font-size: 13px; color: var(--text); cursor: pointer;
  transition: border-color .15s, background .15s; white-space: nowrap;
}
.chat-preset-chip:hover { border-color: var(--primary); background: rgba(124,58,237,.08); color: var(--primary); }
.chat-preset-chip span { font-size: 15px; }

/* ===== HOW IT WORKS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.step-card { text-align: center; padding: 32px 24px; }
.step-num {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--text-secondary); font-size: 15px; }

/* ===== STYLES SECTION ===== */
.styles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.style-card {
  border-radius: 14px; overflow: hidden; border: 1.5px solid var(--border);
  transition: all .2s; cursor: pointer;
}
.style-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.style-card-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: linear-gradient(135deg, #1a1030, #0d1535);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.style-card-img img { width: 100%; height: 100%; object-fit: cover; }
.style-card-info { padding: 12px 14px; }
.style-card-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.style-card-info p { font-size: 12px; color: var(--text-secondary); }

/* ===== EXAMPLES / GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.gallery-item { border-radius: 14px; overflow: hidden; aspect-ratio: 1; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  color: #fff; font-size: 12px; opacity: 0; transition: opacity .2s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ===== REVIEWS ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.review-card {
  padding: 28px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--card);
}
.review-stars { color: #F59E0B; font-size: 14px; margin-bottom: 12px; }
.review-text { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; }
.review-name { font-size: 14px; font-weight: 700; }
.review-role { font-size: 12px; color: var(--text-secondary); }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.plan-card-trial {
  background: linear-gradient(145deg, #1a0f35 0%, #16162a 60%) !important;
  border: 1.5px solid rgba(124,58,237,.6) !important;
  box-shadow: 0 0 40px rgba(124,58,237,.2), 0 8px 32px rgba(0,0,0,.4);
  position: relative;
  transform: scale(1.03);
}
.plan-card-trial .plan-ribbon {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 18px; border-radius: 100px;
  white-space: nowrap; box-shadow: 0 4px 14px rgba(249,115,22,.4);
}
.plan-card-trial .plan-name { color: #c4b5fd !important; }
.plan-card-trial .plan-price { background: linear-gradient(135deg,#a78bfa,#f472b6); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.plan-card-trial .plan-btn { background: linear-gradient(135deg,#7c3aed,#6d28d9) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 4px 20px rgba(124,58,237,.4); }
.plan-card {
  padding: 32px; border-radius: 20px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0; position: relative;
  background: var(--card);
}
.plan-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124,58,237,.12), 0 0 40px rgba(124,58,237,.1);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; padding: 4px 16px; border-radius: 100px; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); margin-bottom: 8px; }
.plan-price { font-size: 42px; font-weight: 900; margin-bottom: 4px; }
.plan-price span { font-size: 16px; font-weight: 500; color: var(--text-secondary); }
.plan-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.plan-features li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.plan-btn { width: 100%; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 700; transition: all .2s; text-align: center; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: pointer; font-size: 16px; font-weight: 600;
  gap: 16px; user-select: none;
}
.faq-icon { font-size: 20px; color: var(--primary); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: 15px; color: var(--text-secondary); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

/* ===== FOOTER ===== */
.footer { background: #0F0F1A; color: #E2E8F0; padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: #94A3B8; line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94A3B8; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: #CBD5E1; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1E1E38; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 13px; color: #64748B; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 8px; background: #1E1E38; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background .15s; }
.footer-socials a:hover { background: var(--primary); }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card); border-radius: 20px; padding: 40px; width: 100%; max-width: 440px;
  box-shadow: 0 0 0 1px var(--border), 0 32px 64px rgba(0,0,0,.6);
  transform: scale(.96); transition: transform .2s;
  position: relative; margin: 16px;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-secondary); cursor: pointer; }
.modal-close:hover { background: var(--card2); }
.modal-tabs { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 28px; background: var(--bg-soft); }
.modal-tab { flex: 1; padding: 8px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: all .15s; text-align: center; cursor: pointer; }
.modal-tab.active { background: var(--primary); color: #fff; }
.modal h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; color: #fff; }
.modal .modal-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); font-size: 15px; font-family: inherit;
  outline: none; transition: border-color .15s; color: var(--text);
  background: var(--bg-soft);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.form-error { font-size: 13px; color: #EF4444; margin-top: 4px; }
.btn-full { width: 100%; padding: 14px; border-radius: 12px; font-size: 16px; font-weight: 700; }
.modal-footer-text { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 16px; }
.modal-footer-text a { color: var(--primary); font-weight: 600; cursor: pointer; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #1F2937; color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-xl);
  animation: slideIn .2s ease; display: flex; align-items: center; gap: 10px;
  max-width: 320px;
}
.toast.error { background: #DC2626; }
.toast.success { background: #059669; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== DASHBOARD ===== */
.dash-layout { display: flex; min-height: 100vh; background: var(--dark-bg); color: var(--dark-text); }
.dash-sidebar {
  width: 240px; flex-shrink: 0; background: var(--dark-card);
  border-right: 1px solid var(--dark-border); padding: 24px 16px;
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-logo { padding: 8px 12px; margin-bottom: 16px; }
.dash-logo .logo { color: #fff; font-size: 18px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--dark-text2);
  cursor: pointer; transition: all .15s;
}
.dash-nav-item:hover { background: var(--dark-card2); color: var(--dark-text); }
.dash-nav-item.active { background: rgba(124,58,237,.2); color: var(--primary); }
.dash-nav-icon { font-size: 18px; flex-shrink: 0; }
.dash-nav-spacer { flex: 1; }
.dash-user-info { padding: 12px; background: var(--dark-card2); border-radius: 12px; }
.dash-user-email { font-size: 12px; color: var(--dark-text2); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user-credits { font-size: 13px; font-weight: 600; color: var(--primary); }

.dash-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.dash-topbar { padding: 16px 32px; border-bottom: 1px solid var(--dark-border); display: flex; align-items: center; justify-content: space-between; background: var(--dark-card); }
.dash-topbar h1 { font-size: 20px; font-weight: 700; }
.dash-credits-badge { display: flex; align-items: center; gap: 8px; background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); padding: 8px 16px; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--primary); }

.dash-content { flex: 1; padding: 32px; overflow-y: auto; }

.gen-form-card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 16px; padding: 28px; margin-bottom: 32px; }
.gen-form-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.gen-textarea {
  width: 100%; min-height: 100px; resize: vertical;
  background: var(--dark-bg); border: 1.5px solid var(--dark-border);
  border-radius: 12px; padding: 14px 16px; font-size: 15px; font-family: inherit;
  color: var(--dark-text); outline: none; transition: border-color .15s; line-height: 1.5;
}
.gen-textarea:focus { border-color: var(--primary); }
.gen-textarea::placeholder { color: #4B5563; }
.gen-options { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.gen-option-group label { font-size: 12px; font-weight: 600; color: var(--dark-text2); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: .05em; }
.gen-select {
  background: var(--dark-bg); border: 1.5px solid var(--dark-border);
  border-radius: 8px; padding: 8px 32px 8px 12px; font-size: 14px; color: var(--dark-text);
  font-family: inherit; outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}
.gen-select:focus { border-color: var(--primary); }
.btn-generate-main {
  padding: 12px 28px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-radius: 12px; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 15px rgba(124,58,237,.3); transition: all .2s; display: flex; align-items: center; gap: 8px;
}
.btn-generate-main:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,.4); }
.btn-generate-main:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.gen-result { margin-top: 24px; display: none; }
.gen-result.visible { display: block; }
.gen-result-img {
  width: 100%; max-width: 512px; border-radius: 12px; overflow: hidden;
  margin: 0 auto; border: 1px solid var(--dark-border); position: relative;
}
.gen-result-img img { width: 100%; display: block; }
.gen-loading {
  aspect-ratio: 1; max-width: 512px; margin: 0 auto;
  background: var(--dark-card2); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  border: 1px solid var(--dark-border);
}
.spinner { width: 40px; height: 40px; border: 3px solid var(--dark-border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gen-result-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: center; }
.btn-sm { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: all .15s; }
.btn-sm-primary { background: rgba(124,58,237,.2); color: var(--primary); border: 1px solid rgba(124,58,237,.3); }
.btn-sm-primary:hover { background: rgba(124,58,237,.35); }
.btn-sm-ghost { background: var(--dark-card2); color: var(--dark-text2); border: 1px solid var(--dark-border); }
.btn-sm-ghost:hover { color: var(--dark-text); }

.gallery-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.dash-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.dash-gallery-item { border-radius: 12px; overflow: hidden; aspect-ratio: 1; position: relative; background: var(--dark-card2); border: 1px solid var(--dark-border); cursor: pointer; group: true; }
.dash-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.dash-gallery-item:hover img { transform: scale(1.05); }
.dash-gallery-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity .2s; padding: 12px; text-align: center;
}
.dash-gallery-item:hover .dash-gallery-overlay { opacity: 1; }
.dash-gallery-overlay p { color: #fff; font-size: 11px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.dash-gallery-empty { grid-column: 1/-1; padding: 48px; text-align: center; color: var(--dark-text2); }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; background: var(--dark-bg); color: var(--dark-text); }
.admin-sidebar {
  width: 240px; flex-shrink: 0; background: var(--dark-card);
  border-right: 1px solid var(--dark-border); padding: 24px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
.admin-logo { padding: 8px 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.admin-logo .logo { color: #fff; font-size: 16px; }
.admin-badge { font-size: 10px; font-weight: 700; background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 100px; text-transform: uppercase; letter-spacing: .06em; }
.admin-nav-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #4B5563; padding: 16px 12px 6px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--dark-text2);
  cursor: pointer; transition: all .15s;
}
.admin-nav-item:hover { background: var(--dark-card2); color: var(--dark-text); }
.admin-nav-item.active { background: rgba(124,58,237,.2); color: var(--primary); }
.admin-nav-icon { font-size: 16px; }

.admin-main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.admin-topbar { padding: 16px 32px; border-bottom: 1px solid var(--dark-border); background: var(--dark-card); display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { font-size: 20px; font-weight: 700; }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }

.admin-content { flex: 1; padding: 32px; overflow-y: auto; }
.admin-page { display: none; }
.admin-page.active { display: block; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 16px; padding: 24px; }
.stat-label { font-size: 13px; color: var(--dark-text2); font-weight: 500; margin-bottom: 8px; }
.stat-value { font-size: 36px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-sub { font-size: 12px; color: var(--dark-text2); }
.stat-card:nth-child(1) .stat-value { color: var(--primary); }
.stat-card:nth-child(2) .stat-value { color: #10B981; }
.stat-card:nth-child(3) .stat-value { color: #F59E0B; }
.stat-card:nth-child(4) .stat-value { color: #3B82F6; }

.admin-card { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.admin-card-header { padding: 20px 24px; border-bottom: 1px solid var(--dark-border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.admin-card-header h2 { font-size: 16px; font-weight: 700; }
.admin-search { background: var(--dark-bg); border: 1.5px solid var(--dark-border); border-radius: 8px; padding: 8px 12px; font-size: 14px; color: var(--dark-text); font-family: inherit; outline: none; width: 240px; }
.admin-search:focus { border-color: var(--primary); }
.admin-search::placeholder { color: #4B5563; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 24px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dark-text2); border-bottom: 1px solid var(--dark-border); background: rgba(0,0,0,.2); }
.admin-table td { padding: 14px 24px; font-size: 14px; border-bottom: 1px solid rgba(42,42,74,.5); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(124,58,237,.05); }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.badge-free { background: rgba(107,114,128,.15); color: #9CA3AF; }
.badge-pro { background: rgba(79,70,229,.2); color: #818CF8; }
.badge-business { background: rgba(16,185,129,.2); color: #34D399; }
.badge-banned { background: rgba(239,68,68,.2); color: #F87171; }
.badge-active { background: rgba(16,185,129,.2); color: #34D399; }
.badge-admin { background: rgba(124,58,237,.2); color: #A78BFA; }

.admin-actions { display: flex; gap: 6px; }
.btn-action { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; transition: all .15s; }
.btn-action-danger { background: rgba(239,68,68,.15); color: #F87171; border: 1px solid rgba(239,68,68,.2); }
.btn-action-danger:hover { background: rgba(239,68,68,.25); }
.btn-action-primary { background: rgba(124,58,237,.15); color: #A78BFA; border: 1px solid rgba(124,58,237,.2); }
.btn-action-primary:hover { background: rgba(124,58,237,.25); }
.btn-action-success { background: rgba(16,185,129,.15); color: #34D399; border: 1px solid rgba(16,185,129,.2); }
.btn-action-success:hover { background: rgba(16,185,129,.25); }

.gen-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--dark-card2); }
.gen-prompt-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dark-text2); }

.admin-pagination { padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--dark-border); }
.admin-pagination span { font-size: 13px; color: var(--dark-text2); }
.pagination-btns { display: flex; gap: 6px; }
.btn-page { padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; background: var(--dark-card2); color: var(--dark-text2); border: 1px solid var(--dark-border); transition: all .15s; }
.btn-page:hover { border-color: var(--primary); color: var(--primary); }
.btn-page.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-page:disabled { opacity: .4; cursor: not-allowed; }

/* Credits modal */
.credits-input { display: flex; gap: 8px; margin-top: 8px; }
.credits-input input { flex: 1; }

/* Gallery thumb in admin */
.gen-img-wrap { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--dark-card2); }
.gen-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Yandex OAuth button */
.auth-social-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px;
}
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 8px; border-radius: 12px; color: #fff;
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; text-decoration: none;
  transition: filter .15s, transform .15s;
}
.btn-social:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-social:active { transform: translateY(0); }
.btn-social-full { grid-column: 1 / -1; font-size: 14px; padding: 12px; }
.btn-yandex { background: #FC3F1D; }
.btn-vk      { background: #0077FF; }
.btn-telegram { background: #2AABEE; }

/* Legacy single-button variant (admin) */
a.btn-yandex, a.btn-yandex-compat {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px; border-radius: 12px;
  background: #FC3F1D; color: #fff;
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; text-decoration: none;
  transition: background .15s, transform .15s; margin-bottom: 4px;
}
a.btn-yandex:hover { background: #e8371a; transform: translateY(-1px); }

/* Auth divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--text-secondary); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Dark variant for admin */
.btn-yandex-dark {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px; border-radius: 12px;
  background: #FC3F1D; color: #fff;
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; text-decoration: none;
  transition: background .15s, transform .15s; margin-bottom: 4px;
}
.btn-yandex-dark:hover { background: #e8371a; transform: translateY(-1px); }

.auth-divider-dark {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--dark-text2); font-size: 13px;
}
.auth-divider-dark::before, .auth-divider-dark::after {
  content: ''; flex: 1; height: 1px; background: var(--dark-border);
}

/* Pricing page */
.pricing-page { padding: 80px 0; }

/* ===== SIDEBAR NAV LABEL ===== */
.dash-nav-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-secondary); padding: 16px 16px 4px; opacity: .6;
}

/* ===== AI TOOLS LAYOUT ===== */
.ai-tool-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 16px; height: calc(100vh - 120px);
}

.ai-sidebar {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden;
}

.ai-new-btn {
  margin: 12px; padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: var(--primary-light); color: var(--primary); border: 1px solid rgba(124,58,237,.3);
  cursor: pointer; transition: background .15s; font-family: inherit;
}
.ai-new-btn:hover { background: rgba(124,58,237,.28); }

.ai-history { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.history-empty { font-size: 12px; color: var(--text-secondary); padding: 8px 8px; text-align: center; }

.history-item {
  display: flex; align-items: center; gap: 4px; padding: 8px 8px; border-radius: 8px;
  cursor: pointer; transition: background .12s; margin-bottom: 2px;
}
.history-item:hover { background: var(--card2); }
.history-item-title {
  flex: 1; font-size: 12px; color: var(--text-secondary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.history-delete {
  font-size: 16px; color: var(--text-secondary); opacity: 0; cursor: pointer;
  background: none; border: none; padding: 0 2px; line-height: 1; font-family: inherit;
  transition: opacity .12s, color .12s;
}
.history-item:hover .history-delete { opacity: 1; }
.history-delete:hover { color: #EF4444; }

.ai-chat-wrap {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden;
}

.ai-tool-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.ai-tool-meta {
  display: flex; align-items: center; gap: 12px;
}
.ai-tool-icon-big { font-size: 28px; }
.ai-tool-meta strong { display: block; font-size: 16px; color: var(--text); }
.ai-tool-meta span { font-size: 12px; color: var(--text-secondary); }

/* Presets row */
.text-presets {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.preset-chip {
  font-size: 12px; padding: 5px 12px; border-radius: 20px; cursor: pointer;
  background: var(--card2); color: var(--text-secondary); border: 1px solid var(--border);
  font-family: inherit; transition: all .12s;
}
.preset-chip:hover { background: var(--primary-light); color: var(--primary); border-color: rgba(124,58,237,.3); }

/* Messages area */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px;
  scroll-behavior: smooth;
}
.chat-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; text-align: center; gap: 12px; color: var(--text-secondary);
}
.chat-empty-icon { font-size: 40px; }
.chat-empty p { font-size: 14px; max-width: 320px; }

/* Messages */
.chat-msg { display: flex; }
.chat-msg-user { justify-content: flex-end; }
.chat-msg-assistant { justify-content: flex-start; }

.chat-msg-bubble {
  max-width: 75%; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.6;
}
.chat-msg-user .chat-msg-bubble {
  background: var(--primary); color: #fff; border-bottom-right-radius: 4px;
}
.chat-msg-assistant .chat-msg-bubble {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
body.plan-free .chat-msg-assistant .chat-msg-bubble {
  user-select: none;
  -webkit-user-select: none;
}

.chat-msg-content h2, .chat-msg-content h3, .chat-msg-content h4 {
  margin: 12px 0 6px; font-weight: 700;
}
.chat-msg-content h2 { font-size: 16px; }
.chat-msg-content h3 { font-size: 15px; }
.chat-msg-content h4 { font-size: 14px; }
.chat-msg-content ul { padding-left: 18px; }
.chat-msg-content li { margin-bottom: 4px; }
.chat-msg-content strong { font-weight: 700; }
.chat-msg-content em { font-style: italic; }

/* Inline code */
.inline-code {
  background: rgba(124,58,237,.15); color: #C4B5FD; padding: 1px 6px;
  border-radius: 4px; font-family: 'Fira Code', monospace; font-size: 13px;
}

/* Code block */
.code-block {
  background: #0A0A18; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; margin: 10px 0; font-size: 13px;
}
.code-block-header {
  background: var(--dark-card2); padding: 6px 14px; font-size: 11px;
  color: var(--text-secondary); font-family: monospace; border-bottom: 1px solid var(--border);
}
.code-block pre { padding: 14px; overflow-x: auto; }
.code-block code { color: #A5F3FC; font-family: 'Fira Code', 'Courier New', monospace; white-space: pre; }

/* Typing cursor */
.typing-cursor { color: var(--primary); animation: blink .7s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Input bar */
.chat-input-bar {
  display: flex; align-items: flex-end; gap: 10px; padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-family: inherit; font-size: 14px; padding: 10px 14px;
  resize: none; outline: none; min-height: 44px; max-height: 160px; line-height: 1.5;
  transition: border-color .15s;
}
.chat-input:focus { border-color: var(--primary); }
.chat-input::placeholder { color: var(--text-secondary); }

.chat-send-btn {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; background: var(--primary); color: #fff; cursor: pointer;
  transition: background .15s, transform .1s; flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--primary-dark); }
.chat-send-btn:active { transform: scale(.95); }
.chat-send-btn:disabled { background: var(--border); cursor: not-allowed; }

/* Image upload in chat */
.chat-input-bar { flex-direction: column; align-items: stretch; }
.chat-input-row { display: flex; align-items: flex-end; gap: 10px; }
.chat-img-upload-btn {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; flex-shrink: 0; transition: border-color .15s, color .15s;
}
.chat-img-upload-btn:hover { border-color: var(--primary); color: var(--primary); }
.chat-img-preview {
  display: flex; align-items: center; gap: 10px; padding: 8px 4px 0;
}
.chat-img-preview img { height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.chat-img-remove {
  background: rgba(239,68,68,.15); border: none; color: #EF4444; border-radius: 8px;
  width: 28px; height: 28px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.chat-msg-img { max-width: 260px; border-radius: 10px; margin-bottom: 6px; display: block; }

/* Featured expert card */
.expert-card-featured {
  border-color: var(--primary) !important;
  background: linear-gradient(145deg, var(--card) 0%, rgba(124,58,237,.08) 100%) !important;
  position: relative;
}
.expert-card-featured-badge {
  position: absolute; top: -12px; left: 20px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; letter-spacing: .04em;
}

@media (max-width: 1024px) {
  .ai-tool-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; }
  .ai-sidebar { display: none; }
  .ai-chat-wrap { height: calc(100vh - 140px); }
}

/* Responsive */
@media (max-width: 1024px) {
  .styles-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card-trial { transform: none; }
  .header-nav { display: none; }
  .dash-sidebar { display: none; }
  .admin-sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Referral page ===== */
.referral-page { max-width: 600px; margin: 0 auto; padding: 8px 0 40px; }

.referral-hero { text-align: center; margin-bottom: 36px; }
.referral-hero h2 { font-size: 24px; font-weight: 800; color: #fff; margin: 0 0 10px; }
.referral-hero p  { font-size: 14px; color: #94a3b8; margin: 0; line-height: 1.6; }
.referral-hero strong { color: #a78bfa; }

.referral-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.ref-stat { background: #16162a; border: 1px solid #2a2a4a; border-radius: 16px; padding: 24px; text-align: center; }
.ref-stat-num { font-size: 36px; font-weight: 900; color: #a78bfa; margin-bottom: 6px; }
.ref-stat-label { font-size: 13px; color: #64748b; }

.referral-link-card { background: #16162a; border: 1px solid rgba(124,58,237,.35); border-radius: 16px; padding: 20px 20px 18px; margin-bottom: 28px; }
.ref-link-label { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; font-weight: 600; }
.ref-link-row { display: flex; gap: 10px; }
.ref-link-input { flex: 1; background: rgba(255,255,255,.05); border: 1px solid #2a2a4a; border-radius: 10px; padding: 11px 14px; color: #cbd5e1; font-size: 13px; outline: none; min-width: 0; }
.ref-link-copy { background: linear-gradient(135deg,#7c3aed,#6d28d9); border: none; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 700; padding: 0 20px; cursor: pointer; white-space: nowrap; transition: opacity .2s; }
.ref-link-copy:hover { opacity: .85; }
.ref-link-copy.copied { background: #16a34a; }

.referral-steps { display: flex; flex-direction: column; gap: 16px; }
.ref-step { display: flex; align-items: flex-start; gap: 16px; background: #16162a; border: 1px solid #2a2a4a; border-radius: 14px; padding: 18px; }
.ref-step-num { width: 32px; height: 32px; background: rgba(124,58,237,.2); border: 1px solid rgba(124,58,237,.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #a78bfa; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.ref-step-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.ref-step-sub   { font-size: 13px; color: #64748b; line-height: 1.4; }

/* ===== Mobile bottom nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(13,13,26,.96);
  border-top: 1px solid #2a2a4a;
  backdrop-filter: blur(12px);
  z-index: 200;
  padding: 8px 4px env(safe-area-inset-bottom, 8px);
  justify-content: space-around;
  align-items: center;
}
.mn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 8px; border-radius: 10px; cursor: pointer;
  font-size: 20px; color: #64748b;
  transition: color .2s, background .2s;
  flex: 1; min-width: 0;
}
.mn-item.active { color: #a78bfa; background: rgba(124,58,237,.12); }
.mn-item:hover { color: #94a3b8; }
.mn-label { font-size: 10px; font-weight: 500; white-space: nowrap; }

@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  .dash-main  { padding-bottom: 72px; }
}

/* ===== Copy Promo Popup ===== */
.copy-promo-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0,0,0,.55);
  animation: fadeIn .2s ease;
}
.copy-promo-overlay.open { display: flex; }

.copy-promo-card {
  position: relative;
  background: linear-gradient(145deg, #16162a 0%, #1a1035 60%, #0d0d1a 100%);
  border: 1px solid rgba(124,58,237,.35);
  border-radius: 20px;
  padding: 32px 28px 28px;
  max-width: 380px;
  width: calc(100% - 32px);
  box-shadow: 0 0 60px rgba(124,58,237,.25), 0 24px 60px rgba(0,0,0,.6);
  text-align: center;
  animation: scaleIn .25s cubic-bezier(.34,1.56,.64,1);
}

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

.copy-promo-close {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(255,255,255,.08);
  border: none;
  color: #94a3b8;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.copy-promo-close:hover { background: rgba(255,255,255,.15); color: #fff; }

.copy-promo-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}

.copy-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(124,58,237,.3), rgba(220,100,20,.2));
  border: 1px solid rgba(249,115,22,.4);
  color: #fb923c;
  font-size: 15px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 18px;
  letter-spacing: .3px;
}

.copy-promo-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
}

.copy-promo-sub {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 20px;
}

.copy-promo-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.copy-promo-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
}
.cpf-check {
  width: 20px; height: 20px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #22c55e;
  font-size: 11px;
  flex-shrink: 0;
}

.copy-promo-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  height: 110px;
}
.copy-promo-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.copy-promo-price-hint {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 14px;
}

.copy-promo-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.copy-promo-btn:hover { opacity: .9; transform: translateY(-1px); }
