:root {
  --bg: #08090b;
  --panel: #101216;
  --panel-strong: #15181e;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f0e8;
  --muted: #aeb5bd;
  --muted-strong: #d8dde2;
  --red: #d94132;
  --blue: #1d7fc6;
  --brass: #c99a45;
  --brass-light: #efcf87;
  --success: #4fc37a;
  --warning: #f0b84a;
  --danger: #ee6352;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  --shop-primary: #c99a45;
  --shop-secondary: #11141a;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(217, 65, 50, 0.18) 0 8%, transparent 8% 16%, rgba(29, 127, 198, 0.16) 16% 24%, transparent 24% 100%),
    linear-gradient(120deg, #090a0d 0%, #11151a 46%, #050608 100%);
  display: grid;
  place-items: center;
  padding: 28px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.84), transparent 78%);
}

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

.mobile-brand-strip {
  display: none;
}

.booking-shell {
  width: min(1120px, calc(100vw - 56px));
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}

.brand-panel,
.booking-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(14, 16, 20, 0.94);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.brand-panel {
  min-height: 690px;
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  align-content: space-between;
  position: relative;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(201, 154, 69, 0.22), transparent 38%),
    repeating-linear-gradient(-12deg, transparent 0 18px, rgba(255, 255, 255, 0.025) 18px 19px);
  pointer-events: none;
}

.brand-marker,
.brand-copy,
.shop-facts,
.logo {
  position: relative;
  z-index: 1;
}

.brand-marker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.marker-line {
  width: 48px;
  height: 4px;
  display: inline-block;
  background: linear-gradient(90deg, var(--red) 0 33%, #f7f7f7 33% 66%, var(--blue) 66% 100%);
}

.logo {
  width: min(100%, 610px);
  height: auto;
  align-self: center;
  justify-self: center;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.45));
}

.logo-fallback {
  width: clamp(124px, 24vw, 210px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--shop-primary, var(--brass)) 48%, rgba(255, 255, 255, 0.24));
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--shop-primary, var(--brass)) 74%, #ffffff), var(--shop-secondary, #11141a));
  color: #ffffff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3.8rem, 8vw, 7rem);
  line-height: 1;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}

.brand-copy {
  max-width: 650px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brass-light);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.96;
}

h1 {
  max-width: 620px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
}

.brand-copy p:last-child {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.shop-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  padding: 1px;
  background: var(--line);
}

.shop-facts div {
  min-height: 86px;
  padding: 16px;
  background: rgba(8, 9, 11, 0.68);
}

.shop-facts dt {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.shop-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
}

.booking-panel {
  padding: clamp(22px, 3vw, 34px);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-heading {
  margin-bottom: 24px;
}

.panel-heading p {
  margin: 0 0 8px;
  color: var(--brass-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.7rem, 5vw, 4.2rem);
}

form {
  display: grid;
  gap: 15px;
}

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

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

label {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--text);
  background: #0b0d10;
  outline: 2px solid transparent;
  outline-offset: 2px;
  padding: 0 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  font-size: 1rem;
}

textarea {
  min-height: 110px;
  padding-block: 14px;
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #737b83;
}

select {
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brass-light) 50%),
    linear-gradient(135deg, var(--brass-light) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 22px,
    calc(100% - 16px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: rgba(201, 154, 69, 0.9);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--brass);
  background: #11141a;
  box-shadow: 0 0 0 4px rgba(201, 154, 69, 0.18);
}

button {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  color: #08090b;
  background: linear-gradient(90deg, var(--brass-light), var(--brass));
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, filter 160ms ease;
}

button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: translateX(-110%);
  transition: transform 420ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

button:hover:not(:disabled)::before {
  transform: translateX(110%);
}

.button-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(8, 9, 11, 0.28);
  border-top-color: #08090b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

button.is-loading .button-text {
  display: none;
}

button.is-loading .button-loader {
  display: block;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.status-panel {
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 13px 14px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.9rem;
  line-height: 1.5;
}

.status-panel p {
  margin: 0;
}

.status-panel a {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: var(--brass-light);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.status-panel a.whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #06240f;
  background: #25d366;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: filter 160ms ease;
}

.status-panel a.whatsapp-cta:hover {
  filter: brightness(1.05);
}

.status-title {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}

.status-note {
  margin-top: 8px !important;
  color: var(--muted);
  font-size: 0.84rem;
}

.status-panel a.management-cta,
.status-panel button.management-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-panel button.management-cta {
  cursor: pointer;
}

.status-panel.success {
  border-color: rgba(79, 195, 122, 0.45);
  background: rgba(79, 195, 122, 0.08);
}

.status-panel.warning {
  border-color: rgba(240, 184, 74, 0.48);
  background: rgba(240, 184, 74, 0.09);
}

.status-panel.error {
  border-color: rgba(238, 99, 82, 0.5);
  background: rgba(238, 99, 82, 0.1);
}

.admin-entry-link,
.admin-back-link {
  width: fit-content;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: color 160ms ease, border-color 160ms ease;
}

.admin-entry-link:hover,
.admin-back-link:hover {
  color: var(--brass-light);
  border-color: currentColor;
}

.admin-body {
  align-items: start;
  padding-block: 24px;
}

.admin-shell {
  width: min(1180px, calc(100vw - 56px));
  min-width: 0;
}

.admin-login,
.admin-dashboard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 16, 20, 0.96);
  box-shadow: var(--shadow);
}

.admin-login {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  gap: 20px;
}

.admin-logo {
  width: min(100%, 310px);
  justify-self: center;
  background: #050608;
  border-radius: 8px;
}

.admin-login .panel-heading {
  margin: 0;
}

.admin-login h1,
.admin-dashboard h1 {
  font-size: clamp(2.8rem, 8vw, 4.4rem);
}

.admin-login-form {
  display: grid;
  gap: 15px;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.remember-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--brass);
}

.admin-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.admin-helper strong {
  color: var(--brass-light);
}

.admin-dashboard {
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  gap: 18px;
}

.admin-topbar,
.appointments-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-topbar .eyebrow {
  margin-bottom: 6px;
}

.admin-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-tabs {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(8, minmax(86px, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(8, 9, 11, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.admin-tab {
  min-height: 46px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-tab:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.admin-tab.is-active {
  color: #08090b;
  border-color: rgba(239, 207, 135, 0.62);
  background: linear-gradient(135deg, var(--brass-light), var(--brass));
}

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

.guide-hero,
.guide-tips {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 154, 69, 0.16), rgba(29, 127, 198, 0.08)),
    rgba(8, 9, 11, 0.74);
  box-shadow: var(--shadow);
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 4vw, 30px);
}

.guide-hero h2 {
  margin: 6px 0 10px;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.guide-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.65;
}

.guide-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.guide-quick-actions button,
.guide-shortcut {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.guide-quick-actions button:hover,
.guide-shortcut:hover {
  border-color: rgba(201, 154, 69, 0.48);
  background: rgba(201, 154, 69, 0.12);
  color: var(--brass-light);
}

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

.guide-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.guide-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brass-light), var(--brass));
  color: #08090b;
  font-weight: 1000;
}

.guide-card h3,
.guide-tips h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.guide-card p,
.guide-card li,
.guide-tips li {
  color: var(--muted-strong);
  line-height: 1.58;
}

.guide-card p {
  margin: 0;
}

.guide-steps,
.guide-list,
.guide-tips ul {
  margin: 0;
  padding-left: 1.15rem;
}

.guide-shortcut {
  width: fit-content;
  margin-top: 4px;
  padding: 0 14px;
}

.guide-tips {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.guide-tips .eyebrow {
  margin-bottom: 6px;
}

.today-panel {
  display: grid;
  gap: 14px;
}

.today-hero {
  min-height: 170px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(201, 154, 69, 0.18), rgba(29, 127, 198, 0.1)),
    rgba(8, 9, 11, 0.66);
  box-shadow: var(--shadow);
}

.today-hero h2 {
  margin: 6px 0 8px;
  color: var(--text);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.today-hero span {
  color: var(--muted-strong);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}

.today-hero strong {
  flex: 0 0 auto;
  color: var(--brass-light);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(4rem, 10vw, 6.5rem);
  font-weight: 400;
  line-height: 0.8;
}

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

.today-appointment-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.today-appointment-card .row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.today-appointment-card .mini-action {
  min-height: 44px;
  justify-content: center;
}

.secondary-button,
.mini-action {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.secondary-button:hover,
.mini-action:hover {
  background: rgba(201, 154, 69, 0.13);
  border-color: rgba(201, 154, 69, 0.55);
  color: var(--brass-light);
}

.danger-button,
.cancel-action {
  color: #ffaaa1;
}

.admin-filters {
  display: grid;
  grid-template-columns: 180px 160px 160px 180px minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
}

.quick-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quick-filter-row .mini-action {
  min-height: 42px;
}

.search-field {
  min-width: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.admin-stats article {
  min-height: 104px;
  padding: 18px;
  background: rgba(8, 9, 11, 0.68);
  display: grid;
  align-content: center;
  gap: 8px;
}

.admin-stats span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-stats strong {
  color: var(--text);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.9;
}

.admin-schedule {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 11, 0.55);
}

.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-head h2 {
  font-size: 2.1rem;
}

.admin-section-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.45;
  text-align: right;
}

.schedule-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.weekday-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.weekday-fieldset legend {
  margin-bottom: 9px;
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.weekday-grid label {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.weekday-grid input {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--brass);
}

.schedule-times-panel {
  display: grid;
  gap: 12px;
}

.time-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.time-add-row input,
.time-add-row button {
  min-height: 42px;
}

.schedule-times-list {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-time-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 0 12px;
  border: 1px solid rgba(201, 154, 69, 0.34);
  border-radius: 8px;
  background: rgba(201, 154, 69, 0.1);
  color: var(--brass-light);
  font-size: 0.82rem;
  font-weight: 900;
}

.schedule-time-chip button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.schedule-time-chip button:hover {
  background: rgba(238, 99, 82, 0.16);
  color: #ffb2aa;
}

.schedule-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.schedule-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.schedule-actions button {
  width: min(100%, 270px);
}

.appointments-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 9, 11, 0.55);
}

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

.appointments-head h2 {
  font-size: 2.1rem;
}

.appointments-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.appointments-table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.appointments-table th,
.appointments-table td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
}

.appointments-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.appointments-table td {
  color: var(--muted-strong);
  font-size: 0.92rem;
}

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

.client-cell strong {
  color: var(--text);
}

.client-cell span {
  color: var(--muted);
  font-size: 0.84rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge.is-scheduled {
  color: #bbffd3;
  background: rgba(79, 195, 122, 0.12);
  border: 1px solid rgba(79, 195, 122, 0.28);
}

.status-badge.is-cancelled {
  color: #ffb2aa;
  background: rgba(238, 99, 82, 0.12);
  border: 1px solid rgba(238, 99, 82, 0.28);
}

.status-badge.is-completed {
  color: #b8ddff;
  background: rgba(29, 127, 198, 0.14);
  border: 1px solid rgba(29, 127, 198, 0.32);
}

.status-badge.is-warning {
  color: #ffe2a3;
  background: rgba(201, 154, 69, 0.14);
  border: 1px solid rgba(201, 154, 69, 0.34);
}

.status-badge.is-no-show {
  color: #ffb2aa;
  background: rgba(238, 99, 82, 0.12);
  border: 1px solid rgba(238, 99, 82, 0.28);
}

.mini-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.appointments-list {
  display: none;
}

.empty-state {
  margin: 0;
  padding: 26px 18px;
  color: var(--muted);
  text-align: center;
}

.appointment-mobile-card {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
}

.appointment-mobile-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.appointment-mobile-top strong {
  color: var(--text);
  font-size: 1rem;
}

.appointment-mobile-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.appointment-mobile-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.appointment-mobile-card dd {
  margin: 4px 0 0;
  color: var(--muted-strong);
  font-weight: 800;
}

.clients-panel {
  align-content: start;
}

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

.client-card {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.client-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.client-card-head > div:first-child {
  display: grid;
  gap: 4px;
}

.client-card-head strong {
  color: var(--text);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.client-card-head span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.client-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.client-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.client-badge.success {
  color: #dcffe8;
  background: rgba(37, 211, 102, 0.14);
}

.client-badge.warning {
  color: #ffe3a1;
  background: rgba(240, 184, 74, 0.14);
}

.client-badge.danger {
  color: #ffd9d3;
  background: rgba(238, 99, 82, 0.16);
}

.client-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.client-stats-grid div,
.client-flags,
.client-history {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}

.client-stats-grid dt {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-stats-grid dd {
  margin: 5px 0 0;
  color: var(--text);
  font-weight: 900;
}

.client-flags {
  display: grid;
  gap: 9px;
}

.client-flags > strong,
.client-history summary {
  color: var(--brass-light);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-flag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.client-flag-row p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
  line-height: 1.45;
}

.client-history {
  color: var(--muted-strong);
}

.client-history summary {
  cursor: pointer;
}

.client-history-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted-strong);
  font-size: 0.86rem;
}

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

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

.subscription-help-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(201, 154, 69, 0.22);
  border-radius: 8px;
  padding: 13px;
  background: rgba(201, 154, 69, 0.08);
}

.subscription-help-grid strong {
  color: var(--text);
  font-size: 0.94rem;
}

.subscription-help-grid p,
.subscription-rule-field p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.crud-panel,
.settings-panel {
  min-width: 0;
}

.crud-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 11, 0.55);
}

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

.field.is-muted {
  opacity: 0.55;
}

.compact-check {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.subscription-rule-field {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.subscription-rule-field legend {
  padding: 0 6px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
}

.weekday-check-grid,
.service-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekday-check-grid label,
.service-check-grid label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  font-weight: 800;
}

.service-check-grid span {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.entity-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.entity-item > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.entity-item strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.entity-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.subscription-rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subscription-rule-chips span {
  border: 1px solid rgba(201, 154, 69, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--brass-light);
  background: rgba(201, 154, 69, 0.08);
  font-size: 0.72rem;
  line-height: 1.2;
}

.entity-with-avatar {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.entity-with-avatar > div:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.entity-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 154, 69, 0.26);
  border-radius: 8px;
  color: var(--brass-light);
  background: rgba(201, 154, 69, 0.1);
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 900;
}

.entity-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entity-empty {
  padding: 18px;
}

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

.config-quick-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.accesses-panel {
  align-self: stretch;
}

.panel-note {
  margin: 0 0 14px;
  color: var(--muted-strong);
  line-height: 1.55;
}

.access-password-form,
.team-access-item {
  margin-bottom: 14px;
}

.compact-head {
  padding: 0;
}

.compact-head h3 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 1.15rem;
}

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

.form-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-actions-row > * {
  flex: 1 1 180px;
}

.install-app-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.install-app-panel h3 {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: 1.35rem;
}

.install-app-panel p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

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

.install-app-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.install-app-grid strong {
  color: var(--text);
}

.install-app-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.is-staff-mode .today-panel {
  gap: 14px;
}

.master-shell {
  width: min(1280px, calc(100vw - 56px));
}

.master-login {
  width: min(520px, 100%);
}

.session-info {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.master-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.master-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 9, 11, 0.55);
  overflow: hidden;
}

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

.master-security-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.master-security-card h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.15rem;
}

.master-panel-head {
  padding: 18px;
}

.master-panel-head h2,
.master-form-head h2 {
  font-size: 2.1rem;
}

.master-backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.restore-backup-panel {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.restore-backup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
}

.restore-backup-head strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.restore-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.restore-summary-grid article {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.restore-summary-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.restore-summary-grid strong {
  color: var(--text);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

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

.restore-warning {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(240, 184, 74, 0.28);
  border-radius: 8px;
  color: #ffe4a3;
  background: rgba(240, 184, 74, 0.09);
  font-size: 0.88rem;
  line-height: 1.5;
}

.restore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.master-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.master-table th,
.master-table td {
  white-space: nowrap;
}

.master-table .row-actions {
  flex-wrap: nowrap;
}

.master-card-list {
  display: none;
}

.access-cell {
  display: grid;
  gap: 4px;
}

.access-cell strong {
  color: var(--text);
}

.access-cell span {
  color: var(--muted);
  font-size: 0.82rem;
}

.status-badge.is-inactive {
  color: #ffd4cf;
  background: rgba(238, 99, 82, 0.12);
  border: 1px solid rgba(238, 99, 82, 0.28);
}

.dev-tools-panel,
.dev-shortcuts {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(240, 184, 74, 0.3);
  border-radius: 8px;
  background: rgba(240, 184, 74, 0.08);
}

.dev-tools-panel span {
  color: var(--warning);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dev-tools-panel p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
  line-height: 1.5;
}

.dev-tools-panel .secondary-button {
  width: 100%;
}

.dev-shortcuts {
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: center;
}

.dev-shortcuts h2 {
  font-size: 2rem;
}

.dev-shortcuts nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dev-shortcuts a,
.public-contact-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.dev-shortcuts a:hover,
.public-contact-actions a:hover {
  border-color: rgba(201, 154, 69, 0.55);
  background: rgba(201, 154, 69, 0.13);
  color: var(--brass-light);
}

.branding-preview {
  min-height: 170px;
  display: grid;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(110deg, rgba(5, 6, 8, 0.92), rgba(5, 6, 8, 0.56)),
    linear-gradient(135deg, var(--preview-primary, var(--brass)), var(--preview-secondary, #11141a));
  overflow: hidden;
}

.branding-preview span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--preview-primary, var(--brass-light));
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.branding-preview strong {
  display: block;
  max-width: 680px;
  color: var(--text);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.branding-preview p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

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

.asset-upload-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.asset-preview {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 154, 69, 0.28);
  border-radius: 8px;
  color: var(--brass-light);
  background:
    linear-gradient(135deg, rgba(201, 154, 69, 0.16), rgba(29, 127, 198, 0.08)),
    rgba(8, 9, 11, 0.72);
  overflow: hidden;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.asset-cover-preview {
  width: 132px;
  aspect-ratio: 16 / 9;
  height: auto;
}

.asset-avatar-preview {
  border-radius: 50%;
}

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

.asset-logo-preview img {
  object-fit: contain;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.asset-upload-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.asset-upload-content strong {
  color: var(--text);
  font-size: 0.92rem;
}

.asset-upload-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.asset-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.asset-file-input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

input[type="color"] {
  min-height: 52px;
  padding: 7px;
  cursor: pointer;
}

.public-booking-shell {
  width: min(1240px, calc(100vw - 56px));
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.82fr);
}

.public-hero {
  min-height: 760px;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.92), rgba(5, 6, 8, 0.58)),
    linear-gradient(135deg, rgba(201, 154, 69, 0.22), rgba(29, 127, 198, 0.12));
  background-position: center;
  background-size: cover;
}

.public-hero::before {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--shop-primary) 30%, transparent), transparent 42%),
    repeating-linear-gradient(-12deg, transparent 0 18px, rgba(255, 255, 255, 0.026) 18px 19px);
}

.public-hero .marker-line {
  background: linear-gradient(90deg, var(--shop-primary), #f7f7f7 50%, var(--shop-secondary));
}

.public-hero .logo {
  max-height: 240px;
  object-fit: contain;
}

.shop-description {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted-strong);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.public-contact-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.public-contact-actions a:first-child {
  border-color: rgba(37, 211, 102, 0.36);
  color: #dcffe8;
  background: rgba(37, 211, 102, 0.12);
}

.public-booking-panel {
  justify-content: flex-start;
  gap: 18px;
}

.public-section {
  display: grid;
  gap: 10px;
}

.public-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.public-section-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-section-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.public-card-grid {
  display: grid;
  gap: 8px;
}

.public-info-card {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.042);
}

.public-info-card strong {
  color: var(--text);
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.public-info-card span,
.public-info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.public-info-card span {
  color: var(--brass-light);
}

.barber-public-card {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
}

.public-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 154, 69, 0.32);
  border-radius: 8px;
  color: var(--brass-light);
  background: rgba(201, 154, 69, 0.11);
  font-weight: 900;
  overflow: hidden;
}

.public-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-policy {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.public-policy strong {
  color: var(--brass-light);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.public-policy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.client-appointment-body {
  align-items: start;
}

.client-appointment-shell {
  width: min(860px, calc(100vw - 36px));
  margin: 36px auto;
  display: grid;
  gap: 16px;
}

.client-appointment-hero,
.client-appointment-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 154, 69, 0.12), rgba(29, 127, 198, 0.08)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.client-appointment-hero {
  padding: clamp(24px, 5vw, 42px);
}

.client-appointment-hero h1 {
  margin: 6px 0 8px;
  color: var(--text);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 400;
  line-height: 0.92;
}

.client-appointment-hero p:last-child {
  margin: 0;
  color: var(--muted-strong);
  font-weight: 800;
}

.client-token-note {
  max-width: 620px;
  margin-top: 12px !important;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.client-appointment-card {
  padding: clamp(18px, 4vw, 28px);
  display: grid;
  gap: 18px;
}

.client-appointment-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.client-appointment-card-head h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  line-height: 1.05;
}

.client-appointment-card-head a,
.client-actions a {
  color: var(--brass-light);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.appointment-status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appointment-status-pill.is-scheduled {
  color: #dcffe8;
  background: rgba(37, 211, 102, 0.16);
}

.appointment-status-pill.is-completed {
  color: #d7eaff;
  background: rgba(29, 127, 198, 0.2);
}

.appointment-status-pill.is-cancelled {
  color: #ffd9d3;
  background: rgba(238, 99, 82, 0.18);
}

.client-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.client-detail-grid div,
.client-policy-panel {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.client-detail-grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-detail-grid dd {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.client-policy-panel {
  display: grid;
  gap: 6px;
}

.client-policy-panel strong {
  color: var(--brass-light);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-policy-panel p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

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

.client-actions button {
  min-height: 48px;
  padding: 0 18px;
}

.client-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
}

.master-form-panel {
  padding: 18px;
  display: grid;
  gap: 18px;
  overflow: visible;
}

.master-form-head,
.access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.master-form-head .mini-action {
  flex: 0 0 auto;
}

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

.master-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
}

.access-form {
  margin-top: 2px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.access-head strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
}

.access-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-toggle input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--brass);
}

.password-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.master-mobile-card .row-actions {
  margin-top: 2px;
}

.mobile-only {
  display: none;
}

.flatpickr-calendar {
  width: min(338px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid rgba(201, 154, 69, 0.46);
  border-radius: 8px;
  background: #0e1116;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.62);
  z-index: 20;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
  display: none;
}

.flatpickr-months {
  height: 42px;
  align-items: center;
  margin-bottom: 6px;
}

.flatpickr-months .flatpickr-month {
  height: 42px;
  color: var(--text);
}

.flatpickr-current-month {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 74px);
  height: 42px;
  left: 37px;
  padding: 0;
  color: var(--brass-light);
  font-size: 1rem;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper,
.flatpickr-current-month input.cur-year {
  height: 32px;
  min-height: 0;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  width: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  color: var(--brass-light);
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 32px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  appearance: auto;
  cursor: pointer;
  background-image: none;
  padding-right: 2px;
}

.flatpickr-current-month .numInputWrapper {
  width: 66px;
  display: inline-flex;
  align-items: center;
}

.flatpickr-current-month input.cur-year {
  text-align: left;
}

.flatpickr-current-month .numInputWrapper span {
  border-color: rgba(239, 207, 135, 0.45);
}

.flatpickr-current-month .numInputWrapper span.arrowUp::after {
  border-bottom-color: var(--brass-light);
}

.flatpickr-current-month .numInputWrapper span.arrowDown::after {
  border-top-color: var(--brass-light);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  top: 10px;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted-strong);
  fill: currentColor;
  transition: background 160ms ease, color 160ms ease;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: var(--brass-light);
  background: rgba(201, 154, 69, 0.12);
}

.flatpickr-weekdays {
  height: 30px;
  margin: 0 0 4px;
}

span.flatpickr-weekday {
  height: 30px;
  color: rgba(216, 221, 226, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 30px;
  text-transform: uppercase;
}

.flatpickr-days,
.dayContainer {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year,
.flatpickr-weekday,
.flatpickr-day {
  color: var(--text);
}

.flatpickr-day {
  width: 14.285714%;
  max-width: none;
  height: 38px;
  border-radius: 8px;
  color: var(--muted-strong);
  font-weight: 800;
  line-height: 38px;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: rgba(201, 154, 69, 0.14);
  border-color: rgba(201, 154, 69, 0.4);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: #08090b;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  color: rgba(244, 240, 232, 0.25);
}

.home-body {
  display: block;
  padding: 0;
  color: #f6efe1;
  background:
    linear-gradient(135deg, rgba(211, 57, 42, 0.28) 0 14%, transparent 14% 100%),
    linear-gradient(115deg, #08090b 0%, #15171d 46%, #07141b 100%);
}

.home-header,
.home-section,
.home-access-band,
.home-final-cta,
.home-footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.home-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-logo,
.home-nav,
.home-footer nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-logo,
.home-nav a,
.home-footer a,
.home-card-link,
.home-example-card a,
.home-primary-action,
.home-secondary-action {
  color: inherit;
  text-decoration: none;
}

.home-logo {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-logo img {
  width: 54px;
  height: 38px;
  object-fit: contain;
}

.home-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-nav a,
.home-footer a {
  color: rgba(246, 239, 225, 0.76);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-nav a:hover,
.home-footer a:hover {
  color: #efcf87;
}

.home-hero {
  min-height: min(720px, calc(100vh - 78px));
  display: grid;
  align-items: end;
  padding: clamp(80px, 11vw, 148px) 0 clamp(64px, 9vw, 116px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.96), rgba(8, 9, 11, 0.62) 58%, rgba(8, 9, 11, 0.92)),
    url("pietro-mark.svg") right 8% center / min(34vw, 420px) auto no-repeat;
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: linear-gradient(90deg, #d94132 0 33%, #f6efe1 33% 66%, #1d7fc6 66% 100%);
}

.home-hero-inner {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.home-hero h1,
.home-section-heading h2,
.home-final-cta h2 {
  max-width: 840px;
  color: #fff7e8;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(4rem, 12vw, 9.2rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.home-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(246, 239, 225, 0.78);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

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

.home-primary-action,
.home-secondary-action,
.home-card-link,
.home-example-card a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-primary-action,
.home-card-link,
.home-example-card a {
  color: #090a0d;
  background: linear-gradient(135deg, #efcf87, #c99a45);
}

.home-secondary-action {
  color: #f6efe1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.home-access-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: -38px;
}

.home-access-card,
.home-benefit-grid article,
.home-example-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(16, 18, 22, 0.96);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
}

.home-access-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.home-access-card span,
.home-example-card span {
  color: #efcf87;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-access-card h2,
.home-example-card h3 {
  margin: 0;
  color: #fff7e8;
  font-size: 1.25rem;
  line-height: 1.15;
}

.home-access-card p,
.home-example-card p,
.home-benefit-grid p {
  margin: 0;
  color: rgba(246, 239, 225, 0.7);
  line-height: 1.55;
}

.home-inline-form {
  display: grid;
  gap: 8px;
}

.home-inline-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.home-inline-form button {
  min-width: 130px;
  margin: 0;
}

.home-section {
  padding-block: clamp(62px, 9vw, 112px);
}

.home-section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.home-section-heading h2,
.home-final-cta h2 {
  max-width: 720px;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.home-benefit-grid,
.home-example-grid {
  display: grid;
  gap: 12px;
}

.home-benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.home-benefit-grid article {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.home-benefit-grid strong {
  color: #fff7e8;
  font-size: 1.05rem;
}

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

.home-feature-list span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(246, 239, 225, 0.84);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 900;
}

.home-example-card {
  min-height: 280px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.home-example-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
}

.home-example-card > * {
  position: relative;
  z-index: 1;
}

.home-example-card.is-canaa {
  background:
    linear-gradient(135deg, rgba(201, 154, 69, 0.18), rgba(0, 0, 0, 0.34)),
    #0d0e11;
}

.home-example-card.is-canaa::before {
  background: repeating-linear-gradient(-12deg, transparent 0 18px, rgba(239, 207, 135, 0.08) 18px 19px);
}

.home-example-card.is-teste {
  color: #071016;
  background:
    linear-gradient(135deg, rgba(240, 111, 56, 0.26), rgba(29, 127, 140, 0.2)),
    #f5efe4;
}

.home-example-card.is-teste h3,
.home-example-card.is-teste p {
  color: #071016;
}

.home-example-card.is-teste span {
  color: #c7471f;
}

.home-final-cta {
  margin-bottom: 56px;
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 154, 69, 0.18), rgba(29, 127, 198, 0.11)),
    rgba(255, 255, 255, 0.045);
}

.home-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(246, 239, 225, 0.74);
}

.home-footer span {
  font-weight: 900;
}

.client-link-panel {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 4vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(29, 127, 198, 0.12), rgba(201, 154, 69, 0.1)),
    rgba(255, 255, 255, 0.045);
}

.client-link-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: center;
}

.client-link-main {
  display: grid;
  gap: 10px;
}

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

.client-link-actions .mini-action {
  min-height: 44px;
  justify-content: center;
}

.client-link-qr {
  margin: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.client-link-qr img {
  width: 160px;
  height: 160px;
  border: 8px solid #fff;
  border-radius: 8px;
  background: #fff;
}

.client-link-qr figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.branding-preview[data-theme-variant="clean_light"] {
  background: linear-gradient(135deg, #f8f4ec, #ffffff);
}

.branding-preview[data-theme-variant="clean_light"] strong,
.branding-preview[data-theme-variant="clean_light"] p {
  color: #161a1d;
}

.branding-preview[data-theme-variant="urban_contrast"] {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--preview-primary) 25%, transparent), transparent 42%),
    linear-gradient(120deg, #f4f0e8, #11141a);
}

.branding-preview[data-theme-variant="warm_local"] {
  background: linear-gradient(135deg, #2b2118, color-mix(in srgb, var(--preview-primary) 18%, #2b2118));
}

.public-body.theme-clean-light {
  --bg: #f6f2ea;
  --panel: #ffffff;
  --panel-strong: #f1eadf;
  --line: rgba(20, 24, 28, 0.13);
  --text: #15191d;
  --muted: #5f6870;
  --muted-strong: #31383f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 242, 234, 0.96)),
    #f6f2ea;
}

.theme-clean-light .brand-panel,
.theme-clean-light .booking-panel {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 18, 22, 0.12);
  box-shadow: 0 22px 60px rgba(23, 21, 18, 0.13);
}

.theme-clean-light .public-hero {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68)),
    linear-gradient(135deg, color-mix(in srgb, var(--shop-primary) 22%, white), white);
}

.theme-clean-light .brand-panel::before {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--shop-primary) 20%, transparent), transparent 48%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.035));
}

.theme-clean-light input,
.theme-clean-light select,
.theme-clean-light textarea {
  color: #15191d;
  background-color: #f8f5ef;
  border-color: rgba(15, 18, 22, 0.14);
}

.theme-clean-light .shop-facts,
.theme-clean-light .public-info-card,
.theme-clean-light .public-policy,
.theme-clean-light .mobile-brand-strip {
  background: rgba(21, 25, 29, 0.04);
  border-color: rgba(21, 25, 29, 0.1);
}

.theme-clean-light .shop-facts div {
  background: #ffffff;
}

.public-body.theme-urban-contrast {
  --text: #f8f2e8;
  --muted: #c7cbd0;
  --muted-strong: #f4eee4;
  background:
    linear-gradient(135deg, #f06f38 0 16%, transparent 16% 100%),
    linear-gradient(120deg, #081016 0%, #1c252d 52%, #050608 100%);
}

.theme-urban-contrast .public-booking-shell {
  grid-template-columns: minmax(410px, 0.78fr) minmax(0, 1fr);
}

.theme-urban-contrast .public-hero {
  order: 2;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.38), rgba(5, 6, 8, 0.86)),
    linear-gradient(135deg, color-mix(in srgb, var(--shop-secondary) 45%, #101216), #06080a);
}

.theme-urban-contrast .public-booking-panel {
  order: 1;
  border-top: 8px solid var(--shop-secondary);
}

.theme-urban-contrast .public-info-card,
.theme-urban-contrast .public-policy {
  border-color: color-mix(in srgb, var(--shop-secondary) 58%, rgba(255, 255, 255, 0.16));
  background: rgba(255, 255, 255, 0.07);
}

.theme-urban-contrast button {
  background: linear-gradient(135deg, var(--shop-secondary), #f6efe1);
}

.public-body.theme-warm-local {
  --text: #fff8ed;
  --muted: #d8c7b0;
  --muted-strong: #f1dbc0;
  background:
    linear-gradient(135deg, rgba(169, 91, 36, 0.24), transparent 38%),
    linear-gradient(120deg, #17100d 0%, #2a1b13 58%, #0f0d0b 100%);
}

.theme-warm-local .brand-panel,
.theme-warm-local .booking-panel {
  background: rgba(36, 24, 17, 0.94);
}

.theme-warm-local .public-hero::before {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--shop-primary) 24%, transparent), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px);
}

.client-appointment-body {
  background:
    linear-gradient(135deg, rgba(201, 154, 69, 0.16), rgba(29, 127, 198, 0.08)),
    linear-gradient(120deg, #090a0d, #141820);
}

.platform-plan-box {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(201, 154, 69, 0.24);
  border-radius: 8px;
  padding: 16px;
  background: rgba(201, 154, 69, 0.06);
}

.platform-plan-box h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.platform-plan-cell {
  align-items: flex-start;
}

.auto-refresh-info {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.platform-access-notice {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr) auto auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(79, 195, 122, 0.22);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(79, 195, 122, 0.08);
}

.platform-access-notice div {
  display: grid;
  gap: 4px;
}

.platform-access-notice strong {
  color: var(--text);
}

.platform-access-notice span {
  color: var(--muted);
  font-size: 0.9rem;
}

.renewal-eyebrow {
  color: var(--brass-light) !important;
  font-size: 0.68rem !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.renewal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.renewal-facts div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.renewal-facts dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.renewal-facts dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.renewal-actions {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.renewal-actions .mini-action {
  width: 100%;
  justify-content: center;
}

.platform-access-notice.is-warning {
  border-color: rgba(201, 154, 69, 0.34);
  background: rgba(201, 154, 69, 0.1);
}

.platform-access-notice.is-danger {
  border-color: rgba(238, 99, 82, 0.32);
  background: rgba(238, 99, 82, 0.1);
}

.platform-access-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-plans-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.public-plan-card {
  align-items: flex-start;
}

.public-plan-price {
  color: var(--shop-primary, var(--brass));
  font-weight: 900;
}

.public-plan-facts {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 0;
}

.public-plan-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.public-plan-facts dt,
.public-plan-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.public-plan-facts dd {
  color: var(--text);
  font-weight: 800;
  text-align: right;
}

.public-plan-action,
.customer-dashboard-head a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  color: #08090b;
  background: var(--shop-primary, var(--brass));
  font-weight: 900;
  text-decoration: none;
}

.customer-code-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  color: #08090b;
  background: var(--brass);
  font-weight: 900;
}

.customer-portal-body {
  min-height: 100vh;
}

.customer-portal-shell {
  width: min(100% - 32px, 1040px);
  display: grid;
  gap: 18px;
  margin: 24px auto;
}

.customer-portal-hero,
.customer-login-card,
.customer-dashboard,
.customer-section-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(14, 16, 20, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.customer-portal-hero {
  padding: clamp(24px, 5vw, 42px);
}

.customer-portal-hero h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.1rem, 10vw, 6rem);
  font-weight: 400;
  line-height: 0.92;
}

.customer-portal-hero p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.customer-install-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  border: 1px solid rgba(201, 154, 69, 0.32);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--brass-light);
  background: rgba(201, 154, 69, 0.1);
  font-size: 0.8rem;
  font-weight: 900;
}

.customer-login-card,
.customer-dashboard {
  padding: clamp(18px, 4vw, 28px);
}

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

.customer-dashboard-head h2 {
  margin: 0 0 4px;
  color: var(--text);
}

.customer-dashboard-head span {
  color: var(--muted);
}

.customer-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.customer-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
}

.customer-section-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.customer-section-card:first-child {
  grid-row: span 2;
}

.customer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-section-head h3 {
  margin: 0;
  color: var(--text);
}

.customer-section-head span {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.customer-mini-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.customer-mini-card strong {
  color: var(--text);
}

.customer-mini-card span,
.customer-mini-card small {
  color: var(--muted);
}

.customer-mini-card .mini-action {
  width: fit-content;
  min-height: 40px;
  justify-content: center;
  margin-top: 4px;
}

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

@media (max-width: 960px) {
  body {
    place-items: start center;
    padding: 18px;
  }

  .booking-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: auto;
    gap: 28px;
  }

  .admin-filters,
  .admin-stats,
  .management-grid,
  .master-security-grid,
  .master-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .master-security-grid,
  .master-layout {
    grid-template-columns: 1fr;
  }

  .dev-shortcuts {
    grid-template-columns: 1fr;
  }

  .dev-shortcuts nav {
    justify-content: flex-start;
  }

  .home-access-band,
  .home-benefit-grid {
    grid-template-columns: 1fr;
  }

  .home-example-grid,
  .guide-hero,
  .guide-card-grid,
  .guide-tips,
  .client-link-layout {
    grid-template-columns: 1fr;
  }

  .guide-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-link-qr {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  body {
    padding: 8px;
    background:
      linear-gradient(145deg, rgba(217, 65, 50, 0.2) 0 10%, transparent 10% 22%, rgba(29, 127, 198, 0.18) 22% 34%, transparent 34% 100%),
      linear-gradient(120deg, #090a0d 0%, #11151a 48%, #050608 100%);
  }

  .booking-shell {
    width: calc(100vw - 16px);
    gap: 10px;
  }

  .admin-shell {
    width: calc(100vw - 16px);
  }

  .master-shell {
    width: calc(100vw - 16px);
  }

  .brand-panel,
  .booking-panel {
    padding: 16px;
  }

  .booking-panel {
    order: 1;
    justify-content: flex-start;
  }

  .brand-panel {
    order: 2;
    gap: 14px;
  }

  .public-hero {
    min-height: auto;
  }

  .public-hero .logo {
    max-height: 170px;
  }

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

  .public-card-grid {
    gap: 10px;
  }

  .dev-shortcuts a,
  .public-contact-actions a {
    width: 100%;
  }

  .public-contact-actions {
    display: grid;
  }

  .mobile-brand-strip {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(5, 6, 8, 0.72);
    margin-bottom: 4px;
  }

  .mobile-brand-strip img {
    width: 82px;
    height: 58px;
    object-fit: contain;
    background: #050608;
    border-radius: 6px;
  }

  .mobile-logo-fallback {
    width: 82px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--shop-primary, var(--brass)) 42%, rgba(255, 255, 255, 0.22));
    border-radius: 6px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--shop-primary, var(--brass)) 72%, #ffffff), var(--shop-secondary, #11141a));
    color: #ffffff;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 2rem;
    line-height: 1;
  }

  .mobile-brand-strip strong {
    display: block;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .mobile-brand-strip span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .booking-panel .panel-heading {
    margin-bottom: 12px;
  }

  .panel-heading p,
  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.11em;
  }

  h2 {
    font-size: clamp(2.45rem, 13vw, 3.35rem);
  }

  form {
    gap: 12px;
  }

  .shop-facts,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .shop-facts div {
    min-height: 62px;
    padding: 12px;
  }

  .brand-marker {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .marker-line {
    width: 34px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 3.65rem);
  }

  .brand-panel .logo {
    width: min(100%, 300px);
    align-self: start;
  }

  .brand-copy p:last-child {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  input,
  select,
  button {
    min-height: 54px;
  }

  input,
  select {
    padding-inline: 14px;
  }

  button {
    margin-top: 2px;
  }

  .form-note {
    font-size: 0.78rem;
  }

  .admin-topbar,
  .admin-section-head,
  .appointments-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-section-head span {
    text-align: left;
  }

  .admin-body {
    padding-block: 8px;
  }

  .admin-login,
  .admin-dashboard {
    padding: 16px;
  }

  .admin-logo {
    width: min(100%, 260px);
  }

  .admin-login {
    gap: 16px;
  }

  .admin-login h1,
  .admin-dashboard h1 {
    font-size: clamp(2.6rem, 15vw, 3.6rem);
  }

  .admin-actions,
  .admin-actions button {
    width: 100%;
  }

  .admin-tabs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(96px, 1fr);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tab {
    min-height: 50px;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .guide-hero,
  .guide-card,
  .guide-tips {
    padding: 14px;
  }

  .guide-quick-actions {
    grid-template-columns: 1fr;
  }

  .guide-shortcut {
    width: 100%;
  }

  .today-hero {
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
  }

  .today-hero strong {
    align-self: flex-end;
    margin-top: -16px;
  }

  .today-list {
    grid-template-columns: 1fr;
  }

  .admin-filters,
  .schedule-form,
  .appointment-mobile-card dl,
  .client-detail-grid,
  .client-stats-grid,
  .master-form-grid,
  .management-grid,
  .subscription-help-grid,
  .asset-upload-grid,
  .access-permissions-grid,
  .install-app-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .quick-filter-row,
  .quick-filter-row .mini-action,
  .form-actions-row > * {
    width: 100%;
  }

  .client-appointment-shell {
    width: min(100% - 24px, 860px);
    margin: 18px auto;
  }

  .client-appointment-card-head,
  .client-card-head,
  .client-flag-row,
  .client-actions,
  .customer-dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-access-notice {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .renewal-facts {
    grid-template-columns: 1fr;
  }

  .renewal-actions {
    min-width: 0;
  }

  .auto-refresh-info {
    width: 100%;
    text-align: center;
  }

  .customer-portal-shell {
    width: min(100% - 24px, 1040px);
    margin: 18px auto;
  }

  .customer-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .customer-section-card:first-child {
    grid-row: auto;
  }

  .customer-dashboard-head a,
  .public-plan-action {
    width: 100%;
  }

  .client-badges {
    justify-content: flex-start;
  }

  .admin-schedule {
    padding: 16px;
  }

  .crud-panel {
    padding: 16px;
  }

  .config-quick-actions,
  .config-quick-actions button {
    width: 100%;
  }

  .entity-item {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-upload-card {
    grid-template-columns: 1fr;
  }

  .asset-preview,
  .asset-cover-preview {
    width: 100%;
    height: auto;
    min-height: 150px;
    aspect-ratio: 16 / 9;
  }

  .asset-logo-preview {
    width: 150px;
    min-height: 150px;
    aspect-ratio: 1;
  }

  .asset-avatar-preview {
    width: 132px;
    height: 132px;
    min-height: 0;
    aspect-ratio: 1;
  }

  .asset-upload-actions,
  .asset-upload-actions .mini-action {
    width: 100%;
  }

  .entity-item .row-actions,
  .entity-item .mini-action {
    width: 100%;
  }

  .weekday-grid,
  .time-add-row {
    grid-template-columns: 1fr;
  }

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

  .admin-stats article {
    min-height: 84px;
    padding: 14px;
  }

  .admin-stats strong {
    font-size: 2.45rem;
  }

  .appointments-card {
    overflow: visible;
  }

  .home-header {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .home-nav {
    justify-content: flex-start;
  }

  .home-hero {
    min-height: auto;
    padding-block: 64px;
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.92), rgba(8, 9, 11, 0.76)),
      url("pietro-mark.svg") center top 20px / min(58vw, 260px) auto no-repeat;
  }

  .home-hero h1 {
    font-size: clamp(3.25rem, 18vw, 5rem);
  }

  .home-section-heading h2,
  .home-final-cta h2 {
    font-size: clamp(2.65rem, 14vw, 3.8rem);
  }

  .home-access-band {
    margin-top: 0;
  }

  .home-hero-actions,
  .home-primary-action,
  .home-secondary-action,
  .home-card-link,
  .home-example-card a {
    width: 100%;
  }

  .home-inline-form div {
    grid-template-columns: 1fr;
  }

  .home-inline-form button {
    width: 100%;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }

  .client-link-actions,
  .client-link-actions .mini-action {
    width: 100%;
  }

  .client-link-qr img {
    width: 150px;
    height: 150px;
  }

  .appointments-head {
    padding: 16px 0 12px;
    border-bottom: 0;
  }

  .appointments-table-wrap {
    display: none;
  }

  .appointments-list,
  .master-card-list {
    display: grid;
    gap: 10px;
  }

  .master-table-wrap {
    display: none;
  }

  .master-panel {
    overflow: visible;
  }

  .master-panel-head,
  .master-form-panel {
    padding: 16px;
  }

  .master-form-head,
  .access-head {
    flex-direction: column;
  }

  .master-form-head .mini-action {
    width: 100%;
    justify-content: center;
  }

  .appointment-mobile-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(8, 9, 11, 0.72);
  }

  .appointment-mobile-card .row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .appointment-mobile-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .appointment-mobile-card .mini-action,
  .today-appointment-card .mini-action {
    min-height: 48px;
  }

  .mini-action,
  .secondary-button {
    min-height: 46px;
    justify-content: center;
  }

  .empty-state {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(8, 9, 11, 0.64);
  }
}
