/* ═══════════════════════════════════════════════════════════
   PostGenius — Design System
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  /* Brand */
  --brand:         #0077B5;
  --brand-hover:   #005f91;
  --brand-dark:    #004471;
  --brand-light:   #e8f4fd;
  --brand-xlight:  #f0f9ff;

  /* Neutral surfaces */
  --bg-page:    #f0f2f5;
  --bg-card:    #ffffff;
  --bg-raised:  #f8f9fa;
  --border:     rgba(0, 0, 0, 0.08);
  --border-md:  rgba(0, 0, 0, 0.14);

  /* Text */
  --text-1: #0f1923;
  --text-2: #475569;
  --text-3: #94a3b8;

  /* Semantic */
  --success:    #10b981;
  --success-bg: #ecfdf5;
  --error:      #ef4444;
  --error-bg:   #fef2f2;
  --warning:    #f59e0b;
  --warning-bg: #fffbeb;

  /* Radii */
  --r-xs:   4px;
  --r-sm:   8px;
  --r:      12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.07), 0 10px 10px -5px rgba(0,0,0,0.03);

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --fast:      150ms;
  --normal:    200ms;
  --slow:      300ms;

  /* Layout */
  --nav-h:    60px;
  --max-w:    1140px;
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }
body { overflow-x: hidden; }

/* Remove all focus outlines on click */
*:focus { outline: none; }
*:focus-visible { outline: none; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-1);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navbar ─────────────────────────────────────────────── */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0 7px;
  flex-shrink: 0;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.nav-hamburger:hover { background: var(--bg-raised); border-color: var(--brand); }

.nav-ham-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

/* Mobile drawer */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 190;
  animation: fadeIn 0.15s var(--ease-out);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nav-mobile-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-md);
  box-shadow: var(--shadow-md);
  z-index: 195;
  padding: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  animation: slideDown 0.18s var(--ease-out);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-mobile-link {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.nav-mobile-link:hover {
  background: var(--bg-raised);
  color: var(--brand);
}

.nav-mobile-logout { color: var(--error); }
.nav-mobile-logout:hover { background: var(--error-bg); color: var(--error); }

.nav-mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 1.25rem;
}

.nav-mobile-cta {
  display: block;
  margin: 0.25rem 1.25rem 0;
  padding: 0.65rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background var(--fast) var(--ease);
}

.nav-mobile-cta:hover { background: var(--brand-hover); }

/* Auth row at bottom of mobile drawer */
.nav-mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 1.25rem 0.5rem;
}

.nav-mobile-auth-login {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  text-align: center;
  text-decoration: none;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.nav-mobile-auth-login:hover { border-color: var(--brand); color: var(--brand); }

.nav-mobile-auth-signup {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background var(--fast) var(--ease);
}

.nav-mobile-auth-signup:hover { background: var(--brand-hover); color: #fff; }

/* Mobile-only auth shortcuts in header */
.nav-mob-auth {
  display: none;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nav-mob-login {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: color var(--fast) var(--ease);
}

.nav-mob-login:hover { color: var(--text-1); }

.nav-mob-signup {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 0.38rem 0.8rem;
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: background var(--fast) var(--ease);
}

.nav-mob-signup:hover { background: var(--brand-hover); color: #fff; }

.app-navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.brand-badge {
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  letter-spacing: -0.5px;
}

.nav-center {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.nav-link:hover {
  color: var(--brand);
  background: var(--brand-xlight);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Mobile navbar — MUST be after base styles above ─────── */
@media (max-width: 960px) {
  .nav-center             { display: none !important; }
  .nav-plan-badge-desktop { display: none !important; }
  .nav-actions            { display: none !important; }
  .nav-mob-auth           { display: flex !important; }
  .nav-hamburger          { display: flex; }
  .nav-brand              { margin-right: auto; }
  .nav-inner              { padding: 0 1rem; gap: 0.4rem; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease), opacity var(--fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.35);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.btn-generating {
  background: var(--brand-hover);
  cursor: pointer;
  opacity: 0.9;
}

.btn-generating:hover {
  background: var(--error) !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border-md);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease);
}

.btn-ghost:hover {
  background: var(--bg-raised);
  color: var(--text-1);
  border-color: var(--border-md);
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-3);
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-sm);
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease),
              border-color var(--fast) var(--ease);
}

.btn-icon:hover:not(:disabled) {
  color: var(--brand);
  background: var(--brand-xlight);
  border-color: var(--brand-light);
}

.btn-icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-icon-spinning { animation: spin 1s linear infinite; }

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-raised);
  color: var(--text-2);
  border: 1.5px solid var(--border-md);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.btn-copy:hover {
  background: var(--brand-xlight);
  color: var(--brand);
  border-color: var(--brand-light);
}

.btn-copy-done {
  background: var(--success-bg) !important;
  color: var(--success) !important;
  border-color: rgba(16,185,129,0.3) !important;
}

/* ── Spinner ────────────────────────────────────────────── */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0a2540 0%, #0077B5 60%, #00a0dc 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.75px;
  line-height: 1.15;
  margin: 0 0 0.9rem;
}

.hero-accent {
  background: linear-gradient(90deg, #7dd3fc, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.82;
  margin: 0;
  font-weight: 400;
}

/* ── Main Layout ────────────────────────────────────────── */
.generate-section {
  width: 100%;
  background: var(--bg-page);
  padding: 5rem 1.25rem 5.5rem;
}

.pg-section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.pg-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.pg-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .generate-section { padding: 3.5rem 1rem 4rem; }
  .pg-grid { grid-template-columns: 1fr; }
}

/* ── Cards ──────────────────────────────────────────────── */
.pg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--normal) var(--ease);
}

.pg-card:hover {
  box-shadow: var(--shadow);
}

.card-header-section {
  padding: 1.25rem 1.5rem 0;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-1);
  margin: 0 0 0.2rem;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-3);
  margin: 0 0 1.1rem;
}

.card-divider {
  height: 1px;
  background: var(--border);
  margin: 0 1.5rem;
}

.card-body-section {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* ── Form fields ────────────────────────────────────────── */
.field-group {
  margin-bottom: 1.1rem;
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.1px;
  margin-bottom: 0.45rem;
}

.field-textarea {
  width: 100%;
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-1);
  padding: 0.6rem 0.85rem;
  resize: vertical;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  background: var(--bg-card);
  line-height: 1.55;
}

.field-textarea::placeholder { color: var(--text-3); }

.field-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.12);
}

.field-hint {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: right;
}

.select-wrapper {
  position: relative;
}

.field-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-1);
  padding: 0.6rem 2.25rem 0.6rem 0.85rem;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.field-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.12);
}

.select-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 0.75rem;
  pointer-events: none;
}

/* ── Tone pills ─────────────────────────────────────────── */
.tone-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tone-pill {
  background: var(--bg-raised);
  color: var(--text-2);
  border: 1.5px solid var(--border-md);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
}

.tone-pill:hover:not(.tone-pill-active) {
  background: var(--brand-xlight);
  color: var(--brand);
  border-color: rgba(0, 119, 181, 0.3);
}

.tone-pill-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ── Usage meter ────────────────────────────────────────── */
.usage-section {
  margin-bottom: 1.25rem;
  padding: 0.85rem;
  background: var(--bg-raised);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.usage-label {
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 500;
}

.usage-count {
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.usage-count.usage-limit { color: var(--error); }

.usage-track {
  height: 5px;
  background: var(--border-md);
  border-radius: var(--r-full);
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: var(--brand);
  border-radius: var(--r-full);
  transition: width 0.4s var(--ease-out);
}

.usage-fill.usage-fill-limit { background: var(--error); }

/* ── Alert ──────────────────────────────────────────────── */
.alert-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--error-bg);
  color: #b91c1c;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.83rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.alert-dismiss {
  margin-left: auto;
  background: none;
  border: none;
  color: #b91c1c;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--fast);
}

.alert-dismiss:hover { opacity: 1; }

.limit-reached {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: var(--warning-bg);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--r-sm);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.83rem;
  color: #92400e;
  margin-bottom: 0.85rem;
}

/* ── Tips card ──────────────────────────────────────────── */
.tips-card {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
}

.tips-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 0.6rem;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tips-list li {
  display: flex;
  gap: 0.4rem;
  line-height: 1.45;
}

.tips-list li::before {
  content: "›";
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Results header ─────────────────────────────────────── */
.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.results-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 0.15rem;
  letter-spacing: -0.2px;
}

.results-meta {
  font-size: 0.78rem;
  color: var(--text-3);
  margin: 0;
}

/* ── Post cards ─────────────────────────────────────────── */
.post-card {
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
}

.post-reveal {
  animation: postIn 0.4s var(--ease-out) both;
}

@keyframes postIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fake LinkedIn profile header */
.li-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.li-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8d6e5 0%, #a0b8cc 100%);
  flex-shrink: 0;
}

.li-profile-info { display: flex; flex-direction: column; gap: 5px; }

.li-name-bar {
  height: 11px;
  width: 110px;
  background: #d8dde3;
  border-radius: var(--r-full);
}

.li-headline-bar {
  height: 9px;
  width: 75px;
  background: #e8ecf0;
  border-radius: var(--r-full);
}

/* Post body */
.post-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-1);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Post footer */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--border);
  gap: 0.75rem;
}

.post-footer-left { display: flex; align-items: center; gap: 0.5rem; }
.post-footer-right { display: flex; align-items: center; gap: 0.5rem; }

.char-count {
  font-size: 0.72rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.char-over { color: var(--error) !important; font-weight: 500; }

/* ── Skeleton loading ───────────────────────────────────── */
.skeleton-fade { opacity: 0.6; }

.skeleton {
  background: linear-gradient(90deg, #e9ecef 25%, #f3f5f7 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.post-skeleton {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.skeleton-avatar  { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.skeleton-line-lg { height: 12px; width: 100%; }
.skeleton-line-md { height: 12px; width: 80%; }
.skeleton-line-sm { height: 12px; width: 55%; }

.skeleton-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

/* ── Empty state ────────────────────────────────────────── */
.results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  text-align: center;
  padding: 2rem;
  color: var(--text-3);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  filter: grayscale(0.2);
}

.results-empty h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-2);
  margin: 0 0 0.4rem;
}

.results-empty p {
  font-size: 0.875rem;
  color: var(--text-3);
  margin: 0;
  max-width: 320px;
  line-height: 1.6;
}

/* ── Toast ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-lg);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s var(--ease-out) both, toastOut 0.3s var(--ease) 2.7s both;
  pointer-events: auto;
}

.toast-success {
  background: var(--text-1);
  color: #fff;
}

.toast-error {
  background: var(--error);
  color: #fff;
}

.toast-icon {
  font-size: 0.9rem;
  font-weight: 700;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(8px) scale(0.95); }
}

/* ── Pricing section ────────────────────────────────────── */
.pricing-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem 4.5rem;
}

.pricing-section .section-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.pricing-section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-1);
  margin: 0 0 0.5rem;
}

.pricing-section .section-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 0.95rem;
  margin: 0 0 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
}

.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--normal) var(--ease), box-shadow var(--normal) var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card-inner {
  padding: 1.75rem 1.5rem;
}

.pricing-featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow);
}

.pricing-badge {
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  padding: 0.3rem;
}

.plan-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-1);
  margin: 0 0 0.35rem;
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-features li {
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-features li.feat-off { color: var(--text-3); }

/* ── Footer ─────────────────────────────────────────────── */
.app-footer {
  background: #090e1a;
  color: rgba(255,255,255,0.55);
  padding: 4rem 1.25rem 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-brand .brand-badge {
  background: var(--brand);
  color: #fff;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin: 0 0 1.5rem;
  max-width: 270px;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}

.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.footer-social-btn:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.footer-col-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0 0 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: #fff; }

.footer-link-accent { color: rgba(99,102,241,0.85) !important; }
.footer-link-accent:hover { color: #818cf8 !important; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0 1.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; text-align: center; }
  .footer-legal { justify-content: center; }
}

/* ── Legal pages (Privacy / Terms) ─────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
}

.legal-card {
  padding: 2.5rem 2.75rem;
}

.legal-section {
  margin-bottom: 2.25rem;
}

.legal-section:last-child { margin-bottom: 0; }

.legal-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-section p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 0.6rem;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  margin: 0 0 0.6rem 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-section ul li {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

.legal-section a {
  color: var(--brand);
  text-decoration: none;
}

.legal-section a:hover { text-decoration: underline; }

.legal-section code {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.82rem;
  color: var(--text-1);
}

@media (max-width: 600px) {
  .legal-card { padding: 1.5rem 1.25rem; }
}

/* ── Blazor error boundary ──────────────────────────────── */
#blazor-error-ui {
  background: var(--warning-bg);
  border-top: 1px solid rgba(245,158,11,0.4);
  color: #92400e;
  display: none;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  text-align: center;
}

#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
  cursor: pointer;
  margin-left: 0.5rem;
  color: var(--brand);
  font-weight: 600;
}

.blazor-error-boundary {
  padding: 1rem 1rem 1rem 3rem;
  background: var(--error-bg);
  color: #b91c1c;
  border-radius: var(--r);
}

.blazor-error-boundary::after { content: "An error has occurred." }

/* ── Form validation ────────────────────────────────────── */
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--success); }
.invalid                             { outline: 1px solid var(--error); }
.validation-message                  { color: var(--error); font-size: 0.82rem; }

/* ═══════════════════════════════════════════════════════════
   Auth pages — Login & Register
   ═══════════════════════════════════════════════════════════ */

.auth-page {
  min-height: calc(100vh - var(--nav-h) - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: var(--bg-page);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 1.5rem;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.auth-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-1);
  margin: 0 0 0.3rem;
}

.auth-sub {
  font-size: 0.875rem;
  color: var(--text-2);
  margin: 0;
}

.auth-demo-notice {
  background: var(--brand-xlight);
  border: 1px solid rgba(0, 119, 181, 0.2);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  color: var(--brand-hover);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-submit {
  margin-top: 0.5rem;
}

.field-input {
  width: 100%;
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-1);
  padding: 0.6rem 0.85rem;
  background: var(--bg-card);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.field-input::placeholder { color: var(--text-3); }

.field-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.12);
}

.field-invalid {
  border-color: var(--error) !important;
}

.field-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.field-label-hint {
  color: var(--text-3);
  font-weight: 400;
  font-size: 0.8rem;
}

.field-label-link {
  color: var(--brand);
  font-weight: 400;
  font-size: 0.8rem;
  text-decoration: none;
}

.field-label-link:hover { text-decoration: underline; }

.mx-auth { margin-bottom: 1rem; }

.auth-footer-text {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-3);
  margin: 1.25rem 0 0;
}

.auth-footer-link {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}

.auth-footer-link:hover { text-decoration: underline; }

.auth-terms {
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   Nav — auth state
   ═══════════════════════════════════════════════════════════ */

.plan-badge-nav {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
  letter-spacing: 0.2px;
}

.plan-badge-free   { background: var(--bg-raised); color: var(--text-2); border: 1px solid var(--border-md); }
.plan-badge-pro    { background: var(--brand-light); color: var(--brand-hover); border: 1px solid rgba(0,119,181,0.25); }
.plan-badge-agency { background: #f3e8ff; color: #7c3aed; border: 1px solid rgba(124,58,237,0.25); }

.nav-user-wrap { position: relative; }

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-full);
  padding: 0.3rem 0.7rem 0.3rem 0.35rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-1);
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.nav-user-btn:hover { background: var(--bg-raised); border-color: var(--brand); }

.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-chevron { font-size: 0.65rem; color: var(--text-3); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 210px;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 300;
  animation: dropIn 0.15s var(--ease-out) both;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-1);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--fast) var(--ease);
}

.nav-dropdown-item:hover { background: var(--bg-raised); }

.nav-dropdown-upgrade { color: var(--brand); }
.nav-dropdown-upgrade:hover { background: var(--brand-xlight); }

.nav-dropdown-divider { height: 1px; background: var(--border); margin: 0.25rem 0; }

.nav-dropdown-logout { color: var(--error); }
.nav-dropdown-logout:hover { background: var(--error-bg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
}

/* ═══════════════════════════════════════════════════════════
   Checkout page
   ═══════════════════════════════════════════════════════════ */

.checkout-page { padding-bottom: 4rem; }

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-3);
  padding: 1.25rem 0 0;
}

.breadcrumb-nav a { color: var(--text-2); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--brand); }

.checkout-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.75rem;
  margin-top: 1.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

/* Order summary */
.checkout-summary {
  padding: 1.75rem;
}

.checkout-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.checkout-plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
}

.checkout-plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}

.checkout-plan-cycle {
  font-size: 0.78rem;
  color: var(--text-3);
  margin: 0 0 1rem;
}

.checkout-divider { height: 1px; background: var(--border); margin: 1rem 0; }

.checkout-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.checkout-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.feat-check { color: var(--success); font-weight: 700; }

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
}

.checkout-trial-note {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
}

/* Payment form */
.checkout-form-card { padding: 1.75rem; }

.checkout-form-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 1rem;
}

.checkout-demo-notice {
  background: var(--brand-xlight);
  border: 1px solid rgba(0, 119, 181, 0.2);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  color: var(--brand-hover);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.checkout-demo-notice code {
  background: rgba(0,119,181,0.1);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.78rem;
}

.checkout-row {
  display: flex;
  gap: 0.75rem;
}

.flex-1 { flex: 1; }

.card-number-wrapper {
  position: relative;
}

.card-number-wrapper .field-input {
  padding-right: 2.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.card-brand-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}

.checkout-pay-btn { margin-top: 0.5rem; font-size: 0.95rem; }

.checkout-secure-note {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
  line-height: 1.6;
}

/* Success state */
.checkout-success {
  max-width: 480px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 2px solid rgba(16,185,129,0.3);
}

.checkout-success h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 0.5rem;
}

.checkout-success p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   Account page
   ═══════════════════════════════════════════════════════════ */

.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-1);
  margin: 0 0 1.5rem;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-info { flex: 1; min-width: 0; }

.account-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.15rem;
}

.account-email {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 0.15rem;
}

.account-joined { font-size: 0.75rem; color: var(--text-3); }

/* Plan badge (account page) */
.plan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.account-section {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.account-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.1px;
  margin: 0 0 1.1rem;
}

.account-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.account-plan-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.2rem;
}

.account-plan-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.45;
}

.unlimited-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-xlight);
  border: 1px solid rgba(0,119,181,0.2);
  color: var(--brand-hover);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
}

.upgrade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .upgrade-grid { grid-template-columns: 1fr; }
}

.upgrade-option {
  border: 1.5px solid var(--border-md);
  border-radius: var(--r);
  padding: 1.25rem;
}

.upgrade-option-featured {
  border-color: var(--brand);
}

.upgrade-option-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.75rem;
}

.upgrade-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.account-danger-zone { border-color: var(--border); }

/* Misc utility */
.section-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.section-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 0.95rem;
  margin: 0 0 3rem;
}

/* ═══════════════════════════════════════════════════════════
   Account page — redesign
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.acct-page-hero {
  text-align: left !important;
  padding-top: 3rem !important;
  padding-bottom: 2.75rem !important;
}

.acct-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0;
  padding-bottom: 0;
}

.acct-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #6366f1);
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0,119,181,0.25);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acct-hero-info { flex: 1; min-width: 0; }

.acct-hero-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 0.2rem;
  color: var(--text-1);
}

.acct-hero-email {
  font-size: 0.875rem;
  color: var(--text-2);
  margin: 0 0 0.6rem;
}

.acct-plan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
  letter-spacing: 0.3px;
}

.acct-hero-meta {
  flex-shrink: 0;
  text-align: right;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.85rem 1.25rem;
}

.acct-meta-item { display: flex; flex-direction: column; gap: 0.15rem; }

.acct-meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
}

.acct-meta-label {
  font-size: 0.7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .acct-hero-inner { flex-wrap: wrap; }
  .acct-hero-meta  { display: none; }
}

/* Body */
.acct-body {
  max-width: 800px;
  padding: 0;
}

/* Welcome card */
.acct-welcome {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--success);
  background: linear-gradient(to right, var(--success-bg), var(--bg-card));
}

.acct-welcome-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.acct-welcome-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 0.35rem;
  letter-spacing: -0.2px;
}

.acct-welcome-text {
  font-size: 0.875rem;
  color: var(--text-2);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.acct-welcome-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Stats row */
.acct-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 560px) {
  .acct-stats { grid-template-columns: 1fr 1fr; }
  .acct-stats .acct-stat-card:last-child { grid-column: span 2; }
}

.acct-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1rem 1rem;
  text-align: center;
  transition: box-shadow var(--normal) var(--ease);
}

.acct-stat-card:hover { box-shadow: var(--shadow); }

.acct-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.8px;
  line-height: 1;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.acct-stat-number.acct-stat-error { color: var(--error); }

.acct-stat-number.acct-stat-plan {
  font-size: 1.3rem;
  letter-spacing: -0.3px;
}

.acct-stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
  line-height: 1.4;
}

/* Section */
.acct-section {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.acct-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.acct-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.15px;
  margin: 0;
}

.acct-upgrade-btn {
  padding: 0.4rem 0.95rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Plan info */
.acct-plan-info { margin-bottom: 1.1rem; }

.acct-plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.2rem;
}

.acct-sparkle { color: var(--brand); margin-left: 0.2rem; }

.acct-plan-desc {
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* Usage */
.acct-usage-wrap {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
}

.acct-usage-msg {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.45;
}

.acct-usage-limit { color: var(--error); }

/* Upgrade cards */
.acct-upgrade-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
  margin-bottom: 0.1rem;
}

.acct-upgrade-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0;
}

.acct-upgrade-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* Session row */
.acct-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.acct-session-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.15rem;
}

.acct-session-sub {
  font-size: 0.8rem;
  color: var(--text-2);
}

/* ── Account page extras ───────────────────────────────── */

/* Loading state */
.acct-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.acct-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-md);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* Inline alerts */
.acct-inline-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  margin-bottom: 1rem;
}

.acct-inline-success {
  background: var(--success-bg);
  color: #065f46;
  border: 1px solid rgba(16,185,129,0.3);
}

.acct-inline-error {
  background: var(--error-bg);
  color: #b91c1c;
  border: 1px solid rgba(239,68,68,0.25);
}

/* Profile fields */
.acct-profile-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.acct-field-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.acct-field-row:last-child { border-bottom: none; }

.acct-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  min-width: 100px;
  flex-shrink: 0;
}

.acct-field-value {
  font-size: 0.875rem;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.acct-field-locked { color: var(--text-2); }

.acct-lock-icon { font-size: 0.7rem; opacity: 0.6; }

.acct-field-input {
  flex: 1;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
}

/* Edit button */
.acct-edit-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  gap: 0.3rem;
}

/* Form actions row */
.acct-form-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Password form */
.acct-pw-form { display: flex; flex-direction: column; gap: 0.25rem; }

.acct-pw-row {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 540px) {
  .acct-pw-row { flex-direction: column; gap: 0; }
}

/* Danger button */
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--error-bg);
  color: #b91c1c;
  border: 1.5px solid rgba(239,68,68,0.35);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
  white-space: nowrap;
}

.btn-danger:hover {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

/* Danger zone card */
.acct-danger-zone {
  border-color: rgba(239,68,68,0.2);
}

.acct-danger-zone .acct-session-title {
  color: var(--error);
}

/* ── Email verification banner ─────────────────────────── */
.acct-verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fffbeb;
  border: 1px solid rgba(245,158,11,0.4);
  border-left: 4px solid var(--warning);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.acct-verify-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.acct-verify-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.acct-verify-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.15rem;
}

.acct-verify-sub {
  font-size: 0.8rem;
  color: #a16207;
  line-height: 1.45;
}

.acct-verify-btn {
  flex-shrink: 0;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-color: rgba(245,158,11,0.5);
  color: #92400e;
}

.acct-verify-btn:hover:not(:disabled) {
  background: rgba(245,158,11,0.1);
  border-color: var(--warning);
}

/* ── Inline email verification status ─────────────────── */
.acct-email-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--r-full);
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}

.badge-unverified {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--r-full);
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}

.btn-verify-email {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-light);
  border: 1px solid rgba(0,119,181,0.25);
  border-radius: var(--r-full);
  padding: 0.2rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-verify-email:hover:not(:disabled) {
  background: rgba(0,119,181,0.12);
  border-color: var(--brand);
}

.btn-verify-email:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Forgot / Reset password pages ────────────────────── */

/* "Email sent" confirmation box */
.email-sent-box {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.email-sent-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-xlight);
  border: 2px solid rgba(0,119,181,0.25);
  color: var(--brand);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
}

.email-sent-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.3px;
  margin: 0 0 0.5rem;
}

.email-sent-text {
  font-size: 0.875rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}

/* Reset password result boxes */
.rp-state-box {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.rp-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  background: var(--error-bg);
  border: 2px solid rgba(239,68,68,0.3);
  color: var(--error);
}

.rp-success-icon {
  background: var(--success-bg);
  border-color: rgba(16,185,129,0.3);
  color: var(--success);
}

.rp-state-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.3px;
  margin: 0 0 0.5rem;
}

.rp-state-text {
  font-size: 0.875rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   Voice / Style Import
   ═══════════════════════════════════════════════════════════ */

.voice-import-group { margin-bottom: 1.1rem; }

.voice-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--brand-xlight);
  border: 1.5px solid rgba(0,119,181,0.2);
  border-radius: var(--r-sm);
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-hover);
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.voice-toggle:hover {
  background: rgba(0,119,181,0.1);
  border-color: rgba(0,119,181,0.35);
}

.voice-toggle-chevron {
  font-size: 0.7rem;
  transition: transform var(--fast) var(--ease);
  color: var(--brand);
}

.voice-toggle-chevron.open { transform: rotate(180deg); }

.voice-import-body {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.voice-import-hint {
  font-size: 0.78rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}

.voice-import-ta { font-size: 0.82rem; min-height: 90px; }

.voice-import-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--success-bg);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #065f46;
}

.voice-clear {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: #065f46;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════
   Post formatting toolbar + editable textarea
   ═══════════════════════════════════════════════════════════ */

.fmt-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 0.6rem;
  padding: 0.3rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  flex-wrap: wrap;
}

.fmt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  padding: 0 0.4rem;
  background: transparent;
  border: none;
  border-radius: var(--r-xs);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
  white-space: nowrap;
}

.fmt-btn:hover {
  background: var(--brand-xlight);
  color: var(--brand);
}

.fmt-emoji { font-size: 1rem; font-weight: 400; }

.fmt-divider {
  width: 1px;
  height: 18px;
  background: var(--border-md);
  margin: 0 2px;
  flex-shrink: 0;
}

.fmt-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0 0.3rem;
  flex-shrink: 0;
}

.post-body-ta {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-1);
  padding: 0.6rem 0.75rem;
  resize: vertical;
  min-height: 140px;
  background: var(--bg-card);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.post-body-ta:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,119,181,0.1);
}

/* ═══════════════════════════════════════════════════════════
   Inspiration Library
   ═══════════════════════════════════════════════════════════ */

.inspiration-panel {
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.inspiration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--fast) var(--ease);
}

.inspiration-header:hover { background: var(--bg-raised); }

.inspiration-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  display: block;
}

.inspiration-sub {
  font-size: 0.78rem;
  color: var(--text-3);
  display: block;
  margin-top: 0.1rem;
}

.inspiration-chevron {
  font-size: 0.75rem;
  color: var(--text-3);
  transition: transform var(--fast) var(--ease);
  flex-shrink: 0;
}

.inspiration-chevron.open { transform: rotate(180deg); }

.inspiration-body {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem 1.25rem;
}

.inspiration-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.inspiration-filter {
  background: var(--bg-raised);
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.inspiration-filter:hover:not(.active) {
  background: var(--brand-xlight);
  color: var(--brand);
  border-color: rgba(0,119,181,0.3);
}

.inspiration-filter.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.inspiration-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.inspiration-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all var(--fast) var(--ease);
}

.inspiration-item:hover {
  background: var(--brand-xlight);
  border-color: rgba(0,119,181,0.3);
}

.inspiration-hook-text {
  font-size: 0.83rem;
  color: var(--text-1);
  line-height: 1.45;
  flex: 1;
}

.inspiration-use {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}

.inspiration-item:hover .inspiration-use { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   Pricing toggle (annual / monthly)
   ═══════════════════════════════════════════════════════════ */

.pricing-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.pricing-toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-3);
  transition: color var(--fast) var(--ease);
}

.pricing-toggle-label.active { color: var(--text-1); font-weight: 600; }

.pricing-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border-md);
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--fast) var(--ease);
  padding: 0;
  flex-shrink: 0;
}

.pricing-toggle.pricing-toggle-on { background: var(--brand); }

.pricing-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform var(--fast) var(--ease);
}

.pricing-toggle-on .pricing-toggle-knob { transform: translateX(20px); }

.pricing-save-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--r-full);
  vertical-align: middle;
  margin-left: 0.3rem;
  letter-spacing: 0.2px;
}

.pricing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--text-3);
  flex-wrap: wrap;
}

.pricing-trust-sep { color: var(--border-md); }

/* ═══════════════════════════════════════════════════════════
   Hook Score badge + panel
   ═══════════════════════════════════════════════════════════ */

.hook-score-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
}

.hook-score-btn:hover:not(:disabled) {
  background: var(--brand-xlight);
  color: var(--brand);
  border-color: rgba(0,119,181,0.3);
}

.hook-score-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.hook-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  border: none;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.hook-score-badge:hover { opacity: 0.85; transform: translateY(-1px); }

.hook-green { background: #dcfce7; color: #166534; }
.hook-amber { background: #fef9c3; color: #854d0e; }
.hook-red   { background: #fee2e2; color: #991b1b; }

.hook-score-panel {
  margin-top: 0.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  animation: postIn 0.2s var(--ease-out) both;
}

.hook-reason {
  font-size: 0.8rem;
  color: var(--text-2);
  margin: 0 0 0.7rem;
  line-height: 1.5;
}

.hook-suggestions-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.45rem;
}

.hook-suggestion {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.35rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.hook-suggestion:hover {
  border-color: var(--brand);
  background: var(--brand-xlight);
}

.hook-suggestion-text {
  font-size: 0.82rem;
  color: var(--text-1);
  line-height: 1.45;
  flex: 1;
}

.hook-suggestion-use {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}

.hook-suggestion:hover .hook-suggestion-use { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   Schedule picker (inline on post cards)
   ═══════════════════════════════════════════════════════════ */

.schedule-picker {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  animation: postIn 0.2s var(--ease-out) both;
}

.schedule-picker-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.55rem;
}

.schedule-picker-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.schedule-date-input,
.schedule-time-input {
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-1);
  padding: 0.45rem 0.7rem;
  background: var(--bg-card);
  transition: border-color var(--fast) var(--ease);
}

.schedule-date-input { flex: 1; min-width: 130px; }
.schedule-time-input { width: 110px; }

.schedule-date-input:focus,
.schedule-time-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,119,181,0.1);
}

.schedule-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.55rem;
}

.btn-schedule {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--brand);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--fast) var(--ease);
}

.btn-schedule:hover:not(:disabled) { background: var(--brand-hover); }
.btn-schedule:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-cancel-schedule {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--text-3);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

.btn-cancel-schedule:hover { color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════
   Queue page
   ═══════════════════════════════════════════════════════════ */

.queue-body {
  max-width: 820px;
  margin: 0 auto;
}

.queue-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 540px) {
  .queue-stats { grid-template-columns: 1fr 1fr; }
}

.queue-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  text-align: center;
}

.queue-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.queue-stat-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.queue-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.queue-ready-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.2); }
}

.queue-post-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: box-shadow var(--normal) var(--ease);
}

.queue-post-card:hover { box-shadow: var(--shadow); }

.queue-post-card.is-ready {
  border-color: var(--success);
  box-shadow: 0 0 0 1px rgba(16,185,129,0.2), var(--shadow-sm);
}

.queue-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.queue-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.queue-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--success-bg);
  color: #065f46;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--r-full);
  padding: 0.2rem 0.6rem;
}

.queue-scheduled-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}

.queue-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.queue-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 0.15rem 0.5rem;
}

.queue-post-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-shrink: 0;
}

.queue-post-body {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-1);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 160px;
  overflow: hidden;
  position: relative;
}

.queue-post-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--bg-card));
}

.queue-post-card.is-ready .queue-post-body::after {
  background: linear-gradient(transparent, #fff);
}

.queue-post-copy-row {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-queue-copy {
  flex: 1;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

.btn-queue-dismiss {
  background: none;
  border: none;
  font-size: 0.78rem;
  color: var(--text-3);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  transition: color var(--fast) var(--ease);
  white-space: nowrap;
}

.btn-queue-dismiss:hover { color: var(--text-1); }

.queue-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-3);
}

.queue-empty-icon { font-size: 3rem; margin-bottom: 1rem; }

.queue-empty h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-2);
  margin: 0 0 0.4rem;
}

.queue-empty p {
  font-size: 0.875rem;
  color: var(--text-3);
  max-width: 320px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Queue count badge in navbar */
.nav-queue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--error);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--r-full);
  padding: 0 4px;
  margin-left: 2px;
  vertical-align: middle;
  line-height: 1;
}

/* ── Verify email page ──────────────────────────────────── */
.ve-state-box {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.ve-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-md);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 1rem;
}

.ve-loading-text {
  color: var(--text-2);
  font-size: 0.9rem;
}

.ve-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: var(--error-bg);
  border: 2px solid rgba(239,68,68,0.3);
  color: var(--error);
}

.ve-icon-success {
  background: var(--success-bg);
  border-color: rgba(16,185,129,0.3);
  color: var(--success);
}

.ve-icon-error {
  background: var(--error-bg);
  border-color: rgba(239,68,68,0.3);
  color: var(--error);
}

/* ═══════════════════════════════════════════════════════════
   Content Board — Kanban
   ═══════════════════════════════════════════════════════════ */

.board-page {
  max-width: 1260px;
  margin: 0 auto;
}

/* Grid */
.kanban-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 860px) {
  .kanban-grid { grid-template-columns: 1fr; }
}

/* Column */
.kanban-col {
  background: var(--bg-raised);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.kanban-col-draft     { border-top: 3px solid #94a3b8; }
.kanban-col-scheduled { border-top: 3px solid var(--brand); }
.kanban-col-published { border-top: 3px solid var(--success); }

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
}
.kanban-col-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.kanban-col-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.dot-draft     { background: #94a3b8; }
.dot-scheduled { background: var(--brand); }
.dot-published { background: var(--success); }
.kanban-col-title { font-weight: 700; font-size: 0.9rem; color: var(--text-1); }
.kanban-col-count {
  font-size: 0.75rem; font-weight: 600;
  background: var(--border);
  color: var(--text-2);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
}

.kanban-col-body {
  padding: 0 0.75rem 0.75rem;
  min-height: 280px;
}

/* Card */
.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  margin-bottom: 0.65rem;
  cursor: grab;
  transition: box-shadow 0.15s, transform 0.1s;
}
.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.kanban-card:active { cursor: grabbing; }
.kanban-card-ready {
  border-left: 3px solid var(--success);
}

.kanban-card-time {
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
}
.kanban-ready-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--success); font-weight: 600; font-size: 0.78rem;
}
.kanban-ready-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  animation: pulse 1.5s infinite;
}

.kanban-card-preview {
  font-size: 0.825rem;
  line-height: 1.55;
  color: var(--text-1);
  margin: 0 0 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kanban-card-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.kanban-tag {
  font-size: 0.7rem; font-weight: 500;
  background: var(--brand-light);
  color: var(--brand);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.kanban-date { font-size: 0.7rem; color: var(--text-3); margin-left: auto; }

/* Card actions */
.kanban-card-actions {
  display: flex; gap: 0.35rem; flex-wrap: wrap;
  margin-top: 0.6rem;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}
.kanban-btn {
  font-size: 0.75rem; font-weight: 500;
  background: var(--bg-raised); color: var(--text-2);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 0.3rem 0.6rem; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.kanban-btn:hover { background: var(--brand-light); color: var(--brand); border-color: var(--brand); }
.kanban-btn-del:hover { background: #fee2e2; color: var(--error); border-color: rgba(239,68,68,0.3); }

/* Published stats */
.kanban-published-date {
  font-size: 0.75rem; font-weight: 500;
  color: var(--success); margin-bottom: 0.5rem;
}
.kanban-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.4rem; margin-bottom: 0.5rem;
}
.kanban-stat {
  background: var(--bg-raised); border-radius: 6px;
  padding: 0.35rem 0.5rem; text-align: center;
}
.kanban-stat-val { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-1); }
.kanban-stat-lbl { display: block; font-size: 0.65rem; color: var(--text-3); margin-top: 0.1rem; }
.kanban-engagement {
  font-size: 0.75rem; font-weight: 600;
  border-radius: 6px; padding: 0.25rem 0.5rem;
  text-align: center; margin-bottom: 0.35rem;
}
.eng-excellent { background: #dcfce7; color: #15803d; }
.eng-good      { background: var(--brand-light); color: var(--brand); }
.eng-low       { background: var(--bg-raised); color: var(--text-3); }

/* Analytics form */
.kanban-analytics-form {
  background: var(--bg-raised); border-radius: 8px;
  padding: 0.75rem; margin-bottom: 0.5rem;
}
.kanban-analytics-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.6rem;
}
.kanban-analytics-field label {
  display: block; font-size: 0.7rem; color: var(--text-2); margin-bottom: 0.2rem;
}
.kanban-analytics-field input {
  width: 100%; padding: 0.3rem 0.5rem; font-size: 0.8rem;
  border: 1px solid var(--border); border-radius: 5px;
  background: var(--bg-card); color: var(--text-1);
}

/* Inline schedule form */
.kanban-schedule-form {
  background: var(--bg-raised); border-radius: 8px;
  padding: 0.75rem; margin-bottom: 0.5rem;
}
.kanban-schedule-row {
  display: flex; gap: 0.4rem; margin-bottom: 0.6rem;
}
.kanban-schedule-actions { display: flex; gap: 0.4rem; }

/* Empty state */
.kanban-empty {
  text-align: center; padding: 2rem 1rem;
  color: var(--text-3); font-size: 0.82rem; line-height: 1.7;
}
.kanban-empty a { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════
   Carousel Builder
   ═══════════════════════════════════════════════════════════ */

.carousel-page {
  max-width: 820px;
  margin: 0 auto;
}

/* Form */
.carousel-form { padding: 1.75rem; }
.carousel-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.carousel-field-full { grid-column: 1 / -1; }

.carousel-slide-count { margin-bottom: 1.5rem; }
.slide-count-pills { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.slide-count-pill {
  width: 46px; height: 38px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--bg-card); color: var(--text-2);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.slide-count-pill.active {
  border-color: var(--brand); background: var(--brand-light); color: var(--brand);
}
.carousel-generate-btn {
  width: 100%; padding: 0.75rem; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}

/* Toolbar */
.carousel-viewer { display: flex; flex-direction: column; align-items: center; }
.carousel-toolbar {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.carousel-toolbar-left { display: flex; align-items: center; gap: 0.75rem; }
.carousel-toolbar-right { display: flex; align-items: center; gap: 0.5rem; }
.carousel-doc-title {
  font-weight: 700; font-size: 0.95rem; color: var(--text-1);
  max-width: 280px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.carousel-counter {
  font-size: 0.8rem; color: var(--text-3); font-weight: 500;
  white-space: nowrap;
}
.btn-sm {
  font-size: 0.8rem !important; padding: 0.4rem 0.85rem !important;
  border-radius: 8px !important;
}

/* Slide stage */
.slide-stage {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; width: 100%; margin-bottom: 1rem;
}
.slide-nav-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); border: 1.5px solid var(--border);
  font-size: 1.4rem; color: var(--text-2); cursor: pointer;
  flex-shrink: 0; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.slide-nav-btn:hover:not(:disabled) { background: var(--brand-light); color: var(--brand); border-color: var(--brand); }
.slide-nav-btn:disabled { opacity: 0.3; cursor: default; }

/* Slide card */
.slide-card {
  width: 100%; max-width: 420px;
  aspect-ratio: 1;
  border-radius: 16px;
  padding: 1.75rem;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
}
.slide-hook {
  background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
  color: #fff;
}
.slide-content { background: #fff; }
.slide-cta {
  background: #f0f9ff;
  border: 2px solid var(--brand);
}

.slide-top-bar {
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.slide-num-badge {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.slide-hook .slide-num-badge { background: rgba(255,255,255,0.25); color: #fff; }
.slide-content .slide-num-badge, .slide-cta .slide-num-badge { background: var(--brand-light); color: var(--brand); }
.slide-of-label { font-size: 0.75rem; opacity: 0.6; }

.slide-headline {
  font-size: 1.3rem; font-weight: 800; line-height: 1.25;
  margin-bottom: 0.75rem; flex-shrink: 0;
}
.slide-hook .slide-headline { color: #fff; }
.slide-content .slide-headline { color: var(--text-1); }
.slide-cta .slide-headline { color: var(--brand); }

.slide-body { flex: 1; overflow: hidden; }
.slide-body p { font-size: 0.9rem; line-height: 1.55; margin: 0 0 0.35rem; }
.slide-hook .slide-body p { color: rgba(255,255,255,0.9); }
.slide-content .slide-body p, .slide-cta .slide-body p { color: var(--text-2); }

.slide-content-wrapper { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

.slide-edit-btn {
  font-size: 0.72rem; color: var(--text-3);
  background: transparent; border: none; cursor: pointer;
  text-align: left; padding: 0.25rem 0;
  margin-top: auto;
}
.slide-hook .slide-edit-btn { color: rgba(255,255,255,0.6); }

.slide-footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 0.6rem; margin-top: 0.6rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.slide-hook .slide-footer { border-color: rgba(255,255,255,0.2); }
.slide-brand { font-size: 0.7rem; font-weight: 600; opacity: 0.5; }
.slide-cta-text { font-size: 0.72rem; color: var(--text-3); max-width: 65%; text-align: right; }
.slide-hook .slide-brand, .slide-hook .slide-cta-text { color: rgba(255,255,255,0.6); }

/* Edit mode */
.slide-edit-mode {
  flex: 1; display: flex; flex-direction: column; gap: 0.5rem;
}
.slide-edit-headline {
  font-size: 1.1rem; font-weight: 700;
  border: 1.5px solid rgba(0,0,0,0.15); border-radius: 6px;
  padding: 0.4rem 0.6rem; background: rgba(255,255,255,0.9);
  color: var(--text-1);
}
.slide-edit-body {
  flex: 1; resize: none;
  border: 1.5px solid rgba(0,0,0,0.15); border-radius: 6px;
  padding: 0.4rem 0.6rem; font-size: 0.85rem;
  background: rgba(255,255,255,0.9); color: var(--text-1);
  font-family: inherit; line-height: 1.5;
}
.slide-done-btn {
  font-size: 0.78rem; font-weight: 600;
  background: var(--brand); color: #fff;
  border: none; border-radius: 6px; padding: 0.35rem 0.75rem;
  cursor: pointer; align-self: flex-start;
}

/* Dots */
.slide-dots {
  display: flex; gap: 0.4rem; justify-content: center;
  margin-bottom: 1.25rem;
}
.slide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e2e8f0; border: none; cursor: pointer;
  padding: 0; transition: background 0.2s, transform 0.2s;
}
.slide-dot.active { background: var(--brand); transform: scale(1.3); }

/* CTA bar */
.carousel-cta-bar {
  background: var(--brand-light); border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: var(--brand); font-weight: 500;
  max-width: 500px; width: 100%;
}
.carousel-cta-icon { font-size: 1rem; }

/* Print-only slides (hidden on screen, shown when printing) */
.print-slides { display: none; }

/* ── Print styles ── */
@media print {
  .no-print  { display: none !important; }
  .print-slides { display: block !important; }

  .slide-card {
    break-after: page;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    page-break-after: always;
    margin: 0;
  }
  .slide-card:last-child { break-after: avoid; page-break-after: avoid; }

  nav, footer, .app-footer, #blazor-error-ui { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   Hero — differentiator chips
   ═══════════════════════════════════════════════════════════ */

.hero-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin-top: 1.25rem;
}
.hero-chip {
  font-size: 0.78rem; font-weight: 600;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; padding: 0.3rem 0.75rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Activate btn-icon when panel is open */
.btn-icon-active {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
  border-color: var(--brand) !important;
}

/* ═══════════════════════════════════════════════════════════
   A/B Variant Panel
   ═══════════════════════════════════════════════════════════ */

.ab-panel {
  border: 1.5px solid var(--border-md);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-raised);
}
.ab-panel-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.85rem;
}
.ab-panel-title {
  font-size: 0.8rem; font-weight: 600; color: var(--text-2); line-height: 1.4;
}
.ab-panel-close {
  background: transparent; border: none; cursor: pointer;
  color: var(--text-3); font-size: 1.1rem; line-height: 1;
  flex-shrink: 0; padding: 0;
}
.ab-panel-close:hover { color: var(--text-1); }

.ab-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
@media (max-width: 540px) { .ab-grid { grid-template-columns: 1fr; } }

.ab-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.85rem;
}
.ab-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 0.5rem;
  padding: 0.15rem 0.45rem; border-radius: 4px;
  display: inline-block;
}
.ab-label-a { background: #dbeafe; color: #1d4ed8; }
.ab-label-b { background: #fce7f3; color: #9d174d; }

.ab-hook {
  font-size: 0.825rem; line-height: 1.55; color: var(--text-1);
  margin: 0 0 0.65rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ab-actions { display: flex; gap: 0.4rem; }
.ab-use-btn {
  font-size: 0.75rem; font-weight: 600;
  background: var(--brand); color: #fff;
  border: none; border-radius: 6px; padding: 0.3rem 0.65rem; cursor: pointer;
  transition: background 0.15s;
}
.ab-use-btn:hover { background: var(--brand-hover); }
.ab-copy-btn {
  font-size: 0.75rem; font-weight: 500;
  background: var(--bg-raised); color: var(--text-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 0.3rem 0.65rem; cursor: pointer;
  transition: all 0.15s;
}
.ab-copy-btn:hover { background: var(--brand-light); color: var(--brand); }

/* ═══════════════════════════════════════════════════════════
   Pricing — competitor comparison bar
   ═══════════════════════════════════════════════════════════ */

.pricing-vs-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
  margin: 1.75rem 0 2.5rem;
}
@media (max-width: 768px) { .pricing-vs-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pricing-vs-bar { grid-template-columns: 1fr; } }

.pricing-vs-item {
  border-radius: 10px; padding: 0.9rem;
  border: 1.5px solid transparent;
}
.pricing-vs-bad  { background: #fafafa; border-color: var(--border); }
.pricing-vs-good { background: var(--brand-light); border-color: var(--brand); }

.pricing-vs-tool {
  display: block; font-size: 0.82rem; font-weight: 700;
  margin-bottom: 0.3rem; color: var(--text-1);
}
.pricing-vs-good .pricing-vs-tool { color: var(--brand); }
.pricing-vs-note {
  display: block; font-size: 0.75rem; color: var(--text-2); line-height: 1.5;
}
.pricing-vs-good .pricing-vs-note { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════
   Weekly Content Planner
   ═══════════════════════════════════════════════════════════ */

.planner-page {
  max-width: 1040px;
  margin: 0 auto;
}

/* Form */
.planner-form { padding: 1.75rem; }
.planner-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 600px) { .planner-form-grid { grid-template-columns: 1fr; } }

.planner-freq-row { margin-bottom: 1.5rem; }
.planner-generate-btn {
  width: 100%; padding: 0.8rem; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.planner-auth-note {
  text-align: center; font-size: 0.8rem; color: var(--text-3); margin-top: 0.75rem;
}
.planner-auth-note a { color: var(--brand); }

/* Plan header */
.plan-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.75rem;
}
.plan-week-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 0.35rem; }
.plan-theme-badge {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  background: var(--brand-light); color: var(--brand);
  padding: 0.2rem 0.65rem; border-radius: 20px;
}
.plan-header-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Plan grid */
.plan-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .plan-grid { grid-template-columns: 1fr; } }

/* Day card */
.plan-day-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.1rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.plan-day-header {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.plan-day-name { font-size: 0.9rem; font-weight: 700; color: var(--text-1); }

/* Format badges */
.plan-format-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 4px;
  white-space: nowrap;
}
.fmt-story     { background: #ede9fe; color: #6d28d9; }
.fmt-list      { background: #d1fae5; color: #065f46; }
.fmt-contrarian{ background: #fee2e2; color: #991b1b; }
.fmt-question  { background: #e0f2fe; color: #0369a1; }
.fmt-casestudy { background: #e0e7ff; color: #3730a3; }
.fmt-insight   { background: var(--brand-light); color: var(--brand); }

.plan-hook {
  font-size: 0.835rem; line-height: 1.55; color: var(--text-1);
  font-style: italic; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.plan-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.plan-topic-chip {
  font-size: 0.72rem; font-weight: 500;
  background: var(--bg-raised); color: var(--text-2);
  padding: 0.18rem 0.5rem; border-radius: 5px;
  border: 1px solid var(--border);
}
.plan-cta-hint {
  font-size: 0.75rem; color: var(--text-3); line-height: 1.4;
}
.plan-day-action { margin-top: auto; }
.plan-gen-btn {
  width: 100%; text-align: center; justify-content: center;
  font-size: 0.82rem !important; padding: 0.5rem 0.75rem !important;
  display: flex; align-items: center; gap: 0.4rem;
}

/* Generated post inside day card */
.plan-generated { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.plan-post-ta {
  width: 100%; resize: vertical;
  font-size: 0.8rem; line-height: 1.55;
  padding: 0.6rem 0.75rem; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-raised);
  color: var(--text-1); font-family: inherit;
}
.plan-gen-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.plan-saved-badge {
  font-size: 0.72rem; font-weight: 600;
  color: var(--success); background: var(--success-bg);
  padding: 0.2rem 0.5rem; border-radius: 5px;
}

/* ═══════════════════════════════════════════════════════════
   Why PostGenius section (Home page)
   ═══════════════════════════════════════════════════════════ */

.why-section {
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  padding: 6rem 1.5rem;
}

.why-inner {
  max-width: 1040px;
  margin: 0 auto;
}

/* Header */
.why-header {
  text-align: center;
  margin-bottom: 4rem;
}
.why-headline {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-1);
  margin: 0.35rem 0 1rem;
}
.why-headline em {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(90deg, var(--brand), #00a0dc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.why-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* Feature grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* Base card */
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  border-color: var(--border-md);
}

/* Featured dark card (Claude AI) */
.why-card-dark {
  background: linear-gradient(140deg, #0f1923 0%, #1a2d40 60%, #0d2035 100%);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.why-card-dark:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(0,119,181,0.22);
}
.why-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0,119,181,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.why-card-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.why-card-dark .why-card-title { color: #fff; }
.why-card-dark .why-card-desc  { color: rgba(255,255,255,0.7); }

/* Card icon */
.why-card-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.1rem;
}

/* Card title & desc */
.why-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
  line-height: 1.3;
}
.why-card-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* Proof chips (on dark card) */
.why-card-proof {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.why-proof-chip {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0,160,220,0.18);
  color: #62c5ef;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(0,160,220,0.25);
}

/* Philosophy strip */
.why-philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;
  align-items: start;
}
@media (max-width: 720px) {
  .why-philosophy {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }
}
.why-philosophy-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.5rem;
}
.why-philosophy-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 0.85rem;
  line-height: 1.3;
}
.why-philosophy-text p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}

/* VS rows */
.why-philosophy-vs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.why-vs-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
}
.why-vs-bad-row {
  background: #fafafa;
  border: 1px solid var(--border);
}
.why-vs-good-row {
  background: var(--brand-light);
  border: 1px solid rgba(0,119,181,0.2);
}
.why-vs-x {
  font-size: 0.85rem;
  font-weight: 700;
  color: #d1d5db;
  flex-shrink: 0;
  margin-top: 1px;
}
.why-vs-check {
  font-size: 0.85rem;
  font-weight: 700;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 1px;
}
.why-vs-row div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.why-vs-row strong {
  color: var(--text-1);
  font-weight: 700;
}
.why-vs-good-row strong { color: var(--brand-dark); }
.why-vs-row span {
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.45;
}
.why-vs-good-row span { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════
   Pricing Page  (/pricing)
   ═══════════════════════════════════════════════════════════ */

.pricing-hero-stats {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  max-width: 600px; margin: 2rem auto 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.pricing-stat {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  flex: 1; min-width: 110px;
}
.pricing-stat-num {
  font-size: 1.9rem; font-weight: 800; color: var(--brand); letter-spacing: -0.03em;
  line-height: 1;
}
.pricing-stat-label {
  font-size: 0.76rem; color: var(--text-2); text-align: center; line-height: 1.35;
}
.pricing-stat-sep {
  width: 1px; height: 44px; background: var(--border);
  flex-shrink: 0; margin: 0 1.75rem;
}

.pricing-page-body {
  max-width: 980px; margin: 0 auto;
}

/* ── Card extras (used only on pricing page) ── */
.plan-tagline {
  font-size: 0.78rem; color: var(--text-3);
  margin: -0.5rem 0 1.1rem; line-height: 1.4;
}
.plan-annual-note {
  font-size: 0.74rem; color: var(--text-3); margin: -0.75rem 0 1.25rem;
}
.plan-no-cc {
  text-align: center; font-size: 0.72rem; color: var(--text-3); margin-top: 0.6rem;
}
.plan-cta-btn {
  width: 100%; display: block; text-align: center;
}
.plan-current-badge {
  width: 100%; text-align: center;
  padding: 0.65rem; border-radius: 8px;
  background: var(--brand-light); color: var(--brand);
  font-size: 0.85rem; font-weight: 600;
}

/* ── Feature comparison table ── */
.pricing-compare-section { margin-top: 5rem; }
.pricing-compare-header { text-align: center; margin-bottom: 2rem; }
.pricing-compare-header h2 { font-size: 1.75rem; font-weight: 800; margin: 0 0 0.4rem; }
.pricing-compare-header p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

.pricing-compare-wrap { overflow-x: auto; border-radius: 14px; }
.pricing-compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem; background: var(--bg-card);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07), 0 0 0 1px var(--border);
}
.pricing-compare-table thead tr {
  background: var(--bg-raised);
  border-bottom: 2px solid var(--border-md);
}
.pricing-compare-table th {
  padding: 1rem 1.25rem; font-size: 0.85rem; font-weight: 700;
  color: var(--text-1); text-align: center;
}
.pricing-compare-table th.cmp-feature-col { text-align: left; width: 44%; }
.pricing-compare-table th.cmp-pro-col { background: var(--brand-light); color: var(--brand); }

.cmp-popular-pill {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  background: var(--brand); color: #fff;
  padding: 0.1rem 0.45rem; border-radius: 10px;
  margin-left: 0.35rem; vertical-align: middle; letter-spacing: 0.02em;
}

.pricing-compare-table td {
  padding: 0.7rem 1.25rem; color: var(--text-2);
  text-align: center; border-bottom: 1px solid var(--border);
}
.pricing-compare-table tbody tr:last-child td { border-bottom: none; }
.pricing-compare-table td:first-child {
  text-align: left; color: var(--text-1); font-weight: 500;
}
.pricing-compare-table td.cmp-pro-col { background: #fafeff; }

.cmp-group-row td {
  background: var(--bg-raised) !important;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-3) !important;
  padding: 0.5rem 1.25rem; border-top: 1px solid var(--border-md);
}
.cmp-yes { color: #16a34a; font-weight: 700; }
.cmp-no  { color: #d1d5db; }

/* ── FAQ ── */
.pricing-faq-section { margin-top: 5rem; }
.pricing-faq-header { text-align: center; margin-bottom: 2rem; }
.pricing-faq-header h2 { font-size: 1.75rem; font-weight: 800; margin: 0 0 0.4rem; }
.pricing-faq-header p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

.pricing-faq-list {
  max-width: 680px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq-item.faq-open {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 1px var(--brand-light);
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.05rem 1.25rem;
  background: transparent; border: none; cursor: pointer;
  font-size: 0.925rem; font-weight: 600; color: var(--text-1);
  text-align: left; transition: background 0.12s;
}
.faq-question:hover { background: var(--bg-raised); }
.faq-chevron {
  font-size: 1.3rem; font-weight: 300; color: var(--brand);
  flex-shrink: 0; line-height: 1; min-width: 16px; text-align: center;
}
.faq-answer {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.875rem; color: var(--text-2); line-height: 1.7;
}

/* ── Bottom CTA ── */
.pricing-bottom-cta {
  margin-top: 5rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f1923 0%, #1a2d40 50%, #0f1923 100%);
  border-radius: 20px; padding: 4.5rem 2rem;
  text-align: center;
}
.pricing-bottom-cta-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(0,119,181,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.pricing-bottom-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800; margin: 0 0 0.75rem; color: #fff;
  letter-spacing: -0.02em;
}
.pricing-bottom-cta > p {
  font-size: 1rem; color: rgba(255,255,255,0.65); margin: 0 0 2.25rem;
}
.pricing-bottom-cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.pricing-cta-primary { padding: 0.85rem 2.25rem; font-size: 1rem; }
.pricing-cta-secondary {
  color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: color 0.15s;
}
.pricing-cta-secondary:hover { color: #fff; }
.pricing-cta-sub {
  font-size: 0.75rem; color: rgba(255,255,255,0.4); margin: 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .pricing-hero-stats { padding: 1.25rem 1rem; }
  .pricing-stat-sep { display: none; }
  .pricing-stat { min-width: 80px; }
  .pricing-bottom-cta { padding: 3rem 1.25rem; border-radius: 14px; }
  .pricing-compare-table th, .pricing-compare-table td { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
}

/* ═══════════════════════════════════════════════════════════
   Admin / Webmaster Dashboard
   ═══════════════════════════════════════════════════════════ */

.nav-link-admin {
  color: var(--brand) !important;
  font-weight: 600;
}

.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Header */
.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 0.25rem;
}
.admin-sub {
  color: var(--text-3);
  font-size: 0.9rem;
  margin: 0;
}
.admin-refresh-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: var(--r-md);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.admin-refresh-btn:hover { background: var(--bg-hover); color: var(--text-1); }

/* Stats row */
.admin-stats-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.admin-stat-card {
  flex: 1;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
  text-align: center;
}
.admin-stat-pro  { border-color: rgba(99,102,241,0.35); }
.admin-stat-agency { border-color: rgba(245,158,11,0.35); }
.admin-stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.admin-stat-lbl {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Filters */
.admin-filters-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.admin-search {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.55rem 0.9rem;
  color: var(--text-1);
  font-size: 0.875rem;
}
.admin-search:focus { outline: none; border-color: var(--brand); }
.admin-filter-sel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.55rem 0.75rem;
  color: var(--text-1);
  font-size: 0.875rem;
  cursor: pointer;
}
.admin-result-count {
  font-size: 0.8rem;
  color: var(--text-3);
  white-space: nowrap;
}

/* Toast */
.admin-toast {
  border-radius: var(--r-md);
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.admin-toast-ok  { background: rgba(34,197,94,0.12); color: #16a34a; border: 1px solid rgba(34,197,94,0.3); }
.admin-toast-err { background: rgba(239,68,68,0.12);  color: #dc2626; border: 1px solid rgba(239,68,68,0.3); }

/* Table */
.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table thead tr {
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  white-space: nowrap;
}
.admin-th-c { text-align: center; }
.admin-table td {
  padding: 0.85rem 1rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg-hover); }
.admin-row-suspended { opacity: 0.55; }
.admin-td-c { text-align: center; }
.admin-td-date { white-space: nowrap; font-size: 0.8rem; color: var(--text-3); }
.admin-empty { text-align: center; color: var(--text-3); padding: 2.5rem; font-size: 0.9rem; }

/* User cell */
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-avatar-pro {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.admin-user-name  { font-weight: 600; color: var(--text-1); font-size: 0.875rem; }
.admin-user-email { font-size: 0.78rem; color: var(--text-3); margin-top: 1px; }
.admin-user-badges { display: flex; gap: 0.35rem; margin-top: 3px; flex-wrap: wrap; }
.admin-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 3px;
}
.admin-tag-admin { background: rgba(99,102,241,0.18); color: #6366f1; }
.admin-tag-warn  { background: rgba(245,158,11,0.18); color: #d97706; }

/* Plan selector */
.admin-plan-sel {
  border-radius: var(--r-md);
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg-page);
  color: var(--text-1);
}
.admin-plan-sel:disabled { opacity: 0.4; cursor: default; }
.admin-plan-pro    { border-color: rgba(99,102,241,0.5); color: #6366f1; }
.admin-plan-agency { border-color: rgba(245,158,11,0.5); color: #d97706; }

/* Usage numbers */
.admin-usage-num   { font-weight: 700; color: var(--text-1); }
.admin-usage-limit { font-size: 0.75rem; color: var(--text-3); margin-left: 2px; }

/* Status badges */
.admin-status {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.admin-status-active    { color: #16a34a; }
.admin-status-suspended { color: #dc2626; }

.admin-verified   { font-size: 0.75rem; font-weight: 600; color: #16a34a; white-space: nowrap; }
.admin-unverified { font-size: 0.75rem; font-weight: 600; color: #d97706; white-space: nowrap; }

/* Action buttons */
.admin-actions { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; }
.admin-btn {
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-md);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.admin-btn:hover { opacity: 0.8; }
.admin-btn-suspend {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.35);
  color: #dc2626;
}
.admin-btn-restore {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.35);
  color: #16a34a;
}
.admin-btn-reset {
  background: var(--bg-hover);
  border-color: var(--border);
  color: var(--text-3);
}

@media (max-width: 900px) {
  .admin-stats-row { gap: 0.6rem; }
  .admin-stat-card { padding: 0.85rem 0.75rem; }
  .admin-stat-val  { font-size: 1.5rem; }
}

/* ════════════════════════════════════════════════════════════════
   Scroll-Reveal Animation
   ════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.22s; }
.reveal-d3 { transition-delay: 0.34s; }

/* ════════════════════════════════════════════════════════════════
   Hero V2
   ════════════════════════════════════════════════════════════════ */
.hero-v2 {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 5rem 1.25rem 0;
}

/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 9s ease-in-out infinite;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0,119,181,0.16) 0%, transparent 70%);
  top: -160px; right: -80px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  bottom: 20px; left: -120px;
  animation-delay: -3.5s;
}
.hero-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
  top: 40%; right: 28%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -18px) scale(1.04); }
  66% { transform: translate(-10px, 14px) scale(0.97); }
}

.hero-v2-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding-bottom: 3.5rem;
}

.hero-v2-copy { position: relative; z-index: 2; }

/* Animated pill badge */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-xlight);
  border: 1px solid rgba(0,119,181,0.22);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease both;
}

.hero-pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pillPulse 2.2s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,119,181,0.45); }
  50%       { box-shadow: 0 0 0 5px rgba(0,119,181,0); }
}

/* H1 */
.hero-v2-h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text-1);
  margin: 0 0 1.25rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

/* Gradient text (used in h1 and CTA section) */
.hero-gtext {
  background: linear-gradient(135deg, #0077B5 0%, #6366f1 55%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-v2-p {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 460px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

/* Hero CTA buttons */
.hero-v2-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-full);
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 14px rgba(0,119,181,0.35);
  transition: background var(--normal) var(--ease), transform var(--fast) var(--ease), box-shadow var(--normal) var(--ease);
}
.hero-cta-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,119,181,0.42);
  color: #fff;
  text-decoration: none;
}

.hero-ghost-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-md);
  transition: all var(--normal) var(--ease);
}
.hero-ghost-btn:hover {
  color: var(--text-1);
  border-color: rgba(0,119,181,0.4);
  background: var(--brand-xlight);
  text-decoration: none;
}

/* Social proof row */
.hero-sp {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-sp-avs { display: flex; }
.hero-sp-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border: 2px solid #fff;
  margin-right: -8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.hero-sp-text {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-left: 14px;
}
.hero-sp-text strong { color: var(--text-1); }

/* ── Product Mockup ── */
.hero-v2-visual {
  position: relative;
  z-index: 2;
  animation: floatMock 6s ease-in-out infinite, fadeInUp 0.8s ease 0.2s both;
}

@keyframes floatMock {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero-mock {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(0,0,0,0.11), 0 8px 20px rgba(0,0,0,0.06);
  overflow: visible;
  border: 1px solid rgba(0,0,0,0.07);
  position: relative;
}

.hero-mock-bar {
  background: #f3f4f6;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px 18px 0 0;
}
.hero-mock-dots { display: flex; gap: 5px; }
.hmd { width: 11px; height: 11px; border-radius: 50%; }
.hmd-r { background: #ff5f56; }
.hmd-y { background: #ffbd2e; }
.hmd-g { background: #27c93f; }
.hero-mock-url {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-3);
  background: rgba(0,0,0,0.05);
  border-radius: 6px;
  padding: 2px 8px;
}

.hero-mock-body {
  padding: 1.25rem;
  position: relative;
  overflow: visible;
  border-radius: 0 0 18px 18px;
}

.hero-mock-post {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}
.hero-mock-ph {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.hero-mock-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #6366f1);
  flex-shrink: 0;
}
.hero-mock-meta { flex: 1; }
.hero-mock-nm { height: 9px; width: 90px; background: var(--border-md); border-radius: 4px; margin-bottom: 5px; }
.hero-mock-rl { height: 7px; width: 65px; background: var(--border); border-radius: 4px; }
.hero-mock-ai-badge {
  font-size: 0.64rem; font-weight: 700;
  color: var(--brand);
  background: var(--brand-xlight);
  border: 1px solid rgba(0,119,181,0.2);
  padding: 2px 7px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.hero-mock-line {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 7px;
  width: 90%;
}
.hero-lk {
  height: 10px;
  background: linear-gradient(90deg, rgba(0,119,181,0.28), rgba(99,102,241,0.18));
  margin-bottom: 10px;
  width: 93%;
}

.hero-mock-score-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.hero-score-label { font-size: 0.64rem; color: var(--text-3); font-weight: 500; white-space: nowrap; }
.hero-score-val   { font-size: 0.7rem; font-weight: 700; color: var(--success); white-space: nowrap; }
.hero-score-track {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.hero-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: var(--r-full);
  animation: scoreFill 1.3s cubic-bezier(0.16,1,0.3,1) 0.9s both;
}
@keyframes scoreFill {
  from { width: 0 !important; }
}

/* Floating badge labels on mockup */
.hero-float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.42rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  white-space: nowrap;
  z-index: 10;
}
.hero-float-1 { top: -1rem;     right: -1.5rem; animation: fb1 3s ease-in-out infinite 0.6s, fadeInUp 0.6s ease 0.9s both; }
.hero-float-2 { bottom: 4.5rem; left: -1.5rem;  animation: fb2 3.5s ease-in-out infinite 1s, fadeInUp 0.6s ease 1.1s both; }
.hero-float-3 { bottom: 1rem;   right: -1rem;   animation: fb1 4s ease-in-out infinite 1.4s, fadeInUp 0.6s ease 1.3s both; }
@keyframes fb1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
@keyframes fb2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ── Stats Strip ── */
.hero-stats-strip {
  border-top: 1px solid var(--border);
  background: rgba(248,249,250,0.85);
  padding: 1.35rem 1.25rem;
  animation: fadeInUp 0.7s ease 0.5s both;
}
.hero-stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.3rem 2.5rem;
}
.hero-stat-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.hero-stat-lbl { font-size: 0.74rem; color: var(--text-3); margin-top: 2px; }
.hero-stat-sep { width: 1px; height: 34px; background: var(--border-md); }

/* ── Shared keyframes ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive hero ── */
@media (max-width: 900px) {
  .hero-v2 { padding: 3.5rem 1.25rem 0; }
  .hero-v2-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-v2-copy  { order: 1; }
  .hero-v2-visual { order: 2; max-width: 440px; margin: 0 auto; }
  .hero-v2-actions, .hero-sp { justify-content: center; }
  .hero-v2-p { max-width: none; margin: 0 auto 2rem; }
  .hero-stat-item { padding: 0.3rem 1.5rem; }
  .hero-float { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   Features Section
   ════════════════════════════════════════════════════════════════ */
.features-sec {
  padding: 5.5rem 1.25rem;
  background: #fff;
}
.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feat-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,119,181,0.22);
}
.feat-icon {
  font-size: 1.85rem;
  display: block;
  margin-bottom: 1rem;
}
.feat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 0.5rem;
}
.feat-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 768px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .feat-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════
   Testimonials Section
   ════════════════════════════════════════════════════════════════ */
.testi-sec {
  padding: 5.5rem 1.25rem;
  background: var(--bg-page);
}
.testi-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testi-stars { color: #f59e0b; font-size: 0.88rem; letter-spacing: 1px; }
.testi-quote {
  font-size: 0.9rem;
  color: var(--text-1);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.testi-author { display: flex; align-items: center; gap: 0.65rem; }
.testi-av {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testi-name  { font-size: 0.85rem; font-weight: 700; color: var(--text-1); }
.testi-role  { font-size: 0.75rem; color: var(--text-3); }
@media (max-width: 768px) { .testi-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════
   Bottom CTA Section
   ════════════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.25rem;
  background: var(--text-1);
  text-align: center;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.cta-orb-1 { width: 420px; height: 420px; background: rgba(0,119,181,0.22); top: -120px; right: -80px; }
.cta-orb-2 { width: 320px; height: 320px; background: rgba(99,102,241,0.18); bottom: -80px; left: -60px; }
.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cta-h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.18;
  margin: 0.5rem 0 1rem;
}
.cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  margin: 0 0 2.25rem;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-btn-primary {
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  background: #fff;
  border-radius: var(--r-full);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: all var(--normal) var(--ease);
}
.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  color: var(--text-1);
  text-decoration: none;
}
.cta-btn-ghost {
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: var(--r-full);
  text-decoration: none;
  transition: all var(--normal) var(--ease);
}
.cta-btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════
   Shared Inner-Page Hero  (Carousel, Planner, and future pages)
   ════════════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 4.5rem 1.25rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.page-hero-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,119,181,0.14) 0%, transparent 70%);
  top: -140px; right: -60px;
  animation: orbFloat 9s ease-in-out infinite;
}
.page-hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  bottom: -80px; left: -60px;
  animation: orbFloat 11s ease-in-out infinite -4s;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.page-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-xlight);
  border: 1px solid rgba(0,119,181,0.22);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease both;
}

.page-hero-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text-1);
  margin: 0 0 1rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.page-hero-p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
  animation: fadeInUp 0.7s ease 0.2s both;
}

/* ── Tool content area below the hero ── */
.page-content-section {
  width: 100%;
  background: var(--bg-page);
  padding: 3rem 1.25rem 5rem;
}

@media (max-width: 768px) {
  .page-hero { padding: 3rem 1rem 2.5rem; }
  .page-content-section { padding: 2rem 1rem 3.5rem; }
  .page-hero-orb { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   Mobile — comprehensive responsive fixes  (≤ 600px / ≤ 480px)
   ════════════════════════════════════════════════════════════════ */

/* ── Section vertical padding ───────────────────────────── */
@media (max-width: 600px) {
  .features-sec  { padding: 3rem 1rem; }
  .testi-sec     { padding: 3rem 1rem; }
  .why-section   { padding: 3rem 1rem; }
  .cta-section   { padding: 3.5rem 1rem; }
  .why-header    { margin-bottom: 2rem; }
  .pricing-section { padding: 3rem 1rem 2.5rem; }
  .generate-section { padding: 2.5rem 0.75rem 3rem; }
}

/* ── Generate section container ─────────────────────────── */
@media (max-width: 480px) {
  .pg-container      { padding: 1.25rem 0.5rem 2rem; }
  .pg-section-header { margin-bottom: 1.75rem; }
}

/* ── Card inner padding ─────────────────────────────────── */
@media (max-width: 480px) {
  .card-header-section { padding: 1rem 1rem 0; }
  .card-body-section   { padding: 1rem 1rem 1.25rem; }
  .card-divider        { margin: 0 1rem; }
  .post-card           { padding: 1rem; }
}

/* ── Post footer — stack buttons on narrow screens ──────── */
@media (max-width: 560px) {
  .post-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .post-footer-right {
    align-self: stretch;
    justify-content: flex-end;
  }
}

/* ── Results header ─────────────────────────────────────── */
@media (max-width: 480px) {
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ── Hero stats strip ───────────────────────────────────── */
@media (max-width: 540px) {
  .hero-stat-item { padding: 0.3rem 0.85rem; }
  .hero-stat-sep  { display: none; }
}
@media (max-width: 380px) {
  .hero-stat-item { padding: 0.3rem 0.5rem; }
  .hero-stat-num  { font-size: 0.95rem; }
  .hero-stat-lbl  { font-size: 0.68rem; }
}

/* ── Carousel form grid ─────────────────────────────────── */
@media (max-width: 600px) {
  .carousel-form-grid { grid-template-columns: 1fr; }
}

/* ── Checkout payment row ───────────────────────────────── */
@media (max-width: 480px) {
  .checkout-row { flex-direction: column; }
}

/* ── Account page — hero shrink ─────────────────────────── */
@media (max-width: 480px) {
  .acct-page-hero  { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .acct-hero-name  { font-size: 1.2rem; }
}

/* ── Queue/Board page — section padding ─────────────────── */
@media (max-width: 480px) {
  .queue-body   { padding: 0; }
  .board-page   { padding: 0; }
  .planner-page { padding: 0; }
}

/* ── Auth cards ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card { padding: 1.5rem 1rem 1.25rem; }
}

/* ── Legal pages ────────────────────────────────────────── */
@media (max-width: 480px) {
  .legal-card { padding: 1.25rem 1rem; }
}

/* ── Pricing CTA bottom block ───────────────────────────── */
@media (max-width: 480px) {
  .pricing-bottom-cta { padding: 2.5rem 1rem; border-radius: 12px; }
  .pricing-bottom-cta-actions { gap: 0.75rem; }
}

/* ── Why philosophy ─────────────────────────────────────── */
@media (max-width: 480px) {
  .why-philosophy { padding: 1.25rem; }
}

/* ── Mobile hero v2 small screens ──────────────────────── */
@media (max-width: 480px) {
  .hero-v2 { padding: 2.5rem 1rem 0; }
  .hero-v2-inner { gap: 2rem; padding-bottom: 2.5rem; }
  .hero-cta-btn  { padding: 0.65rem 1.25rem; font-size: 0.88rem; }
  .hero-ghost-btn { padding: 0.65rem 1rem; font-size: 0.85rem; }
  .hero-v2-actions { gap: 0.65rem; }
}

/* ── Carousel slide stage ───────────────────────────────── */
@media (max-width: 480px) {
  .slide-stage { gap: 0.5rem; }
  .slide-nav-btn { width: 32px; height: 32px; font-size: 1.1rem; }
}

/* ── Planner page form ──────────────────────────────────── */
@media (max-width: 480px) {
  .planner-form  { padding: 1.25rem; }
  .carousel-form { padding: 1.25rem; }
}

/* ── Page container safe margin ─────────────────────────── */
@media (max-width: 480px) {
  .pg-card { border-radius: var(--r); }
  .why-card { padding: 1.25rem; }
  .feat-card { padding: 1.25rem; }
  .testi-card { padding: 1.25rem; }
}

/* ════════════════════════════════════════════════════════════════
   Mobile — additional UX improvements
   ════════════════════════════════════════════════════════════════ */

/* "Use →" arrows: always visible on touch (no hover) */
@media (hover: none) {
  .inspiration-use     { opacity: 1; }
  .hook-suggestion-use { opacity: 1; }
}

/* Queue stats: 3rd card spans both columns on 2-col layout */
@media (max-width: 540px) {
  .queue-stats .queue-stat:last-child { grid-column: span 2; }
}

/* Toast: full-width bottom bar on narrow screens */
@media (max-width: 480px) {
  .toast-container {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    align-items: stretch;
  }
  .toast-item { justify-content: center; }
}

/* Formatting toolbar: horizontal scroll instead of multi-row wrap */
@media (max-width: 600px) {
  .fmt-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .fmt-toolbar::-webkit-scrollbar { display: none; }
}

/* Carousel toolbar: stack title above buttons on narrow screens */
@media (max-width: 520px) {
  .carousel-toolbar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .carousel-toolbar-left  { width: 100%; }
  .carousel-toolbar-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .carousel-toolbar-right .btn-sm { flex: 1; justify-content: center; }
}

/* Icon buttons: minimum 38px touch target on mobile */
@media (max-width: 600px) {
  .btn-icon          { width: 38px; height: 38px; }
  .post-footer-right { gap: 0.3rem; }
}

/* Account field rows: stack label above value on tiny screens */
@media (max-width: 420px) {
  .acct-field-row   { flex-direction: column; gap: 0.3rem; align-items: flex-start; }
  .acct-field-label { min-width: unset; }
}

/* Navbar: extra-tight on very small phones */
@media (max-width: 360px) {
  .nav-inner { padding: 0 0.6rem; gap: 0.4rem; }
}

/* Schedule picker: stack date + time on tiny screens */
@media (max-width: 380px) {
  .schedule-picker-row                         { flex-direction: column; gap: 0.4rem; }
  .schedule-date-input, .schedule-time-input   { width: 100%; min-width: 0; }
}

/* Checkout cards: reduce padding on small screens */
@media (max-width: 480px) {
  .checkout-form-card { padding: 1.25rem; }
  .checkout-summary   { padding: 1.25rem; }
}

/* Page-content-section: tighter horizontal padding on tiny screens */
@media (max-width: 380px) {
  .page-content-section { padding: 1.5rem 0.75rem 3rem; }
}

/* Kanban cards: tighter inner padding on mobile */
@media (max-width: 480px) {
  .kanban-card { padding: 0.75rem; }
}

/* Pricing comparison table: smaller cells on mobile */
@media (max-width: 480px) {
  .pricing-compare-table th,
  .pricing-compare-table td { padding: 0.55rem 0.6rem; font-size: 0.78rem; }
  .pricing-compare-table th.cmp-feature-col,
  .pricing-compare-table td:first-child { min-width: 110px; }
}
