:root {
  --ink: #111827;
  --muted: #5f6677;
  --soft: #f6f7fb;
  --surface: #ffffff;
  --line: #e6e8ef;
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --sage: #0f766e;
  --rose: #be123c;
  --gold: #b7791f;
  --shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--purple);
  border: 2px solid var(--purple);
  border-radius: 8px;
}

.brand svg {
  width: 25px;
  height: 25px;
}

.brand strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
}

.brand strong span {
  color: var(--purple);
}

.brand small {
  display: block;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-weight: 650;
  font-size: 14px;
}

.main-nav a {
  padding: 26px 0 22px;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover {
  color: var(--purple);
  border-color: var(--purple);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.language-switch a {
  min-width: 38px;
  padding: 8px 9px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

.language-switch .active {
  background: var(--ink);
  color: white;
}

.btn,
.icon-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 750;
  cursor: pointer;
  background: var(--surface);
}

.btn svg,
.icon-link svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 12px 22px rgba(124, 58, 237, 0.24);
}

.btn-primary:hover {
  background: var(--purple-dark);
}

.btn-outline,
.icon-link {
  border-color: var(--line);
  color: var(--purple-dark);
}

.icon-link {
  width: 42px;
  padding: 0;
}

.flash-wrap {
  padding-top: 18px;
}

.flash {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.flash-success {
  border-color: rgba(15, 118, 110, 0.25);
  color: var(--sage);
}

.flash-error {
  border-color: rgba(190, 18, 60, 0.25);
  color: var(--rose);
}

.hero {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 43%, rgba(255, 255, 255, 0.1) 72%),
    url("https://images.unsplash.com/photo-1518611012118-696072aa579a?auto=format&fit=crop&w=1900&q=82") center right / cover;
}

.hero-inner {
  position: relative;
  min-height: 630px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(720px, 100%);
  padding: 58px 0 88px;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--purple-dark);
  background: rgba(124, 58, 237, 0.1);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: 58px;
  line-height: 1.05;
}

.hero p {
  max-width: 590px;
  margin: 22px 0 28px;
  color: #33394a;
  font-size: 19px;
}

.search-panel,
.filter-bar,
.panel,
.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 18px;
}

.form-row,
.filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

label span,
fieldset legend {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 750;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}

textarea {
  resize: vertical;
}

.btn-search {
  min-width: 140px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: -40px;
  position: relative;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-strip div {
  padding: 26px 32px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  color: var(--purple);
  font-size: 34px;
  line-height: 1;
}

.metric-strip span {
  color: var(--muted);
}

.section {
  padding: 54px 0;
}

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

.section-head.compact {
  align-items: center;
  margin-bottom: 14px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
}

.section-head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.studio-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.studio-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.studio-tile div {
  padding: 16px;
}

.studio-tile h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.studio-tile p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0;
  color: var(--muted);
  font-size: 14px;
}

.studio-tile svg,
.muted svg,
.rating-line svg {
  width: 16px;
  height: 16px;
}

.list-page,
.dashboard-page,
.form-page,
.auth-page,
.detail-page,
.empty-page {
  padding: 32px 0 64px;
}

.filter-bar {
  padding: 18px;
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0 18px;
}

.result-head h1 {
  margin: 0;
  font-size: 24px;
}

.view-toggle {
  display: inline-flex;
  gap: 8px;
}

.view-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 20px;
  align-items: start;
}

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

.studio-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 18px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.studio-row > img {
  width: 170px;
  height: 118px;
  object-fit: cover;
  border-radius: 8px;
}

.studio-row h2 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.muted {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--purple-dark);
  margin: 10px 0 0;
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.09);
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 12px;
}

.pill.strong {
  color: var(--sage);
  background: rgba(15, 118, 110, 0.11);
}

.studio-row-side {
  min-width: 140px;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.studio-row-side strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 22px;
}

.studio-row-side strong svg,
.review-list svg {
  color: var(--gold);
  fill: currentColor;
}

.studio-row-side span {
  color: var(--muted);
  font-size: 13px;
}

.map-pane {
  position: sticky;
  top: 96px;
}

.map {
  width: 100%;
  height: 560px;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.map-caption {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 12px 0 18px;
}

.thumb-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.thumb-button img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.panel {
  padding: 22px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.service-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.service-icons span {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: var(--purple-dark);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
}

.service-icons svg {
  width: 24px;
  height: 24px;
}

.detail-title {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 14px;
}

.detail-title h1 {
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1.16;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.rating-line strong {
  color: var(--ink);
  font-size: 23px;
}

.rating-line svg {
  color: var(--gold);
  fill: currentColor;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.contact-panel p {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--muted);
}

.contact-panel p:last-child {
  margin-bottom: 0;
}

.hours-list {
  display: grid;
  gap: 8px;
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.detail-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 18px;
}

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

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

.review-score strong {
  display: block;
  font-size: 46px;
  color: var(--purple);
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-list article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.review-list span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.price-card.popular {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.13);
}

.price-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.price-card strong {
  display: block;
  color: var(--purple);
  font-size: 24px;
}

.price-card span {
  color: var(--muted);
  font-size: 13px;
}

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

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

.auth-page {
  min-height: 620px;
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(560px, 100%);
  padding: 28px;
}

.auth-panel h1 {
  margin: 0 0 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dashboard-metrics {
  margin-top: 0;
  margin-bottom: 20px;
}

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

.table-list article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.table-list article:last-child {
  border-bottom: 0;
}

.table-list strong {
  display: block;
}

.table-list span {
  color: var(--muted);
  font-size: 13px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--sage) !important;
  font-weight: 800;
}

.service-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.service-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.service-picker legend {
  padding: 0 8px;
}

.service-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-picker input {
  width: auto;
  min-height: auto;
}

.service-picker span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.table-panel {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 13px;
}

td span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

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

.inline-form select {
  min-width: 132px;
}

.empty-state,
.empty-page .panel {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: white;
}

.footer-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.app-main {
  min-height: 100vh;
  background: #f7f8fb;
}

.compact-brand {
  min-width: 0;
}

.compact-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.compact-brand strong {
  font-size: 24px;
}

.onboarding-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 44px;
}

.onboarding-header,
.app-topbar,
.management-topbar,
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.onboarding-header {
  margin-bottom: 22px;
}

.onboarding-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.onboarding-header a {
  color: var(--purple-dark);
  font-weight: 800;
}

.onboarding-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.onboarding-intro {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.86fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 28px;
}

.onboarding-intro h1 {
  max-width: 520px;
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.12;
}

.onboarding-intro p {
  max-width: 520px;
  margin: 0;
  color: #3f4658;
  font-size: 17px;
}

.onboarding-intro img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.onboarding-form {
  display: grid;
  gap: 22px;
}

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

.form-section h2,
.profile-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
}

.form-section h2 svg,
.profile-panel h2 svg {
  width: 20px;
  height: 20px;
  color: var(--purple);
}

.onboarding-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-map {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(124, 58, 237, 0.08), rgba(15, 118, 110, 0.08)),
    #f4f7fb;
  color: var(--muted);
  font-weight: 700;
}

.mini-map svg {
  width: 34px;
  height: 34px;
  color: var(--purple);
}

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

.service-choice-grid label {
  position: relative;
  display: block;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.service-choice-grid input {
  position: absolute;
  inset: 10px auto auto 10px;
  width: 18px;
  min-height: 18px;
  accent-color: var(--purple);
}

.service-choice-grid span {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px;
  text-align: center;
  color: var(--ink);
}

.service-choice-grid svg {
  width: 24px;
  height: 24px;
  color: var(--purple);
}

.service-choice-grid input:checked + span {
  color: var(--purple-dark);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.44);
}

.compact-services {
  grid-template-columns: repeat(4, 1fr);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.inline-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--purple);
}

.inline-check span {
  margin: 0;
}

.full-button {
  width: 100%;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-complete-page {
  min-height: 100vh;
}

.app-topbar {
  min-height: 72px;
  padding: 0 28px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.topbar-user,
.topbar-actions,
.admin-topbar div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--purple-dark);
  background: rgba(124, 58, 237, 0.12);
  font-weight: 900;
}

.profile-editor {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.profile-title-row {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 330px);
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.profile-title-row h1 {
  margin: 0 0 6px;
  font-size: 30px;
}

.profile-title-row p {
  margin: 0;
  color: var(--muted);
}

.completion-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.06);
}

.score-ring,
.completion-large {
  display: grid;
  place-items: center;
  border: 6px solid var(--purple);
  border-left-color: rgba(124, 58, 237, 0.18);
  border-radius: 50%;
  color: var(--ink);
  font-weight: 900;
}

.score-ring {
  width: 64px;
  height: 64px;
}

.completion-card span,
.profile-panel small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.profile-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.05);
}

.media-editor {
  display: grid;
  grid-template-columns: 190px minmax(280px, 1fr) minmax(260px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.logo-preview {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.06);
  overflow: hidden;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-preview strong {
  color: var(--purple-dark);
  font-size: 34px;
}

.cover-preview {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 8px;
}

.profile-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hours-editor {
  display: grid;
  gap: 8px;
}

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

.hours-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hours-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.hours-row input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--purple);
}

.sales-hint {
  background: rgba(15, 118, 110, 0.06);
  border-color: rgba(15, 118, 110, 0.18);
}

.profile-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(247, 248, 251, 0), #f7f8fb 35%);
}

.management-shell,
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.management-sidebar,
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: white;
}

.managed-studio {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 0 18px;
  text-align: center;
}

.managed-logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #111827;
  color: white;
  overflow: hidden;
}

.managed-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.management-nav {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.management-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #343b4c;
  font-weight: 750;
}

.management-nav a.active,
.management-nav a:hover {
  color: white;
  background: var(--purple);
}

.management-nav em {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 8px;
  color: white;
  background: var(--purple);
  font-style: normal;
  font-size: 12px;
}

.management-nav a.active em,
.management-nav a:hover em {
  background: rgba(255, 255, 255, 0.22);
}

.management-content,
.admin-content {
  min-width: 0;
  padding: 28px 32px 40px;
}

.management-topbar {
  margin-bottom: 22px;
}

.management-topbar span {
  color: var(--muted);
  font-weight: 700;
}

.management-topbar h1,
.admin-topbar h1 {
  margin: 4px 0 0;
  font-size: 28px;
}

.metric-cards,
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metric-cards article,
.admin-metrics article {
  position: relative;
  min-height: 118px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.05);
}

.metric-cards span,
.admin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-cards strong,
.admin-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.metric-cards em,
.admin-metrics em {
  color: var(--sage);
  font-style: normal;
  font-size: 13px;
}

.metric-cards svg,
.admin-metrics svg {
  position: absolute;
  right: 18px;
  top: 36px;
  width: 34px;
  height: 34px;
  padding: 7px;
  color: var(--purple);
  background: rgba(124, 58, 237, 0.1);
  border-radius: 8px;
}

.management-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.chart-panel {
  grid-column: span 2;
}

.fake-chart {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.fake-chart span {
  flex: 1;
  min-width: 20px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--purple), var(--sage));
}

.fake-chart span:nth-child(1) { height: 42%; }
.fake-chart span:nth-child(2) { height: 68%; }
.fake-chart span:nth-child(3) { height: 50%; }
.fake-chart span:nth-child(4) { height: 82%; }
.fake-chart span:nth-child(5) { height: 58%; }
.fake-chart span:nth-child(6) { height: 76%; }
.fake-chart span:nth-child(7) { height: 46%; }

.profile-warning {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  color: var(--purple-dark);
  background: rgba(124, 58, 237, 0.1);
}

.completion-large {
  width: 88px;
  height: 88px;
  margin: 4px 0 8px;
  font-size: 24px;
}

.completion-overview ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.completion-overview li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.completion-overview li svg {
  color: var(--sage);
}

.quick-actions div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-actions a {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #343b4c;
  font-weight: 750;
}

.recent-requests,
.website-opportunity {
  grid-column: span 1;
}

.recent-requests article,
.activity-panel article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.website-opportunity.attention {
  border-color: rgba(190, 18, 60, 0.22);
  background: rgba(190, 18, 60, 0.04);
}

.admin-shell {
  grid-template-columns: 252px 1fr;
  background: #f5f6fa;
}

.admin-sidebar {
  background: #101722;
  border-right: 0;
}

.admin-brand strong,
.admin-brand small {
  color: white;
}

.dark-nav {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.dark-nav a {
  color: rgba(255, 255, 255, 0.78);
}

.dark-nav a.active,
.dark-nav a:hover {
  background: var(--purple);
  color: white;
}

.admin-topbar {
  min-height: 56px;
  margin-bottom: 22px;
}

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

.admin-table {
  overflow-x: auto;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-actions form {
  margin: 0;
}

.btn-approve {
  color: white;
  background: var(--sage);
}

.btn-reject {
  color: var(--rose);
  border-color: rgba(190, 18, 60, 0.35);
}

.admin-side-panels {
  display: grid;
  gap: 18px;
}

.donut-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
}

.donut {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--purple) 0 40%, var(--sage) 40% 65%, #f59e0b 65% 82%, #94a3b8 82% 100%);
}

.donut span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  font-size: 24px;
  font-weight: 900;
}

.donut small {
  display: block;
  margin-top: -20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.donut-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.donut-card li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.donut-card li span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--purple);
}

.donut-card li:nth-child(2) span { background: var(--sage); }
.donut-card li:nth-child(3) span { background: #f59e0b; }
.donut-card li:nth-child(4) span { background: #94a3b8; }

.website-leads {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .header-inner,
  .main-nav,
  .header-actions {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero h1 {
    font-size: 42px;
  }

  .form-row,
  .filter-bar,
  .results-layout,
  .detail-grid,
  .detail-lower,
  .dashboard-grid,
  .onboarding-intro,
  .profile-title-row,
  .media-editor,
  .profile-two-col,
  .management-shell,
  .admin-shell,
  .management-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip,
  .studio-grid,
  .service-icons,
  .price-grid,
  .service-picker,
  .service-choice-grid,
  .metric-cards,
  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-pane {
    position: static;
  }

  .management-sidebar,
  .admin-sidebar {
    position: static;
    height: auto;
  }

  .chart-panel,
  .website-leads {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    min-width: 0;
  }

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

  .header-actions {
    width: 100%;
  }

  .header-actions .btn-primary {
    flex: 1;
  }

  .hero,
  .hero-inner {
    min-height: 660px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(255, 255, 255, 0.3) 100%),
      url("https://images.unsplash.com/photo-1518611012118-696072aa579a?auto=format&fit=crop&w=900&q=82") center / cover;
  }

  .hero h1 {
    font-size: 34px;
  }

  .metric-strip,
  .studio-grid,
  .service-icons,
  .price-grid,
  .form-grid,
  .service-picker,
  .service-choice-grid,
  .metric-cards,
  .admin-metrics,
  .onboarding-fields,
  .quick-actions div,
  .profile-actions,
  .hours-head,
  .hours-row,
  .donut-card {
    grid-template-columns: 1fr;
  }

  .onboarding-card,
  .profile-panel {
    padding: 18px;
  }

  .onboarding-intro h1 {
    font-size: 32px;
  }

  .management-content,
  .admin-content {
    padding: 20px 14px 34px;
  }

  .onboarding-header,
  .app-topbar,
  .management-topbar,
  .admin-topbar,
  .topbar-user,
  .topbar-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .studio-row {
    grid-template-columns: 1fr;
  }

  .studio-row > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .studio-row-side {
    justify-items: stretch;
  }

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

  .review-layout,
  .table-list article {
    grid-template-columns: 1fr;
  }

  .inline-form {
    flex-wrap: wrap;
  }
}
