:root {
  --ink: #111111;
  --muted: #8490aa;
  --label: #34415a;
  --line: #dce2ec;
  --soft: #f4f7fb;
  --error: #c44f4a;
  --shadow: 0 24px 60px rgba(54, 73, 105, 0.14);
  --focus: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 56%, #fbfcff 56%, #fbfcff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

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

a {
  color: inherit;
}

.app-shell {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 34px clamp(22px, 6vw, 104px) 64px;
}

.brand-rail {
  margin-bottom: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  width: clamp(150px, 13vw, 210px);
  height: auto;
}

.flow {
  display: grid;
  grid-template-columns: minmax(520px, 760px) minmax(370px, 520px);
  gap: clamp(52px, 9vw, 142px);
  align-items: start;
}

.flow-single {
  grid-template-columns: 1fr;
}

.step-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.account-panel.step-shell,
.verify-panel.step-shell {
  width: min(100%, 620px);
}

.step-kicker {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: #4b1830;
  border: 1px solid #f1c4d5;
  border-radius: 999px;
  background: #fff4f8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-panel h1,
.booking-panel h1,
.admin-panel h1 {
  margin: 0;
  font-size: clamp(30px, 2.5vw, 36px);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: 0;
}

.social-section {
  margin-top: 56px;
}

.social-section h2,
.payment-section h2,
.plan-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 38px;
}

.social-btn,
.primary-btn,
.secondary-btn {
  min-height: 62px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.social-btn:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.social-btn:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 600;
}

.social-btn.google {
  color: #74777f;
  background: #ffffff;
  border: 1px solid #d9dce3;
}

.social-btn.facebook {
  color: #ffffff;
  background: #111111;
}

.google-g {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #4285f4;
  font-weight: 800;
}

.facebook-f {
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
}

.form-stack {
  margin-top: 48px;
}

.compact-stack {
  margin-top: 34px;
}

.line-field {
  display: block;
  margin-bottom: 30px;
}

.line-field span,
.boxed-field span {
  display: block;
  color: var(--label);
  font-size: 13px;
  font-weight: 600;
}

.line-field input {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  color: var(--ink);
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 16px;
}

.line-field input::placeholder,
.boxed-field input::placeholder,
.boxed-field textarea::placeholder {
  color: #8c9ab7;
}

.line-field.invalid input {
  border-color: var(--error);
}

.field-error {
  display: block;
  min-height: 20px;
  margin-top: 6px;
  color: var(--error);
  font-size: 13px;
}

.payment-section {
  margin-top: 58px;
}

.compact-payment {
  margin-top: 0;
}

.card-copy {
  margin: 34px 0 22px;
  font-size: 17px;
  font-weight: 600;
}

.card-form,
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.card-number-field,
.wide {
  grid-column: 1 / -1;
}

.boxed-field {
  display: block;
}

.boxed-field input,
.boxed-field select,
.boxed-field textarea,
.slug-input {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  padding: 0 14px;
  color: #3b455a;
  border: 2px solid #d5dce7;
  border-radius: 10px;
  background: #ffffff;
  font-size: 15px;
}

.boxed-field textarea {
  min-height: 104px;
  padding-top: 13px;
  resize: vertical;
}

.boxed-field.invalid input,
.boxed-field.invalid select,
.boxed-field.invalid textarea,
.boxed-field.invalid .slug-input {
  border-color: var(--error);
}

.input-with-icons,
.input-with-cvc,
.slug-input {
  display: flex;
  align-items: center;
}

.input-with-icons input,
.input-with-cvc input,
.slug-input input {
  min-height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.input-with-icons {
  margin-top: 8px;
  padding: 0 14px 0 18px;
  border: 2px solid #d5dce7;
  border-radius: 10px;
}

.boxed-field.invalid .input-with-icons {
  border-color: var(--error);
}

.boxed-field span.card-icons,
.card-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.card-icons.has-input .brand-card {
  display: none;
}

.card-icons.has-input.visa .brand-card.visa,
.card-icons.has-input.mc .brand-card.mc,
.card-icons.has-input.amex .brand-card.amex,
.card-icons.has-input.discover .brand-card.discover {
  display: grid;
}

.brand-card {
  display: grid;
  width: 42px;
  height: 25px;
  place-items: center;
  color: #ffffff;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
}

.visa {
  background: #225799;
}

.mc {
  background: radial-gradient(circle at 40% 50%, #e9462d 0 32%, transparent 33%), radial-gradient(circle at 60% 50%, #f6a21a 0 32%, transparent 33%), #222;
}

.amex {
  background: #58a9dc;
}

.discover {
  color: #222;
  background: linear-gradient(90deg, #ffffff, #ffffff 60%, #f79224 61%);
  border: 1px solid #e2e4e8;
}

.input-with-cvc {
  position: relative;
}

.input-with-cvc .cvc-icon {
  position: absolute;
  right: 17px;
  bottom: 16px;
  display: grid;
  width: 40px;
  height: 27px;
  place-items: end center;
  color: #222;
  border: 2px solid #555;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.terms-copy {
  max-width: 780px;
  margin: 28px 0 30px;
  color: #778196;
  font-size: 14px;
  line-height: 1.5;
}

.agreement {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14px;
  line-height: 1.55;
}

.agreement input {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: #111111;
}

.agreement a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.agreement-error {
  margin-left: 50px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  margin-top: 60px;
}

.primary-btn,
.secondary-btn {
  min-width: 132px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 600;
}

.primary-btn {
  color: #ffffff;
  background: #111111;
}

.secondary-btn {
  color: #3a465e;
  background: #ffffff;
  border: 2px solid #dce3ee;
}

.plan-card {
  position: sticky;
  top: 40px;
  margin-top: 2px;
  padding: 38px 42px 28px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.embedded-plan {
  position: static;
  margin-top: 0;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(420px, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 34px;
}

.payment-card {
  padding: 38px;
  border: 1px solid #e4e9f2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(54, 73, 105, 0.08);
}

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 38px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e5eaf2;
}

.billing-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  white-space: nowrap;
  font-size: 15px;
  cursor: pointer;
}

.billing-toggle input {
  width: 28px;
  height: 28px;
  accent-color: #111111;
}

.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid #e5eaf2;
}

.plan-row.main strong {
  font-size: 21px;
  font-weight: 700;
}

.plan-row.main span,
.plan-row.staff span {
  color: #8a96b1;
  font-size: 15px;
}

.price {
  text-align: right;
  white-space: nowrap;
}

.price strong {
  font-size: 24px;
}

.price span {
  color: #34415a;
  font-size: 14px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #25304a;
  font-size: 16px;
}

.stepper button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #26324c;
  border: 2px solid #dce5f3;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  line-height: 1;
}

.stepper button:disabled {
  color: #c5cede;
  cursor: not-allowed;
}

.total {
  border-bottom: 0;
  font-size: 18px;
}

.total strong {
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
}

.billing-note {
  display: grid;
  min-height: 42px;
  place-items: center;
  margin-top: 12px;
  color: #4e5a73;
  border-radius: 5px;
  background: #f4f7fb;
  font-size: 13px;
  font-weight: 600;
}

.booking-panel,
.admin-panel {
  grid-column: 1 / -1;
  max-width: 1100px;
}

.verify-layout {
  display: grid;
  grid-template-columns: 154px 1fr;
  gap: 28px;
  align-items: center;
}

.verify-meter {
  position: relative;
  display: grid;
  width: 142px;
  height: 142px;
  place-items: center;
}

.verify-meter svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.meter-track,
.meter-progress {
  fill: none;
  stroke-width: 8;
}

.meter-track {
  stroke: #f0edf1;
}

.meter-progress {
  stroke: #d91159;
  stroke-linecap: round;
  stroke-dasharray: 245 327;
}

.verify-meter strong {
  position: relative;
  z-index: 1;
  font-size: 24px;
}

.verify-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 2.5vw, 36px);
  line-height: 1.18;
}

.code-inputs {
  display: grid;
  grid-template-columns: repeat(4, 64px);
  gap: 14px;
  margin-top: 34px;
}

.code-box {
  width: 64px;
  height: 70px;
  color: #111111;
  border: 2px solid #d8dde7;
  border-radius: 10px;
  background: #ffffff;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.code-box:focus {
  border-color: #d91159;
}

.verify-error {
  margin-top: 10px;
}

.verify-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  color: #667188;
  font-size: 14px;
}

.demo-code-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 12px 14px;
  color: #4b1830;
  border: 1px solid #f1c4d5;
  border-radius: 8px;
  background: #fff4f8;
  font-size: 14px;
}

.link-btn {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c1094c;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:disabled {
  color: #98a1b2;
  cursor: not-allowed;
  text-decoration: none;
}

.email-status {
  width: fit-content;
  margin: 22px 0 0;
  padding: 10px 12px;
  color: #245f42;
  border: 1px solid #c8e8d4;
  border-radius: 8px;
  background: #f1fbf5;
  font-size: 13px;
  font-weight: 700;
}

.booking-lead {
  max-width: 720px;
  color: #667188;
  font-size: 15px;
  line-height: 1.55;
}

.success-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 0 14px;
  color: #245f42;
  border-radius: 999px;
  background: #e7f6ed;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-grid {
  margin-top: 34px;
}

.slug-input {
  gap: 0;
  padding: 0 0 0 16px;
}

.slug-input span {
  flex-shrink: 0;
  color: #6a7386;
  font-size: 14px;
  font-weight: 500;
}

.booking-actions {
  justify-content: flex-start;
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.public-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  color: #ffffff;
  border-radius: 8px;
  background: #111111;
  text-decoration: none;
  font-weight: 700;
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
}

.admin-sidebar,
.admin-card {
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(54, 73, 105, 0.08);
}

.admin-sidebar {
  padding: 26px;
}

.admin-sidebar h2,
.admin-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.admin-sidebar p {
  color: #657188;
  line-height: 1.45;
}

.admin-plan {
  display: grid;
  gap: 5px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e6ebf4;
}

.admin-plan span {
  color: #8792a8;
  font-size: 14px;
  text-transform: uppercase;
}

.admin-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.admin-card {
  min-height: 190px;
  padding: 24px;
}

.appointment-list {
  display: grid;
  gap: 12px;
}

.appointment {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.appointment:last-child {
  border-bottom: 0;
}

.appointment strong {
  display: block;
}

.appointment span {
  color: #6b768a;
  font-size: 14px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2f5fa;
  color: #354159;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 380px;
  padding: 14px 18px;
  color: #ffffff;
  border-radius: 8px;
  background: #111111;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  body {
    background: #ffffff;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .plan-card {
    position: static;
    order: -1;
    margin: 0;
  }

  .payment-layout {
    grid-template-columns: 1fr;
  }

  .social-section {
    margin-top: 50px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 26px 18px 44px;
  }

  .account-panel h1,
  .booking-panel h1,
  .admin-panel h1 {
    font-size: 28px;
  }

  .social-section h2,
  .payment-section h2,
  .plan-card h2 {
    font-size: 20px;
  }

  .social-grid,
  .card-form,
  .booking-grid,
  .admin-layout,
  .admin-content,
  .verify-layout {
    grid-template-columns: 1fr;
  }

  .verify-meter {
    width: 120px;
    height: 120px;
  }

  .code-inputs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .code-box {
    width: 100%;
    height: 62px;
  }

  .verify-help {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-code-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-card {
    padding: 24px;
  }

  .social-btn {
    font-size: 15px;
  }

  .plan-card {
    padding: 30px 22px 22px;
  }

  .billing-toggle {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .billing-toggle label,
  .plan-row.main span,
  .plan-row.staff span,
  .card-copy,
  .terms-copy,
  .agreement {
    font-size: 14px;
  }

  .plan-row {
    align-items: flex-start;
  }

  .form-actions,
  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn,
  .public-link {
    width: 100%;
  }
}

/* Spinner Loader for Premium Loading States */
.spinner-loader {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin-v2 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

.btn-loading {
  pointer-events: none;
  opacity: 0.8;
}

