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

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #0d1728;
  --muted: #5b6676;
  --primary: #183060;
  --color-brand: #183060;
  --primary-strong: #14284f;
  --accent: #2d5e8f;
  --accent-soft: rgba(45, 94, 143, 0.12);
  --border: rgba(15, 27, 41, 0.12);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 18px 40px rgba(16, 30, 50, 0.16);
  --shadow-soft: 0 10px 24px rgba(16, 30, 50, 0.12);
  --surface-alt: #eef2f8;
  --card-border: rgba(15, 27, 41, 0.1);
  --card-shadow: 0 16px 34px rgba(16, 30, 50, 0.14);
  --card-shadow-soft: 0 10px 22px rgba(16, 30, 50, 0.1);
  --success: #1f8f4a;
  --warning: #d08a00;
  --danger: #c0392b;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #f7f9fd 0%, var(--bg) 100%);
  color: var(--ink);
  min-height: 100vh;
}

body.dashboard {
  background: #f1f4fa;
}

h1, h2, h3 {
  font-family: 'Sora', sans-serif;
  margin: 0 0 12px;
}

p {
  margin: 0 0 8px;
  color: var(--muted);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

button {
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 44px;
  font-weight: 600;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(24, 48, 96, 0.24);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  box-shadow: none;
}

a.ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  min-height: 44px;
}

textarea {
  resize: vertical;
}

.hidden {
  display: none !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(48, 96, 144, 0.16);
  color: var(--primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.pill--status {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-scheduled,
.status-confirmed {
  background: rgba(31, 143, 74, 0.12);
  color: var(--success);
  border-color: rgba(31, 143, 74, 0.25);
}

.status-pending_payment {
  background: rgba(208, 138, 0, 0.12);
  color: var(--warning);
  border-color: rgba(208, 138, 0, 0.25);
}

.status-cancelled,
.status-no_show {
  background: rgba(192, 57, 43, 0.12);
  color: var(--danger);
  border-color: rgba(192, 57, 43, 0.25);
}

.status-completed {
  background: rgba(45, 94, 143, 0.14);
  color: var(--accent);
  border-color: rgba(45, 94, 143, 0.24);
}

.pill--glass {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 16px;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.muted {
  color: var(--muted);
}

.message {
  margin-top: 12px;
  font-weight: 600;
  min-height: 20px;
}

.message--error {
  color: #c0392b;
}

.auth-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 30px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.hero {
  position: relative;
  background-color: #0f2243;
  background: linear-gradient(180deg, #0f2243 0%, #162f4b 52%, #193451 78%, #1b3856 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 32px;
  min-height: 420px;
  overflow: hidden;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 10%, rgba(15, 34, 67, 0.6) 0%, rgba(15, 34, 67, 0) 60%);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 280px;
  height: 280px;
  background: url('/assets/schedulehub-logo.png') no-repeat center;
  background-size: contain;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 10;
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
}

.hero__brand {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 10;
}

.hero__logo {
  width: 210px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
  transition: all 0.3s ease;
}

.hero__headline {
  font-size: 2.4rem;
  line-height: 1.1;
}

.hero__highlights {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 10;
}

.hero__highlights strong {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.96);
}

.hero__highlights span {
  color: rgba(255, 255, 255, 0.82);
}

.trust-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  position: relative;
  z-index: 10;
}

.trust-item {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(12, 26, 46, 0.72), rgba(18, 34, 56, 0.54));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 24px rgba(10, 18, 32, 0.28);
  backdrop-filter: blur(6px);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.98);
  flex-shrink: 0;
}

.trust-icon svg {
  width: 18px;
  height: 18px;
}

.trust-item strong {
  display: block;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.96);
}

.trust-item span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.auth-card {
  display: grid;
  gap: 8px;
  padding: 14px 22px 20px;
  align-content: start;
}

.tabs {
  display: flex;
  gap: 8px;
  background: rgba(24, 48, 96, 0.08);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
}

.tab {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 0;
  font-weight: 600;
  min-height: 44px;
}

.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(24, 48, 96, 0.16);
  border: 1px solid rgba(24, 48, 96, 0.14);
}

.auth-card .tabs {
  align-self: flex-start;
  display: inline-flex;
  width: fit-content;
  padding: 3px;
  gap: 6px;
  border-radius: 999px;
  background: rgba(24, 48, 96, 0.06);
  margin-bottom: 2px;
}

.auth-card .tab {
  flex: 0 0 auto;
  padding: 5px 14px;
  min-height: 30px;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.auth-card .tab.active {
  box-shadow: 0 8px 18px rgba(24, 48, 96, 0.14);
  border-color: rgba(24, 48, 96, 0.12);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 12px;
}

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

.auth-card .tab-panel.active {
  gap: 6px;
  align-content: start;
}

.auth-card .tab-panel h2 {
  margin: 0 0 4px;
}

.auth-card .tab-panel .muted {
  margin: 0 0 6px;
}

.auth-card .form {
  gap: 10px;
  margin-top: 2px;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-form input {
  flex: 1;
}

.divider {
  height: 1px;
  background: var(--border);
}

.register-extra {
  display: grid;
  gap: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(44, 99, 140, 0.06);
}

.inline-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.employees-list {
  display: grid;
  gap: 10px;
}

.employee-item {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: center;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.plan-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.plan-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.plan-choice.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.plan-choice.disabled input {
  pointer-events: none;
}


.plan-choice strong {
  display: block;
  font-size: 1rem;
}

.plan-choice span {
  display: block;
  font-weight: 600;
  color: var(--primary);
}

.plan-choice small {
  color: var(--muted);
}

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

.topbar {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 24px auto 0;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow-soft);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__logo {
  width: 140px;
  max-width: 100%;
  height: auto;
}

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

.booking-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 20px;
}

.stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  padding: 6px;
  border-radius: 14px;
  background: rgba(24,48,96,0.05);
  border: 1.5px solid rgba(24,48,96,0.10);
}

.step {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  text-align: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.step.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(24,48,96,0.25);
}

.step.done {
  color: var(--accent);
  background: rgba(45,94,143,0.10);
}

.step-panel {
  display: none;
  gap: 12px;
}

.step-panel.active {
  display: grid;
}

.client-card {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.client-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--card-border);
}

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

.client-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: stretch;
}

.client-sidebar {
  border-radius: 0 16px 16px 0;
  overflow: hidden;
}

.client-sidebar__logo {
  width: 140px;
}

.client-sidebar__brand {
  gap: 8px;
}

.client-sidebar__nav {
  margin-top: 8px;
}

.client-content {
  display: grid;
  gap: 18px;
}

.client-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%);
  border: 1px solid rgba(24, 48, 96, 0.14);
  box-shadow: var(--card-shadow-soft);
}

.client-toolbar__text {
  display: grid;
  gap: 4px;
}

.client-toolbar__text .muted {
  margin: 0;
}

.client-menu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(24, 48, 96, 0.2);
  background: rgba(24, 48, 96, 0.08);
  box-shadow: 0 10px 18px rgba(15, 27, 41, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.client-hero {
  background: linear-gradient(135deg, #162c53 0%, #234a75 60%, #2d5e8f 100%);
  border-radius: 24px;
  padding: 22px 24px;
  color: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.client-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -30px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0.9;
}

.client-hero > * {
  position: relative;
  z-index: 1;
}

.client-hero h2 {
  margin: 8px 0 6px;
  font-size: 1.6rem;
}

.client-hero__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.client-hero__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.client-hero__chips .chip {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.client-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0d1728;
  border-radius: 2px;
}

.client-menu-toggle span:nth-child(2) {
  width: 14px;
}

.client-menu-toggle span:last-child {
  width: 18px;
  margin-left: 0;
}

.client-sidebar-overlay {
  display: none;
}

.client-sidebar #clientLogout {
  margin-top: auto;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.client-sidebar #clientLogout:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 22px rgba(10, 22, 46, 0.28);
}

.client-view {
  display: none;
  gap: 12px;
}

.client-view.active {
  display: grid;
}

.profile-hero {
  background: linear-gradient(135deg, #162c53 0%, #234a75 60%, #2d5e8f 100%);
  border-radius: 24px;
  padding: 22px 24px 24px;
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
}

.profile-hero__main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 280px;
}

.profile-hero__logo {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.profile-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero__main > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-hero .pill {
  align-self: flex-start;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.profile-hero__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.profile-hero__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.profile-hero .chip {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  padding: 4px 10px;
}

.profile-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 6px;
}

.profile-hero__actions .ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.profile-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow-soft);
  display: grid;
  gap: 6px;
}

.metric-card strong {
  font-size: 1.4rem;
  color: var(--primary);
}

.rating-stars {
  display: flex;
  gap: 4px;
  color: #f5b74f;
  font-size: 0.9rem;
}

.profile-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(24, 48, 96, 0.12);
  overflow: hidden;
}

.profile-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #183060, #2d5e8f);
  border-radius: 999px;
}

.profile-grid {
  display: grid;
  gap: 16px;
}

.profile-section {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow-soft);
  display: grid;
  gap: 8px;
}

.profile-services {
  display: grid;
  gap: 10px;
}

.profile-service-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid rgba(24, 48, 96, 0.12);
}

.profile-service-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-hours {
  display: grid;
  gap: 6px;
}

.profile-hours__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}

.profile-location {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-gallery-view {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.profile-gallery-view img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(24, 48, 96, 0.12);
}

.profile-reviews {
  display: grid;
  gap: 10px;
}

.review-card {
  background: var(--surface-alt);
  border: 1px solid rgba(24, 48, 96, 0.12);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.review-card strong {
  font-size: 0.95rem;
}

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

.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
  padding: 6px 0;
}

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

.rating-input label {
  font-size: 1.35rem;
  color: rgba(24, 48, 96, 0.35);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #f5b74f;
}

.rating-input input:checked ~ label {
  color: #f5b74f;
}

.rating-input input:checked + label {
  transform: scale(1.05);
}

.profile-reviews__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-links {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.link {
  background: none;
  border: none;
  color: var(--primary);
  padding: 0;
  cursor: pointer;
}

.option-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.option-grid--time {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.option-card {
  background: #fff;
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(24,48,96,0.06);
}

.option-card--service {
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 14px;
}

.option-card__media {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(24,48,96,0.07) 0%, rgba(45,94,143,0.10) 100%);
  border: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.option-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.option-card__placeholder {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(135deg, rgba(24,48,96,0.06) 0%, rgba(45,94,143,0.10) 100%);
  border-radius: 14px;
}

.option-card__content {
  display: grid;
  gap: 3px;
}

.option-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24,48,96,0.13);
}

.option-card.active {
  border-color: var(--primary);
  background: rgba(24,48,96,0.04);
  box-shadow: 0 4px 16px rgba(24,48,96,0.16);
}

.option-card--time {
  text-align: center;
  padding: 14px 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
}

.option-card--time.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.summary-card {
  background: var(--surface-alt);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--card-border);
  display: grid;
  gap: 8px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-total {
  font-weight: 700;
  color: var(--primary);
}

.details-block {
  display: grid;
  gap: 12px;
}

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

.client-tabs {
  flex-wrap: wrap;
  background: rgba(24, 48, 96, 0.08);
  border-radius: 16px;
  padding: 6px;
}

.client-tabs .tab {
  min-width: 120px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.client-tabs .tab.hidden {
  display: none;
}

.client-tabs .tab.active {
  border-color: rgba(24, 48, 96, 0.18);
  box-shadow: 0 10px 20px rgba(24, 48, 96, 0.12);
}

@media (max-width: 640px) {
  .option-grid {
    grid-template-columns: 1fr;
  }

  .option-grid--time {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-links {
    flex-direction: column;
    gap: 10px;
  }

  .summary-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .stepper {
    flex-wrap: wrap;
  }
}

.table {
  display: grid;
  gap: 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow-soft);
}

.row--stack {
  flex-direction: column;
}

.service-media {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
}

.service-thumb {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background-color: #fff;
  background-size: cover;
  background-position: center;
}

.service-upload {
  display: grid;
  gap: 8px;
}

.service-upload input[type="file"] {
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.row__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.row__meta--actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.employee-card {
  display: grid;
  gap: 12px;
}

.employee-appointments {
  display: grid;
  gap: 10px;
  padding-left: 4px;
  background: rgba(44, 99, 140, 0.05);
  border-radius: 14px;
  padding: 12px;
}

.employee-appointments.hidden {
  display: none;
}

.employee-appointments h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.employee-appointments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.employee-appointment-item {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(44, 99, 140, 0.12);
  display: grid;
  gap: 6px;
}

.employee-appointment-main {
  display: grid;
  gap: 2px;
}

.employee-appointment-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(25, 34, 53, 0.7);
  font-size: 0.85rem;
}

.ghost.danger {
  border-color: rgba(192, 57, 43, 0.4);
  color: #c0392b;
  background: rgba(192, 57, 43, 0.06);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(24, 48, 96, 0.12);
  color: var(--accent-dark);
  font-weight: 600;
  border: 1px solid rgba(24, 48, 96, 0.16);
}

.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  padding: 24px 18px;
  background: linear-gradient(180deg, #0f2243 0%, #132a4b 52%, #173456 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 16px 0 40px rgba(10, 22, 46, 0.25);
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.sidebar__logo {
  width: 160px;
  max-width: 100%;
  height: auto;
  margin-bottom: 4px;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
  transition: all 0.3s ease;
}

.site-footer {
  max-width: 1200px;
  margin: 12px auto 36px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--primary);
}

.site-footer__logo {
  width: 120px;
  height: auto;
  opacity: 0.9;
  filter: brightness(0) saturate(100%) invert(16%) sepia(96%) saturate(3200%) hue-rotate(200deg)
    brightness(92%) contrast(100%);
}

.site-footer__meta {
  text-align: right;
}

.site-footer--compact {
  max-width: 1100px;
  margin-top: 0;
}

@media (max-width: 720px) {
  .hero__headline {
    font-size: 2rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__meta {
    text-align: left;
  }
}

.sidebar__brand {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: flex-start;
}

.sidebar__brand .muted {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar .chip {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.sidebar__brand h2 {
  margin: 6px 0 0;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.sidebar__nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  text-align: left;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 12px 24px rgba(8, 18, 36, 0.32);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(8, 18, 36, 0.24);
}

.nav-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.nav-badge.hidden {
  display: none;
}

.sidebar #logoutBtn {
  margin-top: auto;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  min-height: 44px;
  border-radius: 12px;
  font-weight: 600;
}

.sidebar #logoutBtn:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 22px rgba(10, 22, 46, 0.28);
}

.main {
  padding: 32px 36px;
}

.main__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow-soft);
}

.main__top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 27, 41, 0.18);
  background: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.menu-toggle span:last-child {
  width: 12px;
  margin-left: 6px;
}

.sidebar-overlay {
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 24px;
}

.dashboard-hero {
  background: linear-gradient(135deg, #162c53 0%, #234a75 60%, #2d5e8f 100%);
  border-radius: 24px;
  padding: 26px 28px;
  color: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -30px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0.8;
}

.dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.dashboard-hero__header h2 {
  margin: 8px 0 4px;
  font-size: 1.6rem;
}

.dashboard-hero__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.dashboard-hero__subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 420px;
}

.dashboard-hero__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.dashboard-hero__tags .chip {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.dashboard-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-hero__actions .ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-hero__actions .ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

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

.stats-grid--dashboard {
  margin-top: 8px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow-soft);
  display: grid;
  gap: 6px;
}

.stat-card span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.stat-action {
  justify-self: flex-start;
  margin-top: 6px;
  border-color: rgba(24, 48, 96, 0.18);
  background: rgba(24, 48, 96, 0.05);
  font-weight: 600;
}

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

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

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

.revenue-menu {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.revenue-menu label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.revenue-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 20px;
  align-items: stretch;
}

.revenue-chart {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(44, 99, 140, 0.08), rgba(44, 99, 140, 0.02));
  min-height: 280px;
}

.revenue-period {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(15, 27, 41, 0.1);
  display: grid;
  gap: 12px;
}

.revenue-period__filter {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.revenue-period__filter select {
  margin-top: 2px;
}

.revenue-period__label {
  color: var(--muted);
  font-size: 0.85rem;
}

.revenue-period__value {
  display: grid;
  gap: 6px;
}

.revenue-period__value strong {
  font-size: 1.6rem;
}

.revenue-period__meta {
  margin: 0;
}

.revenue-kpis {
  display: grid;
  gap: 12px;
}

.kpi-card {
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(44, 99, 140, 0.18);
  display: grid;
  gap: 6px;
}

.kpi-card strong {
  font-size: 1.3rem;
}

.revenue-details {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel-inner {
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 27, 41, 0.08);
  display: grid;
  gap: 12px;
}

.revenue-details__content {
  display: grid;
  gap: 8px;
}

.revenue-details__content .detail-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(44, 99, 140, 0.12);
}

.revenue-details__content .detail-row span {
  color: var(--muted);
}

.revenue-list {
  display: grid;
  gap: 10px;
}

.revenue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(44, 99, 140, 0.15);
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.revenue-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(18, 34, 60, 0.12);
}

.revenue-item.active {
  border-color: rgba(44, 99, 140, 0.7);
  box-shadow: 0 12px 24px rgba(44, 99, 140, 0.2);
}

.revenue-item small {
  color: var(--muted);
  font-size: 0.8rem;
}

.revenue-empty {
  color: var(--muted);
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.appointments-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.appointments-filters .ghost.active {
  background: rgba(44, 99, 140, 0.15);
  border-color: rgba(44, 99, 140, 0.35);
  color: var(--primary);
}

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

.calendar-grid.month {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.calendar-grid.month .calendar-day {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.calendar-grid.month .calendar-day:hover {
  box-shadow: 0 12px 22px rgba(18, 34, 60, 0.16);
  transform: translateY(-1px);
}

.calendar-day__action {
  align-self: start;
  justify-self: flex-start;
  font-size: 0.85rem;
}

.link--small {
  font-size: 0.85rem;
}

.calendar-day {
  background: rgba(44, 99, 140, 0.08);
  border-radius: 14px;
  padding: 12px;
  min-height: 160px;
  display: grid;
  gap: 8px;
}

.calendar-day--muted {
  opacity: 0.55;
}

.calendar-day__header {
  font-weight: 600;
}

.calendar-item {
  background: #fff;
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(18, 34, 60, 0.12);
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
}

.notice {
  background: linear-gradient(135deg, rgba(24,48,96,0.06) 0%, rgba(45,94,143,0.09) 100%);
  border: 1.5px solid rgba(44, 99, 140, 0.22);
  color: var(--ink);
  padding: 16px 18px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.notice.hidden {
  display: none;
}

.advance-notice {
  display: grid;
  gap: 10px;
}

.advance-notice__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.advance-notice__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.advance-notice__line strong {
  font-weight: 700;
  color: var(--primary-strong);
}

.advance-notice__pix {
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1.5px solid rgba(44, 99, 140, 0.18);
  border-radius: 12px;
  padding: 14px;
  margin-top: 4px;
}

.advance-notice__pix code {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(44, 99, 140, 0.07);
  word-break: break-all;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

#pixCopyFeedback {
  font-size: 0.85rem;
}

#paymentProofSection {
  margin-bottom: 12px;
}

.stripe-connect {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.stripe-connect__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.profile-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.profile-form .span-2 {
  grid-column: 1 / -1;
}

.profile-photo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--surface-alt);
}

.profile-photo__preview {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  border: 1px dashed var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
}

.profile-photo__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo__actions {
  display: grid;
  gap: 8px;
}

.employee-photo {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--surface-alt);
}

.employee-photo__preview {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
  font-size: 12px;
  text-align: center;
}

.employee-photo__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-photo__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.employee-photo__actions input[type='file'] {
  max-width: 220px;
}

.field-counter {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.warning {
  color: #b54708;
  font-weight: 600;
}

.profile-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.profile-gallery__item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #fff;
  aspect-ratio: 4 / 3;
  max-height: 180px;
}

.profile-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-gallery__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.75rem;
  background: rgba(15, 27, 41, 0.78);
  color: #fff;
}

.profile-status {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-badge {
  background: rgba(44, 99, 140, 0.18);
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-completion {
  display: grid;
  gap: 8px;
}

.profile-completion__bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(24, 48, 96, 0.12);
  overflow: hidden;
}

.profile-completion__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #183060, #2d5e8f);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.toggle__control {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(24, 48, 96, 0.16);
  border: 1px solid rgba(24, 48, 96, 0.22);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.toggle__control::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(10, 22, 46, 0.25);
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle__control {
  background: rgba(24, 48, 96, 0.9);
  border-color: rgba(24, 48, 96, 0.9);
}

.toggle input:checked + .toggle__control::after {
  transform: translateX(20px);
}

.toggle__text {
  font-weight: 600;
  color: var(--ink);
}

.advance-payment-toggle {
  display: flex;
  justify-content: flex-start;
  margin: 6px 0 4px;
}

.advance-payment-fields {
  margin-top: 10px;
}

.hours-grid {
  display: grid;
  gap: 10px;
}

.hours-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.hours-row.is-closed input[type='time'] {
  opacity: 0.55;
  background: rgba(15, 27, 41, 0.04);
}

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

.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 8px;
}

.plan-card.current {
  border-color: rgba(44, 99, 140, 0.8);
  box-shadow: 0 12px 24px rgba(44, 99, 140, 0.18);
}

.plan-card.disabled {
  opacity: 0.6;
}

.plan-card .price {
  font-size: 1.2rem;
  font-weight: 600;
}

.plan-card .price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-select {
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  min-height: 44px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 24, 0.55);
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 24px;
}

.modal.hidden {
  display: none;
}

.modal__content {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.modal__body img,
.modal__body iframe,
.modal__body embed {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 30;
    box-shadow: 16px 0 30px rgba(15, 27, 41, 0.35);
  }

  .sidebar__nav {
    overflow-y: auto;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 24, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 20;
  }

  body.sidebar-open {
    overflow: hidden;
  }

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

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  .main {
    padding: 20px;
  }

  .main__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .main__top-left {
    width: 100%;
  }

  body.view-dashboard .main__top-left {
    gap: 0;
  }

  body.view-dashboard .main__top-left > div {
    display: none;
  }

  body.view-dashboard .top-actions {
    display: none;
  }

  .top-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .topbar__actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .client-shell {
    grid-template-columns: 1fr;
    position: relative;
  }

  .client-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 40;
    box-shadow: 16px 0 30px rgba(15, 27, 41, 0.35);
  }

  .client-sidebar .sidebar__nav {
    overflow-y: auto;
  }

  .client-menu-toggle {
    display: inline-flex;
  }

  .client-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 24, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 35;
  }

  body.client-sidebar-open {
    overflow: hidden;
  }

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

  body.client-sidebar-open .client-sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  .panel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .panel__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .panel__actions > * {
    flex: 1 1 160px;
  }

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

  .revenue-chart {
    min-height: 240px;
  }

  .revenue-chart canvas {
    height: 240px;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid.month {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .calendar-day {
    min-height: 120px;
  }
}

@media (max-width: 700px) {
  .auth-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px 24px;
  }

  .hero__logo {
    width: 180px;
  }

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

  .topbar__logo {
    width: 120px;
  }

  .booking-layout {
    padding: 16px;
  }

  .inline-form {
    flex-direction: column;
  }

  .client-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .stepper {
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .step {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .client-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .client-tabs .tab {
    flex: 0 0 auto;
  }

  .calendar-grid.month {
    grid-template-columns: 1fr;
  }

  #view-appointments .panel__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  #view-appointments #filterTo {
    display: none;
  }

  #view-appointments .panel__actions > * {
    width: 100%;
    flex: 0 0 auto;
  }

  #view-appointments #filterBtn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
  }

  #view-appointments .panel__header {
    align-items: flex-start;
    text-align: left;
  }

  #view-appointments .appointments-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .row__meta,
  .row__meta--actions {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .row__meta > * {
    width: 100%;
    text-align: left;
  }

  body {
    background: linear-gradient(180deg, #eef2f8 0%, #f2f5fa 100%);
  }

  .main {
    padding: 16px;
    background: #f6f8fb;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -18px 40px rgba(15, 27, 41, 0.12);
  }

  .main__top {
    width: 100%;
    background: linear-gradient(135deg, #111f37 0%, #2c638c 100%);
    color: #fff;
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 18px;
  }

  .main__top .muted {
    color: rgba(255, 255, 255, 0.7);
  }

  .menu-toggle {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
  }

  .menu-toggle span {
    background: #fff;
  }

  .top-actions {
    width: 100%;
    gap: 8px;
  }

  .chip {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

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

  .dashboard-hero {
    padding: 20px;
    border-radius: 20px;
  }

  .dashboard-hero__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-hero__actions {
    width: 100%;
  }

  .dashboard-hero__actions .ghost {
    flex: 1 1 140px;
    text-align: center;
  }

  .stat-card {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 27, 41, 0.08);
    box-shadow: 0 10px 24px rgba(15, 27, 41, 0.1);
  }

  .stat-action {
    width: 100%;
    text-align: center;
  }

  .stat-card span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(20, 27, 45, 0.6);
  }

  .stat-card strong {
    font-size: 1.15rem;
  }

  .panel {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 27, 41, 0.08);
    box-shadow: var(--shadow-soft);
    background: #fff;
  }

  .revenue-details {
    grid-template-columns: 1fr;
  }

  .panel__header {
    margin-bottom: 14px;
  }

  .appointments-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .appointments-filters .ghost {
    white-space: nowrap;
  }

  .calendar-day {
    background: var(--surface-alt);
    border: 1px solid rgba(15, 27, 41, 0.06);
  }

  .profile-photo {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .profile-photo__preview {
    width: 100%;
    max-width: 200px;
  }

  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-hero__actions {
    width: 100%;
  }

  .profile-hero__actions button,
  .profile-hero__actions .ghost {
    flex: 1 1 140px;
    text-align: center;
  }
}




/* Landing page */
.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(25, 182, 113, 0.18), transparent 42%),
    radial-gradient(circle at 86% 8%, rgba(56, 174, 232, 0.18), transparent 36%),
    linear-gradient(180deg, #0d1f3f 0%, #132b4f 55%, #103053 100%);
  color: #eef5ff;
}

.landing-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-brand img {
  width: 170px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.sidebar__logo,
.hero__logo,
.topbar__logo,
.site-footer__logo {
  filter: brightness(0) invert(1);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-nav a,
.landing-footer__links a {
  color: rgba(233, 244, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
}

.landing-header__actions {
  display: flex;
  align-items: center;
}

.landing-header__actions .ghost {
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(140, 245, 194, 0.65);
  background: linear-gradient(130deg, #18a164 0%, #28b177 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(12, 90, 58, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.landing-header__actions .ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(12, 90, 58, 0.4);
  filter: brightness(1.03);
}

.landing-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px 36px;
  display: grid;
  gap: 24px;
}

.landing-hero {
  border-radius: 20px;
  padding: 46px 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(130deg, rgba(10, 25, 50, 0.9), rgba(16, 42, 76, 0.78) 55%, rgba(24, 126, 82, 0.64));
  box-shadow: 0 24px 46px rgba(3, 10, 26, 0.34);
}

.landing-hero h1 {
  color: #f2f7ff;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.landing-hero p {
  color: rgba(239, 247, 255, 0.86);
  max-width: 720px;
  font-size: 1.05rem;
}

.landing-hero__cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  padding: 12px 18px;
  border-radius: 12px;
  min-height: 48px;
  background: linear-gradient(130deg, #18a164 0%, #28b177 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.landing-cta--ghost {
  background: transparent;
  color: #eff7ff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.landing-section {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(12, 30, 56, 0.66);
  box-shadow: 0 18px 34px rgba(3, 10, 24, 0.28);
  padding: 26px;
}

.landing-section__header h2 {
  color: #ecf6ff;
  margin-bottom: 8px;
}

.landing-section__header p {
  color: rgba(228, 241, 255, 0.78);
}

.landing-features-grid,
.landing-pricing-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.landing-card,
.landing-price-card,
.landing-niche-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px;
}

.landing-card h3,
.landing-price-card h3 {
  color: #f3f9ff;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.landing-card p,
.landing-price-card .muted {
  color: rgba(232, 244, 255, 0.78);
}

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

.landing-niche-card {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
  min-height: 106px;
}

.landing-niche-card span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(42, 180, 120, 0.2);
  border: 1px solid rgba(106, 217, 162, 0.44);
  color: #8decbf;
  font-weight: 700;
}

.landing-niche-card strong {
  color: #edf7ff;
}

.landing-niche-card--plus {
  background: rgba(22, 165, 105, 0.14);
}

.landing-price {
  margin: 8px 0;
  color: #ffffff;
  font-size: 1.9rem;
  font-family: 'Sora', sans-serif;
}

.landing-price span {
  color: rgba(236, 246, 255, 0.82);
  font-size: 1rem;
}

.landing-price-card {
  position: relative;
}

.landing-price-card--highlight {
  border-color: rgba(99, 224, 166, 0.62);
  background: linear-gradient(145deg, rgba(33, 93, 67, 0.42), rgba(20, 53, 102, 0.42));
}

.landing-badge {
  position: absolute;
  top: -11px;
  right: 14px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #1aae6f;
  color: #fff;
  font-weight: 700;
}

.landing-cta--block {
  width: 100%;
  margin-top: 10px;
}

.landing-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-footer__brand img {
  width: 122px;
  height: auto;
}

.landing-footer__links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-footer p {
  color: rgba(231, 245, 255, 0.8);
  margin: 0;
}

/* Dashboard onboarding + actions */
.onboarding-card {
  margin-bottom: 16px;
}

.onboarding-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 27, 41, 0.08);
  overflow: hidden;
}

.onboarding-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1b4f88 0%, #1aae6f 100%);
  transition: width 0.3s ease;
}

.onboarding-steps {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.onboarding-step {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-alt);
}

.onboarding-step.done {
  border-color: rgba(26, 174, 111, 0.5);
  background: rgba(26, 174, 111, 0.1);
}

.onboarding-step__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
}

.onboarding-step__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(15, 27, 41, 0.25);
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
}

.profile-verified-help {
  min-height: 38px;
  font-size: 0.8rem;
}

#addService,
#addEmployee,
#copyClientLink {
  min-height: 48px;
}

.notification-preview {
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(24, 48, 96, 0.04);
}

.bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .landing-header {
    padding: 16px;
  }

  .landing-main {
    padding: 8px 16px 24px;
  }

  .landing-hero {
    padding: 24px 20px;
  }

  .landing-nav {
    display: none;
  }

  .landing-footer {
    padding: 18px 16px 30px;
  }

  .sidebar,
  .sidebar-overlay {
    display: none !important;
  }

  .menu-toggle {
    display: none !important;
  }

  .main {
    padding: 18px 14px 88px;
  }

  .main__top-left {
    gap: 10px;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 1fr);
    overflow-x: auto;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #102241 0%, #0b1a33 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .bottom-nav__item {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(238, 244, 255, 0.9);
    font-size: 0.74rem;
    font-weight: 600;
    display: grid;
    gap: 2px;
    place-items: center;
    padding: 6px 4px;
  }

  .bottom-nav__item::before {
    content: attr(data-icon);
    display: block;
    font-size: 0.88rem;
    line-height: 1;
  }

  .bottom-nav__item.active {
    background: rgba(26, 174, 111, 0.28);
    border-color: rgba(111, 232, 175, 0.5);
    color: #ffffff;
  }
}

@media (max-width: 700px) {
  .onboarding-step {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-price {
    font-size: 1.6rem;
  }
}
