/* ---------- APP HEADER ---------- */
.app-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: rgba(15,15,17,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}


.app-title {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- APP LAYOUT ---------- */
.app-container {
  max-width: 420px;
  margin: auto;
  padding: 24px 16px 120px;
}


/* ---------- HOME ---------- */
.home-app {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- QUICK ACTIONS ---------- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.quick-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 22px;
}

/* ---------- AGENDA ---------- */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.date-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f1f25, #141418);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---------- PROFILE ---------- */
.profile-card {
  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  margin: auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.profile-email {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- AUTH SCREENS ---------- */
.auth-container {
  min-height: calc(100vh - 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
}

/* ================= BARBERSAAS HERO ================= */

.hero-saas {
  min-height: 100vh;
  background:
    linear-gradient(
      to bottom,
      rgba(10,10,12,.65),
      rgba(10,10,12,.92)
    ),
    url("/static/img/hero-barber.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ===== HERO AUTH (LOGIN / CADASTRO) ===== */
.hero-auth {
  min-height: 100vh;
  background:
    linear-gradient(
      to bottom,
      rgba(10,10,12,.75),
      rgba(10,10,12,.95)
    ),
    url("/static/img/hero-barber.jpg") center/cover no-repeat;

  display: flex;
  flex-direction: column;
}

.hero-auth .hero-content {
  margin-top: auto;
  padding-bottom: 120px;
}

/* ===== AUTH LAYOUT ===== */

.auth-hero {
  position: relative;
  min-height: 100vh;
  background: url("/static/img/hero-barber.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,12,.55),
    rgba(10,10,12,.95)
  );
}

.auth-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 28px;
  color: #fff;
}

.auth-brand {
  text-align: center;
  margin-bottom: 18px;
}

.auth-brand .brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.auth-content h1 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.auth-content p {
  color: var(--muted);
  margin-bottom: 24px;
}

.auth-form {
  background: rgba(20,20,24,.85);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  margin-bottom: 14px;
}

.input-group input::placeholder {
  color: #aaa;
}

.auth-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}


/* topo */
.hero-top {
  padding: 20px;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--primary);
}

/* conteúdo central */
.hero-content {
  padding: 24px;
  animation: heroFade .9s ease;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: 30px;
  line-height: 1.15;
  max-width: 90%;
}


.hero-content p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* CTA */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-actions a + a {
  margin-top: 6px;
}

/* cards abaixo */
.hero-features {
  padding: 20px;
  display: grid;
  gap: 14px;
  margin-top: -10px;
}

.feature-card {
  background: rgba(20,20,24,.9);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,.5);
  border-left: 4px solid var(--primary);
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.hero-content h1 {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
}

.hero-content {
  background: linear-gradient(
    to bottom,
    rgba(10,10,12,.55),
    rgba(10,10,12,.85)
  );
  border-radius: 28px;
}
/* LOGIN DENTRO DO HERO */

.login-card {
  background: rgba(20,20,24,.88);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
}

.login-card input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
  color: #fff;
  margin-bottom: 14px;
}

.login-card input::placeholder {
  color: #aaa;
}
/* ===== HERO SAAS PARA LOGIN ===== */

/* ===== HERO SAAS PARA LOGIN (CORREÇÃO FINAL) ===== */

.hero-saas.login {
  min-height: calc(100vh - 120px); /* header + bottom nav */
  justify-content: center;
}

.hero-saas.login .hero-content {
  margin: 0 auto;
  padding: 24px;
}

/* ---------- HOME HERO (APP) ---------- */

.home-hero {
  background:
    linear-gradient(
      to bottom,
      rgba(10,10,12,.55),
      rgba(10,10,12,.9)
    ),
    url("/static/img/hero-barber.jpg") center/cover no-repeat;

  border-radius: 28px;
  padding: 28px;
  margin-bottom: 24px;

  animation: heroFade .6s ease;
}

.home-hero h1 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.home-hero p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------- FEATURES ---------- */

.home-features {
  display: grid;
  gap: 14px;
}

/* ================= SERVIÇOS ================= */

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

/* =========================
   SERVICE CARD (PUBLIC)
========================= */

.service-card {
  position: relative;
  height: 150px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;

  background-color: #141418;
  background-size: cover;
  background-position: center;

  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* hover */
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.65);
}

/* radio invisível */
.service-card input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

/* overlay escuro */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.25),
    rgba(0,0,0,.85)
  );
  z-index: 1;
  transition: background .25s ease;
}

/* selecionado */
.service-card:has(input:checked)::before {
  background: linear-gradient(
    to bottom,
    rgba(255,183,3,.25),
    rgba(0,0,0,.85)
  );
}

/* borda de seleção */
.service-card:has(input:checked) {
  box-shadow:
    0 0 0 2px var(--primary),
    0 20px 50px rgba(255,180,0,.35);
}

/* info */
.service-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 16px;
}

/* nome */
.service-info strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

/* preço */
.service-info span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #ffb703;
}

/* descrição */
.service-info small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}

/* fallback sem imagem */
.service-card.no-image {
  background: linear-gradient(135deg, #1c1c22, #0f0f12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card.no-image::after {
  content: "✂️";
  font-size: 36px;
  opacity: .6;
  z-index: 2;
}


.btn.primary.full {
  position: relative;
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  transition: all .25s ease;
  overflow: hidden;
}
.btn.primary.full:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgb(139, 107, 2);
}

/* seleção visual */
.selectable {
  cursor: pointer;
  transition: 0.2s ease;
}

input[type="radio"]:checked + .selectable {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 2px rgba(255,183,3,.25);
}

.agenda-filtro {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.filtro-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  background: #1c1c22;
  border: 1px solid #2a2a2f;
  color: #fff;
  cursor: pointer;
}

.filtro-btn:hover {
  background: #2a2a2f;
  cursor: pointer;
}

.filtro-btn.active {
  background: #ffb703;
  color: #000;
  font-weight: 700;
  cursor: pointer;
}
.filtro-btn.active:hover {
  background: #e6a600;
  cursor: pointer;
}

.agenda-dia {
  background: #141416;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.agenda-dia h3 {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

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

.slot-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: #ffb703;
  color: #000;
  font-weight: 600;
}

.slot-btn.ocupado {
  background: #2a2a2f;
  color: #777;
}

/* ================= AGENDA ================= */

.agenda-dia {
  background: rgba(20, 20, 24, 0.9);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  animation: fadeUp .4s ease;
}

.agenda-dia h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.agenda-dia h3 span {
  font-size: 13px;
  color: var(--muted);
}

/* slots */
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-btn {
  padding: 10px 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 6px 18px rgba(255,180,0,.35);
}

/* hover */
.slot-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255,180,0,.55);
}

/* selecionado */
.slot-btn.selected {
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 3px var(--primary);
}

/* ocupado */
.slot-btn.ocupado {
  background: rgba(255,255,255,.08);
  color: #777;
  cursor: not-allowed;
  box-shadow: none;
}

.slot-btn.ocupado:hover {
  transform: none;
}

/* animação */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* filtros dias */
.dias-filtro {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.dias-filtro button {
  flex: 1;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.dias-filtro button:hover {
  background: rgba(255,255,255,.12);
}

.dias-filtro button.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  border-color: transparent;
}
.dias-filtro button.active:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.success-page {
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  font-size: 36px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-summary ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.success-summary li {
  padding: 6px 0;
  font-size: 14px;
}

.success-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.success-actions a {
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 22px rgba(255,180,0,.35);
  transition: all .25s ease;
}
.success-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,180,0,.55);
}

/* ===============================
   MEUS AGENDAMENTOS
================================ */

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agenda-card {
  background: rgba(20,20,24,.9);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  border-left: 4px solid var(--primary);
  animation: fadeUp .4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agenda-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agenda-header h3 {
  margin: 0;
  font-size: 16px;
  color: white;
}

.agenda-info {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

/* ===============================
   STATUS
================================ */

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.status-badge.pendente {
  margin-left: 10px;
  background: #ffb703;
  color: #000;
}

.status-badge.confirmado {
  margin-left: 10px;
  background: #3b82f6;
  color: #000;
}

.status-badge.cancelado {
  margin-left: 10px;
  background: #ef5350;
  color: #000;
}

.status-badge.finalizado {
  margin-left: 10px;
  background: #02ce0c;
  color: #000;
}

/* ===============================
   BOTÃO CANCELAR
================================ */

.btn-danger-outline {
  background: transparent;
  display: inline-block;
  margin-top: 12px;
  padding: 5px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid rgba(239,83,80,.6);
  color: #d81713;
  transition: all .2s ease;
}

.btn-danger-outline:hover {
  background: rgb(95, 5, 3);
}

/* ===============================
   EMPTY STATE
================================ */

/* EMPTY STATE PREMIUM */
.empty-state {
  margin-top: 40px;
  text-align: center;
  padding: 24px;
  background: rgba(20,20,24,.9);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.6);
  animation: fadeUp .4s ease;
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.empty-state h3 {
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
  color: var(--muted);
}



/* ===============================
   PERFIL
================================ */

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-card {
  background: rgba(20,20,24,.9);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.6);
}

.profile-avatar {
  width: 88px;
  height: 88px;
  margin: auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: #000;
}

.profile-card h2 {
  margin: 12px 0 4px;
}

.profile-email {
  font-size: 14px;
  color: var(--muted);
}

/* ===============================
   AÇÕES
================================ */

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-action {
  width: 100%;
  background: #151518;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.05);

  display: flex;
  justify-content: space-between;
  align-items: center;

  color: #fff;
  text-align: left;
  cursor: pointer;

  transition: all .25s ease;
}

.profile-action small {
  color: #a8a8a8;
  font-size: 13px;
}

.profile-action:hover {
  background: #1d1d22;
  transform: translateY(-1px);
}

.profile-action.danger {
  color: #ff4d4d;
}


.profile-action.disabled {
  opacity: .6;
  pointer-events: none;
}

/* =========================
   ADMIN DASHBOARD
========================= */

.admin-dashboard {
  max-width: 420px;
  margin: 0 auto;
}

/* HEADER */
.admin-header h1 {
  font-size: 22px;
  margin-bottom: 4px;
}

.admin-header p {
  font-size: 14px;
  opacity: .7;
}

/* STATS */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.stat-card {
  background: linear-gradient(180deg, #1a1a1f, #101014);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card strong {
  font-size: 28px;
  display: block;
}

.stat-card span {
  font-size: 13px;
  opacity: .7;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255,180,0,.25);
}

.stat-card.warning {
  border: 1px solid #ffb400;
}

.stat-card.muted {
  opacity: .8;
}

/* ACTIONS */
.admin-actions {
  margin-top: 32px;
}

.admin-actions h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

/* TODAY */
.admin-today {
  margin-top: 32px;
  background: linear-gradient(180deg, #141418, #0f0f12);
  border-radius: 16px;
  padding: 16px;
}

.admin-today h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.admin-today ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-today li {
  font-size: 14px;
  margin-bottom: 6px;
  opacity: .85;
}

/* =========================
   ADMIN SERVIÇOS
========================= */

.admin-servicos {
  max-width: 420px;
  margin: 0 auto;
}

/* CARD */
.admin-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #16161b, #0f0f12);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

.admin-card h2 {
  font-size: 16px;
  margin-bottom: 14px;
}

/* FORM */
.admin-form input,
.admin-form textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #0d0d10;
  color: #fff;
}

.admin-form textarea {
  resize: vertical;
  min-height: 70px;
}

/* LIST */
.admin-list {
  margin-top: 28px;
}

.admin-list h2 {
  font-size: 16px;
  margin-bottom: 10px;
}


.service-card.inactive {
  opacity: .5;
}

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

.service-info span {
  font-size: 13px;
  color: #ffb400;
}

.service-info small {
  font-size: 12px;
  opacity: .7;
}

.service-actions {
  display: flex;
  gap: 6px;
}

.btn-secondary.small {
  padding: 8px 12px;
  font-size: 12px;
}

/* ================= BARBEIROS ================= */

.agenda-card {
  display: block;
}

/* radio escondido */
.agenda-card input {
  display: none;
}

/* card */
.barber-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(20,20,24,.9);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  cursor: pointer;
  transition: all .25s ease;
}

/* hover */
.barber-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255,180,0,.25);
}

/* avatar */
.barber-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
  position: relative;
}

/* IMAGEM */
.barber-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  position: relative;
}

/* FALLBACK LETRA */
.barber-avatar span {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}


/* info */
.barber-info {
  flex: 1;
}

.barber-info strong {
  display: block;
  font-size: 16px;
}

.barber-info small {
  font-size: 13px;
  color: var(--muted);
}

/* check */
.barber-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #555;
  margin-left: auto;
  transition: all .2s ease;
}

/* selecionado (SEM :has) */
.agenda-card input:checked + .barber-card {
  box-shadow: 0 0 0 2px var(--primary);
}

.agenda-card input:checked + .barber-card .barber-check {
  background: var(--primary);
  border-color: var(--primary);
}

/* =========================
   ADMIN - SERVIÇOS (FINAL)
========================= */

.admin-services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-service-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #16161b, #0f0f12);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  align-items: center;
}

.admin-service-card.inactive {
  opacity: .55;
}

.admin-service-image {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

.admin-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-service-placeholder {
  width: 100%;
  height: 100%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c22;
}

.admin-service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-service-info strong {
  font-size: 15px;
}

.admin-service-info span {
  font-size: 13px;
  color: #ffb703;
  font-weight: 600;
}

.admin-service-info small {
  font-size: 12px;
  opacity: .7;
}

.admin-service-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-secondary.small,
.btn-danger.small {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
}

/* ADMIN AGENDA */

.admin-agenda {
  max-width: 420px;
  margin: auto;
}

.agenda-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.agenda-tabs .tab {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  background: #1c1c22;
  border: none;
  color: #fff;
  cursor: pointer;
}

.agenda-tabs .tab.active {
  background: #ffb703;
  color: #000;
  font-weight: 700;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.agenda-card {
  background: rgba(20,20,24,.9);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.agenda-card.confirmado { border-left: 4px solid #0064e6; }
.agenda-card.pendente { border-left: 4px solid #ffb703; }
.agenda-card.finalizado { border-left: 4px solid #02ce0c; }
.agenda-card.cancelado { border-left: 4px solid #ef5350; }

.agenda-card .actions {
  display: flex;
  gap: 6px;
}

.btn {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.btn.success { background: #00e676; color: #000; }
.btn.danger { background: #ef5350; color: #000; }

/* MODAL CANCELAMENTO */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none; /* ISSO É O MAIS IMPORTANTE */
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #141418;
  border-radius: 20px;
  padding: 24px;
  width: 90%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  animation: fadeUp .3s ease;
}

.modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

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

label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

.card-app select,
.card-app input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  margin-bottom: 14px;
}

/* ============================= */
/* CHIPS DE HORÁRIO (ADMIN) */
/* ============================= */

.horario-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 600;

  background: linear-gradient(135deg, #ffb703, #ff9f1c);
  color: #111;

  box-shadow:
    0 4px 12px rgba(255, 183, 3, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);

  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px rgba(255, 183, 3, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

/* Hora */
.chip span {
  letter-spacing: 0.3px;
}

/* Ícones (ativar / excluir) */
.chip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;

  background: rgba(0, 0, 0, 0.15);
  color: #111;

  transition: background 0.15s ease, transform 0.15s ease;
}

.chip a:hover {
  background: rgba(0, 0, 0, 0.25);
  transform: scale(1.1);
}

/* Botão excluir */
.chip-delete {
  background: rgba(255, 0, 0, 0.15) !important;
  color: #400 !important;
}

.chip-delete:hover {
  background: rgba(255, 0, 0, 0.25) !important;
}

/* Horário INATIVO */
.chip.inativo {
  background: linear-gradient(135deg, #555, #333);
  color: #bbb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.chip.inativo a {
  background: rgba(255, 255, 255, 0.1);
  color: #eee;
}

.chip.inativo:hover {
  opacity: 0.85;
}

/* ===================== */
/* BARBEIROS */
/* ===================== */

.barbeiros-grid {
  display: grid;
  gap: 16px;
}

.barbeiro-card {
  background: linear-gradient(145deg, #151515, #0f0f0f);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.barbeiro-card.inativo {
  opacity: 0.5;
}

.barbeiro-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffb703;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

.barbeiro-avatar span {
  font-size: 28px;
  font-weight: bold;
  color: #000;
}

.barbeiro-info {
  flex: 1;
}

.barbeiro-info h4 {
  margin: 0;
  font-size: 16px;
}

.barbeiro-info p {
  margin: 4px 0;
  font-size: 13px;
  color: #aaa;
}

.status {
  font-size: 12px;
  display: inline-block;
}

.status.ativo {
  color: #3ddc84;
}

.status.inativo {
  color: #ff5252;
}

/* Upload bonito */
.upload-label {
  display: block;
  padding: 14px;
  border-radius: 14px;
  background: #1c1c1c;
  text-align: center;
  cursor: pointer;
  color: #ffb703;
  margin-bottom: 12px;
}

.upload-label:hover {
  background: #222;
}
/* ===================== */
/* TEXTAREA PREMIUM */
/* ===================== */

textarea {
  width: 100%;
  background: #151515;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 90px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

textarea::placeholder {
  color: #777;
}

textarea:focus {
  outline: none;
  border-color: #ffb703;
  box-shadow: 0 0 0 2px rgba(255,183,3,0.2);
  background: #181818;
}
