:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #1f2933;
  --muted: #667085;
  --line: #ddd8ce;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --blue: #2563eb;
  --rose: #be3455;
  --amber: #a45f12;
  --shadow: 0 18px 50px rgba(38, 31, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100%;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  min-width: max-content;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #1f2933;
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 280px;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 10px 0 30px rgba(38, 31, 24, 0.05);
}

.sidebar-brand {
  padding: 4px 4px 20px;
}

.sidenav {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.sidenav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.sidenav a:hover,
.sidenav a.active {
  background: #eef8f6;
  color: var(--primary-dark);
  text-decoration: none;
}

.sidenav-section {
  margin: 18px 10px 6px;
  color: #8a8174;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-user {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 14px 8px 10px;
  border-top: 1px solid var(--line);
}

.sidebar-user img,
.sidebar-user > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.sidebar-user img {
  object-fit: cover;
}

.sidebar-user > span {
  display: grid;
  place-items: center;
  background: #eef8f6;
  color: var(--primary-dark);
  font-weight: 900;
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user small {
  color: var(--muted);
  font-size: 0.76rem;
}

.logout-form {
  margin: 0;
  padding: 0 8px;
}

.logout-form button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.logout-form button:hover {
  background: #fff1f2;
  color: #9f1239;
}

.sidebar-backdrop {
  display: none;
}

.app-main {
  width: 100%;
  min-width: 0;
  margin-left: 280px;
}

.mobile-topbar {
  display: none;
}

.mobile-brand {
  color: var(--ink);
  font-weight: 900;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.topnav a:hover,
.topnav a.active {
  background: #eef8f6;
  color: var(--primary-dark);
  text-decoration: none;
}

.page {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.hero-panel,
.event-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.event-heading.public {
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: 3.6rem;
}

h2 {
  font-size: 1.1rem;
}

.lead {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.heading-actions,
.compact-action,
.pass-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.event-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
  align-items: start;
}

.event-builder,
.event-preview-panel {
  min-width: 0;
}

.event-preview-panel {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 20px;
}

.wizard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.wizard-header p,
.step-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.wizard-progress {
  flex: 0 0 180px;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e1d8;
}

.wizard-progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 180ms ease;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.wizard-step-tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.wizard-step-tab.active,
.wizard-step-tab.done {
  border-color: #b7dcd5;
  background: #eef8f6;
  color: var(--primary-dark);
}

.wizard-error {
  min-height: 22px;
  margin: 0 0 8px;
  color: #be123c;
  font-weight: 800;
}

.wizard-panel {
  display: grid;
  gap: 18px;
}

.wizard-panel[hidden] {
  display: none;
}

.step-copy span {
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-copy h3 {
  margin: 4px 0 0;
  font-size: 1.7rem;
  line-height: 1.08;
}

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

.type-card {
  position: relative;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
}

.type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-card strong,
.type-card small {
  display: block;
}

.type-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.type-card small {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.type-card.selected {
  border-color: #80c7ba;
  background: #eef8f6;
  box-shadow: inset 0 0 0 1px #80c7ba;
}

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

.range-value {
  color: var(--primary-dark);
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.is-invalid {
  border-color: #be123c;
  box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.12);
}

.event-live-preview {
  overflow: hidden;
}

.event-live-preview h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.preview-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.event-live-preview dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.event-live-preview dl div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.event-live-preview dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-live-preview dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stat span {
  display: block;
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: 900;
}

.stat small {
  color: var(--muted);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.span-2 {
  grid-column: span 2;
}

label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 0.84rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cfc8bc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  border-color: #bfd4cf;
  background: #eef8f6;
  color: var(--primary-dark);
}

.button.danger {
  background: #fff1f2;
  color: #9f1239;
  border-color: #fecdd3;
}

.button.tiny {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.button:disabled {
  opacity: 0.62;
  cursor: progress;
}

.button.disabled {
  opacity: 0.58;
  pointer-events: none;
}

.landing-page {
  min-height: 100vh;
  background: var(--bg);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  padding: 42px 0 70px;
}

.landing-copy h1 {
  max-width: 780px;
  font-size: 5rem;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.google-button {
  min-width: 210px;
}

.setup-note {
  display: grid;
  gap: 6px;
  max-width: 680px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #f4c580;
  border-radius: 8px;
  background: #fff7ed;
  color: #7c3f00;
}

.setup-note code {
  color: #5f3207;
  word-break: break-all;
}

.landing-product {
  min-width: 0;
}

.product-window {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.product-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5cec2;
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.product-stats div {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
}

.product-stats strong,
.product-stats small {
  display: block;
}

.product-stats strong {
  color: var(--primary-dark);
  font-size: 1.45rem;
}

.product-stats small {
  color: var(--muted);
  font-weight: 800;
}

.product-map {
  position: relative;
  height: 360px;
  overflow: hidden;
  border: 1px solid #cbc1b2;
  border-radius: 8px;
  background-color: #fbfaf7;
  background-image:
    linear-gradient(#ebe3d8 1px, transparent 1px),
    linear-gradient(90deg, #ebe3d8 1px, transparent 1px);
  background-size: 34px 34px;
}

.product-map span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 64px;
  height: 64px;
  border: 2px solid #83c5b8;
  border-radius: 50%;
  background: #e7f6f2;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 64px;
}

.landing-features article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.landing-features strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.landing-features p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.oauth-debug {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.debug-copy {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid #b7dcd5;
  border-radius: 8px;
  background: #eef8f6;
}

.debug-copy code {
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 900;
  word-break: break-all;
}

.debug-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.debug-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.debug-list dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.debug-list dd {
  margin: 5px 0 0;
  word-break: break-all;
}

.debug-actions {
  margin-top: 22px;
}

.flash-stack {
  position: fixed;
  top: 76px;
  right: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.flash {
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid #bfe3db;
  background: #ecfdf7;
  color: #145044;
  box-shadow: var(--shadow);
  font-weight: 750;
}

.flash.error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.billing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1400px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.billing-banner strong {
  display: block;
  color: var(--ink);
}

.billing-banner p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.billing-banner.warning {
  border-color: #f4c580;
  background: #fff7ed;
}

.billing-banner.info {
  border-color: #b7dcd5;
  background: #eef8f6;
}

.event-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
}

.event-row:hover {
  border-color: #9fcfc5;
  text-decoration: none;
}

.event-row strong,
.event-row small {
  display: block;
}

.event-row small {
  margin-top: 4px;
  color: var(--muted);
}

.metric {
  min-width: max-content;
  color: var(--primary-dark);
  font-weight: 900;
}

.empty-state {
  margin-top: 16px;
  padding: 18px;
  border: 1px dashed #c9c1b4;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}

.empty-state strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 60px auto;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}

.table-cards,
.map-table-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.7fr 64px auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.mini-card small {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.qr-grid > div {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  text-align: center;
}

.qr-box {
  display: grid;
  place-items: center;
  width: 154px;
  min-height: 154px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-box.large {
  width: 290px;
  min-height: 290px;
}

.qr-box svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #4b5563;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table td strong,
.data-table td small {
  display: block;
}

.data-table td small {
  margin-top: 4px;
  color: var(--muted);
}

.status,
.check {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.status.pendiente {
  color: #92400e;
  background: #fff7ed;
}

.status.confirmado,
.check.yes {
  color: #14532d;
  background: #dcfce7;
}

.status.declinado,
.check.no {
  color: #991b1b;
  background: #fee2e2;
}

.status.trialing,
.status.active {
  color: #14532d;
  background: #dcfce7;
}

.status.pending_payment {
  color: #92400e;
  background: #fff7ed;
}

.status.canceled,
.status.inactive {
  color: #475569;
  background: #e2e8f0;
}

.dashboard-grid {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.subscription-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.subscription-summary strong {
  font-size: 1.8rem;
}

.subscription-summary span {
  color: var(--primary-dark);
  font-weight: 900;
}

.subscription-summary small,
.limit-row {
  color: var(--muted);
  font-weight: 700;
}

.limit-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.subscription-note {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
}

.subscription-note strong {
  color: var(--ink);
}

.subscription-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.subscription-note.is-ok {
  border: 1px solid #bfe3db;
  background: #ecfdf7;
}

.subscription-note.is-blocked {
  border: 1px solid #f4c580;
  background: #fff7ed;
}

.subscription-note .button {
  width: max-content;
  margin-top: 4px;
}

.setup-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.setup-panel {
  width: min(780px, 100%);
}

.setup-panel h1 {
  font-size: 3rem;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.setup-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.setup-grid span,
.setup-grid strong {
  display: block;
}

.setup-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.setup-error {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: #fff1f2;
  color: #9f1239;
  white-space: pre-wrap;
}

.settings-panel {
  max-width: 980px;
}

.settings-stack {
  display: grid;
  gap: 20px;
}

.form-section {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.form-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
}

.toggle-row span {
  color: var(--ink);
}

.billing-panel {
  display: grid;
  gap: 18px;
  max-width: 1100px;
}

.section-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.billing-stack {
  display: grid;
  gap: 16px;
}

.billing-summary-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.billing-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.billing-summary-header h3 {
  margin: 6px 0 0;
  font-size: 1.8rem;
}

.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.billing-summary-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-summary-grid span,
.billing-summary-grid strong {
  display: block;
}

.billing-summary-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.billing-summary-grid strong {
  margin-top: 6px;
  color: var(--ink);
  line-height: 1.35;
}

.billing-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.billing-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.inline-action-form {
  margin: 0;
}

.billing-note {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #b7dcd5;
  border-radius: 8px;
  background: #eef8f6;
}

.billing-note strong {
  color: var(--primary-dark);
}

.billing-note p {
  margin: 0;
  color: var(--muted);
}

.billing-note code {
  color: var(--primary-dark);
  word-break: break-word;
}

.billing-setup-card,
.billing-pending-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 8px;
}

.billing-setup-card {
  border: 1px solid #f4c580;
  background: #fff7ed;
}

.billing-pending-card {
  border: 1px solid #b7dcd5;
  background: #eef8f6;
}

.billing-setup-card strong,
.billing-pending-card strong,
.billing-pending-card h3 {
  color: var(--ink);
}

.billing-setup-card p,
.billing-pending-card p {
  margin: 0;
  color: var(--muted);
}

.billing-checklist {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.billing-checklist small {
  color: #7c3f00;
  font-weight: 800;
  word-break: break-word;
}

.billing-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.billing-plan-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-plan-card.current {
  border-color: #80c7ba;
  background: #eef8f6;
  box-shadow: inset 0 0 0 1px #80c7ba;
}

.billing-plan-card.pending {
  border-color: #f4c580;
  box-shadow: inset 0 0 0 1px #f4c580;
}

.billing-plan-card > span {
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-plan-card strong {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.billing-plan-card strong small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.billing-plan-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.billing-plan-facts {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.billing-plan-facts small {
  color: var(--ink);
  font-weight: 800;
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #dcfce7;
  color: #14532d;
  font-weight: 850;
}

.plan-chip.muted {
  background: #e2e8f0;
  color: #475569;
}

.plan-action-form {
  margin-top: auto;
}

.plan-action {
  width: 100%;
}

.billing-plan-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.billing-card-shell {
  display: grid;
  gap: 14px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.billing-card-shell.is-open {
  animation: stepIn 180ms ease;
}

.billing-card-shell-copy {
  display: grid;
  gap: 6px;
}

.billing-card-shell-copy strong {
  font-size: 1rem;
  color: var(--ink);
}

.billing-card-shell-copy p {
  margin: 0;
}

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

.billing-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.billing-card-field {
  display: grid;
  gap: 8px;
}

.billing-card-field span {
  color: var(--ink);
  font-weight: 800;
}

.billing-card-frame {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-card-frame iframe {
  width: 100% !important;
  min-height: 22px;
}

.billing-card-help {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed #b7dcd5;
  border-radius: 8px;
  background: #f8fffd;
}

.billing-card-help small {
  color: var(--muted);
  line-height: 1.5;
}

.billing-card-help code {
  color: var(--primary-dark);
}

.billing-card-error {
  min-height: 20px;
  margin: 0;
}

.subscription-inline-note {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #b7dcd5;
  border-radius: 8px;
  background: #eef8f6;
}

.subscription-inline-note strong {
  color: var(--primary-dark);
}

.subscription-inline-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.subscription-inline-note.locked {
  border-color: #f4c580;
  background: #fff7ed;
}

.subscription-inline-note.locked strong {
  color: #7c3f00;
}

.event-access-lock {
  display: grid;
  gap: 18px;
}

.row-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions form {
  margin: 0;
}

.quick-edit {
  position: relative;
}

.quick-edit summary {
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid #d6cec2;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  list-style: none;
}

.quick-edit summary::-webkit-details-marker {
  display: none;
}

.quick-edit[open] summary {
  background: #f7f2e9;
  color: var(--ink);
}

.quick-edit-form {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 8;
  display: grid;
  gap: 10px;
  width: 280px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.delete-inline {
  margin-top: 8px;
}

.link-danger {
  padding: 0;
  border: 0;
  background: transparent;
  color: #be123c;
  cursor: pointer;
  font-weight: 850;
}

.danger-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.table-search {
  max-width: 280px;
}

.map-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.map-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.stack-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.stack-form.compact label {
  font-size: 0.78rem;
}

.map-table-list details {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.map-table-list summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 850;
}

.map-table-list summary span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.map-shell {
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9e2d7;
  box-shadow: var(--shadow);
}

.seat-map {
  position: relative;
  min-width: 700px;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #cbc1b2;
  border-radius: 8px;
  background-color: #fbfaf7;
  background-image:
    linear-gradient(#ebe3d8 1px, transparent 1px),
    linear-gradient(90deg, #ebe3d8 1px, transparent 1px);
  background-size: 40px 40px;
}

.stage-zone {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  display: grid;
  place-items: center;
  height: 58px;
  border: 1px dashed #b8ad9c;
  border-radius: 8px;
  color: #766b5b;
  font-size: 0.84rem;
  font-weight: 850;
  pointer-events: none;
}

.map-table {
  position: absolute;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 2px solid color-mix(in srgb, var(--table-color), #111 14%);
  background: color-mix(in srgb, var(--table-color), #fff 84%);
  color: #14201c;
  user-select: none;
  touch-action: none;
  box-shadow: 0 8px 18px rgba(31, 41, 51, 0.1);
}

.map-table.round {
  border-radius: 999px;
}

.map-table.rect {
  border-radius: 8px;
}

.map-table strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.map-table small {
  color: #31433e;
  font-size: 0.72rem;
  font-weight: 900;
}

.seat-map.editable .map-table {
  cursor: grab;
}

.seat-map.editable .map-table.dragging {
  z-index: 10;
  cursor: grabbing;
  outline: 3px solid rgba(15, 118, 110, 0.24);
}

.seat-map.readonly .map-table.highlight {
  outline: 4px solid #f59e0b;
  outline-offset: 3px;
}

.guest-chip {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 14px;
  border: 1px solid #f4c580;
  border-radius: 8px;
  background: #fff7ed;
}

.guest-chip span {
  color: var(--muted);
  font-weight: 800;
}

.pass-page,
.checkin-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 150px);
}

.pass-card {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.pass-card h1 {
  font-size: 2.2rem;
}

.pass-person {
  display: grid;
  gap: 4px;
}

.pass-person span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pass-person strong {
  font-size: 1.45rem;
}

.checkin-card {
  width: min(560px, 100%);
  text-align: center;
}

.checkin-card h1 {
  font-size: 3rem;
}

.arrival-state {
  margin: 22px auto;
  padding: 16px;
  border-radius: 8px;
  font-weight: 900;
}

.arrival-state.success {
  background: #dcfce7;
  color: #14532d;
}

.arrival-state.pending {
  background: #fff7ed;
  color: #92400e;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3rem;
  }

  .landing-copy h1 {
    font-size: 4rem;
  }

  .setup-panel h1 {
    font-size: 2.6rem;
  }

  .hero-panel,
  .event-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sidebar {
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    background: rgba(31, 41, 51, 0.38);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .app-main {
    margin-left: 0;
  }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
  }

  .grid.two,
  .stats-row,
  .event-builder-layout,
  .map-workspace {
    grid-template-columns: 1fr;
  }

  .event-preview-panel {
    position: static;
  }

  .landing-hero,
  .landing-features {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: 0;
    padding-top: 28px;
  }

  .map-sidebar {
    position: static;
    max-height: none;
  }

  .mini-card,
  .inline-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 20px, 1400px);
    padding-top: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  .panel,
  .hero-panel,
  .event-heading {
    padding: 16px;
  }

  .form-grid,
  .qr-grid,
  .stats-row,
  .event-type-grid,
  .builder-options,
  .mini-card,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .wizard-header,
  .wizard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .billing-banner,
  .billing-summary-header {
    flex-direction: column;
  }

  .wizard-progress {
    flex-basis: auto;
    width: 100%;
  }

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

  .span-2 {
    grid-column: auto;
  }

  .quick-edit-form {
    right: auto;
    left: 0;
    width: min(280px, calc(100vw - 40px));
  }

  .subscription-note .button {
    width: 100%;
  }

  .billing-banner .button,
  .billing-actions-row .button {
    width: 100%;
  }

  .billing-card-grid {
    grid-template-columns: 1fr;
  }

  .billing-plan-actions {
    align-items: stretch;
  }

  .qr-box.large {
    width: 240px;
    min-height: 240px;
  }
}

@media print {
  .sidebar,
  .mobile-topbar,
  .sidebar-backdrop,
  .heading-actions,
  .flash-stack,
  .button.secondary,
  .table-search,
  .quick-edit,
  .row-actions form,
  .section-title a {
    display: none !important;
  }

  body,
  .page {
    background: #fff;
  }

  .panel,
  .pass-card {
    box-shadow: none;
  }

  .data-table {
    min-width: 0;
    font-size: 11px;
  }
}

.landing-page.futuristic {
  min-height: 100vh;
  background: #070d10;
  color: #f8fafc;
}

.landing-page.futuristic .landing-hero {
  position: relative;
  display: block;
  width: 100%;
  min-height: 88svh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.landing-page.futuristic .landing-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 45%;
  background: linear-gradient(180deg, rgba(7, 13, 16, 0), #070d10);
  pointer-events: none;
}

.landing-hero-media,
.landing-hero-shade {
  position: absolute;
  inset: 0;
}

.landing-hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.landing-hero-shade {
  background: rgba(3, 10, 14, 0.58);
}

.landing-page.futuristic .landing-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.landing-brand,
.landing-brand small,
.landing-brand strong {
  color: #fff;
}

.landing-page.futuristic .landing-copy {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px, 12vh, 120px) 0 130px;
}

.landing-page.futuristic .eyebrow {
  color: #68f3df;
}

.landing-page.futuristic .landing-copy h1 {
  max-width: 820px;
  color: #fff;
  font-size: 6rem;
  line-height: 0.95;
}

.landing-page.futuristic .lead {
  max-width: 680px;
  color: #d3dde6;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(10px);
}

.button.ghost:hover {
  border-color: rgba(104, 243, 223, 0.55);
  background: rgba(104, 243, 223, 0.14);
}

.landing-page.futuristic .button.primary {
  background: #18bfa9;
  box-shadow: 0 0 30px rgba(24, 191, 169, 0.28);
}

.landing-page.futuristic .button.primary:hover {
  background: #21d7be;
}

.setup-note.dark {
  border-color: rgba(245, 158, 11, 0.46);
  background: rgba(42, 27, 5, 0.72);
  color: #ffe8b5;
}

.setup-note.dark code {
  color: #fff5d6;
}

.landing-signal {
  position: absolute;
  right: max(16px, calc((100vw - 1240px) / 2));
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  width: min(560px, calc(100% - 32px));
}

.landing-signal span {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(142, 255, 236, 0.22);
  border-radius: 8px;
  background: rgba(3, 12, 16, 0.62);
  backdrop-filter: blur(14px);
  animation: signalFloat 5s ease-in-out infinite;
}

.landing-signal span:nth-child(2) {
  animation-delay: 0.4s;
}

.landing-signal span:nth-child(3) {
  animation-delay: 0.8s;
}

.landing-signal strong,
.landing-signal small {
  display: block;
}

.landing-signal strong {
  color: #fff;
  font-size: 1.1rem;
}

.landing-signal small {
  margin-top: 6px;
  color: #a7bac8;
  font-weight: 800;
}

.landing-page.futuristic .landing-features {
  width: min(1240px, calc(100% - 32px));
  padding: 34px 0 24px;
}

.landing-page.futuristic .landing-features article {
  border-color: rgba(142, 255, 236, 0.16);
  background: #0d171c;
  box-shadow: none;
}

.landing-page.futuristic .landing-features strong {
  color: #fff;
}

.landing-page.futuristic .landing-features p {
  color: #a7bac8;
}

.section-kicker {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 20px;
}

.section-kicker h2 {
  max-width: 720px;
  color: #fff;
  font-size: 3rem;
  line-height: 1.02;
}

.landing-command,
.landing-flow,
.landing-plans {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

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

.animated-card {
  --card-accent: 104, 243, 223;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.animated-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(var(--card-accent), 0.14) 42%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
  pointer-events: none;
}

.animated-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--card-accent), 0.44);
}

.animated-card:hover::before {
  transform: translateX(120%);
}

.command-card,
.plan-card,
.flow-track article {
  padding: 22px;
  border: 1px solid rgba(142, 255, 236, 0.16);
  border-radius: 8px;
  background: #0d171c;
}

.command-card span,
.plan-card span,
.flow-track span {
  color: #68f3df;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-card strong,
.plan-card strong,
.flow-track strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 1.2rem;
}

.command-card p,
.plan-card p,
.flow-track p {
  margin: 10px 0 0;
  color: #a7bac8;
  line-height: 1.5;
}

.landing-features article:nth-child(2),
.command-card:nth-child(3n + 2),
.plan-card:nth-child(2),
.flow-track article:nth-child(2) {
  --card-accent: 246, 199, 104;
}

.landing-features article:nth-child(3),
.command-card:nth-child(3n),
.plan-card:nth-child(3),
.flow-track article:nth-child(3) {
  --card-accent: 130, 180, 255;
}

.command-card span,
.plan-card span,
.flow-track span {
  color: rgb(var(--card-accent, 104, 243, 223));
}

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

.flow-track article {
  min-height: 190px;
}

.flow-track span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(var(--card-accent, 104, 243, 223), 0.4);
  border-radius: 50%;
  background: rgba(var(--card-accent, 104, 243, 223), 0.08);
  font-size: 1rem;
}

.plan-card strong {
  font-size: 2.3rem;
}

.plan-card strong::after {
  content: " / mes";
  color: #a7bac8;
  font-size: 0.9rem;
  font-weight: 800;
}

.plan-card.featured {
  border-color: rgba(104, 243, 223, 0.56);
  background: linear-gradient(180deg, rgba(24, 191, 169, 0.16), #0d171c 62%);
}

.landing-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 76px;
}

.showcase-copy h2 {
  margin: 0;
  max-width: 520px;
  color: #fff;
  font-size: 3.5rem;
}

.showcase-copy p:not(.eyebrow) {
  max-width: 560px;
  color: #a7bac8;
  line-height: 1.6;
}

.landing-showcase figure {
  margin: 0;
}

.landing-showcase img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(142, 255, 236, 0.18);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.landing-final-cta {
  width: 100%;
  margin: 28px 0 0;
  padding: 56px max(16px, calc((100vw - 1040px) / 2)) 80px;
  border-top: 1px solid rgba(142, 255, 236, 0.2);
  background:
    linear-gradient(135deg, rgba(24, 191, 169, 0.18), transparent 48%),
    #0d171c;
  text-align: center;
}

.landing-final-cta h2 {
  max-width: 780px;
  margin: 0 auto 22px;
  color: #fff;
  font-size: 3rem;
  line-height: 1.05;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease var(--reveal-delay, 0ms), transform 520ms ease var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .landing-page.futuristic .landing-hero {
    min-height: auto;
  }

  .landing-page.futuristic .landing-copy {
    padding: 56px 0 148px;
  }

  .landing-page.futuristic .landing-copy h1 {
    font-size: 4.6rem;
  }

  .showcase-copy h2 {
    font-size: 3rem;
  }

  .landing-signal {
    left: 16px;
    right: 16px;
    bottom: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
  }

  .landing-showcase {
    grid-template-columns: 1fr;
  }

  .command-grid,
  .plan-grid,
  .flow-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .landing-page.futuristic .landing-nav {
    align-items: flex-start;
  }

  .landing-page.futuristic .landing-copy {
    padding: 34px 0 28px;
  }

  .landing-page.futuristic .landing-copy h1 {
    font-size: 3rem;
  }

  .landing-signal {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    width: min(100% - 32px, 1240px);
    margin: 0 auto 20px;
  }

  .landing-page.futuristic .landing-features {
    grid-template-columns: 1fr;
  }

  .section-kicker h2,
  .showcase-copy h2,
  .landing-final-cta h2 {
    font-size: 2rem;
  }

  .command-grid,
  .plan-grid,
  .flow-track {
    grid-template-columns: 1fr;
  }

  .landing-final-cta {
    padding-top: 34px;
    padding-bottom: 48px;
  }
}

.google-native-button {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  line-height: 0;
}

.landing-google-button {
  width: 300px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.google-native-button iframe {
  max-width: 100%;
  border-radius: 8px !important;
}

.landing-auth-actions {
  gap: 12px;
}

.manual-button {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  backdrop-filter: blur(10px);
}

.manual-button:hover {
  border-color: rgba(246, 199, 104, 0.55);
  background: rgba(246, 199, 104, 0.16);
  color: #fff;
}

.text-button {
  min-height: 44px;
  border-color: transparent;
  background: transparent;
  color: #68f3df;
}

.text-button:hover {
  background: rgba(104, 243, 223, 0.1);
  color: #fff;
}

.landing-final-cta .google-native-button,
.landing-final-cta .button {
  display: inline-flex;
  margin: 4px 6px;
  vertical-align: middle;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.78fr);
  min-height: 100vh;
  background: #071014;
  color: #fff;
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 34px;
  overflow: hidden;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 16, 20, 0.72), rgba(7, 16, 20, 0.26));
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.auth-visual h1 {
  max-width: 620px;
  color: #fff;
  font-size: 4.2rem;
  line-height: 0.98;
}

.auth-visual p:not(.eyebrow) {
  max-width: 560px;
  color: #cfdbe3;
  font-size: 1.05rem;
  line-height: 1.6;
}

.auth-brand {
  color: #fff;
}

.auth-brand .brand-mark {
  background: #18bfa9;
  color: #071014;
}

.auth-brand small {
  color: #b8c9d4;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 42px;
  background:
    linear-gradient(180deg, rgba(24, 191, 169, 0.08), transparent 36%),
    #f4f7f8;
  color: var(--ink);
}

.auth-card {
  display: grid;
  gap: 18px;
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid #dce4e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
}

.auth-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.2rem;
}

.auth-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  line-height: 1.5;
}

.auth-heading p:not(.eyebrow),
.auth-switch,
.auth-fallback {
  color: var(--muted);
}

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

.auth-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6dbe3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form input:focus {
  outline: none;
  border-color: #18bfa9;
  box-shadow: 0 0 0 4px rgba(24, 191, 169, 0.14);
}

.auth-form .button {
  width: 100%;
  justify-content: center;
  min-height: 46px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #98a2b3;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-divider span {
  white-space: nowrap;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #d6dbe3;
}

.auth-switch,
.auth-fallback {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
}

.google-auth-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dce4e8;
  border-radius: 8px;
  background: #f8fafc;
}

.google-auth-box > span {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.google-auth-box .google-native-button {
  width: 360px;
  max-width: 100%;
}

.onboarding-page {
  min-height: 100vh;
  padding: 24px;
  background: #071014;
  color: #fff;
}

.onboarding-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1fr);
  min-height: calc(100vh - 48px);
  border: 1px solid rgba(142, 255, 236, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #0d171c;
}

.onboarding-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  background:
    linear-gradient(140deg, rgba(24, 191, 169, 0.16), transparent 42%),
    linear-gradient(180deg, #101f25, #091115);
}

.onboarding-side h1 {
  color: #fff;
  font-size: 3.4rem;
  line-height: 1;
}

.onboarding-side p:not(.eyebrow) {
  max-width: 460px;
  color: #b8c9d4;
  line-height: 1.6;
}

.onboarding-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.onboarding-progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: #18bfa9;
  transition: width 240ms ease;
}

.onboarding-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 44px;
  background: #f8fafc;
  color: var(--ink);
}

.onboarding-step {
  animation: stepIn 240ms ease both;
}

.step-count {
  display: inline-flex;
  margin-bottom: 14px;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.onboarding-step h2 {
  max-width: 680px;
  color: var(--ink);
  font-size: 2.7rem;
  line-height: 1;
}

.onboarding-step p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.55;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

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

.choice-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid #d6dbe3;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.choice-card small {
  color: var(--muted);
  line-height: 1.45;
}

.choice-card:hover,
.choice-card.selected {
  transform: translateY(-3px);
  border-color: #18bfa9;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.12);
}

.onboarding-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.onboarding-summary span {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid #d6dbe3;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.onboarding-summary strong {
  color: var(--ink);
  font-size: 1rem;
}

.onboarding-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

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

@media (max-width: 980px) {
  .auth-page,
  .onboarding-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual,
  .auth-panel {
    min-height: auto;
  }

  .auth-visual {
    min-height: 460px;
  }

  .auth-visual h1,
  .onboarding-side h1 {
    font-size: 3rem;
  }

  .auth-panel,
  .onboarding-card {
    padding: 28px;
  }

  .auth-card {
    width: min(100%, 560px);
  }

  .choice-grid,
  .choice-grid.two,
  .onboarding-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .auth-page {
    display: block;
  }

  .auth-visual {
    min-height: 360px;
    padding: 20px;
  }

  .auth-visual h1,
  .onboarding-side h1 {
    font-size: 2.25rem;
  }

  .auth-panel,
  .onboarding-card,
  .onboarding-side {
    padding: 20px;
  }

  .auth-card {
    width: 100%;
    padding: 20px;
    box-shadow: none;
  }

  .google-auth-box .google-native-button,
  .landing-google-button {
    width: 100%;
  }

  .landing-auth-actions .button,
  .landing-auth-actions .google-native-button {
    width: 100%;
  }

  .onboarding-page {
    padding: 0;
  }

  .onboarding-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .onboarding-step h2 {
    font-size: 2rem;
  }

  .choice-grid,
  .choice-grid.two,
  .onboarding-summary {
    grid-template-columns: 1fr;
  }

  .onboarding-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .onboarding-actions .button {
    justify-content: center;
    width: 100%;
  }
}

/* Final auth/landing polish: keep these rules last so Apache/browser cache updates cannot leave the auth pages half-styled. */
body .landing-auth-actions {
  align-items: center;
  gap: 10px;
  max-width: 760px;
}

body .landing-auth-actions.compact {
  gap: 12px;
}

body .hero-start-button {
  min-width: 138px;
  min-height: 42px;
  padding-inline: 20px;
  background: #18bfa9;
  color: #061115;
  box-shadow: 0 16px 34px rgba(24, 191, 169, 0.22);
}

body .hero-start-button:hover {
  background: #34e2ca;
  color: #061115;
}

body .landing-google-button {
  width: 250px;
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 16, 20, 0.58);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

body .landing-auth-actions .manual-button,
body .landing-final-cta .manual-button {
  min-height: 40px;
  padding-inline: 15px;
  border-color: rgba(104, 243, 223, 0.34);
  background: rgba(104, 243, 223, 0.1);
  color: #dffff8;
}

body .landing-auth-actions .text-button {
  min-height: 40px;
  padding-inline: 12px;
  color: #8efdec;
}

body .auth-page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
  background: #071014;
  color: #fff;
}

body .auth-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
}

body .auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 15, 0.9) 0%, rgba(5, 11, 15, 0.76) 42%, rgba(5, 11, 15, 0.46) 100%),
    linear-gradient(180deg, rgba(5, 11, 15, 0.14), rgba(5, 11, 15, 0.78));
}

body .auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body .auth-visual > * {
  position: relative;
  z-index: 1;
}

body .auth-visual > div {
  width: min(620px, calc(100% - 500px));
  padding-bottom: clamp(18px, 7vh, 80px);
}

body .auth-visual h1 {
  max-width: 620px;
  color: #fff;
  font-size: 4rem;
  line-height: 0.98;
}

body .auth-visual p:not(.eyebrow) {
  max-width: 540px;
  color: #d3dde6;
  font-size: 1.02rem;
  line-height: 1.6;
}

body .auth-panel {
  position: relative;
  z-index: 1;
  grid-column: 2;
  align-items: stretch;
  justify-content: center;
  min-height: auto;
  padding: 0;
  background: transparent;
}

body .auth-card {
  width: 100%;
  max-width: 430px;
  padding: 26px;
  border: 1px solid rgba(216, 226, 232, 0.92);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

body .auth-heading .eyebrow {
  color: #0f766e;
}

body .auth-heading h2 {
  font-size: 2rem;
}

body .google-auth-box {
  gap: 9px;
  padding: 13px;
  border-color: #dde7ea;
  background: #fff;
}

body .google-login-button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  width: min(100%, 320px);
  min-height: 48px;
  border: 1px solid #d4dbe3;
  border-radius: 8px;
  background: #fff;
  color: #1f2933;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body .google-login-button:hover {
  transform: translateY(-1px);
  border-color: #b8c3cf;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  text-decoration: none;
}

body .google-login-button strong {
  display: block;
  padding-right: 14px;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

body .google-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 100%;
  color: #4285f4;
  font-size: 1.28rem;
  font-weight: 900;
}

body .auth-divider {
  margin: 2px 0;
  color: #718096;
  font-size: 0.72rem;
}

body .auth-form {
  gap: 12px;
}

body .auth-form label {
  gap: 6px;
  font-size: 0.84rem;
}

body .auth-form input {
  min-height: 44px;
  padding-inline: 13px;
  border-color: #d3dde4;
  background: #fff;
}

body .auth-form .button {
  min-height: 44px;
  background: #0f766e;
}

body .auth-form .button:hover {
  background: #115e59;
}

body .auth-switch,
body .auth-fallback {
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  body .auth-page {
    display: block;
    min-height: 100vh;
    padding: 0;
    overflow: auto;
    background: #f4f7f8;
  }

  body .auth-visual {
    position: relative;
    z-index: 0;
    min-height: 390px;
    padding: 24px;
  }

  body .auth-visual > div {
    width: 100%;
    max-width: 620px;
    padding-bottom: 0;
  }

  body .auth-visual h1 {
    font-size: 3rem;
  }

  body .auth-panel {
    display: block;
    padding: 24px;
    background: #f4f7f8;
  }

  body .auth-card {
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  }
}

@media (max-width: 680px) {
  body .landing-auth-actions {
    max-width: 100%;
  }

  body .landing-auth-actions .button,
  body .landing-auth-actions .google-native-button {
    width: 100%;
  }

  body .auth-visual {
    min-height: 330px;
    padding: 18px;
  }

  body .auth-visual h1 {
    font-size: 2.2rem;
  }

  body .auth-panel {
    padding: 16px;
  }

  body .auth-card {
    padding: 18px;
    box-shadow: none;
  }

  body .google-auth-box .google-native-button {
    width: 100%;
  }

  body .google-login-button {
    width: 100%;
  }
}
