/* =====================================================
   PROMPT GURU - Premium CSS
   Stack: Pure CSS, Mobile First, Modern SaaS 2026
   ===================================================== */

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

:root {
  --primary: #5b21b6;
  --primary-light: #7c3aed;
  --primary-dark: #4c1d95;
  --accent: #06b6d4;
  --accent2: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #fafafa;
  --bg-alt: #f1f5f9;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
  --gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, #1e1b4b 100%);
  --gradient-card: linear-gradient(135deg, #f8fafc, #f1f5f9);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.25; color: var(--text-dark); }
h1 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-body); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === LAYOUT === */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

/* === NAVBAR === */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--text-dark); }
.logo-accent { color: var(--primary); }
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a:not(.btn-nav-cta):not(.btn-nav-outline) { font-size: .9rem; font-weight: 500; color: var(--text-body); transition: color var(--transition); }
.nav-links a:not(.btn-nav-cta):not(.btn-nav-outline):hover { color: var(--primary); }
.btn-nav-outline {
  padding: 8px 18px; border: 1.5px solid var(--primary); border-radius: 10px;
  font-size: .875rem; font-weight: 600; color: var(--primary); transition: all var(--transition);
}
.btn-nav-outline:hover { background: var(--primary); color: #fff; }
.btn-nav-cta {
  padding: 9px 20px; background: var(--gradient); border-radius: 10px;
  font-size: .875rem; font-weight: 600; color: #fff; transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(91,33,182,.3);
}
.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,33,182,.4); }
.hamburger { display: flex; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: var(--transition); }

/* Mobile Nav */
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  background: #fff; padding: 16px 20px 20px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 16px; font-weight: 500; border-radius: 10px; transition: background var(--transition); }
.nav-mobile a:hover { background: var(--bg-alt); }
.btn-full-mobile {
  background: var(--gradient); color: #fff !important;
  text-align: center; border-radius: 12px; padding: 14px 16px !important;
  font-weight: 600; margin-top: 8px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
}

/* === HERO === */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient);
  padding: 72px 0 0;
}
.hero-blob {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  top: -200px; right: -200px; border-radius: 50%;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; padding-bottom: 60px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  color: #fff; border: 1px solid rgba(255,255,255,.25);
  padding: 8px 18px; border-radius: 100px; font-size: .875rem; font-weight: 500;
  margin-bottom: 24px;
}
.hero-title { color: #fff; margin-bottom: 20px; letter-spacing: -.02em; }
.hero-desc { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 620px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary);
  padding: 15px 28px; border-radius: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: all var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,.4); color: #fff;
  padding: 14px 24px; border-radius: 14px;
  font-weight: 600; font-size: 1rem; transition: all var(--transition);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.hero-stats {
  display: inline-flex; gap: 32px; align-items: center;
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  padding: 16px 32px; border-radius: 100px; border: 1px solid rgba(255,255,255,.2);
}
.stat-item { text-align: center; }
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.7); }
.stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,.2); }

/* App Preview */
.hero-visual {
  background: rgba(0,0,0,.2); padding: 40px 0 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.app-preview {
  background: #fff; border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.15);
  overflow: hidden; max-width: 720px; margin: 0 auto;
}
.preview-header {
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: var(--warning); }
.preview-dots span:last-child { background: var(--success); }
.preview-title { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.preview-body { padding: 20px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; }
.preview-form { display: flex; flex-direction: column; gap: 8px; }
.preview-field {
  background: var(--bg-alt); border-radius: 8px; padding: 10px 12px;
  border: 1px solid var(--border);
}
.pf-label { display: block; font-size: .7rem; color: var(--text-muted); margin-bottom: 2px; }
.pf-value { font-size: .85rem; font-weight: 600; color: var(--text-dark); }
.preview-result { background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 10px; padding: 14px; }
.preview-result-badge { font-size: .75rem; font-weight: 600; color: var(--success); margin-bottom: 8px; }
.preview-result-text { font-size: .78rem; color: var(--text-body); line-height: 1.5; margin-bottom: 12px; }
.preview-ai-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.preview-ai-chips span {
  background: var(--primary); color: #fff;
  padding: 3px 10px; border-radius: 100px; font-size: .7rem; font-weight: 600;
}
@media (max-width: 600px) {
  .preview-body { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; padding: 12px 20px; flex-wrap: wrap; justify-content: center; }
}

/* === SECTION HEADER === */
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(91,33,182,.1), rgba(124,58,237,.1));
  color: var(--primary); border: 1px solid rgba(91,33,182,.2);
  padding: 6px 16px; border-radius: 100px; font-size: .8rem; font-weight: 600;
  margin-bottom: 12px; letter-spacing: .03em; text-transform: uppercase;
}
.section-title { margin-bottom: 12px; }
.section-desc { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* === FEATURES === */
.features-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: rgba(91,33,182,.25);
}
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.feature-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.feature-tags span {
  background: var(--bg-alt); color: var(--primary);
  padding: 3px 10px; border-radius: 8px; font-size: .72rem; font-weight: 600;
  border: 1px solid rgba(91,33,182,.15);
}

/* === STEPS FLOW === */
.steps-flow {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap; justify-content: center;
}
.step-card {
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 20px; text-align: center;
  flex: 1; min-width: 180px; max-width: 220px;
  transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.step-num {
  width: 44px; height: 44px; background: var(--gradient);
  color: #fff; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  margin-bottom: 12px; box-shadow: 0 4px 12px rgba(91,33,182,.3);
}
.step-card h3 { font-size: .95rem; margin-bottom: 6px; }
.step-card p { font-size: .8rem; color: var(--text-muted); }
.step-arrow { font-size: 1.5rem; color: var(--primary); padding: 0 8px; opacity: .4; }
@media (max-width: 768px) { .step-arrow { display: none; } .steps-flow { gap: 12px; } }

/* === AI TOOLS === */
.ai-tools-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 640px) { .ai-tools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ai-tools-grid { grid-template-columns: repeat(6, 1fr); } }

.ai-tool-card {
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px; text-align: center;
  transition: all var(--transition); box-shadow: var(--shadow-sm);
}
.ai-tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ai-tool-icon { font-size: 1.75rem; margin-bottom: 8px; }
.ai-tool-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.ai-tool-card p { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }

/* === PRICING === */
.pricing-toggle {
  display: flex; justify-content: center; gap: 4px;
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 5px; width: fit-content; margin: 0 auto 40px;
}
.toggle-btn {
  padding: 10px 20px; border-radius: 10px; font-size: .875rem; font-weight: 600;
  color: var(--text-muted); transition: all var(--transition);
}
.toggle-btn.active { background: var(--gradient); color: #fff; box-shadow: 0 4px 12px rgba(91,33,182,.3); }
.badge-save {
  background: #fef3c7; color: #92400e;
  padding: 2px 8px; border-radius: 100px; font-size: .65rem;
  margin-left: 6px; font-weight: 700;
}

.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  align-items: stretch;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  background: var(--card-bg); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px;
  position: relative; transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-popular {
  border-color: var(--primary); box-shadow: var(--shadow-lg);
  transform: scale(1.02);
  background: linear-gradient(to bottom, rgba(91,33,182,.03), #fff);
}
.pricing-popular:hover { transform: scale(1.02) translateY(-4px); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff;
  padding: 5px 18px; border-radius: 100px; font-size: .78rem; font-weight: 700;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(91,33,182,.4);
}
.pkg-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.pkg-desc { font-size: .85rem; color: var(--text-muted); margin-bottom: 20px; }
.pkg-price { margin-bottom: 24px; }
.price-amount { font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; color: var(--text-dark); }
.price-period { font-size: .85rem; color: var(--text-muted); }
.pkg-features { list-style: none; margin-bottom: 28px; }
.pkg-features li { display: flex; gap: 10px; padding: 7px 0; font-size: .875rem; border-bottom: 1px solid var(--border-light); }
.pkg-features li:last-child { border: none; }
.feat-check { color: var(--success); font-weight: 700; flex-shrink: 0; }
.btn-pricing {
  display: block; text-align: center; padding: 13px;
  border: 2px solid var(--border); border-radius: 12px;
  font-weight: 600; font-size: .9rem; color: var(--text-dark);
  transition: all var(--transition);
}
.btn-pricing:hover { border-color: var(--primary); color: var(--primary); }
.btn-pricing-primary {
  background: var(--gradient); border-color: transparent;
  color: #fff; box-shadow: 0 4px 16px rgba(91,33,182,.3);
}
.btn-pricing-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(91,33,182,.4); }
.pricing-note { text-align: center; margin-top: 28px; font-size: .85rem; color: var(--text-muted); }

/* === TESTIMONIALS === */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.testi-stars { font-size: 1rem; margin-bottom: 12px; }
.testi-text { font-size: .9rem; color: var(--text-body); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; background: var(--gradient);
  color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: .9rem; }
.testi-role { font-size: .75rem; color: var(--text-muted); }

/* === FAQ === */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; font-weight: 600; font-size: .9rem;
  color: var(--text-dark); text-align: left; gap: 12px;
  background: var(--card-bg); transition: background var(--transition);
  font-family: var(--font-head);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-icon { font-size: 1.2rem; color: var(--primary); flex-shrink: 0; font-weight: 700; }
.faq-answer {
  max-height: 0; overflow: hidden;
  font-size: .875rem; color: var(--text-body); line-height: 1.7;
  padding: 0 20px; background: var(--bg-alt);
  transition: max-height .3s ease;
}
.faq-answer[style*="max-height"] { padding: 16px 20px; }

/* === CTA SECTION === */
.cta-section { background: var(--gradient); }
.cta-box { text-align: center; }
.cta-box h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,.8); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta-white {
  background: #fff; color: var(--primary);
  padding: 15px 28px; border-radius: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.15); transition: all var(--transition);
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.btn-cta-outline {
  border: 2px solid rgba(255,255,255,.5); color: #fff;
  padding: 14px 24px; border-radius: 14px;
  font-weight: 600; font-size: 1rem; transition: all var(--transition);
}
.btn-cta-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.9); }

/* === FOOTER === */
.footer { background: #0f172a; padding: 60px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; padding-bottom: 48px;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .logo-text { color: #fff; font-size: 1.1rem; }
.footer-brand p { color: #64748b; font-size: .85rem; margin-top: 8px; }
.footer-links h4 { color: #e2e8f0; font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.footer-links a { display: block; color: #64748b; font-size: .875rem; padding: 4px 0; transition: color var(--transition); }
.footer-links a:hover { color: #e2e8f0; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding: 20px 0;
}
.footer-bottom p { text-align: center; color: #475569; font-size: .8rem; }

/* === DASHBOARD COMPONENTS === */
.dashboard-layout { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1024px) { .dashboard-layout { grid-template-columns: 260px 1fr; } }

.sidebar {
  background: #fff; border-right: 1px solid var(--border);
  padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: none;
}
@media (min-width: 1024px) { .sidebar { display: block; } }

.sidebar-logo { padding: 0 20px 20px; border-bottom: 1px solid var(--border-light); margin-bottom: 12px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; font-size: .875rem; font-weight: 500; color: var(--text-body);
  border-radius: 0; transition: all var(--transition); border-left: 3px solid transparent;
}
.sidebar-nav a:hover { background: var(--bg-alt); color: var(--primary); border-left-color: var(--primary); }
.sidebar-nav a.active { background: rgba(91,33,182,.06); color: var(--primary); font-weight: 600; border-left-color: var(--primary); }
.sidebar-nav .nav-icon { font-size: 1.1rem; }
.sidebar-section-label { padding: 12px 20px 4px; font-size: .7rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .08em; }

.main-content { background: var(--bg); overflow-x: hidden; }
.page-header {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.page-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); font-family: var(--font-head); }
.page-content { padding: 24px; }

/* Cards / Stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-card-num { font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; color: var(--text-dark); }
.stat-card-label { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.stat-card-icon { font-size: 1.75rem; margin-bottom: 10px; }
.stat-card-change { font-size: .75rem; color: var(--success); font-weight: 600; margin-top: 4px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-required { color: var(--danger); }
.form-control {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .9rem; color: var(--text-dark);
  background: var(--card-bg); outline: none; transition: all var(--transition);
  appearance: auto;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,33,182,.12); }
.form-control::placeholder { color: var(--text-light); }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 5px; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

.card {
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border-light);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  display: flex; align-items: center; justify-content: space-between;
}
.card-body { padding: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: .875rem;
  transition: all var(--transition); cursor: pointer; border: none;
}
.btn-sm { padding: 7px 14px; font-size: .78rem; border-radius: 8px; }
.btn-lg { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn-purple { background: var(--gradient); color: #fff; box-shadow: 0 4px 12px rgba(91,33,182,.25); }
.btn-purple:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,33,182,.35); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-outline { border: 1.5px solid var(--border); color: var(--text-body); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(91,33,182,.04); }
.btn-ghost-dark { color: var(--text-muted); }
.btn-ghost-dark:hover { color: var(--danger); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--bg-alt); padding: 12px 14px; text-align: left; font-size: .78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tbody td { padding: 14px; border-bottom: 1px solid var(--border-light); font-size: .875rem; color: var(--text-body); }
tbody tr:last-child td { border: none; }
tbody tr:hover td { background: var(--bg-alt); }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px; font-size: .72rem; font-weight: 700;
}
.badge-green { background: #d1fae5; color: #065f46; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-purple { background: rgba(91,33,182,.1); color: var(--primary); }

/* Alerts */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #d1fae5; border: 1.5px solid #a7f3d0; color: #065f46; }
.alert-error { background: #fee2e2; border: 1.5px solid #fecaca; color: #991b1b; }
.alert-info { background: #dbeafe; border: 1.5px solid #bfdbfe; color: #1e40af; }
.alert-warning { background: #fef3c7; border: 1.5px solid #fde68a; color: #92400e; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.empty-state p { font-size: .875rem; color: var(--text-muted); margin-bottom: 20px; }

/* Auth Pages */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--gradient); padding: 20px;
}
.auth-card {
  background: #fff; border-radius: var(--radius-lg); padding: 40px 36px;
  max-width: 440px; width: 100%; box-shadow: var(--shadow-xl);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 1.3rem; font-weight: 700; color: var(--text-dark); text-align: center; margin-bottom: 4px; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: .875rem; margin-bottom: 28px; }

/* Prompt Generator Result Box */
.prompt-result {
  background: #0f172a; color: #e2e8f0; border-radius: var(--radius);
  padding: 24px; position: relative; font-family: 'Inter', monospace; font-size: .85rem; line-height: 1.8;
  border: 1px solid #1e293b;
}
.prompt-result-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #1e293b;
}
.prompt-result-label { font-size: .7rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.copy-btn {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #e2e8f0; padding: 6px 14px; border-radius: 8px;
  font-size: .78rem; font-weight: 600; cursor: pointer; transition: all var(--transition);
  font-family: var(--font-body);
}
.copy-btn:hover { background: rgba(255,255,255,.2); }
.copy-btn.copied { background: var(--success); border-color: var(--success); }

/* AI Tool Badges */
.ai-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 10px; font-size: .78rem; font-weight: 600;
  border: 1.5px solid; cursor: pointer; transition: all var(--transition);
}
.ai-badge:hover { transform: translateY(-1px); }

/* Steps List */
.steps-list { list-style: none; counter-reset: steps; }
.steps-list li {
  counter-increment: steps; position: relative;
  padding: 14px 14px 14px 52px; border-bottom: 1px solid var(--border-light);
  font-size: .875rem;
}
.steps-list li::before {
  content: counter(steps);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; background: var(--gradient);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  flex-shrink: 0;
}

/* Progress / Monitoring */
.progress-bar-wrap { background: var(--bg-alt); border-radius: 100px; height: 8px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--gradient); border-radius: 100px; transition: width .6s ease; }

/* Infographic Card */
.infographic-card {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
  text-align: center;
}
.infographic-score {
  font-family: var(--font-head); font-size: 3rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Notification Toast */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--text-dark); color: #fff; padding: 14px 18px;
  border-radius: 12px; font-size: .875rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; min-width: 260px;
  animation: toastIn .25s ease;
}
.toast-success { background: #065f46; border-left: 4px solid var(--success); }
.toast-error { background: #991b1b; border-left: 4px solid var(--danger); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Scroll animations */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.animate-on-scroll.visible { opacity: 1; transform: none; }

/* Mobile bottom nav */
.mobile-bottom-nav {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 200; box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
@media (min-width: 1024px) { .mobile-bottom-nav { display: none; } }

.mobile-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px; font-size: .65rem; font-weight: 600; color: var(--text-light);
  transition: color var(--transition);
}
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item span:first-child { font-size: 1.3rem; }

/* Responsive adjustments */
@media (max-width: 375px) {
  .auth-card { padding: 28px 20px; }
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* Selection */
::selection { background: rgba(91,33,182,.2); color: var(--primary-dark); }
