/* Extra CSS appended to app.css */
.btn-warning:hover { background: #d68910; color: #111; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--gray-light); }
.btn-outline:hover { background: var(--black-3); color: var(--white); }
.btn-sm { padding: 6px 12px; font-size: .8125rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 8px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .8125rem; font-weight: 600; color: var(--gray-light); margin-bottom: 6px; }
.form-control { width: 100%; background: var(--black-3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--white); font-size: .9375rem; padding: 10px 14px; transition: border-color .2s; }
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,.15); }
.form-control::placeholder { color: var(--gray); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-valid { border-color: var(--success); }
.form-text { font-size: .8rem; color: var(--gray-mid); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { padding: 12px 16px; text-align: left; font-size: .75rem; font-weight: 700; color: var(--gray-mid); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.table-actions { display: flex; gap: 6px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.badge-success  { background: rgba(39,174,96,.15);  color: #2ecc71; }
.badge-danger   { background: rgba(192,57,43,.15);  color: #e74c3c; }
.badge-warning  { background: rgba(243,156,18,.15); color: #f39c12; }
.badge-info     { background: rgba(41,128,185,.15); color: #3498db; }
.badge-dark     { background: rgba(255,255,255,.08); color: var(--gray-light); }
.badge-secondary{ background: rgba(255,255,255,.05); color: var(--gray-mid); }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: .875rem; border-left: 4px solid; }
.alert-success { background: rgba(39,174,96,.1); border-color: var(--success); color: #a0e8b8; }
.alert-danger   { background: rgba(192,57,43,.1); border-color: var(--danger); color: #f9b6b6; }
.alert-warning  { background: rgba(243,156,18,.1); border-color: var(--warning); color: #fde9b8; }
.alert-info     { background: rgba(41,128,185,.1); border-color: var(--info); color: #b8d6f9; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.active { display: flex; }
.modal { background: var(--black-2); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn .2s ease; }
@keyframes modalIn { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h4 { font-size: 1rem; font-weight: 700; margin: 0; }
.modal-close { background: none; border: none; color: var(--gray-mid); cursor: pointer; font-size: 1.25rem; padding: 4px; border-radius: 6px; transition: var(--transition); }
.modal-close:hover { background: var(--black-3); color: var(--white); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

.progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--red); border-radius: 4px; transition: width .4s ease; }
.progress-fill.success { background: var(--success); }
.progress-fill.warning { background: var(--warning); }

.avatar { border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 72px; height: 72px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn { padding: 10px 18px; background: none; border: none; color: var(--gray-mid); font-size: .875rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: var(--transition); white-space: nowrap; }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-btn:hover:not(.active) { color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.time-slot { padding: 10px; text-align: center; background: var(--black-3); border: 1px solid var(--border); border-radius: 8px; font-size: .875rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.time-slot:hover { border-color: var(--red); color: var(--red); }
.time-slot.selected { background: var(--red); color: #fff; border-color: var(--red); }
.time-slot.unavailable { opacity: .3; cursor: not-allowed; pointer-events: none; }
.booking-days {
  display: grid;
  gap: 18px;
}
.booking-day {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  padding: 16px;
}
.booking-day-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.booking-day-title span {
  color: var(--gray-mid);
  font-size: .85rem;
}
.time-slot-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.time-slot-choice span {
  display: block;
  padding: 10px;
  text-align: center;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}
.time-slot-choice input:checked + span {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.booking-steps { display: flex; align-items: center; margin-bottom: 32px; }
.step-item { display: flex; align-items: center; flex: 1; }
.step-circle { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 700; flex-shrink: 0; transition: var(--transition); }
.step-item.done .step-circle { background: var(--success); border-color: var(--success); color: #fff; }
.step-item.active .step-circle { background: var(--red); border-color: var(--red); color: #fff; }
.step-label { font-size: .75rem; color: var(--gray-mid); margin-top: 4px; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px; }
.step-line.done { background: var(--success); }

.public-body { background: var(--black); color: var(--white); }
.navbar { position: sticky; top: 0; z-index: 200; background: rgba(17,17,17,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { font-size: 1.25rem; font-weight: 800; color: var(--white); display: flex; align-items: center; gap: 10px; }
.navbar-brand span { color: var(--red); }
.navbar-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { color: var(--gray-light); font-size: .875rem; font-weight: 500; padding: 6px 12px; border-radius: 6px; transition: var(--transition); }
.nav-link:hover { color: var(--white); background: var(--black-3); }

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--black); padding: 20px; }
.auth-card { background: var(--black-2); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 440px; overflow: hidden; box-shadow: var(--shadow-lg); }
.auth-card-header { background: var(--red); padding: 32px; text-align: center; }
.auth-card-header .logo { font-size: 1.5rem; font-weight: 900; letter-spacing: .5px; }
.auth-card-header p { font-size: .875rem; opacity: .85; margin: 6px 0 0; }
.auth-card-body { padding: 32px; }
.auth-links { display: flex; justify-content: space-between; font-size: .8125rem; margin-top: 16px; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p { font-size: .875rem; color: var(--gray-mid); max-width: 300px; margin: 0 auto 20px; }

.toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track { width: 44px; height: 24px; background: var(--gray-dark); border-radius: 12px; transition: background .2s; position: relative; }
.toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s; }
.toggle input:checked + .toggle-track { background: var(--red); }
.toggle input:checked + .toggle-track::after { transform: translateX(20px); }
.toggle-label { margin-left: 10px; font-size: .875rem; }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: var(--black-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; min-width: 280px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); pointer-events: all; animation: toastIn .3s ease; border-left: 4px solid; }
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info    { border-left-color: var(--info); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.fab { position: fixed; bottom: 24px; right: 24px; background: var(--red); color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow-lg); cursor: pointer; border: none; z-index: 200; transition: var(--transition); }
.fab:hover { background: var(--red-dark); transform: scale(1.1); }

.text-red { color: var(--red) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger  { color: var(--danger) !important; }
.text-muted   { color: var(--gray-mid) !important; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-sm      { font-size: .8125rem; }
.text-xs      { font-size: .75rem; }
.fw-bold      { font-weight: 700; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.table-responsive,
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}
.grid {
  display: grid;
  gap: 18px;
}
.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 90;
  display: none;
}
.sidebar-backdrop.active { display: block; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  color: var(--red-light);
  font-size: 1rem;
  flex: 0 0 auto;
}
.navbar {
  padding: 0 clamp(16px, 4vw, 40px);
}
.navbar-brand span:last-child {
  color: var(--red-light);
}
.public-section {
  padding: 44px 0;
}
.section-eyebrow {
  color: var(--red-light);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 54px;
  background:
    linear-gradient(90deg, rgba(17,17,17,.98) 0%, rgba(17,17,17,.88) 42%, rgba(17,17,17,.72) 100%),
    url("/public/assets/img/hero-index.jpg") center/cover no-repeat;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 42px;
  align-items: center;
}
.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.03;
  margin-bottom: 18px;
}
.hero-copy p:not(.section-eyebrow) {
  max-width: 640px;
  color: #d9d9d9;
  font-size: 1.08rem;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-panel {
  background: linear-gradient(180deg, rgba(36,36,36,.94), rgba(20,20,20,.96));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
  padding: 22px;
}
.hero-panel-header,
.hero-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--gray-light);
}
.hero-panel-header strong,
.hero-panel-footer strong {
  color: var(--white);
}
.schedule-preview {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}
.schedule-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
}
.schedule-row span {
  color: var(--red-light);
  font-weight: 800;
}
.schedule-row strong {
  font-size: .94rem;
}
.schedule-row em {
  color: var(--gray-mid);
  font-size: .78rem;
  font-style: normal;
}
.schedule-row.is-active {
  border-color: color-mix(in srgb, var(--red) 58%, transparent);
  background: color-mix(in srgb, var(--red) 12%, transparent);
}
.schedule-row.is-done em {
  color: #5ee08a;
}
.hero-panel-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.metric-card {
  min-height: 110px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
}
.metric-card strong {
  display: block;
  color: var(--red-light);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}
.metric-card span {
  color: var(--gray-light);
  font-size: .88rem;
}
.features-section,
.steps-section,
.plans-section,
.cta-section {
  padding: 74px 0;
}
.features-section {
  background: var(--black);
}
.features-section h2,
.steps-section h2,
.plans-section h2,
.cta-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  margin-bottom: 12px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.feature-card,
.step-card,
.plan-card {
  border: 1px solid var(--border);
  background: var(--black-2);
  border-radius: var(--radius);
}
.feature-card {
  min-height: 220px;
  padding: 24px;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 900;
  margin-bottom: 20px;
}
.feature-card h3,
.step-card h3 {
  margin-bottom: 10px;
}
.feature-card p,
.step-card p {
  margin: 0;
  color: var(--gray-light);
}
.steps-section {
  background: var(--black-2);
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.step-card {
  min-height: 190px;
  padding: 24px;
}
.step-card span {
  color: var(--red-light);
  display: inline-flex;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 34px;
}
.plans-section {
  background: var(--black);
}
.plans-subtitle {
  color: var(--gray-light);
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-top: 30px;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
}
.plan-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 40%, transparent), 0 22px 64px rgba(0,0,0,.28);
}
.plan-badge {
  align-self: flex-start;
  min-height: 27px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.plan-badge-placeholder {
  visibility: hidden;
}
.plan-name {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
}
.plan-price {
  color: var(--white);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  margin: 18px 0 14px;
}
.plan-price sup,
.plan-price sub {
  color: var(--gray-light);
  font-size: .85rem;
  font-weight: 700;
}
.plan-desc {
  min-height: 70px;
  color: var(--gray-light);
}
.plan-features {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 28px;
}
.plan-features li {
  position: relative;
  padding-left: 24px;
  color: var(--gray-light);
  font-size: .92rem;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}
.plan-card .btn {
  margin-top: auto;
}
.cta-section {
  background: linear-gradient(135deg, color-mix(in srgb, var(--red) 18%, #111), #111);
  text-align: center;
}
.cta-section p {
  max-width: 660px;
  margin: 0 auto 24px;
}
.public-footer {
  padding: 44px 0 24px;
  background: #0d0d0d;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 28px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.footer-brand p {
  max-width: 360px;
}
.footer-col {
  display: grid;
  align-content: start;
  gap: 8px;
}
.footer-col h4 {
  margin-bottom: 4px;
}
.footer-col a {
  color: var(--gray-light);
}
.footer-col a:hover {
  color: var(--red-light);
}
.footer-bottom {
  color: var(--gray-mid);
  font-size: .82rem;
  padding-top: 22px;
  margin-top: 26px;
  border-top: 1px solid var(--border);
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr);
  gap: 22px;
  align-items: start;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr);
  gap: 20px;
  align-items: start;
}
.dashboard-stack {
  display: grid;
  gap: 18px;
}
.chart-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 190px;
  padding-top: 18px;
}
.chart-bar {
  display: grid;
  gap: 8px;
  align-items: end;
  text-align: center;
  color: var(--gray-mid);
  font-size: .75rem;
}
.chart-bar-fill {
  width: 100%;
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--red-light), var(--red));
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.finance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.finance-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.finance-card span {
  display: block;
  color: var(--gray-mid);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.finance-card strong {
  font-size: 1.45rem;
}
.finance-card small {
  display: block;
  color: var(--gray-mid);
  margin-top: 4px;
}
.filters-bar {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}
.filters-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255,255,255,.06);
  color: var(--gray-light);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.appointment-board {
  display: grid;
  gap: 12px;
}
.appointment-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--black-2);
  padding: 14px;
}
.appointment-time {
  color: var(--red-light);
  font-weight: 900;
}
.appointment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--gray-mid);
  font-size: .8rem;
}
.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.appointment-card-wide {
  grid-template-columns: 120px minmax(0, 1fr) minmax(220px, auto);
}
.inline-status-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-status-form .form-control {
  min-width: 150px;
  padding: 7px 10px;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  color: var(--gray-mid);
  font-size: .78rem;
  text-align: center;
  text-transform: uppercase;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.calendar-day {
  display: grid;
  gap: 5px;
  color: var(--gray-light);
  min-height: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--black-2);
  padding: 10px;
}
.calendar-day:hover {
  color: var(--white);
  border-color: var(--red);
  background: var(--black-3);
}
.calendar-day small {
  color: var(--gray-mid);
}
.calendar-day-muted {
  opacity: .35;
  pointer-events: none;
}
.calendar-day strong {
  color: var(--white);
}
.calendar-day.today {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.calendar-dot {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(255,255,255,.08);
  color: var(--gray-light);
  font-size: .72rem;
}
.settings-stack {
  display: grid;
  gap: 18px;
}
.settings-preview {
  position: sticky;
  top: 86px;
}
.brand-preview {
  padding: 22px;
  background: linear-gradient(160deg, var(--black-2), var(--black));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.brand-preview-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.color-swatch {
  width: 100%;
  height: 72px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--red);
  margin-top: 12px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.inline-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  padding: 16px;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.check-grid label,
.toggle-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-light);
  font-size: .9rem;
}
.hours-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 160px;
  gap: 16px;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255,255,255,.02);
}
.table-actions form,
.appointment-actions form {
  margin: 0;
}
.suspended-screen {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.suspended-panel {
  max-width: 560px;
  width: 100%;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}
.suspended-panel h1 {
  margin: 18px 0 10px;
}

.app-public {
  min-height: calc(100vh - 64px);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 34%),
    var(--black);
}
.client-app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 280px;
  gap: 30px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  margin-bottom: 30px;
}
.client-app-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 10px;
}
.app-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.app-action {
  min-height: 88px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--black-2);
  color: var(--white);
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}
.app-action.primary,
.app-action:hover {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 22%, var(--black-2));
  color: var(--white);
}
.app-action span {
  color: var(--gray-mid);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.app-action strong {
  font-size: 1.05rem;
}
.client-phone-preview {
  width: 240px;
  justify-self: end;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background: #090909;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
}
.phone-top {
  width: 74px;
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  margin: 0 auto 20px;
}
.phone-title {
  color: var(--gray-light);
  font-size: .82rem;
  margin-bottom: 10px;
}
.phone-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--black-2);
  padding: 16px;
}
.phone-card span {
  color: var(--red-light);
  font-weight: 800;
}
.phone-card em {
  color: var(--success);
  font-style: normal;
  font-size: .78rem;
}
.phone-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.phone-buttons span {
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}
.service-app-card {
  min-height: 230px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--black-2);
  color: var(--white);
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 12px;
  transition: var(--transition);
}
.service-app-card:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  color: var(--white);
}
.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.service-app-card p {
  min-height: 48px;
  margin: 0;
}
.service-app-card div:last-child {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  color: var(--gray-light);
}
.app-panel {
  border-radius: var(--radius);
}
.compact-summary {
  grid-template-columns: 1fr;
}
.client-mini-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding: 12px;
}
.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.client-mini-profile span {
  display: block;
  color: var(--gray-mid);
  font-size: .82rem;
}
.client-app-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.next-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--red) 45%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--red) 14%, var(--black-2));
  padding: 20px;
  margin-bottom: 20px;
}
.next-reminder span {
  color: var(--red-light);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.notification-list {
  display: grid;
  gap: 10px;
}
.notification-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  padding: 14px;
}
.notification-item.unread {
  border-color: var(--red);
}
.notification-item p {
  margin: 4px 0;
}
.notification-item span {
  color: var(--gray-mid);
  font-size: .75rem;
}
.compact-hours-card .card-body {
  padding: 16px;
}
.compact-hours-grid {
  display: grid;
  gap: 10px;
}
.compact-hours-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  padding: 10px;
}
.day-toggle {
  margin: 0;
}
.hours-mini-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 10px;
}
.hours-mini-fields label {
  display: grid;
  gap: 4px;
}
.hours-mini-fields span {
  color: var(--gray-mid);
  font-size: .72rem;
  font-weight: 700;
}
.compact-time {
  min-height: 36px;
  padding: 7px 9px;
  font-size: .85rem;
}
.barbershop-site {
  background: var(--black);
  color: var(--white);
}
.shop-hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: stretch;
  background: var(--public-hero) center/cover no-repeat;
}
.shop-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.66) 52%, rgba(0,0,0,.42) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 28%);
}
.shop-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  padding-top: 22px;
  padding-bottom: 52px;
}
.shop-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: clamp(70px, 12vh, 120px);
}
.shop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.1rem;
}
.shop-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}
.shop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shop-nav a {
  color: var(--gray-light);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: .85rem;
}
.shop-nav a:hover {
  color: var(--white);
  border-color: var(--red);
}
.shop-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: end;
}
.shop-hero h1 {
  max-width: 760px;
  font-size: clamp(2.3rem, 5.2vw, 5rem);
  line-height: 1.02;
  margin-bottom: 18px;
}
.shop-hero p {
  max-width: 650px;
  color: #e7e7e7;
  font-size: 1.08rem;
}
.shop-app-card,
.shop-contact-panel,
.team-public-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: rgba(18,18,18,.84);
  backdrop-filter: blur(10px);
}
.shop-app-card {
  padding: 24px;
}
.shop-app-card > span {
  color: var(--red-light);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}
.app-action-grid.mini {
  grid-template-columns: 1fr 1fr;
}
.shop-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.shop-contact-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.shop-contact-panel span {
  color: var(--gray-mid);
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.shop-services-section {
  background: var(--black-2);
}
.team-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.team-public-card {
  padding: 18px;
}
.team-public-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.team-public-card p {
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 16px; }
  .page-content { padding: 16px; }
  .hero-grid,
  .dashboard-grid,
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .features-grid,
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .step-grid,
  .metric-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-preview {
    position: static;
  }
  .filters-form {
    grid-template-columns: 1fr 1fr;
  }
  .hours-row {
    grid-template-columns: 1fr;
  }
  .client-app-hero {
    grid-template-columns: 1fr;
  }
  .client-phone-preview {
    justify-self: start;
  }
  .app-action-grid,
  .hours-mini-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compact-hours-row,
  .client-app-header {
    grid-template-columns: 1fr;
    display: grid;
  }
  .shop-hero-grid,
  .shop-info-grid {
    grid-template-columns: 1fr;
  }
  .shop-app-card {
    max-width: 460px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .navbar {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .navbar-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-copy h1 {
    font-size: 2.05rem;
  }
  .schedule-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .features-grid,
  .plans-grid,
  .step-grid,
  .metric-grid,
  .footer-grid,
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
  .page-header,
  .appointment-card,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .appointment-card {
    display: flex;
  }
  .appointment-actions {
    justify-content: flex-start;
  }
  .filters-form {
    grid-template-columns: 1fr;
  }
  .filter-actions,
  .inline-status-form {
    align-items: stretch;
    flex-direction: column;
  }
  .modal { margin: 10px; }
  .table th, .table td { padding: 10px 12px; }
  .app-action-grid,
  .hours-mini-fields {
    grid-template-columns: 1fr;
  }
  .client-app-hero {
    padding: 22px;
  }
  .shop-hero {
    min-height: auto;
  }
  .shop-topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 60px;
  }
}
