:root {
  --dark: #0b1020;
  --deep: #070b16;
  --card: #0f1a2e;
  --card-2: #101f35;
  --gold: #d4a843;
  --gold-soft: rgba(212, 168, 67, 0.16);
  --forest: #1a5c34;
  --forest-bright: #22c55e;
  --line: #22314c;
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --danger: #ef4444;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(26, 92, 52, 0.22), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(212, 168, 67, 0.12), transparent 32%),
    var(--dark);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(7, 11, 22, 0.88);
  border-bottom: 1px solid rgba(212, 168, 67, 0.18);
  backdrop-filter: blur(16px);
}

.brand,
.rail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--card), rgba(26, 92, 52, 0.45));
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.lang-toggle button {
  min-width: 42px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.lang-toggle button.active {
  background: var(--gold);
  color: var(--dark);
}

.top-cta,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 900;
  white-space: nowrap;
}

.top-cta,
.primary-button {
  background: linear-gradient(135deg, var(--gold), var(--forest-bright));
  color: var(--dark);
}

.ghost-button {
  background: rgba(15, 26, 46, 0.9);
  color: var(--gold);
  border-color: rgba(212, 168, 67, 0.3);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  max-width: 1480px;
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
}

.side-rail,
.hero-workspace,
.booking-entry,
.panel-card,
.price-card,
.workflow-grid article {
  border: 1px solid rgba(212, 168, 67, 0.18);
  background: rgba(15, 26, 46, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.side-rail {
  position: sticky;
  top: 96px;
  align-self: start;
  min-height: calc(100vh - 112px);
  padding: 18px;
  border-radius: 18px;
}

.rail-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.rail-head small,
.rail-card small,
.panel-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
}

.rail-item span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.rail-item.active,
.rail-item:hover {
  background: rgba(26, 92, 52, 0.32);
  border-color: rgba(34, 197, 94, 0.22);
  color: var(--text);
}

.rail-card {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 92, 52, 0.72), rgba(15, 26, 46, 0.92));
}

.rail-card-kicker,
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-card strong {
  display: block;
  margin-top: 10px;
  font-size: 38px;
}

.hero-workspace {
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(20px, 3vw, 40px);
  background:
    linear-gradient(135deg, rgba(26, 92, 52, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(15, 26, 46, 0.96), rgba(7, 11, 22, 0.96));
}

.workspace-copy {
  max-width: 860px;
}

.workspace-copy h1,
.section h2,
.booking-top h2 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.workspace-copy p:not(.eyebrow),
.section-copy p,
.section-head p,
.panel-card p,
.price-card p,
.workflow-grid p,
.booking-entry p {
  color: var(--muted);
  line-height: 1.7;
}

.workspace-copy p:not(.eyebrow) {
  max-width: 720px;
  font-size: clamp(16px, 2vw, 20px);
}

.command-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 12px;
  margin-top: 28px;
}

.command-search,
.command-stat {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 11, 22, 0.45);
}

.command-search {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
}

.command-search span {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.command-search p {
  color: var(--dim);
  font-weight: 700;
}

.command-stat {
  padding: 14px 16px;
}

.command-stat strong {
  color: var(--gold);
  font-size: 22px;
}

.command-stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.command-stat.green strong {
  color: var(--forest-bright);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 0.8fr;
  gap: 14px;
  margin-top: 18px;
}

.panel-card {
  min-height: 190px;
  border-radius: 16px;
  padding: 18px;
}

.next-card {
  background: linear-gradient(135deg, rgba(26, 92, 52, 0.88), rgba(15, 26, 46, 0.94));
}

.card-title-row,
.section-label,
.service-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-icon,
.service-row span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: rgba(7, 11, 22, 0.34);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.card-title-row h2 {
  margin: 0;
  font-size: 24px;
}

.progress-line {
  height: 8px;
  margin-top: 28px;
  border-radius: 20px;
  background: rgba(7, 11, 22, 0.42);
}

.progress-line span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--forest-bright));
}

.service-card {
  grid-row: span 2;
}

.section-label {
  margin-bottom: 16px;
}

.section-label span {
  width: 5px;
  height: 24px;
  border-radius: 9px;
  background: linear-gradient(var(--gold), var(--forest-bright));
}

.service-row {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.service-row div {
  flex: 1;
}

.service-row b,
.service-row strong {
  color: var(--gold);
}

.deposit-card strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--forest-bright);
  font-size: 44px;
}

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

.link-card code {
  display: block;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: 14px;
  background: rgba(212, 168, 67, 0.1);
  color: var(--gold);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(18px, 3vw, 34px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 22px;
  align-items: stretch;
}

.section h2 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 52px);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.feature-list span {
  border: 1px solid rgba(212, 168, 67, 0.28);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(212, 168, 67, 0.08);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.booking-entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 18px;
  padding: 22px;
}

.booking-entry label,
.client-form label {
  display: grid;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.code-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 11, 22, 0.38);
  padding: 8px 10px;
}

.code-input-row span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 11, 22, 0.38);
  color: var(--text);
  outline: 0;
  padding: 13px 14px;
}

.code-input-row input {
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.booking-entry .primary-button {
  width: 100%;
  margin-top: 16px;
}

.hidden {
  display: none !important;
}

.booking-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px clamp(18px, 3vw, 34px);
}

.booking-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

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

.professional-card,
.booking-panel,
.success-box {
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 18px;
  background: rgba(15, 26, 46, 0.9);
  padding: 18px;
}

.professional-card img,
.professional-card .avatar,
.pro-avatar,
.pro-cover {
  background: linear-gradient(135deg, var(--forest), var(--card));
}

.booking-panel {
  display: grid;
  gap: 16px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.step-head span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.step-head h3 {
  margin: 0;
  font-size: 20px;
}

.services-list,
.days-list,
.slots-list {
  display: grid;
  gap: 10px;
}

.days-list,
.slots-list {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.service-option,
.day-option,
.slot-option {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 11, 22, 0.28);
  color: var(--text);
  padding: 13px;
  text-align: left;
}

.service-option.selected,
.day-option.selected,
.slot-option.selected {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.13);
}

.service-option strong {
  color: var(--gold);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.client-form {
  display: grid;
  gap: 12px;
}

.deposit-notice {
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 14px;
  background: rgba(26, 92, 52, 0.2);
  padding: 14px;
  color: var(--muted);
}

.booking-message.show {
  border: 1px solid rgba(212, 168, 67, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: rgba(212, 168, 67, 0.08);
}

.booking-message.error {
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
}

.success-box {
  margin-top: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.directory-search {
  display: flex;
  gap: 10px;
  min-width: min(100%, 440px);
}

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

.pro-card {
  overflow: hidden;
  border: 1px solid rgba(26, 92, 52, 0.75);
  border-radius: 16px;
  background: var(--card);
}

.pro-cover {
  height: 120px;
  overflow: hidden;
}

.pro-cover img,
.professional-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-body {
  padding: 14px;
}

.pro-body h3,
.professional-card h3 {
  margin: 0;
  color: var(--text);
}

.pro-body p,
.professional-card p {
  color: var(--muted);
}

.pro-meta,
.pro-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pro-meta span {
  color: var(--gold);
  font-weight: 800;
}

.pro-actions a,
.pro-actions button {
  min-height: 38px;
  border: 1px solid rgba(212, 168, 67, 0.28);
  border-radius: 10px;
  background: rgba(212, 168, 67, 0.1);
  color: var(--gold);
  padding: 0 12px;
  font-weight: 900;
}

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

.workflow-grid article,
.price-card {
  border-radius: 16px;
  padding: 22px;
}

.workflow-grid span,
.price-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-grid h3 {
  margin: 18px 0 0;
  font-size: 24px;
}

.price-card h3 {
  margin: 16px 0 0;
  color: var(--gold);
  font-size: 46px;
}

.price-card.featured {
  border-color: rgba(34, 197, 94, 0.46);
  background: linear-gradient(135deg, rgba(26, 92, 52, 0.48), rgba(15, 26, 46, 0.96));
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 30px;
  border-top: 1px solid rgba(212, 168, 67, 0.18);
  color: var(--muted);
}

.footer span {
  color: var(--gold);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .rail-head,
  .rail-card {
    padding: 12px;
  }

  .rail-item {
    margin: 0;
  }

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

  .split-section,
  .booking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .top-actions {
    justify-content: space-between;
  }

  .side-rail {
    display: none;
  }

  .command-strip,
  .dash-grid,
  .workflow-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    grid-column: auto;
  }

  .section-head,
  .booking-top {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-search {
    min-width: 0;
    flex-direction: column;
  }

  .workspace-copy h1,
  .section h2,
  .booking-top h2 {
    font-size: clamp(30px, 11vw, 46px);
  }

  .code-input-row {
    align-items: stretch;
    flex-direction: column;
  }
}
