/* ========================================
   JustSocialPost — Global Styles
   Dark SaaS theme, Inter font
   UPGRADED 2026-03-27 — Gold Standard Pass
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0B0F1A;
  color: #E5E7EB;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #818CF8; text-decoration: none; transition: color .2s; }
a:hover { color: #A5B4FC; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.section { padding: 80px 0; }
.section-dark { background: #111827; }
h1, h2, h3, h4 { color: #FFFFFF; line-height: 1.2; }
h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.section-sub { color: #9CA3AF; font-size: 1.15rem; max-width: 600px; margin: 0 auto 48px; }
.accent { color: #818CF8; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 10px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: 2px solid transparent;
  background: #818CF8; color: #0B0F1A; transition: all .2s;
  text-decoration: none;
}
.btn:hover { background: #6366F1; color: #FFF; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(129,140,248,0.3); }
.btn-outline { background: transparent; color: #818CF8; border-color: #818CF8; }
.btn-outline:hover { background: #818CF8; color: #0B0F1A; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-danger { background: #EF4444; color: #FFF; }
.btn-danger:hover { background: #DC2626; }
.btn-ghost { background: transparent; color: #9CA3AF; border: none; padding: 8px 16px; }
.btn-ghost:hover { color: #FFF; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11,15,26,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
}
.nav.scrolled {
  background: rgba(11,15,26,0.97);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 8px; }
.logo-text { font-size: 1.25rem; font-weight: 800; color: #FFF; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #9CA3AF; font-size: 0.9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #FFF; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #FFF; margin: 5px 0; border-radius: 2px; transition: .3s; }
@media(max-width:768px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #111827; padding: 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* --- Hero --- */
.hero { padding: 120px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(129,140,248,0.12); color: #818CF8; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(129,140,248,0.2);
}
.hero h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero h1 .accent { color: #818CF8; }
.hero-sub { font-size: 1.15rem; color: #9CA3AF; margin-bottom: 32px; line-height: 1.7; }
.hero-sub strong { color: #FFF; }
.hero-ctas { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stat {
  display: flex; align-items: center; gap: 8px;
  color: #9CA3AF; font-size: 0.9rem;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(129,140,248,0.06);
  border: 1px solid rgba(129,140,248,0.12);
}
.hero-stat strong { color: #FFF; font-size: 1rem; display: inline; font-weight: 800; }
.hero-stat svg { flex-shrink: 0; }

/* Dashboard Mockup (hero visual) */
.dash-mockup {
  background: #141a2a;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05),
    0 0 80px rgba(129,140,248,0.08);
}
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chrome-dots {
  display: flex;
  gap: 6px;
}
.chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.chrome-dots span:nth-child(1) { background: #EF4444; }
.chrome-dots span:nth-child(2) { background: #F59E0B; }
.chrome-dots span:nth-child(3) { background: #10B981; }
.chrome-url {
  flex: 1;
  padding: 5px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 0.72rem;
  color: #6B7280;
  font-family: 'Inter', monospace;
}
.mockup-body {
  display: flex;
  min-height: 280px;
}
.mockup-sidebar {
  width: 52px;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sb-item {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
}
.sb-item.active {
  background: rgba(129,140,248,0.15);
  color: #818CF8;
}
.mockup-main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mockup-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.m-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 12px;
}
.m-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1;
}
.m-stat-label {
  font-size: 0.65rem;
  color: #6B7280;
  margin-top: 3px;
}
.m-stat-change {
  font-size: 0.6rem;
  font-weight: 600;
  margin-top: 4px;
}
.m-stat-change.up { color: #10B981; }
.mockup-chart {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 12px;
  display: flex;
  align-items: flex-end;
}
.chart-svg {
  width: 100%;
  height: 100%;
  min-height: 50px;
}
.mockup-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mockup-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #FFF;
}
.mockup-pill.tw { background: #1D1D1D; }
.mockup-pill.ig { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.mockup-pill.fb { background: #1877F2; }
.mockup-pill.li { background: #0A66C2; }
.mockup-pill.tt { background: #1D1D1D; border: 1px solid rgba(255,255,255,0.15); }
.mockup-pill.yt { background: #FF0000; }

@media(max-width:768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2.4rem; }
  .hero-ctas { justify-content: center; }
  .hero-proof { justify-content: center; }
  .hero-visual { order: -1; }
  .mockup-body { flex-direction: column; min-height: 200px; }
  .mockup-sidebar {
    flex-direction: row;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 8px 12px;
    justify-content: flex-start;
  }
  .sb-item { width: 28px; height: 28px; }
  .m-stat-val { font-size: 0.95rem; }
  .mockup-stats-row { gap: 8px; }
}

/* --- Pain Points --- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.pain-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 36px 28px; text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pain-card:hover {
  border-color: rgba(129,140,248,0.3);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(129,140,248,0.1);
  background: rgba(129,140,248,0.05);
}
.pain-icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(129,140,248,0.1);
  border: 1px solid rgba(129,140,248,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: #818CF8;
}
.pain-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pain-card p { color: #9CA3AF; font-size: 0.92rem; }
@media(max-width:768px) { .pain-grid { grid-template-columns: 1fr; } }

/* --- Steps (How It Works) --- */
.steps-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-top: 48px;
}
.step-card {
  background: rgba(129,140,248,0.05);
  border: 1px solid rgba(129,140,248,0.15);
  border-radius: 16px; padding: 36px 28px; text-align: center;
  position: relative; flex: 1; max-width: 320px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-card:hover {
  border-color: rgba(129,140,248,0.35);
  transform: translateY(-4px);
  background: rgba(129,140,248,0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: #818CF8; color: #0B0F1A; font-weight: 900; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-connector {
  display: flex; align-items: center; justify-content: center;
  padding: 0 10px; flex-shrink: 0; color: rgba(129,140,248,0.4);
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: #9CA3AF; font-size: 0.92rem; }
@media(max-width:768px) {
  .steps-grid { flex-direction: column; gap: 16px; }
  .step-connector { transform: rotate(90deg); padding: 4px 0; }
  .step-card { max-width: 100%; }
}

/* --- Features Grid (card layout) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 32px 28px; text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
  border-color: rgba(129,140,248,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  background: rgba(129,140,248,0.05);
}
.feature-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(129,140,248,0.12);
  border: 1px solid rgba(129,140,248,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: #818CF8;
}
.feature-card h4 { color: #FFF; font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: #9CA3AF; font-size: 0.9rem; line-height: 1.6; }
/* Legacy split layout (hidden) */
.features-split { display: none; }
@media(max-width:900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:600px) { .features-grid { grid-template-columns: 1fr; } }

/* --- Platforms Grid --- */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.platform-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 18px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.3s;
}
.platform-card:hover {
  border-color: rgba(129,140,248,0.25);
  transform: translateY(-3px);
  background: rgba(129,140,248,0.04);
}
.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.platform-card span {
  font-size: 0.78rem;
  color: #C4B5FD;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}
/* Hide old chips */
.platform-chip { display: none; }
@media(max-width:900px) { .platforms-grid { grid-template-columns: repeat(4, 1fr); } }
@media(max-width:600px) {
  .platforms-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .platform-card { padding: 12px 6px; }
  .platform-icon { width: 36px; height: 36px; }
  .platform-card span { font-size: 0.7rem; }
}

/* --- Social Proof --- */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.proof-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 32px; text-align: left;
  transition: all 0.3s;
}
.proof-card:hover {
  border-color: rgba(129,140,248,0.25);
  transform: translateY(-3px);
  background: rgba(129,140,248,0.04);
}
.proof-stars {
  color: #F59E0B; font-size: 1rem;
  letter-spacing: 2px; margin-bottom: 14px;
}
.proof-quote { font-size: 0.95rem; color: #D1D5DB; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.proof-author {
  display: flex; align-items: center; gap: 12px;
}
.proof-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #FFF; flex-shrink: 0;
}
.proof-author strong { color: #FFF; display: block; }
.proof-author span { color: #818CF8; font-size: 0.85rem; }
@media(max-width:768px) { .proof-grid { grid-template-columns: 1fr; } }

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.pricing-card {
  background: #111827; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 40px 32px; text-align: center; position: relative; transition: .3s;
}
.pricing-card:hover { border-color: rgba(129,140,248,0.3); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.pricing-featured {
  border-color: #818CF8; background: linear-gradient(180deg, rgba(129,140,248,0.1), #111827 40%);
  transform: scale(1.04); box-shadow: 0 0 60px rgba(129,140,248,0.12);
}
.pricing-featured:hover { transform: scale(1.04) translateY(-6px); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: #818CF8; color: #0B0F1A; padding: 4px 20px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700;
}
.pricing-name { font-size: 1.3rem; font-weight: 700; color: #FFF; margin-bottom: 8px; }
.pricing-price { font-size: 3rem; font-weight: 900; color: #FFF; margin-bottom: 4px; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: #9CA3AF; }
.pricing-desc { color: #9CA3AF; font-size: 0.9rem; margin-bottom: 28px; }
.pricing-features { text-align: left; margin-bottom: 32px; }
.pricing-features li { padding: 8px 0; color: #D1D5DB; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.trust-badges {
  display: flex; justify-content: center; gap: 28px;
  margin-top: 36px; flex-wrap: wrap;
}
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  color: #6B7280; font-size: 0.85rem; font-weight: 500;
}
.trust-badge svg { color: #10B981; flex-shrink: 0; }
@media(max-width:768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .pricing-featured { transform: none; }
}

/* --- FAQ --- */
.faq-list { margin-top: 48px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.faq-q {
  width: 100%; text-align: left; padding: 20px 0;
  background: none; border: none; color: #FFF; font-size: 1.05rem;
  font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; font-size: 1.5rem; color: #818CF8; transition: .2s; flex-shrink: 0; }
.faq-q.open::after { content: '\2212'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 0 20px; color: #9CA3AF; line-height: 1.7; }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #1E1B4B 0%, #0B0F1A 50%, #1E1B4B 100%);
  border-top: 1px solid rgba(129,140,248,0.15);
  border-bottom: 1px solid rgba(129,140,248,0.08);
}
.cta-note { color: #6B7280; font-size: 0.85rem; margin-top: 16px; }

/* --- Footer --- */
.footer { padding: 60px 0 30px; border-top: 1px solid rgba(255,255,255,0.06); background: #080B14; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-tagline { color: #6B7280; font-size: 0.9rem; margin-top: 12px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; color: #9CA3AF; }
.footer-col a { display: block; color: #6B7280; font-size: 0.9rem; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: #FFF; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 24px; text-align: center; }
.footer-bottom p { color: #4B5563; font-size: 0.8rem; }
.footer-bottom a { color: #6B7280; }
@media(max-width:768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* --- Modal --- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #1F2937; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 40px; max-width: 440px; width: 90%;
  position: relative;
}
.modal h3 { font-size: 1.5rem; margin-bottom: 8px; }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: #9CA3AF; font-size: 1.8rem;
  cursor: pointer; transition: color .2s;
}
.modal-close:hover { color: #FFF; }

/* --- Forms (shared) --- */
.input {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
  color: #FFF; font-size: 0.95rem; transition: border-color .2s;
}
.input:focus { outline: none; border-color: #818CF8; background: rgba(129,140,248,0.04); }
.input::placeholder { color: #6B7280; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: #D1D5DB; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:768px) { .form-row { grid-template-columns: 1fr; } }
.form-result { padding: 12px 16px; border-radius: 10px; margin-top: 16px; font-size: 0.9rem; }
.form-result.success { background: rgba(16,185,129,0.1); color: #10B981; border: 1px solid rgba(16,185,129,0.2); }
.form-result.error { background: rgba(239,68,68,0.1); color: #EF4444; border: 1px solid rgba(239,68,68,0.2); }
textarea.input { resize: vertical; min-height: 120px; }
select.input { appearance: none; cursor: pointer; }
.checkbox-group { display: flex; align-items: flex-start; gap: 8px; }
.checkbox-label { display: flex; gap: 8px; color: #9CA3AF; font-size: 0.85rem; cursor: pointer; }
.checkbox-label input[type="checkbox"] { margin-top: 3px; accent-color: #818CF8; }

/* --- Lisa Chat Widget --- */
.lisa-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1500; }
.lisa-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: #818CF8; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(129,140,248,0.4); transition: .2s;
  font-size: 1.5rem;
}
.lisa-toggle:hover { transform: scale(1.1); }
.lisa-close { display: none; font-size: 1.6rem; color: #FFF; }
.lisa-widget.open .lisa-icon { display: none; }
.lisa-widget.open .lisa-close { display: block; }
.lisa-window {
  display: none; position: absolute; bottom: 72px; right: 0;
  width: 380px; max-height: 500px; border-radius: 20px;
  background: #1F2937; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); overflow: hidden;
  flex-direction: column;
}
.lisa-widget.open .lisa-window { display: flex; }
.lisa-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: #111827;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lisa-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #818CF8; color: #0B0F1A; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.lisa-header strong { color: #FFF; display: block; font-size: 0.9rem; }
.lisa-header span { color: #6B7280; font-size: 0.75rem; }
.lisa-messages { flex: 1; overflow-y: auto; padding: 16px; min-height: 300px; max-height: 360px; }
.lisa-msg {
  padding: 10px 14px; border-radius: 14px; margin-bottom: 10px;
  font-size: 0.9rem; line-height: 1.5; max-width: 85%;
}
.lisa-bot { background: rgba(129,140,248,0.1); color: #D1D5DB; border-bottom-left-radius: 4px; }
.lisa-user { background: #818CF8; color: #0B0F1A; margin-left: auto; border-bottom-right-radius: 4px; }
.lisa-input-wrap {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.lisa-input {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
  color: #FFF; font-size: 0.9rem;
}
.lisa-input:focus { outline: none; border-color: #818CF8; }
.lisa-send {
  background: #818CF8; border: none; color: #0B0F1A; border-radius: 10px;
  width: 42px; cursor: pointer; font-size: 1rem; transition: .2s;
}
.lisa-send:hover { background: #6366F1; }
@media(max-width:480px) { .lisa-window { width: calc(100vw - 48px); right: -12px; } }

/* --- Typing dots animation for Lisa --- */
.typing-dots span {
  animation: blink 1.4s infinite both;
  font-size: 1.4rem; color: #818CF8;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }

/* --- Legal Pages --- */
.legal-page { padding-top: 120px; }
.legal-page h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal-date { color: #6B7280; font-size: 0.85rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.3rem; margin-top: 36px; margin-bottom: 12px; color: #C4B5FD; }
.legal-page h3 { font-size: 1.05rem; margin-top: 20px; margin-bottom: 8px; }
.legal-page p { color: #9CA3AF; margin-bottom: 12px; }
.legal-page ul { margin-bottom: 12px; padding-left: 20px; }
.legal-page li { color: #9CA3AF; padding: 4px 0; list-style: disc; }
.legal-page a { color: #818CF8; }

/* --- Contact Page --- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.contact-info-card {
  background: #111827; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 32px;
}
.contact-info-card h3 { margin-bottom: 20px; font-size: 1.1rem; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-icon { font-size: 1.3rem; flex-shrink: 0; }
.contact-info-item strong { display: block; color: #FFF; font-size: 0.9rem; margin-bottom: 2px; }
.contact-info-item a, .contact-info-item p { color: #9CA3AF; font-size: 0.85rem; }
@media(max-width:768px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Auth Pages (login/signup) --- */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 60px;
}
.auth-card {
  background: #111827; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; padding: 48px 40px; max-width: 460px; width: 100%;
}
.auth-card h1 { font-size: 1.8rem; text-align: center; margin-bottom: 8px; }
.auth-subtitle { text-align: center; color: #9CA3AF; margin-bottom: 32px; font-size: 0.95rem; }
.auth-footer { text-align: center; margin-top: 24px; color: #6B7280; font-size: 0.85rem; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: #4B5563; font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06); }

/* --- Dashboard --- */
.dash-layout { padding-top: 80px; min-height: 100vh; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.dash-header h1 { font-size: 1.8rem; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.dash-stat-card {
  background: #111827; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 24px;
}
.dash-stat-card .stat-label { color: #6B7280; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.dash-stat-card .stat-value { font-size: 2rem; font-weight: 800; color: #FFF; margin-top: 4px; }
.dash-stat-card .stat-sub { color: #818CF8; font-size: 0.8rem; margin-top: 2px; }
@media(max-width:768px) { .dash-stats { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px) { .dash-stats { grid-template-columns: 1fr; } }

.dash-section { margin-bottom: 40px; }
.dash-section h2 { font-size: 1.3rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

/* Connected Accounts */
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.account-card {
  background: #111827; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 12px;
}
.account-card .account-platform { font-weight: 700; color: #FFF; font-size: 0.9rem; }
.account-card .account-user { color: #6B7280; font-size: 0.8rem; }
.account-card .account-status { width: 8px; height: 8px; border-radius: 50%; background: #10B981; margin-left: auto; flex-shrink: 0; }
.connect-btn {
  background: rgba(129,140,248,0.06); border: 2px dashed rgba(129,140,248,0.2);
  border-radius: 12px; padding: 16px; display: flex; align-items: center; justify-content: center;
  gap: 8px; color: #818CF8; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: .2s;
}
.connect-btn:hover { background: rgba(129,140,248,0.12); border-color: #818CF8; }

/* Posts Table */
.posts-table { width: 100%; border-collapse: collapse; }
.posts-table th {
  text-align: left; padding: 12px 16px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; color: #6B7280;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.posts-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.03); color: #D1D5DB; font-size: 0.9rem; }
.posts-table tr:hover { background: rgba(129,140,248,0.03); }
.post-content-preview { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600;
}
.status-published { background: rgba(16,185,129,0.1); color: #10B981; }
.status-pending { background: rgba(245,158,11,0.1); color: #F59E0B; }
.status-draft { background: rgba(107,114,128,0.1); color: #9CA3AF; }
.status-failed { background: rgba(239,68,68,0.1); color: #EF4444; }

/* Onboard card on dashboard */
.onboard-card {
  background: linear-gradient(135deg, rgba(129,140,248,0.1), rgba(129,140,248,0.02));
  border: 1px solid rgba(129,140,248,0.2); border-radius: 16px;
  padding: 32px; margin-bottom: 40px; text-align: center;
}
.onboard-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.onboard-card p { color: #9CA3AF; margin-bottom: 20px; }

/* --- Success / Cancel Pages --- */
.success-page, .cancel-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px;
}
.success-icon, .cancel-icon { font-size: 5rem; margin-bottom: 24px; }
.success-page h1, .cancel-page h1 { font-size: 2.5rem; margin-bottom: 16px; }
.success-page p, .cancel-page p { color: #9CA3AF; font-size: 1.1rem; max-width: 500px; margin: 0 auto 32px; }

/* --- Utility --- */
.loading-spinner {
  width: 32px; height: 32px; border: 3px solid rgba(129,140,248,0.2);
  border-top-color: #818CF8; border-radius: 50%; animation: spin 0.8s linear infinite;
  margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; top: 80px; right: 24px; z-index: 3000;
  padding: 14px 24px; border-radius: 12px; font-size: 0.9rem; font-weight: 500;
  transform: translateX(120%); transition: transform .3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.toast.show { transform: translateX(0); }
.toast-success { background: #065F46; color: #A7F3D0; border: 1px solid #10B981; }
.toast-error { background: #7F1D1D; color: #FECACA; border: 1px solid #EF4444; }
.hidden { display: none !important; }

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.4s; }
