:root {
  --bg: #f6f0e7;
  --bg-soft: #fcf8f3;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-strong: #fffdf8;
  --surface-tint: #f4ebe0;
  --card: rgba(255, 255, 255, 0.92);
  --card-strong: #ffffff;
  --ink: #152230;
  --ink-soft: #33495a;
  --muted: #647687;
  --line: rgba(105, 125, 140, 0.18);
  --line-strong: rgba(56, 78, 92, 0.22);
  --navy: #173548;
  --navy-strong: #0f2736;
  --sage: #6d8e7e;
  --sage-soft: #dbe7dd;
  --sand: #d7b98d;
  --amber: #bf7441;
  --amber-strong: #9d5526;
  --danger: #b23a32;
  --danger-soft: #fde7e2;
  --warning: #8a5b1f;
  --warning-soft: #fff1db;
  --ok: #1c6b4d;
  --ok-soft: #dff4e9;
  --shadow-soft: 0 22px 50px rgba(18, 31, 43, 0.08);
  --shadow-card: 0 30px 70px rgba(13, 24, 33, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(227, 191, 151, 0.25), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(109, 142, 126, 0.18), transparent 24%),
    linear-gradient(160deg, #f6efe5 0%, #f8f4ed 48%, #edf3ef 100%);
}

.ambient {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.6;
}

.ambient-one {
  top: -100px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(191, 116, 65, 0.16), transparent 70%);
}

.ambient-two {
  right: -100px;
  top: 140px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(109, 142, 126, 0.18), transparent 72%);
}

.ambient-three {
  right: 18%;
  bottom: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(23, 53, 72, 0.1), transparent 72%);
}

h1,
h2,
h3,
.brand-text,
.page-name-title,
.insight-stat-card p {
  font-family: "Aptos Display", "Trebuchet MS", "Gill Sans", sans-serif;
}

a,
button,
input,
select,
textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.16s ease,
    opacity 0.2s ease;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(56, 78, 92, 0.12);
  background: rgba(249, 244, 236, 0.78);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(56, 78, 92, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 8px 18px rgba(15, 39, 54, 0.12);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 11px;
}

.brand-mark-fallback {
  display: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.brand-subtext {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.health-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 2px;
}

.health-chip,
.health-info-btn {
  border: 1px solid rgba(56, 78, 92, 0.14);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  box-shadow: none;
}

.health-chip {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  gap: 9px;
}

.health-chip:hover,
.health-info-btn:hover,
.health-chip.is-open,
.health-info-btn.is-open {
  transform: none;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(23, 53, 72, 0.24);
}

.health-chip-label {
  font-size: 13px;
  font-weight: 900;
}

.health-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(28, 107, 77, 0.4);
  animation: health-pulse 1.2s ease-in-out infinite;
}

.health-dot.is-ok {
  background: #27a267;
  box-shadow: 0 0 0 0 rgba(39, 162, 103, 0.38);
}

.health-dot.is-bad {
  background: #d64c43;
  box-shadow: 0 0 0 0 rgba(214, 76, 67, 0.42);
}

.health-info-btn {
  min-height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
}

.health-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, calc(100vw - 32px));
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(56, 78, 92, 0.14);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(249, 244, 236, 0.96));
  box-shadow: 0 26px 50px rgba(17, 45, 60, 0.14);
  color: var(--ink);
  z-index: 60;
}

.health-popover strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.health-popover p,
.health-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.health-meta {
  margin-top: 8px;
}

.health-popover ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 6px;
  font-size: 12.5px;
}

.health-popover li {
  line-height: 1.55;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink-soft);
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
}

.topnav a:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(56, 78, 92, 0.12);
}

.topnav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, #20465f 0%, #102b3a 100%);
  box-shadow: 0 10px 22px rgba(16, 43, 58, 0.24);
}

.topnav .logout-link {
  color: #fff;
  background: linear-gradient(135deg, #c46c43 0%, #9d4d27 100%);
  box-shadow: 0 10px 20px rgba(157, 77, 39, 0.24);
}

.topnav .logout-form {
  margin: 0;
}

.topnav .logout-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.topnav .logout-link:hover {
  color: #fff;
  background: linear-gradient(135deg, #c97449 0%, #954720 100%);
}

.topnav-public a {
  min-width: 92px;
}

.layout {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px 44px;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(56, 78, 92, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  animation: rise-in 220ms ease-out both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.44), transparent 34%),
    linear-gradient(200deg, transparent 68%, rgba(191, 116, 65, 0.05));
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card.compact {
  max-width: 620px;
  margin: 52px auto;
}

.login-card {
  padding-top: 28px;
}

.hero-card {
  padding: 24px 26px;
  background:
    linear-gradient(135deg, rgba(255, 251, 247, 0.98) 0%, rgba(251, 246, 239, 0.92) 55%, rgba(238, 246, 242, 0.9) 100%);
  border-color: rgba(32, 70, 95, 0.16);
  box-shadow: var(--shadow-card);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr);
  gap: 20px;
  align-items: center;
  padding: 26px;
  background:
    linear-gradient(140deg, rgba(255, 251, 246, 0.99) 0%, rgba(247, 241, 231, 0.95) 56%, rgba(236, 244, 240, 0.94) 100%);
  border-color: rgba(23, 53, 72, 0.18);
  box-shadow: var(--shadow-card);
}

.landing-hero-main h1 {
  max-width: 19ch;
}

.landing-hero-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(56, 78, 92, 0.14);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.landing-hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.landing-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}

.landing-cta-row .btn {
  min-width: 122px;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.landing-feature-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  min-height: 188px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(23, 53, 72, 0.14);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(245, 238, 229, 0.88)),
    linear-gradient(130deg, rgba(109, 142, 126, 0.04), rgba(191, 116, 65, 0.06));
}

.landing-feature-card img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(56, 78, 92, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.landing-feature-card h3 {
  margin: 4px 0 8px;
  font-size: 1.12rem;
}

.landing-feature-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13.5px;
}

.landing-steps {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.landing-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: rgba(23, 53, 72, 0.17);
  background:
    linear-gradient(140deg, rgba(255, 252, 247, 0.98), rgba(242, 236, 227, 0.92) 58%, rgba(233, 242, 236, 0.92));
}

/* ===== LANDING PAGE ===== */

/* --- Hero --- */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 40px 36px;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(126, 73, 239, 0.14), transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(59, 130, 246, 0.08), transparent 50%),
    linear-gradient(145deg, rgba(250, 247, 255, 0.98) 0%, rgba(243, 238, 252, 0.94) 50%, rgba(236, 244, 250, 0.92) 100%);
  border-color: rgba(72, 48, 148, 0.18);
  overflow: hidden;
}
.lp-hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(126, 73, 239, 0.1);
  border: 1px solid rgba(126, 73, 239, 0.2);
  color: #6b3fc7;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.lp-hero-main h1 {
  max-width: 20ch;
  margin-top: 8px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -1px;
}
.lp-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 14px;
}
.lp-btn-primary {
  background: linear-gradient(135deg, #7e49ef, #5b2fd4) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(126, 73, 239, 0.3);
  font-weight: 700;
}
.lp-btn-primary:hover { box-shadow: 0 6px 24px rgba(126, 73, 239, 0.4); }
.lp-btn-white {
  background: #fff !important;
  color: #5b2fd4 !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.lp-trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(72, 48, 148, 0.15);
  background: rgba(255, 255, 255, 0.85);
  color: #4e3d84;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
}
.lp-trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: lpPulse 2s ease-in-out infinite;
}
@keyframes lpPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Hero visual (mock browser) --- */
.lp-hero-visual {
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(72, 48, 148, 0.18);
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(64, 30, 129, 0.12);
}
.lp-dashboard-frame {
  border-radius: 0;
  border: none;
  overflow: hidden;
  background: #fff;
}
.lp-frame-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f8f7fc, #f0eef8);
  border-bottom: 1px solid rgba(56, 78, 92, 0.1);
}
.lp-frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(56, 78, 92, 0.15);
}
.lp-frame-dot:nth-child(1) { background: #ff5f57; }
.lp-frame-dot:nth-child(2) { background: #ffbd2e; }
.lp-frame-dot:nth-child(3) { background: #28c840; }
.lp-frame-title {
  margin-left: 8px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.lp-dashboard-frame img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: linear-gradient(145deg, #f8faff, #fff);
  border-bottom: 1px solid rgba(56, 78, 92, 0.08);
}
.lp-mini-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}
.lp-mini-chart {
  border: 1px solid rgba(56, 78, 92, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(145deg, rgba(248, 249, 255, 0.96), rgba(240, 247, 244, 0.92));
}
.lp-chart-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin-bottom: 8px;
}
.lp-chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #7e49ef, #a78bfa);
  min-height: 4px;
}
.lp-chart-bar.accent {
  background: linear-gradient(180deg, #e1306c, #fd7e52);
}
.lp-mini-chart strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
}
.lp-mini-chart span {
  font-size: 10.5px;
  color: var(--muted);
}

/* --- Social proof bar --- */
.lp-social-proof {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(245, 239, 250, 0.9));
}
.lp-proof-item {
  border: 1px solid rgba(72, 48, 148, 0.12);
  border-radius: 14px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-proof-item:hover {
  border-color: rgba(126, 73, 239, 0.25);
  box-shadow: 0 4px 16px rgba(126, 73, 239, 0.08);
}
.lp-proof-item strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.lp-proof-item span {
  font-size: 11px;
  color: var(--muted);
}

/* --- Section center alignment --- */
.lp-section-center { text-align: center; }
.lp-section-center .section-copy { max-width: 560px; margin-left: auto; margin-right: auto; }

/* --- Feature grid --- */
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.lp-feature-card {
  border: 1px solid rgba(56, 78, 92, 0.1);
  border-radius: 18px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.lp-feature-highlight {
  border-color: rgba(126, 73, 239, 0.25);
  background:
    radial-gradient(circle at 80% 0%, rgba(126, 73, 239, 0.06), transparent 50%),
    rgba(255, 255, 255, 0.95);
}
.lp-feature-icon-wrap {
  height: 130px;
  overflow: hidden;
  background: linear-gradient(145deg, #f8f9ff, #f0f4f8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-feature-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.lp-feature-icon-gradient {
  background: linear-gradient(135deg, rgba(126, 73, 239, 0.12), rgba(59, 130, 246, 0.08));
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.lp-feature-icon-gradient strong { font-size: 14px; color: #5b2fd4; }
.lp-feature-icon-gradient span { font-size: 11px; color: var(--muted); }
.lp-feature-body {
  padding: 16px 18px 20px;
}
.lp-feature-card h3 {
  margin: 4px 0 8px;
  font-size: 1.05rem;
}
.lp-feature-card .lp-feature-body p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* --- How it works --- */
.lp-how {
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.98), rgba(241, 245, 251, 0.92));
}
.lp-step-grid {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lp-step-grid li {
  border: 1px solid rgba(56, 78, 92, 0.12);
  border-radius: 16px;
  padding: 20px 16px 16px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
  transition: transform 0.2s;
}
.lp-step-grid li:hover { transform: translateY(-3px); }
.lp-step-grid li::before { display: none; }
.lp-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #7e49ef, #5b2fd4);
  margin: 0 auto 10px;
  box-shadow: 0 4px 12px rgba(126, 73, 239, 0.25);
}
.lp-step-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
.lp-step-grid span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* --- Analytics showcase --- */
.lp-analytics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.lp-analytics-visual {
  border: 1px solid rgba(56, 78, 92, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
}
.lp-analytics-visual img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  border-bottom: 1px solid rgba(56, 78, 92, 0.08);
}
.lp-analytics-badges {
  display: flex;
  gap: 8px;
  padding: 12px;
  flex-wrap: wrap;
}
.lp-badge-up {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.lp-analytics-copy .eyebrow { color: #6a57a6; }
.lp-check-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.lp-check-list li {
  padding-left: 24px;
  position: relative;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.lp-check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- CTA band --- */
.lp-cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: center;
  color: #f5f0ff;
  background: linear-gradient(125deg, #7e49ef 0%, #6628d8 40%, #3f2084 100%);
  border-color: rgba(67, 24, 150, 0.4);
}
.lp-cta-band .eyebrow,
.lp-cta-band p,
.lp-cta-band h2 { color: inherit; }
.lp-quote {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}
.lp-quote-mark {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: -10px;
}
.lp-quote p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.lp-quote strong { font-size: 12px; opacity: 0.7; }

/* --- Pricing --- */
.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}
.lp-pricing-card {
  border: 1px solid rgba(56, 78, 92, 0.12);
  border-radius: 20px;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 10px;
  position: relative;
  transition: transform 0.2s;
}
.lp-pricing-card:hover { transform: translateY(-3px); }
.lp-pricing-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7e49ef, #5b2fd4);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(126, 73, 239, 0.3);
}
.lp-save-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.lp-pricing-card h3 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: -1px;
}
.lp-price-symbol { font-size: 1.4rem; font-weight: 700; }
.lp-price-cycle {
  margin-left: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}
.lp-pricing-featured {
  border-color: rgba(126, 73, 239, 0.35);
  box-shadow: 0 16px 40px rgba(64, 30, 129, 0.14);
  background:
    radial-gradient(circle at 80% 0%, rgba(126, 73, 239, 0.12), transparent 50%),
    rgba(255, 255, 255, 0.95);
}

/* --- FAQ --- */
.lp-faq-grid { display: grid; gap: 10px; max-width: 700px; margin: 0 auto; }
.lp-faq-item {
  border: 1px solid rgba(56, 78, 92, 0.1);
  border-radius: 14px;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  transition: border-color 0.2s;
}
.lp-faq-item:hover { border-color: rgba(126, 73, 239, 0.2); }
.lp-faq-item summary {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.2s;
}
.lp-faq-item[open] summary::after {
  content: "\2212";
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item p {
  margin: 0;
  padding: 0 18px 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13.5px;
}

/* --- Final CTA --- */
.lp-final-cta {
  text-align: center;
  padding: 48px 24px;
  border-color: rgba(88, 38, 186, 0.34);
  background: linear-gradient(135deg, #7e49ef 0%, #5b2fd4 50%, #3f1f8e 100%);
}
.lp-final-cta h2,
.lp-final-cta p { color: #fff; }
.lp-final-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.lp-final-cta .lp-cta-row { justify-content: center; }

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.legal-meta-card,
.legal-section-block,
.legal-footer-card,
.lp-legal-strip {
  border: 1px solid rgba(28, 61, 90, 0.12);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 251, 0.95));
  box-shadow: 0 16px 40px rgba(20, 43, 74, 0.08);
}

.legal-meta-card {
  padding: 1.5rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.legal-meta-card p,
.legal-meta-card a {
  color: var(--ink-soft);
}

.legal-content-card {
  padding: 1.5rem;
}

.legal-section-list {
  display: grid;
  gap: 1rem;
}

.legal-section-block {
  padding: 1.35rem 1.4rem;
}

.legal-section-block h2 {
  margin-bottom: 0.75rem;
}

.legal-points-list {
  margin: 0;
}

.legal-footer-card {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.lp-legal-strip {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}
.lp-footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
}

.lp-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.lp-legal-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 13px;
  transition: color 0.15s;
}
.lp-legal-links a:hover { color: var(--ink); }

.hero-card::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -56px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 116, 65, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.78fr);
  gap: 18px;
  align-items: stretch;
}

.meta-config-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.78fr);
  gap: 18px;
  border-color: rgba(23, 53, 72, 0.16);
  background:
    linear-gradient(132deg, rgba(255, 252, 247, 0.98), rgba(248, 243, 235, 0.9) 50%, rgba(237, 245, 240, 0.92) 100%);
}

.meta-config-main,
.meta-config-rail {
  display: flex;
  flex-direction: column;
}

.meta-config-rail {
  gap: 12px;
}

.meta-setup-cta .inline-link-btn {
  margin-top: 10px;
  align-self: flex-start;
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 11px;
}

.meta-config-form {
  margin-top: 6px;
  display: grid;
  gap: 2px;
}

#metaAppSecretState {
  margin-top: 2px;
  font-weight: 800;
}

#metaAppConfigResult {
  min-height: 20px;
  margin-top: 2px;
  font-weight: 800;
}

#metaAppConfigResult.is-success {
  color: var(--ok);
}

#metaAppConfigResult.is-error {
  color: var(--danger);
}

.result-note.is-success {
  color: var(--ok);
}

.result-note.is-error {
  color: var(--danger);
}

.meta-howto-panel {
  align-items: flex-start;
}

.meta-howto-list {
  margin: 10px 0 8px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.meta-howto-list li {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.55;
}

.meta-howto-list a {
  color: var(--navy);
  font-weight: 800;
}

.meta-howto-list a:hover {
  color: var(--navy-strong);
}

.meta-check-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.meta-guide-shell {
  border-color: rgba(23, 53, 72, 0.16);
  background:
    linear-gradient(132deg, rgba(255, 252, 247, 0.98), rgba(248, 243, 235, 0.9) 50%, rgba(237, 245, 240, 0.92) 100%);
}

.meta-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.meta-guide-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 14px;
}

.meta-guide-pill {
  border: 1px solid rgba(23, 53, 72, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.meta-guide-card {
  display: grid;
  gap: 10px;
}

.meta-guide-details {
  border: 1px solid rgba(23, 53, 72, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  padding: 10px 12px;
}

.meta-guide-details summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  color: var(--navy);
  position: relative;
  padding-right: 22px;
}

.meta-guide-details summary::-webkit-details-marker {
  display: none;
}

.meta-guide-details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--amber-strong);
}

.meta-guide-details[open] summary::after {
  content: "-";
}

.meta-guide-details > *:not(summary) {
  margin-top: 8px;
}

.meta-map-table {
  display: grid;
  gap: 8px;
}

.meta-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(56, 78, 92, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 10px;
}

.meta-map-left,
.meta-map-right {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.meta-map-arrow {
  font-size: 14px;
  font-weight: 900;
  color: var(--amber-strong);
}

.meta-scope-box {
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(23, 53, 72, 0.14);
  background: rgba(255, 255, 255, 0.74);
}

.meta-scope-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 900;
}

.meta-scope-list {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 22px;
}

.meta-scope-list li {
  break-inside: avoid;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.meta-scope-list span {
  color: var(--muted);
  font-size: 11.5px;
}

.meta-scope-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.meta-scope-explain {
  margin-top: 10px;
  border: 1px dashed rgba(23, 53, 72, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  padding: 10px 12px;
}

.meta-scope-explain .meta-howto-list {
  margin: 8px 0 0;
}

.hero-main,
.hero-rail {
  display: flex;
  flex-direction: column;
}

.hero-rail {
  gap: 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -1.25px;
  max-width: 15.5ch;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.7px;
}

h3 {
  margin: 0;
  font-size: 1.02rem;
}

.hero-copy,
.section-copy,
.panel-copy {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.hero-copy {
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.65;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 78, 92, 0.13);
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.35px;
}

.hero-stat {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 53, 72, 0.11);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(244, 235, 224, 0.66));
}

.hero-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
  letter-spacing: -0.3px;
}

.hero-stat p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 12.5px;
}

.hero-stat-label {
  color: var(--amber-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(23, 53, 72, 0.12);
  border-radius: 18px;
  padding: 20px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(244, 238, 232, 0.9)),
    linear-gradient(135deg, rgba(109, 142, 126, 0.05), rgba(191, 116, 65, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tile::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 53, 72, 0.09), transparent 68%);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(15, 39, 54, 0.12);
  border-color: rgba(23, 53, 72, 0.2);
}

.tile-kicker {
  margin: 0 0 12px;
  color: var(--amber-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.tile p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.home-command-hero,
.home-hero-shell,
.home-confidence-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.92fr);
  gap: 20px;
  align-items: stretch;
}

.home-command-main,
.home-command-visual,
.home-confidence-copy {
  display: flex;
  flex-direction: column;
}

.home-command-main {
  gap: 14px;
}

.home-command-main h1 {
  max-width: 12.8ch;
}

.home-hero-actions,
.home-trust-row,
.home-visual-footer,
.home-start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-hero-actions {
  margin-top: 2px;
}

.home-trust-pill,
.home-visual-footer span,
.home-module-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 78, 92, 0.14);
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.home-trust-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 50%;
}

.home-trust-pill-platform {
  justify-content: flex-start;
  padding-right: 14px;
}

.home-help-strip {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(56, 78, 92, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(244, 238, 230, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(109, 142, 126, 0.08), transparent 45%);
}

.home-help-strip strong {
  font-size: 14px;
}

.home-help-strip span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 13.5px;
}

.home-command-visual {
  min-width: 0;
}

.home-visual-frame {
  height: 100%;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(23, 53, 72, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(244, 237, 228, 0.9)),
    radial-gradient(circle at 100% 100%, rgba(109, 142, 126, 0.08), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.home-visual-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.home-visual-head p {
  margin: 0;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.home-visual-head span {
  max-width: 25ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.home-visual-grid,
.home-module-grid,
.home-start-grid {
  display: grid;
  gap: 14px;
}

.home-visual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-visual-module {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(56, 78, 92, 0.14);
  background: rgba(255, 255, 255, 0.88);
}

.home-visual-module img {
  width: 100%;
  height: 94px;
  object-fit: contain;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(56, 78, 92, 0.12);
  background: linear-gradient(145deg, rgba(244, 248, 251, 0.98), rgba(255, 255, 255, 0.96));
}

.home-visual-module strong {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}

.home-visual-module span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.home-visual-footer {
  margin-top: 14px;
}

.home-guided-flow {
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.98), rgba(241, 246, 251, 0.9));
}

.home-start-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-start-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 20px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(56, 78, 92, 0.13);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 238, 231, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(191, 116, 65, 0.06), transparent 40%);
}

.home-step-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c47444 0%, #8f4f29 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.home-start-card h3 {
  margin-top: 2px;
  font-size: 1.08rem;
}

.home-start-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.home-start-points,
.home-mini-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
}

.home-start-points li,
.home-mini-list li {
  line-height: 1.55;
}

.home-start-actions {
  margin-top: auto;
  padding-top: 4px;
}

.home-workspace-shell {
  display: grid;
  gap: 10px;
}

.home-module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-module-card,
.home-work-card {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 16px;
  min-height: 220px;
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(56, 78, 92, 0.13);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 239, 231, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(109, 142, 126, 0.06), transparent 40%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.home-module-card:hover,
.home-work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 53, 72, 0.2);
  box-shadow: 0 24px 40px rgba(15, 39, 54, 0.12);
}

.home-module-visual img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: contain;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(56, 78, 92, 0.12);
  background:
    linear-gradient(145deg, rgba(244, 248, 251, 0.98), rgba(255, 255, 255, 0.96));
}

.home-module-visual-brand img {
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 246, 238, 0.98), rgba(255, 255, 255, 0.96));
}

.home-module-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-module-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.home-module-topline .tile-kicker {
  margin: 0;
}

.home-module-content h3 {
  font-size: 1.08rem;
}

.home-module-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
  font-size: 14px;
}

.home-mini-list {
  gap: 6px;
  margin-top: auto;
  font-size: 12.5px;
}

.home-confidence-copy,
.home-confidence-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-confidence-list,
.home-confidence-stat-grid {
  display: grid;
  gap: 12px;
}

.home-confidence-item,
.home-confidence-stat {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(56, 78, 92, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.home-confidence-item strong,
.home-confidence-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.home-confidence-item span,
.home-confidence-stat span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 13.5px;
}

.home-confidence-image {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(56, 78, 92, 0.13);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(243, 247, 250, 0.9));
}

.home-confidence-image img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.home-confidence-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-stats-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.home-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 238, 230, 0.88));
  transition: background 0.25s ease;
}

.home-stat-item:last-child {
  border-right: none;
}

.home-stat-item:hover {
  background: rgba(255, 255, 255, 0.98);
}

.home-stat-item strong {
  font-size: 1.6rem;
  font-family: "Aptos Display", "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--navy);
  line-height: 1;
}

.home-stat-item span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: max-content;
}

.toolbar-surface {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(56, 78, 92, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(247, 241, 234, 0.8));
}

.accounts-toolbar {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 10px;
}

.content-grid {
  display: grid;
  gap: 18px;
}

.content-grid-aside {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
}

.content-grid-equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.accent-card {
  background:
    linear-gradient(155deg, rgba(23, 53, 72, 0.94), rgba(23, 53, 72, 0.84)),
    linear-gradient(145deg, rgba(191, 116, 65, 0.12), transparent);
  color: #f4f8fb;
}

.accent-card .eyebrow,
.accent-card .section-copy,
.accent-card .panel-copy,
.accent-card .info-list,
.accent-card .info-list li {
  color: rgba(244, 248, 251, 0.82);
}

.accent-card h2 {
  color: #fff;
}

.status-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.form-grid label {
  display: block;
  margin: 10px 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.form-grid p {
  margin: 10px 0;
}

.form-grid p label {
  display: block;
  margin-bottom: 6px;
}

.form-note a {
  color: var(--navy);
  font-weight: 800;
}

.form-note a:hover {
  color: var(--navy-strong);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  font: inherit;
}

button {
  width: auto;
  border-radius: 14px;
  font: inherit;
}

input,
select,
textarea {
  padding: 13px 14px;
  border: 1px solid rgba(56, 78, 92, 0.16);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

input::placeholder,
textarea::placeholder {
  color: #8fa0ad;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(23, 53, 72, 0.26);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(23, 53, 72, 0.42);
  box-shadow:
    0 0 0 4px rgba(23, 53, 72, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

small,
.form-note,
.result-note {
  display: block;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.result-note {
  margin: 16px 0 0;
  font-weight: 700;
}

.ai-image-compose {
  margin: 12px 0 8px;
  padding: 12px;
  border: 1px solid rgba(56, 78, 92, 0.12);
  border-radius: 14px;
  background: rgba(247, 250, 252, 0.72);
}

.ai-image-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.ai-image-actions label {
  margin: 0;
}

.ai-image-preview-wrap {
  margin-top: 10px;
  border: 1px solid rgba(56, 78, 92, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ai-image-preview {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
}

#appToastRoot {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  max-width: min(90vw, 420px);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  color: #fff;
  box-shadow: 0 16px 28px rgba(12, 22, 31, 0.28);
  animation: appToastIn 180ms ease-out;
}

.app-toast.is-success {
  background: linear-gradient(135deg, #1b7a58 0%, #0f5e43 100%);
}

.app-toast.is-error {
  background: linear-gradient(135deg, #bb4d35 0%, #93311d 100%);
}

.app-toast.is-exit {
  opacity: 0;
  transform: translateY(-6px);
  transition: all 240ms ease;
}

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

button,
.btn,
.inline-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.15px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #c47444 0%, #a95327 100%);
  box-shadow: 0 16px 28px rgba(169, 83, 39, 0.22);
}

.form-grid button[type="submit"] {
  width: 100%;
}

.google-auth-btn {
  width: 100%;
  margin-top: 0;
  gap: 10px;
  justify-content: center;
  color: #1f2a37;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(31, 42, 55, 0.16);
  box-shadow:
    0 12px 22px rgba(17, 45, 60, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.google-auth-btn:hover {
  border-color: rgba(26, 115, 232, 0.38);
  box-shadow:
    0 16px 24px rgba(17, 45, 60, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.google-auth-btn .google-auth-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(31, 42, 55, 0.12);
  box-shadow: 0 3px 8px rgba(17, 45, 60, 0.1);
}

.login-social-priority {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.google-auth-btn.google-auth-btn-priority {
  min-height: 54px;
  font-size: 16px;
  font-weight: 900;
  border-radius: 16px;
  border-color: rgba(26, 115, 232, 0.34);
  box-shadow:
    0 18px 28px rgba(26, 115, 232, 0.18),
    0 8px 18px rgba(17, 45, 60, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.google-auth-btn.google-auth-btn-priority:hover {
  border-color: rgba(26, 115, 232, 0.5);
  box-shadow:
    0 20px 32px rgba(26, 115, 232, 0.24),
    0 12px 22px rgba(17, 45, 60, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.google-reco-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #1d4f95;
  background: rgba(26, 115, 232, 0.14);
  border: 1px solid rgba(26, 115, 232, 0.22);
}

.google-auth-hint {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.login-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(56, 78, 92, 0.18);
}

button:hover,
.btn:hover,
.inline-link-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

button:active,
.btn:active,
.inline-link-btn:active {
  transform: translateY(0);
}

button[disabled],
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.btn.muted,
.inline-link-btn.muted {
  background: linear-gradient(135deg, #224b64 0%, #112d3c 100%);
  box-shadow: 0 16px 28px rgba(17, 45, 60, 0.24);
}

.btn.force-refresh-all {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b6a77 0%, #0e4f6f 52%, #14385d 100%);
  box-shadow:
    0 16px 28px rgba(15, 63, 89, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  letter-spacing: 0.2px;
}

.btn.force-refresh-all::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.22) 44%, transparent 72%);
  transform: translateX(-140%);
  transition: transform 0.52s ease;
}

.btn.force-refresh-all:hover {
  transform: translateY(-2px);
  filter: none;
  box-shadow:
    0 22px 34px rgba(15, 63, 89, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn.force-refresh-all:hover::before {
  transform: translateX(140%);
}

.force-refresh-shell {
  display: grid;
  gap: 6px;
  min-width: 206px;
}

.force-refresh-progress-wrap {
  display: grid;
  gap: 4px;
  width: 100%;
}

.force-refresh-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(15, 63, 89, 0.26);
  background: rgba(15, 63, 89, 0.12);
}

.force-refresh-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(17, 132, 146, 0.95), rgba(13, 96, 129, 0.95)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22) 0,
      rgba(255, 255, 255, 0.22) 8px,
      rgba(255, 255, 255, 0.04) 8px,
      rgba(255, 255, 255, 0.04) 16px
    );
  background-blend-mode: screen;
  transition: width 0.35s ease;
  animation: force-progress-flow 1.1s linear infinite;
}

.force-refresh-progress-text {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 800;
  letter-spacing: 0.2px;
}

@keyframes force-progress-flow {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 0, 24px 0;
  }
}

.retry-failed-btn {
  width: auto;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 10px;
}

.queue-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  border: 1px solid rgba(56, 78, 92, 0.16);
  background: rgba(227, 233, 238, 0.9);
  color: var(--navy);
}

.queue-status-published {
  background: rgba(208, 238, 223, 0.95);
  color: #165b36;
  border-color: rgba(22, 91, 54, 0.2);
}

.queue-status-failed {
  background: rgba(248, 216, 210, 0.95);
  color: #8b2e1f;
  border-color: rgba(139, 46, 31, 0.2);
}

.queue-status-processing {
  background: rgba(214, 231, 244, 0.95);
  color: #124e78;
  border-color: rgba(18, 78, 120, 0.2);
}

.queue-status-pending {
  background: rgba(232, 232, 232, 0.92);
  color: #445260;
}

.queue-status-retrying {
  background: rgba(255, 236, 204, 0.96);
  color: #8a4b00;
  border-color: rgba(138, 75, 0, 0.2);
}

.inline-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.info-list,
.login-points {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
}

.info-list li,
.login-points li {
  line-height: 1.6;
}

.table-wrap {
  overflow: auto;
  margin-top: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.table-wrap-strong {
  border: 1px solid rgba(56, 78, 92, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#insightPostsTable {
  max-height: 640px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(56, 78, 92, 0.1);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.55;
}

.insight-post-message-cell {
  min-width: 230px;
  max-width: 340px;
}

.insight-post-message-clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  white-space: normal;
  word-break: break-word;
}

.scheduled-message-cell {
  min-width: 220px;
  max-width: 320px;
}

.scheduled-message-clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  white-space: normal;
  word-break: break-word;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(241, 236, 228, 0.96), rgba(249, 247, 242, 0.96));
  color: var(--navy);
  font-weight: 900;
  letter-spacing: 0.25px;
  border-bottom-color: rgba(56, 78, 92, 0.16);
}

tbody tr:nth-child(even) td {
  background: rgba(250, 247, 242, 0.54);
}

tbody tr:hover td {
  background: rgba(236, 243, 247, 0.64);
}

tr:last-child td {
  border-bottom: none;
}

pre {
  background: rgba(249, 247, 242, 0.9);
  border: 1px solid rgba(56, 78, 92, 0.12);
  border-radius: 16px;
  padding: 14px;
  overflow-x: auto;
}

.insight-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.insight-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.insight-stat-card {
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 246, 0.88));
  border: 1px solid rgba(56, 78, 92, 0.12);
}

.insight-stat-card h3 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.insight-stat-card p {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.08;
}

.page-name-hero {
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(191, 116, 65, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.98) 0%, rgba(255, 240, 214, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.page-name-label {
  margin: 0;
  color: var(--amber-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.page-name-title {
  margin: 6px 0 0;
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1px;
}

.nested-card {
  margin-top: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 247, 241, 0.88));
}

.scheduler-assist-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  gap: 10px;
}

.assist-status {
  font-size: 12.5px;
  color: rgba(200, 215, 225, 0.85);
  transition: opacity 0.2s;
}
.assist-status.loading {
  opacity: 0.6;
  animation: assistPulse 1.2s ease-in-out infinite;
}
@keyframes assistPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.assist-content {
  display: grid;
  gap: 10px;
  transition: opacity 0.25s;
}
.assist-content.hidden { display: none; }

.assist-panel {
  border: 1px solid rgba(215, 229, 236, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(10, 32, 46, 0.28) 0%, rgba(18, 48, 68, 0.18) 100%);
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.assist-panel:hover {
  border-color: rgba(100, 180, 220, 0.45);
  box-shadow: 0 2px 12px rgba(0, 120, 200, 0.08);
}

.assist-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.assist-panel-icon {
  font-size: 16px;
  line-height: 1;
}
.assist-title {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(236, 246, 252, 0.92);
}

.assist-platform-block {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  margin-bottom: 6px;
}
.assist-platform-block:last-child { margin-bottom: 0; }

.assist-platform-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(120, 190, 230, 0.95);
  margin-bottom: 5px;
}
.assist-platform-label.ig { color: rgba(225, 120, 180, 0.95); }

.assist-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 4px;
}
.assist-metric {
  font-size: 12px;
  color: rgba(230, 241, 248, 0.88);
  line-height: 1.4;
}
.assist-metric strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}
.assist-metric-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.assist-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.assist-slot-chip {
  font-size: 11px;
  background: rgba(60, 140, 200, 0.18);
  border: 1px solid rgba(80, 160, 220, 0.3);
  border-radius: 6px;
  padding: 3px 8px;
  color: rgba(200, 230, 250, 0.92);
}
.assist-slot-chip.top {
  background: rgba(60, 180, 120, 0.2);
  border-color: rgba(60, 180, 120, 0.4);
  font-weight: 600;
}

.assist-recommendation {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(230, 241, 248, 0.85);
  margin-top: 4px;
}
.assist-recommendation em {
  color: rgba(255, 220, 100, 0.95);
  font-style: normal;
  font-weight: 600;
}

.assist-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: rgba(230, 241, 248, 0.92);
  font-size: 12.5px;
  line-height: 1.45;
}

/* --- Comparison Table --- */
.cmp-table {
  display: grid;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(56, 78, 92, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

.cmp-header-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 40px 1fr 1fr;
  gap: 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(35, 55, 80, 0.06), rgba(50, 80, 120, 0.04));
  border-bottom: 2px solid rgba(56, 78, 92, 0.1);
  align-items: center;
}
.cmp-header-metric {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.cmp-header-fb, .cmp-header-ig {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cmp-header-vs {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.cmp-header-bar {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  text-align: center;
}
.cmp-platform-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

.cmp-group-header {
  padding: 10px 16px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(56, 78, 92, 0.03);
  border-top: 1px solid rgba(56, 78, 92, 0.06);
  border-bottom: 1px solid rgba(56, 78, 92, 0.04);
}

.cmp-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 40px 1fr 1fr;
  gap: 0;
  padding: 10px 16px;
  align-items: center;
  border-bottom: 1px solid rgba(56, 78, 92, 0.05);
  transition: background 0.15s;
}
.cmp-row:hover {
  background: rgba(56, 78, 92, 0.03);
}
.cmp-row:last-child { border-bottom: none; }

.cmp-cell-metric {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cmp-window {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(56, 78, 92, 0.06);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.cmp-cell-value {
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
}
.cmp-cell-value strong {
  font-weight: 700;
  color: var(--ink);
}
.cmp-cell-value.cmp-winner strong {
  color: #2a7d4f;
}
.cmp-cell-vs {
  text-align: center;
  color: rgba(56, 78, 92, 0.2);
  font-size: 10px;
}
.cmp-cell-vs::after {
  content: "vs";
  font-weight: 700;
  text-transform: uppercase;
}
.cmp-na {
  color: var(--muted);
  font-size: 13px;
}

/* Mini comparison bar */
.cmp-cell-bar { padding: 0 4px; }
.cmp-bar-track {
  display: grid;
  gap: 3px;
}
.cmp-bar {
  height: 6px;
  border-radius: 3px;
  min-width: 2px;
  transition: width 0.4s ease;
}
.cmp-bar-fb {
  background: linear-gradient(90deg, #4a90d9, #5ba3ec);
}
.cmp-bar-ig {
  background: linear-gradient(90deg, #e1306c, #fd7e52);
}

.cmp-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 700px) {
  .cmp-header-row, .cmp-row {
    grid-template-columns: 1fr 1fr 30px 1fr;
  }
  .cmp-header-bar, .cmp-cell-bar { display: none; }
}

.insight-alert-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.insight-monitor-card {
  padding: 16px;
}

.compact-list-wrap {
  margin-top: 10px;
}

.compact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.compact-list-item {
  border-radius: 10px;
  border: 1px solid rgba(56, 78, 92, 0.14);
  background: rgba(255, 255, 255, 0.78);
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.compact-list-item.good {
  border-color: rgba(28, 107, 77, 0.22);
  background: rgba(232, 247, 239, 0.78);
}

.compact-list-item.bad {
  border-color: rgba(178, 58, 50, 0.22);
  background: rgba(253, 237, 235, 0.82);
}

.compact-list-item strong {
  font-size: 12px;
  color: var(--ink);
}

.compact-list-item span {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.meta-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.error-text,
.warning-text {
  min-height: 0;
  font-weight: 800;
  line-height: 1.6;
}

.error-text:empty,
.warning-text:empty,
.meta-note:empty {
  display: none;
}

.error-text {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(178, 58, 50, 0.15);
  border-radius: 14px;
  padding: 10px 12px;
}

.warning-text {
  color: var(--warning);
  background: var(--warning-soft);
  border: 1px solid rgba(138, 91, 31, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
}

.media-preview {
  width: 128px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(56, 78, 92, 0.14);
  background: #fff;
  box-shadow: 0 10px 18px rgba(17, 45, 60, 0.08);
}

.media-empty {
  color: var(--muted);
  font-size: 12px;
}

.status-badge,
.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.status-badge.ok {
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid rgba(28, 107, 77, 0.16);
}

.status-badge.warn {
  color: var(--warning);
  background: var(--warning-soft);
  border: 1px solid rgba(138, 91, 31, 0.14);
}

.platform-badge.facebook {
  color: #1a4aa1;
  background: #e9f1ff;
  border: 1px solid rgba(26, 74, 161, 0.15);
}

.platform-badge.instagram {
  color: #9b2c63;
  background: #fff0f7;
  border: 1px solid rgba(155, 44, 99, 0.15);
}

.platform-badge.both {
  color: var(--navy);
  background: #eef5ef;
  border: 1px solid rgba(23, 53, 72, 0.14);
}

.platform-badge {
  gap: 6px;
}

.platform-badge span {
  line-height: 1;
}

.platform-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(56, 78, 92, 0.16);
  background: #fff;
}

#connectMetaBtn {
  position: relative;
  padding-left: 36px;
}

#connectMetaBtn::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 4px;
  background-image: url("/static/dashboard/brand/meta-logo.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.profile-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.profile-name {
  color: var(--ink-soft);
  font-weight: 800;
}

.account-post-time {
  color: var(--ink-soft);
  font-weight: 700;
}

.account-post-time.stale {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(178, 58, 50, 0.14);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 8px;
}

.account-sync-state {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
}

.account-sync-state.stale {
  color: var(--danger);
}

.avatar-wrap {
  display: inline-grid;
  place-items: center;
}

.avatar-img,
.avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.avatar-img {
  object-fit: cover;
  border: 1px solid rgba(56, 78, 92, 0.14);
  background: #fff;
}

.avatar-fallback {
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: var(--navy);
  background: rgba(233, 241, 244, 0.95);
  border: 1px solid rgba(56, 78, 92, 0.14);
}

.inline-link-btn {
  width: auto;
  min-height: 36px;
  margin-right: 6px;
  margin-bottom: 4px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 10px;
}

.inline-link-btn.disabled {
  cursor: not-allowed;
  opacity: 0.8;
  pointer-events: none;
  background: linear-gradient(135deg, #b96a43 0%, #9b4d2b 100%);
}

.account-actions-stack {
  display: grid;
  grid-template-columns: minmax(150px, 1fr);
  gap: 8px;
  min-width: 178px;
}

.account-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-action-btn {
  width: 100%;
  margin: 0;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 0.12px;
  box-shadow: 0 10px 18px rgba(17, 45, 60, 0.14);
}

.account-action-primary {
  background: linear-gradient(135deg, #c77745 0%, #a9562a 100%);
  box-shadow: 0 14px 22px rgba(169, 83, 39, 0.24);
}

.account-action-secondary {
  background: linear-gradient(135deg, #284f66 0%, #163748 100%);
}

.account-action-ai {
  background: linear-gradient(135deg, #1f5f67 0%, #103846 100%);
}

.account-action-btn:hover {
  transform: translateY(-1px);
}

.accounts-table {
  min-width: 0;
  table-layout: fixed;
}

.accounts-table th,
.accounts-table td {
  padding: 11px 10px;
}

.accounts-table th:nth-child(1),
.accounts-table td:nth-child(1) {
  width: 48px;
}

.accounts-table th:nth-child(2),
.accounts-table td:nth-child(2) {
  width: 21%;
}

.accounts-table th:nth-child(3),
.accounts-table td:nth-child(3) {
  width: 92px;
}

.accounts-table th:nth-child(4),
.accounts-table td:nth-child(4) {
  width: 122px;
}

.accounts-table th:nth-child(5),
.accounts-table td:nth-child(5),
.accounts-table th:nth-child(6),
.accounts-table td:nth-child(6) {
  width: 140px;
}

.accounts-table th:nth-child(7),
.accounts-table td:nth-child(7),
.accounts-table th:nth-child(8),
.accounts-table td:nth-child(8) {
  width: 118px;
}

.accounts-table th:nth-child(9),
.accounts-table td:nth-child(9) {
  width: 198px;
}

.accounts-table td:nth-child(5),
.accounts-table td:nth-child(6) {
  word-break: break-all;
}

.accounts-table .profile-cell {
  min-width: 0;
  width: 100%;
}

.accounts-table .profile-name {
  display: block;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.accounts-table .account-actions-stack {
  min-width: 0;
  max-width: 100%;
}

.accounts-table .account-action-btn {
  font-size: 11px;
  min-height: 36px;
  padding: 0 8px;
  white-space: nowrap;
}

@media (max-width: 1320px) {
  .accounts-table th:nth-child(9),
  .accounts-table td:nth-child(9) {
    width: 176px;
  }

  .accounts-table .account-actions-row {
    grid-template-columns: minmax(0, 1fr);
  }
}


.ai-form-grid {
  display: grid;
  gap: 14px;
}

.ai-form-row-2col {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: start;
}

.ai-form-grid label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 700;
}

.ai-form-grid textarea {
  resize: vertical;
  min-height: 70px;
}

.ai-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ai-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}

.ai-output-empty {
  padding: 32px 14px;
  border-radius: 12px;
  background: rgba(249, 247, 242, 0.9);
  border: 1px dashed rgba(56, 78, 92, 0.18);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* --- Report profile banner --- */
.ai-profile-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(35, 80, 120, 0.08) 0%, rgba(80, 140, 200, 0.06) 100%);
  border: 1px solid rgba(56, 78, 92, 0.12);
  flex-wrap: wrap;
}
.ai-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a90d9 0%, #7b68ee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ai-profile-info { flex: 1; min-width: 160px; }
.ai-profile-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.ai-profile-platform {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}
.ai-profile-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ai-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.ai-badge-model {
  background: rgba(100, 80, 200, 0.1);
  color: rgba(100, 70, 180, 0.9);
  border: 1px solid rgba(100, 80, 200, 0.18);
}
.ai-badge-time {
  background: rgba(56, 78, 92, 0.06);
  color: var(--muted);
  border: 1px solid rgba(56, 78, 92, 0.12);
}

/* --- Executive summary --- */
.ai-report-header {
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(244, 242, 236, 0.85) 0%, rgba(230, 240, 248, 0.6) 100%);
  border: 1px solid rgba(56, 78, 92, 0.12);
  margin-top: 14px;
}
.ai-report-header h3 {
  margin: 0 0 10px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-report-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

/* --- Stats bar --- */
.ai-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.ai-stat-tile {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(56, 78, 92, 0.1);
  text-align: center;
}
.ai-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.ai-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

/* --- Cadence bar (inline compact) --- */
.ai-cadence-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.ai-cadence-chip {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(56, 78, 92, 0.06);
  border: 1px solid rgba(56, 78, 92, 0.1);
  color: var(--ink-soft);
}
.ai-cadence-chip strong { color: var(--ink); }

/* --- Report meta row --- */
.ai-report-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11.5px;
}

/* --- Grid layouts --- */
.ai-report-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ai-report-grid-4 {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* --- Report cards --- */
.ai-report-card {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(56, 78, 92, 0.12);
  background: rgba(255, 255, 255, 0.82);
  padding: 16px 18px;
  transition: box-shadow 0.2s;
}
.ai-report-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.ai-report-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-section-icon {
  font-size: 18px;
  line-height: 1;
}
.ai-report-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.ai-report-card li {
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid transparent;
}
.ai-report-card.tone-good {
  border-color: rgba(57, 123, 78, 0.22);
  background: rgba(240, 250, 244, 0.72);
}
.ai-report-card.tone-good li {
  border-left-color: rgba(57, 150, 78, 0.35);
  background: rgba(57, 150, 78, 0.05);
}
.ai-report-card.tone-bad {
  border-color: rgba(178, 58, 50, 0.18);
  background: rgba(255, 244, 241, 0.72);
}
.ai-report-card.tone-bad li {
  border-left-color: rgba(200, 60, 50, 0.3);
  background: rgba(200, 60, 50, 0.04);
}
.ai-report-card.tone-warn {
  border-color: rgba(200, 150, 30, 0.22);
  background: rgba(255, 250, 235, 0.72);
}
.ai-report-card.tone-warn li {
  border-left-color: rgba(200, 150, 30, 0.35);
  background: rgba(200, 150, 30, 0.05);
}
.ai-report-card.tone-blue {
  border-color: rgba(50, 120, 200, 0.2);
  background: rgba(235, 245, 255, 0.72);
}
.ai-report-card.tone-blue li {
  border-left-color: rgba(50, 120, 200, 0.3);
  background: rgba(50, 120, 200, 0.04);
}

/* --- Strategy card --- */
.ai-strategy-card {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(80, 120, 180, 0.18);
  background: linear-gradient(135deg, rgba(235, 245, 255, 0.7) 0%, rgba(245, 240, 255, 0.5) 100%);
  padding: 18px 20px;
}
.ai-strategy-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-strategy-row {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}
.ai-strategy-row:last-child { margin-bottom: 0; }
.ai-strategy-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--muted);
}
.ai-strategy-value {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* --- Next best post card --- */
.ai-next-post-card {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(57, 150, 78, 0.2);
  background: linear-gradient(135deg, rgba(240, 252, 244, 0.75) 0%, rgba(235, 248, 255, 0.5) 100%);
  padding: 18px 20px;
}
.ai-next-post-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-next-post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ai-next-post-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(56, 78, 92, 0.08);
}
.ai-next-post-item .ai-strategy-label { margin-bottom: 3px; }
.ai-next-post-item .ai-strategy-value { font-size: 13px; }

/* --- Tables --- */
.ai-table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.ai-table th {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
  padding: 8px 10px;
  background: rgba(56, 78, 92, 0.05);
}
.ai-table td {
  padding: 10px;
  font-size: 13px;
  line-height: 1.5;
  border-top: 1px solid rgba(56, 78, 92, 0.06);
}
.ai-table tr:hover td {
  background: rgba(56, 78, 92, 0.02);
}

.ai-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* --- Content ideas grid --- */
.ai-ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.ai-idea-chip {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(56, 78, 92, 0.1);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  transition: border-color 0.15s;
}
.ai-idea-chip:hover {
  border-color: rgba(80, 140, 200, 0.35);
}

@media (max-width: 700px) {
  .ai-form-row-2col { grid-template-columns: 1fr; }
  .ai-report-grid, .ai-report-grid-4 { grid-template-columns: 1fr; }
  .ai-next-post-grid { grid-template-columns: 1fr; }
  .ai-stats-bar { grid-template-columns: repeat(3, 1fr); }
}

/* --- Profile stats row --- */
.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.profile-stat-tile {
  padding: 16px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 246, 0.88));
  border: 1px solid rgba(56, 78, 92, 0.1);
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.profile-stat-tile:hover {
  border-color: rgba(56, 78, 92, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.profile-stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.profile-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}
.profile-stat-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.profile-form {
  gap: 12px;
}

.profile-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-form input[readonly] {
  background: rgba(236, 243, 247, 0.7);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.profile-form select[disabled] {
  background: rgba(236, 243, 247, 0.7);
  color: var(--ink-soft);
  cursor: not-allowed;
  opacity: 1;
}

.profile-form-divider {
  height: 1px;
  margin: 4px 0;
  background: rgba(56, 78, 92, 0.14);
}

.profile-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-preview-card {
  align-items: flex-start;
}

.profile-preview-media {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(56, 78, 92, 0.18);
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  place-items: center;
  margin: 2px 0 10px;
}

#profileAvatarPreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-preview-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
  background: rgba(233, 241, 244, 0.95);
}

.profile-preview-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.profile-preview-email {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-plan-pill-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-plan-pill {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 53, 72, 0.14);
  background: rgba(236, 243, 247, 0.7);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.profile-plan-pill.status {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: rgba(28, 107, 77, 0.18);
}

.profile-plan-pill.status.is-expired {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(178, 58, 50, 0.18);
}

.profile-preview-expiry {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.profile-preview-member {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-quick-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  gap: 6px;
}
.profile-quick-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(200, 215, 225, 0.7);
  margin: 0 0 4px;
}
.profile-quick-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(220, 235, 245, 0.92);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.profile-quick-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

@media (max-width: 700px) {
  .profile-stats-row { grid-template-columns: repeat(2, 1fr); }
  .profile-form-2col { grid-template-columns: 1fr; }
}

.subscription-hero {
  border-color: rgba(26, 77, 104, 0.2);
  background:
    radial-gradient(circle at 0% 0%, rgba(26, 77, 104, 0.12), transparent 44%),
    linear-gradient(140deg, rgba(255, 252, 247, 0.98) 0%, rgba(245, 239, 231, 0.92) 58%, rgba(236, 244, 242, 0.9) 100%);
}

.subscription-shell {
  border-color: rgba(23, 53, 72, 0.16);
  background:
    linear-gradient(132deg, rgba(255, 252, 247, 0.98), rgba(248, 243, 235, 0.9) 50%, rgba(237, 245, 240, 0.92) 100%);
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.subscription-plan-card {
  position: relative;
  border: 1px solid rgba(56, 78, 92, 0.14);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 30px rgba(17, 45, 60, 0.1);
}

.subscription-plan-card.featured {
  border-color: rgba(23, 95, 103, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(17, 127, 136, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 38px rgba(15, 63, 89, 0.16);
  overflow: hidden;
}

.subscription-plan-card.featured-primary {
  order: -1;
}

.subscription-plan-card.featured::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(18, 96, 112, 0.35), rgba(225, 145, 90, 0.18), rgba(18, 96, 112, 0.35));
  opacity: 0.5;
  z-index: 0;
  animation: featuredGlow 3.6s ease-in-out infinite;
}

.subscription-plan-card.featured > * {
  position: relative;
  z-index: 1;
}

.subscription-featured-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #0b2b37;
  background: rgba(255, 230, 200, 0.9);
  border: 1px solid rgba(191, 110, 62, 0.4);
  box-shadow: 0 10px 18px rgba(191, 110, 62, 0.18);
}

.subscription-plan-tag {
  margin: 0;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(23, 53, 72, 0.16);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(236, 243, 247, 0.7);
}

.subscription-plan-card h3 {
  margin: 12px 0 8px;
  font-size: 1.5rem;
}

.subscription-plan-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
}

.subscription-plan-price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 800;
}

.subscription-plan-copy {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.subscription-plan-note {
  margin: -8px 0 14px;
  color: rgba(23, 53, 72, 0.8);
  font-size: 0.95rem;
  font-weight: 600;
}

.subscription-pay-btn.is-yearly-highlight {
  position: relative;
  animation: yearlyPulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 rgba(191, 110, 62, 0.35);
}

.subscription-pay-btn.is-yearly-highlight.is-disabled,
.subscription-pay-btn.is-yearly-highlight:disabled {
  animation: none;
  box-shadow: none;
}

@keyframes yearlyPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(191, 110, 62, 0.35);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(191, 110, 62, 0.4);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(191, 110, 62, 0.35);
  }
}

@keyframes featuredGlow {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.01);
  }
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
}

.subscription-features-shell {
  margin-top: 18px;
  border-top: 1px solid rgba(56, 78, 92, 0.14);
  padding-top: 14px;
}

.subscription-features-shell h3 {
  margin: 6px 0 12px;
}

.subscription-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.subscription-feature-card {
  border: 1px solid rgba(56, 78, 92, 0.14);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.subscription-feature-card strong {
  display: block;
  margin-bottom: 8px;
}

.subscription-feature-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes health-pulse {
  0% {
    opacity: 1;
    transform: scale(0.92);
    box-shadow: 0 0 0 0 currentColor;
  }
  70% {
    opacity: 0.82;
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);
  }
  100% {
    opacity: 1;
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

@media (max-width: 1080px) {
  .grid.two,
  .landing-feature-grid,
  .lp-feature-grid,
  .lp-social-proof,
  .content-grid-equal,
  .content-grid-aside,
  .landing-hero,
  .legal-hero,
  .lp-hero,
  .lp-analytics,
  .lp-cta-band,
  .lp-pricing-grid,
  .hero-split,
  .meta-config-shell,
  .home-command-hero,
  .home-hero-shell,
  .home-start-grid,
  .home-module-grid,
  .home-confidence-shell,
  .home-confidence-stat-grid {
    grid-template-columns: 1fr;
  }

  .home-stats-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-stat-item:nth-child(3) {
    border-right: none;
  }

  .meta-guide-grid {
    grid-template-columns: 1fr;
  }

  .subscription-plan-grid,
  .subscription-feature-grid {
    grid-template-columns: 1fr;
  }

  .meta-guide-intro {
    grid-template-columns: 1fr;
  }

  .section-actions {
    min-width: 0;
  }
}

@media (max-width: 840px) {
  .topbar-inner {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    width: 100%;
  }

  .health-nav {
    order: -1;
    width: 100%;
    justify-content: flex-start;
  }

  .topnav a {
    flex: 1 1 auto;
  }

  .layout {
    padding: 18px 14px 40px;
  }

  .card,
  .hero-card {
    padding: 18px;
  }

  .accounts-toolbar,
  .ai-image-actions,
  .inline-controls,
  .insight-summary-grid,
  .ai-report-grid,
  .landing-feature-card,
  .lp-step-grid,
  .lp-feature-card,
  .home-module-card,
  .home-work-card,
  .home-visual-grid {
    grid-template-columns: 1fr;
  }

  .home-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    flex-direction: column;
  }

  .landing-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-footer-card,
  .lp-legal-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-hero-actions > *,
  .home-start-actions > * {
    width: 100%;
  }

  .home-visual-head,
  .home-visual-footer {
    flex-direction: column;
  }

  .home-visual-head span {
    max-width: none;
    text-align: left;
  }

  .home-trust-pill-platform {
    width: 100%;
    justify-content: center;
  }

  .lp-hero-main h1 {
    max-width: 100%;
  }

  .meta-scope-list {
    columns: 1;
  }

  .meta-map-row {
    grid-template-columns: 1fr;
  }

  .meta-map-arrow {
    display: none;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .home-module-visual img,
  .home-confidence-image img {
    min-height: 0;
    height: 190px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 120px;
    height: 40px;
  }

  .brand-text {
    font-size: 16px;
  }

  .brand-subtext {
    font-size: 9px;
  }

  .topnav {
    gap: 6px;
  }

  .health-nav {
    flex-wrap: wrap;
  }

  .health-popover {
    left: 0;
    right: auto;
  }

  .topnav a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .page-name-title {
    font-size: 2.2rem;
  }

  .insight-stat-card p {
    font-size: 2.1rem;
  }

  .lp-hero {
    padding: 20px 16px;
  }

  .lp-dashboard-frame img,
  .lp-analytics-visual img {
    height: 200px;
  }

  .lp-trust-inline span {
    width: 100%;
    text-align: center;
  }

  .lp-pricing-card h3 {
    font-size: 1.7rem;
  }
}

/* Planning */
.planning-shell {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.planning-toolbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.planning-month-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.planning-grid-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 0.8rem;
  background: #fff;
}

.planning-weekdays,
.planning-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.planning-weekdays span {
  text-align: center;
  font-weight: 700;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.planning-cell {
  min-height: 120px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.5rem;
  background: #fdfefe;
}

.planning-cell.is-muted {
  opacity: 0.45;
}

.planning-cell-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 0.45rem;
}

.planning-cell-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.planning-item {
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.32rem 0.5rem;
  color: #fff;
  cursor: grab;
}

.planning-item.status-draft { background: #3b82f6; }
.planning-item.status-review { background: #f59e0b; }
.planning-item.status-approved { background: #14b8a6; }
.planning-item.status-scheduled { background: #6366f1; }
.planning-item.status-published { background: #059669; }

.planning-side {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 0.85rem;
  background: #fff;
}

.planning-side h3 {
  margin: 0 0 0.7rem;
}

.planning-form,
.planning-tag-form {
  display: grid;
  gap: 0.5rem;
}

.planning-tags {
  margin-top: 1rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.8rem;
}

.planning-tags-list {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.planning-ai-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.planning-ai-form {
  align-content: start;
}

.planning-ai-output {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 0.9rem;
  background: #fff;
}

.planning-ai-list {
  display: grid;
  gap: 0.75rem;
}

.planning-ai-item {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 0.85rem;
  background: #fdfefe;
}

.planning-tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #13263c;
  padding: 0.26rem 0.5rem;
  background: color-mix(in srgb, var(--tag-color) 18%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--tag-color) 35%, #d0dbe7);
}

@media (max-width: 1080px) {
  .planning-shell {
    grid-template-columns: 1fr;
  }
  .planning-ai-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .insight-alert-grid {
    grid-template-columns: 1fr;
  }
}
