:root {
  color-scheme: dark;
  --bg: #0a0c10;
  --panel: rgba(15, 23, 42, 0.9);
  --panel-strong: rgba(2, 6, 23, 0.92);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(37, 99, 235, 0.45);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.16);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --danger: #ef4444;
  --warning: #f59e0b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 74%);
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.text-2xl {
  font-size: 24px;
  line-height: 1.1;
}

.font-black {
  font-weight: 950;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.38);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
}

.brand-lockup small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  gap: 8px;
}

.desktop-nav a,
.ghost-action,
.secondary-action {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.66);
  color: var(--muted-strong);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.desktop-nav a {
  padding: 9px 12px;
  font-size: 14px;
}

.desktop-nav a:hover,
.ghost-action:hover,
.secondary-action:hover {
  border-color: rgba(37, 99, 235, 0.62);
  color: white;
  background: rgba(37, 99, 235, 0.13);
}

.auth-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: min(300px, 100%);
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.84);
  color: var(--muted-strong);
  padding: 0 11px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.auth-chip.admin {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.15);
  color: #dbeafe;
}

.auth-chip.staff {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.13);
  color: #d1fae5;
}

.auth-chip button {
  min-height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.74);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 9px;
}

.auth-panel {
  min-height: 320px;
}

.hero-section {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  align-items: end;
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(10, 12, 16, 0.94), rgba(10, 12, 16, 0.44) 58%, rgba(10, 12, 16, 0.92)),
    url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-content,
.hero-metrics {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(850px, 100%);
  padding-bottom: clamp(28px, 8vh, 84px);
}

.eyebrow {
  margin: 0;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 12px 0 0;
  max-width: 780px;
  font-size: clamp(54px, 9vw, 122px);
  font-weight: 950;
  font-style: italic;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.ghost-action,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 15px;
  cursor: pointer;
  font-weight: 900;
}

.primary-action {
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: var(--blue);
  color: white;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.35);
}

.primary-action:hover {
  background: #1d4ed8;
}

.primary-action svg,
.secondary-action svg,
.ghost-action svg,
.icon-button svg {
  width: 18px;
  height: 18px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(850px, 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.13);
  overflow: hidden;
}

.hero-metrics div {
  padding: 18px;
  background: rgba(2, 6, 23, 0.78);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
}

.hero-metrics span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.section-wrap {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

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

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.benefits-grid article,
.seo-grid article,
.app-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
}

.benefits-grid article,
.seo-grid article {
  min-height: 176px;
  padding: 22px;
}

.benefits-grid svg {
  width: 24px;
  height: 24px;
  color: #60a5fa;
}

.benefits-grid h2 {
  margin: 18px 0 8px;
  font-size: 21px;
  font-weight: 950;
}

.seo-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 950;
}

.benefits-grid p,
.seo-grid p,
.section-heading p,
.field-help,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  align-items: start;
  gap: 24px;
}

.section-heading {
  position: sticky;
  top: 98px;
  align-self: start;
}

.section-heading.wide {
  position: static;
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin: 10px 0 12px;
  max-width: 660px;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 600px;
}

.app-panel {
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.2);
}

.booking-panel {
  min-height: 520px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.stepper button {
  display: grid;
  gap: 2px;
  min-height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.step-number {
  display: block;
  font-size: 13px;
  line-height: 1;
}

.step-label {
  display: block;
  font-size: 12px;
  line-height: 1.15;
}

.stepper button.active,
.stepper button.done {
  border-color: var(--line-strong);
  color: white;
  background: var(--blue-soft);
}

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

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

.md\:col-span-2 {
  grid-column: auto;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  outline: none;
  background: rgba(2, 6, 23, 0.78);
  color: white;
  padding: 10px 12px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(37, 99, 235, 0.78);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.booking-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.plain-button,
.danger-button,
.success-button,
.warning-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  cursor: pointer;
  font-weight: 900;
}

.plain-button {
  background: rgba(15, 23, 42, 0.86);
  color: var(--muted-strong);
}

.success-button {
  border-color: rgba(16, 185, 129, 0.35);
  background: var(--emerald-soft);
  color: #a7f3d0;
}

.warning-button {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.danger-button {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

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

.service-option {
  display: grid;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.56);
  padding: 16px;
  cursor: pointer;
}

.service-option.selected {
  border-color: var(--line-strong);
  background: rgba(37, 99, 235, 0.13);
}

.service-option strong {
  font-size: 18px;
  font-weight: 950;
}

.service-option span {
  color: #60a5fa;
  font-weight: 950;
}

.confirmation-card,
.info-list,
.summary-list,
.client-status {
  display: grid;
  gap: 14px;
}

.confirmation-card {
  align-content: start;
  min-height: 420px;
}

.confirmation-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  background: var(--emerald-soft);
  color: #a7f3d0;
}

.confirmation-icon svg {
  width: 28px;
  height: 28px;
}

.confirmation-card h3 {
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  line-height: 1;
}

.summary-list,
.info-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-list div,
.info-list div,
.location-reminder,
.client-status {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.48);
  padding: 14px;
}

.summary-list span,
.info-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.summary-list strong,
.info-list strong {
  display: block;
  margin-top: 5px;
  color: white;
  font-size: 15px;
}

.location-reminder {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  font-weight: 800;
}

.location-reminder svg,
.panel-title svg {
  color: #60a5fa;
}

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

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

.panel-title h3 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 950;
}

.kpi-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  min-height: 112px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.54);
  padding: 16px;
}

.kpi span,
.meta-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.kpi strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
}

.agenda-panel {
  grid-column: 1 / -1;
}

.agenda-list,
.stack-list {
  display: grid;
  gap: 12px;
}

.agenda-card,
.stack-card,
.client-card {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.58);
  padding: 16px;
}

.agenda-card.today {
  border-color: rgba(245, 158, 11, 0.48);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(2, 6, 23, 0.58));
}

.agenda-card.done {
  border-color: rgba(16, 185, 129, 0.35);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.card-head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.badge.blue {
  border-color: rgba(37, 99, 235, 0.36);
  background: rgba(37, 99, 235, 0.12);
  color: #bfdbfe;
}

.badge.green {
  border-color: rgba(16, 185, 129, 0.36);
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}

.badge.warn {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}

.badge.red {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.status-select {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.82);
  color: white;
  padding: 0 10px;
  font-weight: 800;
}

.stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.client-status {
  margin-top: 14px;
}

.client-status h5 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 950;
}

.stamp {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.stamp.active {
  border-color: rgba(37, 99, 235, 0.52);
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.empty-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: min(360px, calc(100% - 36px));
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.94);
  color: white;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  padding: 14px 16px;
  transform: translateY(130%);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.footer a {
  color: #93c5fd;
  text-decoration: none;
}

.hidden-by-role,
.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .desktop-nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .two-column,
  .dashboard-grid,
  .benefits-grid,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .summary-list,
  .info-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

  .kpi-strip,
  .agenda-panel {
    grid-column: auto;
  }

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

@media (max-width: 640px) {
  .hero-section {
    min-height: auto;
    padding: 34px 16px 26px;
  }

  .hero-content {
    padding-top: 38px;
    padding-bottom: 40px;
  }

  .hero-metrics,
  .form-grid.two,
  .service-options,
  .kpi-strip {
    grid-template-columns: 1fr;
  }

  .stepper {
    grid-template-columns: repeat(5, 42px);
    overflow-x: auto;
  }

  .stepper button {
    min-height: 42px;
  }

  .step-label {
    display: none;
  }

  .card-head,
  .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}
