:root {
  color-scheme: dark;
  --bg: #12110f;
  --panel: #1e1c19;
  --panel2: #28241e;
  --ink: #f6f0e7;
  --muted: #aaa49a;
  --gold: #c9a66b;
  --gold-rgb: 201, 166, 107;
  --gold-hover: #e0bb80;
  --line: #3b3730;
  --green: #88e0b2;
  --danger: #f0a59c;
  font-family: Arial, Helvetica, sans-serif;
}

/* ==========================================================
   VERTICAL STUDIO DE BELEZA / SALÃO FEMININO (.theme-studio)
   Paleta: Rose Gold, Porcelana, Pérola, Champagne e Berry
   ========================================================== */
body.theme-studio,
.theme-studio {
  color-scheme: light;
  --bg: #FAF7F5;
  --panel: #FFFFFF;
  --panel2: #F6EFEA;
  --ink: #2A2124;
  /* Tons ajustados para passar 4.5:1 sobre --bg, --panel e --panel2 */
  --muted: #735F66;
  --gold: #C0266B;
  --gold-rgb: 192, 38, 107;
  --gold-hover: #9D174D;
  --gold-soft: #FFF0F5;
  --gold-line: #F3C4D4;
  --line: #E8DDD9;
  --green: #0F766E;
  --green-soft: #ECF8F6;
  --danger: #BE123C;
  --danger-soft: #FFF1F3;
  --warn: #8A5A0B;
  --warn-soft: #FFF8EB;
  --warn-line: #F1D9A8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================================
   BARRA DE ROLAGEM CUSTOMIZADA (W3C + WEBKIT)
   Harmonizada com a identidade ônix e dourada Barber Ágil
   ========================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: #3b3730 #12110f;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #12110f;
  border-left: 1px solid #1f1d19;
}

::-webkit-scrollbar-thumb {
  background: #36322b;
  border-radius: 6px;
  border: 2px solid #12110f;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

::-webkit-scrollbar-corner {
  background: #12110f;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at 75% -20%, #29241d 0, transparent 48%), var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

button, input {
  font: inherit;
}

select { font: inherit; }

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

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

/* Header compacto otimizado para desktop e notebooks */
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  height: 42px;
  width: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #29241c, 0 4px 12px rgba(0, 0, 0, 0.4);
  background: #0d0c0a;
  overflow: hidden;
  flex-shrink: 0;
}

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

.brand strong {
  display: block;
  font: 20px Georgia, serif;
  letter-spacing: -.03em;
}

.brand small {
  display: block;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  margin-top: 2px;
}

.header-note {
  color: var(--muted);
  font: italic 14px Georgia, serif;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  margin: 0 0 10px;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -.03em;
}

h1 {
  font-size: 32px;
  line-height: 1.1;
}

h2 {
  font-size: 24px;
}

p {
  line-height: 1.45;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 16px 0 24px;
  color: #777168;
  font-size: 12px;
  margin-top: 28px;
}

/* Campos de entrada com suporte a password e todos os tipos */
.field-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type=date],
input[type=text],
input[type=tel],
input[type=number],
input[type=password],
input[type=email] {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #171614;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
}

input::placeholder {
  color: #ada69a;
}

input:focus,
input:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 166, 107, 0.2);
  outline: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

input[type=date]::-webkit-calendar-picker-indicator {
  filter: invert(.82);
}

.field-help {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}

/* Botões */
.primary-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 9px;
  padding: 0 18px;
  background: var(--gold);
  color: #17130c;
  font-weight: 700;
  font-size: 14px;
  transition: background .15s;
}

.primary-button:hover {
  background: #e0bb80;
}

.primary-button:disabled {
  opacity: .55;
  cursor: wait;
}

.secondary-button,
.outline-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 38px;
  border: 1px solid #73634b;
  border-radius: 8px;
  background: transparent;
  color: #e2c695;
  padding: 0 16px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background .15s;
}

.secondary-button:hover,
.outline-button:hover {
  background: #30291f;
}

.form-message {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.form-message.ok {
  color: var(--green);
}

.success-panel {
  margin-top: 20px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: #2e281f;
  padding: 24px;
}

.success-panel h2 {
  margin-bottom: 10px;
}

/* ==========================================================
   PAINEL DO DONO (DESKTOP DENSITY OTIMIZADO)
   ========================================================== */
.owner-main {
  padding-top: 18px;
  padding-bottom: 24px;
}

.owner-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}

.owner-heading h1 {
  font-size: 28px;
  margin-bottom: 2px;
}

.owner-heading p:last-child {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}

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

/* Seletor de Data Compacto */
.date-nav {
  min-height: 60px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  text-align: center;
  position: relative;
  gap: 8px;
}

.date-nav .date-arrow {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
}

.date-nav .date-arrow:hover {
  background: #2c271f;
}

.date-nav .date-display {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.date-nav .date-display:hover,
.date-nav .date-display[aria-expanded="true"] {
  background: #2c271f;
}

.date-nav .date-display strong {
  display: block;
  font-size: clamp(13px, 3.8vw, 15px);
  line-height: 1.3;
  word-break: break-word;
  max-width: 100%;
}

.date-nav .date-display span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3px;
}

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

.calendar-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  background: #24211c;
  border: 1px solid #746044;
  border-radius: 14px;
  box-shadow: 0 20px 50px #000c;
  text-align: left;
}

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

.calendar-header strong {
  font: 18px Georgia, serif;
  color: var(--ink);
  text-align: center;
}

.calendar-header button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #302a22;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}

.calendar-header button:hover {
  border-color: var(--gold);
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.calendar-weekdays {
  margin-bottom: 6px;
}

.calendar-weekdays span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  height: 20px;
}

.calendar-day {
  width: 100%;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  touch-action: manipulation;
  cursor: pointer;
}

.calendar-day:hover {
  border-color: var(--gold);
  background: #332b20;
}

.calendar-day.today {
  border-color: #746044;
  color: var(--gold);
}

.calendar-day.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #17130c;
}

.calendar-blank {
  height: 36px;
}

.calendar-footer {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.calendar-footer button {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 6px;
  border: 0;
  background: transparent;
}

.calendar-footer button:hover {
  background: #332b20;
}

/* ==========================================================
   NAVEGAÇÃO E CALENDÁRIO INLINE DO CLIENTE (MOBILE FIRST)
   ========================================================== */
.client-date-summary-bar {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  text-align: center;
  gap: 8px;
  margin-bottom: 12px;
}

.client-date-summary-bar .date-arrow {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.client-date-summary-bar .date-arrow:hover:not(:disabled) {
  background: #2c271f;
}

.client-date-summary-bar .date-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.client-date-display {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.client-date-display strong {
  display: block;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.3;
  word-break: break-word;
  max-width: 100%;
  color: var(--ink);
  text-transform: capitalize;
}

.client-date-display span {
  display: inline-block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.client-inline-calendar {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 16px;
  padding: 16px;
  background: #1e1b16;
  border: 1px solid #453a2d;
  border-radius: 14px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.client-inline-calendar .calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.client-inline-calendar .calendar-header strong {
  font: 18px Georgia, serif;
  color: var(--gold);
  text-align: center;
  text-transform: capitalize;
}

.client-inline-calendar .calendar-nav-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #2b251d;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.client-inline-calendar .calendar-nav-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: #393126;
}

.client-inline-calendar .calendar-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.client-inline-calendar .calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
  margin-bottom: 8px;
}

.client-inline-calendar .calendar-weekdays span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}

.client-inline-calendar .calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.client-inline-calendar .calendar-day {
  width: 100%;
  min-height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  touch-action: manipulation;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
  user-select: none;
  -webkit-user-select: none;
}

.client-inline-calendar .calendar-day:hover:not(:disabled) {
  border-color: var(--gold);
  background: #332b20;
}

.client-inline-calendar .calendar-day.today {
  border-color: #746044;
  color: var(--gold);
  font-weight: 700;
}

.client-inline-calendar .calendar-day.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #17130c;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.4);
}

.client-inline-calendar .calendar-day:disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}

.client-inline-calendar .calendar-blank {
  min-height: 42px;
}

.client-inline-calendar .calendar-footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 12px;
  padding-top: 10px;
}

.client-inline-calendar .calendar-today-btn {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #4a3e30;
  background: #27211a;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.client-inline-calendar .calendar-today-btn:hover {
  background: #382f24;
  border-color: var(--gold);
}

/* Métricas Compactas */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 18px;
}

.metric {
  min-height: 74px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.metric-highlight {
  background: #29241c;
}

.metric span {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.metric strong {
  display: block;
  font: 26px Georgia, serif;
  margin-top: 2px;
  line-height: 1.1;
}

.metric small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 1px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 19px;
}

.section-heading > span {
  color: var(--muted);
  font-size: 12px;
}

/* Grade de Horários Compacta (Visualização limpa sem necessidade de scroll gigante) */
.schedule {
  display: grid;
  gap: 6px;
}

.slot-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #191815;
}

.slot-row .slot-time {
  font-size: 15px;
  font-weight: 700;
}

.slot-row.free .slot-detail,
.slot-row.occupied .slot-detail,
.slot-row.break .slot-detail {
  color: #9e9992;
  font-size: 13px;
}

.slot-row.booked {
  min-height: 60px;
  background: #27231e;
  border-left: 4px solid var(--gold);
  padding: 9px 16px;
}

.slot-row.booked .slot-detail strong {
  display: block;
  font-size: 15px;
}

.slot-row.booked .slot-detail small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.whatsapp-button {
  padding: 7px 13px;
  border: 1px solid #397761;
  border-radius: 8px;
  background: #17392d;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.whatsapp-button:hover {
  background: #24513e;
}

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

.cancel-booking-btn {
  padding: 7px 11px;
  border: 1px solid #5a2e2e;
  border-radius: 8px;
  background: #2a1515;
  color: #ff9e9e;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-booking-btn:hover {
  background: #3d1c1c;
  border-color: #8b3c3c;
  color: #ffc4c4;
}

/* ==========================================================
   WIZARD CLIENTE COMPACTO
   ========================================================== */
.client-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 36px;
  padding-top: 24px;
  align-items: start;
}

.intro {
  padding: 12px 0;
  position: sticky;
  top: 16px;
}

.intro h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.intro > p:not(.eyebrow):not(.intro-detail):not(.intro-foot) {
  font-size: 16px;
  color: var(--muted);
  max-width: 400px;
}

.intro-rule {
  height: 1px;
  background: var(--line);
  max-width: 320px;
  margin: 28px 0 20px;
}

.intro-foot {
  color: var(--muted);
  margin-top: 36px;
  font-size: 13px;
}

.journey-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.journey-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #8e8980;
  font: 17px Georgia, serif;
  transition: color .2s ease, transform .2s ease;
}

.journey-list li span {
  font: 700 12px Arial, sans-serif;
  color: #8e8980;
  letter-spacing: .1em;
}

.journey-list li.current {
  color: var(--ink);
  transform: translateX(4px);
}

.journey-list li.current span,
.journey-list li.complete span {
  color: var(--gold);
}

.journey-list li.complete {
  color: #c5b8a5;
}

.booking-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: 0 16px 50px #0006;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.card-top h2 {
  font-size: 24px;
  margin-bottom: 0;
  outline: none;
}

.step-pill {
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 6px 10px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .12em;
}

.progress-track {
  height: 3px;
  background: #38342c;
  margin: 0 -30px 22px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--gold);
  transition: width .35s ease;
}

.step-intro {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 18px;
}

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

.service-option {
  position: relative;
  width: 100%;
  text-align: left;
  background: #24221f;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .15s, border-color .15s;
}

.service-option:hover,
.time-option:hover {
  border-color: var(--gold);
}

.service-option.selected,
.time-option.selected {
  border-color: var(--gold);
  background: #352b1d;
  box-shadow: inset 3px 0 var(--gold);
}

.service-option strong {
  display: block;
  font-size: 15px;
}

.service-option small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.service-option b {
  white-space: nowrap;
  color: var(--gold);
}

.client-date-nav {
  min-height: 60px;
  height: auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: #24221f;
}

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

.time-option {
  height: 42px;
  background: #24221f;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-summary-card {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid #625440;
  border-radius: 10px;
  background: #29241d;
}

.booking-summary-card span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.booking-summary-card p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 14px;
}

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

.step-actions .primary-button {
  flex: 1;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  position: relative;
}

.step-actions .primary-button span {
  position: absolute;
  right: 16px;
}

/* ==========================================================
   TELA DE LOGIN E CADASTRO
   ========================================================== */
.login-layout {
  display: flex;
  justify-content: center;
  padding-top: 26px;
  padding-bottom: 40px;
}

.login-card {
  width: 100%;
  max-width: 480px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 30px;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin: 18px 0 16px;
}

.tab-button {
  flex: 1;
  padding: 10px 8px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: all .18s;
  cursor: pointer;
}

.tab-button:hover {
  color: var(--ink);
}

.tab-button.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: #24211c;
  border-radius: 7px 7px 0 0;
}

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

.auth-text-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.auth-text-link:hover {
  opacity: 0.8;
}

.notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid var(--line);
}

.warning-banner {
  background: #252018;
  border-color: #785a28;
  color: #f7dfa5;
}

.banner-link-btn {
  background: #3a2e1d;
  color: var(--gold);
  border: 1px solid #785a28;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.banner-link-btn:hover {
  background: #4d3d27;
}

.header-tenant-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.btn-logout {
  border-color: #63332c !important;
  color: #f0a59c !important;
}

.btn-logout:hover {
  background: #3b1e1b !important;
  border-color: #f0a59c !important;
}

.demo-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.demo-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .12em;
}

.demo-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 10px;
}

.demo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-card-btn {
  padding: 10px 12px;
  background: #24211c;
  border: 1px solid #5a4b37;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  transition: all .18s;
  cursor: pointer;
}

.demo-card-btn:hover {
  border-color: var(--gold);
  background: #352c1e;
}

.demo-card-btn strong {
  display: block;
  font-size: 13px;
  color: var(--gold);
}

.demo-card-btn small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ==========================================================
   TELA DE VALORES E SERVIÇOS (IDENTIDADE BARBER ÁGIL)
   ========================================================== */
.services-main .owner-heading {
  margin-bottom: 24px;
}

.service-management {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  align-items: start;
  gap: 20px;
}

.service-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

.price-note {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 6px 0 18px;
}

.price-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.empty-services {
  padding: 24px 18px;
  background: #171614;
  border: 1px dashed var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Card individual de serviço */
.price-card,
.price-row {
  display: block;
  background: #171614;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.price-card:hover,
.price-row:hover {
  border-color: #554d40;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.service-card-header {
  margin-bottom: 14px;
}

.service-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.service-name {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-family: inherit;
  line-height: 1.25;
}

.service-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #252019;
  border: 1px solid #4d3e2b;
  color: var(--gold);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.service-duration-badge .badge-icon {
  font-size: 11px;
}

.service-desc {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Rodapé / Barra de Ações do Card */
.service-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid #24201b;
  flex-wrap: wrap;
}

.price-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.price-field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}

.price-control {
  display: inline-flex;
  align-items: center;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #1e1c18;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.price-control:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 166, 107, 0.2);
}

.price-control .price-step {
  width: 36px;
  height: 38px;
  border: 0;
  background: #28241e;
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.price-control .price-step:hover {
  background: #383228;
  color: #edd0a0;
}

.price-control .price-step:active {
  background: #4a3e2e;
}

.price-control input {
  width: 84px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 0;
  border-radius: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.price-control input::-webkit-outer-spin-button,
.price-control input::-webkit-inner-spin-button,
.money-input::-webkit-outer-spin-button,
.money-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.money-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.price-control input:focus {
  outline: none;
  box-shadow: none;
}

/* Modo de Edição Completa de Serviço */
.service-edit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.service-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 760px) {
  .service-edit-grid {
    grid-template-columns: 1fr;
  }
}

.service-edit-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.service-edit-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.service-edit-field input[type="text"] {
  height: 38px;
  padding: 0 12px;
  background: #171614;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.service-edit-field input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 166, 107, 0.2);
}

.service-edit-durations {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.service-edit-durations button {
  height: 32px;
  padding: 0 10px;
  background: #25221c;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s;
}

.service-edit-durations button:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.service-edit-durations button[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #12110f;
  font-weight: 700;
}

.edit-service-btn {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #28241e;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.edit-service-btn:hover {
  background: #383228;
  border-color: var(--gold);
  color: var(--gold);
}

.cancel-edit-btn {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.cancel-edit-btn:hover {
  color: var(--ink);
  border-color: var(--muted);
}

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

.save-price-btn,
.save-price {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #17130c;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.save-price-btn:hover,
.save-price:hover {
  background: #e0bb80;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 166, 107, 0.3);
}

.save-price-btn:active,
.save-price:active {
  transform: translateY(0);
}

.save-price-btn:disabled,
.save-price:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.delete-service-btn {
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(240, 165, 156, 0.35);
  border-radius: 8px;
  background: rgba(240, 165, 156, 0.08);
  color: var(--danger);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.delete-service-btn:hover {
  background: rgba(240, 165, 156, 0.18);
  border-color: var(--danger);
  color: #ffb8b0;
  transform: translateY(-1px);
}

.delete-service-btn:active {
  transform: translateY(0);
}

.delete-service-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.service-form-field {
  margin-bottom: 16px;
}

.duration-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.duration-choices button {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171614;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.duration-choices button:hover {
  border-color: var(--gold);
  background: #252019;
  color: #edd0a0;
}

.duration-choices button[aria-pressed="true"] {
  border-color: var(--gold);
  background: #352b1d;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* ==========================================================
   RESPONSIVIDADE MOBILE
   ========================================================== */
@media (max-width: 900px) {
  .client-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 16px;
  }
  .intro {
    position: static;
    padding: 0 0 10px;
  }
  .journey-list, .intro-rule, .intro-foot {
    display: none;
  }
  .service-management {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }
  .site-header {
    height: 56px;
  }
  .header-note {
    display: none;
  }
  .header-tenant-actions {
    gap: 5px;
  }
  .header-tenant-actions .outline-button,
  .header-tenant-actions .secondary-button {
    font-size: 11px;
    padding: 6px 9px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .metric:last-child {
    grid-column: 1 / -1;
  }
  .time-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .slot-row {
    grid-template-columns: 65px 1fr;
    gap: 8px;
  }
  .whatsapp-button {
    grid-column: 2;
    justify-self: start;
  }
  .demo-actions {
    grid-template-columns: 1fr;
  }
  .service-panel {
    padding: 18px 14px;
  }
  .price-card,
  .price-row {
    padding: 14px;
  }
  .service-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .price-input-group {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .service-actions,
  .price-row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .save-price-btn,
  .save-price,
  .delete-service-btn {
    width: 100%;
    text-align: center;
  }
  .client-inline-calendar {
    padding: 12px 6px;
    max-width: 100%;
    border-radius: 12px;
  }
  .client-inline-calendar .calendar-days {
    gap: 2px;
  }
  .client-inline-calendar .calendar-day {
    min-height: 40px;
    font-size: 14px;
    border-radius: 6px;
  }
  .client-inline-calendar .calendar-blank {
    min-height: 40px;
  }
  .client-inline-calendar .calendar-weekdays span {
    font-size: 10.5px;
  }
  .client-date-summary-bar {
    padding: 6px 8px;
  }
}

/* ==========================================================
   CHECKOUT E PAGAMENTO PIX (ASAAS)
   ========================================================== */
.payment-layout {
  padding-top: 24px;
  padding-bottom: 40px;
}

.payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}

.plan-card {
  padding: 28px 30px;
}

.plan-price {
  margin: 12px 0 6px;
  font-family: Georgia, serif;
}

.plan-price strong {
  font-size: 38px;
  color: var(--gold);
}

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

.plan-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.plan-features li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
}

.check-icon {
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}

.plan-guarantee {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.checkout-card {
  padding: 28px 30px;
}

.checkout-instruction {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0 16px;
}

.pix-loading-state {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #36322b;
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 1s linear infinite;
}

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

.qr-code-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0;
}

.qr-code-box {
  padding: 12px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 0 3px #3b3730, 0 12px 35px rgba(0,0,0,0.6);
  display: inline-block;
  transition: opacity .3s;
}

.qr-code-box img {
  display: block;
  max-width: 100%;
  height: auto;
}

.pix-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 50px;
  background: #24211c;
  border: 1px solid #4a3e2e;
  font-size: 13px;
  color: var(--gold);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.pix-copy-section {
  margin-top: 18px;
}

.pix-input-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
}

.test-sandbox-box {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ==========================================================
   BADGE DE ASSINATURA & BANNER DE COBRANÇA (IDENTIDADE BARBER ÁGIL)
   ========================================================== */
.sub-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
  transition: all .15s ease;
  user-select: none;
}

.sub-status-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Estado Ativo: Estilo Barber Ágil Premium (fundo escuro + borda dourada sutil + dot verde esmeralda) */
.sub-status-badge.active {
  background: #1c1a16;
  border: 1px solid rgba(212, 168, 83, 0.45);
  color: #f2e7d5;
}

.sub-status-badge.active .status-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* Estado Teste: Dourado / Âmbar */
.sub-status-badge.trial {
  background: #1c1a16;
  border: 1px solid #5e4d34;
  color: var(--gold);
}

.sub-status-badge.trial .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

/* Estado Vencido: Vinho / Rubi escuro */
.sub-status-badge.overdue {
  background: #231412;
  border: 1px solid #7c2d22;
  color: #fca5a5;
}

.sub-status-badge.overdue .status-dot {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

/* Botão Compacto de Pagamento no Header (substitui o primary-button gigante) */
.header-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #17130c;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
  border: 0;
  transition: background .15s;
}

.header-pay-btn:hover {
  background: #e0bb80;
}

.header-pay-btn[hidden] {
  display: none !important;
}

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

/* Banner de Alerta de Assinatura Vencida (Painel do Dono) */
.overdue-banner[hidden] {
  display: none !important;
}

.overdue-banner {
  background: #231412;
  border: 1px solid #632a24;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.overdue-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.overdue-icon {
  font-size: 24px;
  line-height: 1;
}

.overdue-content strong {
  display: block;
  color: #ff9d8f;
  font-size: 14px;
  margin-bottom: 2px;
}

.overdue-content p {
  color: #d1aba6;
  font-size: 13px;
  margin: 0;
}

.overdue-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  white-space: nowrap;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  background: #a93226;
  border: 1px solid #c0392b;
  color: #fff;
  transition: background .15s;
}

.overdue-pay-btn:hover {
  background: #c0392b;
}

@media (max-width: 768px) {
  .overdue-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .overdue-pay-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.slot-row.break { background: #24201a; }

/* Agenda de funcionamento */
.hours-layout { padding-block: 24px 40px; }
.hours-intro { max-width: 700px; color: var(--muted); }
.hours-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.hours-card { min-width: 0; }
.hours-card h2 { margin-bottom: 8px; }
.hours-card > p { color: var(--muted); font-size: 14px; }
.hours-form { display: grid; gap: 12px; }
.hours-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hours-fields > div { min-width: 0; }
.hours-form select, .hours-form input[type=time], .hours-form input[type=date] {
  width: 100%; min-width: 0; min-height: 44px; padding: 0 12px;
  color: var(--ink); background: #171614; border: 1px solid var(--line); border-radius: 9px;
}
.hours-form select:focus-visible, .hours-form input:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
/* Switch Toggle para Horários de Funcionamento */
.hours-open {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 0;
}

.hours-open input[type="checkbox"],
.notice-preference input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #23201a;
  border: 1px solid #4a4235;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: all 0.22s ease-in-out;
  flex-shrink: 0;
  margin: 0;
  display: inline-block;
}

.hours-open input[type="checkbox"]::after,
.notice-preference input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #736b5e;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s, box-shadow 0.22s;
}

.hours-open input[type="checkbox"]:hover,
.notice-preference input[type="checkbox"]:hover {
  border-color: var(--gold);
}

.hours-open input[type="checkbox"]:checked,
.notice-preference input[type="checkbox"]:checked {
  background: #2a2214;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201, 166, 107, 0.25);
}

.hours-open input[type="checkbox"]:checked::after,
.notice-preference input[type="checkbox"]:checked::after {
  transform: translateX(20px);
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 166, 107, 0.5);
}

.hours-open input[type="checkbox"]:focus-visible,
.notice-preference input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.hours-rule-list { display: grid; gap: 8px; margin: 16px 0 0; }
.hours-rule {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel2);
}
.hours-rule span { color: var(--muted); font-size: 13px; text-align: right; }
.hours-rule button { flex-shrink: 0; }

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

@media (max-width: 640px) {
  .site-header {
    height: auto; min-height: 56px; padding-block: 12px;
    flex-wrap: wrap; align-items: flex-start; gap: 12px;
  }
  .brand { min-width: 0; }
  .brand strong { overflow-wrap: anywhere; }
  .brand > span:last-child { min-width: 0; }
  .owner-page .header-tenant-actions {
    width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .owner-page .header-tenant-actions > * {
    min-width: 0; width: 100%; height: auto; min-height: 40px;
    justify-content: center; text-align: center; white-space: normal;
    font-size: 13px; padding: 8px;
  }
  .owner-heading { align-items: flex-start; flex-direction: column; }
  .owner-actions { width: 100%; flex-wrap: wrap; }
  .owner-actions > * { flex: 1 1 140px; text-align: center; justify-content: center; }
  .login-card, .booking-card, .plan-card, .checkout-card { padding: 20px 16px; min-width: 0; }
  .progress-track { margin-inline: -16px; }
  .service-panel { min-width: 0; padding: 20px 16px; }
  .price-row { grid-template-columns: minmax(0, 1fr); }
  .price-row label { min-width: 0; }
  .price-row .price-control { max-width: 220px; }
  .card-top { flex-wrap: wrap; }
  .auth-tabs { min-width: 0; }
  .tab-button { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
  .payment-page .site-header > a { max-width: 100%; }
  .pix-input-group { grid-template-columns: minmax(0, 1fr); }
  .pix-input-group input, .pix-input-group button { min-width: 0; width: 100%; }
  .qr-code-box { max-width: 100%; }
  .qr-code-box img { width: 220px; max-width: 100%; }
  .hours-fields { grid-template-columns: 1fr; }
  .hours-rule { align-items: flex-start; flex-wrap: wrap; }
  .hours-rule span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loading-spinner, .pulse-dot { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}


.error-page { min-height:100vh; display:grid; place-items:center; padding:24px; background:var(--bg,#12110f); color:var(--text,#f6f2eb); }
.error-card { width:min(100%,540px); padding:clamp(28px,6vw,56px); border:1px solid rgba(212,176,103,.3); border-radius:22px; background:var(--surface,#1d1b18); box-shadow:0 24px 80px rgba(0,0,0,.28); }
.error-brand { display:inline-flex; align-items:center; gap:12px; color:inherit; text-decoration:none; font-weight:700; margin-bottom:36px; }
.error-card h1 { font-size:clamp(2rem,6vw,3.2rem); line-height:1.1; margin:12px 0 18px; }
.error-card p:not(.eyebrow) { line-height:1.6; max-width:42ch; }
.error-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:30px; }
.error-actions a,.error-actions button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:10px 20px; }

/* Card de Preferência de Notificação WhatsApp */
.notice-preference {
  margin: 16px 0 24px;
  padding: 16px 20px;
  background: radial-gradient(ellipse at 5% 50%, rgba(201, 166, 107, 0.08) 0%, transparent 60%), #1a1814;
  border: 1px solid rgba(201, 166, 107, 0.3);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-preference-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notice-preference label {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
  cursor: pointer;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  user-select: none;
}

.notice-preference .notice-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.notice-preference .form-message {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: var(--muted);
}

.notice-preference .form-message.ok {
  color: var(--gold);
  font-weight: 600;
}
.demo-box[hidden] { display: none; }

.login-card h1 { font-size:24px; margin-bottom:0; }

.price-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.price-row > div:first-child strong, .price-row > div:first-child small { display: block; }
.price-row > div:first-child small { color: var(--muted); margin-top: 4px; line-height: 1.35; }
.price-row-actions { grid-column: 1 / -1; flex-wrap: wrap; }
.save-price {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  color: #171614;
  font-weight: 700;
  cursor: pointer;
}
.save-price:disabled { opacity: .55; cursor: not-allowed; }

/* ==========================================================
   TERMOS DE USO E POLÍTICA DE PRIVACIDADE (NAV-TERMS)
   ========================================================== */
.footer-link {
  color: var(--muted);
  text-decoration: underline;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--gold);
}

.terms-field {
  margin-top: 14px;
  margin-bottom: 14px;
  background: rgba(201, 166, 107, 0.05);
  border: 1px solid rgba(201, 166, 107, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
}

.terms-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.45;
}

.terms-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
  cursor: pointer;
}

.terms-checkbox-label a {
  color: var(--gold);
  text-decoration: underline;
}

.terms-checkbox-label a:hover {
  color: #fff;
}

.booking-terms-notice {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.booking-terms-notice a {
  color: var(--gold);
  text-decoration: underline;
}

.link-btn-text {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--gold);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
.link-btn-text:hover {
  color: #fff;
}

/* Bottom Sheet / Modal de Política de Agendamento */
.policy-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.policy-sheet-overlay[hidden] {
  display: none !important;
}

.policy-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.policy-sheet-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 641px) {
  .policy-sheet-overlay {
    align-items: center;
  }
  .policy-sheet-content {
    border-radius: 16px;
    animation: scaleModal 0.2s ease-out;
  }
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes scaleModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.policy-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.policy-sheet-header h3 {
  margin: 6px 0 0;
  font-size: 18px;
  color: var(--ink);
}

.policy-sheet-close-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.policy-sheet-close-btn:hover {
  color: #fff;
}

.policy-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.policy-item {
  background: var(--panel2);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 12px 14px;
}

.policy-item strong {
  display: block;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 4px;
}

.policy-item p {
  margin: 0;
  font-size: 13px;
  color: #ded9d0;
  line-height: 1.45;
}

.policy-sheet-footer {
  margin-top: 8px;
}

/* ==========================================================
   CHECKOUT PROFISSIONAL: BOX DE PLANOS E FORMAS DE PAGAMENTO
   ========================================================== */
.plan-select-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 22px;
}

.plan-option-card {
  position: relative;
  display: block;
  padding: 16px 18px;
  background: var(--panel2);
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.plan-option-card:hover {
  border-color: #5e4d34;
  background: #201c17;
}

.plan-option-card.selected {
  border-color: var(--gold);
  background: rgba(201, 166, 107, 0.08);
  box-shadow: 0 0 16px rgba(201, 166, 107, 0.12);
}

.plan-option-card.featured {
  border-color: #5e4d34;
}

.plan-option-card.featured.selected {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 166, 107, 0.2);
}

.plan-option-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--gold);
  color: #17130c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.plan-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.plan-option-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.plan-option-card.selected .plan-radio-circle {
  border-color: var(--gold);
}

.plan-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: none;
}

.plan-option-card.selected .plan-radio-dot {
  display: block;
}

.plan-option-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.plan-option-price {
  font-family: Georgia, serif;
  font-size: 17px;
  color: var(--gold);
  font-weight: 700;
}

.plan-option-price small {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  font-weight: normal;
}

.plan-option-sub {
  font-size: 12px;
  color: var(--muted);
  margin-left: 28px;
  line-height: 1.4;
}

.plan-option-savings {
  color: var(--green);
  font-weight: 600;
}

/* Abas de Método de Pagamento */
.payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.payment-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-tab-btn:hover {
  background: #25201a;
  color: var(--ink);
}

.payment-tab-btn.active {
  background: rgba(201, 166, 107, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

/* Formulário de Cartão de Crédito */
.card-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-brand-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}

.card-security-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.checkout-summary-badge {
  background: #1c1a16;
  border: 1px solid #4a3e2e;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-summary-plan {
  font-size: 13px;
  color: var(--ink);
}

.checkout-summary-price {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

/* ==========================================================
   MULTI-CADEIRAS: FILTROS DO DONO & MODAL
   ========================================================== */
.chair-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.chair-filters:empty {
  display: none;
}

.chair-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #1e1b17;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chair-filter-pill:hover {
  background: #28241e;
  color: var(--ink);
  border-color: #554838;
}

.chair-filter-pill.active {
  background: rgba(201, 166, 107, 0.16);
  border-color: var(--gold);
  color: var(--gold);
}

.chair-pill-count {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.chair-filter-pill.active .chair-pill-count {
  background: rgba(201, 166, 107, 0.25);
}

/* Modal Gerenciar Cadeiras */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  background: #191714;
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-header h3 {
  font-size: 20px;
  margin: 0;
}

.modal-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}

.close-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.chairs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 320px;
  margin-bottom: 18px;
  padding-right: 4px;
}

.chair-card-item {
  background: #211e19;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}

.chair-card-item.inactive {
  opacity: 0.6;
  border-style: dashed;
}

.chair-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chair-name-edit {
  flex: 1;
  background: #141311;
  border: 1px solid #332d25;
  color: var(--ink);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
}

.chair-name-edit:focus {
  border-color: var(--gold);
  outline: none;
}

.save-chair-btn {
  padding: 6px 12px;
  font-size: 12px;
}

.chair-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chair-status-info {
  font-size: 12px;
  color: var(--muted);
}

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

/* Switch iOS-style */
.chair-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
}

.chair-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.chair-slider {
  position: absolute;
  inset: 0;
  background-color: #3b352b;
  border-radius: 20px;
  transition: 0.3s;
}

.chair-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.chair-switch input:checked + .chair-slider {
  background-color: var(--green);
}

.chair-switch input:checked + .chair-slider:before {
  transform: translateX(16px);
}

.chair-switch-text {
  font-size: 12px;
  color: var(--muted);
}

.delete-chair-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  transition: transform 0.15s;
}

.delete-chair-icon-btn:hover {
  transform: scale(1.15);
}

.add-chair-form {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}

.add-chair-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.add-chair-input {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 44px;
  background: #141310 !important;
  color: #f5f0e6 !important;
  border: 1px solid #4a3e2e !important;
  border-radius: 9px;
  padding: 0 14px;
  font-size: 14px;
  box-sizing: border-box;
}

.add-chair-input::placeholder {
  color: #8e877c !important;
}

.add-chair-input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(201, 166, 107, 0.25) !important;
  outline: none;
}

.add-chair-submit-btn {
  width: auto !important;
  flex: 0 0 auto !important;
  min-width: 125px;
  height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center !important;
  white-space: nowrap;
  padding: 0 20px;
  cursor: pointer;
}

/* ==========================================================
   MULTI-CADEIRAS: SELETOR DE PROFISSIONAL NO CLIENTE
   ========================================================== */
.chair-selector-box {
  margin-bottom: 20px;
  padding: 14px;
  background: #1c1a17;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.chair-selector-box[hidden] {
  display: none;
}

.chair-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chair-pill {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #24201b;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chair-pill:hover {
  background: #2e2922;
  color: var(--ink);
  border-color: #554838;
}

.chair-pill.selected {
  background: rgba(201, 166, 107, 0.16);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

/* ==========================================================
   MULTI-SERVIÇOS (STUDIO & SALÃO)
   Permite selecionar múltiplos procedimentos somando tempo e preço
   ========================================================== */
.multi-service-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: rgba(var(--gold-rgb), 0.1);
  border: 1px solid var(--gold);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  animation: fadeIn 0.2s ease;
}

.multi-service-summary .pill-badge {
  background: var(--gold);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.service-option {
  cursor: pointer;
  user-select: none;
}

.service-option .service-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-right: 12px;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
  transition: all 0.15s ease;
}

.service-option.selected .service-check {
  border-color: var(--gold);
  background: var(--gold);
  color: #ffffff;
}

.service-option-content {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

/* ==========================================================
   TRAVA ANTI-NO-SHOW: CARD DE SINAL PIX NA CONFIRMAÇÃO
   ========================================================== */
.pix-deposit-card {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: rgba(var(--gold-rgb), 0.08);
  text-align: left;
}

.pix-deposit-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.pix-deposit-header .pix-badge-icon {
  font-size: 24px;
  line-height: 1;
}

.pix-deposit-header strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.pix-deposit-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.pix-key-box {
  display: flex;
  gap: 8px;
  margin: 12px 0 8px;
}

.pix-key-box input {
  font-family: monospace;
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 0 12px;
  height: 40px;
  flex: 1;
}

.pix-key-box button {
  height: 40px;
  padding: 0 16px;
  background: var(--gold);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.pix-key-box button:hover {
  opacity: 0.9;
}

.pix-subnote {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.4;
}

/* ==========================================================
   REFINAMENTO GLOBAL DO TEMA STUDIO (body.theme-studio)
   ========================================================== */
body.theme-studio {
  background: radial-gradient(ellipse at 80% -10%, #FBEAEF 0, transparent 48%), var(--bg);
  color: var(--ink);
}

body.theme-studio .site-header,
body.theme-studio .site-footer {
  border-color: var(--line);
  background: rgba(250, 247, 245, 0.85);
  backdrop-filter: blur(8px);
}

body.theme-studio .brand-mark {
  background: #FFF5F7;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px #FCE7EE, 0 4px 12px rgba(192, 38, 107, 0.15);
}

body.theme-studio input[type=date],
body.theme-studio input[type=text],
body.theme-studio input[type=tel],
body.theme-studio input[type=number],
body.theme-studio input[type=password],
body.theme-studio input[type=email] {
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--ink);
}

body.theme-studio input::placeholder {
  color: #B5A4A9;
}

body.theme-studio .booking-card,
body.theme-studio .wizard-card,
body.theme-studio .login-card,
body.theme-studio .owner-card,
body.theme-studio .dashboard-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(74, 43, 53, 0.05);
}

body.theme-studio .intro {
  color: var(--ink);
}

body.theme-studio .intro h1 {
  color: var(--ink);
}

body.theme-studio .journey-list li {
  color: var(--muted);
}

body.theme-studio .journey-list li.current {
  color: var(--gold);
}

body.theme-studio .journey-list li.complete {
  color: var(--ink);
}

body.theme-studio .service-option {
  background: #FFFFFF;
  border-color: var(--line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body.theme-studio .service-option:hover {
  border-color: var(--gold);
  background: #FFF9FA;
}

body.theme-studio .service-option.selected {
  border-color: var(--gold);
  background: #FFF0F5;
  box-shadow: inset 4px 0 var(--gold), 0 4px 12px rgba(192, 38, 107, 0.08);
}

body.theme-studio .service-option strong {
  color: var(--ink);
}

body.theme-studio .service-option b {
  color: var(--gold);
}

body.theme-studio .time-option {
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--ink);
}

body.theme-studio .time-option:hover {
  border-color: var(--gold);
  background: #FFF9FA;
}

body.theme-studio .time-option.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(192, 38, 107, 0.35);
}

body.theme-studio .client-date-summary-bar {
  background: var(--panel2);
  border-color: var(--line);
}

body.theme-studio .client-date-display strong {
  color: var(--ink);
}

body.theme-studio .client-inline-calendar {
  background: var(--panel);
  border-color: var(--line);
}

body.theme-studio .client-inline-calendar .calendar-day {
  color: var(--ink);
}

body.theme-studio .client-inline-calendar .calendar-day:hover:not(:disabled) {
  background: #FFF0F5;
  border-color: var(--gold);
}

body.theme-studio .client-inline-calendar .calendar-day.today {
  border-color: var(--gold);
  color: var(--gold);
}

body.theme-studio .client-inline-calendar .calendar-day.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(192, 38, 107, 0.35);
}

body.theme-studio .client-inline-calendar .calendar-today-btn {
  background: #FFF5F7;
  border-color: #F8D3DF;
  color: var(--gold);
}

body.theme-studio .primary-button {
  background: var(--gold);
  color: #FFFFFF;
}

body.theme-studio .primary-button:hover {
  background: var(--gold-hover);
}

body.theme-studio .secondary-button,
body.theme-studio .outline-button {
  border-color: var(--line);
  color: var(--ink);
  background: #FFFFFF;
}

body.theme-studio .secondary-button:hover,
body.theme-studio .outline-button:hover {
  background: var(--panel2);
  border-color: var(--gold);
}

body.theme-studio .chair-selector-box {
  background: var(--panel2);
  border-color: var(--line);
}

body.theme-studio .chair-pill {
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--ink);
}

body.theme-studio .chair-pill:hover {
  background: #FFF5F8;
  border-color: var(--gold);
}

body.theme-studio .chair-pill.selected {
  background: #FFF0F5;
  border-color: var(--gold);
  color: var(--gold);
}

body.theme-studio .booking-summary-card {
  background: #FFF5F8;
  border-color: #F8D3DF;
}

body.theme-studio .booking-summary-card p {
  color: var(--ink);
}

body.theme-studio .success-panel {
  background: #FFF5F8;
  border-color: #F3C4D4;
}

body.theme-studio .success-panel h2 {
  color: var(--ink);
}

body.theme-studio .date-nav {
  background: #FFFFFF;
  border-color: var(--line);
}

body.theme-studio .date-nav .date-display {
  color: var(--ink);
}

body.theme-studio .metric {
  background: #FFFFFF;
  border-color: var(--line);
}

body.theme-studio .metric strong {
  color: var(--ink);
}

body.theme-studio .metric-highlight {
  background: #FFF0F5;
  border-color: #F8D3DF;
}

body.theme-studio .slot-row {
  background: #FFFFFF;
  border-color: var(--line);
}

body.theme-studio .slot-time {
  color: var(--ink);
}

body.theme-studio .policy-sheet-content {
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--ink);
}

body.theme-studio .step-pill {
  background: #FFF0F5;
  color: var(--gold);
  border: 1px solid #F8D3DF;
}


/* ==========================================================
   PAINEL DA DONA DO STUDIO (body.theme-studio.owner-page)
   Componentes do painel que herdavam fundos escuros do tema
   Barber Ágil e ficavam com texto escuro sobre fundo escuro.
   ========================================================== */
body.theme-studio {
  scrollbar-color: #D9C6CC var(--bg);
}

body.theme-studio ::-webkit-scrollbar-track,
body.theme-studio ::-webkit-scrollbar-corner {
  background: var(--bg);
  border-left-color: var(--line);
}

body.theme-studio ::-webkit-scrollbar-thumb {
  background: #D9C6CC;
  border-color: var(--bg);
}

body.theme-studio ::selection {
  background: #F8D3DF;
  color: var(--ink);
}

body.theme-studio input,
body.theme-studio button {
  caret-color: var(--gold);
  accent-color: var(--gold);
}

body.theme-studio input:focus,
body.theme-studio input:focus-visible {
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.18);
}

body.theme-studio input::placeholder,
body.theme-studio .add-chair-input::placeholder {
  color: #8E7B81 !important;
}

.studio-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.theme-studio .brand-mark {
  color: var(--gold);
}

body.theme-studio .brand-mark .studio-icon {
  width: 22px;
  height: 22px;
}

/* O <p> global leva padding de 18/24px; no painel o espaçamento é explícito. */
body.theme-studio.owner-page main p {
  padding-block: 0;
}

/* Cabeçalho: badge de assinatura, pagamento e sair */
body.theme-studio .sub-status-badge.active {
  background: var(--green-soft);
  border: 1px solid #B6E2DB;
  color: var(--green);
}

body.theme-studio .sub-status-badge.active .status-dot {
  background: var(--green);
  box-shadow: none;
}

body.theme-studio .sub-status-badge.trial {
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  color: var(--warn);
}

body.theme-studio .sub-status-badge.trial .status-dot {
  background: #D99A20;
  box-shadow: none;
}

body.theme-studio .sub-status-badge.overdue {
  background: var(--danger-soft);
  border: 1px solid #F5C2CC;
  color: var(--danger);
}

body.theme-studio .sub-status-badge.overdue .status-dot {
  background: var(--danger);
  box-shadow: none;
}

body.theme-studio .sub-status-badge:hover {
  filter: brightness(0.97);
}

body.theme-studio .header-pay-btn {
  background: var(--gold);
  color: #FFFFFF;
}

body.theme-studio .header-pay-btn:hover {
  background: var(--gold-hover);
}

body.theme-studio .btn-logout {
  border-color: var(--line) !important;
  color: var(--danger) !important;
  background: #FFFFFF;
}

body.theme-studio .btn-logout:hover {
  background: var(--danger-soft) !important;
  border-color: #F5C2CC !important;
}

/* Banners */
body.theme-studio .warning-banner {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: #5C3D08;
}

body.theme-studio .warning-banner .studio-icon {
  color: var(--warn);
}

body.theme-studio .banner-copy,
body.theme-studio .banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.theme-studio .banner-feedback {
  font-size: 13px;
  color: var(--green);
}

body.theme-studio .banner-link-btn {
  min-height: 40px;
  background: #FFFFFF;
  color: var(--warn);
  border-color: var(--warn-line);
}

body.theme-studio .banner-link-btn:hover {
  background: #FFF1D6;
}

body.theme-studio .overdue-banner {
  background: var(--danger-soft);
  border-color: #F5C2CC;
}

body.theme-studio .overdue-icon {
  width: 24px;
  height: 24px;
  color: var(--danger);
}

body.theme-studio .overdue-content strong {
  color: #9F1239;
}

body.theme-studio .overdue-content p {
  color: #6B3A45;
  line-height: 1.45;
}

body.theme-studio .overdue-pay-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
}

body.theme-studio .overdue-pay-btn:hover {
  background: var(--gold-hover);
}

/* Preferência de aviso pelo WhatsApp */
body.theme-studio .notice-preference {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(74, 43, 53, 0.05);
}

body.theme-studio .notice-preference label {
  color: var(--ink);
}

body.theme-studio .notice-preference .notice-icon {
  width: 22px;
  height: 22px;
  color: var(--green);
}

body.theme-studio .notice-preference input[type="checkbox"],
body.theme-studio .settings-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 46px;
  height: 26px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 13px;
  background: #EADFE2;
  border: 1px solid #D5C3C9;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.theme-studio .notice-preference input[type="checkbox"]::after,
body.theme-studio .settings-toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(42, 33, 36, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-studio .notice-preference input[type="checkbox"]:checked,
body.theme-studio .settings-toggle input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: none;
}

body.theme-studio .notice-preference input[type="checkbox"]:checked::after,
body.theme-studio .settings-toggle input[type="checkbox"]:checked::after {
  transform: translateX(20px);
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(42, 33, 36, 0.3);
}

body.theme-studio .notice-preference input[type="checkbox"]:focus-visible,
body.theme-studio .settings-toggle input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.theme-studio .notice-preference .form-message:empty {
  display: none;
}

body.theme-studio .notice-preference .form-message.ok {
  color: var(--green);
}

/* Título e ações */
body.theme-studio .owner-heading {
  margin-top: 8px;
}

body.theme-studio .owner-heading h1 {
  margin-bottom: 6px;
}

body.theme-studio .owner-heading p:last-child {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

body.theme-studio .owner-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.theme-studio .owner-actions .outline-button,
body.theme-studio .owner-actions .secondary-button {
  min-height: 44px;
  height: auto;
}

body.theme-studio .owner-action-accent {
  border-color: var(--gold-line);
  color: var(--gold);
  background: var(--gold-soft);
}

body.theme-studio .owner-action-accent .studio-icon {
  width: 18px;
  height: 18px;
}

body.theme-studio .owner-action-accent:hover {
  border-color: var(--gold);
  background: #FFE4EE;
}

/* Navegação de data e calendário */
body.theme-studio .date-nav .date-arrow {
  width: 44px;
  height: 44px;
}

body.theme-studio .date-nav .date-arrow:hover,
body.theme-studio .date-nav .date-display:hover,
body.theme-studio .date-nav .date-display[aria-expanded="true"] {
  background: var(--gold-soft);
}

body.theme-studio .date-nav .date-display span {
  font-size: 12px;
}

body.theme-studio .calendar-popover {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: 0 18px 40px rgba(74, 43, 53, 0.16);
}

body.theme-studio .calendar-header button {
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--gold);
}

body.theme-studio .calendar-header button:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

body.theme-studio .calendar-weekdays span {
  font-size: 12px;
}

body.theme-studio .calendar-day {
  height: 40px;
}

body.theme-studio .calendar-day:hover {
  background: var(--gold-soft);
  border-color: var(--gold-line);
}

body.theme-studio .calendar-day.today {
  border-color: var(--gold-line);
  color: var(--gold);
}

body.theme-studio .calendar-day.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
}

body.theme-studio .calendar-footer button {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  opacity: 1;
}

body.theme-studio .calendar-footer button:hover {
  background: var(--gold-soft);
}

/* Resumo do dia */
body.theme-studio .metric span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.theme-studio .metric small {
  color: var(--muted);
  font-size: 12px;
}

body.theme-studio .metric strong {
  font-variant-numeric: tabular-nums;
}

/* Filtro por profissional */
body.theme-studio .chair-filter-pill {
  min-height: 40px;
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--ink);
}

body.theme-studio .chair-filter-pill:hover {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--ink);
}

body.theme-studio .chair-filter-pill.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-hover);
}

body.theme-studio .chair-filter-pill.inactive-pill {
  color: var(--muted);
  border-style: dashed;
}

/* Agenda */
body.theme-studio .section-heading {
  margin-top: 6px;
}

body.theme-studio .section-heading > span {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

body.theme-studio #day-message:empty {
  min-height: 0;
  margin: 0;
}

body.theme-studio .slot-row .slot-time {
  font-variant-numeric: tabular-nums;
}

body.theme-studio .slot-row.free .slot-detail,
body.theme-studio .slot-row.occupied .slot-detail,
body.theme-studio .slot-row.break .slot-detail {
  color: var(--muted);
}

body.theme-studio .slot-row.free {
  border-style: dashed;
}

body.theme-studio .slot-row.occupied,
body.theme-studio .slot-row.break {
  background: var(--panel2);
}

/* Agendado: fundo rosado e borda inteira, sem faixa lateral grossa */
body.theme-studio .slot-row.booked {
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-left-width: 1px;
}

body.theme-studio .slot-row.booked .slot-time {
  color: var(--gold-hover);
}

body.theme-studio .slot-row.booked .slot-detail strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

body.theme-studio .slot-row.booked .slot-detail small {
  color: #5E4A51;
  font-size: 13px;
  overflow-wrap: anywhere;
}

body.theme-studio .whatsapp-button,
body.theme-studio .cancel-booking-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
}

body.theme-studio .whatsapp-button {
  background: #FFFFFF;
  border-color: #9FD6CD;
  color: var(--green);
}

body.theme-studio .whatsapp-button:hover {
  background: var(--green-soft);
}

body.theme-studio .cancel-booking-btn {
  background: #FFFFFF;
  border-color: #F5C2CC;
  color: var(--danger);
}

body.theme-studio .cancel-booking-btn:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}

body.theme-studio .cancel-booking-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Modais */
body.theme-studio .modal-backdrop {
  background: rgba(42, 33, 36, 0.45);
}

body.theme-studio .modal-card {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 24px 48px rgba(74, 43, 53, 0.18);
}

body.theme-studio .modal-header h3 {
  color: var(--ink);
}

body.theme-studio .modal-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}

body.theme-studio .close-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

body.theme-studio .close-btn:hover {
  color: var(--ink);
  background: var(--panel2);
}

body.theme-studio .modal-card .form-message:empty {
  min-height: 0;
  margin: 0;
}

body.theme-studio .field-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

body.theme-studio .field-help {
  display: block;
  color: var(--muted);
}

body.theme-studio .chair-card-item {
  background: var(--panel2);
  border-color: var(--line);
}

body.theme-studio .chair-card-item.inactive {
  opacity: 1;
  background: var(--panel);
}

body.theme-studio .chair-card-item.inactive .chair-name-edit {
  color: var(--muted);
}

body.theme-studio .chair-name-edit {
  min-height: 40px;
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--ink);
}

body.theme-studio .chair-name-edit:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.18);
}

body.theme-studio .chair-slider {
  background-color: #D5C3C9;
}

body.theme-studio .chair-switch input:checked + .chair-slider {
  background-color: var(--gold);
}

body.theme-studio .chair-switch input:focus-visible + .chair-slider {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

body.theme-studio .delete-chair-icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--danger);
  border-radius: 8px;
}

body.theme-studio .delete-chair-icon-btn:hover {
  transform: none;
  background: var(--danger-soft);
}

body.theme-studio .add-chair-input {
  background: #FFFFFF !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

body.theme-studio .add-chair-input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.18) !important;
}

body.theme-studio .settings-form {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

body.theme-studio .settings-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}

body.theme-studio .settings-fields {
  display: grid;
  gap: 14px;
}

body.theme-studio .settings-submit {
  justify-content: center;
}

body.theme-studio .site-footer {
  color: var(--muted);
}

body.theme-studio .footer-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  body.theme-studio .owner-actions > * {
    flex: 1 1 calc(50% - 5px);
  }
  body.theme-studio .owner-actions > #today {
    flex-basis: 100%;
  }
  body.theme-studio .slot-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  body.theme-studio .slot-row .slot-actions {
    grid-column: 1 / -1;
  }
  body.theme-studio .slot-row .slot-actions > * {
    flex: 1 1 0;
    justify-content: center;
  }
  body.theme-studio .notice-preference-inner {
    align-items: flex-start;
  }
  body.theme-studio .notice-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  body.theme-studio .add-chair-row {
    flex-direction: column;
    align-items: stretch;
  }
  body.theme-studio .add-chair-submit-btn {
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-studio .notice-preference input[type="checkbox"]::after,
  body.theme-studio .settings-toggle input[type="checkbox"]::after {
    transition: none;
  }
}

/* Ajustes finos do painel do studio (verificação visual 375/768/1440) */
body.theme-studio .studio-icon.icon-sm {
  width: 16px;
  height: 16px;
}

body.theme-studio .brand small {
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

body.theme-studio.owner-page .header-tenant-actions > * {
  min-height: 40px;
}

body.theme-studio .sub-status-badge,
body.theme-studio .header-pay-btn {
  height: 40px;
}

body.theme-studio .notice-preference {
  margin-top: 4px;
}

body.theme-studio .date-nav .date-arrow .studio-icon,
body.theme-studio .calendar-header button .studio-icon {
  width: 22px;
  height: 22px;
}

body.theme-studio .calendar-header button {
  display: grid;
  place-items: center;
}

body.theme-studio .overdue-pay-btn .studio-icon {
  margin-left: 2px;
}

/* Título em cima, ações abaixo até haver largura para as cinco numa linha */
body.theme-studio .owner-heading {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

body.theme-studio .owner-actions {
  justify-content: flex-start;
}

@media (min-width: 1180px) {
  body.theme-studio .owner-heading {
    flex-direction: row;
    align-items: flex-end;
  }
  body.theme-studio .owner-heading > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }
  body.theme-studio .owner-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
}

body.theme-studio .owner-heading p:last-child {
  overflow-wrap: break-word;
}

body.theme-studio .metric span {
  font-size: 12px;
}

body.theme-studio .overdue-pay-btn {
  min-height: 44px;
}

/* Faixa intermediária (tablet e notebook estreito) */
@media (min-width: 641px) and (max-width: 1179px) {
  body.theme-studio.owner-page .site-header {
    height: auto;
    min-height: 64px;
    padding-block: 12px;
    flex-wrap: wrap;
    gap: 12px;
  }
  body.theme-studio.owner-page .header-tenant-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  body.theme-studio .owner-actions > * {
    flex: 1 1 auto;
  }
}

/* Encaixe rápido de cliente (painel do studio) */
body.theme-studio .manual-booking {
  margin: 0 0 22px;
  padding: 18px 20px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(74, 43, 53, 0.05);
}

body.theme-studio .manual-booking-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 14px;
}

body.theme-studio .manual-booking-head h2 {
  margin: 0;
  font-size: 19px;
}

body.theme-studio .manual-booking-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

body.theme-studio .manual-booking-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

body.theme-studio .manual-field {
  min-width: 0;
}

body.theme-studio .manual-field[hidden] {
  display: none;
}

body.theme-studio .field-optional {
  color: var(--muted);
  font-weight: 400;
}

body.theme-studio .manual-booking select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 12px;
  color: var(--ink);
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23735F66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 14px;
  text-overflow: ellipsis;
}

body.theme-studio .manual-booking select:focus,
body.theme-studio .manual-booking select:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.18);
}

body.theme-studio .manual-booking select:disabled,
body.theme-studio .manual-booking input:disabled {
  background-color: var(--panel2);
  color: var(--muted);
  cursor: not-allowed;
}

body.theme-studio .manual-submit-field .primary-button {
  min-height: 44px;
  justify-content: center;
}

body.theme-studio .manual-submit-field .primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.theme-studio .manual-booking .form-message:empty {
  min-height: 0;
  margin: 0;
}

body.theme-studio .manual-booking .form-message {
  margin-top: 10px;
}

@media (min-width: 1100px) {
  body.theme-studio .manual-booking-form {
    grid-template-columns: 124px minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto;
  }
  body.theme-studio .manual-booking-form:has(#manual-chair-group[hidden]) {
    grid-template-columns: 124px minmax(0, 1.6fr) minmax(0, 1.3fr) minmax(0, 1fr) auto;
  }
}

/* ==========================================================
   PÁGINAS DE CONFIGURAÇÃO DO STUDIO (procedimentos e horários)
   ========================================================== */
body.theme-studio.studio-settings p {
  padding-block: 0;
}

body.theme-studio .back-link {
  min-height: 40px;
  gap: 6px;
}

body.theme-studio.studio-settings .owner-heading p:last-child,
body.theme-studio .hours-intro {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
  max-width: 70ch;
}

body.theme-studio.studio-settings h1 {
  margin: 8px 0 8px;
}

/* Procedimentos */
body.theme-studio .service-panel {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: 0 6px 18px rgba(74, 43, 53, 0.05);
}

body.theme-studio .price-note {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 14px;
}

body.theme-studio .empty-services,
body.theme-studio .price-card,
body.theme-studio .price-row {
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--ink);
}

body.theme-studio .price-card:hover,
body.theme-studio .price-row:hover {
  border-color: var(--gold-line);
}

body.theme-studio .service-name {
  color: var(--ink);
}

body.theme-studio .service-desc {
  color: var(--muted);
}

body.theme-studio .service-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-hover);
}

body.theme-studio .service-card-footer {
  border-top-color: var(--line);
}

body.theme-studio .price-field-label {
  color: var(--ink);
  font-weight: 600;
}

body.theme-studio .price-control {
  background: #FFFFFF;
  border-color: var(--line);
}

body.theme-studio .price-control input {
  background: transparent !important;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

body.theme-studio .price-control .price-step {
  min-width: 40px;
  min-height: 40px;
  background: var(--panel2);
  color: var(--gold-hover);
  border-color: var(--line);
}

body.theme-studio .price-control .price-step:hover {
  background: var(--gold-soft);
  color: var(--gold-hover);
}

body.theme-studio .price-control .price-step:active {
  background: #FFE4EE;
}

body.theme-studio .edit-service-btn,
body.theme-studio .cancel-edit-btn {
  min-height: 40px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--ink);
}

body.theme-studio .edit-service-btn:hover,
body.theme-studio .cancel-edit-btn:hover {
  background: var(--panel2);
  border-color: var(--gold-line);
}

body.theme-studio .save-price-btn,
body.theme-studio .save-price {
  min-height: 40px;
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
}

body.theme-studio .save-price-btn:hover,
body.theme-studio .save-price:hover {
  background: var(--gold-hover);
}

body.theme-studio .delete-service-btn {
  min-height: 40px;
  border: 1px solid #F5C2CC;
  background: #FFFFFF;
  color: var(--danger);
}

body.theme-studio .delete-service-btn:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}

body.theme-studio .service-edit-field label {
  color: var(--ink);
  font-weight: 600;
}

body.theme-studio .service-edit-field input[type="text"] {
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--ink);
}

body.theme-studio .duration-choices button,
body.theme-studio .service-edit-durations button {
  min-height: 40px;
  background: #FFFFFF;
  border-color: var(--line);
  color: var(--ink);
}

body.theme-studio .duration-choices button:hover,
body.theme-studio .service-edit-durations button:hover {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--ink);
}

body.theme-studio .duration-choices button[aria-pressed="true"],
body.theme-studio .service-edit-durations button[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
}

body.theme-studio .add-service-panel .primary-button {
  justify-content: center;
}

/* Horários & Folgas */
body.theme-studio .hours-card > p {
  color: var(--muted);
}

body.theme-studio .hours-form select,
body.theme-studio .hours-form input[type=time],
body.theme-studio .hours-form input[type=date] {
  background-color: #FFFFFF;
  border-color: var(--line);
  color: var(--ink);
  color-scheme: light;
}

body.theme-studio .hours-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23735F66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
}

body.theme-studio .hours-form input:disabled {
  background: var(--panel2);
  color: var(--muted);
}

body.theme-studio .hours-form select:focus-visible,
body.theme-studio .hours-form input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.18);
}

body.theme-studio input[type=date]::-webkit-calendar-picker-indicator,
body.theme-studio input[type=time]::-webkit-calendar-picker-indicator {
  filter: none;
  opacity: 0.6;
}

body.theme-studio .hours-open {
  color: var(--ink);
}

body.theme-studio .hours-open input[type="checkbox"] {
  background: #EADFE2;
  border: 1px solid #D5C3C9;
  box-shadow: none;
}

body.theme-studio .hours-open input[type="checkbox"]::after {
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(42, 33, 36, 0.25);
}

body.theme-studio .hours-open input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: none;
}

body.theme-studio .hours-open input[type="checkbox"]:checked::after {
  background: #FFFFFF;
}

body.theme-studio .hours-open input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.theme-studio .hours-rule {
  background: var(--panel2);
  border-color: var(--line);
}

body.theme-studio .hours-rule strong {
  color: var(--ink);
}

body.theme-studio .hours-rule span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

body.theme-studio .hours-rule .secondary-button {
  min-height: 40px;
}

body.theme-studio .hours-form .primary-button {
  justify-content: center;
}

body.theme-studio .hours-form .form-message:empty,
body.theme-studio .add-service-panel .form-message:empty,
body.theme-studio .service-panel > .form-message:empty {
  min-height: 0;
  margin: 0;
}

/* ==========================================================
   SELEÇÃO DO STUDIO (studio-select.js): botão + lista própria
   ========================================================== */
.sselect {
  position: relative;
  width: 100%;
  min-width: 0;
}

.sselect-native {
  position: absolute !important;
  inset: auto;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(50%);
}

body.theme-studio .sselect-trigger {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.theme-studio .sselect-trigger:hover {
  border-color: var(--gold-line);
}

body.theme-studio .sselect-trigger:focus-visible,
body.theme-studio .sselect.is-open .sselect-trigger {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.18);
}

body.theme-studio .sselect-trigger.is-placeholder .sselect-value {
  color: var(--muted);
}

body.theme-studio .sselect-trigger:disabled {
  background: var(--panel2);
  color: var(--muted);
  cursor: not-allowed;
}

body.theme-studio .sselect-value {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.theme-studio .sselect-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-studio .sselect.is-open .sselect-chevron {
  transform: rotate(180deg);
  stroke: var(--gold);
}

body.theme-studio .sselect-list {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  max-height: 300px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(74, 43, 53, 0.16);
  outline: none;
  scrollbar-width: thin;
  animation: sselectIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-studio .sselect.opens-up .sselect-list {
  top: auto;
  bottom: calc(100% + 6px);
}

@keyframes sselectIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

body.theme-studio .sselect-option {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
}

body.theme-studio .sselect-option.is-placeholder {
  color: var(--muted);
}

body.theme-studio .sselect-option.is-active {
  background: var(--gold-soft);
}

body.theme-studio .sselect-option[aria-selected="true"] {
  color: var(--gold-hover);
  font-weight: 700;
}

body.theme-studio .sselect-option[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 11px;
  margin-top: -7px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

body.theme-studio .sselect-option[aria-disabled="true"] {
  color: #B5A4A9;
  cursor: not-allowed;
}

/* Lista de horários do encaixe em grade, como na página da cliente */
body.theme-studio #manual-time-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 4px;
  width: 260px;
}

body.theme-studio #manual-time-list .sselect-option {
  justify-content: center;
  padding: 8px 10px;
}

body.theme-studio #manual-time-list .sselect-option.is-placeholder {
  grid-column: 1 / -1;
}

body.theme-studio #manual-time-list .sselect-option[aria-selected="true"] {
  background: var(--gold);
  color: #FFFFFF;
}

body.theme-studio #manual-time-list .sselect-option[aria-selected="true"]::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-studio .sselect-list { animation: none; }
  body.theme-studio .sselect-chevron { transition: none; }
}

/* ==========================================================
   ASSINATURA / PAGAMENTO DO STUDIO (pagamento-studio.html)
   ========================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.theme-studio .checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

body.theme-studio .checkout-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(74, 43, 53, 0.05);
}

@media (min-width: 900px) {
  body.theme-studio .checkout-pay {
    position: sticky;
    top: 16px;
  }
}

body.theme-studio .checkout-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 20px;
}

body.theme-studio .checkout-step {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-hover);
  font: 700 13px Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body.theme-studio .plan-choices {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

body.theme-studio .plan-choices-list {
  display: grid;
  gap: 10px;
}

body.theme-studio .plan-choice {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.theme-studio .plan-choice:hover {
  border-color: var(--gold-line);
}

body.theme-studio .plan-choice:has(input:checked) {
  background: var(--gold-soft);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}

body.theme-studio .plan-choice:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

body.theme-studio .plan-choice input[type=radio] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border: 2px solid #CDB8BF;
  border-radius: 50%;
  background: #FFFFFF;
  display: grid;
  place-items: center;
}

body.theme-studio .plan-choice input[type=radio]::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-studio .plan-choice input[type=radio]:checked {
  border-color: var(--gold);
}

body.theme-studio .plan-choice input[type=radio]:checked::after {
  transform: scale(1);
}

body.theme-studio .plan-choice input[type=radio]:focus-visible {
  outline: none;
}

body.theme-studio .plan-choice-body {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

body.theme-studio .plan-choice-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}

body.theme-studio .plan-choice-name {
  font-size: 16px;
  color: var(--ink);
}

body.theme-studio .plan-choice-badge {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: #FFFFFF;
  color: var(--gold-hover);
  font-size: 12px;
  font-weight: 700;
}

body.theme-studio .plan-choice-badge.is-recommended {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
}

body.theme-studio .plan-choice-price strong {
  font: 24px Georgia, 'Times New Roman', serif;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

body.theme-studio .plan-choice-price small {
  color: var(--muted);
  font-size: 13px;
}

body.theme-studio .plan-choice-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

body.theme-studio .plan-features-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

body.theme-studio .plan-features-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

body.theme-studio .plan-feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.theme-studio .plan-feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

body.theme-studio .plan-feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

body.theme-studio .checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
}

body.theme-studio .checkout-summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.theme-studio .checkout-summary-label,
body.theme-studio .checkout-summary-note {
  color: #6B3A45;
  font-size: 12px;
}

body.theme-studio .checkout-summary strong {
  color: var(--ink);
}

body.theme-studio .checkout-summary-total {
  font: 22px Georgia, 'Times New Roman', serif;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

body.theme-studio .pay-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

body.theme-studio .pay-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

body.theme-studio .pay-tab:hover {
  color: var(--ink);
}

body.theme-studio .pay-tab.is-active {
  background: #FFFFFF;
  color: var(--gold-hover);
  box-shadow: 0 2px 6px rgba(74, 43, 53, 0.1);
}

body.theme-studio .pay-instruction {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}

body.theme-studio .pix-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 200px;
  color: var(--muted);
}

body.theme-studio .pix-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--gold-line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: pixSpin 0.8s linear infinite;
}

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

body.theme-studio .pix-qr {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  margin-bottom: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
}

body.theme-studio .pix-qr img {
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 8px;
}

body.theme-studio .pix-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--warn);
  font-size: 13px;
  font-weight: 700;
}

body.theme-studio .pix-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D99A20;
  animation: pixPulse 1.6s ease-in-out infinite;
}

body.theme-studio .pix-status.is-paid {
  color: var(--green);
}

body.theme-studio .pix-status.is-paid .pix-dot {
  background: var(--green);
  animation: none;
}

@keyframes pixPulse {
  50% { opacity: 0.35; }
}

body.theme-studio .pix-copy {
  display: flex;
  gap: 8px;
}

body.theme-studio .pix-copy input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--muted);
}

body.theme-studio .pix-copy .primary-button {
  width: auto;
  min-height: 44px;
  flex-shrink: 0;
  justify-content: center;
}

body.theme-studio .sandbox-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed var(--warn-line);
  border-radius: 12px;
  background: var(--warn-soft);
  color: #5C3D08;
  font-size: 13px;
}

body.theme-studio .sandbox-box p {
  margin: 4px 0 10px;
}

body.theme-studio .sandbox-box .outline-button {
  width: 100%;
  min-height: 40px;
}

body.theme-studio .pay-success {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--green-soft);
  border: 1px solid #B6E2DB;
  color: var(--green);
}

body.theme-studio .pay-success .studio-icon {
  width: 24px;
  height: 24px;
}

body.theme-studio .pay-success p {
  margin: 2px 0 0;
  color: #0B4F49;
  font-size: 14px;
}

body.theme-studio .card-form {
  display: grid;
  gap: 14px;
}

body.theme-studio .card-number-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

body.theme-studio .card-brand {
  color: var(--gold-hover);
  font-size: 12px;
  font-weight: 700;
}

body.theme-studio .card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.theme-studio .card-form .primary-button {
  justify-content: center;
  min-height: 48px;
}

body.theme-studio .card-form .form-message:empty {
  min-height: 0;
  margin: 0;
}

body.theme-studio .card-security {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 899px) {
  body.theme-studio .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body.theme-studio .checkout-panel {
    padding: 18px 16px;
  }
  body.theme-studio .pix-copy {
    flex-direction: column;
  }
  body.theme-studio .checkout-summary {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-studio .pix-dot,
  body.theme-studio .pix-spinner { animation-duration: 3s; }
}

body.theme-studio .sselect-option[hidden] {
  display: none;
}
