/* ============================================================
   PLANIX365 — Complete Stylesheet
   Landing (light) + App (dark)
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --bg:         #0f172a;
  --bg2:        #1e293b;
  --bg3:        #293548;
  --surface:    #1e293b;
  --border:     #334155;
  --text:       #f1f5f9;
  --muted:      #94a3b8;
  --muted2:     #64748b;
  --accent:     #2563eb;
  --accent-d:   #1d4ed8;
  --accent-l:   #3b82f6;
  --danger:     #ef4444;
  --warning:    #f59e0b;
  --success:    #22c55e;
  --sidebar-w:  240px;
  --radius:     0.5rem;
  --radius-lg:  0.875rem;
  --shadow:     0 1px 3px rgba(0,0,0,.4),0 1px 2px rgba(0,0,0,.3);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.5);
}

/* ── Reset ───────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{height:100%;scroll-behavior:smooth}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.6;color:var(--text);background:var(--bg);min-height:100%;-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-l)}
img{max-width:100%;height:auto}
button{cursor:pointer;font-family:inherit}
input,textarea,select{font-family:inherit;font-size:14px}

/* ── Splash ──────────────────────────────────────────────── */
.splash{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;gap:1.5rem}
.splash-logo{display:flex;align-items:center;gap:.5rem;font-size:1.4rem;font-weight:700;color:var(--text)}
.loading{display:flex;justify-content:center;align-items:center;padding:4rem}
.spinner{width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ════════════════════════════════════════════════════════════
   LANDING PAGE (light theme)
   ════════════════════════════════════════════════════════════ */
.landing{background:#fff;color:#1f2937;font-size:16px;line-height:1.65}
.landing *{box-sizing:border-box}
.landing a{text-decoration:none;color:#2563eb}

/* ── Landing Nav ─────────────────────────────────────────── */
.l-nav{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);border-bottom:1px solid #e5e7eb;padding:0 2rem;height:64px;display:flex;align-items:center}
.l-nav-inner{max-width:1200px;margin:0 auto;width:100%;display:flex;align-items:center;gap:2rem}
.l-logo{display:flex;align-items:center;gap:.5rem;font-size:1.2rem;font-weight:800;color:#1f2937;white-space:nowrap}
.l-logo-icon{width:32px;height:32px;background:#2563eb;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;font-weight:900}
.l-nav-links{display:flex;align-items:center;gap:.25rem;flex:1;justify-content:center}
.l-nav-links a{color:#4b5563;font-size:.9rem;font-weight:500;padding:.4rem .75rem;border-radius:6px;transition:color .2s,background .2s}
.l-nav-links a:hover{color:#1f2937;background:#f3f4f6}
.l-nav-ctas{display:flex;align-items:center;gap:.75rem;white-space:nowrap}
.l-btn{display:inline-flex;align-items:center;gap:.4rem;font-size:.9rem;font-weight:600;padding:.55rem 1.2rem;border-radius:8px;transition:all .2s;border:none;cursor:pointer}
.l-btn-ghost{background:transparent;color:#4b5563}
.l-btn-ghost:hover{background:#f3f4f6;color:#1f2937}
.l-btn-primary{background:#2563eb;color:#fff}
.l-btn-primary:hover{background:#1d4ed8;transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,99,235,.35)}
.l-btn-outline{background:#fff;color:#2563eb;border:1.5px solid #2563eb}
.l-btn-outline:hover{background:#eff6ff}
.l-btn-lg{padding:.75rem 1.75rem;font-size:1rem;border-radius:10px}
.l-btn-xl{padding:.875rem 2rem;font-size:1.05rem;border-radius:12px}

/* ── Hero ────────────────────────────────────────────────── */
.l-hero{padding:6rem 2rem 4rem;max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.l-hero-badge{display:inline-flex;align-items:center;gap:.4rem;background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe;border-radius:100px;padding:.35rem .9rem;font-size:.8rem;font-weight:600;margin-bottom:1.5rem}
.l-hero h1{font-size:3.25rem;font-weight:800;line-height:1.15;color:#111827;letter-spacing:-.03em;margin-bottom:1.25rem}
.l-hero h1 .grad{background:linear-gradient(135deg,#2563eb,#7c3aed);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.l-hero-sub{font-size:1.1rem;color:#6b7280;max-width:520px;margin-bottom:2rem;line-height:1.7}
.l-hero-ctas{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.l-hero-trust{margin-top:2rem;display:flex;align-items:center;gap:.5rem;color:#9ca3af;font-size:.85rem}
.l-hero-trust span{color:#22c55e}

/* ── Hero Dashboard Mockup ───────────────────────────────── */
.l-mockup-wrap{position:relative}
.l-mockup-wrap::before{content:'';position:absolute;top:-20px;right:-20px;width:100%;height:100%;background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(124,58,237,.08));border-radius:20px;z-index:0}
.l-mockup{position:relative;z-index:1;background:#0f172a;border-radius:16px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.25),0 0 0 1px rgba(255,255,255,.1);transform:perspective(1200px) rotateY(-6deg) rotateX(3deg)}
.l-mockup-bar{background:#1e293b;padding:10px 16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #334155}
.l-mockup-dots{display:flex;gap:5px}
.l-mockup-dots span{width:9px;height:9px;border-radius:50%}
.l-mockup-dots span:nth-child(1){background:#ef4444}
.l-mockup-dots span:nth-child(2){background:#f59e0b}
.l-mockup-dots span:nth-child(3){background:#22c55e}
.l-mockup-url{flex:1;background:#0f172a;border-radius:4px;padding:3px 10px;font-size:10px;color:#64748b;font-family:monospace}
.l-mockup-screen{display:flex;min-height:340px}
.l-msidebar{width:120px;background:#1e293b;padding:12px 8px;border-right:1px solid #334155;display:flex;flex-direction:column;gap:2px;flex-shrink:0}
.l-msidebar-logo{font-size:11px;font-weight:700;color:#f1f5f9;padding:4px 8px 12px;display:flex;align-items:center;gap:5px}
.l-msidebar-logo span{background:#2563eb;width:18px;height:18px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:9px;flex-shrink:0}
.l-mnavitem{padding:5px 8px;border-radius:5px;font-size:10px;color:#64748b;display:flex;align-items:center;gap:5px;transition:all .2s}
.l-mnavitem.active{background:rgba(37,99,235,.15);color:#3b82f6}
.l-mcontent{flex:1;padding:14px;background:#0f172a;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.l-mstats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.l-mstat{background:#1e293b;border-radius:6px;padding:7px 8px;border:1px solid #334155}
.l-mstat-val{font-size:13px;font-weight:700;color:#f1f5f9}
.l-mstat-label{font-size:8px;color:#64748b;margin-top:1px}
.l-mstat-change{font-size:8px;color:#22c55e}
.l-mcharts{display:grid;grid-template-columns:1.5fr 1fr;gap:8px}
.l-mchart-box{background:#1e293b;border-radius:6px;padding:10px;border:1px solid #334155}
.l-mchart-title{font-size:9px;color:#94a3b8;margin-bottom:8px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}
.l-mbars{display:flex;align-items:flex-end;gap:4px;height:60px}
.l-mbar{flex:1;border-radius:2px 2px 0 0;background:#2563eb;opacity:.7;transition:opacity .2s}
.l-mbar:hover{opacity:1}
.l-mpost-item{display:flex;align-items:center;gap:6px;padding:4px 0;border-bottom:1px solid #334155}
.l-mpost-item:last-child{border:none}
.l-mpost-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.l-mpost-text{font-size:9px;color:#94a3b8;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.l-mpost-time{font-size:8px;color:#475569}
.l-mplatforms{display:flex;gap:4px;flex-wrap:wrap}
.l-mplatform-badge{font-size:8px;padding:2px 6px;border-radius:3px;font-weight:600}

/* ── Platform Strip ──────────────────────────────────────── */
.l-platforms{padding:3rem 2rem;background:#f9fafb;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}
.l-platforms-inner{max-width:1000px;margin:0 auto;text-align:center}
.l-platforms-label{font-size:.85rem;color:#9ca3af;font-weight:500;text-transform:uppercase;letter-spacing:.08em;margin-bottom:1.5rem}
.l-platform-cards{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap}
.l-platform-card{display:flex;align-items:center;gap:.6rem;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:.6rem 1.1rem;font-size:.9rem;font-weight:600;color:#374151;transition:all .25s;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.l-platform-card:hover{border-color:#bfdbfe;box-shadow:0 4px 12px rgba(37,99,235,.1);transform:translateY(-2px)}
.l-platform-icon{font-size:1.3rem}

/* ── Section commons ─────────────────────────────────────── */
.l-section{padding:5rem 2rem}
.l-section-inner{max-width:1150px;margin:0 auto}
.l-section-alt{background:#f9fafb}
.l-label{display:inline-block;background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe;border-radius:100px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding:.3rem .9rem;margin-bottom:1rem}
.l-section-header{text-align:center;margin-bottom:3.5rem}
.l-section-title{font-size:2.4rem;font-weight:800;color:#111827;letter-spacing:-.02em;margin-bottom:.75rem;line-height:1.2}
.l-section-sub{font-size:1.05rem;color:#6b7280;max-width:600px;margin:0 auto;line-height:1.65}

/* ── Problem Section ─────────────────────────────────────── */
.l-problem-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:3rem}
.l-problem-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:2rem;transition:all .3s;position:relative;overflow:hidden}
.l-problem-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#2563eb,#7c3aed);opacity:0;transition:opacity .3s}
.l-problem-card:hover{border-color:#bfdbfe;box-shadow:0 8px 30px rgba(37,99,235,.1);transform:translateY(-3px)}
.l-problem-card:hover::before{opacity:1}
.l-pcard-icon{width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;margin-bottom:1.25rem;background:#eff6ff}
.l-pcard-title{font-size:1.1rem;font-weight:700;color:#111827;margin-bottom:.5rem}
.l-pcard-desc{font-size:.9rem;color:#6b7280;line-height:1.65}

/* ── Features Section ────────────────────────────────────── */
.l-features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.l-feat-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:2rem;transition:all .3s;cursor:default}
.l-feat-card:hover{border-color:#bfdbfe;box-shadow:0 12px 40px rgba(37,99,235,.1);transform:translateY(-4px)}
.l-feat-icon{width:48px;height:48px;border-radius:12px;background:#eff6ff;display:flex;align-items:center;justify-content:center;font-size:1.4rem;margin-bottom:1.25rem;transition:transform .3s}
.l-feat-card:hover .l-feat-icon{transform:scale(1.1)}
.l-feat-title{font-size:1rem;font-weight:700;color:#111827;margin-bottom:.5rem}
.l-feat-desc{font-size:.875rem;color:#6b7280;line-height:1.65}

/* ── Analytics Showcase ──────────────────────────────────── */
.l-analytics-wrap{background:#0f172a;border-radius:24px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.2);margin-top:3rem}
.l-analytics-topbar{background:#1e293b;padding:14px 24px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #334155}
.l-analytics-title-bar{font-size:13px;font-weight:600;color:#94a3b8}
.l-analytics-screen{padding:24px;display:grid;grid-template-columns:repeat(3,1fr) 1.5fr;gap:16px}
.l-ametric{background:#1e293b;border-radius:10px;padding:16px;border:1px solid #334155}
.l-ametric-val{font-size:1.75rem;font-weight:800;color:#f1f5f9;line-height:1}
.l-ametric-label{font-size:11px;color:#64748b;margin-top:4px;text-transform:uppercase;letter-spacing:.5px}
.l-ametric-change{font-size:11px;margin-top:6px;font-weight:600}
.l-ametric-change.up{color:#22c55e}
.l-ametric-change.down{color:#ef4444}
.l-achart-big{background:#1e293b;border-radius:10px;padding:16px;border:1px solid #334155;grid-row:span 2}
.l-achart-title{font-size:11px;font-weight:600;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px}
.l-abars{display:flex;align-items:flex-end;gap:6px;height:100px}
.l-abar{flex:1;border-radius:3px 3px 0 0;background:#2563eb;min-height:4px;transition:opacity .2s}
.l-abar:nth-child(2n){background:#7c3aed}
.l-abarlabel{font-size:8px;color:#475569;text-align:center;margin-top:4px}
.l-atop-posts{background:#1e293b;border-radius:10px;padding:16px;border:1px solid #334155;grid-column:span 3}
.l-atop-post{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #334155}
.l-atop-post:last-child{border:none}
.l-atop-rank{width:20px;height:20px;border-radius:50%;background:#2563eb;display:flex;align-items:center;justify-content:center;font-size:9px;color:#fff;font-weight:700;flex-shrink:0}
.l-atop-text{flex:1;font-size:11px;color:#94a3b8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.l-atop-eng{font-size:10px;color:#22c55e;font-weight:600}

/* ── How It Works ────────────────────────────────────────── */
.l-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;position:relative;margin-top:3rem}
.l-steps::before{content:'';position:absolute;top:40px;left:calc(16.66% + 20px);right:calc(16.66% + 20px);height:2px;background:linear-gradient(90deg,#2563eb,#7c3aed);z-index:0}
.l-step{text-align:center;position:relative;z-index:1}
.l-step-num{width:80px;height:80px;border-radius:20px;background:#2563eb;display:flex;align-items:center;justify-content:center;margin:0 auto 1.5rem;font-size:1.75rem;color:#fff;box-shadow:0 8px 25px rgba(37,99,235,.35);transition:transform .3s}
.l-step:hover .l-step-num{transform:scale(1.1) translateY(-2px)}
.l-step-title{font-size:1.1rem;font-weight:700;color:#111827;margin-bottom:.5rem}
.l-step-desc{font-size:.875rem;color:#6b7280;line-height:1.65;max-width:240px;margin:0 auto}

/* ── Who It's For ────────────────────────────────────────── */
.l-who-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;margin-top:3rem}
.l-who-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:1.75rem;text-align:center;transition:all .3s}
.l-who-card:hover{border-color:#bfdbfe;box-shadow:0 8px 30px rgba(37,99,235,.1);transform:translateY(-3px)}
.l-who-icon{font-size:2.5rem;margin-bottom:.75rem}
.l-who-title{font-size:1rem;font-weight:700;color:#111827;margin-bottom:.4rem}
.l-who-desc{font-size:.825rem;color:#6b7280}

/* ── Testimonials ────────────────────────────────────────── */
.l-testimonials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:3rem}
.l-tcard{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:2rem;transition:all .3s}
.l-tcard:hover{box-shadow:0 8px 30px rgba(0,0,0,.08);transform:translateY(-2px)}
.l-tcard-stars{color:#f59e0b;font-size:1rem;margin-bottom:1rem;letter-spacing:2px}
.l-tcard-text{font-size:.9rem;color:#374151;line-height:1.7;margin-bottom:1.25rem;font-style:italic}
.l-tcard-author{display:flex;align-items:center;gap:.75rem}
.l-tcard-avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#7c3aed);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:.85rem;flex-shrink:0}
.l-tcard-name{font-size:.875rem;font-weight:700;color:#111827}
.l-tcard-role{font-size:.775rem;color:#9ca3af}

/* ── Pricing ─────────────────────────────────────────────── */
.l-pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;max-width:1000px;margin:3rem auto 0;align-items:start}
.l-plan-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:2.25rem;transition:all .3s;position:relative}
.l-plan-card.popular{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb,0 20px 60px rgba(37,99,235,.15)}
.l-plan-badge{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:#2563eb;color:#fff;font-size:.7rem;font-weight:700;padding:.2rem .75rem;border-radius:100px;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}
.l-plan-name{font-size:.875rem;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.5rem}
.l-plan-price{display:flex;align-items:baseline;gap:.25rem;margin-bottom:.25rem}
.l-plan-price-num{font-size:3rem;font-weight:800;color:#111827;line-height:1}
.l-plan-price-per{font-size:.85rem;color:#9ca3af}
.l-plan-trial{font-size:.8rem;color:#22c55e;font-weight:600;margin-bottom:1.5rem}
.l-plan-features{list-style:none;display:flex;flex-direction:column;gap:.6rem;margin-bottom:1.75rem}
.l-plan-features li{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:#374151}
.l-plan-features li::before{content:'✓';color:#22c55e;font-weight:700;flex-shrink:0}
.l-plan-cta{width:100%;padding:.8rem;border-radius:10px;font-size:.9rem;font-weight:700;text-align:center;border:none;cursor:pointer;transition:all .2s}
.l-plan-cta.primary{background:#2563eb;color:#fff}
.l-plan-cta.primary:hover{background:#1d4ed8;transform:translateY(-1px)}
.l-plan-cta.outline{background:#fff;color:#2563eb;border:1.5px solid #2563eb}
.l-plan-cta.outline:hover{background:#eff6ff}

/* ── FAQ ─────────────────────────────────────────────────── */
.l-faq-list{max-width:750px;margin:3rem auto 0;display:flex;flex-direction:column;gap:.75rem}
.l-faq-item{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;transition:all .2s}
.l-faq-item.open{border-color:#bfdbfe;box-shadow:0 4px 15px rgba(37,99,235,.08)}
.l-faq-q{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 1.5rem;cursor:pointer;user-select:none;gap:1rem}
.l-faq-q span:first-child{font-size:.95rem;font-weight:600;color:#111827}
.l-faq-arrow{flex-shrink:0;width:24px;height:24px;border-radius:50%;background:#f3f4f6;display:flex;align-items:center;justify-content:center;font-size:.7rem;color:#6b7280;transition:transform .25s}
.l-faq-item.open .l-faq-arrow{transform:rotate(180deg);background:#eff6ff;color:#2563eb}
.l-faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease,padding .3s;padding:0 1.5rem;font-size:.9rem;color:#6b7280;line-height:1.7}
.l-faq-item.open .l-faq-a{max-height:200px;padding:0 1.5rem 1.25rem}

/* ── Footer ──────────────────────────────────────────────── */
.l-footer{background:#111827;color:#9ca3af;padding:4rem 2rem 2rem}
.l-footer-inner{max-width:1150px;margin:0 auto}
.l-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:3rem;margin-bottom:3rem}
.l-footer-brand p{font-size:.875rem;line-height:1.7;margin-top:.75rem;max-width:280px}
.l-footer-col h4{font-size:.85rem;font-weight:700;color:#f9fafb;text-transform:uppercase;letter-spacing:.08em;margin-bottom:1rem}
.l-footer-col ul{list-style:none;display:flex;flex-direction:column;gap:.5rem}
.l-footer-col ul li a{font-size:.875rem;color:#9ca3af;transition:color .2s}
.l-footer-col ul li a:hover{color:#f9fafb}
.l-footer-bottom{border-top:1px solid #1f2937;padding-top:1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.l-footer-bottom p{font-size:.825rem}
.l-footer-socials{display:flex;gap:.75rem}
.l-footer-socials a{width:36px;height:36px;border-radius:8px;background:#1f2937;display:flex;align-items:center;justify-content:center;font-size:.85rem;transition:background .2s}
.l-footer-socials a:hover{background:#374151}
.l-footer-logo{display:flex;align-items:center;gap:.5rem;font-size:1.1rem;font-weight:800;color:#f9fafb}
.l-footer-logo span{background:#2563eb;width:28px;height:28px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}

/* ── Landing Animations ──────────────────────────────────── */
.fade-in{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease}
.fade-in.visible{opacity:1;transform:translateY(0)}

/* ════════════════════════════════════════════════════════════
   APP SHELL (dark theme)
   ════════════════════════════════════════════════════════════ */
.app-shell{display:flex;min-height:100vh;background:var(--bg)}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar{width:var(--sidebar-w);background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:100;transition:transform .25s,width .25s}
.sidebar-logo{padding:1.25rem 1.25rem;display:flex;align-items:center;gap:.6rem;font-size:1.1rem;font-weight:800;color:var(--text);border-bottom:1px solid var(--border);text-decoration:none}
.sidebar-logo-icon{width:32px;height:32px;background:var(--accent);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;font-weight:900;flex-shrink:0}
.sidebar-nav{flex:1;padding:.75rem;display:flex;flex-direction:column;gap:2px;overflow-y:auto}
.sidebar-section-label{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--muted2);padding:.5rem .75rem .25rem;margin-top:.5rem}
.nav-item{display:flex;align-items:center;gap:.7rem;padding:.55rem .75rem;border-radius:var(--radius);color:var(--muted);font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s;border:none;background:none;width:100%;text-align:left;text-decoration:none}
.nav-item:hover{background:var(--bg3);color:var(--text)}
.nav-item.active{background:rgba(37,99,235,.15);color:var(--accent-l)}
.nav-item .nav-icon{font-size:1rem;width:20px;text-align:center;flex-shrink:0}
.nav-badge{margin-left:auto;background:var(--danger);color:#fff;font-size:.6rem;font-weight:800;padding:1px 5px;border-radius:10px;min-width:16px;text-align:center}
.sidebar-footer{padding:.75rem;border-top:1px solid var(--border)}
.sidebar-user{display:flex;align-items:center;gap:.6rem;padding:.5rem .75rem;border-radius:var(--radius);cursor:pointer;transition:background .15s}
.sidebar-user:hover{background:var(--bg3)}
.sidebar-avatar{width:32px;height:32px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;color:#fff;font-size:.75rem;font-weight:700;flex-shrink:0}
.sidebar-user-info{flex:1;min-width:0}
.sidebar-user-name{font-size:.825rem;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user-role{font-size:.7rem;color:var(--muted2)}

/* ── Topbar ───────────────────────────────────────────────── */
.topbar{position:fixed;top:0;left:var(--sidebar-w);right:0;height:60px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 1.5rem;gap:1rem;z-index:90}
.topbar-title{font-size:1rem;font-weight:700;color:var(--text);flex:1}
.topbar-actions{display:flex;align-items:center;gap:.5rem}

/* ── Main Content ─────────────────────────────────────────── */
.main{margin-left:var(--sidebar-w);margin-top:60px;min-height:calc(100vh - 60px);padding:1.75rem}
.page-header{margin-bottom:1.75rem}
.page-title{font-size:1.5rem;font-weight:800;color:var(--text);margin-bottom:.25rem}
.page-subtitle{font-size:.875rem;color:var(--muted)}
.page-header-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}

/* ── Stats Grid ───────────────────────────────────────────── */
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1.75rem}
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;transition:border-color .2s}
.stat-card:hover{border-color:var(--accent)}
.stat-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}
.stat-card-label{font-size:.75rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.stat-card-icon{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1rem}
.stat-card-val{font-size:1.75rem;font-weight:800;color:var(--text);line-height:1;margin-bottom:.35rem}
.stat-card-change{font-size:.75rem;font-weight:600;display:flex;align-items:center;gap:.25rem}
.stat-card-change.up{color:var(--success)}
.stat-card-change.down{color:var(--danger)}

/* ── Cards ────────────────────────────────────────────────── */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}
.card-header{padding:1.1rem 1.25rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:1rem}
.card-title{font-size:.9rem;font-weight:700;color:var(--text)}
.card-body{padding:1.25rem}
.card-body-sm{padding:.75rem 1.25rem}

/* ── Grid layouts ─────────────────────────────────────────── */
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.grid-1-2{display:grid;grid-template-columns:1fr 2fr;gap:1.25rem}
.grid-2-1{display:grid;grid-template-columns:2fr 1fr;gap:1.25rem}

/* ── Charts (CSS) ─────────────────────────────────────────── */
.chart-wrap{padding:1.25rem}
.bar-chart{display:flex;align-items:flex-end;gap:6px;height:120px;padding-bottom:24px;position:relative}
.bar-chart-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;justify-content:flex-end;position:relative}
.bar-chart-bar{width:100%;border-radius:4px 4px 0 0;background:var(--accent);transition:opacity .2s;min-height:4px}
.bar-chart-bar:hover{opacity:.8}
.bar-chart-bar.secondary{background:#7c3aed}
.bar-chart-label{position:absolute;bottom:-20px;font-size:.6rem;color:var(--muted2);text-align:center;white-space:nowrap}
.line-chart{height:80px;display:flex;align-items:flex-end;gap:3px}
.line-chart-bar{flex:1;border-radius:2px 2px 0 0;transition:opacity .2s}
.line-chart-bar:hover{opacity:.8}
.chart-legend{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;margin-top:.75rem}
.legend-item{display:flex;align-items:center;gap:.35rem;font-size:.75rem;color:var(--muted)}
.legend-dot{width:8px;height:8px;border-radius:2px;flex-shrink:0}
.platform-bars{display:flex;flex-direction:column;gap:.6rem}
.platform-bar-row{display:flex;align-items:center;gap:.75rem;font-size:.8rem}
.platform-bar-label{width:80px;color:var(--muted);flex-shrink:0}
.platform-bar-track{flex:1;height:8px;background:var(--bg3);border-radius:4px;overflow:hidden}
.platform-bar-fill{height:100%;border-radius:4px;transition:width .8s ease}
.platform-bar-val{width:40px;text-align:right;color:var(--text);font-weight:600}

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap{overflow-x:auto}
.table{width:100%;border-collapse:collapse;font-size:.85rem}
.table th{padding:.7rem 1rem;text-align:left;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);border-bottom:1px solid var(--border);white-space:nowrap}
.table td{padding:.8rem 1rem;color:var(--text);border-bottom:1px solid var(--border);vertical-align:middle}
.table tbody tr:last-child td{border-bottom:none}
.table tbody tr:hover td{background:var(--bg3)}

/* ── Badges ───────────────────────────────────────────────── */
.badge{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .6rem;border-radius:100px;font-size:.7rem;font-weight:700;text-transform:capitalize;white-space:nowrap}
.badge-success{background:rgba(34,197,94,.12);color:#22c55e}
.badge-warning{background:rgba(245,158,11,.12);color:#f59e0b}
.badge-danger{background:rgba(239,68,68,.12);color:#ef4444}
.badge-info{background:rgba(37,99,235,.12);color:#3b82f6}
.badge-muted{background:var(--bg3);color:var(--muted)}
.badge-x{background:rgba(0,0,0,.2);color:#cbd5e1}
.badge-facebook{background:rgba(24,119,242,.15);color:#60a5fa}
.badge-instagram{background:rgba(225,48,108,.15);color:#f472b6}
.badge-linkedin{background:rgba(0,119,181,.15);color:#38bdf8}
.badge-youtube{background:rgba(255,0,0,.15);color:#f87171}

/* ── Buttons ──────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;gap:.4rem;padding:.55rem 1rem;border-radius:var(--radius);font-size:.85rem;font-weight:600;border:none;cursor:pointer;transition:all .15s;text-decoration:none;white-space:nowrap;line-height:1}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-d);transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--muted)}
.btn-ghost:hover{background:var(--bg3);color:var(--text)}
.btn-danger{background:rgba(239,68,68,.12);color:var(--danger)}
.btn-danger:hover{background:rgba(239,68,68,.2)}
.btn-success{background:rgba(34,197,94,.12);color:var(--success)}
.btn-success:hover{background:rgba(34,197,94,.2)}
.btn-outline{background:transparent;color:var(--text);border:1px solid var(--border)}
.btn-outline:hover{background:var(--bg3);border-color:var(--muted2)}
.btn-sm{padding:.35rem .7rem;font-size:.775rem}
.btn-icon{padding:.45rem;line-height:1}
.btn-lg{padding:.75rem 1.5rem;font-size:.9rem}

/* ── Forms ────────────────────────────────────────────────── */
.form-group{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem}
.form-label{font-size:.8rem;font-weight:600;color:var(--muted)}
.form-hint{font-size:.75rem;color:var(--muted2)}
.input,.textarea,.select{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);padding:.6rem .85rem;font-size:.875rem;width:100%;transition:border-color .15s,box-shadow .15s;outline:none;line-height:1.5}
.input:focus,.textarea:focus,.select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.input::placeholder,.textarea::placeholder{color:var(--muted2)}
.textarea{resize:vertical;min-height:100px}
.input-group{display:flex;gap:.5rem}
.input-group .input{flex:1}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form-error{font-size:.8rem;color:var(--danger)}

/* ── Modals ───────────────────────────────────────────────── */
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;animation:fadeIn .2s}
.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);width:100%;max-width:520px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;animation:slideUp .25s}
.modal-lg{max-width:720px}
.modal-header{padding:1.1rem 1.25rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}
.modal-title{font-size:1rem;font-weight:700;color:var(--text)}
.modal-body{padding:1.25rem;overflow-y:auto;flex:1}
.modal-footer{padding:.9rem 1.25rem;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:flex-end;gap:.5rem}

/* ── Toast ────────────────────────────────────────────────── */
#toast-root{position:fixed;bottom:1.25rem;right:1.25rem;z-index:9999;display:flex;flex-direction:column;gap:.5rem}
.toast{padding:.75rem 1.1rem;border-radius:var(--radius);font-size:.85rem;font-weight:500;box-shadow:var(--shadow-lg);animation:toastIn .3s ease;max-width:340px;display:flex;align-items:center;gap:.5rem}
.toast-success{background:#1e3a2e;border:1px solid #22c55e;color:#86efac}
.toast-error{background:#3b1f1f;border:1px solid #ef4444;color:#fca5a5}
.toast-info{background:#1e2a3b;border:1px solid var(--accent);color:#93c5fd}
@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeOut{to{opacity:0;transform:translateY(5px)}}

/* ── Auth Pages ───────────────────────────────────────────── */
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:var(--bg)}
.auth-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2.5rem;width:100%;max-width:420px}
.auth-logo{text-align:center;margin-bottom:2rem;display:flex;align-items:center;justify-content:center;gap:.5rem;font-size:1.3rem;font-weight:800;color:var(--text)}
.auth-logo-icon{width:38px;height:38px;background:var(--accent);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;font-weight:900}
.auth-title{font-size:1.5rem;font-weight:800;color:var(--text);margin-bottom:.35rem}
.auth-sub{font-size:.875rem;color:var(--muted);margin-bottom:1.75rem}
.auth-divider{text-align:center;margin:1.25rem 0;color:var(--muted2);font-size:.8rem;position:relative}
.auth-divider::before,.auth-divider::after{content:'';position:absolute;top:50%;width:calc(50% - 2rem);height:1px;background:var(--border)}
.auth-divider::before{left:0}
.auth-divider::after{right:0}
.auth-switch{text-align:center;margin-top:1.5rem;font-size:.875rem;color:var(--muted)}

/* ── Empty States ─────────────────────────────────────────── */
.empty{text-align:center;padding:4rem 2rem;color:var(--muted)}
.empty-icon{font-size:3rem;margin-bottom:1rem;opacity:.5}
.empty-title{font-size:1rem;font-weight:600;color:var(--text);margin-bottom:.35rem}
.empty-desc{font-size:.875rem;color:var(--muted);margin-bottom:1.25rem}

/* ── Accounts ─────────────────────────────────────────────── */
.accounts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem;margin-top:1.5rem}
.account-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;transition:border-color .2s}
.account-card:hover{border-color:var(--accent)}
.account-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.account-platform-icon{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.3rem;flex-shrink:0}
.account-name{font-size:.9rem;font-weight:700;color:var(--text);margin-bottom:.15rem}
.account-username{font-size:.775rem;color:var(--muted)}
.account-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border)}
.account-stat-val{font-size:1rem;font-weight:700;color:var(--text)}
.account-stat-label{font-size:.7rem;color:var(--muted2)}

/* ── Posts / Compose ──────────────────────────────────────── */
.compose-grid{display:grid;grid-template-columns:1fr 360px;gap:1.25rem}
.platform-selector{display:flex;flex-wrap:wrap;gap:.5rem}
.platform-toggle{display:flex;align-items:center;gap:.5rem;padding:.4rem .9rem;border-radius:100px;border:1.5px solid var(--border);cursor:pointer;font-size:.8rem;font-weight:600;color:var(--muted);transition:all .2s;background:transparent}
.platform-toggle.active{border-color:var(--accent);color:var(--text);background:rgba(37,99,235,.1)}
.post-preview{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;min-height:120px}
.post-preview-text{font-size:.85rem;color:var(--text);line-height:1.6;white-space:pre-wrap}
.char-count{font-size:.75rem;color:var(--muted2);text-align:right;margin-top:.35rem}
.char-count.warn{color:var(--warning)}
.char-count.over{color:var(--danger)}
.post-filters{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:1.25rem}

/* ── Calendar ─────────────────────────────────────────────── */
.cal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}
.cal-nav{display:flex;align-items:center;gap:.5rem}
.cal-month{font-size:1.1rem;font-weight:700;color:var(--text)}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.cal-day-name{padding:.5rem;text-align:center;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted2)}
.cal-day{min-height:90px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.5rem;transition:border-color .15s;cursor:pointer}
.cal-day:hover{border-color:var(--muted2)}
.cal-day.today{border-color:var(--accent);background:rgba(37,99,235,.04)}
.cal-day.other-month{opacity:.35}
.cal-day-num{font-size:.8rem;font-weight:600;color:var(--text);margin-bottom:.35rem}
.cal-day.today .cal-day-num{background:var(--accent);color:#fff;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.7rem}
.cal-event{background:rgba(37,99,235,.15);border-left:2px solid var(--accent);padding:1px 4px;border-radius:0 3px 3px 0;font-size:.65rem;color:var(--accent-l);margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-event.published{background:rgba(34,197,94,.1);border-color:#22c55e;color:#86efac}
.cal-event.draft{background:rgba(100,116,139,.1);border-color:var(--muted2);color:var(--muted)}

/* ── Analytics ────────────────────────────────────────────── */
.analytics-period{display:flex;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:3px}
.period-btn{padding:.35rem .9rem;border-radius:var(--radius);font-size:.8rem;font-weight:600;color:var(--muted);border:none;background:none;cursor:pointer;transition:all .15s}
.period-btn.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.analytics-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.25rem}

/* ── Admin ────────────────────────────────────────────────── */
.admin-header-bar{background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(124,58,237,.08));border:1px solid rgba(37,99,235,.15);border-radius:var(--radius-lg);padding:1.25rem 1.5rem;margin-bottom:1.75rem;display:flex;align-items:center;gap:1rem}
.admin-badge{background:var(--accent);color:#fff;padding:.2rem .6rem;border-radius:4px;font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.search-input-wrap{position:relative}
.search-input-wrap .input{padding-left:2.25rem}
.search-icon{position:absolute;left:.7rem;top:50%;transform:translateY(-50%);color:var(--muted2);font-size:.9rem;pointer-events:none}

/* ── Settings ─────────────────────────────────────────────── */
.settings-layout{display:grid;grid-template-columns:220px 1fr;gap:1.5rem}
.settings-nav{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:.5rem;height:fit-content}
.settings-nav-item{display:flex;align-items:center;gap:.6rem;padding:.6rem .8rem;border-radius:var(--radius);color:var(--muted);font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s;border:none;background:none;width:100%}
.settings-nav-item:hover{background:var(--bg3);color:var(--text)}
.settings-nav-item.active{background:rgba(37,99,235,.12);color:var(--accent-l)}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:var(--border);border-radius:10px}
::-webkit-scrollbar-thumb:hover{background:var(--muted2)}

/* ── Utilities ────────────────────────────────────────────── */
.flex{display:flex}.flex-1{flex:1}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}
.text-muted{color:var(--muted)}.text-sm{font-size:.8rem}.text-xs{font-size:.7rem}.font-bold{font-weight:700}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mt-auto{margin-top:auto}
.w-full{width:100%}.hidden{display:none!important}
.separator{height:1px;background:var(--border);margin:1rem 0}

/* ── Responsive ───────────────────────────────────────────── */
@media(max-width:1100px){
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .l-analytics-screen{grid-template-columns:repeat(2,1fr)}
  .l-atop-posts{grid-column:span 2}
}
@media(max-width:900px){
  .l-hero{grid-template-columns:1fr;gap:2rem}
  .l-mockup-wrap{display:none}
  .l-features-grid{grid-template-columns:repeat(2,1fr)}
  .l-problem-cards{grid-template-columns:1fr}
  .l-steps::before{display:none}
  .l-steps{grid-template-columns:1fr}
  .l-who-grid{grid-template-columns:repeat(2,1fr)}
  .l-testimonials-grid{grid-template-columns:1fr}
  .l-pricing-grid{grid-template-columns:1fr;max-width:400px}
  .l-footer-grid{grid-template-columns:1fr 1fr;gap:2rem}
  .compose-grid{grid-template-columns:1fr}
  .settings-layout{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .grid-1-2,.grid-2-1{grid-template-columns:1fr}
}
@media(max-width:768px){
  .sidebar{transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0)}
  .topbar{left:0}
  .main{margin-left:0}
  .l-nav-links{display:none}
  .l-hero h1{font-size:2.25rem}
  .l-section-title{font-size:1.75rem}
  .analytics-grid{grid-template-columns:repeat(2,1fr)}
  .stats-grid{grid-template-columns:1fr 1fr}
  .l-features-grid{grid-template-columns:1fr}
  .l-who-grid{grid-template-columns:1fr 1fr}
  .form-row{grid-template-columns:1fr}
  .menu-toggle{display:flex}
  .accounts-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .l-hero h1{font-size:1.85rem}
  .l-nav-ctas .l-btn:not(.l-btn-primary){display:none}
  .stats-grid{grid-template-columns:1fr}
  .analytics-grid{grid-template-columns:1fr}
  .l-who-grid{grid-template-columns:1fr}
  .l-footer-grid{grid-template-columns:1fr}
  .auth-box{padding:1.75rem 1.25rem}
}

/* ── Misc ─────────────────────────────────────────────────── */
.menu-toggle{display:none;align-items:center;justify-content:center;width:36px;height:36px;background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;margin-right:.75rem}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:99}
.sidebar-overlay.open{display:block}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.notification-dot{width:7px;height:7px;border-radius:50%;background:var(--danger);position:absolute;top:6px;right:6px}
.tag{display:inline-flex;align-items:center;padding:.15rem .5rem;border-radius:4px;font-size:.7rem;font-weight:600;background:var(--bg3);color:var(--muted)}
.divider{height:1px;background:var(--border);margin:.5rem 0}
