:root {
  color-scheme: light;
  --ink: #0b1830;
  --muted: #64748b;
  --soft: #edf5ff;
  --line: #d7e5f5;
  --paper: #f5f8fd;
  --white: #ffffff;
  --navy: #060c18;
  --navy-2: #0a1426;
  --lime: #54f1dd;
  --lime-dark: #0c6f72;
  --green: #1688d5;
  --amber: #c77a08;
  --red: #bd3d45;
  --blue: #41b8ff;
  --violet: #8b75ff;
  --shadow: 0 24px 70px rgba(15, 43, 84, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr);
  background: var(--white);
}

.auth-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  color: #f4f8ff;
  background:
    radial-gradient(circle at 18% 16%, rgba(65, 184, 255, .24), transparent 28%),
    radial-gradient(circle at 82% 80%, rgba(139, 117, 255, .22), transparent 34%),
    var(--navy);
}

.auth-story::after {
  content: "";
  position: absolute;
  inset: auto -120px -160px auto;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(84, 241, 221, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(65, 184, 255, .035), 0 0 0 108px rgba(139, 117, 255, .025);
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -.02em;
}

.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand small { display: block; color: #9eb1cc; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.auth-story__content { position: relative; z-index: 1; max-width: 560px; margin: 90px 0; }
.kicker { margin: 0 0 14px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-story .kicker { color: var(--lime); }
.auth-story h1 { margin: 0 0 18px; max-width: 10ch; font-size: clamp(42px, 6vw, 78px); line-height: .96; letter-spacing: -.065em; }
.auth-story p { max-width: 540px; margin: 0; color: #b4c3d9; font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.auth-proof { position: relative; z-index: 1; display: flex; gap: 26px; color: #9eb1cc; font-size: 13px; }
.auth-proof span { display: flex; align-items: center; gap: 8px; }
.auth-proof span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

.auth-panel { display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(100%, 460px); }
.auth-card__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; }
.auth-card__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(65, 184, 255, .13); }
.auth-card h2 { margin: 26px 0 10px; font-size: clamp(31px, 4vw, 46px); line-height: 1.04; letter-spacing: -.05em; }
.auth-card > p { margin: 0 0 28px; color: var(--muted); line-height: 1.65; }
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 16px; }
.field label, .field > span { font-size: 13px; font-weight: 760; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 105px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(65, 184, 255, .16); }
.field small { color: var(--muted); }
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 760;
  transition: transform .18s, background .18s, border-color .18s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button--primary { background: var(--navy); color: #fff; }
.button--lime { background: var(--lime); color: #06131e; }
.button--soft { border-color: var(--line); background: var(--white); color: var(--ink); }
.button--danger { border-color: #f0cbd0; background: #fff5f6; color: var(--red); }
.button--wide { width: 100%; margin-top: 18px; }
.auth-note { margin-top: 18px; padding: 13px 14px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 13px; line-height: 1.5; }
.auth-message { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #eef9f3; color: #176340; font-size: 14px; }
.auth-message.is-error { background: #fff1f2; color: #9f3038; }
.debug-link { margin-top: 12px; }

.portal { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  color: #eef7ff;
  background: var(--navy);
}
.sidebar .brand { padding: 0 9px 24px; }
.sidebar-nav { display: grid; gap: 5px; margin-top: 12px; }
.nav-button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #98abc7;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 660;
}
.nav-button:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-button.is-active { color: #f7fbff; background: linear-gradient(90deg, rgba(65,184,255,.18), rgba(84,241,221,.08)); }
.nav-icon { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; font-size: 12px; }
.nav-count { padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 11px; }
.sidebar-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot strong { display: block; font-size: 13px; }
.sidebar-foot span { display: block; overflow: hidden; margin-top: 3px; color: #8397b5; font-size: 12px; text-overflow: ellipsis; }
.sidebar-foot button { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--lime); cursor: pointer; font-size: 12px; font-weight: 700; }

.workspace { min-width: 0; }
.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 50px);
  border-bottom: 1px solid var(--line);
  background: rgba(245,248,253,.92);
  backdrop-filter: blur(14px);
}
.topbar__identity { min-width: 0; }
.topbar__identity strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.topbar__identity span { color: var(--muted); font-size: 12px; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.business-picker { max-width: 230px; padding: 9px 32px 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); }
.mobile-menu { display: none; }

.content { width: min(100%, 1480px); margin: 0 auto; padding: 34px clamp(20px, 4vw, 50px) 70px; }
.panel[hidden] { display: none; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-heading h1 { margin: 4px 0 7px; font-size: clamp(31px, 4vw, 48px); letter-spacing: -.052em; }
.page-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: #e9f7ef; color: #176541; font-size: 12px; font-weight: 760; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill--warning { background: #fff6df; color: #98630f; }
.status-pill--danger { background: #ffedef; color: #a72f39; }
.status-pill--neutral { background: #edf1ef; color: #596a62; }

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  padding: clamp(25px, 4vw, 44px);
  border-radius: 22px;
  color: #f8fff9;
  background:
    radial-gradient(circle at 86% 20%, rgba(84,241,221,.16), transparent 30%),
    radial-gradient(circle at 15% 100%, rgba(139,117,255,.14), transparent 38%),
    linear-gradient(135deg, #060c18, #0c2442);
  box-shadow: var(--shadow);
}
.hero-card h2 { max-width: 620px; margin: 6px 0 13px; font-size: clamp(28px, 4vw, 45px); line-height: 1.06; letter-spacing: -.05em; }
.hero-card p { max-width: 600px; margin: 0; color: #afc0d8; line-height: 1.6; }
.hero-card__status { align-self: center; display: grid; gap: 12px; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.055); }
.hero-status-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-status-row:last-child { padding: 0; border: 0; }
.hero-status-row span { color: #9eb0c9; font-size: 12px; }
.hero-status-row strong { font-size: 13px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.metric-card, .card { border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 7px 24px rgba(30,66,112,.045); }
.metric-card { min-height: 142px; padding: 19px; }
.metric-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card strong { display: block; margin-top: 18px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.04em; }
.metric-card small { display: block; margin-top: 4px; color: var(--muted); }
.progress { height: 6px; margin-top: 15px; overflow: hidden; border-radius: 999px; background: var(--soft); }
.progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .45s ease; }
.progress.is-warning span { background: var(--amber); }

.section-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; margin-top: 18px; }
.card { padding: 21px; }
.card--flush { padding: 0; overflow: hidden; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.card-heading h2, .card-heading h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.link-button { border: 0; background: none; color: var(--green); cursor: pointer; font-size: 12px; font-weight: 760; }
.readiness-list { display: grid; gap: 9px; }
.readiness-item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--soft); }
.readiness-item:last-child { border: 0; }
.check { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 8px; background: #eef2ef; color: #809088; font-size: 12px; font-weight: 900; }
.readiness-item.is-complete .check { background: #e4f7ec; color: var(--green); }
.readiness-item strong { display: block; font-size: 13px; }
.readiness-item small { color: var(--muted); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 16px; border-bottom: 1px solid var(--soft); text-align: left; vertical-align: middle; }
.data-table th { color: var(--muted); background: #fbfcfb; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.data-table td { font-size: 13px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table strong { display: block; }
.data-table small { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.empty { padding: 34px; color: var(--muted); text-align: center; }
.empty strong { display: block; margin-bottom: 5px; color: var(--ink); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .field--wide { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.stack { display: grid; gap: 18px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; }
.inline-form--four { grid-template-columns: 1fr 1.4fr .8fr auto; }

.hours-grid { display: grid; gap: 8px; }
.hours-row { display: grid; grid-template-columns: 110px 1fr 1fr 100px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--soft); }
.hours-row:last-child { border: 0; }
.hours-row input[type="time"] { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }

.item-list { display: grid; gap: 9px; }
.item-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 13px; border: 1px solid var(--soft); border-radius: 10px; }
.item-row strong { display: block; font-size: 13px; }
.item-row small { display: block; margin-top: 3px; color: var(--muted); }
.item-row__actions { display: flex; align-items: center; gap: 8px; }
.mini-button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 720; }

.onboarding-empty { width: min(100%, 680px); margin: 80px auto; padding: 42px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); text-align: center; box-shadow: var(--shadow); }
.onboarding-empty h1 { margin: 10px 0; font-size: 38px; letter-spacing: -.05em; }
.onboarding-empty p { color: var(--muted); line-height: 1.6; }

.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 390px; padding: 13px 16px; border-radius: 11px; background: var(--navy); color: #fff; box-shadow: 0 16px 45px rgba(0,0,0,.18); font-size: 13px; }
.toast.is-error { background: #8f2730; }
.skeleton { min-height: 18px; border-radius: 7px; background: linear-gradient(90deg, #edf1ef, #f7f9f8, #edf1ef); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.admin-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 6px 0 10px; }
.admin-hero h1 { margin: 5px 0 7px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.06em; }
.admin-hero p { margin: 0; color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.alert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.alert-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.alert-card span { color: var(--muted); font-size: 12px; }
.alert-card strong { display: block; margin-top: 9px; font-size: 26px; }
.alert-card.has-alert { border-color: #f0c3c7; background: #fff7f7; }
.integration-notice-card { margin-top: 18px; }
.business-name { display: flex; align-items: center; gap: 10px; }
.business-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eaf4ee; color: var(--green); font-size: 12px; font-weight: 800; }
.status-select { padding: 7px 26px 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; }

.billing-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 18px; }
.billing-grid .card { min-width: 0; }
.billing-grid .card.is-muted { background: #f9fbfe; }
.billing-grid .card-heading > strong { color: var(--navy-2); font-size: 20px; letter-spacing: -.03em; white-space: nowrap; }
.payment-methods { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.payment-methods legend { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 760; }
.payment-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
.payment-option:hover, .payment-option:has(input:checked) { border-color: rgba(65,184,255,.72); background: #f7fbff; box-shadow: 0 0 0 3px rgba(65,184,255,.09); }
.payment-option input { width: 16px; height: 16px; accent-color: var(--green); }
.payment-option strong, .payment-option small { display: block; }
.payment-option strong { font-size: 14px; }
.payment-option small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.card-brands { display: flex; gap: 5px; }
.card-brands b, .mp-mark { display: grid; place-items: center; min-width: 35px; height: 25px; padding: 0 6px; border: 1px solid #cfdded; border-radius: 6px; background: #fff; color: #163a68; font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.mp-mark { border-color: rgba(65,184,255,.35); background: #eaf7ff; color: #087ec3; font-size: 10px; }
.payment-security { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.subscription-summary { display: grid; grid-template-columns: minmax(95px, auto) 1fr; gap: 12px 18px; padding: 16px; border: 1px solid var(--soft); border-radius: 12px; background: #fbfdff; }
.subscription-summary span { color: var(--muted); font-size: 12px; }
.subscription-summary strong { font-size: 13px; text-align: right; }
.billing-actions { flex-wrap: wrap; }
.demo-payment { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; border-color: rgba(139,117,255,.28); background: linear-gradient(120deg, rgba(65,184,255,.06), rgba(139,117,255,.06)); }
.demo-payment h2 { margin: 0 0 6px; font-size: 20px; }
.demo-payment p:not(.kicker) { margin: 0; color: var(--muted); font-size: 13px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.billing-history { margin-top: 18px; }
.billing-history__heading { margin: 0; padding: 20px 20px 0; }

.whatsapp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.channel-card { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 30px); }
.channel-card::after { content: ""; position: absolute; z-index: 0; width: 190px; height: 190px; right: -95px; top: -95px; border-radius: 50%; background: rgba(65,184,255,.07); }
.channel-card > * { position: relative; z-index: 1; }
.channel-card--official::after { background: rgba(84,241,221,.1); }
.channel-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 760; }
.channel-card h2 { margin: 22px 0 9px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.045em; }
.channel-card > p { margin: 0; color: var(--muted); line-height: 1.6; }
.channel-badge { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.channel-badge--experimental { background: #fff3d4; color: #925f0d; }
.channel-badge--official { background: #e6f8ed; color: #176541; }
.channel-state { display: grid; grid-template-columns: auto 1fr; gap: 5px 18px; margin-top: 20px; padding: 15px; border: 1px solid var(--soft); border-radius: 12px; background: #fbfdff; }
.channel-state span { color: var(--muted); font-size: 12px; }
.channel-state strong { justify-self: end; font-size: 13px; }
.channel-state small { grid-column: 1 / -1; color: var(--muted); }
.channel-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.qr-stage { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; margin-top: 18px; padding: 16px; border: 1px solid rgba(65,184,255,.24); border-radius: 14px; background: linear-gradient(130deg, #f7fbff, #f8fffb); }
.qr-stage img, .qr-grid { width: 150px; height: 150px; border: 8px solid #fff; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(12,36,66,.12); }
.qr-grid { display: grid; grid-template-columns: repeat(var(--qr-size), 1fr); grid-template-rows: repeat(var(--qr-size), 1fr); }
.qr-grid span { background: #fff; }
.qr-grid span.is-dark { background: #071322; }
.qr-stage strong, .qr-stage small { display: block; }
.qr-stage small { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.demo-connection { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--soft); }
.demo-connection > span { margin-right: auto; color: var(--muted); font-size: 11px; font-weight: 760; text-transform: uppercase; }
.meta-requirements { display: grid; gap: 8px; margin-top: 20px; }
.meta-requirement { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--soft); color: var(--muted); }
.meta-requirement:last-child { border: 0; }
.meta-requirement span { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 7px; background: #eef1f0; font-size: 11px; }
.meta-requirement strong { font-size: 12px; font-weight: 700; }
.meta-requirement.is-complete { color: #176541; }
.meta-requirement.is-complete span { background: #e4f7ec; }
.channel-note { margin: 11px 0 0 !important; font-size: 11px; }
.connection-security { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; background: #f9fcff; }
.connection-security__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #e4f7ec; color: var(--green); font-weight: 900; }
.connection-security strong { font-size: 14px; }
.connection-security p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: 1fr; }
  .billing-grid { grid-template-columns: 1fr; }
  .whatsapp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-panel { min-height: 100vh; }
  .portal { display: block; }
  .sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: 270px; transform: translateX(-102%); transition: transform .25s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .mobile-menu { display: inline-flex; }
  .topbar { padding-inline: 16px; }
  .business-picker { max-width: 160px; }
  .split, .form-grid { grid-template-columns: 1fr; }
  .form-grid .field--wide { grid-column: auto; }
  .inline-form, .inline-form--four { grid-template-columns: 1fr; }
  .hours-row { grid-template-columns: 90px 1fr 1fr; }
  .hours-row .toggle { grid-column: 2 / -1; }
  .admin-hero { align-items: flex-start; flex-direction: column; }
  .demo-payment { align-items: flex-start; flex-direction: column; }
  .qr-stage { grid-template-columns: 120px 1fr; }
  .qr-stage img, .qr-grid { width: 120px; height: 120px; }
}

@media (max-width: 560px) {
  .auth-panel { padding: 22px; }
  .content { padding-inline: 15px; }
  .metric-grid, .alert-grid { grid-template-columns: 1fr; }
  .topbar__identity { display: none; }
  .business-picker { max-width: 135px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .card { padding: 17px; }
  .hero-card { border-radius: 17px; }
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row strong { grid-column: 1 / -1; }
  .hours-row .toggle { grid-column: 1 / -1; }
  .qr-stage { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Alta comercial iniciada desde Productos */
.signup-checkout { min-height: 100vh; background: radial-gradient(circle at 12% 12%, rgba(65,184,255,.13), transparent 28rem), radial-gradient(circle at 88% 30%, rgba(84,241,221,.09), transparent 30rem), var(--paper); }
.signup-checkout__topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(20px, 5vw, 72px); border-bottom: 1px solid rgba(255,255,255,.08); color: #f4f8ff; background: var(--navy); }
.signup-checkout__topbar .brand img { filter: brightness(0) invert(1); }
.signup-checkout__topbar .button--soft { border-color: rgba(255,255,255,.16); color: #e5edf7; background: rgba(255,255,255,.06); }
.signup-checkout__main { width: min(100% - 32px, 1120px); min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr); align-items: center; gap: clamp(42px, 8vw, 100px); margin: 0 auto; padding-block: 58px; }
.signup-checkout__intro h1 { max-width: 700px; margin: 8px 0 20px; color: var(--ink); font-size: clamp(42px, 6vw, 70px); line-height: .99; letter-spacing: -.064em; }
.signup-checkout__intro > p:not(.kicker) { max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.signup-checkout__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.signup-checkout__facts span { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.68); }
.signup-checkout__facts strong, .signup-checkout__facts small { display: block; }
.signup-checkout__facts strong { color: var(--ink); font-size: 14px; }
.signup-checkout__facts small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.signup-checkout__card { padding: clamp(26px, 4vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.signup-checkout__plan { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.signup-checkout__plan > div > span, .signup-checkout__plan > div > strong { display: block; }
.signup-checkout__plan > div:first-child span { color: var(--green); font-size: 11px; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.signup-checkout__plan > div:first-child strong { margin-top: 5px; color: var(--ink); font-size: 17px; }
.signup-checkout__plan > div:last-child { text-align: right; }
.signup-checkout__plan > div:last-child strong { color: var(--ink); font-size: 28px; letter-spacing: -.045em; }
.signup-checkout__plan > div:last-child span { color: var(--muted); font-size: 11px; }
.payment-options { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.payment-options legend { margin-bottom: 10px; color: var(--ink); font-size: 13px; font-weight: 780; }
.payment-brands { color: #61758e; font-size: 10px; font-weight: 820; white-space: nowrap; }
.signup-checkout__error { margin: 13px 0 0; padding: 11px 12px; border-radius: 9px; color: #9f3038; background: #fff1f2; font-size: 13px; }
.signup-checkout__security { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: center; }
.form-actions--center { justify-content: center; }

@media (max-width: 850px) {
  .signup-checkout__main { grid-template-columns: 1fr; max-width: 700px; }
}

@media (max-width: 560px) {
  .signup-checkout__topbar { padding-inline: 14px; }
  .signup-checkout__main { width: min(100% - 22px, 700px); padding-block: 38px; }
  .signup-checkout__intro h1 { font-size: clamp(38px, 12vw, 54px); }
  .signup-checkout__facts { grid-template-columns: 1fr; }
  .signup-checkout__card { padding: 22px 17px; border-radius: 17px; }
  .signup-checkout__plan { align-items: flex-start; flex-direction: column; }
  .signup-checkout__plan > div:last-child { text-align: left; }
  .payment-option { grid-template-columns: auto 1fr; }
  .payment-brands { grid-column: 2; }
}
