/* main.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --bg: #0d0d0d;
  --bg2: #161616;
  --bg3: #1e1e1e;
  --surface: #242424;
  --surface2: #2e2e2e;
  --border: #2e2e2e;
  --gold: #c9a84c;
  --amber: #e8a020;
  --gold2: #e8c97a;
  --gold-dim: rgba(201, 168, 76, 0.12);

  --gold-rgb: 201, 168, 76;

  --gold-10: rgba(201, 168, 76, 0.10);
  --gold-05: rgba(201, 168, 76, 0.05);
  --gold-08: rgba(201, 168, 76, 0.08);
  --gold-15: rgba(201, 168, 76, 0.15);
  --gold-25: rgba(201, 168, 76, 0.25);
  --gold-30: rgba(201, 168, 76, 0.30);
  --gold-40: rgba(201, 168, 76, 0.40);

  --text: #f0ede8;
  --text2: #a09a90;
  --text3: #6b6560;
  --red: #e05252;
  --green: #4caf7d;
  --blue: #5b9be8;

  --divider: rgba(255, 255, 255, 0.1);
  --radius: 12px;
}

/*:root {
  --bg: #f2f4f3;
  --bg2: #e8edec;
  --bg3: #dde5e3;

  --surface: #ffffff;
  --surface2: #f6f8f7;

  --border: #d4dddb;

  --gold: #6f9c98;
  --gold2: #8fb7b3;
  --gold-dim: rgba(111, 156, 152, 0.12);

  --gold-rgb: 111, 156, 152;

  --gold-10: rgba(111, 156, 152, 0.10);
  --gold-05: rgba(111, 156, 152, 0.05);
  --gold-08: rgba(111, 156, 152, 0.08);
  --gold-15: rgba(111, 156, 152, 0.15);
  --gold-30: rgba(111, 156, 152, 0.30);
  --gold-40: rgba(111, 156, 152, 0.40);

  --text: #3f5f5c;
  --text2: #6f8f8c;
  --text3: #9fb5b2;

  --red: #c96a78;
  --green: #6f9c98;
  --blue: #7fa8c7;

  --divider: var(--gold);
  --radius: 16px;
}*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--gold2);
}

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  margin-bottom: -80px;
  flex: 1;
}

.page {
  padding: 48px 0;
}

/* ─── Hero scroll hint ────────────────────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--gold-30);
  border-radius: 50%;
  color: var(--gold);
  animation: heroScrollBounce 2s ease-in-out infinite;
  transition: border-color .2s, background .2s;
  z-index: 2;
}

.hero-scroll-hint:hover {
  background: var(--gold-10);
  border-color: var(--gold);
  color: var(--gold);
}

.hero-scroll-hint svg {
  width: 18px;
  height: 18px;
}

@keyframes heroScrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ─── Hour open badges ────────────────────────────────────────────────────── */
.hour-open-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 8px;
  vertical-align: middle;
}

.hour-badge-open {
  background: rgba(76, 175, 125, .15);
  color: var(--green);
  border: 1px solid rgba(76, 175, 125, .3);
}

.hour-badge-closed {
  background: rgba(224, 82, 82, .10);
  color: var(--red);
  border: 1px solid rgba(224, 82, 82, .25);
}

.hour-badge-soon {
  background: var(--gold-10);
  color: var(--gold);
  border: 1px solid var(--gold-30);
}

.hour-card.is-open-now {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 1px rgba(76, 175, 125, .2);
}

/* ─── Swipe hint ──────────────────────────────────────────────────────────── */
.slider-swipe-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
  margin-top: 10px;
  transition: opacity .3s;
}

@media (max-width: 640px) {
  .slider-swipe-hint {
    display: flex;
    justify-content: center;
  }
}

/* ─── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg2);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text) !important;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}

.brand-name {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text2);
  font-weight: 500;
  font-size: 14px;
  transition: color .2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.nav-cta {
  padding: 8px 18px !important;
  font-size: 13px !important;
}

.nav-username {
  font-size: 13px;
  color: var(--text3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  margin-top: auto;
  position: relative;
}

.footer-gold-bar {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-body {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .01em;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
  max-width: 220px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text2);
  margin-bottom: 4px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text3);
  transition: color .2s;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text3);
}

.footer-made {
  font-size: 12px;
  color: var(--text3);
}

/* Footer – mobile */
@media (max-width: 640px) {
  .footer-body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0 28px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .footer-nav {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 16px 0;
  }
}


/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  font-family: 'Barlow', sans-serif;
}

.btn-primary {
  background: var(--gold);
  color: #0d0d0d;
}

.btn-primary:hover {
  background: var(--gold2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--gold-30);
  color: #0d0d0d;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold-dim);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface2);
  color: var(--text);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(1.1);
}

.btn-success {
  background: var(--green);
  color: #fff;
}

.btn-success:hover {
  filter: brightness(1.1);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 15px;
}

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text2);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  transition: border-color .2s;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
}

.form-control::placeholder {
  color: var(--text3);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

select.form-control {
  cursor: pointer;
}

/* Password toggle */
.input-pw {
  position: relative;
}

.input-pw .form-control {
  padding-right: 42px;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text3);
  padding: 4px;
  transition: color .2s;
}

.pw-toggle:hover {
  color: var(--text);
}

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ─── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.badge-pending_payment-bd {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  transition: 0.2s;
}

.badge-pending_payment-bd::after {
  content: "⏵";
  /* seta indicando ação */
  opacity: 0.8;
}

.badge-confirmed {
  background: rgba(91, 155, 232, .15);
  color: var(--blue);
}

.badge-pending {
  background: var(--gold-15);
  color: var(--gold);
}

.badge-pending_payment {
  background: rgba(245, 158, 11, 0.12);
  ;
  color: #b45309;
}

.badge-completed {
  background: rgba(76, 175, 125, .15);
  color: var(--green);
}

.badge-cancelled {
  background: rgba(224, 82, 82, .15);
  color: var(--red);
}

.badge-no_show {
  background: rgba(107, 101, 96, .15);
  color: var(--text3);
}

/* ─── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-error {
  background: rgba(224, 82, 82, .1);
  border: 1px solid rgba(224, 82, 82, .3);
  color: #f59292;
}

.alert-success {
  background: rgba(76, 175, 125, .1);
  border: 1px solid rgba(76, 175, 125, .3);
  color: #7dd9a8;
}

/* ─── Toast ───────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  max-width: 320px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.toast-error {
  border-color: rgba(224, 82, 82, .4);
  color: #f59292;
}

.toast.toast-success {
  border-color: rgba(76, 175, 125, .4);
  color: #7dd9a8;
}

/* ─── Modal ───────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 520px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--gold);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface);
  border: none;
  color: var(--text2);
  cursor: pointer;
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.modal-close:hover {
  background: var(--surface2);
  color: var(--text);
}

/* ─── Admin Table ─────────────────────────────────────────────────────────── */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  background: var(--bg3);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text2);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background .15s;
}

.admin-table tbody tr:hover {
  background: var(--bg3);
}

.admin-table .row-inactive td {
  opacity: .5;
}

/* ─── Dashboard ───────────────────────────────────────────────────────────── */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.dash-header h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

.dash-header p {
  color: var(--text2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
}

.stat-label {
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 4px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color .2s;
  font-family: 'Barlow', sans-serif;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--gold);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.appt-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appt-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .2s;
}

.appt-card:hover {
  border-color: var(--gold-30)
}

.appt-icon {
  font-size: 26px;
  min-width: 34px;
  text-align: center;
}

.appt-info {
  flex: 1;
  min-width: 0;
}

.appt-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.appt-service {
  font-size: 15px;
  font-weight: 600;
}

.appt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text2);
}

.appt-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 6px;
}

.appt-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}

/* ─── Home ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 85% at 78% 50%, var(--gold-25) 0%, transparent 62%),
    radial-gradient(ellipse 30% 50% at 5% 100%, var(--gold-10) 0%, transparent 55%),
    linear-gradient(150deg, var(--bg) 0%, var(--bg3) 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255, 255, 255, .015) 39px, rgba(255, 255, 255, .015) 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255, 255, 255, .015) 39px, rgba(255, 255, 255, .015) 40px);
}

.hero-content {
  position: relative;
  padding: 80px 20px;
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero-title span {
  color: var(--gold);
}

.hero-sub {
  font-size: 17px;
  color: var(--text2);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}

.hero-stat span {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stat-div {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg2);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text2);
}


.stat-div {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg2);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text2);
}

/* Endereço e contato */
/* ═══════════════════════════════════════════════
   CONTATO RÁPIDO — Barra inferior elegante
   ═══════════════════════════════════════════════ */

/* ========== CONTATO RÁPIDO ========== */
.contact-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.contact-bar-content {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 260px;
  transition: transform 0.2s;
}

.contact-item:hover {
  transform: translateY(-3px);
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold-25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.contact-item:hover .contact-icon {
  background: var(--gold-15);
  border-color: var(--gold);
}

.contact-details strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-details p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.contact-details a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold-30);
  transition: color 0.2s, border-color 0.2s;
}

.contact-details a:hover {
  color: var(--gold2);
  border-bottom-color: var(--gold2);
}

.contact-hint {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 0.3px;
}

/* ========== HORÁRIOS ========== */
.hours-section {
  background: var(--bg2);
  padding: 48px 0 60px;
}

.hours-header {
  text-align: center;
  margin-bottom: 36px;
}

.hours-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
  color: var(--text);
}

.hours-header p {
  color: var(--text2);
  font-size: 16px;
}

.hours-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.hour-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 28px;
  min-width: 240px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.hour-card.active {
  border-left: 6px solid var(--gold);
  background: linear-gradient(to right, var(--gold-05), var(--surface));
}

.hour-card.inactive {
  opacity: 0.7;
  background: var(--bg2);
  border-left: 6px solid var(--border);
}

.hour-day-icon {
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hour-card.inactive .hour-day-icon {
  color: var(--text3);
}

.hour-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hour-day {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.hour-time {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
}

.hour-card.inactive .hour-time {
  color: var(--text3);
  font-weight: 400;
}

/* Responsivo */
@media (max-width: 700px) {
  .contact-bar-content {
    gap: 32px;
  }

  .contact-item {
    min-width: 100%;
    justify-content: flex-start;
  }

  .hours-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .hour-card {
    min-width: auto;
    padding: 16px 20px;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 3px;
  margin-bottom: 3px;
}

.services-grid.hidden {
  display: none;
}

.category-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s;
}

.category-group-header:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cat-arrow {
  transition: transform 0.3s;
}

.category-group.open .cat-arrow {
  transform: rotate(180deg);
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 18px 10px;
  transition: 0.3s;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-header h3 {
  flex: 1;
  margin: 0;
}

.acc-icon {
  font-size: 20px;
  transition: 0.3s;
}

.accordion-item.active .acc-icon {
  transform: rotate(45deg);
  /* vira um X */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .2s, transform .2s;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 28px;
  min-width: 40px;
}

.service-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.service-info p {
  color: var(--text2);
  font-size: 13px;
  margin-bottom: 12px;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-duration {
  font-size: 12px;
  color: var(--text3);
}

.service-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.professionals-slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 48px;
}

.professionals-track {
  display: flex;
  gap: 16px;
  transition: transform .4s ease;
}

.professional-card {
  min-width: 260px;
  max-width: 260px;
  flex-shrink: 0;
}

/* Botões */
.professionals-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.professionals-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d0d0d;
}

.barb-prev {
  left: 0;
}

.barb-next {
  right: 0;
}

.professional-card {
  background: var(--surface);
  ;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s;
}

.professional-card:hover {
  border-color: var(--gold-40);
}

.professional-avatar {
  width: 56px;
  height: 56px;
  background: var(--gold-dim);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
}

.professional-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.professional-info p {
  color: var(--text2);
  font-size: 13px;
  line-height: 1.6;
}

.professional-rating {
  margin-top: 8px;
  color: var(--gold);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.professional-rating span {
  color: var(--text2);
  font-size: 12px;
}

.day-badge {
  padding: 3px 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
}

.professional-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.cta-section {
  background: var(--bg);
  padding: 60px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--gold-10) 0%, var(--gold-05) 100%);
  border: 1px solid var(--gold-30);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-box h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.cta-box p {
  color: var(--text2);
}

/* ─── Auth ────────────────────────────────────────────────────────────────── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.auth-header h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.auth-header p {
  color: var(--text2);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text2);
  font-size: 14px;
}

.hint-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 20px;
}

.hint-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: 8px;
}

.hint-row {
  font-size: 12px;
  color: var(--text2);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hint-row code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold);
  font-family: monospace;
}

/* ─── Booking Wizard ──────────────────────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  font-size: 13px;
  font-weight: 500;
}

.step-item:not(:last-child)::after {
  content: '—';
  color: var(--border);
  margin: 0 4px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-item.active {
  color: var(--text);
}

.step-item.active .step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d0d0d;
}

.step-item.done {
  color: var(--gold);
}

.step-item.done .step-num {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.book-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.step-panel h2 {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 24px;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 10px;
}

.option-card:hover {
  border-color: var(--gold-40);
}

.option-card.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.option-icon {
  font-size: 24px;
  min-width: 32px;
}

.option-name {
  font-weight: 600;
  font-size: 15px;
}

.option-meta {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
}

.option-price {
  margin-left: auto;
  font-weight: 700;
  color: var(--gold);
  font-size: 16px;
}

.professional-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: -3px;
}

.professional-option:hover {
  border-color: var(--gold-40);
}

.professional-option.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.professional-opt-avatar {
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
}

.professional-opt-avatar-img {
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.dates-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.dates-scroll::-webkit-scrollbar {
  height: 4px;
}

.dates-scroll::-webkit-scrollbar-thumb {
  background: var(--surface2);
  border-radius: 2px;
}

.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  min-width: 60px;
  transition: all .2s;
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  flex-shrink: 0;
}

.date-btn:hover {
  border-color: var(--gold-40);
}

.date-btn.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.date-day {
  font-size: 10px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
}

.date-num {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.date-month {
  font-size: 10px;
  color: var(--text3);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.slot-btn {
  padding: 10px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
  font-family: 'Barlow', sans-serif;
}

.slot-btn:hover:not(.busy):not(:disabled) {
  border-color: var(--gold);
}

.slot-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d0d0d;
}

.slot-btn.busy,
.slot-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.slots-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text2);
  margin-bottom: 6px;
  display: block;
}

.no-slots {
  color: var(--text3);
  font-size: 13px;
  padding: 16px 0;
}

.confirm-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.confirm-row:last-child {
  border-bottom: none;
}

.confirm-row span {
  color: var(--text2);
  font-size: 14px;
}

.confirm-row strong {
  font-size: 14px;
}

.confirm-row.total {
  background: var(--gold-dim);
}

.confirm-row.total span,
.confirm-row.total strong {
  color: var(--gold);
}

.confirm-row.total strong {
  font-size: 18px;
}

.book-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ─── Blocked dates ───────────────────────────────────────────────────────── */
.blocked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  transition: color .2s;
}

.btn-icon:hover {
  color: var(--red);
}

.add-block-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.add-block-row input {
  flex: 1;
  min-width: 120px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ─── Success ─────────────────────────────────────────────────────────────── */
.success-page {
  text-align: center;
  max-width: 480px;
  margin: 80px auto;
  padding: 20px;
}

.success-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.success-page h2 {
  font-size: 28px;
  color: var(--green);
  margin-bottom: 8px;
}

.success-page p {
  color: var(--text2);
  margin-bottom: 24px;
}

.success-summary {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.success-summary div {
  font-size: 14px;
  color: var(--text2);
}

.success-summary strong {
  color: var(--text);
}

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 4px;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links button {
    padding: 10px 0;
    font-size: 15px;
  }

  .nav-username {
    display: none;
  }

  .book-content {
    padding: 20px;
  }

  .appt-card {
    flex-wrap: wrap;
  }

  .cta-box {
    flex-direction: column;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* ─── Reviews ─────────────────────────────────────────────────────────────── */
.appt-needs-review {
  border-color: rgba(201, 168, 76, .35) !important;
}

.appt-needs-review:hover {
  border-color: var(--gold) !important;
}

.btn-avaliar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  transition: all .2s;
}

.btn-avaliar:hover {
  background: var(--gold);
  color: #0d0d0d;
}

.review-done {
  margin-top: 10px;
}

.review-stars-display {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
}

.review-rating-text {
  font-size: 12px;
  color: var(--text2);
  margin-left: 6px;
}

.star-fill {
  color: var(--gold);
  font-size: 16px;
}

.star-empty {
  color: var(--surface2);
  font-size: 16px;
}

.review-quote {
  font-size: 12px;
  color: var(--text2);
  font-style: italic;
  margin-top: 4px;
}

/* Modal avaliação */
.star-picker {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 6px;
}

.star-picker button {
  background: none;
  border: none;
  font-size: 40px;
  cursor: pointer;
  color: var(--surface2);
  transition: color .15s, transform .1s;
  padding: 0 2px;
  line-height: 1;
}

.star-picker button.ativa,
.star-picker button.hover {
  color: var(--gold);
  transform: scale(1.1);
}

.av-label {
  font-size: 13px;
  color: var(--text2);
  text-align: center;
  min-height: 20px;
}

/* Tab badge */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #0d0d0d;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
}

/* ─── Admin Reviews ────────────────────────────────────────────────────────── */
.review-professional-group {
  margin-bottom: 28px;
}

.review-professional-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.review-avg {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text2);
  margin-top: 3px;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.review-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .2s;
}

.review-card:hover {
  border-color: rgba(201, 168, 76, .3);
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.review-client {
  font-weight: 600;
  font-size: 14px;
  display: block;
}

.review-service {
  font-size: 12px;
  color: var(--text2);
  display: block;
  margin-top: 1px;
}

.review-comment-text {
  font-size: 13px;
  color: var(--text2);
  font-style: italic;
  margin-bottom: 8px;
}

.review-date {
  font-size: 11px;
  color: var(--text3);
}

/* ─── WhatsApp panel ───────────────────────────────────────────────────────── */
.wa-status-ok {
  color: var(--green);
  font-weight: 600;
}

.wa-status-err {
  color: var(--red);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   PWA — Progressive Web App Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Install Banner ──────────────────────────────────────── */
.pwa-install-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg2);
  border-bottom: 2px solid var(--gold);
  padding: 10px 16px;
  animation: slideDown .3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.pwa-install-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.pwa-install-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.pwa-install-text {
  flex: 1;
  min-width: 0;
}

.pwa-install-text strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.pwa-install-text span {
  display: block;
  font-size: 12px;
  color: var(--text2);
  margin-top: 1px;
}

.pwa-install-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
  transition: color .2s;
}

.pwa-install-close:hover {
  color: var(--text);
}

.pwa-ios-bar {
  border-bottom-color: var(--blue);
}

.pwa-ios-bar .pwa-install-text strong {
  color: var(--blue);
}

/* When install bar is visible, push navbar down */
body.pwa-bar-visible .navbar {
  top: 54px !important;
}

/* ─── Bottom Navigation ───────────────────────────────────── */
.bottom-nav {
  display: none;
  /* escondido no desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(22, 22, 22, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  transition: transform .25s ease;
}

.bottom-nav.hidden {
  transform: translateY(100%);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  color: var(--text3);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s;
  position: relative;
}

.bottom-nav-item.active {
  color: var(--gold);
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}

.bnav-icon {
  font-size: 20px;
  line-height: 1;
}

/* Center "Agendar" button */
.bottom-nav-center {
  position: relative;
  top: -10px;
}

.bnav-center-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--gold);
  color: #0d0d0d;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(201, 168, 76, .4);
  line-height: 1;
}

/* Add padding to main content when bottom nav is visible */
body.has-bottom-nav .main-content {
  padding-bottom: 80px;
}

/* ─── Mobile responsive adjustments ─────────────────────────
   Show bottom nav only on small screens / standalone PWA     */
@media (max-width: 768px),
(display-mode: standalone) {
  .bottom-nav {
    display: flex;
  }

  body.has-bottom-nav .main-content,
  .main-content {
    padding-bottom: 80px;
  }
}

/* In standalone PWA, always show bottom nav (even on wider screens) */
@media (display-mode: standalone) {
  .bottom-nav {
    display: flex !important;
  }

  /* Hide desktop nav links when in app mode on mobile */
  @media (max-width: 768px) {

    .nav-links a:not(.nav-brand),
    .nav-links .nav-username {
      display: none;
    }
  }
}

/* Safe area for notched phones (iPhone X+) */
.navbar {
  padding-top: env(safe-area-inset-top, 0);
}

.bottom-nav {
  padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
}

/* ─── Splash screen loading ───────────────────────────────── */
.app-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity .4s ease;
}

.app-splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

.app-splash-icon {
  font-size: 64px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.08)
  }
}

.app-splash-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
}

.app-splash-bar {
  width: 120px;
  height: 3px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}

.app-splash-progress {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  animation: progress 1.2s ease-in-out forwards;
}

@keyframes progress {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

/* ════════════════════════════════════════════════════════════
   SIDEBAR PANEL LAYOUT
   ════════════════════════════════════════════════════════════ */
.panel-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

/* ── Sidebar ─────────────────────────────────────── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  transition: transform .3s ease;
  z-index: 50;
}

.sidebar-divider {
  margin: 0.75rem 1rem;
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--divider), transparent);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  background: var(--gold-dim);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  flex-shrink: 0;
}

.sidebar-userinfo {
  flex: 1;
  min-width: 0;
}

.sidebar-userinfo strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-role {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sidebar-item:hover {
  background: var(--bg3);
  color: var(--gold);
}

.sidebar-item.active {
  background: var(--gold-dim);
  color: var(--gold);
}

.sidebar-item.active .si-icon {
  filter: none;
}

.si-icon {
  font-size: 18px;
  min-width: 24px;
  text-align: center;
}

.si-badge {
  margin-left: auto;
  background: var(--gold);
  color: #0d0d0d;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.sidebar-logout {
  color: var(--red) !important;
}

.sidebar-logout:hover {
  background: rgba(224, 82, 82, .1) !important;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.sidebar-overlay {
  display: none;
}

/* ── Main area ───────────────────────────────────── */
.panel-main {
  flex: 1;
  padding: 24px;
  min-width: 0;
  overflow-x: hidden;
}

.panel-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.topbar-menu-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 18px;
  padding: 6px 12px;
  cursor: pointer;
}

.topbar-title {
  font-size: 18px;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  flex: 1;
}

.topbar-date {
  font-size: 12px;
  color: var(--text3);
}

.panel-section {
  display: none;
}

.panel-section.active {
  display: block;
}

.panel-section-head {
    color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.panel-section-head h3 {
  font-size: 20px;
}

@media (max-width: 768px) {
  .panel-section-head h3 {
    display: none;
  }

  /* Ajusta o espaçamento para não ficar um vazio onde o título estava */
  .panel-section-head {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    /* se houver borda */
  }
}

.panel-loading {
  display: flex;
  justify-content: center;
  padding: 48px;
}

.appt-time-big {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  min-width: 52px;
  text-align: center;
}

/* ── Mobile sidebar ──────────────────────────────── */
@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    height: calc(100vh - 64px);
    transform: translateX(-100%);
    z-index: 200;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: flex;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }

  .sidebar-overlay.show {
    opacity: 1;
    pointer-events: all;
  }

  .panel-topbar {
    display: flex;
  }

  .panel-main {
    padding: 16px;
  }
}

/* ════════════════════════════════════════════════════════════
   CARROSSEL PRINCIPAL
   ════════════════════════════════════════════════════════════ */
.carousel-section {
  position: relative;
}

.carousel {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  max-height: 520px;
}

.carousel-track {
  display: flex;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  display: none;
  max-height: 520px;
  overflow: hidden;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, transparent 100%);
  padding: 40px 40px 32px;
  text-align: left;
}

.carousel-title {
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.carousel-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255, 255, 255, .85);
  max-width: 480px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .5);
  border: none;
  color: #fff;
  font-size: 32px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background .2s;
  z-index: 10;
  line-height: 1;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, .75);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .2s;
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* Admin carrossel grid */
.carousel-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.carousel-admin-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.carousel-admin-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.carousel-admin-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-admin-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .2s;
}

.carousel-admin-img:hover .carousel-admin-overlay {
  opacity: 1;
}

.carousel-admin-info {
  padding: 12px;
}

.carousel-admin-info strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.carousel-admin-info span {
  font-size: 12px;
  color: var(--text2);
  display: block;
}

/* ════════════════════════════════════════════════════════════
   CATEGORIAS DE SERVIÇOS
   ════════════════════════════════════════════════════════════ */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.cat-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
  font-family: 'Barlow', sans-serif;
}

.cat-filter:hover {
  border-color: var(--gold);
  color: var(--text);
}

.cat-filter.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.category-group {
  margin-bottom: 40px;
}

.category-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.category-group-header span {
  font-size: 22px;
}

.category-group-header h3 {
  font-size: 18px;
}

/* ════════════════════════════════════════════════════════════
   AVALIAÇÕES PÚBLICAS (INDEX)
   ════════════════════════════════════════════════════════════ */
.reviews-section {
  background: var(--bg2);
}

.reviews-global-avg {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
}

.avg-number {
  font-size: 48px;
  font-weight: 900;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  line-height: 1;
}

.avg-stars {
  font-size: 22px;
}

.avg-total {
  font-size: 13px;
  color: var(--text2);
  margin-top: 2px;
}

.reviews-slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 48px;
}

.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform .4s ease;
}

.review-card-public {
  min-width: calc(33.33% - 14px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  flex-shrink: 0;
  transition: border-color .2s;
}

.review-card-public:hover {
  border-color: var(--gold-40);
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar-pub {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}

.review-client-name {
  font-weight: 600;
  font-size: 14px;
}

.review-service-label {
  font-size: 12px;
  color: var(--text2);
  margin-top: 1px;
}

.reviews-stars-pub {
  margin-left: auto;
  font-size: 14px;
  color: var(--gold);
  white-space: nowrap;
}

.review-text-pub {
  font-size: 13px;
  color: var(--text2);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 10px;
}

.review-date-pub {
  font-size: 11px;
  color: var(--text3);
}

.reviews-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 5;
}

.reviews-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d0d0d;
}

.rev-prev {
  left: 0;
}

.rev-next {
  right: 0;
}

@media (max-width: 900px) {
  .review-card-public {
    min-width: calc(50% - 10px);
  }

  .reviews-slider-wrap {
    padding: 0 36px;
  }
}

@media (max-width: 600px) {
  .review-card-public {
    min-width: 100%;
  }

  .reviews-slider-wrap {
    padding: 0 28px;
  }

  .carousel-caption {
    padding: 24px 20px 20px;
  }

  .carousel-btn {
    font-size: 24px;
    padding: 6px 10px;
  }
}


/* ════════════════════════════════════════════════════════════
   GALERIA DE FOTOS (substituiu o carrossel no index)
   ════════════════════════════════════════════════════════════ */

.gallery-section {
  padding: 60px 0;
  background: var(--bg);
}

.gallery-header {
  text-align: center;
  margin-bottom: 32px;
}

.gallery-header h2 {
  font-size: 30px;
  margin-bottom: 6px;
}

.gallery-header p {
  color: var(--text2);
  font-size: 14px;
}

.gallery-slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 48px;
}

.gallery-strip {
  display: flex;
  gap: 12px;
  transition: transform .4s ease;
}

.gallery-item {
  min-width: 220px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
  /* ← ESSENCIAL */
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 5;
}

.gallery-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d0d0d;
}

.gal-prev {
  left: 0;
}

.gal-next {
  right: 0;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, transparent 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 20px 10px 8px;
  opacity: 0;
  transition: opacity .25s;
}

.gallery-item:hover .gallery-item-label {
  opacity: 1;
}

/* Overlay hover */
.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: 28px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 880px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}

.lightbox-caption {
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, .1);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .25);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .1);
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
  line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  color: #0d0d0d;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

/* Remove old carousel styles no front-end */
.carousel-section {
  display: none !important;
}

@media (max-width: 600px) {
  .gallery-strip {
    display: flex;
    transition: transform .4s ease;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .gallery-item {
    min-width: unset;
    /* ← remove conflito */
    width: 100%;
    height: 140px;
    /* opcional, proporcional */
  }

  .lightbox-prev {
    left: 4px;
  }

  .lightbox-next {
    right: 4px;
  }
}

/* ═══════════════════════════════════════════════════════════
   NOVOS ESTILOS V2
   ═══════════════════════════════════════════════════════════ */

/* ── Redes Sociais (Hero) ─────────────────────────────────── */
.hero-social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text2);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── Category Tabs (Index + Agendar) ─────────────────────── */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cat-tab {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.cat-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cat-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  font-weight: 600;
}

/* ── Services Grid V2 (Index) ────────────────────────────── */
.services-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.svc-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, transform .2s;
}

.svc-card-v2:hover {
  border-color: var(--gold-40);
  transform: translateY(-2px);
}

.svc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.svc-icon-big {
  font-size: 32px;
  line-height: 1;
}

.svc-cat-badge {
  font-size: 11px;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-25);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

.svc-name {
  font-size: 17px;
  font-family: 'Playfair Display', serif;
  color: var(--text);
  margin: 0;
}

.svc-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
}

.svc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.svc-duration {
  font-size: 12px;
  color: var(--text3);
}

.svc-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}

.svc-book-btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* ── Service Group Labels (Agendar) ──────────────────────── */
.svc-group {
  margin-bottom: 8px;
}

.svc-group-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

/* ── Professional Book Grid ─────────────────────────────────────── */
.professional-book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 540px;
}

.professional-book-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Admin: Professional Category Checkboxes ───────────────────── */
.cats-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text2);
  transition: all .15s;
  user-select: none;
}

.cat-check-item:hover {
  border-color: var(--gold);
  color: var(--text);
}

.cat-check-item input[type="checkbox"] {
  accent-color: var(--gold);
}

.cat-check-item:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}


/* ── Animação fadeInUp ───────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Slot ocupado (vermelho) no painel profissional ──────────── */
.slot-btn.busy {
  background: rgba(224, 82, 82, .12);
  color: var(--red);
  border-color: rgba(224, 82, 82, .3);
  cursor: not-allowed;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .services-grid-v2 {
    grid-template-columns: 1fr;
  }

  .hero-social {
    gap: 10px;
  }

  .social-btn {
    width: 38px;
    height: 38px;
  }

  .social-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* FINANCEIRO */
/* ── Barra de ferramentas ───────────────────────────── */
.fin-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.fin-filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
}

.fin-period-group {
  display: flex;
  gap: 4px;
}

.fin-filter-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.fin-custom-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fin-range-label {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
}

.fin-date-input {
  width: 148px !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
}

.fin-pill {
  padding: 6px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  transition: all .18s;
  white-space: nowrap;
}

.fin-pill:hover {
  background: var(--surface2);
  color: var(--text);
}

.fin-pill.active {
  background: var(--gold);
  color: #0d0d0d;
  border-color: var(--gold);
}

.fin-pill--apply {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text2);
}

.fin-pill--apply:not(:disabled):hover {
  background: var(--gold);
  color: #0d0d0d;
  border-color: var(--gold);
}

.fin-pill--apply:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.fin-pill--apply.active {
  background: var(--gold);
  color: #0d0d0d;
  border-color: var(--gold);
}

.fin-cfg-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Cards de resumo ────────────────────────────────── */
.fin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.fin-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

.fin-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.fin-card:hover {
  transform: translateY(-2px);
}

.fin-card--gold::before {
  background: var(--gold);
}

.fin-card--amber::before {
  background: var(--amber);
}

.fin-card--blue::before {
  background: var(--blue);
}

.fin-card--red::before {
  background: var(--red);
}

.fin-card--profit::before {
  background: var(--green);
}

.fin-card--gold:hover {
  border-color: var(--gold-40);
}

.fin-card--amber:hover {
  border-color: rgba(232, 160, 32, .4);
}

.fin-card--blue:hover {
  border-color: rgba(91, 155, 232, .4);
}

.fin-card--red:hover {
  border-color: rgba(224, 82, 82, .4);
}

.fin-card--profit:hover {
  border-color: rgba(76, 175, 125, .4);
}

.fin-card--profit {
  grid-column: span 1;
}

@media (max-width: 600px) {
  .fin-card--profit {
    grid-column: span 1;
  }
}

.fin-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fin-card-icon {
  font-size: 18px;
}

.fin-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text2);
}

.fin-card-value {
  font-size: 26px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  line-height: 1.1;
}

.fin-card--red .fin-card-value {
  color: var(--red);
}

.fin-card--profit .fin-card-value {
  color: var(--green);
}

.fin-card--profit.is-negative .fin-card-value {
  color: var(--red);
}

.fin-card-sub {
  font-size: 11px;
  color: var(--text3);
}

/* ── Gráfico ────────────────────────────────────────── */
.fin-chart-card {
  margin-bottom: 24px;
}

.fin-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.fin-chart-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

/* Container do gráfico - Aqui controlamos o tamanho */
#finChartWrap {
  position: relative;
  min-height: 260px;
  /* Altura no desktop */
  max-height: 320px;
  /* Limite máximo */
  width: 100%;
}

.fin-chart-empty {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 8px;
  color: var(--text3);
  z-index: 2;
}

.fin-chart-empty span {
  font-size: 42px;
  margin-bottom: 8px;
}

.fin-chart-empty p {
  font-size: 13px;
  margin: 0;
}

/* ── Tabela de profissionais ────────────────────────────── */
.fin-table-loading {
  text-align: center;
  padding: 32px !important;
}

.fin-professional-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fin-professional-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fin-professional-initial {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* ── Lançamentos ────────────────────────────────────── */
.fin-entries-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.fin-entry-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: var(--bg3);
  font-size: 13px;
  transition: border-color .15s;
}

.fin-entry-row:hover {
  border-color: var(--gold-25);
}

.fin-entry-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fin-entry-dot.income {
  background: var(--green);
}

.fin-entry-dot.expense {
  background: var(--red);
}

.fin-entry-info {
  flex: 1;
  min-width: 0;
}

.fin-entry-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fin-entry-meta {
  font-size: 11px;
  color: var(--text3);
  margin-top: 1px;
}

.fin-entry-amount {
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.fin-entry-amount.income {
  color: var(--green);
}

.fin-entry-amount.expense {
  color: var(--red);
}

.fin-empty-txt {
  font-size: 13px;
  color: var(--text3);
}

/* ── Modal: configurações ────────────────────────────── */
.fin-settings-global {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.fin-settings-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.fin-settings-divider::before,
.fin-settings-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.fin-settings-divider span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  white-space: nowrap;
}

.fin-professional-setting-row {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 120px 140px;
  gap: 12px;
  align-items: center;
}

@media (max-width: 520px) {
  .fin-professional-setting-row {
    grid-template-columns: 1fr;
  }
}

.fin-setting-name {
  font-weight: 600;
  font-size: 14px;
}

/* ── Modal: tipo de lançamento ───────────────────────── */
.fin-type-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.fin-type-opt {
  flex: 1;
  cursor: pointer;
}

.fin-type-opt input {
  display: none;
}

.fin-type-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text2);
  transition: all .18s;
}

.fin-type-opt input:checked+.fin-type-inner {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}

.fin-type-inner:hover {
  border-color: var(--gold);
}

.fin-type-icon {
  font-size: 18px;
}

/* ════════════════════════════════════════════════════════════
   WHATSAPP PANEL
   ════════════════════════════════════════════════════════════ */
.wa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.wa-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text2);
  margin-bottom: 12px;
}

.wa-card-conn {
  position: relative;
  overflow: hidden;
}

.wa-conn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

/* Pills de status */
.wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
}

.wa-pill--connected {
  background: rgba(76, 175, 125, .12);
  color: var(--green);
}

.wa-pill--connecting {
  background: rgba(201, 168, 76, .12);
  color: var(--gold);
}

.wa-pill--disconnected {
  background: rgba(224, 82, 82, .12);
  color: var(--red);
}

.wa-pill--loading {
  background: var(--surface);
  color: var(--text3);
}

.wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wa-dot--connected {
  background: var(--green);
}

.wa-dot--connecting {
  background: var(--gold);
  animation: waPulse 1.2s ease-in-out infinite;
}

.wa-dot--disconnected {
  background: var(--red);
}

.wa-dot--loading {
  background: var(--text3);
}

@keyframes waPulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.wa-last-check {
  font-size: 11px;
  color: var(--text3);
}

.wa-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* QR */
.wa-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wa-qr-frame {
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: none;
}

.wa-qr-frame img {
  display: block;
  width: 190px;
  height: 190px;
}

.wa-qr-hint {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  display: none;
}

/* Confirm overlay */
.wa-confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
  border-radius: var(--radius);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.wa-confirm-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  max-width: 220px;
}

.wa-confirm-box p {
  font-size: 14px;
  margin-bottom: 14px;
}

.wa-confirm-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Chips de estatística */
.wa-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.wa-chip {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--surface);
  color: var(--text2);
  border: 1px solid var(--border);
}

.wa-chip b {
  color: var(--text);
}

/* Resultado inline */
.wa-result-ok {
  background: rgba(76, 175, 125, .1);
  border: 1px solid rgba(76, 175, 125, .3);
  color: #7dd9a8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
}

.wa-result-err {
  background: rgba(224, 82, 82, .1);
  border: 1px solid rgba(224, 82, 82, .3);
  color: #f59292;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
}

/* ===================== GRID DE BLOQUEIOS ===================== */
.bloq-grid {
  display: grid;
  grid-template-columns: 12fr;
  /* Força 1 coluna */
  gap: 24px;
  /* Espaçamento maior entre cards */
  max-width: 100%;
  /* Opcional: limita a largura máxima */
  /* Centraliza na tela */
}

/* Label dos cards */
.bloq-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text2, #64748b);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Google OAuth Button ─────────────────────────────────────────
   Adicione este bloco ao seu CSS principal (ex: assets/css/style.css)
   ou em um arquivo separado incluído nas páginas de auth.
──────────────────────────────────────────────────────────────── */

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  color: #3c4043;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  margin-bottom: 4px;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 4px rgba(60, 64, 67, .2);
  text-decoration: none;
  color: #3c4043;
}

.btn-google svg {
  flex-shrink: 0;
}

/* Divider "ou" */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: #999;
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

/* privacidade */
.legal-text {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--text);
}

.legal-text h2 {
  margin-top: 30px;
  font-size: 20px;
  color: var(--text2);
}

.legal-text p {
  margin-top: 10px;
}

.legal-text ul {
  margin-top: 10px;
  padding-left: 20px;
}

.legal-text li {
  margin-bottom: 5px;
}

/* ═══════════════════════════════════════════════════════════════
 AGENDA GERAL v2 — Booksy-style, completa
 ═══════════════════════════════════════════════════════════════ */

/* ── Layout principal ──────────────────────────────────────────── */
.ag2-shell {
  display: flex;
  gap: 0;
  height: calc(100vh - 180px);
  min-height: 900px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  font-size: 13px;
}

/* ── Sidebar esquerda (profissionais) ──────────────────────────── */
.ag2-sidebar {
  width: 220px;
  min-width: 220px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  transition: width .25s;
  overflow: hidden;
}

.ag2-sidebar.collapsed {
  width: 0;
  min-width: 0;
}

.ag2-sidebar-head {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ag2-sidebar-search {
  margin: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  width: calc(100% - 16px);
  background: var(--bg2);
  color: var(--text1, #1a202c);
  outline: none;
}

.ag2-sidebar-search:focus {
  border-color: var(--gold);
}

.ag2-prof-list {
  overflow-y: auto;
  flex: 1;
  padding: 4px 6px 8px;
}

.ag2-prof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
  user-select: none;
}

.ag2-prof-item:hover {
  background: var(--gold2);
}

.ag2-prof-item.active {
  background: var(--gold);
  color: #fff;
}

.ag2-prof-item.active .ag2-prof-role {
  color: rgba(255, 255, 255, .7);
}

.ag2-prof-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}

.ag2-prof-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ag2-prof-name {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
}

.ag2-prof-role {
  font-size: 10px;
  color: var(--text3, #94a3b8);
}

.ag2-prof-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: var(--bg2);
  transition: all .12s;
  margin-left: auto;
}

.ag2-prof-item.active .ag2-prof-check {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

body.ag2-multi-mode .ag2-prof-check {
  display: flex;
}

body.ag2-multi-mode #ag2MultiBtn {
  background: var(--gold) !important;
  color: #fff !important;
  border-color: var(--gold) !important;
}

body.ag2-multi-mode #ag2MultiHint {
  display: inline !important;
}

/* ── Coluna central (calendário) ───────────────────────────────── */
.ag2-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

/* ── Toolbar ────────────────────────────────────────────────────── */
.ag2-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}

.ag2-nav-group {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ag2-nav-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 11px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
  transition: all .14s;
  line-height: 1.4;
}

.ag2-nav-btn:hover {
  background: var(--gold2);
  border-color: var(--gold, #c9a84c);
}

.ag2-nav-today {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .14s;
}

.ag2-nav-today:hover {
  opacity: .85;
}

.ag2-period-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text1);
  min-width: 180px;
  text-align: center;
}

.ag2-view-toggle {
  display: flex;
  gap: 3px;
  margin-left: 4px;
}

.ag2-view-btn {
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  transition: all .14s;
}

.ag2-view-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.ag2-view-btn:hover {
  background: var(--gold2);
  border-color: var(--gold);
  color: var(--text1);
}

.ag2-slot-select {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 12px;
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
  margin-left: 4px;
}

.ag2-slot-select:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.ag2-slot-select:focus {
  border-color: var(--gold);
  outline: none;
}

.ag2-toolbar-actions {
  display: flex;
  gap: 5px;
  margin-left: auto;
  flex-wrap: wrap;
}

.ag2-action-btn {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .14s;
  font-weight: 500;
}

.ag2-action-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.ag2-action-btn.primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.ag2-action-btn.primary:hover {
  opacity: .88;
}

/* ── Barra de filtros ───────────────────────────────────────────── */
.ag2-filters {
  display: flex;
  gap: 6px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
  flex-wrap: wrap;
  align-items: center;
}

.ag2-filter-label {
  font-size: 11px;
  color: var(--text2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.ag2-filter-select {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
}

.ag2-filter-select:focus {
  border-color: var(--gold);
  outline: none;
}

.ag2-filter-select:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Área do calendário ─────────────────────────────────────────── */
.ag2-calendar-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ag2-cal-header {
  display: grid;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg2);
}

.ag2-cal-timecol {
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  color: var(--text3, #94a3b8);
  border-right: 1px solid var(--border);
  min-width: 52px;
  cursor: pointer;
}

.ag2-cal-timecol:hover {
  color: var(--gold);
}

.ag2-cal-daycol {
  padding: 8px 4px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.ag2-cal-daycol:last-child {
  border-right: none;
}

.ag2-dayname {
  font-size: 10px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ag2-daynum {
  font-size: 18px;
  font-weight: 700;
  color: var(--text2);
  line-height: 1.2;
  margin-top: 2px;
}

.ag2-cal-daycol.ag2-today .ag2-daynum {
  background: var(--gold);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ag2-cal-daycol.ag2-today .ag2-dayname {
  color: var(--gold);
  font-weight: 700;
}

.ag2-cal-daycol.ag2-offday {
  opacity: .55;
}

.ag2-cal-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.ag2-cal-grid {
  display: grid;
  position: relative;
}

.ag2-timecell {
  padding: 0 6px;
  text-align: right;
  font-size: 10px;
  color: var(--text3, #94a3b8);
  border-right: 1px solid var(--border);
  position: relative;
  user-select: none;
  min-width: 52px;
}

.ag2-timecell span {
  position: absolute;
  top: -7px;
  right: 6px;
  white-space: nowrap;
}

.ag2-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background .1s;
}

.ag2-cell:last-child {
  border-right: none;
}

.ag2-cell:hover {
  background: rgba(124, 58, 237, .05);
}

.ag2-cell.ag2-offwork {
  background: repeating-linear-gradient(135deg, transparent, transparent 5px, rgba(0, 0, 0, .022) 5px, rgba(0, 0, 0, .022) 10px);
  cursor: default;
}

.ag2-cell.ag2-offwork:hover {
  background: repeating-linear-gradient(135deg, transparent, transparent 5px, rgba(0, 0, 0, .022) 5px, rgba(0, 0, 0, .022) 10px);
}

.ag2-cell.ag2-today-bg {
  background: rgba(124, 58, 237, .025);
}

.ag2-cell.ag2-today-bg:hover {
  background: rgba(124, 58, 237, .07);
}

.ag2-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #ef4444;
  z-index: 20;
  pointer-events: none;
}

.ag2-now-line::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

/* ── Eventos ────────────────────────────────────────────────────── */
.ag2-event {
  position: absolute;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.3;
  overflow: hidden;
  cursor: pointer;
  z-index: 5;
  transition: filter .14s, transform .1s, box-shadow .14s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .13);
}

.ag2-event:hover {
  filter: brightness(1.07);
  transform: translateY(-1px) scale(1.01);
  z-index: 6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.ag2-event-time {
  font-weight: 700;
  font-size: 10px;
  opacity: .8;
}

.ag2-event-client {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag2-event-svc {
  font-size: 10px;
  opacity: .72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag2-event.confirmed {
  background: #dbeafe;
  color: #1e40af;
  border-left: 3px solid #3b82f6;
}

.ag2-event.completed {
  background: #dcfce7;
  color: #166534;
  border-left: 3px solid #22c55e;
}

.ag2-event.pending {
  background: #fef9c3;
  color: #854d0e;
  border-left: 3px solid #eab308;
}

.ag2-event.cancelled {
  background: #f1f5f9;
  color: #64748b;
  border-left: 3px solid #94a3b8;
  text-decoration: line-through;
}

.ag2-event.no_show {
  background: #fef2f2;
  color: #991b1b;
  border-left: 3px solid #fca5a5;
}

.ag2-event.break {
  background: #cececeff;
  color: #3d3d3dff;
  border-left: 3px solid #b8b8b8ff;
  pointer-events: none;
  opacity: .75;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(26, 26, 26, 0.12) 4px, rgba(102, 102, 102, 0.12) 8px);
}

.ag2-event.blocked {
  background: #fff1f2;
  color: #9f1239;
  border-left: 3px solid #f43f5e;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(244, 63, 94, .12) 4px, rgba(244, 63, 94, .12) 8px);
}

/* ── Vista Mensal ───────────────────────────────────────────────── */
.ag2-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex: 1;
  overflow-y: auto;
}

.ag2-month-dow {
  text-align: center;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3, #94a3b8);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  position: sticky;
  top: 0;
  z-index: 5;
}

.ag2-month-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 7px 5px;
  min-height: 100px;
  cursor: pointer;
  transition: background .1s;
  overflow: hidden;
}

.ag2-month-cell:hover {
  background: rgba(124, 58, 237, .04);
}

.ag2-month-cell.ag2-other-month {
  background: var(--bg3);
}

.ag2-month-cell.ag2-today-cell {
  background: rgba(124, 58, 237, .06);
}

/* FIX: estilo para dia bloqueado no mês (estava ausente no CSS original) */
.ag2-month-cell.ag2-blk-month {
  background: rgba(244, 63, 94, .06);
}

.ag2-month-daynum {
  font-size: 12px;
  font-weight: 700;
  color: var(--text1, #1a202c);
  margin-bottom: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.ag2-month-cell.ag2-today-cell .ag2-month-daynum {
  background: var(--gold);
  color: #fff;
}

.ag2-month-event {
  display: block;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.ag2-month-event.confirmed {
  background: #dbeafe;
  color: #1e40af;
}

.ag2-month-event.completed {
  background: #dcfce7;
  color: #166534;
}

.ag2-month-event.pending {
  background: #fef9c3;
  color: #854d0e;
}

.ag2-month-event.blocked {
  background: #fff1f2;
  color: #9f1239;
}

.ag2-month-more {
  font-size: 10px;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  margin-top: 1px;
}

/* ── Tooltip ────────────────────────────────────────────────────── */
.ag2-tooltip {
  position: fixed;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  font-size: 12px;
  z-index: 9999;
  max-width: 250px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .14s, transform .14s;
}

.ag2-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.ag2-tt-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
  color: var(--text2, #64748b);
}

.ag2-tt-row strong {
  color: var(--text1, #1a202c);
}

.ag2-tt-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

.ag2-tt-badge.confirmed {
  background: #dbeafe;
  color: #1e40af;
}

.ag2-tt-badge.completed {
  background: #dcfce7;
  color: #166534;
}

.ag2-tt-badge.pending {
  background: #fef9c3;
  color: #854d0e;
}

.ag2-tt-badge.cancelled {
  background: #f1f5f9;
  color: #64748b;
}

.ag2-tt-badge.no_show {
  background: #fef2f2;
  color: #991b1b;
}

.ag2-tt-badge.blocked {
  background: #fff1f2;
  color: #9f1239;
}

/* ── Legenda ────────────────────────────────────────────────────── */
.ag2-legend {
  display: flex;
  gap: 14px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
  flex-wrap: wrap;
  align-items: center;
}

.ag2-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text2, #64748b);
  white-space: nowrap;
}

.ag2-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.ag2-legend-dot.confirmed {
  background: #3b82f6;
}

.ag2-legend-dot.completed {
  background: #22c55e;
}

.ag2-legend-dot.pending {
  background: #eab308;
}

.ag2-legend-dot.blocked {
  background: #f43f5e;
}

.ag2-legend-dot.cancelled {
  background: #94a3b8;
}

.ag2-legend-dot.free {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

.ag2-footer {
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg3);
  font-size: 12px;
  color: var(--text2, #64748b);
}

.ag2-footer strong {
  color: var(--text1, #1a202c);
}

/* ── Sidebar toggle button ─────────────────────────────────────── */
.ag2-sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 5px;
  color: var(--text3);
  border-radius: 5px;
  transition: color .12s, background .12s;
  font-size: 14px;
}

.ag2-sidebar-toggle:hover {
  color: var(--gold);
  background: var(--gold2);
}

/* ── Modal de agendamento ───────────────────────────────────────── */
.ag2-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.ag2-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.ag2-modal {
  background: var(--bg2);
  border-radius: 14px;
  width: 480px;
  max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  transform: translateY(16px) scale(.97);
  transition: transform .22s, opacity .22s;
  overflow: hidden;
}

.ag2-modal-overlay.open .ag2-modal {
  transform: none;
}

.ag2-modal-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg2);
  overflow: hidden;
}

.ag2-modal-inner h2 {
  font-family: 'playfair display', serif;
  font-size: 16px;
  color: var(--gold);
}

.ag2-modal-inner h5 {
  font-family: 'playfair display', serif;
  font-size: 22px;
  color: var(--gold);
}

.ag2-modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  color: var(--text1, #1a202c);
  padding-bottom: 14px;
}

.ag2-modal-close {
  background: var(--surface);
  border: none;
  color: var(--text2);
  cursor: pointer;
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background .2s;
}

.ag2-modal-close:hover {
  background: var(--surface2);
  color: var(--text);
}

.ag2-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 6px;
}

.ag2-form-row {
  display: flex;
  flex-direction: column;
  gap: -3px;
}

.ag2-form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text2);
  margin-bottom: 2px;
}

.ag2-form-row input,
.ag2-form-row select,
.ag2-form-row textarea {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .14s;
  width: 100%;
  box-sizing: border-box;
}

.ag2-form-row input:focus,
.ag2-form-row select:focus,
.ag2-form-row textarea:focus {
  border-color: var(--gold);
}

.ag2-form-row textarea {
  resize: vertical;
  min-height: 60px;
}

.ag2-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ag2-modal-info {
  background: var(--bg3);
  color: var(--gold);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.ag2-modal-btn {
  padding: 9px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text1, #1a202c);
  transition: all .14s;
}

.ag2-modal-btn.primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.ag2-modal-btn.primary:hover {
  opacity: .88;
}

.ag2-modal-btn:hover {
  filter: brightness(1.1);
}

#ag2CalContent {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ag2-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--text3, #94a3b8);
  gap: 10px;
}

/* ── Responsivo ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #panel-agenda_geral {
    position: relative;
  }

  .ag2-shell {
    position: relative;
    overflow: hidden;
    height: calc(100dvh - 160px);
    flex-direction: row;
    border-radius: 10px;
  }

  .ag2-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    width: 200px !important;
    min-width: 200px !important;
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 16px rgba(0, 0, 0, .15);
    transform: translateX(-100%);
    transition: transform .25s ease;
    border-radius: 10px 0 0 10px;
  }

  .ag2-sidebar.mobile-open {
    transform: translateX(0);
  }

  .ag2-sidebar.collapsed {
    transform: translateX(-100%);
    width: 200px !important;
    min-width: 200px !important;
  }

  .ag2-sidebar-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 49;
    border-radius: 10px;
  }

  .ag2-sidebar-overlay.show {
    display: block;
  }

  /* ── Toolbar mobile: 2 linhas limpas ── */
  .ag2-toolbar {
    padding: 8px 10px;
    gap: 4px;
    flex-wrap: wrap;
    row-gap: 6px;
    align-items: center;
  }

  /* Linha 1: ☰ + ‹ Hoje › + label (preenche o espaço → força wrap da linha 2) */
  .ag2-period-label {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Linha 2: [Sem][Dia][Mês] [slot] ——— [➕ Novo] [🚫] */
  .ag2-view-toggle {
    margin-left: 0;
  }

  .ag2-toolbar-actions {
    margin-left: auto;
    flex-wrap: nowrap;
    gap: 4px;
  }

  /* Só esconde "↻ Atualizar" (e print, se existir) */
  .ag2-toolbar-actions .ag2-action-btn[onclick*="ag2Refresh"],
  .ag2-toolbar-actions .ag2-action-btn[onclick*="print"] {
    display: none;
  }

  /* "🚫 Bloquear Horário" → só o ícone 🚫 */
  .ag2-toolbar-actions .ag2-action-btn[onclick*="ag2OpenBlockModal"] {
    font-size: 0;
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
  }

  .ag2-toolbar-actions .ag2-action-btn[onclick*="ag2OpenBlockModal"]::before {
    content: '🚫';
    font-size: 15px;
    line-height: 1;
  }

  /* "➕ Novo Agendamento" → "➕ Novo" */
  .ag2-toolbar-actions .ag2-action-btn.primary {
    font-size: 0;
    white-space: nowrap;
  }

  .ag2-toolbar-actions .ag2-action-btn.primary::before {
    content: '➕ Novo';
    font-size: 11px;
    font-weight: 600;
  }

  /* "Semana" → "Sem" para economizar espaço */
  .ag2-view-btn[data-view="week"] {
    font-size: 0;
  }

  .ag2-view-btn[data-view="week"]::before {
    content: 'Sem';
    font-size: 11px;
  }

  .ag2-action-btn {
    font-size: 11px;
    padding: 5px 9px;
  }

  /* Slot select: reaparece no mobile, mais compacto */
  #ag2SlotSize {
    display: inline-block !important;
    font-size: 11px;
    padding: 4px 4px;
    min-width: 0;
  }

  .ag2-slot-select {
    font-size: 11px;
    padding: 4px 6px;
  }

  .ag2-view-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .ag2-filters {
    padding: 6px 10px;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .ag2-filters::-webkit-scrollbar {
    display: none;
  }

  .ag2-cal-scroll {
    overflow-y: auto;
  }

  .ag2-legend {
    padding: 6px 10px;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    font-size: 10px;
  }

  .ag2-legend::-webkit-scrollbar {
    display: none;
  }

  .ag2-legend-dot {
    width: 8px;
    height: 8px;
  }

  .ag2-footer {
    padding: 6px 10px;
    font-size: 11px;
    gap: 10px;
  }

  .ag2-event {
    font-size: 10px;
    padding: 2px 4px;
  }

  .ag2-event-svc {
    display: none;
  }
}

@media (max-width: 600px) {
  .ag2-shell {
    height: calc(100dvh - 140px);
  }

  /* period-label já tem flex:1 — apenas ajuste de fonte */
  .ag2-period-label {
    font-size: 12px;
  }

  .ag2-view-btn {
    padding: 4px 7px;
    font-size: 10px;
  }

  /* slot select: já garantido pelo #ag2SlotSize !important no bloco acima */

  .ag2-action-btn.primary {
    font-size: 11px;
    padding: 5px 10px;
  }

  .ag2-filters {
    gap: 4px;
  }

  .ag2-filter-label {
    display: none;
  }

  .ag2-month-cell {
    min-height: 60px;
  }

  .ag2-month-event {
    font-size: 9px;
    padding: 1px 3px;
  }
}

/* ══════════════════════════════════════════════════════════════════
     CSS DO MODAL DE PAGAMENTO
     ══════════════════════════════════════════════════════════════════ */
/* Overlay */
.pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Modal */
.pay-modal {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
  animation: paySlideIn .28s ease;
}

@keyframes paySlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Cabeçalho */
.pay-modal-head {
  padding: 20px 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pay-modal-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.pay-modal-head strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text1);
  display: block;
}

.pay-modal-sub {
  font-size: 12px;
  color: var(--text3);
  margin: 2px 0 0;
}

/* Barra de valor */
.pay-amount-bar {
  margin: 16px 24px 0;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pay-amount-label {
  font-size: 12px;
  color: var(--text2);
  font-weight: 600;
}

.pay-amount-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
}

/* Tabs */
.pay-tabs {
  display: flex;
  gap: 0;
  margin: 16px 24px 0;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.pay-tab {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg3);
  border: none;
  cursor: pointer;
  color: var(--text2);
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body, sans-serif);
}

.pay-tab:first-child {
  border-right: 1.5px solid var(--border);
}

.pay-tab:hover {
  background: var(--gold-dim);
  color: var(--gold);
}

.pay-tab.active {
  background: var(--gold);
  color: #0d0d0d;
}

.pay-tab.active svg {
  stroke: #0d0d0d;
}

/* Painéis */
.pay-panel {
  padding: 20px 24px;
}

/* Estados (loading, ready, error) */
.pay-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Spinner */
.pay-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* QR Code */
.pay-qr-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: inline-flex;
  margin: 0 auto;
}

.pay-qr-img {
  width: 180px;
  height: 180px;
  display: block;
}

/* Copia-e-cola */
.pay-copy-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.pay-copy-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg3);
  color: var(--text1);
  font-size: 12px;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.pay-copy-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--gold);
  border: none;
  cursor: pointer;
  color: #0d0d0d;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-body, sans-serif);
}

.pay-copy-btn:hover {
  opacity: .88;
}

/* Dicas Pix */
.pay-pix-hints {
  background: var(--bg3);
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
}

.pay-pix-hints p {
  font-size: 12px;
  color: var(--text2);
  margin: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.pay-pix-hints p::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
}

/* Expiração e status */
.pay-expiry {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  width: 100%;
}

.pay-expiry.urgent {
  color: #e05252;
  font-weight: 600;
}

.pay-status-badge {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.pay-status-badge.approved {
  background: rgba(76, 175, 125, .15);
  color: var(--green);
  border: 1px solid rgba(76, 175, 125, .3);
}

.pay-status-badge.pending {
  background: rgba(201, 168, 76, .1);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, .3);
}

.pay-status-badge.rejected {
  background: rgba(224, 82, 82, .1);
  color: #e05252;
  border: 1px solid rgba(224, 82, 82, .3);
}

/* Cartão */
.pay-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.pay-card-icon {
  font-size: 40px;
}

.pay-card-text {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  max-width: 300px;
}

.pay-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.pay-card-badges span {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
}

.pay-card-btn {
  width: 100%;
  max-width: 280px;
}

.pay-card-hint {
  font-size: 11px;
  color: var(--text3);
}

/* Erro */
.pay-error-icon {
  font-size: 36px;
}

/* Footer */
.pay-modal-footer {
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.pay-cancel-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--text3);
  text-decoration: underline;
  font-family: var(--font-body, sans-serif);
}

.pay-cancel-link:hover {
  color: #e05252;
}

/* Modal de pagamentos pendentes - ajustes responsivos */

@media (max-width: 520px) {

  /* Ajusta largura e padding do modal */
  #pendingPaymentModal .modal-content {
    max-width: 95vw !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 18px 12px;
    border-radius: 12px;
    max-height: 90vh;
  }

  /* Cartão de agendamento em coluna */
  .appt-card {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    flex-wrap: wrap;
    /* garante quebra se necessário */
  }

  /* Oculta o ícone para economizar espaço */
  .appt-icon {
    display: none;
  }

  .appt-info {
    min-width: 100%;
  }

  /* Metadados em coluna */
  .appt-meta {
    flex-direction: column;
    gap: 4px;
  }

  /* Botões ocupam largura total */
  .appt-card .btn {
    width: 100%;
    margin-bottom: 6px;
    justify-content: center;
    font-size: 12px;
    padding: 8px 14px;
  }

  /* Ajustes de tipografia */
  .appt-service {
    font-size: 14px;
  }
}

.admin-table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* scroll suave no iOS */
}

.admin-table-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(to left, var(--bg2) 20%, transparent);
  pointer-events: none;
  transition: opacity 0.2s;
}

/* Quando o scroll chega ao final, a sombra some */
.admin-table-wrap.scroll-end::after {
  opacity: 0;
}

@media (max-width: 640px) {
  .admin-table-wrap {
    border: none !important;
    /* remove a borda extra */
    border-radius: 0 !important;
  }

  .admin-table thead {
    display: none;
    /* esconde o cabeçalho original */
  }

  .admin-table-wrap::after {
    display: none !important;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .admin-table td {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-top: none;
    font-size: 13px !important;
    text-align: left !important;
    justify-content: flex-start !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .admin-table td:last-child {
    border-bottom: none;
  }

  .admin-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    min-width: 90px;
    /* espaço fixo para os rótulos */
    flex-shrink: 0;
  }

  /* Corrige especificamente ícones com fonte grande */
  .admin-table td .badge,
  .admin-table td .row-inactive td {
    font-size: inherit !important;
  }
}