/* ═══════════════════════════════════════════════════════════════
   Buffer — UI styled after Wipelink.com design language
   Font: Inter · Accent: #6c63ff · Dark navy palette
   ═══════════════════════════════════════════════════════════════ */

/* ─── Google Fonts: Inter ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── CSS Variables (mirrors Wipelink exactly) ─────────────────── */
:root {
  --bg-primary:    #0d0f14;
  --bg-secondary:  #13151c;
  --bg-card:       #1a1d27;
  --bg-input:      #111420;
  --border-color:  #2a2d3e;
  --border-focus:  #6c63ff;
  --text-primary:  #e8eaf0;
  --text-secondary:#9da3b4;
  --text-muted:    #5c6278;
  --accent:        #6c63ff;
  --accent-hover:  #574fd6;
  --accent-glow:   rgba(108,99,255,.3);
  --accent-faint:  rgba(108,99,255,.08);
  --accent-subtle: rgba(108,99,255,.12);
  --success:       #22c55e;
  --success-bg:    rgba(34,197,94,.1);
  --warning:       #f59e0b;
  --warning-bg:    rgba(245,158,11,.1);
  --danger:        #ef4444;
  --danger-bg:     rgba(239,68,68,.1);
  --danger-hover:  #dc2626;
  --font-family:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:     0 8px 48px rgba(0,0,0,.6);
  --transition:    .18s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-weight: 600; line-height: 1.25; }
p { color: var(--text-secondary); }

/* ─── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════════════ */
.app-shell { display: flex; min-height: 100vh; }

/* ─── Sidebar ──────────────────────────────────────────────────── */
.sidebar {
  width: 240px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  position: fixed; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  z-index: 100;
}

.sidebar-header {
  padding: 1.25rem 1.25rem .875rem;
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; gap: .625rem;
}
.logo {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -.4px;
  color: var(--text-primary); display: flex; align-items: center; gap: .5rem;
}
.logo i { color: var(--accent); }
.logo-bear {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: inline-block; vertical-align: middle;
}
.logo-text {
  font-weight: 700; font-size: 1rem; color: var(--text-primary);
  display: flex; align-items: center; gap: .4rem;
}
.logo-text .logo-bear { width: 22px; height: 22px; border-radius: 6px; }
.back-link {
  color: var(--text-secondary); font-size: .85rem;
  display: flex; align-items: center; gap: .375rem;
}
.back-link:hover { color: var(--text-primary); }

.sidebar-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }

/* New Post button */
.btn-new {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: #fff; border: none;
  padding: .65rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .875rem; cursor: pointer;
  margin-bottom: 1.25rem; transition: background var(--transition), box-shadow var(--transition);
  letter-spacing: .1px;
}
.btn-new:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* Nav items */
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: .875rem; font-weight: 500;
  transition: all var(--transition); position: relative;
}
.nav-item:hover { background: var(--accent-faint); color: var(--text-primary); }
.nav-item.active {
  background: var(--accent-faint); color: var(--accent); font-weight: 600;
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 20%; height: 60%;
  width: 3px; background: var(--accent); border-radius: 0 2px 2px 0;
}
.nav-icon { width: 18px; text-align: center; font-size: .9rem; flex-shrink: 0; }

/* Badge */
.badge {
  margin-left: auto; background: var(--accent-subtle);
  color: var(--accent); padding: .1rem .45rem;
  border-radius: 50px; font-size: .7rem; font-weight: 700;
}
.badge-new {
  background: var(--accent-subtle); color: var(--accent);
  font-size: .65rem; padding: .1rem .4rem; border-radius: 4px;
  font-weight: 700; margin-left: .4rem; text-transform: uppercase; letter-spacing: .04em;
}

.sidebar-divider { height: 1px; background: var(--border-color); margin: .75rem 0; }
.section-label {
  font-size: .68rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .1em; padding: .25rem .75rem; margin-bottom: .125rem;
}

/* Channel list in sidebar */
.channel-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .375rem .75rem; border-radius: var(--radius-sm);
  font-size: .8rem; color: var(--text-secondary);
}
.channel-avatar {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent-subtle); display: flex; align-items: center;
  justify-content: center; font-size: .7rem; color: var(--accent); flex-shrink: 0;
}
.channel-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connect-channels {
  display: flex; align-items: center; gap: .5rem;
  color: var(--accent); font-size: .8rem; padding: .375rem .75rem;
  border-radius: var(--radius-sm); transition: background var(--transition);
}
.connect-channels:hover { background: var(--accent-faint); color: var(--accent-hover); }

/* Sidebar footer */
.sidebar-footer {
  padding: .875rem 1rem; border-top: 1px solid var(--border-color);
  display: flex; align-items: center; gap: .75rem;
}
.org-avatar {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.org-info { flex: 1; min-width: 0; }
.org-name { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-badge {
  font-size: .65rem; color: var(--text-muted); background: rgba(255,255,255,.05);
  padding: .1rem .4rem; border-radius: 4px; border: 1px solid var(--border-color);
  display: inline-block;
}
.settings-link { color: var(--text-muted); transition: color var(--transition); }
.settings-link:hover { color: var(--text-primary); }

/* Settings sidebar nav */
.settings-nav { display: flex; flex-direction: column; gap: 2px; }
.settings-group {
  font-size: .68rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .1em; padding: .875rem .75rem .25rem;
}

/* ─── Main Content ─────────────────────────────────────────────── */
.main-content { flex: 1; margin-left: 240px; padding: 2rem 2.5rem; max-width: 1400px; }

/* ══════════════════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════════════════ */
.alert {
  display: flex; align-items: center; gap: .625rem;
  padding: .875rem 1.1rem; border-radius: var(--radius-sm);
  margin-bottom: 1.25rem; font-size: .875rem; border: 1px solid transparent;
}
.alert-success {
  background: var(--success-bg); color: var(--success);
  border-color: rgba(34,197,94,.25);
}
.alert-error {
  background: var(--danger-bg); color: var(--danger);
  border-color: rgba(239,68,68,.25);
}
.alert-warning {
  background: var(--warning-bg); color: var(--warning);
  border-color: rgba(245,158,11,.25);
}

/* ══════════════════════════════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════════════════════════════ */
.page-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.75rem;
}
.page-header h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.3px; }
.subtitle { color: var(--text-secondary); font-size: .875rem; margin-top: .25rem; }

/* Gradient text highlight */
.highlight {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Hero badge (like Wipelink's top pills) */
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent-subtle);
  border: 1px solid rgba(108,99,255,.3);
  color: var(--accent); padding: .35rem .9rem; border-radius: 50px;
  font-size: .78rem; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════════════
   CARDS (Wipelink "secrety-card" pattern)
══════════════════════════════════════════════════════════════════ */
.section-card, .secrety-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.section-card h2, .secrety-card h2 {
  font-size: 1.1rem; margin-bottom: 1.25rem;
  padding-bottom: .875rem; border-bottom: 1px solid var(--border-color);
}
.section-card h3, .secrety-card h3 { font-size: .95rem; margin-bottom: .875rem; }

/* Info / warning / danger boxes (like Wipelink's .info-box) */
.info-box {
  background: var(--accent-faint);
  border: 1px solid rgba(108,99,255,.2);
  border-radius: var(--radius-sm); padding: .875rem 1.1rem;
  display: flex; gap: .75rem; align-items: flex-start;
  color: var(--text-secondary); font-size: .875rem;
  margin-bottom: 1.25rem;
}
.info-box i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }

.warning-box {
  background: var(--warning-bg);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--radius-sm); padding: .875rem 1.1rem;
  display: flex; gap: .75rem; font-size: .875rem;
  color: var(--text-secondary); margin-bottom: 1.25rem;
}
.warning-box i { color: var(--warning); flex-shrink: 0; }

.danger-box {
  background: var(--danger-bg);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--radius-sm); padding: .875rem 1.1rem;
  display: flex; gap: .75rem; font-size: .875rem;
  color: var(--text-secondary); margin-bottom: 1.25rem;
}
.danger-box i { color: var(--danger); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════════ */
.btn-primary {
  background: var(--accent); color: #fff; border: none;
  padding: .7rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: .1px;
}
.btn-primary:hover {
  background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary-sm {
  background: var(--accent); color: #fff; border: none;
  padding: .45rem 1rem; border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.btn-primary-sm:hover { background: var(--accent-hover); box-shadow: 0 2px 12px var(--accent-glow); }

.btn-secondary {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
  padding: .6rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: .875rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover { background: var(--accent-faint); color: var(--accent); }

.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: .55rem 1rem; border-radius: var(--radius-sm);
  font-size: .85rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-faint); }

.btn-danger-sm {
  background: var(--danger-bg); color: var(--danger);
  border: 1px solid rgba(239,68,68,.3);
  padding: .4rem .85rem; border-radius: var(--radius-sm);
  font-size: .8rem; cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; gap: .35rem;
}
.btn-danger-sm:hover { background: var(--danger); color: #fff; }

.btn-success-sm {
  background: var(--success-bg); color: var(--success);
  border: 1px solid rgba(34,197,94,.3);
  padding: .4rem .85rem; border-radius: var(--radius-sm);
  font-size: .8rem; cursor: pointer; transition: all var(--transition);
}
.btn-success-sm:hover { background: var(--success); color: #fff; }

.full-width { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

/* ══════════════════════════════════════════════════════════════════
   FORMS (Wipelink .form-control style)
══════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .825rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: .5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .7rem 1rem;
  background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-family); font-size: .95rem; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); }
.form-group input[disabled] { opacity: .5; cursor: not-allowed; }

input[type=datetime-local] {
  background: var(--bg-input); border: 1px solid var(--border-color);
  color: var(--text-primary); padding: .6rem .875rem;
  border-radius: var(--radius-sm); font-family: var(--font-family); font-size: .9rem;
  outline: none; transition: border-color var(--transition);
}
input[type=datetime-local]:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-glow); }
input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.6); }
input[type=color] { height: 38px; padding: .2rem .4rem; cursor: pointer; }

.checkbox-label { display: flex; align-items: center; gap: .5rem; font-size: .875rem; cursor: pointer; color: var(--text-secondary); }

.inline-form { display: inline-flex; align-items: center; gap: .5rem; }

/* ══════════════════════════════════════════════════════════════════
   TABS
══════════════════════════════════════════════════════════════════ */
.tabs, .filter-tabs {
  display: flex; gap: .25rem; border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem; padding-bottom: 0;
}
.tab {
  padding: .55rem 1rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-secondary); font-size: .875rem; font-weight: 500;
  transition: all var(--transition); position: relative; white-space: nowrap;
}
.tab:hover { color: var(--text-primary); background: var(--accent-faint); }
.tab.active { color: var(--accent); font-weight: 600; }
.tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px 2px 0 0;
}

/* ══════════════════════════════════════════════════════════════════
   PLATFORM & STATUS BADGES
══════════════════════════════════════════════════════════════════ */
.platform-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--accent-subtle); color: var(--accent);
  padding: .15rem .55rem; border-radius: 4px;
  font-size: .72rem; font-weight: 600;
}
.platform-tag.x         { background: rgba(29,155,240,.1);  color: #1d9bf0; }
.platform-tag.instagram { background: rgba(225,48,108,.1);  color: #e1306c; }
.platform-tag.linkedin  { background: rgba(0,119,181,.1);   color: #0077b5; }
.platform-tag.tiktok    { background: rgba(255,0,80,.1);    color: #ff0050; }

.status-badge { padding: .2rem .6rem; border-radius: 50px; font-size: .72rem; font-weight: 600; }
.status-draft     { background: rgba(92,98,120,.15); color: var(--text-muted); }
.status-scheduled { background: var(--warning-bg); color: var(--warning); }
.status-published { background: var(--success-bg); color: var(--success); }
.status-failed    { background: var(--danger-bg); color: var(--danger); }

/* ══════════════════════════════════════════════════════════════════
   DASHBOARD STATS
══════════════════════════════════════════════════════════════════ */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; transition: border-color var(--transition);
  position: relative; overflow: hidden;
}
.stat-card:hover { border-color: rgba(108,99,255,.4); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), #a78bfa); opacity: 0; transition: opacity var(--transition);
}
.stat-card:hover::before { opacity: 1; }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.stat-icon { color: var(--accent); font-size: 1.1rem; }
.stat-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 1.875rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-sub { font-size: .75rem; color: var(--text-muted); margin-top: .3rem; }

/* Step cards — match Wipelink .step-card exactly */
.first-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.step-num {
  width: 36px; height: 36px; background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; margin: 0 auto .875rem;
}
.step-card h3 { font-size: .9rem; margin-bottom: .375rem; }
.step-card p  { font-size: .8rem; color: var(--text-secondary); margin-bottom: .875rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-icon { font-size: 2.5rem; color: var(--text-muted); margin-bottom: .875rem; }
.empty-state h3 { font-size: .95rem; color: var(--text-secondary); margin-bottom: .5rem; }
.empty-state p  { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.mini-post, .mini-comment {
  padding: .75rem 0; border-bottom: 1px solid var(--border-color);
}
.mini-post:last-child, .mini-comment:last-child { border-bottom: none; }
.mini-post p, .mini-comment p { font-size: .875rem; color: var(--text-secondary); margin: .25rem 0; }
.mini-comment.answered { opacity: .5; }
.count-badge { font-size: .8rem; color: var(--text-muted); font-weight: 400; }

.channel-progress {
  display: flex; align-items: center; gap: 1rem;
  font-size: .8rem; color: var(--text-muted); padding: .5rem .25rem;
}
.progress-bar { flex: 1; height: 4px; background: var(--border-color); border-radius: 99px; }
.progress-fill { height: 100%; background: linear-gradient(90deg,var(--accent),#a78bfa); border-radius: 99px; }

/* Feature items (Wipelink .feature-item) */
.feature-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; gap: .9rem; align-items: flex-start; transition: border-color var(--transition);
}
.feature-item:hover { border-color: rgba(108,99,255,.4); }
.feature-item i { color: var(--accent); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.feature-item h6 { font-size: .875rem; font-weight: 600; margin-bottom: .25rem; }
.feature-item p  { font-size: .8rem; color: var(--text-secondary); margin: 0; }

/* ══════════════════════════════════════════════════════════════════
   POST CARDS (Publish)
══════════════════════════════════════════════════════════════════ */
.post-list { display: flex; flex-direction: column; gap: .75rem; }
.post-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  transition: border-color var(--transition);
}
.post-card:hover { border-color: rgba(108,99,255,.3); }
.post-card-header {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .875rem; flex-wrap: wrap;
}
.post-content {
  color: var(--text-secondary); white-space: pre-wrap;
  font-size: .9rem; line-height: 1.65; margin-bottom: .875rem;
}
.post-meta { font-size: .75rem; color: var(--text-muted); margin-bottom: .875rem; }
.post-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.post-media-thumb {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border-color);
}

/* ══════════════════════════════════════════════════════════════════
   COMPOSER
══════════════════════════════════════════════════════════════════ */
.composer-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem;
}
.composer-actions { display: flex; gap: .5rem; }
.composer-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1rem; }

.composer-main {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}

.channel-selector { display: flex; flex-wrap: wrap; gap: .5rem; }
.channel-chip {
  display: flex; align-items: center; gap: .375rem;
  padding: .4rem .875rem; border: 1px solid var(--border-color);
  border-radius: 50px; cursor: pointer; font-size: .8rem;
  color: var(--text-secondary); background: var(--bg-input);
  transition: all var(--transition); user-select: none;
}
.channel-chip:hover { border-color: var(--accent); color: var(--text-primary); }
.channel-chip.selected {
  border-color: var(--accent); background: var(--accent-subtle); color: var(--accent);
}
.channel-chip input[type=checkbox] { display: none; }

.composer-editor {
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  padding: 1rem; background: var(--bg-input);
  transition: border-color var(--transition);
}
.composer-editor:focus-within { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-glow); }

.post-textarea {
  width: 100%; background: transparent; border: none;
  resize: none; color: var(--text-primary);
  font-family: var(--font-family); font-size: .95rem;
  line-height: 1.7; outline: none; min-height: 140px;
}
.post-textarea::placeholder { color: var(--text-muted); }

.editor-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .75rem; border-top: 1px solid var(--border-color); margin-top: .5rem;
}
.char-count { font-size: .78rem; color: var(--text-muted); }

.media-section { display: flex; flex-direction: column; gap: .625rem; }
.media-dropzone {
  border: 2px dashed var(--border-color); border-radius: var(--radius-sm);
  padding: 1.5rem; text-align: center; cursor: pointer;
  color: var(--text-muted); font-size: .85rem; transition: all var(--transition);
}
.media-dropzone:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-faint); }
#mediaInput { display: none; }
.media-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.media-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }

.tag-selector { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-chip {
  padding: .25rem .7rem; border-radius: 50px; font-size: .75rem;
  cursor: pointer; border: 1px solid var(--border-color);
  color: var(--text-secondary); background: var(--bg-input);
  transition: all var(--transition); user-select: none;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }
.tag-chip.selected-tag { color: #fff !important; border-color: transparent !important; }

/* Right panels */
.composer-side { display: flex; flex-direction: column; gap: 1rem; }
.preview-panel, .ai-panel {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 1.25rem;
}
.preview-panel.hidden, .ai-panel.hidden { display: none; }

.preview-card {
  background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 1rem; margin-top: .875rem;
}
.preview-header { display: flex; gap: .75rem; margin-bottom: .75rem; align-items: center; }
.preview-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; color: #fff; flex-shrink: 0;
}
.preview-handle { font-size: .75rem; color: var(--text-muted); }
.preview-content { font-size: .875rem; white-space: pre-wrap; color: var(--text-secondary); }

.ai-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .875rem 0; }
.ai-actions button {
  padding: .375rem .75rem; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); background: var(--bg-input);
  color: var(--text-secondary); cursor: pointer; font-size: .8rem;
  font-family: var(--font-family); transition: all var(--transition);
  display: inline-flex; align-items: center; gap: .25rem;
}
.ai-actions button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-faint); }
.ai-actions select {
  padding: .375rem .75rem; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); background: var(--bg-input);
  color: var(--text-secondary); font-size: .8rem; cursor: pointer;
  font-family: var(--font-family);
}
.ai-result {
  background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: .875rem;
  font-size: .825rem; white-space: pre-wrap; max-height: 180px;
  overflow-y: auto; color: var(--text-secondary); line-height: 1.6;
}

.composer-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1rem; padding: 1rem 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.schedule-controls { display: flex; gap: .75rem; align-items: center; }

.templates-quick { margin-top: 1rem; }
.template-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.template-chip {
  padding: .4rem .875rem; border: 1px solid var(--border-color);
  border-radius: 50px; background: var(--bg-input); color: var(--text-secondary);
  cursor: pointer; font-size: .8rem; font-family: var(--font-family);
  transition: all var(--transition);
}
.template-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-faint); }

/* ══════════════════════════════════════════════════════════════════
   COMMUNITY
══════════════════════════════════════════════════════════════════ */
.community-layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; }
.comment-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: .75rem;
  transition: border-color var(--transition);
}
.comment-card:hover { border-color: rgba(108,99,255,.3); }
.comment-card.unanswered { border-left: 3px solid var(--accent); }
.comment-card.answered   { opacity: .6; }

.comment-header {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .625rem; font-size: .8rem; flex-wrap: wrap;
}
.commenter-name { font-weight: 600; color: var(--text-primary); }
.handle { color: var(--text-muted); }
.comment-time { margin-left: auto; color: var(--text-muted); font-size: .75rem; }
.comment-body { color: var(--text-secondary); font-size: .875rem; margin-bottom: .875rem; line-height: 1.65; }

.reply-form textarea {
  width: 100%; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  background: var(--bg-input); color: var(--text-primary);
  padding: .65rem .875rem; font-size: .875rem; font-family: var(--font-family);
  resize: vertical; outline: none; transition: border-color var(--transition);
}
.reply-form textarea:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-glow); }
.reply-actions { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; flex-wrap: wrap; }
.reply-actions select {
  padding: .35rem .7rem; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); background: var(--bg-input);
  color: var(--text-secondary); font-size: .8rem; cursor: pointer;
}
.reply-sent {
  background: var(--success-bg); border: 1px solid rgba(34,197,94,.25);
  border-radius: var(--radius-sm); padding: .75rem 1rem;
  font-size: .825rem; color: var(--success);
}
.score-ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 88px; height: 88px; border-radius: 50%;
  border: 3px solid var(--accent); font-size: 1.5rem; font-weight: 800;
  color: var(--accent); margin-bottom: .75rem;
}

/* ══════════════════════════════════════════════════════════════════
   CHANNEL CONNECT
══════════════════════════════════════════════════════════════════ */
.platform-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.platform-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  position: relative; transition: border-color var(--transition), transform var(--transition);
}
.platform-card:hover { border-color: rgba(108,99,255,.4); transform: translateY(-2px); }
.platform-card.connected { border-color: rgba(34,197,94,.4); }

.platform-card-badge {
  position: absolute; top: .875rem; right: .875rem;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: .2rem .55rem; border-radius: 4px;
}
.badge-live { background: var(--success-bg); color: var(--success); }
.badge-demo { background: var(--warning-bg); color: var(--warning); }

.platform-icon-wrap {
  width: 60px; height: 60px; border-radius: 14px;
  margin: 0 auto .875rem;
  background: var(--bg-input); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.platform-card h3 { font-size: .95rem; margin-bottom: .25rem; }
.platform-card p  { font-size: .775rem; color: var(--text-secondary); margin-bottom: 1rem; min-height: 2em; }
.connected-label  { color: var(--success); font-size: .8rem; font-weight: 600; }

.connected-channels-list { display: flex; flex-direction: column; gap: .625rem; margin-bottom: 1.5rem; }
.connected-channel {
  display: flex; align-items: center; gap: .875rem;
  background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: .875rem 1rem;
  transition: border-color var(--transition);
}
.connected-channel:hover { border-color: rgba(108,99,255,.3); }
.channel-info { flex: 1; min-width: 0; }
.channel-info strong { display: block; font-size: .875rem; }
.channel-info small  { color: var(--text-muted); font-size: .75rem; }

.sim-badge  { background: var(--warning-bg); color: var(--warning); font-size: .65rem; padding: .1rem .4rem; border-radius: 4px; font-weight: 600; }
.live-badge { background: var(--success-bg); color: var(--success); font-size: .65rem; padding: .1rem .4rem; border-radius: 4px; font-weight: 600; }

/* API setup info */
.api-setup-card {
  background: var(--accent-faint);
  border: 1px solid rgba(108,99,255,.2);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
}
.api-setup-card h3 { color: var(--accent); font-size: .95rem; margin-bottom: .625rem; }
.api-setup-card p, .api-setup-card li { font-size: .85rem; color: var(--text-secondary); }
.api-setup-card ol  { padding-left: 1.25rem; }
.api-setup-card li  { margin-bottom: .375rem; }
.api-setup-card code { background: var(--bg-secondary); color: var(--accent); padding: .1rem .35rem; border-radius: 4px; font-size: .8rem; }

/* ══════════════════════════════════════════════════════════════════
   BILLING / PRICING
══════════════════════════════════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 1.75rem;
  position: relative; display: flex; flex-direction: column;
  transition: border-color var(--transition);
}
.pricing-card:hover { border-color: rgba(108,99,255,.4); }
.pricing-card.current {
  border-color: rgba(108,99,255,.45);
  box-shadow: 0 0 0 1px rgba(108,99,255,.12), var(--shadow);
}
.pricing-card.popular::before {
  content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: .25rem .875rem; border-radius: 50px;
}
.pricing-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.price { font-size: 2.25rem; font-weight: 800; margin: .875rem 0; letter-spacing: -.03em; }
.price span { font-size: .9rem; font-weight: 400; color: var(--text-muted); }
.price-sub { font-size: .75rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.pricing-features { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.pricing-features li {
  padding: .4rem 0; font-size: .85rem; border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; gap: .5rem; color: var(--text-secondary);
}
.pricing-features li i.fa-check { color: var(--success); }
.pricing-features li.na { opacity: .4; }
.current-plan-badge {
  display: block; text-align: center; padding: .625rem;
  background: var(--accent-faint); color: var(--accent);
  border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════
   DATA TABLE & CODE
══════════════════════════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  padding: .625rem .875rem; text-align: left; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}
.data-table td { padding: .625rem .875rem; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.data-table tr.revoked { opacity: .4; }

code, .code-block, .api-key-display {
  background: var(--bg-secondary); color: var(--accent);
  padding: .15rem .5rem; border-radius: 4px;
  font-family: 'Courier New', Courier, monospace; font-size: .825rem;
}
.code-block, .api-key-display {
  display: block; padding: 1rem 1.25rem; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); white-space: pre-wrap; overflow-x: auto;
  line-height: 1.6; margin-top: .75rem;
}

.saved-reply-card {
  padding: .875rem 1rem; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); margin-bottom: .625rem;
  background: var(--bg-input); transition: border-color var(--transition);
}
.saved-reply-card:hover { border-color: rgba(108,99,255,.3); }
.saved-reply-card strong { font-size: .875rem; display: block; margin-bottom: .25rem; }
.saved-reply-card p { font-size: .8rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════════
   TEMPLATES
══════════════════════════════════════════════════════════════════ */
.template-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.template-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}
.template-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.template-category {
  font-size: .68rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: .5rem; display: block;
}
.template-card h3 { font-size: .9rem; margin-bottom: .5rem; }
.template-preview {
  font-size: .78rem; color: var(--text-secondary); margin: .625rem 0;
  white-space: pre-wrap; line-height: 1.5; max-height: 80px; overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════
   AUTH PAGES (Wipelink card centered on dark bg)
══════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary); position: relative;
}
.auth-page::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(108,99,255,.18), transparent);
  pointer-events: none;
}
.auth-container {
  background: var(--bg-card); padding: 2.5rem; border-radius: var(--radius);
  border: 1px solid var(--border-color); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 420px; position: relative; z-index: 1;
}
.auth-logo {
  font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 1.5rem;
  letter-spacing: -.4px; color: var(--text-primary);
  display: flex; align-items: center; justify-content: center; gap: .625rem;
}
.auth-logo i { color: var(--accent); }
.auth-logo-bear {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
}
.auth-container h1 {
  text-align: center; font-size: 1.35rem; font-weight: 700; margin-bottom: .375rem;
  letter-spacing: -.3px;
}
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: .875rem; margin-bottom: 1.75rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent); }
.auth-footer a:hover { color: var(--accent-hover); }
.demo-credentials {
  margin-top: 1.25rem; padding: .875rem 1rem;
  background: var(--accent-faint); border: 1px solid rgba(108,99,255,.2);
  border-radius: var(--radius-sm); font-size: .8rem; text-align: center;
  color: var(--text-secondary);
}
.demo-credentials code { background: none; color: var(--accent); padding: 0; }

/* ══════════════════════════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════════════════════════ */
.secrety-divider { border: none; border-top: 1px solid var(--border-color); margin: 1.5rem 0; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .main-content { padding: 1.5rem; }
}
@media (max-width: 860px) {
  .sidebar { width: 64px; }
  .sidebar .nav-item span:not(.badge),
  .sidebar .logo-text, .sidebar .section-label,
  .sidebar .channel-name, .sidebar .connect-channels span,
  .sidebar .org-info, .sidebar .btn-new span,
  .sidebar .settings-group { display: none; }
  .sidebar .btn-new { padding: .65rem; border-radius: 50%; width: 42px; height: 42px; margin: .75rem auto; justify-content: center; }
  .sidebar .nav-item { justify-content: center; padding: .65rem; }
  .main-content { margin-left: 64px; padding: 1rem; }
  .stats-row, .first-steps, .two-col, .composer-grid,
  .platform-grid, .pricing-grid, .template-grid,
  .community-layout { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   LANDING PAGE STYLES
------------------------------------------------------------------ */

/* --- Base --------------------------------------------------------- */
.lp-body { background: var(--bg-primary); color: var(--text-primary); font-family: var(--font); margin: 0; }
.lp-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.lp-narrow { max-width: 780px; }

/* --- Navbar ------------------------------------------------------ */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,15,20,.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}
.lp-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  height: 64px; display: flex; align-items: center; gap: 2rem;
}
.lp-brand {
  display: flex; align-items: center; gap: .5rem; text-decoration: none;
  font-weight: 700; font-size: 1.1rem; color: var(--text-primary);
}
.lp-brand-icon { width: 28px; height: 28px; }
.lp-nav-links { display: flex; gap: 1.5rem; flex: 1; }
.lp-nav-links a {
  text-decoration: none; color: var(--text-secondary); font-size: .875rem;
  font-weight: 500; transition: color var(--transition);
}
.lp-nav-links a:hover { color: var(--text-primary); }
.lp-nav-cta { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.lp-hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.1rem; cursor: pointer; }
.lp-mobile-menu {
  display: none; flex-direction: column; gap: .5rem;
  padding: 1rem 1.5rem; border-top: 1px solid var(--border-color);
}
.lp-nav.open .lp-mobile-menu { display: flex; }

/* --- Buttons ----------------------------------------------------- */
.lp-btn-accent {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent); color: #fff; border: none;
  padding: .5rem 1.125rem; border-radius: 8px; font-weight: 600;
  font-size: .875rem; text-decoration: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.lp-btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }
.lp-btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; color: var(--text-primary); border: 1px solid var(--border-color);
  padding: .5rem 1.125rem; border-radius: 8px; font-weight: 600;
  font-size: .875rem; text-decoration: none; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.lp-btn-ghost:hover { border-color: var(--accent); background: var(--accent-faint); }
.lp-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: transparent; color: var(--accent); border: 1.5px solid var(--accent);
  padding: .625rem 1.25rem; border-radius: 8px; font-weight: 600;
  font-size: .875rem; text-decoration: none; cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lp-btn-outline:hover { background: var(--accent); color: #fff; }
.lp-btn-lg { padding: .75rem 1.5rem; font-size: 1rem; border-radius: 10px; }

/* --- Hero -------------------------------------------------------- */
.lp-hero {
  padding: 7rem 0 5rem;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,.15) 0%, transparent 70%);
  text-align: center;
}
.lp-hero-inner { max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent-subtle); color: var(--accent);
  padding: .35rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  margin-bottom: 1.5rem; border: 1px solid rgba(108,99,255,.2);
}
.lp-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -.02em;
  color: var(--text-primary); margin: 0 0 1.25rem;
}
.lp-highlight {
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lp-hero-sub { font-size: 1.125rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 2rem; line-height: 1.7; }
.lp-hero-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.lp-hero-note { color: var(--text-muted); font-size: .8rem; margin-top: 1rem; }

/* Platform pills */
.lp-platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.lp-platform-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--bg-card); border: 1px solid var(--border-color);
  padding: .35rem .8rem; border-radius: 999px;
  font-size: .78rem; font-weight: 500; color: var(--text-secondary);
}
.lp-platform-pill i { color: var(--accent); }

/* --- Stats bar --------------------------------------------------- */
.lp-stats {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary); padding: 2rem 0;
}
.lp-stats-grid { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.lp-stat { text-align: center; padding: 1rem 3rem; }
.lp-stat-value { font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.lp-stat-label { color: var(--text-muted); font-size: .825rem; margin-top: .25rem; }
.lp-stat-divider { width: 1px; height: 48px; background: var(--border-color); }

/* --- Section shared ---------------------------------------------- */
.lp-section { padding: 5rem 0; }
.lp-section-alt { background: var(--bg-secondary); }
.lp-section-header { text-align: center; margin-bottom: 3.5rem; }
.lp-section-header h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; margin: .75rem 0 .75rem; color: var(--text-primary); }
.lp-section-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* --- Features grid ----------------------------------------------- */
.lp-features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.lp-feature-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 2rem 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.lp-feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.lp-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1rem;
}
.lp-feature-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; color: var(--text-primary); }
.lp-feature-card p { color: var(--text-secondary); font-size: .875rem; line-height: 1.65; margin: 0 0 1rem; }
.lp-feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.lp-feature-list li { display: flex; align-items: center; gap: .45rem; font-size: .825rem; color: var(--text-secondary); }
.lp-feature-list li i { color: var(--success); font-size: .75rem; }

/* --- Steps ------------------------------------------------------- */
.lp-steps { display: flex; align-items: flex-start; gap: 1.5rem; }
.step-card {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 2rem; text-align: center;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; margin: 0 auto 1rem;
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; color: var(--text-primary); }
.step-card p { color: var(--text-secondary); font-size: .875rem; line-height: 1.65; margin: 0; }
.lp-step-arrow { color: var(--text-muted); font-size: 1.25rem; flex-shrink: 0; padding-top: 1.75rem; }

/* --- Testimonials ------------------------------------------------ */
.lp-testimonials { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.lp-testimonial {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 2rem 1.75rem;
}
.lp-stars { color: #f59e0b; font-size: .9rem; margin-bottom: .875rem; letter-spacing: .1em; }
.lp-testimonial-text { color: var(--text-secondary); font-size: .9rem; line-height: 1.7; margin: 0 0 1.5rem; }
.lp-testimonial-author { display: flex; align-items: center; gap: .75rem; }
.lp-author-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff;
}
.lp-testimonial-author strong { display: block; font-size: .875rem; color: var(--text-primary); }
.lp-testimonial-author span { font-size: .78rem; color: var(--text-muted); }

/* --- Pricing ----------------------------------------------------- */
.lp-billing-toggle { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 2.5rem; }
.lp-toggle-label { font-size: .9rem; font-weight: 600; color: var(--text-secondary); transition: opacity .2s; }
.lp-toggle {
  width: 48px; height: 26px; background: var(--border-color); border: none; border-radius: 999px;
  position: relative; cursor: pointer; transition: background .2s;
}
.lp-toggle.active { background: var(--accent); }
.lp-toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .2s;
}
.lp-toggle.active .lp-toggle-knob { transform: translateX(22px); }
.lp-save-badge {
  display: inline-block; background: rgba(34,197,94,.15);
  color: var(--success); font-size: .7rem; padding: .15rem .45rem; border-radius: 999px;
  font-weight: 600; margin-left: .25rem;
}

.lp-pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: start; }
.lp-price-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 16px; padding: 2rem; position: relative;
  transition: transform var(--transition);
}
.lp-price-card:hover { transform: translateY(-2px); }
.lp-price-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 40px rgba(108,99,255,.2);
}
.lp-price-card-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .25rem .8rem; border-radius: 999px; white-space: nowrap;
}
.lp-price-card-header { margin-bottom: 1.5rem; }
.lp-plan-name { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.lp-price { display: flex; align-items: baseline; gap: .2rem; margin: .5rem 0 .25rem; }
.lp-price-amount { font-size: 2.25rem; font-weight: 800; color: var(--text-primary); }
.lp-price-period { color: var(--text-muted); font-size: .825rem; }
.lp-price-sub { color: var(--text-muted); font-size: .78rem; margin: 0 0 1.25rem; }

.lp-plan-features { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .6rem; }
.lp-plan-features li { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; color: var(--text-secondary); }
.lp-plan-features li i { color: var(--success); font-size: .8rem; margin-top: .2rem; flex-shrink: 0; }
.lp-plan-features li strong { color: var(--text-primary); }

.lp-pricing-note { text-align: center; color: var(--text-muted); font-size: .825rem; margin-top: 2rem; }
.lp-pricing-note a { color: var(--accent); text-decoration: none; }
.lp-pricing-note a:hover { text-decoration: underline; }

/* --- FAQ --------------------------------------------------------- */
.lp-faq { display: flex; flex-direction: column; gap: .5rem; }
.lp-faq-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: border-color var(--transition);
}
.lp-faq-item:hover, .lp-faq-item.open { border-color: var(--accent); }
.lp-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.125rem 1.5rem; font-weight: 600; font-size: .925rem;
  color: var(--text-primary); gap: 1rem; user-select: none;
}
.lp-faq-icon { color: var(--text-muted); flex-shrink: 0; transition: transform .25s; font-size: .8rem; }
.lp-faq-item.open .lp-faq-icon { transform: rotate(180deg); color: var(--accent); }
.lp-faq-a {
  display: none; padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary); font-size: .875rem; line-height: 1.7;
}
.lp-faq-item.open .lp-faq-a { display: block; }

/* --- Final CTA section ------------------------------------------- */
.lp-cta-section {
  padding: 5rem 0;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(108,99,255,.15) 0%, transparent 70%);
}
.lp-cta-box {
  max-width: 680px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 20px; padding: 3.5rem 2rem; text-align: center;
  box-shadow: 0 8px 48px rgba(0,0,0,.4);
}
.lp-cta-box h2 { font-size: 2rem; font-weight: 800; margin: 0 0 .75rem; }
.lp-cta-box p { color: var(--text-secondary); font-size: 1rem; margin: 0; }

/* --- Footer ------------------------------------------------------ */
.lp-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}
.lp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.lp-footer-brand p { color: var(--text-muted); font-size: .85rem; line-height: 1.7; margin: .5rem 0 1rem; max-width: 280px; }
.lp-footer-social { display: flex; gap: .75rem; }
.lp-footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .9rem; text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.lp-footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.lp-footer h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 1rem; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.lp-footer ul li a { color: var(--text-secondary); text-decoration: none; font-size: .875rem; transition: color var(--transition); }
.lp-footer ul li a:hover { color: var(--accent); }
.lp-footer-bottom {
  border-top: 1px solid var(--border-color); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  color: var(--text-muted); font-size: .8rem;
}
.lp-footer-bottom div { display: flex; gap: 1.5rem; }
.lp-footer-bottom a { color: var(--text-muted); text-decoration: none; }
.lp-footer-bottom a:hover { color: var(--accent); }

/* --- Responsive -------------------------------------------------- */
@media (max-width: 900px) {
  .lp-nav-links { display: none; }
  .lp-hamburger { display: block; }
  .lp-features-grid { grid-template-columns: repeat(2,1fr); }
  .lp-testimonials { grid-template-columns: repeat(2,1fr); }
  .lp-pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .lp-stats-grid { gap: 0; }
  .lp-stat { padding: .75rem 1.5rem; }
  .lp-stat-divider { display: none; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
  .lp-steps { flex-direction: column; }
  .lp-step-arrow { transform: rotate(90deg); align-self: center; padding-top: 0; }
}
@media (max-width: 580px) {
  .lp-hero { padding: 5rem 0 3rem; }
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-testimonials { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .lp-hero-cta { flex-direction: column; align-items: center; }
  .lp-cta-box { padding: 2.5rem 1.25rem; }
  .lp-nav-cta { display: none; }
}
