﻿:root {
  color-scheme: dark;
  font-family: "Montserrat", "Inter", "Poppins", "Open Sans", Arial, Helvetica, sans-serif;
  --bg: #050403;
  --bg-2: #0e0c09;
  --surface: #1a1712;
  --surface-2: #211d16;
  --ink: #f6f0e3;
  --muted: #c9bea7;
  --line: rgba(228, 200, 134, 0.22);
  --accent: #c49a54;
  --accent-2: #e4c886;
  --bronze: #7a5629;
  --danger: #a94435;
  --success: #7fa86b;
  --warn: #d2a84f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(228, 200, 134, 0.74);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 4, 3, 0.96);
  color: var(--ink);
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand img {
  display: block;
  width: 82px;
  height: auto;
}

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

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 6px;
}

.site-header nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

.site-home {
  background: var(--bg);
}

.hero-site {
  display: grid;
  align-items: end;
  min-height: calc(100vh - 64px);
  padding: 42px 28px 72px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.96), rgba(5, 4, 3, 0.72), rgba(5, 4, 3, 0.34)),
    url("/css/prx-hero-placeholder.jpg");
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-logo {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 64px;
  line-height: 1;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

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

.hero-actions {
  margin-top: 28px;
}

.btn-primary,
.btn-secondary,
.btn-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary,
.btn-link,
button {
  background: var(--accent);
  color: #050403;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(26, 23, 18, 0.72);
  color: var(--ink);
}

.btn-small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.btn-danger {
  background: var(--danger);
  color: var(--ink);
}

.site-section,
.site-cta {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 28px;
}

.section-head,
.site-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2,
.site-section h2,
.site-cta h2 {
  margin: 0;
  font-size: 30px;
}

.section-head p,
.site-section p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.service-list,
.split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.service-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.service-list h3 {
  margin: 0 0 8px;
}

.service-list p {
  min-height: 42px;
  margin: 0 0 18px;
}

.service-list strong {
  color: var(--accent-2);
  font-size: 20px;
}

.login-page,
.quick-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 64px);
  padding: 28px 18px;
  background:
    radial-gradient(circle at top left, rgba(196, 154, 84, 0.14), transparent 34%),
    var(--bg);
}

.login-box,
.quick-card {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 23, 18, 0.98);
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-box {
  width: min(420px, 100%);
}

.login-box img,
.quick-card img {
  width: 118px;
  height: auto;
  margin-bottom: 16px;
}

.login-box h1,
.quick-card h1 {
  margin: 0 0 18px;
}

.login-box form,
.quick-form,
.stack {
  display: grid;
  gap: 14px;
}

.login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.login-links a {
  color: var(--accent-2);
  font-size: 0.9rem;
  text-decoration: none;
}

.login-links a:hover,
.login-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  padding: 22px 16px;
}

.brand {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}

.brand span {
  color: var(--accent-2);
  font-size: 30px;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  text-transform: uppercase;
}

.brand img {
  width: 112px;
  height: auto;
}

nav {
  display: grid;
  gap: 7px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
}

nav a.active,
nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.content {
  width: min(100%, 1440px);
  padding: 28px;
}

.content-stage {
  min-width: 0;
}

.shell-tools {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: -8px 0 12px;
  pointer-events: none;
}

.density-state,
.icon-tool {
  pointer-events: auto;
}

.density-state {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(228, 200, 134, 0.18);
  border-radius: 999px;
  background: rgba(14, 12, 9, 0.88);
  color: rgba(246, 240, 227, 0.66);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.icon-tool {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid rgba(228, 200, 134, 0.34);
  border-radius: 8px;
  background: rgba(26, 23, 18, 0.94);
  color: var(--accent-2);
  padding: 0;
  font-size: 11px;
  font-weight: 900;
}

.icon-tool:hover {
  background: var(--accent);
  color: #050403;
}

h1 {
  margin: 0 0 20px;
  font-size: 30px;
}

.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.page-title h1,
.page-title p {
  margin: 0;
}

.page-title p {
  color: var(--muted);
  max-width: 560px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  padding: 22px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

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

.launch-section {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.launch-section header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(228, 200, 134, 0.16);
  padding-bottom: 10px;
}

.launch-section h2,
.launch-section p {
  margin: 0;
}

.launch-section h2 {
  color: var(--accent-2);
  font-size: 20px;
}

.launch-section p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.92rem;
}

.launch-tile {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(228, 200, 134, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(196, 154, 84, 0.14), transparent 46%),
    var(--surface);
  color: var(--ink);
  padding: 16px;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.launch-tile:hover,
.launch-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(228, 200, 134, 0.62);
  background:
    linear-gradient(135deg, rgba(196, 154, 84, 0.22), transparent 48%),
    var(--surface-2);
}

.launch-tile span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #050403;
  font-size: 0.78rem;
  font-weight: 900;
}

.launch-tile strong {
  color: var(--accent-2);
  font-size: 1.12rem;
}

.launch-tile small {
  color: var(--muted);
  line-height: 1.42;
}

.operation-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(228, 200, 134, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(196, 154, 84, 0.18), rgba(26, 23, 18, 0.92));
  padding: 16px;
}

.operation-strip strong,
.operation-strip span {
  display: block;
}

.operation-strip span {
  margin-top: 4px;
  color: var(--muted);
}

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

.grid {
  margin-top: 12px;
}

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

.grid div,
.kpi-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 16px;
}

.grid strong,
.grid span,
.kpi-grid span,
.kpi-grid strong {
  display: block;
}

.grid span,
.kpi-grid span {
  color: var(--muted);
  margin-top: 6px;
}

.kpi-grid strong {
  color: var(--accent-2);
  margin-top: 6px;
  font-size: 24px;
}

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

.settings-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.28);
  padding: 14px;
}

.settings-grid span,
.settings-grid strong {
  display: block;
}

.settings-grid span {
  color: var(--muted);
  font-size: 12px;
}

.settings-grid strong {
  margin-top: 5px;
  color: var(--accent-2);
}

.metric-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink);
  background: #0f0d0a;
  font: inherit;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

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

th {
  color: var(--accent-2);
  font-size: 12px;
  text-transform: uppercase;
}

tr:hover td {
  background: rgba(228, 200, 134, 0.06);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--ink);
  background: rgba(246, 240, 227, 0.08);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-scheduled,
.status-initial,
.status-draft {
  border-color: rgba(210, 168, 79, 0.58);
  color: #f7dc95;
  background: rgba(210, 168, 79, 0.12);
}

.status-confirmed,
.status-paid,
.status-finished,
.status-completed {
  border-color: rgba(127, 168, 107, 0.58);
  color: #d9f4c9;
  background: rgba(127, 168, 107, 0.13);
}

.status-in_service,
.status-open {
  border-color: rgba(228, 200, 134, 0.72);
  color: #050403;
  background: rgba(228, 200, 134, 0.86);
}

.status-cancelled {
  border-color: rgba(169, 68, 53, 0.62);
  color: #f0b1a8;
  background: rgba(169, 68, 53, 0.14);
}

.status-completed {
  border-color: rgba(139, 133, 120, 0.52);
  color: #ddd6c8;
  background: rgba(139, 133, 120, 0.14);
}

.row-warning td {
  background: rgba(210, 168, 79, 0.13);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.checks label,
.quick-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checks input,
.quick-check input,
.service-choice input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.alert,
.success-box {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: grid;
  gap: 4px;
  line-height: 1.45;
}

.alert {
  border: 1px solid rgba(219, 93, 80, 0.62);
  background: rgba(219, 93, 80, 0.14);
  color: #ffd4cd;
}

.success-box {
  border: 1px solid rgba(127, 168, 107, 0.55);
  background: rgba(127, 168, 107, 0.13);
  color: #d9f4c9;
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: rgba(246, 240, 227, 0.64);
  font-size: 0.8rem;
}

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

.barber-premium-page {
  margin: -10px;
  padding: 18px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(196, 154, 84, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(246, 240, 227, 0.04), rgba(5, 4, 3, 0.1)),
    #050403;
  border: 1px solid rgba(196, 154, 84, 0.16);
}

.barber-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(14, 12, 9, 0.92);
  border: 1px solid rgba(196, 154, 84, 0.22);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}

.barber-view-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(196, 154, 84, 0.24);
  border-radius: 12px;
  background: rgba(14, 12, 9, 0.92);
}

.barber-view-switcher span,
.barber-view-switcher strong {
  display: block;
}

.barber-view-switcher span {
  color: rgba(228, 200, 134, 0.76);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.barber-view-switcher strong {
  color: var(--ink);
}

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

.view-switcher-actions button {
  min-height: 38px;
  border: 1px solid rgba(196, 154, 84, 0.24);
  background: rgba(26, 23, 18, 0.92);
  color: var(--ink);
}

.view-switcher-actions button.active {
  background: var(--accent);
  color: #050403;
}

.barber-command-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.barber-command-brand img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(5, 4, 3, 0.72);
  border: 1px solid rgba(196, 154, 84, 0.28);
  padding: 6px;
}

.barber-command-brand h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.barber-command-brand span {
  color: rgba(246, 240, 227, 0.66);
}

.barber-overview {
  display: grid;
  grid-template-columns: minmax(260px, 1.65fr) repeat(3, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.barber-overview article {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(26, 23, 18, 0.88);
  border: 1px solid rgba(196, 154, 84, 0.16);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.barber-overview article span {
  color: rgba(228, 200, 134, 0.76);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.barber-overview article strong {
  color: var(--ivory);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.barber-overview article p {
  color: rgba(246, 240, 227, 0.64);
  margin: 0;
}

.barber-spotlight {
  background:
    linear-gradient(135deg, rgba(196, 154, 84, 0.24), rgba(26, 23, 18, 0.92) 52%),
    rgba(26, 23, 18, 0.92) !important;
  border-color: rgba(228, 200, 134, 0.34) !important;
}

.calendar-topbar h1 {
  margin-bottom: 2px;
}

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

.calendar-actions strong {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(196, 154, 84, 0.14);
  color: var(--gold-light);
  border: 1px solid rgba(196, 154, 84, 0.2);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(196, 154, 84, 0.34);
  background: rgba(26, 23, 18, 0.92);
  color: var(--ivory);
  font-size: 1.35rem;
  line-height: 1;
}

.calendar-workspace {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.calendar-side {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 18px;
}

.side-card {
  border: 1px solid rgba(196, 154, 84, 0.2);
  border-radius: 12px;
  background: rgba(14, 12, 9, 0.9);
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.side-card > span {
  color: rgba(246, 240, 227, 0.62);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.mini-day {
  justify-items: center;
  gap: 2px;
  padding: 18px 14px;
}

.mini-day strong {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--gold);
  color: #050403;
  font-size: 1.85rem;
}

.mini-day small {
  color: rgba(246, 240, 227, 0.72);
}

.agenda-metrics {
  grid-template-columns: 1fr;
}

.agenda-metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid rgba(246, 240, 227, 0.08);
  padding-top: 9px;
}

.agenda-metrics div:first-child {
  border-top: 0;
  padding-top: 0;
}

.agenda-metrics span,
.next-item small {
  color: rgba(246, 240, 227, 0.62);
}

.agenda-metrics strong {
  color: var(--gold-light);
}

.next-list {
  gap: 12px;
}

.next-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 2px 10px;
  border-left: 3px solid var(--gold);
  padding-left: 10px;
}

.next-item b {
  grid-row: span 2;
  color: var(--gold-light);
}

.next-item button {
  grid-row: span 2;
  align-self: center;
}

.calendar-main {
  min-width: 0;
  border: 1px solid rgba(196, 154, 84, 0.24);
  border-radius: 14px;
  overflow: auto;
  background: rgba(14, 12, 9, 0.9);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.calendar-header {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  border-bottom: 1px solid rgba(246, 240, 227, 0.1);
  background: rgba(26, 23, 18, 0.95);
  min-height: 86px;
}

.timezone {
  display: flex;
  align-items: end;
  justify-content: center;
  padding-bottom: 10px;
  color: rgba(246, 240, 227, 0.52);
  font-size: 0.72rem;
}

.day-head {
  display: grid;
  align-content: center;
  justify-items: center;
  border-left: 1px solid rgba(246, 240, 227, 0.08);
  gap: 3px;
}

.day-head span,
.day-head small {
  color: rgba(246, 240, 227, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
}

.day-head strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ivory);
  font-size: 1.25rem;
}

.day-head.today strong {
  background: var(--gold);
  color: #050403;
}

.barber-calendar {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 820px;
}

.google-like-calendar .calendar-ruler {
  display: grid;
  grid-template-rows: repeat(14, 1fr);
  color: rgba(246, 240, 227, 0.56);
  font-size: 0.72rem;
  text-align: right;
  padding-right: 12px;
  padding-top: 10px;
padding-top: 4px;
  background: rgba(14, 12, 9, 0.72);
}

.calendar-day {
  position: relative;
  display: grid;
  min-height: 820px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(196, 154, 84, 0.045), transparent 22%),
    rgba(246, 240, 227, 0.035);
  border-left: 1px solid rgba(246, 240, 227, 0.08);
}

.calendar-line {
  z-index: 1;
  pointer-events: none;
}

.calendar-line.hour-line {
  border-top: 1px solid rgba(228, 200, 134, 0.14);
}

.calendar-line.half-line {
  border-top: 1px dashed rgba(246, 240, 227, 0.055);
}

.calendar-event {
  z-index: 3;
  margin: 4px 16px 4px 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 4px solid var(--gold);
  background:
    linear-gradient(135deg, rgba(228, 200, 134, 0.2), rgba(26, 23, 18, 0.96) 48%),
    rgba(26, 23, 18, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
  display: grid;
  gap: 2px;
  align-content: start;
  overflow: hidden;
  min-height: 31px;
  outline: 1px solid rgba(246, 240, 227, 0.08);
}

.calendar-event strong {
  color: var(--ivory);
  font-size: 0.98rem;
}

.calendar-event span,
.calendar-event small {
  color: rgba(246, 240, 227, 0.78);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event em,
.calendar-event-time {
  color: var(--gold-light);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
}

.event-notes {
  color: rgba(246, 240, 227, 0.64) !important;
}

.empty-calendar-note {
  z-index: 2;
  align-self: start;
  justify-self: center;
  margin-top: 42px;
  color: rgba(246, 240, 227, 0.58);
}

.now-line {
  z-index: 4;
  border-top: 2px solid #db5d50;
  margin-left: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.now-line span {
  transform: translateY(-50%);
  background: #db5d50;
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: auto;
  margin: 0;
  border-radius: 0;
  padding: 20px;
}

.calendar-fullscreen .calendar-main,
.calendar-fullscreen .calendar-day,
.calendar-fullscreen .barber-calendar {
  min-height: calc(100vh - 240px);
}

.segmented-control {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(196, 154, 84, 0.24);
  border-radius: 999px;
  background: rgba(5, 4, 3, 0.46);
}

.segmented-control button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(246, 240, 227, 0.72);
  padding: 0 13px;
  font-weight: 800;
}

.segmented-control button.active {
  background: var(--gold);
  color: #050403;
}

.calendar-slot-marker {
  z-index: 2;
  display: flex;
  align-items: center;
  padding-left: 5px;
  pointer-events: auto;
}

.calendar-slot-marker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(246, 240, 227, 0.18);
  background: rgba(127, 168, 107, 0.7);
  opacity: 0.72;
}

.calendar-slot-marker.busy span {
  background: var(--gold);
  border-color: rgba(228, 200, 134, 0.8);
  opacity: 1;
}

.calendar-slot-marker:hover {
  background: rgba(196, 154, 84, 0.08);
}

.calendar-slot-marker.move-target,
.calendar-cell.move-target {
  background: linear-gradient(135deg, rgba(127, 168, 107, 0.18), rgba(5, 4, 3, 0.26));
  box-shadow: inset 0 0 0 1px rgba(127, 168, 107, 0.38);
}

.calendar-slot-marker.slot-past,
.calendar-cell.cell-past {
  cursor: not-allowed;
  opacity: 0.46;
  background: repeating-linear-gradient(
    135deg,
    rgba(139, 133, 120, 0.08),
    rgba(139, 133, 120, 0.08) 8px,
    rgba(5, 4, 3, 0.16) 8px,
    rgba(5, 4, 3, 0.16) 16px
  );
}

.calendar-slot-marker.slot-past span,
.calendar-cell.cell-past .cell-dot {
  background: rgba(139, 133, 120, 0.8);
}

.calendar-event[draggable="true"],
.month-event[draggable="true"],
.agenda-list-item[draggable="true"] {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.calendar-event[draggable="true"]:active,
.month-event[draggable="true"]:active,
.agenda-list-item[draggable="true"]:active {
  cursor: grabbing;
}

.event-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
}

.event-actions button {
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(219, 93, 80, 0.45);
  background: rgba(219, 93, 80, 0.12);
  color: #ffd4cd;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.week-calendar-header {
  display: grid;
  grid-template-columns: 74px repeat(7, minmax(120px, 1fr));
  min-width: 980px;
  border-bottom: 1px solid rgba(246, 240, 227, 0.1);
  background: rgba(26, 23, 18, 0.95);
}

.week-calendar-grid {
  display: grid;
  grid-template-columns: 74px repeat(7, minmax(120px, 1fr));
  min-width: 980px;
}

.week-calendar-grid > .calendar-ruler {
  display: grid;
  grid-template-rows: repeat(14, 1fr);
  color: rgba(246, 240, 227, 0.56);
  font-size: 0.72rem;
  text-align: right;
  padding-right: 12px;
  padding-top: 10px;
padding-top: 4px;
  background: rgba(14, 12, 9, 0.72);
}

.week-day {
  border-left: 1px solid rgba(246, 240, 227, 0.08);
}

.week-day .calendar-event {
  margin: 3px 5px;
  padding: 7px 8px;
}

.month-calendar {
  padding: 16px;
  background: rgba(14, 12, 9, 0.9);
}

.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
}

.month-weekdays {
  gap: 8px;
  margin-bottom: 8px;
}

.month-weekdays strong {
  color: rgba(228, 200, 134, 0.75);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 4px;
}

.month-grid {
  gap: 8px;
}

.month-cell {
  min-height: 128px;
  border-radius: 10px;
  border: 1px solid rgba(196, 154, 84, 0.16);
  background: rgba(5, 4, 3, 0.34);
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.month-cell.is-free {
  background:
    linear-gradient(135deg, rgba(127, 168, 107, 0.08), rgba(5, 4, 3, 0.34));
}

.month-cell.has-events {
  border-color: rgba(196, 154, 84, 0.34);
  background:
    linear-gradient(135deg, rgba(196, 154, 84, 0.12), rgba(5, 4, 3, 0.38));
}

.month-cell.muted-month {
  opacity: 0.45;
}

.month-cell-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.month-cell-head span {
  color: var(--ivory);
  font-weight: 900;
}

.month-cell-head small {
  color: rgba(246, 240, 227, 0.58);
  font-size: 0.72rem;
}

.month-event {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border-radius: 7px;
  background: rgba(196, 154, 84, 0.18);
  border-left: 3px solid var(--gold);
  padding: 5px 7px;
  min-width: 0;
}

.month-event b {
  color: var(--gold-light);
  font-size: 0.72rem;
}

.month-event span {
  color: var(--ivory);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}

.month-cell em {
  color: rgba(246, 240, 227, 0.62);
  font-style: normal;
  font-size: 0.76rem;
}

.calendar-cell {
  position: relative;
}

.calendar-cell.cell-free,
.drop-target {
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.calendar-cell.cell-free:hover,
.drop-target:hover {
  border-color: rgba(127, 168, 107, 0.62);
  background: linear-gradient(135deg, rgba(127, 168, 107, 0.12), rgba(5, 4, 3, 0.34));
  box-shadow: inset 0 0 0 1px rgba(127, 168, 107, 0.24);
}

body.prx-dragging-appointment [data-drop-date]:not(.slot-past):not(.cell-past) {
  outline: 2px dashed rgba(127, 168, 107, 0.58);
  outline-offset: -5px;
}

body.prx-dragging-appointment [data-drop-date]:not(.slot-past):not(.cell-past):hover {
  background: linear-gradient(135deg, rgba(127, 168, 107, 0.2), rgba(5, 4, 3, 0.38));
  box-shadow: inset 0 0 0 2px rgba(127, 168, 107, 0.34);
}

.calendar-cell .cell-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(127, 168, 107, 0.72);
}

.calendar-cell.cell-busy .cell-dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 154, 84, 0.12);
}

.admin-period-grid {
  display: grid;
  gap: 10px;
}

.week-summary-grid {
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  overflow-x: auto;
}

.period-day-card {
  min-height: 220px;
  border: 1px solid rgba(196, 154, 84, 0.18);
  border-radius: 10px;
  background: rgba(5, 4, 3, 0.32);
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.period-day-card.today {
  border-color: rgba(228, 200, 134, 0.5);
  background: rgba(196, 154, 84, 0.08);
}

.period-day-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--gold-light);
}

.timeline-board,
.agenda-list,
.waitlist-board {
  display: grid;
  gap: 10px;
}

.timeline-lane {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(196, 154, 84, 0.18);
  border-radius: 10px;
  background: rgba(5, 4, 3, 0.28);
  padding: 10px;
}

.timeline-lane header {
  display: grid;
  align-content: center;
  gap: 4px;
  border-right: 1px solid rgba(228, 200, 134, 0.16);
  padding-right: 12px;
  padding-top: 10px;
}

.timeline-lane header span,
.agenda-list-item span,
.waitlist-board small {
  color: rgba(246, 240, 227, 0.66);
}

.timeline-items {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.timeline-items .calendar-event {
  min-width: 220px;
  margin: 0;
}

.agenda-list-item,
.waitlist-board article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(196, 154, 84, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.3);
  padding: 11px 12px;
}

.agenda-list-item time {
  color: var(--accent-2);
  font-weight: 900;
}

.agenda-list-item strong,
.agenda-list-item span,
.waitlist-board strong,
.waitlist-board span,
.waitlist-board small {
  display: block;
}

.waitlist-board {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.waitlist-board article {
  grid-template-columns: 1fr;
  align-items: start;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 4, 3, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(920px, 100%);
  max-height: min(90vh, 780px);
  overflow: auto;
  border: 1px solid rgba(228, 200, 134, 0.34);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  padding: 22px;
}

.service-color-0 {
  border-left-color: #c49a54 !important;
}

.service-color-1 {
  border-left-color: #7fa86b !important;
}

.service-color-2 {
  border-left-color: #d2a84f !important;
}

.service-color-3 {
  border-left-color: #8aa6c1 !important;
}

.service-color-4 {
  border-left-color: #c27b60 !important;
}

.service-color-5 {
  border-left-color: #b9a7d8 !important;
}

.status-waiting {
  border-color: rgba(210, 168, 79, 0.58);
  color: #f7dc95;
  background: rgba(210, 168, 79, 0.12);
}

.status-notified {
  border-color: rgba(138, 166, 193, 0.58);
  color: #d6ebff;
  background: rgba(138, 166, 193, 0.13);
}

.status-card-confirmed {
  border-left-color: #7fa86b;
}

.status-card-scheduled {
  border-left-color: var(--gold);
}

.status-card-completed {
  border-left-color: #7fa86b;
  opacity: 0.86;
}

.status-card-cancelled {
  border-left-color: #db5d50;
  opacity: 0.7;
}

.booking-card {
  width: min(900px, 100%);
}

.booking-page {
  align-items: start;
}

.service-picker {
  display: grid;
  gap: 10px;
  margin: 4px 0;
}

.service-picker h2 {
  margin: 0;
  font-size: 18px;
}

.service-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--surface-2);
}

.service-choice:has(input:checked) {
  border-color: rgba(228, 200, 134, 0.72);
  background: rgba(196, 154, 84, 0.16);
}

.service-choice span,
.service-choice strong,
.service-choice small {
  display: block;
}

.service-choice small {
  margin-top: 3px;
  color: var(--muted);
}

.service-choice b {
  color: var(--accent-2);
}

.booking-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(228, 200, 134, 0.5);
  border-radius: 8px;
  background: rgba(196, 154, 84, 0.14);
  padding: 14px;
}

.booking-summary span,
.booking-summary small {
  color: var(--muted);
}

.booking-summary strong {
  color: var(--accent-2);
  font-size: 22px;
}

.booking-update-status {
  border: 1px solid rgba(228, 200, 134, 0.34);
  border-radius: 8px;
  background: rgba(196, 154, 84, 0.1);
  color: var(--accent-2);
  padding: 10px 12px;
  font-size: 0.92rem;
}

.quick-form.is-updating {
  cursor: wait;
}

.cash-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 14px;
}

.cash-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.cash-summary span,
.cash-summary strong {
  display: block;
}

.cash-summary span {
  color: var(--muted);
  font-size: 12px;
}

.cash-summary strong {
  margin-top: 4px;
  color: var(--accent-2);
  font-size: 18px;
}

.calendar-board {
  display: grid;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.agenda-display-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 12, 9, 0.72);
}

.agenda-display-filter label,
.agenda-display-filter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.agenda-display-filter select {
  min-width: 220px;
  border: 1px solid rgba(196, 154, 84, 0.36);
  border-radius: 8px;
  background: #0f0d0a;
  color: var(--ink);
  padding: 9px 10px;
}

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

  .agenda-display-filter select {
    min-width: 0;
    width: 100%;
  }
}

.calendar-head,
.calendar-time,
.calendar-cell {
  min-height: 58px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px;
}

.calendar-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: auto;
  background: #120f0b;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: #0f0d0a;
}

.calendar-cell {
  min-width: 180px;
}

.calendar-event {
  display: grid;
  gap: 3px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: rgba(196, 154, 84, 0.15);
  padding: 8px;
}

.calendar-event strong,
.calendar-event span,
.calendar-event small {
  display: block;
}

.calendar-event span {
  color: var(--muted);
  font-size: 12px;
}

.calendar-event small {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.calendar-confirmed {
  border-left-color: var(--success);
  background: rgba(127, 168, 107, 0.16);
}

.calendar-cancelled {
  border-left-color: var(--danger);
  background: rgba(169, 68, 53, 0.16);
}

.calendar-completed {
  border-left-color: #8b8578;
  background: rgba(139, 133, 120, 0.16);
}

.quick-form span {
  color: #f0a396;
}

.qr-panel {
  display: grid;
  grid-template-columns: 1fr 390px;
  align-items: center;
  gap: 24px;
}

.qr-list {
  display: grid;
  gap: 18px;
}

.qr-image {
  width: min(360px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  padding: 14px;
}

.qr-link {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  background: #0f0d0a;
  color: var(--muted);
}

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

.help-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.help-grid strong {
  color: var(--accent-2);
}

.help-grid span,
.help-legend span {
  color: var(--muted);
}

.help-screen {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(228, 200, 134, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(196, 154, 84, 0.12), transparent 34%),
    rgba(5, 4, 3, 0.48);
  padding: 18px;
}

.help-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 12, 9, 0.92);
  padding: 10px;
}

.help-toolbar b,
.help-toolbar span,
.help-toolbar em {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  font-style: normal;
  font-weight: 800;
}

.help-toolbar b,
.help-toolbar em {
  background: var(--accent);
  color: #050403;
}

.help-toolbar span {
  background: rgba(246, 240, 227, 0.08);
  color: var(--muted);
}

.help-calendar {
  display: grid;
  grid-template-columns: 72px repeat(3, minmax(110px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(14, 12, 9, 0.86);
}

.help-calendar.single {
  grid-template-columns: 72px minmax(0, 1fr);
}

.help-calendar div {
  min-height: 58px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px;
  color: var(--muted);
}

.help-calendar .head {
  min-height: 38px;
  color: var(--accent-2);
  background: #120f0b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.help-calendar .free {
  color: #d9f4c9;
  background: rgba(127, 168, 107, 0.12);
}

.help-calendar .busy {
  border-left: 4px solid var(--accent);
  color: var(--ink);
  background: rgba(196, 154, 84, 0.17);
}

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

.help-kpis div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 23, 18, 0.9);
  padding: 12px;
  color: var(--muted);
}

.help-kpis strong {
  display: block;
  margin-top: 6px;
  color: var(--accent-2);
}

.help-pin {
  position: absolute;
  z-index: 4;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #050403;
  border-radius: 50%;
  background: var(--accent);
  color: #050403;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
}

.help-pin:hover,
.help-pin:focus-visible {
  transform: scale(1.06);
}

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

.help-legend div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.help-legend b {
  scroll-margin-top: 120px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #050403;
}

.client-portal {
  display: grid;
  gap: 16px;
}

.client-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(228, 200, 134, 0.34);
  background:
    linear-gradient(135deg, rgba(196, 154, 84, 0.18), rgba(26, 23, 18, 0.94) 58%),
    var(--surface);
}

.client-hero span,
.client-kpis span,
.client-product-grid span {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-hero strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.client-hero small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

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

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

.client-kpis article,
.client-product-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.client-kpis strong,
.client-product-grid b {
  display: block;
  margin-top: 8px;
  color: var(--accent-2);
  font-size: 1.35rem;
}

.client-kpis small,
.client-product-grid small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.client-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 16px;
}

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

.client-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  border: 1px solid rgba(228, 200, 134, 0.16);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.28);
  padding: 10px;
}

.client-list time {
  grid-row: span 2;
  color: var(--accent-2);
  font-weight: 900;
}

.client-list strong,
.client-list span {
  display: block;
}

.client-list span {
  color: var(--muted);
}

.client-list small {
  grid-row: span 2;
}

.client-bars {
  display: grid;
  gap: 14px;
}

.client-bars div {
  display: grid;
  gap: 6px;
}

.client-bars span {
  color: var(--muted);
}

.client-bars strong {
  color: var(--accent-2);
}

.client-bars i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(228, 200, 134, 0.2);
}

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

.client-product-grid article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 190px;
}

.client-product-grid strong {
  color: var(--ink);
  font-size: 1.06rem;
}

.client-product-grid .btn-small {
  margin-top: 8px;
}

.loyalty-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.loyalty-strip span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.36);
  color: var(--muted);
  font-weight: 900;
}

.loyalty-strip span.active {
  border-color: rgba(228, 200, 134, 0.72);
  background: var(--accent);
  color: #050403;
}

.inventory-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.inventory-kpis article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.inventory-kpis span,
.inventory-detail-head span,
.stock-buckets span {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-kpis strong,
.stock-buckets strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.35rem;
}

.inventory-kpis small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.inventory-detail-head {
  border: 1px solid rgba(228, 200, 134, 0.22);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.32);
  padding: 14px;
}

.inventory-detail-head strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.18rem;
}

.inventory-detail-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

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

.stock-buckets div,
.movement-list div {
  border: 1px solid rgba(228, 200, 134, 0.16);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.28);
  padding: 11px;
}

.movement-list {
  display: grid;
  gap: 9px;
}

.movement-list time,
.movement-list strong,
.movement-list span,
.movement-list small {
  display: block;
}

.movement-list time {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.movement-list span,
.movement-list small {
  margin-top: 4px;
  color: var(--muted);
}

.cash-command-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.command-list {
  display: grid;
  gap: 9px;
}

.command-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  justify-content: stretch;
  min-height: auto;
  border: 1px solid rgba(228, 200, 134, 0.16);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.26);
  color: var(--ink);
  padding: 11px;
  text-align: left;
}

.command-row.active {
  border-color: rgba(228, 200, 134, 0.7);
  background: rgba(196, 154, 84, 0.16);
}

.command-row span,
.command-row small,
.command-row strong {
  display: block;
}

.command-row span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.command-row small {
  color: var(--muted);
}

.command-row em {
  grid-row: span 3;
  align-self: center;
  font-style: normal;
}

.command-detail {
  position: sticky;
  top: 56px;
}

.command-head {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(228, 200, 134, 0.2);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.3);
  padding: 14px;
}

.command-head span,
.command-items h3,
.command-add-grid h3,
.command-payment h3 {
  color: var(--accent-2);
}

.command-head strong {
  font-size: 1.25rem;
}

.command-head small {
  color: var(--muted);
}

.command-items {
  display: grid;
  gap: 10px;
}

.command-items h3,
.command-add-grid h3,
.command-payment h3 {
  margin: 0;
  font-size: 1rem;
}

.command-items div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid rgba(228, 200, 134, 0.14);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.24);
  padding: 10px;
}

.command-items span {
  color: var(--muted);
}

.command-items b {
  color: var(--accent-2);
}

.appointment-command-modal.command-sheet {
  width: min(980px, 100%);
  padding: 0;
  overflow: hidden;
}

.command-sheet-toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(228, 200, 134, 0.22);
  background: linear-gradient(180deg, rgba(26, 23, 18, 0.98), rgba(14, 12, 9, 0.98));
  padding: 18px 20px;
}

.command-sheet-toolbar h2 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: 1.55rem;
  letter-spacing: 0;
}

.command-sheet-toolbar p {
  margin: 0;
  color: var(--muted);
}

.command-icon {
  width: 42px;
  height: 42px;
  border-color: rgba(228, 200, 134, 0.34);
  color: var(--accent-2);
  font-size: 1.25rem;
}

.command-sheet-body {
  display: grid;
  gap: 16px;
  max-height: calc(90vh - 80px);
  overflow: auto;
  padding: 18px 20px 20px;
}

.command-ticket-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.command-ticket-summary > div {
  min-width: 0;
  border: 1px solid rgba(228, 200, 134, 0.18);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.3);
  padding: 13px;
}

.command-ticket-summary span,
.command-price-section > header span,
.command-totals span {
  display: block;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-ticket-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.command-ticket-total strong {
  color: var(--accent-2);
  font-size: 1.45rem;
}

.command-price-section {
  border: 1px solid rgba(228, 200, 134, 0.16);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.2);
  padding: 14px;
}

.command-price-section > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.command-price-section .command-price-table-wrap {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
  padding: 0;
}

.command-price-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.command-price-table th,
.command-price-table td {
  border-bottom: 1px solid rgba(228, 200, 134, 0.12);
  padding: 11px 10px;
  text-align: left;
}

.command-price-table th {
  color: var(--accent-2);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.command-price-table td {
  color: var(--ink);
}

.command-price-table th:nth-child(n+2),
.command-price-table td:nth-child(n+2) {
  text-align: right;
}

.command-sheet-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.command-totals {
  justify-self: end;
  width: min(380px, 100%);
  display: grid;
  gap: 8px;
}

.command-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(228, 200, 134, 0.12);
  padding-bottom: 8px;
}

.command-totals strong {
  color: var(--ink);
}

.command-totals .final {
  border-bottom: 0;
  border-top: 1px solid rgba(228, 200, 134, 0.22);
  padding-top: 10px;
  padding-bottom: 0;
}

.command-totals .final strong {
  color: var(--accent-2);
  font-size: 1.35rem;
}

.command-totals small {
  color: var(--muted);
  text-align: right;
}

.command-sheet-actions {
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .appointment-command-modal.command-sheet {
    width: 100%;
  }

  .command-sheet-toolbar {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    padding: 14px;
  }

  .command-icon {
    width: 38px;
    height: 38px;
  }

  .command-sheet-toolbar h2 {
    font-size: 1.28rem;
  }

  .command-sheet-body {
    padding: 14px;
  }

  .command-ticket-summary,
  .command-sheet-footer {
    grid-template-columns: 1fr;
  }

  .command-ticket-total strong {
    font-size: 1.28rem;
  }

  .command-totals {
    justify-self: stretch;
  }

  .command-sheet-actions {
    justify-content: stretch;
  }

  .command-sheet-actions button {
    flex: 1 1 160px;
  }
}

.command-add-grid,
.command-payment,
.command-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.command-add-grid > div,
.command-payment,
.command-summary div {
  border: 1px solid rgba(228, 200, 134, 0.16);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.24);
  padding: 12px;
}

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

.command-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.command-summary span,
.command-summary strong {
  display: block;
}

.command-summary span {
  color: var(--muted);
  font-size: 0.78rem;
}

.command-summary strong {
  margin-top: 4px;
  color: var(--accent-2);
  font-size: 1.25rem;
}

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

.access-state {
  min-height: clamp(360px, 58vh, 720px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.access-state h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
}

.access-state p {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.45;
}

body.prx-compact .shell {
  grid-template-columns: 82px minmax(0, 1fr);
}

body.prx-compact .sidebar {
  padding: 12px 9px;
}

body.prx-compact .brand {
  justify-items: center;
  margin-bottom: 14px;
  text-align: center;
}

body.prx-compact .brand img {
  max-width: 52px;
}

body.prx-compact .brand small {
  display: none;
}

body.prx-compact nav {
  gap: 5px;
}

body.prx-compact nav a {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 5px 3px;
  border-radius: 9px;
  font-size: 0;
}

body.prx-compact nav a::before {
  content: attr(data-short);
  color: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
}

body.prx-compact .content {
  width: 100%;
  max-width: none;
  padding: 12px 14px 16px;
}

body.prx-compact .shell-tools {
  top: 6px;
  margin: -2px 0 8px;
}

body.prx-compact .density-state {
  display: none;
}

body.prx-compact h1 {
  margin-bottom: 12px;
  font-size: 22px;
}

body.prx-compact .page-title {
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

body.prx-compact .page-title p {
  display: none;
}

body.prx-compact .panel {
  margin-bottom: 12px;
  padding: 14px;
}

body.prx-compact .panel h2 {
  font-size: 16px;
}

body.prx-compact .kpi-grid,
body.prx-compact .grid {
  gap: 8px;
}

body.prx-compact .kpi-grid div,
body.prx-compact .grid div,
body.prx-compact .settings-grid div {
  padding: 10px;
}

body.prx-compact .kpi-grid strong {
  font-size: 18px;
}

body.prx-compact .launchpad {
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 9px;
}

body.prx-compact .launch-tile {
  min-height: 112px;
  padding: 12px;
}

body.prx-compact .launch-tile span {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

body.prx-compact .launch-tile strong {
  font-size: 0.98rem;
}

body.prx-compact .launch-tile small {
  font-size: 0.78rem;
}

body.prx-compact .barber-premium-page {
  margin: 0;
  padding: 10px;
}

body.prx-compact .barber-command,
body.prx-compact .barber-view-switcher {
  margin-bottom: 10px;
  padding: 10px;
}

body.prx-compact .barber-command-brand img {
  width: 42px;
  height: 42px;
}

body.prx-compact .barber-command-brand h1 {
  font-size: 1.35rem;
}

body.prx-compact .barber-command-brand span,
body.prx-compact .barber-overview article p,
body.prx-compact .side-card > span {
  display: none;
}

body.prx-compact .barber-overview {
  grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(92px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

body.prx-compact .barber-overview article {
  min-height: 76px;
  padding: 10px;
}

body.prx-compact .barber-overview article strong {
  font-size: 1.08rem;
}

body.prx-compact .calendar-workspace {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

body.prx-compact .calendar-side {
  position: static;
  grid-template-columns: 110px minmax(150px, 0.8fr) minmax(180px, 1.1fr) minmax(220px, 1.4fr);
  align-items: stretch;
}

body.prx-compact .side-card {
  padding: 10px;
}

body.prx-compact .mini-day {
  padding: 10px;
}

body.prx-compact .mini-day strong {
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
}

body.prx-compact .calendar-main {
  border-radius: 10px;
}

body.prx-compact .barber-calendar,
body.prx-compact .calendar-day {
  min-height: 620px;
}

body.prx-compact .calendar-header {
  min-height: 62px;
}

body.prx-compact .calendar-event {
  margin: 3px 6px;
  padding: 7px 8px;
}

body.prx-compact th,
body.prx-compact td {
  padding: 8px 7px;
}

body.prx-tight .calendar-side,
body.prx-tight .barber-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.prx-tight .next-list {
  grid-column: 1 / -1;
}

body.prx-tight .calendar-side {
  display: none;
}

body.prx-tight .barber-calendar,
body.prx-tight .calendar-day {
  min-height: calc(100vh - 190px);
}

body.prx-fullscreen .shell {
  grid-template-columns: 64px minmax(0, 1fr);
}

body.prx-fullscreen .content {
  padding: 10px;
}

body.prx-fullscreen .shell-tools {
  top: 4px;
}

body.prx-fullscreen .calendar-side,
body.prx-fullscreen .page-title p {
  display: none;
}

body.prx-fullscreen .barber-calendar,
body.prx-fullscreen .calendar-day {
  min-height: calc(100vh - 126px);
}

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

  .sidebar {
    position: static;
    height: auto;
  }

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

@media (min-width: 901px) and (max-width: 1366px) {
  .shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .sidebar {
    padding: 14px 10px;
  }

  .brand {
    gap: 8px;
    justify-items: center;
    text-align: center;
  }

  .brand img {
    max-width: 54px;
  }

  .brand small {
    display: none;
  }

  nav {
    gap: 6px;
  }

  nav a {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 6px 4px;
    font-size: 0;
    border-radius: 10px;
  }

  nav a::before {
    content: attr(data-short);
    color: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
  }

  .content {
    width: 100%;
    max-width: none;
    padding: 16px;
  }

  .barber-premium-page {
    margin: 0;
    padding: 14px;
  }

  .barber-command {
    padding: 14px;
    margin-bottom: 12px;
  }

  .barber-view-switcher {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-switcher-actions {
    justify-content: flex-start;
  }

  .barber-command-brand img {
    width: 48px;
    height: 48px;
  }

  .barber-command-brand h1 {
    font-size: 1.55rem;
  }

  .barber-overview {
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(112px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }

  .barber-overview article {
    min-height: 92px;
    padding: 12px;
  }

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

  .calendar-side {
    position: static;
    grid-template-columns: minmax(170px, 1fr) 120px minmax(190px, 1.1fr) minmax(220px, 1.4fr);
    align-items: stretch;
  }

  .side-card {
    padding: 12px;
  }

  .mini-day strong {
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
  }

  .calendar-main {
    min-width: 0;
  }

  .barber-calendar,
  .calendar-day {
    min-height: 690px;
  }

  .calendar-fullscreen .calendar-side {
    display: none;
  }

  .calendar-fullscreen .barber-overview {
    display: none;
  }

  .calendar-fullscreen .barber-calendar,
  .calendar-fullscreen .calendar-day {
    min-height: calc(100vh - 138px);
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    margin-bottom: 12px;
    justify-items: start;
  }

  .brand img {
    width: 68px;
  }

  .sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .sidebar nav a {
    flex: 0 0 auto;
    min-width: 74px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    white-space: nowrap;
  }

  .content,
  .site-section,
  .site-cta {
    padding: 22px 16px;
  }
  .content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .panel {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .panel table {
    min-width: 560px;
  }


  .grid,
  .kpi-grid,
  .form-grid,
  .service-list,
  .split,
  .qr-panel,
  .help-grid,
  .help-kpis,
  .help-legend {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  .hero-site {
    min-height: 74vh;
    padding: 30px 20px 46px;
  }

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

  .hero-copy p {
    font-size: 17px;
  }

  .section-head,
  .site-cta,
  .launch-section header,
  .booking-summary,
  .operation-strip,
  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .operation-strip,
  .client-hero,
  .cash-summary {
    grid-template-columns: 1fr;
  }

  .client-kpis,
  .client-dashboard-grid,
  .client-list div,
  .inventory-kpis,
  .inventory-layout,
  .stock-buckets,
  .cash-command-layout,
  .command-add-grid,
  .command-payment,
  .command-summary,
  .command-items div {
    grid-template-columns: 1fr;
  }

  .command-detail {
    position: static;
  }

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

  .command-row em {
    grid-row: auto;
    width: fit-content;
  }

  .client-hero-actions {
    justify-content: flex-start;
  }

  .client-list time,
  .client-list small {
    grid-row: auto;
  }

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

  .launch-tile {
    min-height: 118px;
  }

  .quick-card,
  .login-box {
    padding: 22px;
  }
}

@media (max-width: 900px) {
  .barber-command {
    align-items: flex-start;
    flex-direction: column;
  }

  .barber-view-switcher {
    align-items: flex-start;
    flex-direction: column;
  }

  .barber-overview {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .next-list {
    grid-column: 1 / -1;
  }

  .calendar-header,
  .barber-calendar {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .google-like-calendar .calendar-ruler {
    padding-right: 7px;
  }
}

@media (max-width: 620px) {
  .barber-premium-page {
    margin: -16px;
    padding: 12px;
    border-radius: 0;
  }

  .barber-overview {
    grid-template-columns: 1fr;
  }

  .barber-command-brand {
    align-items: flex-start;
  }

  .barber-command-brand img {
    width: 46px;
    height: 46px;
  }

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

  .calendar-main {
    margin-left: -6px;
    margin-right: -6px;
  }

  .calendar-event {
    margin-right: 6px;
    margin-left: 6px;
    padding: 7px 8px;
  }
}

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

.chart-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(228, 200, 134, 0.18);
  border-radius: 8px;
  background: rgba(14, 12, 9, 0.92);
  padding: 16px;
  min-width: 0;
}

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

.chart-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chart-panel-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}

.chart-panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.pie-chart-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.pie-chart {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  justify-self: center;
}

.pie-base,
.pie-slice {
  fill: none;
  stroke-width: 18;
}

.pie-base {
  stroke: rgba(228, 200, 134, 0.12);
}

.pie-slice {
  stroke-linecap: round;
  transition: stroke-dasharray 0.2s ease;
}

.pie-hole {
  fill: rgba(14, 12, 9, 0.96);
}

.pie-total-label {
  fill: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.pie-total-subtitle {
  fill: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.chart-legend {
  display: grid;
  gap: 10px;
}

.chart-legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 3px;
}

.chart-legend-item strong,
.chart-legend-item small {
  display: block;
}

.chart-legend-item strong {
  color: var(--ink);
}

.chart-legend-item small {
  color: var(--muted);
}

.chart-segmented {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.28);
  border: 1px solid rgba(228, 200, 134, 0.12);
}

.chart-segmented button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.chart-segmented button.is-active {
  background: var(--accent);
  color: #050403;
}

.timeline-chart {
  display: grid;
  gap: 10px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
}

.timeline-label strong,
.timeline-label small,
.timeline-value {
  display: block;
}

.timeline-label strong {
  color: var(--ink);
}

.timeline-label small,
.timeline-value {
  color: var(--muted);
}

.timeline-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(228, 200, 134, 0.12);
  overflow: hidden;
}

.timeline-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.bar-compare {
  display: grid;
  gap: 12px;
}

.compare-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
}

.compare-label,
.compare-row strong {
  color: var(--ink);
}

.compare-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(228, 200, 134, 0.12);
  overflow: hidden;
}

.compare-fill {
  height: 100%;
  border-radius: inherit;
}

.compare-fill-cost {
  background: rgba(169, 68, 53, 0.92);
}

.compare-fill-card {
  background: rgba(127, 168, 107, 0.92);
}

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

.chart-metrics div {
  border: 1px solid rgba(228, 200, 134, 0.12);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.28);
  padding: 12px;
}

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

.chart-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.chart-metrics strong {
  margin-top: 4px;
  color: var(--accent-2);
  font-size: 18px;
}

@media (max-width: 900px) {
  .dashboard-charts,
  .chart-panel-wide,
  .pie-chart-wrap,
  .chart-metrics {
    grid-template-columns: 1fr;
  }

  .chart-panel-wide {
    grid-column: auto;
  }

  .timeline-row,
  .compare-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}


.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 22px;
  align-items: stretch;
  min-height: calc(100vh - 64px);
  padding: 34px 28px 60px;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.96), rgba(5, 4, 3, 0.84) 52%, rgba(5, 4, 3, 0.72)),
    radial-gradient(circle at top right, rgba(196, 154, 84, 0.12), transparent 34%),
    var(--bg);
}

.home-copy {
  display: grid;
  align-content: start;
  gap: 16px;
  padding-right: 12px;
  padding-top: 10px;
}

.home-copy h1 {
  max-width: 8ch;
  font-size: clamp(3.8rem, 7vw, 6.8rem);
}

.home-copy p {
  max-width: 560px;
}

.home-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-badges span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(228, 200, 134, 0.18);
  border-radius: 999px;
  background: rgba(26, 23, 18, 0.86);
  color: var(--accent-2);
  padding: 0 11px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.client-access-card {
  justify-self: end;
  width: min(360px, 100%);
  border: 1px solid rgba(228, 200, 134, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(26, 23, 18, 0.96), rgba(14, 12, 9, 0.98));
  padding: 18px;
  box-shadow: var(--shadow);
}

.client-access-card span {
  display: block;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-access-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.08;
}

.client-access-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.client-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.client-access-actions .btn-primary,
.client-access-actions .btn-secondary {
  min-height: 38px;
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 176px;
  gap: 10px;
  min-width: 0;
}

.home-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(228, 200, 134, 0.14);
  border-radius: 8px;
  background: var(--surface-2);
}

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

.home-shot-tall {
  grid-row: span 2;
}

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

.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

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

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

.home-cta {
  justify-content: space-between;
  align-items: center;
}

.home-cta h2 {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .home-hero,
  .home-info-grid,
  .home-cta {
    grid-template-columns: 1fr;
  }

  .home-copy {
    padding-right: 0;
  }

  .client-access-card {
    justify-self: stretch;
  }

  .home-gallery {
    grid-auto-rows: 150px;
  }
}

@media (max-width: 620px) {
  .home-hero {
    min-height: auto;
    padding: 22px 16px 34px;
  }

  .home-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

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

.home-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .home-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}





/* PRX restored public home */
.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1.2rem;
}

.home-gallery figure {
    margin: 0;
}

.home-shot figcaption {
    color: var(--muted, #b9ad96);
    font-size: 0.88rem;
    padding-top: 0.65rem;
}

.home-shot img,
.hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-panel a,
.client-access-card a {
    color: var(--gold-2, #e4c886);
    font-weight: 700;
    text-decoration: none;
}

.info-panel a:hover,
.client-access-card a:hover {
    text-decoration: underline;
}

/* PRX public home reference adjustments - 2026-06-24 */
.public-header {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) auto;
  gap: clamp(12px, 2vw, 28px);
  min-height: 72px;
  padding: 0 clamp(14px, 2.4vw, 34px);
  border-bottom: 1px solid rgba(228, 200, 134, 0.24);
  background: rgba(5, 4, 3, 0.98);
}

.public-header .site-brand img {
  width: clamp(92px, 10vw, 140px);
}

.public-nav {
  justify-self: center;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.7vw, 14px);
  padding: 8px 12px;
  border: 1px solid rgba(228, 200, 134, 0.28);
  background: rgba(5, 4, 3, 0.72);
}

.public-header .public-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #c9bea7;
  font-size: clamp(0.66rem, 0.72vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-header .public-nav a:hover,
.public-header .public-nav a:focus-visible,
.public-header .public-nav a:first-child {
  color: #ffd36b;
  background: transparent;
  border-bottom-color: #ffd36b;
}

.public-schedule,
.prx-main-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 211, 107, 0.72);
  border-radius: 3px;
  background: linear-gradient(180deg, #e4c886, #c49a54);
  color: #100b04;
  padding: 0 22px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
  white-space: nowrap;
}

.public-schedule::before,
.prx-main-cta::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: inset 0 5px 0 rgba(16, 11, 4, 0.20);
}

.public-home-reference.prx-template-home {
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(270px, 0.88fr) minmax(420px, 1.45fr) minmax(270px, 0.86fr);
}

.prx-template-left h1 {
  max-width: 7ch;
  margin: 14px 0;
  color: #f6f0e3;
  font-size: clamp(4rem, 7vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prx-template-left h1 span {
  display: block;
  color: #d6a64d;
}

.prx-scissor-line {
  position: absolute;
  top: 52px;
  left: 34px;
  color: #c49a54;
  font-size: 2rem;
  letter-spacing: 0.3em;
}

.prx-home-brand {
  margin: 6px 0 16px;
  color: #ffd36b;
  font-size: clamp(1.1rem, 1.5vw, 1.55rem);
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prx-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 211, 107, 0.18);
  border-bottom: 1px solid rgba(255, 211, 107, 0.18);
}

.prx-benefits div {
  display: grid;
  gap: 6px;
  min-height: 86px;
  align-content: center;
  padding: 12px 10px;
  border-right: 1px solid rgba(255, 211, 107, 0.18);
  text-align: center;
}

.prx-benefits div:last-child {
  border-right: 0;
}

.prx-benefits strong {
  color: #ffd36b;
  font-size: 0.95rem;
}

.prx-benefits span {
  color: rgba(246, 240, 227, 0.74);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.prx-main-cta {
  width: min(280px, 100%);
  margin-top: 28px;
}

.prx-template-center {
  display: grid;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.prx-carousel-track {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prx-carousel-slide {
  margin: 0;
  border-right: 1px solid rgba(255, 211, 107, 0.20);
  overflow: hidden;
}

.prx-carousel-slide:last-child {
  border-right: 0;
}

.prx-carousel-slide img {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 72px);
  object-fit: cover;
  filter: saturate(1.03) contrast(1.04);
}

.prx-template-right {
  padding: 26px;
}

.prx-app-card {
  width: 100%;
  max-width: 360px;
  margin: auto;
  border: 1px solid rgba(255, 211, 107, 0.24);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(26, 23, 18, 0.88), rgba(5, 4, 3, 0.92));
  padding: clamp(18px, 2vw, 28px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255,255,255,.04);
}

.prx-template-right h2 {
  margin: 8px 0 18px;
  color: #ffd36b;
  font-size: clamp(2.2rem, 3.4vw, 4rem);
  line-height: 0.94;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prx-template-right h2 span {
  display: block;
  color: #f6f0e3;
  font-size: 0.68em;
}

.prx-email-form {
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.prx-email-form label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 211, 107, 0.28);
  border-radius: 6px;
  background: rgba(5, 4, 3, 0.62);
  padding: 0 14px;
}

.prx-email-form label span {
  color: #ffd36b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prx-email-form input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f6f0e3;
}

.prx-email-form button {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255, 211, 107, 0.46);
  border-radius: 6px;
  background: rgba(26, 23, 18, 0.88);
  color: #ffd36b;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prx-soon {
  margin: 28px 0 12px;
  color: #ffd36b;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prx-store-badges {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(255, 211, 107, 0.34);
  padding: 12px;
}

.prx-store-badges a {
  min-height: 50px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 6px;
  background: #050403;
  color: #fff;
  text-decoration: none;
}

.prx-store-badges span {
  font-size: 0.56rem;
}

.prx-store-badges strong {
  font-size: 0.92rem;
}

.prx-secure {
  margin: 14px 0 0;
  color: rgba(246, 240, 227, 0.58);
  font-size: 0.78rem;
}

@media (max-width: 1180px) {
  .public-header {
    grid-template-columns: auto 1fr;
  }

  .public-schedule {
    grid-column: 2;
    justify-self: end;
  }

  .public-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    justify-content: flex-start;
    width: 100%;
  }

  .public-home-reference.prx-template-home {
    grid-template-columns: 1fr;
  }

  .prx-carousel-slide img {
    min-height: 520px;
  }
}

@media (max-width: 700px) {
  .public-header {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px;
  }

  .public-schedule {
    grid-column: auto;
    justify-self: stretch;
  }

  .public-home-reference.prx-template-home,
  .prx-template-panel {
    min-height: auto;
  }

  .prx-carousel-track,
  .prx-benefits,
  .prx-store-badges {
    grid-template-columns: 1fr;
  }

  .prx-carousel-slide img {
    min-height: 360px;
  }

  .prx-template-left h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }
}



/* PRX public launch adjustments - 2026-06-26 */
.public-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.public-client {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 211, 107, 0.42);
  border-radius: 3px;
  background: rgba(26, 23, 18, 0.94);
  color: #f6f0e3;
  padding: 0 18px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-client:hover,
.public-client:focus-visible {
  background: #c49a54;
  color: #050403;
}

.public-home-reference.prx-template-home {
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.36fr) minmax(270px, 0.82fr);
}

.prx-template-left {
  align-content: center;
  min-height: calc(100vh - 72px);
  padding: clamp(24px, 3vw, 44px);
}

.prx-template-left h1 {
  max-width: 8.4ch;
  margin: 12px 0;
  font-size: clamp(3rem, 4.8vw, 5.2rem);
  line-height: 0.9;
}

.prx-home-kicker {
  margin: 0;
  color: #e4c886;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prx-home-phrase {
  max-width: 420px;
  color: rgba(246, 240, 227, 0.78);
  line-height: 1.55;
}

.prx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.prx-hero-actions .prx-main-cta {
  width: auto;
  min-width: 190px;
  margin-top: 0;
}

.prx-main-cta-secondary {
  background: rgba(26, 23, 18, 0.92);
  color: #f6f0e3;
}

.prx-main-cta-secondary::before {
  border-radius: 50%;
}

.prx-template-center {
  min-height: calc(100vh - 72px);
}

.prx-carousel-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 72px);
  overflow: hidden;
}

.prx-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
}

.prx-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.35s ease, transform 0.45s ease;
  border: 0;
}

.prx-carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.prx-carousel-slide img {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 72px);
  object-fit: cover;
}

.prx-carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  min-height: 44px;
  border: 1px solid rgba(255, 211, 107, 0.58);
  border-radius: 6px;
  background: rgba(5, 4, 3, 0.78);
  color: #ffd36b;
  padding: 0 13px;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.prx-carousel-prev { left: 14px; }
.prx-carousel-next { right: 14px; }

.prx-carousel-arrow:hover,
.prx-carousel-arrow:focus-visible {
  background: #c49a54;
  color: #050403;
}

.prx-carousel-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.prx-carousel-dots button {
  width: 11px;
  min-width: 11px;
  height: 11px;
  min-height: 11px;
  border: 1px solid rgba(255, 211, 107, 0.68);
  border-radius: 999px;
  background: rgba(5, 4, 3, 0.72);
  padding: 0;
}

.prx-carousel-dots button.active {
  width: 28px;
  background: #ffd36b;
}

.prx-store-badges {
  grid-template-columns: 1fr;
  border: 0;
  padding: 0;
}

.prx-store-badge {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: #050403;
  color: #fff;
  padding: 9px 12px;
}

.prx-store-badge .store-icon {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f6f0e3;
  color: #050403;
  font-weight: 1000;
}

.prx-store-badge span {
  align-self: end;
  font-size: 0.62rem;
  color: rgba(246, 240, 227, 0.72);
}

.prx-store-badge strong {
  align-self: start;
  font-size: 1rem;
  color: #fff;
}

.prx-shop {
  max-width: 1180px;
}

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

.prx-product-card {
  overflow: hidden;
  border: 1px solid rgba(228, 200, 134, 0.22);
  border-radius: 8px;
  background: rgba(26, 23, 18, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.prx-product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0e0c09;
}

.prx-product-card div {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.prx-product-card span {
  color: #e4c886;
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.prx-product-card h3,
.prx-product-card p {
  margin: 0;
}

.prx-product-card h3 {
  color: #f6f0e3;
  font-size: 1rem;
}

.prx-product-card p {
  min-height: 52px;
  color: rgba(246, 240, 227, 0.66);
  font-size: 0.86rem;
  line-height: 1.35;
}

.prx-product-card strong {
  color: #ffd36b;
  font-size: 1.18rem;
}

.prx-shop-note {
  max-width: none !important;
  margin-top: 18px !important;
  color: rgba(246, 240, 227, 0.7) !important;
  font-size: 0.92rem;
}

.prx-back-top {
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .public-actions {
    grid-column: 2;
    justify-self: end;
  }

  .public-home-reference.prx-template-home {
    grid-template-columns: 1fr;
  }

  .prx-template-left,
  .prx-template-center,
  .prx-carousel-shell,
  .prx-carousel-slide img {
    min-height: auto;
  }

  .prx-carousel-shell,
  .prx-carousel-track,
  .prx-carousel-slide img {
    height: 560px;
  }

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

@media (max-width: 700px) {
  .public-actions {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-actions .public-schedule,
  .public-actions .public-client {
    width: 100%;
  }

  .prx-template-left h1 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .prx-benefits,
  .prx-product-grid {
    grid-template-columns: 1fr;
  }

  .prx-carousel-shell,
  .prx-carousel-track,
  .prx-carousel-slide img {
    height: 420px;
  }
}

/* PRX urgent public polish - 2026-06-26 late */
.public-header {
  grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) auto;
  gap: 14px;
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.public-actions .public-schedule,
.public-actions .public-client {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.72rem;
  line-height: 1;
}

.public-home-reference.prx-template-home {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(230px, 0.52fr) minmax(620px, 1.48fr);
  gap: 0;
}

.prx-template-left {
  min-height: calc(100vh - 72px);
  display: grid;
  align-content: center;
  padding: clamp(20px, 2.5vw, 34px);
}

.prx-template-left h1 {
  max-width: 7.5ch;
  font-size: clamp(2.35rem, 3.35vw, 3.8rem);
  line-height: 0.92;
}

.prx-home-phrase {
  max-width: 330px;
  font-size: 0.98rem;
}

.prx-benefits {
  grid-template-columns: 1fr;
  margin-top: 18px;
  border: 1px solid rgba(255, 211, 107, 0.18);
}

.prx-benefits div {
  min-height: 54px;
  border-right: 0;
  border-bottom: 1px solid rgba(255, 211, 107, 0.14);
  text-align: left;
}

.prx-benefits div:last-child {
  border-bottom: 0;
}

.prx-template-center,
.prx-carousel-shell,
.prx-carousel-track {
  min-height: calc(100vh - 72px);
}

.prx-carousel-three .prx-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

.prx-carousel-three .prx-carousel-slide {
  position: static;
  flex: 0 0 33.333333%;
  opacity: 1;
  transform: none;
  padding: 10px 6px;
}

.prx-carousel-three .prx-carousel-slide img {
  min-height: calc(100vh - 92px);
  height: calc(100vh - 92px);
  border: 1px solid rgba(255, 211, 107, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(0,0,0,.36);
}

.prx-carousel-three .prx-carousel-dots button:nth-child(n+4) {
  display: none;
}

.prx-app-section {
  max-width: 1180px;
  display: grid;
  justify-items: center;
}

.prx-app-section .prx-app-card {
  max-width: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 16px 22px;
  align-items: center;
}

.prx-app-section .prx-app-card > h2,
.prx-app-section .prx-app-card > p,
.prx-app-section .prx-app-card > .prx-app-label,
.prx-app-section .prx-app-card > .prx-secure {
  grid-column: 1;
}

.prx-app-section .prx-email-form,
.prx-app-section .prx-soon,
.prx-app-section .prx-store-badges {
  grid-column: 2;
}

.store-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-play svg path:first-child {
  fill: #34a853;
}

.store-play svg path:last-child {
  fill: #4285f4;
}

.prx-store-badge .store-icon.store-play {
  background: #f6f0e3;
}

.prx-shop .section-head p::after {
  content: " As fotos, valores e detalhes vêm do cadastro administrativo de produtos quando houver produtos ativos.";
}

@media (max-width: 1180px) {
  .public-header {
    grid-template-columns: auto 1fr;
  }

  .public-actions {
    grid-column: 2;
    justify-self: end;
  }

  .public-home-reference.prx-template-home {
    grid-template-columns: 1fr;
  }

  .prx-template-left,
  .prx-template-center,
  .prx-carousel-shell,
  .prx-carousel-track {
    min-height: auto;
  }

  .prx-carousel-three .prx-carousel-slide img {
    min-height: 520px;
    height: 520px;
  }
}

@media (max-width: 760px) {
  .public-actions {
    width: 100%;
    grid-column: auto;
    justify-self: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-actions .public-schedule,
  .public-actions .public-client {
    width: 100%;
  }

  .prx-carousel-three .prx-carousel-slide {
    flex-basis: 100%;
    padding: 8px 0;
  }

  .prx-carousel-three .prx-carousel-slide img {
    min-height: 420px;
    height: 420px;
  }

  .prx-app-section .prx-app-card {
    grid-template-columns: 1fr;
  }

  .prx-app-section .prx-email-form,
  .prx-app-section .prx-soon,
  .prx-app-section .prx-store-badges,
  .prx-app-section .prx-app-card > h2,
  .prx-app-section .prx-app-card > p,
  .prx-app-section .prx-app-card > .prx-app-label,
  .prx-app-section .prx-app-card > .prx-secure {
    grid-column: auto;
  }
}
/* Agenda - painel operacional do atendimento */
.attendance-panel {
  border-color: rgba(196, 154, 84, 0.32);
}

.attendance-panel-header,
.attendance-timeline header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}


.attendance-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(196, 154, 84, 0.28);
  border-radius: 8px;
  background: rgba(196, 154, 84, 0.08);
}

.attendance-next-step div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.attendance-next-step span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.attendance-next-step strong {
  color: var(--ink);
  font-size: 1rem;
}

.attendance-next-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Agenda - resumo do atendimento */
.attendance-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.attendance-summary-grid article {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(228, 200, 134, 0.16);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.22);
}

.attendance-summary-grid span,
.attendance-timeline-item span,
.attendance-timeline-item small {
  color: var(--muted);
  font-size: 0.85rem;
}

.attendance-summary-grid strong {
  color: var(--ink);
  font-size: 0.98rem;
}

/* Agenda - acoes do atendimento */
.attendance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

/* Agenda - timeline do atendimento */
.attendance-timeline {
  display: grid;
  gap: 10px;
}

.attendance-timeline h3 {
  margin: 0;
  font-size: 1rem;
}

.attendance-timeline-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: rgba(246, 240, 227, 0.04);
}

.attendance-timeline-item time {
  color: var(--accent-2);
  font-weight: 800;
  font-size: 0.84rem;
}

.attendance-timeline-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.attendance-timeline-item strong {
  color: var(--ink);
}

@media (max-width: 720px) {
  .attendance-panel-header,
  .attendance-timeline header,
  .attendance-timeline-item {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .attendance-next-step {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Attendance Command Panel */
.attendance-panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(228, 200, 134, 0.14);
}

.attendance-panel-tabs button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(228, 200, 134, 0.18);
  border-radius: 8px;
  background: rgba(246, 240, 227, 0.04);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.attendance-panel-tabs button.active {
  border-color: rgba(196, 154, 84, 0.52);
  background: rgba(196, 154, 84, 0.14);
  color: var(--ink);
}

.attendance-command-panel,
.attendance-payment-panel,
.attendance-history-panel {
  display: grid;
  gap: 14px;
}

.attendance-command-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.attendance-command-panel h3,
.attendance-payment-panel h3,
.attendance-history-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.attendance-command-panel header span,
.attendance-command-empty span,
.attendance-command-meta,
.attendance-command-items td span {
  color: var(--muted);
  font-size: 0.86rem;
}

.attendance-command-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(228, 200, 134, 0.28);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.18);
}

.attendance-command-empty > div,
.attendance-command-meta {
  display: grid;
  gap: 4px;
}

.attendance-command-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.attendance-command-items {
  overflow-x: auto;
}

.attendance-command-items table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.attendance-command-items th,
.attendance-command-items td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(228, 200, 134, 0.12);
  text-align: left;
  vertical-align: middle;
}

.attendance-command-items td:first-child {
  display: grid;
  gap: 3px;
}

.attendance-command-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.attendance-command-totals article {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(228, 200, 134, 0.16);
  border-radius: 8px;
  background: rgba(246, 240, 227, 0.04);
}

.attendance-command-totals span {
  color: var(--muted);
  font-size: 0.82rem;
}

.attendance-command-totals strong {
  color: var(--ink);
}

@media (max-width: 720px) {
  .attendance-command-panel > header,
  .attendance-command-empty,
  .attendance-command-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Attendance Payment Panel */
.attendance-payment-panel .attendance-section-header,
.attendance-command-panel .attendance-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.attendance-payment-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.attendance-payment-summary article {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .5rem;
    padding: .75rem;
    background: rgba(255,255,255,.04);
}

.attendance-payment-summary span,
.payment-change span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
}

.attendance-payment-summary strong,
.payment-change strong {
    display: block;
    margin-top: .25rem;
    font-size: 1.05rem;
}

.attendance-payment-summary .pending strong { color: #fbbf24; }
.attendance-payment-summary .settled strong { color: #34d399; }

.attendance-payment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    align-items: end;
}

.attendance-payment-form label,
.attendance-payment-form .payment-change {
    display: grid;
    gap: .35rem;
}

.attendance-payment-form .payment-notes {
    grid-column: 1 / -1;
}

.attendance-payment-list table {
    width: 100%;
}

.payment-method-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .2rem .55rem;
    background: rgba(255,255,255,.08);
    color: var(--text);
    font-size: .8rem;
}

.attendance-payment-empty {
    border: 1px dashed rgba(255,255,255,.16);
    border-radius: .5rem;
    padding: 1rem;
}

.alert.compact {
    padding: .5rem .75rem;
    margin: 0;
}

@media (max-width: 720px) {
    .attendance-payment-summary,
    .attendance-payment-form {
        grid-template-columns: 1fr;
    }
}
/* Milestone 2 - Fase 6: Agenda premium UX */
.calendar-board {
  position: relative;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, rgba(228, 200, 134, 0.035), transparent 120px),
    var(--surface);
}

.calendar-head {
  z-index: 6;
  letter-spacing: 0;
}

.calendar-time {
  position: sticky;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 10px;
  border-right-color: rgba(228, 200, 134, 0.16);
}

.calendar-cell {
  min-height: 72px;
  background:
    linear-gradient(180deg, rgba(246, 240, 227, 0.018), transparent),
    rgba(14, 12, 9, 0.62);
  transition: background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.calendar-cell.cell-free:hover {
  background:
    linear-gradient(135deg, rgba(127, 168, 107, 0.13), rgba(196, 154, 84, 0.04)),
    rgba(14, 12, 9, 0.86);
}

.calendar-cell.cell-busy {
  background:
    linear-gradient(180deg, rgba(196, 154, 84, 0.045), transparent),
    rgba(14, 12, 9, 0.72);
}

.calendar-cell.move-target::after {
  content: "Soltar aqui";
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(127, 168, 107, 0.62);
  border-radius: 8px;
  color: rgba(246, 240, 227, 0.86);
  font-size: 0.74rem;
  font-weight: 800;
  pointer-events: none;
}

.calendar-now-line {
  grid-column: 1 / -1;
  align-self: start;
  z-index: 9;
  height: 0;
  border-top: 2px solid #db5d50;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(219, 93, 80, 0.12), 0 0 18px rgba(219, 93, 80, 0.36);
}

.calendar-now-line span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  transform: translate(8px, -50%);
  border-radius: 999px;
  background: #db5d50;
  color: #fff;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(219, 93, 80, 0.34);
}

.calendar-event {
  position: relative;
  min-height: 96px;
  gap: 5px;
  border-radius: 8px;
  border-left-width: 5px;
  padding: 10px 10px 14px;
  background:
    linear-gradient(135deg, rgba(228, 200, 134, 0.20), rgba(26, 23, 18, 0.98) 42%),
    rgba(26, 23, 18, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, outline-color 0.16s ease;
}

.calendar-event:hover,
.calendar-event:focus-within {
  z-index: 20;
  transform: translateY(-1px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
  outline-color: rgba(228, 200, 134, 0.34);
}

.calendar-event[draggable="true"]:active {
  opacity: 0.72;
  transform: scale(0.985);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.52);
}

.calendar-event.is-selected {
  outline: 2px solid rgba(127, 168, 107, 0.7);
  box-shadow: 0 0 0 5px rgba(127, 168, 107, 0.12), 0 24px 48px rgba(0, 0, 0, 0.38);
}

.calendar-event.is-late {
  border-left-color: #db5d50;
}

.event-topline,
.event-meta-row,
.event-indicators {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.calendar-event .event-time,
.calendar-event .event-duration {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 900;
}

.calendar-event strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ivory);
  font-size: 0.96rem;
  line-height: 1.14;
}

.calendar-event .event-service,
.event-meta-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(246, 240, 227, 0.75);
  font-size: 0.76rem;
}

.event-pill,
.event-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  max-width: 100%;
  border: 1px solid rgba(228, 200, 134, 0.2);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(5, 4, 3, 0.34);
  color: rgba(246, 240, 227, 0.82);
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}

.event-chip {
  color: var(--gold-light);
}

.event-chip.danger {
  border-color: rgba(219, 93, 80, 0.45);
  color: #ffd4cd;
}

.event-dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(127, 168, 107, 0.95);
  box-shadow: 0 0 0 4px rgba(127, 168, 107, 0.12);
}

.event-dot.pending {
  background: #db5d50;
  box-shadow: 0 0 0 4px rgba(219, 93, 80, 0.12);
}

.event-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.event-actions button,
.event-context-menu button {
  min-height: 28px;
  border-color: rgba(228, 200, 134, 0.2);
  background: rgba(5, 4, 3, 0.34);
  color: rgba(246, 240, 227, 0.88);
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.event-actions button:hover,
.event-context-menu button:hover {
  border-color: rgba(228, 200, 134, 0.46);
  background: rgba(196, 154, 84, 0.16);
  color: var(--ivory);
}

.event-resize-handle {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 7px;
  min-height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(228, 200, 134, 0.28);
  cursor: ns-resize;
  padding: 0;
}

.event-resize-handle span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.event-resize-handle:hover {
  background: var(--gold-light);
}

.event-hover-card {
  position: absolute;
  left: calc(100% + 10px);
  top: 10px;
  z-index: 30;
  display: none;
  width: min(260px, 76vw);
  border: 1px solid rgba(228, 200, 134, 0.22);
  border-radius: 8px;
  background: rgba(14, 12, 9, 0.98);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.48);
  padding: 12px;
}

.event-hover-card strong,
.event-hover-card span {
  display: block;
  white-space: normal;
  color: rgba(246, 240, 227, 0.82);
  font-size: 0.78rem;
  line-height: 1.35;
}

.event-hover-card strong {
  color: var(--ivory);
  font-size: 0.94rem;
  margin-bottom: 4px;
}

.calendar-event:hover .event-hover-card,
.calendar-event:focus-within .event-hover-card {
  display: block;
}

.event-context-menu {
  position: absolute;
  right: 8px;
  top: 34px;
  z-index: 32;
  display: grid;
  gap: 4px;
  min-width: 150px;
  border: 1px solid rgba(228, 200, 134, 0.24);
  border-radius: 8px;
  background: rgba(14, 12, 9, 0.98);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  padding: 6px;
}

.event-context-menu button {
  justify-content: flex-start;
  width: 100%;
  border-radius: 6px;
  text-align: left;
}

@media (max-width: 900px) {
  .calendar-board {
    grid-auto-rows: minmax(74px, auto);
  }

  .calendar-cell {
    min-width: 210px;
  }

  .event-hover-card {
    left: 8px;
    right: 8px;
    top: calc(100% + 8px);
    width: auto;
  }
}

@media (max-width: 640px) {
  .calendar-event {
    min-height: 88px;
    margin: 4px 6px;
    padding: 9px 9px 13px;
  }

  .event-actions button {
    min-height: 30px;
    padding: 0 7px;
  }

  .event-pill,
  .event-chip {
    font-size: 0.64rem;
  }
}
/* Safe Night Mode - Home premium visual layer */
.safe-night-home.public-home-reference.prx-template-home {
  width: min(1480px, calc(100% - 32px));
  min-height: calc(100vh - 88px);
  margin: 8px auto 28px;
  grid-template-columns: minmax(300px, 0.68fr) minmax(560px, 1.32fr);
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(10px, 1.2vw, 18px);
  border: 1px solid rgba(228, 200, 134, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(196, 154, 84, 0.14), transparent 31%),
    linear-gradient(135deg, rgba(14, 12, 9, 0.94), rgba(5, 4, 3, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.safe-night-home .prx-template-left {
  min-height: auto;
  align-content: center;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid rgba(228, 200, 134, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(246, 240, 227, 0.045), rgba(5, 4, 3, 0.24));
}

.safe-night-home .prx-home-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(228, 200, 134, 0.24);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(196, 154, 84, 0.10);
  color: #e4c886;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.safe-night-home .prx-template-left h1 {
  max-width: 8.8ch;
  margin: 18px 0 14px;
  color: #f6f0e3;
  font-size: clamp(2.65rem, 5.4vw, 5.65rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.safe-night-home .prx-template-left h1 span {
  color: #e4c886;
}

.safe-night-home .prx-home-phrase {
  max-width: 450px;
  color: rgba(246, 240, 227, 0.82);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.55;
}

.prx-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.prx-home-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.prx-home-actions a:hover {
  transform: translateY(-1px);
}

.prx-home-primary {
  border: 1px solid rgba(228, 200, 134, 0.66);
  background: linear-gradient(135deg, #e4c886, #c49a54);
  color: #050403;
  box-shadow: 0 16px 32px rgba(196, 154, 84, 0.22);
}

.prx-home-secondary {
  border: 1px solid rgba(228, 200, 134, 0.24);
  background: rgba(246, 240, 227, 0.055);
  color: #f6f0e3;
}

.prx-home-signal {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.prx-home-signal span {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(228, 200, 134, 0.10);
  color: rgba(246, 240, 227, 0.70);
  font-size: 0.82rem;
  font-weight: 780;
}

.safe-night-home .prx-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
  border: 0;
}

.safe-night-home .prx-benefits div {
  min-height: 88px;
  align-content: start;
  border: 1px solid rgba(228, 200, 134, 0.13);
  border-radius: 12px;
  background: rgba(5, 4, 3, 0.26);
  padding: 14px;
}

.safe-night-home .prx-benefits strong {
  color: #e4c886;
  font-size: 1rem;
}

.safe-night-home .prx-benefits span {
  color: rgba(246, 240, 227, 0.68);
  font-size: 0.76rem;
  line-height: 1.35;
}

.safe-night-home .prx-template-center,
.safe-night-home .prx-carousel-shell,
.safe-night-home .prx-carousel-track {
  min-height: auto;
}

.safe-night-home .prx-carousel-shell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.safe-night-home .prx-carousel-three .prx-carousel-slide {
  padding: 0 7px;
}

.safe-night-home .prx-carousel-three .prx-carousel-slide img {
  height: min(760px, calc(100vh - 126px));
  min-height: 520px;
  border-radius: 14px;
  border-color: rgba(228, 200, 134, 0.20);
  object-fit: cover;
  filter: saturate(1.03) contrast(1.04);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.42);
}

.safe-night-home .prx-carousel-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(228, 200, 134, 0.36);
  background: rgba(5, 4, 3, 0.74);
  color: transparent;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.safe-night-home .prx-carousel-arrow::before {
  color: #f6f0e3;
  font-size: 1.45rem;
  line-height: 1;
}

.safe-night-home .prx-carousel-prev::before {
  content: "‹";
}

.safe-night-home .prx-carousel-next::before {
  content: "‹";
}

.safe-night-home .prx-carousel-dots {
  bottom: 18px;
}

.safe-night-home .prx-carousel-dots button {
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: rgba(246, 240, 227, 0.34);
}

.safe-night-home .prx-carousel-dots button.active {
  background: #e4c886;
}

.safe-night-app-section {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.safe-night-app-section .prx-app-card {
  max-width: 980px;
  border-radius: 16px;
  border-color: rgba(228, 200, 134, 0.16);
  background:
    linear-gradient(135deg, rgba(228, 200, 134, 0.08), rgba(5, 4, 3, 0.2)),
    rgba(14, 12, 9, 0.92);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

.safe-night-shop .prx-product-card {
  border-radius: 14px;
  background: rgba(14, 12, 9, 0.9);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.safe-night-shop .prx-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(228, 200, 134, 0.38);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.30);
}

@media (max-width: 1180px) {
  .safe-night-home.public-home-reference.prx-template-home {
    grid-template-columns: 1fr;
  }

  .safe-night-home .prx-carousel-three .prx-carousel-slide img {
    height: 520px;
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .safe-night-home.public-home-reference.prx-template-home {
    width: min(100% - 18px, 680px);
    margin-top: 6px;
    padding: 8px;
    border-radius: 14px;
  }

  .safe-night-home .prx-template-left {
    padding: 22px;
  }

  .safe-night-home .prx-template-left h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .prx-home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .safe-night-home .prx-benefits {
    grid-template-columns: 1fr;
  }

  .safe-night-home .prx-benefits div {
    min-height: 72px;
  }

  .safe-night-home .prx-carousel-three .prx-carousel-slide img {
    height: 430px;
    min-height: 430px;
  }
}

/* Public Experience Polish - Home only */
.safe-night-home .prx-template-left {
  background: linear-gradient(180deg, rgba(246, 240, 227, 0.045), transparent 38%), rgba(5, 4, 3, 0.72);
}

.safe-night-home .prx-home-kicker {
  letter-spacing: 0.12em;
}

.safe-night-home .prx-home-primary,
.safe-night-home .prx-home-secondary,
.safe-night-shop .prx-back-top,
.safe-night-app-section button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.safe-night-home .prx-home-primary:hover,
.safe-night-home .prx-home-secondary:hover,
.safe-night-shop .prx-back-top:hover,
.safe-night-app-section button:hover {
  transform: translateY(-1px);
}

.safe-night-home .prx-benefits {
  background: rgba(14, 12, 9, 0.62);
  box-shadow: inset 0 1px 0 rgba(246, 240, 227, 0.06);
}

.safe-night-home .prx-carousel-shell {
  background: radial-gradient(circle at 50% 0%, rgba(228, 200, 134, 0.12), transparent 34%), #050403;
}

.safe-night-home .prx-carousel-three .prx-carousel-slide img {
  transition: transform 0.32s ease, filter 0.32s ease, border-color 0.32s ease;
}

.safe-night-home .prx-carousel-three .prx-carousel-slide.is-active img {
  border-color: rgba(228, 200, 134, 0.34);
}

.safe-night-home .prx-carousel-three .prx-carousel-slide img:hover {
  transform: translateY(-2px);
  filter: saturate(1.04) contrast(1.03);
}

.safe-night-app-section .prx-app-card,
.safe-night-shop .prx-product-card,
.home-info-grid .info-panel {
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24);
}

.safe-night-shop .prx-product-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.safe-night-shop .prx-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(228, 200, 134, 0.34);
}

.safe-night-shop .prx-product-card img {
  background: rgba(246, 240, 227, 0.04);
}

.safe-night-home a:focus-visible,
.safe-night-app-section button:focus-visible,
.safe-night-app-section input:focus-visible,
.safe-night-shop a:focus-visible {
  outline: 3px solid rgba(228, 200, 134, 0.72);
  outline-offset: 3px;
}
/* PRX v1.0 Final Polish - UX only */
.client-premium-title {
  align-items: flex-end;
  gap: 18px;
}

.client-premium-title .eyebrow,
.client-premium-card > span,
.client-premium-hero span,
.client-premium-empty span {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(228, 200, 134, 0.22);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(196, 154, 84, 0.09);
  color: var(--accent-2);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-premium-title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.client-premium-shell {
  display: grid;
  gap: 16px;
}

.client-premium-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-color: rgba(228, 200, 134, 0.28);
  background: linear-gradient(135deg, rgba(196, 154, 84, 0.16), rgba(14, 12, 9, 0.96) 55%), var(--surface);
}

.client-premium-hero strong,
.client-premium-empty strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  line-height: 1.1;
}

.client-premium-hero p,
.client-premium-card p,
.client-premium-empty p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.client-premium-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 210px;
  border-color: rgba(228, 200, 134, 0.16);
  background: linear-gradient(180deg, rgba(246, 240, 227, 0.035), transparent), var(--surface);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.client-premium-card:hover {
  transform: translateY(-2px);
  border-color: rgba(228, 200, 134, 0.34);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.client-premium-card strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.client-premium-card .btn-small {
  align-self: end;
  width: fit-content;
  margin-top: 10px;
}

.client-premium-empty {
  border-style: dashed;
  border-color: rgba(228, 200, 134, 0.22);
  background: rgba(5, 4, 3, 0.20);
}

.calendar-event {
  overflow: hidden;
}

.calendar-event strong,
.calendar-event .event-service,
.event-meta-row span,
.event-pill,
.event-chip,
.calendar-event .event-time,
.calendar-event .event-duration {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-actions button {
  min-width: 0;
  white-space: nowrap;
}

.event-resize-handle {
  opacity: 0.82;
}

.attendance-panel,
.attendance-command-panel,
.attendance-payment-panel {
  min-width: 0;
}

.attendance-command-panel > header,
.attendance-section-header {
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(228, 200, 134, 0.12);
}

.attendance-command-items,
.attendance-payment-list {
  border: 1px solid rgba(228, 200, 134, 0.12);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.16);
}

.attendance-command-items table,
.attendance-payment-list table {
  border-collapse: separate;
  border-spacing: 0;
}

.attendance-command-items th,
.attendance-payment-list th {
  color: var(--accent-2);
  font-size: 0.74rem;
  text-transform: uppercase;
  background: rgba(196, 154, 84, 0.07);
}

.attendance-command-items td,
.attendance-payment-list td {
  color: rgba(246, 240, 227, 0.86);
}

.attendance-command-totals article,
.attendance-payment-summary article,
.cash-summary div {
  border-color: rgba(228, 200, 134, 0.18);
  background: linear-gradient(180deg, rgba(246, 240, 227, 0.04), rgba(5, 4, 3, 0.16));
  box-shadow: inset 0 1px 0 rgba(246, 240, 227, 0.04);
}

.attendance-command-totals strong,
.attendance-payment-summary strong,
.cash-summary strong {
  letter-spacing: 0;
}

.payment-method-badge,
.status-badge,
.event-chip,
.event-pill {
  white-space: nowrap;
}

.cash-summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cash-command-layout,
.command-detail,
.command-list,
.command-row {
  min-width: 0;
}

.command-row {
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.command-row:hover {
  transform: translateY(-1px);
  border-color: rgba(228, 200, 134, 0.34);
  background: rgba(196, 154, 84, 0.10);
}

@media (max-width: 900px) {
  .client-premium-title,
  .client-premium-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .client-premium-title-actions {
    justify-content: flex-start;
  }

  .client-premium-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .client-premium-title-actions,
  .client-premium-title-actions .btn-link,
  .client-premium-hero .btn-link,
  .client-premium-card .btn-small {
    width: 100%;
  }

  .attendance-command-actions,
  .attendance-payment-form {
    grid-template-columns: 1fr;
  }

  .attendance-command-items table,
  .attendance-payment-list table {
    min-width: 560px;
  }
}


