/* ==========================================================================
   ProfilePilot — Design System
   Warm storybook-on-cream editorial system (MindMarket-derived tokens)
   ========================================================================== */

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

:root {
  /* Colors */
  --color-fresh-grass: #8ed462;
  --color-cream-paper: #f5f1e4;
  --color-ink-black: #2c2e2a;
  --color-pure-white: #ffffff;
  --color-sandstone: #e0dbce;
  --color-stone-gray: #80827f;
  --color-hairline-mist: #d5d5d4;
  --color-pure-ink: #000000;
  --color-sky-pop: #2ba0ff;
  --color-coral-pop: #ff705d;
  --color-sunshine-pop: #f5e211;

  /* Typography */
  --font-inter: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --text-body-sm: 15px;
  --leading-body-sm: 1.5;
  --text-body-lg: 18px;
  --leading-body-lg: 1.5;
  --text-subheading: 20px;
  --leading-subheading: 1.25;
  --text-heading-sm: 30px;
  --leading-heading-sm: 1.2;
  --text-heading: 53px;
  --leading-heading: 1.15;
  --tracking-heading: -2.12px;
  --text-heading-lg: 81px;
  --leading-heading-lg: 1.2;
  --tracking-heading-lg: -4.86px;
  --text-display: 140px;
  --leading-display: 0.95;
  --tracking-display: -8.4px;

  /* Spacing */
  --spacing-4: 4px;
  --spacing-20: 20px;
  --spacing-60: 60px;
  --spacing-136: 136px;
  --spacing-216: 216px;

  /* Radii */
  --radius-lg: 10px;
  --radius-2xl: 20px;
  --radius-full: 50px;
  --radius-illustration: 63.75px;

  /* Layout */
  --page-max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-inter);
  background: var(--color-cream-paper);
  color: var(--color-ink-black);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body-lg);
  font-weight: 400;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p { margin: 0; }

.wrap {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 15px;
  padding: 11px 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-ghost {
  background: var(--color-pure-white);
  color: var(--color-ink-black);
  border: 1px solid var(--color-hairline-mist);
}

.btn-ghost .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-sky-pop);
  flex-shrink: 0;
}

.btn-coral {
  background: var(--color-coral-pop);
  color: var(--color-pure-white);
}

.btn-coral .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-pure-white);
  flex-shrink: 0;
}

.btn-dark {
  background: var(--color-ink-black);
  color: var(--color-cream-paper);
}

.btn-outline {
  background: transparent;
  color: var(--color-ink-black);
  border: 1.5px solid var(--color-ink-black);
}

.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */

.site-nav-outer {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 16px 24px 0;
}

.site-nav {
  max-width: var(--page-max-width);
  margin: 0 auto;
  background: var(--color-pure-white);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-hairline-mist);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  padding: 4px 8px 4px 4px;
  flex-shrink: 0;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.site-nav .brand {
  padding: 0 8px 0 4px;
}

.site-nav .brand-logo {
  height: 70px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  color: var(--color-ink-black);
}

.nav-links a:hover { background: var(--color-cream-paper); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-fresh-grass);
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-fresh-grass);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-signup-mobile { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right .nav-cta { display: none; }
  .site-nav .brand-logo { height: 36px; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 24px;
    right: 24px;
    background: var(--color-pure-white);
    border: 1px solid var(--color-hairline-mist);
    border-radius: 28px;
    padding: 10px;
    gap: 2px;
  }
  .nav-links .nav-signup-mobile {
    display: block;
    margin-top: 6px;
    background: var(--color-ink-black);
    color: var(--color-cream-paper);
    text-align: center;
    font-weight: 500;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 100px 0 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 6.4vw, 84px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.12;
  color: var(--color-ink-black);
}

.hero h1 .accent { color: var(--color-fresh-grass); }

.hero-sub {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: 20px;
  color: var(--color-ink-black);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ---------- Illustration ---------- */

.illustration-panel {
  padding: 60px 0 0;
}

.illustration-panel.tight { padding: 0; }

/* ---------- Section headings ---------- */

.section {
  padding: 90px 0;
}

.section-tight { padding: 50px 0; }

.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-stone-gray);
  border-bottom: 1px solid var(--color-stone-gray);
  padding-bottom: 3px;
  margin-bottom: 18px;
}

.section-head {
  max-width: 700px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 53px;
  font-weight: 500;
  letter-spacing: -2.12px;
  line-height: 1.1;
}

.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--color-ink-black);
}

.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */

.card {
  background: var(--color-pure-white);
  border-radius: 40px;
  padding: 32px;
  border: 1px solid var(--color-hairline-mist);
}

.card h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}

.card p { color: var(--color-stone-gray); font-size: 16px; }

/* Content Card — the editorial "messaging block" component: white surface,
   ~700px wide, centered on the cream canvas. */
.content-card {
  background: var(--color-pure-white);
  border-radius: 50px;
  padding: 56px;
  max-width: 700px;
}

.content-card.centered { margin-left: auto; margin-right: auto; text-align: center; }

.content-card h2 {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1.6px;
  line-height: 1.1;
}

.content-card p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--color-ink-black);
}

.content-card .hero-actions { justify-content: flex-start; margin-top: 28px; }
.content-card.centered .hero-actions { justify-content: center; }

@media (max-width: 700px) { .content-card { padding: 34px 28px; } }

@media (max-width: 700px) {
  .hero { padding: 56px 0 0; }
  .hero-sub { margin-top: 20px; }
  .hero-actions { margin-top: 24px; }
  .section { padding: 52px 0; }
  .section-tight { padding: 32px 0; }
  .section-head { margin-bottom: 32px; }
}

/* ---------- Icon swatches ---------- */

.icon-green { background: var(--color-fresh-grass); }
.icon-blue { background: var(--color-sky-pop); }
.icon-coral { background: var(--color-coral-pop); }
.icon-yellow { background: var(--color-sunshine-pop); }
.icon-sand { background: var(--color-sandstone); }

/* ---------- Service list — single-column "Service Card Link" rows ---------- */

.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-row {
  background: var(--color-pure-white);
  border-radius: 50px;
  padding: 30px 36px;
  border: 1px solid var(--color-hairline-mist);
}

.service-row-top {
  display: flex;
  align-items: center;
  gap: 28px;
}

.service-row-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-row-icon svg { width: 30px; height: 30px; }

.service-row-body { flex: 1; min-width: 0; }
.service-row-body h3 { font-size: 24px; font-weight: 500; margin-bottom: 6px; }
.service-row-body p { font-size: 16px; color: var(--color-stone-gray); margin: 0; }

.service-row-top .btn { flex-shrink: 0; }

.service-toggle .chevron { transition: transform 0.3s ease; }
.service-row.open .service-toggle .chevron { transform: rotate(180deg); }

/* Modern CSS-only accordion: animates to the content's real height instead
   of a guessed max-height, so panels of different lengths all animate
   cleanly. */
.service-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-row.open .service-detail { grid-template-rows: 1fr; }

.service-detail-inner { overflow: hidden; min-height: 0; }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--color-hairline-mist);
}

.service-detail-text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-ink-black);
  margin: 0 0 20px;
}

.service-detail-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-stone-gray);
  margin-bottom: 12px;
}

.service-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-ink-black);
}

.detail-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-ink-black);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-stat {
  border-radius: 28px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-self: start;
}

.stat-icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.stat-icon svg { width: 18px; height: 18px; }

.service-detail-stat .stat-number {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.service-detail-stat .stat-caption {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-ink-black);
}

.service-detail-stat.tint-green { background: rgba(142, 212, 98, 0.2); }
.service-detail-stat.tint-blue { background: rgba(43, 160, 255, 0.14); }
.service-detail-stat.tint-coral { background: rgba(255, 112, 93, 0.14); }
.service-detail-stat.tint-yellow { background: rgba(245, 226, 17, 0.28); }
.service-detail-stat.tint-sand { background: var(--color-sandstone); }

@media (max-width: 700px) {
  .service-row { padding: 26px; }
  .service-row-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .service-row-top .btn { align-self: flex-start; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail-stat { order: -1; }
}

/* ---------- Pull quote ---------- */

.pull-quote-group {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.pull-quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.pull-quote p {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.25;
  color: var(--color-ink-black);
}

.pull-quote .quote-person {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  color: var(--color-stone-gray);
}

.pull-quote .quote-person strong { color: var(--color-ink-black); font-weight: 500; }

@media (max-width: 700px) { .pull-quote p { font-size: 26px; } }
@media (max-width: 700px) { .pull-quote-group { gap: 40px; } }

/* ---------- How it works ---------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
}

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-hairline-mist);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-pure-white);
  background: var(--color-fresh-grass);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step h3 { font-size: 24px; font-weight: 500; margin-bottom: 8px; }
.step p { color: var(--color-stone-gray); font-size: 16px; margin: 0; }

/* ---------- Split section ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Lottie embeds ---------- */

.lottie-embed { width: 100%; }
.lottie-embed svg { display: block; margin: 0 auto; }

/* ---------- Plan note (simple, non-grid pricing mention) ---------- */

.plan-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.plan-list li { font-size: 16px; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-hairline-mist); }
.plan-list li:last-child { border-bottom: none; }
.plan-list .plan-price { color: var(--color-stone-gray); flex-shrink: 0; }
.plan-list .plan-original { text-decoration: line-through; color: var(--color-stone-gray); margin-right: 8px; }
.plan-list .plan-price.discount { color: var(--color-coral-pop); font-weight: 600; }

.doc-list { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.doc-list li { font-size: 16px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; color: var(--color-ink-black); }
.doc-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-fresh-grass); margin-top: 9px; flex-shrink: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-ink-black);
  border-radius: var(--radius-illustration);
  padding: 70px 60px;
  text-align: center;
  color: var(--color-cream-paper);
}

.cta-band h2 {
  font-size: 53px;
  font-weight: 500;
  letter-spacing: -2px;
  color: var(--color-pure-white);
}

.cta-band p { margin-top: 16px; font-size: 18px; color: var(--color-hairline-mist); }
.cta-band .hero-actions { margin-top: 32px; }

@media (max-width: 700px) {
  .cta-band { padding: 50px 28px; }
  .cta-band h2 { font-size: 36px; }
}

/* ---------- Footer ---------- */

.footer-accent {
  background: var(--color-sunshine-pop);
  margin-top: 100px;
  padding: 70px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

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

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; margin-bottom: 14px; }

.footer-col h4 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 15px; }
.footer-col a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(44,46,42,0.2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-ink-black);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Auth pages ---------- */

.auth-page {
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-x: hidden;
}

.auth-card {
  width: 100%;
  min-width: 0;
  max-width: 420px;
  background: var(--color-pure-white);
  border-radius: 40px;
  padding: 40px 36px;
  border: 1px solid var(--color-hairline-mist);
  transition: max-width 0.3s ease;
  overflow-x: hidden;
}

#checkoutContainer,
#checkoutContainer iframe {
  width: 100% !important;
  max-width: 100% !important;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-card h1 {
  font-size: 30px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .auth-sub {
  text-align: center;
  color: var(--color-stone-gray);
  font-size: 15px;
  margin-bottom: 28px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-inter);
  font-size: 15px;
  padding: 13px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-hairline-mist);
  background: var(--color-cream-paper);
  color: var(--color-ink-black);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--color-sky-pop);
  outline-offset: 1px;
}

.auth-foot {
  text-align: center;
  font-size: 14px;
  color: var(--color-stone-gray);
  margin-top: 20px;
}

.auth-foot a { color: var(--color-ink-black); border-bottom: 1px solid var(--color-stone-gray); }

.form-msg {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  display: none;
}

.form-msg.show { display: block; }
.form-msg.error { background: #fdeceb; color: #b23a2a; }
.form-msg.success { background: #eaf6e2; color: #3f6b26; }

.auth-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(245, 226, 17, 0.3);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-ink-black);
  margin-bottom: 20px;
}

.auth-notice .icon { flex-shrink: 0; font-size: 15px; line-height: 1.4; }

.btn-google {
  background: var(--color-pure-white);
  color: var(--color-ink-black);
  border: 1px solid var(--color-hairline-mist);
  justify-content: center;
}

.admin-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-ink-black);
  color: var(--color-cream-paper);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin: 0 auto 20px;
}

/* ---------- App shell (dashboard / admin) ---------- */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--color-pure-white);
  border-right: 1px solid var(--color-hairline-mist);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.app-sidebar .brand { padding: 4px 8px 4px 4px; margin-bottom: 24px; }

.app-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.app-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  color: var(--color-ink-black);
}

.app-nav a:hover { background: var(--color-cream-paper); }
.app-nav a.active { background: var(--color-ink-black); color: var(--color-cream-paper); }

.app-nav .icon-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-fresh-grass);
  flex-shrink: 0;
}

.app-nav a.active .icon-dot { background: var(--color-sunshine-pop); }

.sidebar-foot {
  border-top: 1px solid var(--color-hairline-mist);
  padding-top: 16px;
  margin-top: 16px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 8px;
}

.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-sandstone);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}

.sidebar-user-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.sidebar-user-email { font-size: 12px; color: var(--color-stone-gray); line-height: 1.3; }

.app-main {
  flex: 1;
  padding: 40px 44px;
  min-width: 0;
}

.app-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--color-pure-white);
  border-bottom: 1px solid var(--color-hairline-mist);
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 40;
}

@media (max-width: 900px) {
  .app-sidebar { display: none; }
  .app-sidebar.open { display: flex; position: fixed; z-index: 60; width: 260px; }
  .app-mobile-bar { display: flex; }
  .app-main { padding: 24px 18px; }
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.app-header h1 { font-size: 36px; font-weight: 500; letter-spacing: -1px; }
.app-header p { color: var(--color-stone-gray); margin-top: 6px; font-size: 15px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--color-pure-white);
  border-radius: 28px;
  padding: 22px;
  border: 1px solid var(--color-hairline-mist);
}

.stat-label { font-size: 13px; color: var(--color-stone-gray); margin-bottom: 10px; }
.stat-value { font-size: 34px; font-weight: 500; letter-spacing: -1px; }
.stat-value-sm { font-size: 17px; font-weight: 500; }
.stat-connect-link { color: var(--color-coral-pop); border-bottom: 1px solid var(--color-coral-pop); }
.stat-delta { font-size: 13px; margin-top: 6px; font-weight: 500; }
.stat-delta.up { color: #3f6b26; }
.stat-delta.down { color: #b23a2a; }

.panel {
  background: var(--color-pure-white);
  border-radius: 32px;
  border: 1px solid var(--color-hairline-mist);
  padding: 28px;
  margin-bottom: 24px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-head h2 { font-size: 21px; font-weight: 500; }

.connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: var(--color-cream-paper);
  border-radius: 20px;
  flex-wrap: wrap;
}

.connect-status { display: flex; align-items: center; gap: 12px; }

.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-dot.connected { background: var(--color-fresh-grass); }
.status-dot.disconnected { background: var(--color-coral-pop); }
.status-dot.warning { background: var(--color-sunshine-pop); }

.list-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-hairline-mist);
  align-items: flex-start;
}

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

.list-row-icon {
  width: 40px; height: 40px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.list-row-main { flex: 1; min-width: 0; }
.list-row-title { font-size: 15px; font-weight: 500; }
.list-row-sub { font-size: 13px; color: var(--color-stone-gray); margin-top: 3px; }
.list-row-meta { font-size: 13px; color: var(--color-stone-gray); flex-shrink: 0; white-space: nowrap; }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.badge-green { background: rgba(142,212,98,0.35); color: #3f6b26; }
.badge-yellow { background: rgba(245,226,17,0.35); color: #6b5f0a; }
.badge-coral { background: rgba(255,112,93,0.2); color: #b23a2a; }
.badge-gray { background: var(--color-sandstone); color: var(--color-stone-gray); }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-stone-gray);
  font-size: 15px;
}

table.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-stone-gray);
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--color-hairline-mist);
}
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-hairline-mist);
  font-size: 14px;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,46,42,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--color-pure-white);
  border-radius: 32px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  min-width: 0;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-head h2 { font-size: 22px; font-weight: 500; }

.icon-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-cream-paper);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.loading-state { text-align: center; padding: 60px 20px; color: var(--color-stone-gray); }

.auth-card.checkout-mode { max-width: 560px; }

#checkoutContainer { min-height: 1px; }

.checkout-modal .modal { max-width: 560px; }

@media (max-width: 560px) {
  .auth-page { padding: 20px 10px; }
  .auth-card { padding: 28px 14px; border-radius: 24px; }
  .modal { padding: 24px 14px; border-radius: 24px; }
}
