/* Booking AI — design system (bleu / rouge / blanc / noir) */

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

:root {
  --black: #05070d;
  --black-soft: #0b0f1a;
  --panel: rgba(18, 24, 38, 0.72);
  --panel-solid: #121826;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --white: #f7f9fc;
  --muted: #94a3b8;
  --muted-dim: #64748b;

  --blue: #2f6bff;
  --blue-bright: #5b8cff;
  --blue-deep: #12275e;
  --red: #ff3d55;
  --red-deep: #5c1020;

  --ok: #2fd48a;
  --warn: #ffb648;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Animated backdrop ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(47, 107, 255, 0.28), transparent 60%),
    radial-gradient(900px 600px at 92% 4%, rgba(255, 61, 85, 0.2), transparent 62%),
    var(--black);
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 22s var(--ease) infinite alternate;
}

.aurora::before {
  background: radial-gradient(circle, rgba(47, 107, 255, 0.5), transparent 68%);
  top: -14vw;
  left: -8vw;
}

.aurora::after {
  background: radial-gradient(circle, rgba(255, 61, 85, 0.42), transparent 68%);
  bottom: -18vw;
  right: -10vw;
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

.grid-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6vw, 8vh, 0) scale(1.18);
  }
}

/* ---------- Layout ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: Sora, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--blue-bright), var(--blue) 45%, var(--red));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 24px -8px rgba(47, 107, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55), transparent 65%);
  transform: translateX(-120%);
  animation: sheen 4.5s var(--ease) infinite;
}

@keyframes sheen {
  0%,
  62% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.brand small {
  display: block;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1rem, 4vw, 2.5rem) 4rem;
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.tab:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1b48c4);
  box-shadow: 0 10px 26px -12px rgba(47, 107, 255, 0.95);
}

.panel-view {
  display: none;
  animation: viewIn 0.45s var(--ease) both;
}

.panel-view.active {
  display: block;
}

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

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

.grid {
  display: grid;
  gap: 1rem;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  position: relative;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  animation: cardIn 0.6s var(--ease) both;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 140, 255, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.card:hover::before {
  opacity: 1;
}

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

@media (max-width: 720px) {
  .card.wide {
    grid-column: auto;
  }
}

.card > h2 {
  margin: 0 0 0.25rem;
  font-family: Sora, sans-serif;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.card > h2 + .sub {
  margin: 0 0 1rem;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.18s; }
.card:nth-child(5) { animation-delay: 0.24s; }
.card:nth-child(6) { animation-delay: 0.3s; }

/* ---------- Stat tiles ---------- */

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-label {
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.stat-value {
  font-family: Sora, sans-serif;
  font-size: 1.85rem;
  line-height: 1.1;
  background: linear-gradient(120deg, #fff, #9dbaff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-value.danger {
  background: linear-gradient(120deg, #fff, #ff9fae);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-foot {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Forms ---------- */

label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 8, 15, 0.72);
  color: var(--white);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.18);
  background: rgba(5, 8, 15, 0.94);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-dim);
}

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

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 1rem;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding: 0.68rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue) 55%, #1b3fae);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), filter 0.25s var(--ease);
  box-shadow: 0 14px 30px -16px rgba(47, 107, 255, 1);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 20px 38px -16px rgba(47, 107, 255, 1);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255, 255, 255, 0.42), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.btn:hover::after {
  opacity: 1;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 26px -18px rgba(255, 255, 255, 0.6);
}

.btn.danger {
  background: linear-gradient(135deg, #ff5b70, var(--red) 55%, #b81330);
  box-shadow: 0 14px 30px -16px rgba(255, 61, 85, 0.95);
}

.btn.google {
  background: var(--white);
  color: #0b1220;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 30px -18px rgba(255, 255, 255, 0.75);
}

.btn.google:hover {
  filter: none;
  background: #fff;
  box-shadow: 0 20px 38px -18px rgba(255, 255, 255, 0.85);
}

.g-mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
  font-family: Sora, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
}

.btn.small {
  margin-top: 0;
  padding: 0.42rem 0.85rem;
  font-size: 0.8rem;
}

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

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

/* ---------- Chips / badges ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.chip {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s var(--ease);
}

.chip:hover {
  transform: translateY(-2px);
  color: var(--white);
}

.chip[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #1b48c4);
  box-shadow: 0 10px 22px -14px rgba(47, 107, 255, 1);
}

.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.hours-row {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.hours-row .chip {
  margin: 0;
  width: 100%;
  text-align: center;
}

.hours-row .chip[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
}

.hours-row select {
  margin: 0;
}

.hours-row select:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.hours-sep {
  color: var(--muted-dim);
  font-size: 0.8rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.badge.ok {
  color: #b6f5d8;
  border-color: rgba(47, 212, 138, 0.35);
  background: rgba(47, 212, 138, 0.12);
}

.badge.warn {
  color: #ffe0b4;
  border-color: rgba(255, 182, 72, 0.35);
  background: rgba(255, 182, 72, 0.12);
}

.badge.bad {
  color: #ffc7cf;
  border-color: rgba(255, 61, 85, 0.38);
  background: rgba(255, 61, 85, 0.13);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2.2s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 7px transparent;
    opacity: 0.65;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    opacity: 1;
  }
}

/* ---------- Repeatable rows (services, etc.) ---------- */

.item-row {
  display: grid;
  grid-template-columns: 1fr 118px auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem;
  margin-bottom: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  animation: cardIn 0.4s var(--ease) both;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.item-row:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.item-row input {
  margin: 0;
}

.item-row label {
  margin: 0;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.22s var(--ease);
}

.icon-btn:hover {
  color: #fff;
  border-color: var(--red);
  background: rgba(255, 61, 85, 0.16);
  transform: rotate(90deg);
}

.star {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  color: var(--muted-dim);
  transition: all 0.22s var(--ease);
}

.star[aria-pressed="true"] {
  color: #ffd479;
  border-color: rgba(255, 212, 121, 0.5);
  background: rgba(255, 212, 121, 0.14);
  transform: scale(1.06);
}

.svc-head {
  display: grid;
  grid-template-columns: 1fr 118px auto auto;
  gap: 0.6rem;
  padding: 0 0.6rem 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.service-catalog {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.service-item:hover {
  border-color: var(--line-strong);
  background: rgba(47, 107, 255, 0.08);
  transform: translateY(-1px);
}

.service-item.is-default {
  border-color: rgba(47, 107, 255, 0.35);
  background: rgba(47, 107, 255, 0.1);
}

.service-item strong {
  margin-right: 0.5rem;
  font-family: Sora, sans-serif;
  font-size: 0.95rem;
}

.service-duration {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--blue-bright);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .item-row {
    grid-template-columns: 1fr 96px auto auto;
  }
  .svc-head {
    display: none;
  }
}

/* ---------- Collapsible section ---------- */

details {
  margin-top: 1rem;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

details[open] {
  padding-bottom: 1.1rem;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.22s var(--ease);
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸";
  color: var(--blue-bright);
  transition: transform 0.25s var(--ease);
}

details[open] summary::before {
  transform: rotate(90deg);
}

summary:hover {
  color: var(--white);
}

details[open] > *:not(summary) {
  animation: viewIn 0.35s var(--ease) both;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

th {
  position: sticky;
  top: 0;
  padding: 0.7rem 0.85rem;
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  background: rgba(9, 13, 22, 0.95);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--white);
  white-space: nowrap;
}

tbody tr {
  transition: background 0.2s var(--ease);
  cursor: default;
}

tbody tr:hover {
  background: rgba(47, 107, 255, 0.09);
}

tbody tr.selectable {
  cursor: pointer;
}

tbody tr.selected {
  background: rgba(47, 107, 255, 0.16);
}

.empty {
  padding: 1.6rem;
  text-align: center;
  color: var(--muted-dim);
  font-size: 0.9rem;
}

/* ---------- Auth screen ---------- */

.auth-shell {
  min-height: calc(100vh - 66px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem 4rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  animation: cardIn 0.7s var(--ease) both;
}

.auth-card h1 {
  margin: 0 0 0.4rem;
  font-family: Sora, sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.auth-card .btn.google {
  margin-top: 1.1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.15rem 0 0.2rem;
  color: var(--muted-dim);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.auth-switch {
  margin-top: 1rem;
  font-size: 0.87rem;
  color: var(--muted);
  text-align: center;
}

.auth-switch button {
  border: none;
  background: none;
  color: var(--blue-bright);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-error {
  margin: 0.9rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 61, 85, 0.4);
  background: rgba(255, 61, 85, 0.12);
  color: #ffc7cf;
  font-size: 0.86rem;
  animation: shake 0.4s var(--ease);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ---------- Toasts ---------- */

.toasts {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: min(380px, 88vw);
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 17, 28, 0.96);
  box-shadow: var(--shadow);
  font-size: 0.89rem;
  font-weight: 600;
  animation: toastIn 0.4s var(--ease) both;
}

.toast.out {
  animation: toastOut 0.3s var(--ease) forwards;
}

.toast::before {
  content: "";
  width: 4px;
  align-self: stretch;
  border-radius: 4px;
  background: var(--blue-bright);
}

.toast.ok::before { background: var(--ok); }
.toast.bad::before { background: var(--red); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(28px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(28px) scale(0.96); }
}

/* ---------- Misc ---------- */

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

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

.skeleton {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

code,
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.14rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #cfe0ff;
  word-break: break-all;
}

hr.sep {
  border: none;
  height: 1px;
  margin: 1.3rem 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

a {
  color: var(--blue-bright);
}

.foot-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-dim);
}

.hidden {
  display: none !important;
}

.help {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(47, 107, 255, 0.28);
  background: rgba(47, 107, 255, 0.1);
  font-size: 0.86rem;
  color: #d5e2ff;
  line-height: 1.5;
}

.help.red {
  border-color: rgba(255, 61, 85, 0.3);
  background: rgba(255, 61, 85, 0.1);
  color: #ffd7dd;
}

/* ---------- Landing page ---------- */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.22s var(--ease);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a.btn {
  color: #fff;
}

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

@media (max-width: 720px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.hero-actions .btn,
.cta-banner .btn,
.nav-links .btn {
  margin-top: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 255, 0.35);
  background: rgba(47, 107, 255, 0.1);
  color: #cfe0ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: Sora, sans-serif;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--blue-bright), #ff8a97 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2.4rem;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}

.section-head {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.section-head .kicker {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-family: Sora, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem 1.3rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(16px);
  animation: cardIn 0.6s var(--ease) both;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue) 55%, #1b3fae);
  color: #fff;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-family: Sora, sans-serif;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.vertical-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.vertical-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: rgba(47, 107, 255, 0.14);
  border: 1px solid rgba(47, 107, 255, 0.3);
  font-size: 1.1rem;
}

.cta-banner {
  max-width: 1180px;
  margin: 0 auto clamp(2.4rem, 6vw, 4rem);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(47, 107, 255, 0.28), transparent 65%),
    radial-gradient(600px 300px at 85% 100%, rgba(255, 61, 85, 0.22), transparent 65%),
    var(--panel-solid);
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 0.6rem;
  font-family: Sora, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.cta-banner p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
