/* ===== Design System ===== */
:root {
    --gold: #f5b942;
    --gold-light: #fef9ec;
    --gold-dark: #c8941a;
    --gold-gradient: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
    --green: #10b981;
    --green-dark: #059669;
    --green-gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --red: #ef4444;
    --blue: #3b82f6;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --gray-50: var(--slate-50);
    --gray-100: var(--slate-100);
    --gray-200: var(--slate-200);
    --gray-300: var(--slate-300);
    --gray-500: var(--slate-500);
    --gray-700: var(--slate-600);
    --gray-900: var(--slate-900);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
    --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--gray-900);
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* Visibilidade por dispositivo (CSS detecta tamanho da tela) */
.mobile-only { display: block; }
.desktop-only { display: none !important; }

html {
    background: var(--slate-100);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* ===== Shell mobile (cliente / login) ===== */
.mobile-app {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    position: relative;
}

.booking-body.mobile-app,
.login-body.mobile-app {
    margin: 0 auto;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding-top: env(safe-area-inset-top, 0);
}

.app-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    min-height: 52px;
}

.app-header-brand {
    font-size: 1.1rem;
}

.app-header h1 {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-header-logout {
    font-size: 0.75rem;
    color: var(--gray-700);
    text-decoration: none;
    padding: 6px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    white-space: nowrap;
}

.app-main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
}

.app-content {
    padding: 16px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 100;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.06);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px 12px;
    text-decoration: none;
    color: var(--slate-400);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    min-height: 58px;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--transition);
    position: relative;
}

.bottom-nav-item .nav-icon {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform var(--transition);
}

.bottom-nav-item.active {
    color: var(--gold-dark);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 0 0 4px 4px;
}

.bottom-nav-item.active .nav-icon {
    transform: scale(1.1);
}

/* ===== Admin ===== */
.admin-app {
    background: var(--gray-50);
    min-height: 100vh;
    min-height: 100dvh;
}

.admin-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

.desktop-sidebar {
    display: none;
}

.desktop-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 20px 32px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.desktop-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
}

.desktop-header-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.brand-icon { font-size: 1.5rem; }
.brand-text { font-weight: 700; font-size: 0.95rem; }

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 12px 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left: 3px solid var(--gold);
}

.sidebar-icon { font-size: 1.1rem; }

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(255,255,255,0.8);
}

.btn-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
}

.admin-app .app-content {
    padding: 12px 16px 16px;
}

.admin-app .card {
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: none;
    border: 1px solid var(--gray-200);
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-list-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 14px;
}

.admin-list-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.admin-list-card-top strong {
    font-size: 0.95rem;
}

.admin-list-meta {
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 2px;
}

.admin-list-date {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 6px 0;
}

.admin-status-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.admin-status-form label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.select-full {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    min-height: 48px;
}

.admin-edit-card {
    background: #fff;
}

.form-stack .form-group:last-of-type {
    margin-bottom: 8px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.card-actions {
    margin-top: 12px;
}

.delete-inline {
    margin-top: -4px;
    margin-bottom: 12px;
}

.link-card .btn {
    margin-top: 8px;
}

.link-card .btn-outline {
    margin-top: 8px;
}

.link-result {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.link-success-msg {
    font-size: 0.9rem;
    color: var(--green-dark);
    font-weight: 600;
    margin-bottom: 12px;
}

#btnGerarLink {
    margin-top: 4px;
}

/* ===== Cards & Forms ===== */
.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.card h2 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.01em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    border: 1px solid var(--slate-200);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.stat-card:nth-child(2)::before { background: var(--green-gradient); }
.stat-card:nth-child(3)::before { background: linear-gradient(135deg, #60a5fa, #3b82f6); }

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--slate-500);
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    min-height: 48px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.form-grid .full-width { grid-column: 1 / -1; }
.form-actions { margin-top: 8px; }

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-inline input {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
}

.link-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.link-box input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.8rem;
    background: var(--gray-50);
    word-break: break-all;
}

.preview-img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 50%;
    margin-top: 8px;
    object-fit: cover;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    text-decoration: none;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--slate-900);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: var(--slate-100); color: var(--slate-700); border: 1px solid var(--slate-200); }
.btn-secondary:hover { background: var(--slate-200); }

.btn-success {
    background: var(--green-gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-success:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.9; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover { background: var(--gray-100); }

.btn-back { background: var(--gray-200); color: var(--gray-900); }
.btn-back:hover { background: var(--gray-300); }

.btn-reservar {
    background: var(--gold-light);
    color: var(--gray-900);
    border: 1px solid var(--gold);
}

.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.input-sm {
    padding: 6px 8px !important;
    font-size: 0.85rem !important;
    width: auto;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
}

.input-lg {
    padding: 10px 14px;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    width: 100%;
}

/* ===== Table ===== */
.table-responsive { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.actions-cell { white-space: nowrap; }

.filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.filter-bar .btn {
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 14px;
}

/* ===== Alerts ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-error { background: #ffebee; color: #c62828; }

.text-muted { color: var(--gray-500); font-size: 0.9rem; }

/* ===== Status badges ===== */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-agendado { background: #e3f2fd; color: #1565c0; }
.status-finalizado { background: var(--gray-700); color: #fff; }
.status-cancelado { background: var(--red); color: #fff; }

/* ===== Profissionais admin ===== */
.prof-card {
    padding: 16px 0;
}

.prof-card-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.prof-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.prof-avatar.placeholder {
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.prof-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.prof-actions { margin-top: 12px; }
.delete-form { margin-bottom: 16px; }

/* ===== Login ===== */
.login-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-900);
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 90%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 16px;
    padding-top: calc(16px + env(safe-area-inset-top, 0));
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.login-brand .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--gold-gradient);
    border-radius: 18px;
    font-size: 1.75rem;
    margin-bottom: 4px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand h1 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--slate-900);
    margin-top: 12px;
}

.login-brand p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.login-form .form-group { margin-bottom: 20px; }

/* ===== BOOKING (Cliente) ===== */
.booking-body {
    background: #fff;
    min-height: 100vh;
    min-height: 100dvh;
}

.booking-body.mobile-app {
    box-shadow: none;
}

.booking-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: env(safe-area-inset-top, 0);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
}

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.platform-logo {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    color: var(--slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn-header {
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    min-height: 36px;
    color: var(--slate-700);
    -webkit-tap-highlight-color: transparent;
    transition: all var(--transition);
}

.btn-header:hover {
    background: var(--gold-light);
    border-color: var(--gold);
    color: var(--slate-900);
}

.business-welcome {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold-light) 0%, #fff 100%);
    margin: 0;
    border-bottom: 1px solid var(--slate-200);
}

.business-welcome-text {
    flex: 1;
    min-width: 0;
}

.business-welcome-text p {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--slate-600);
    margin: 0;
}

.business-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.business-info-item {
    font-size: 0.78rem;
    color: var(--slate-600);
    text-decoration: none;
    line-height: 1.35;
}

a.business-info-item:hover {
    color: var(--gold-dark);
}

.business-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: var(--shadow);
}

.business-logo.placeholder {
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.business-welcome p {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--slate-600);
}

.business-welcome strong {
    color: var(--slate-900);
    font-weight: 700;
}

.booking-main {
    padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0));
}

body.has-sticky-bar .booking-main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0));
}

.btn-step-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 16px 0 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--slate-500);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-step-back:hover {
    color: var(--slate-900);
}

.section-lead {
    margin: -4px 0 4px;
    font-size: 0.85rem;
    color: var(--slate-500);
    line-height: 1.45;
}

.booking-step {
    display: none;
    padding: 0 16px;
    animation: fadeInStep 0.35s ease;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.booking-step.active {
    display: block;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    padding: 20px 0 12px;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.subsection-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 20px 0 12px;
}

.hint-text {
    color: var(--gray-500);
    font-size: 0.85rem;
    text-align: center;
    padding: 16px 0;
}

/* Serviços — cards modernos */
.servicos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 8px;
}

.servico-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.servico-card:active {
    transform: scale(0.98);
}

.servico-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.servico-info { flex: 1; min-width: 0; }

.servico-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--slate-900);
    letter-spacing: -0.01em;
}

.servico-desc {
    font-size: 0.8rem;
    color: var(--slate-500);
    line-height: 1.35;
    margin: 0 0 8px;
}

.servico-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.servico-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--slate-500);
    font-weight: 500;
}

.servico-tag svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

.servico-tag.price {
    color: var(--gold-dark);
    font-weight: 700;
}

.btn-reservar-sm {
    background: var(--gold-light);
    border: none;
    color: var(--slate-900);
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
    min-height: 44px;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3);
    -webkit-tap-highlight-color: transparent;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-reservar-sm svg {
    width: 14px;
    height: 14px;
}

.btn-reservar-sm:hover {
    background: var(--gold-gradient);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Profissionais */
.profissionais-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0 12px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.prof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 80px;
    scroll-snap-align: start;
}

.prof-item .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    transition: border-color 0.2s;
}

.prof-item .avatar.placeholder {
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-700);
}

.prof-item.selected .avatar {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-light);
}

.prof-item span {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.selected-service-bar {
    background: var(--gold-light);
    padding: 14px 16px;
    margin: 12px -16px 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    border-top: 1px solid rgba(245, 158, 11, 0.15);
}

.selected-service-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.selected-service-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-500);
    margin-bottom: 2px;
}

.selected-service-meta {
    display: block;
    font-size: 0.78rem;
    color: var(--slate-600);
    margin-top: 2px;
}

.btn-link-change {
    border: none;
    background: #fff;
    color: var(--slate-700);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: inset 0 0 0 1px var(--slate-200);
    flex-shrink: 0;
}

.btn-link-change:hover {
    background: var(--slate-100);
}

/* Calendar strip */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cal-nav {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 12px;
    color: var(--gray-700);
}

#monthLabel {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: capitalize;
}

.dates-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    min-width: 56px;
    border: 2px solid transparent;
    transition: all 0.2s;
    scroll-snap-align: start;
}

.date-item:hover { background: var(--gray-100); }

.date-item.selected {
    background: var(--gold);
    border-color: var(--gold-dark);
}

.date-item.is-today:not(.selected) {
    border-color: var(--gold);
    background: #fffbeb;
}

.date-item.is-today .day-name {
    color: var(--gold-dark);
}

.date-item.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.date-item .day-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
}

.date-item.selected .day-name { color: var(--gray-900); }

.date-item .day-num {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Horários */
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.horario-btn {
    padding: 14px 8px;
    border: 1px solid var(--gray-300);
    border-radius: 24px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.horario-btn:hover { border-color: var(--gold); background: var(--gold-light); }

.horario-btn.selected {
    background: var(--gold);
    border-color: var(--gold-dark);
    font-weight: 700;
}

.horario-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Summary card */
.summary-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    margin: 12px 0 20px;
    position: relative;
}

.summary-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.summary-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid var(--slate-100);
}

.summary-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
}

.summary-block strong {
    font-size: 0.95rem;
    color: var(--slate-900);
}

.summary-price {
    color: var(--gold-dark) !important;
    font-size: 1.05rem !important;
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.summary-prof { font-size: 0.85rem; margin-top: 8px; }

.btn-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffcdd2;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.confirm-form { margin-top: 8px; }
.confirm-form .form-group { margin-bottom: 16px; }
.confirm-form label { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 6px; }
.confirm-form .field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--slate-500);
}
.confirm-form input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    min-height: 48px;
}

.confirm-form .btn { margin-top: 8px; }

/* Meus agendamentos */
.meus-list { margin-top: 16px; }

.meus-card {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.meus-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.meus-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.meus-card .avatar.placeholder {
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.meus-card h4 { font-size: 0.95rem; font-weight: 700; }
.meus-card .servico-nome { font-size: 0.85rem; color: var(--gray-700); }
.meus-card .data-hora { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; }
.meus-card .preco { font-size: 0.85rem; margin-top: 4px; }

.meus-card .status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* Success */
.success-card {
    text-align: center;
    padding: 40px 16px;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--green-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 200;
    padding: 0;
}

.modal-card {
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0));
    width: 100%;
    max-width: 430px;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: var(--shadow-lg);
}

.modal-icon {
    width: 72px;
    height: 72px;
    background: var(--green-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    margin: 8px auto 16px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.modal-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--slate-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.modal-close:hover { background: var(--slate-200); }

.login-body.mobile-app {
    width: 100%;
    box-shadow: none;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0.8; }
    to { transform: translateY(0); opacity: 1; }
}

.success-card h2 { margin-bottom: 8px; font-weight: 800; letter-spacing: -0.02em; }
.success-card p { color: var(--slate-600); margin-bottom: 24px; }

.modal-card p { font-size: 0.9rem; color: var(--slate-600); margin-bottom: 16px; line-height: 1.5; }
.modal-card .btn { margin-bottom: 8px; }

.loading {
    text-align: center;
    padding: 32px;
    color: var(--slate-400);
}

.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
}

.skeleton-card {
    height: 88px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

.skeleton-horarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.skeleton-horarios span {
    display: block;
    height: 48px;
    border-radius: 24px;
    background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

.booking-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--slate-200);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.booking-sticky-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-sticky-info strong {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-sticky-info span {
    font-size: 0.78rem;
    color: var(--slate-500);
}

.booking-sticky-bar .btn {
    flex-shrink: 0;
    min-width: 120px;
    min-height: 48px;
    padding: 12px 18px;
}

.whatsapp-fab {
    position: fixed;
    right: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0));
    z-index: 55;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform var(--transition), box-shadow var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-fab svg {
    width: 28px;
    height: 28px;
}

.whatsapp-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab:active {
    transform: scale(0.96);
}

body.has-sticky-bar .whatsapp-fab {
    bottom: calc(88px + env(safe-area-inset-bottom, 0));
}

.empty-state-page {
    text-align: center;
    padding: 48px 16px;
}

.empty-state-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.empty-state-page h1 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.empty-state-page p {
    color: var(--slate-500);
    font-size: 0.9rem;
    line-height: 1.5;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Progresso do agendamento */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 12px 16px 4px;
    background: #fff;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--slate-300);
    transition: all var(--transition);
}

.progress-step.active { color: var(--slate-900); }
.progress-step.active .progress-dot {
    background: var(--gold-gradient);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
    width: 10px;
    height: 10px;
}

.progress-step.done { color: var(--green-dark); }
.progress-step.done .progress-dot { background: var(--green); }

.progress-line {
    width: 24px;
    height: 2px;
    background: var(--slate-200);
    margin: 0 4px;
}

.progress-line.done { background: var(--green); }

/* Toast notifications */
.toast-container {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0));
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: var(--slate-900);
    color: #fff;
    padding: 14px 18px;
    border-radius: var(--radius-xs);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-12px);
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success { background: var(--green-dark); }
.toast-error { background: var(--red); }

/* Admin cards refinados */
.admin-list-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.admin-list-card:hover {
    box-shadow: var(--shadow);
}

.admin-app .app-header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(16px);
}

.link-card {
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.date-item.selected {
    background: var(--gold-gradient);
    border-color: transparent;
    color: var(--slate-900);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.horario-btn.selected {
    background: var(--gold-gradient);
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.prof-item.selected .avatar {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}

.summary-card {
    background: linear-gradient(135deg, var(--slate-50) 0%, #fff 100%);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin: 16px 0;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.busca-telefone-form {
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-200);
}

.busca-telefone-form .form-group {
    margin-bottom: 12px;
}

.busca-telefone-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--slate-700);
}

.busca-telefone-form input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-xs);
    font-size: 16px;
    font-family: inherit;
    min-height: 48px;
}

#btnNovoAgendamento {
    margin-bottom: 16px;
}

.btn-cancelar-agendamento {
    margin-top: 14px;
    background: #fff;
    color: var(--red);
    border: 1px solid #fecaca;
    min-height: 44px;
    font-size: 0.875rem;
    box-shadow: none;
}

.btn-cancelar-agendamento:hover {
    background: #fef2f2;
    transform: none;
}

.alert {
    border-radius: var(--radius-xs);
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.empty-msg {
    text-align: center;
    padding: 32px 16px;
    color: var(--slate-400);
    font-size: 0.9rem;
}

/* ===== Responsivo: tablet e PC (768px+) ===== */
@media (min-width: 768px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: flex !important; }

    /* Admin desktop */
    .admin-app {
        display: flex;
        background: var(--gray-100);
    }

    .desktop-sidebar {
        display: flex;
        flex-direction: column;
        width: 260px;
        background: linear-gradient(180deg, var(--slate-900) 0%, #1a2332 100%);
        color: #fff;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;
        box-shadow: 4px 0 24px rgba(15, 23, 42, 0.08);
    }

    .admin-shell {
        flex: 1;
        margin-left: 260px;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .admin-app .app-main {
        padding-bottom: 0;
        flex: 1;
    }

    .admin-app .app-content {
        padding: 24px 32px;
        max-width: 1200px;
    }

    .admin-app .card {
        box-shadow: var(--shadow);
        border: none;
        padding: 24px;
        margin-bottom: 20px;
    }

    .admin-app .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        max-width: 720px;
    }

    .admin-app .stat-card {
        padding: 24px;
    }

    .admin-app .stat-value { font-size: 2rem; }
    .admin-app .stat-label { font-size: 0.85rem; }

    .admin-app .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .admin-app .admin-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
    }

    .admin-app .link-box {
        flex-direction: row;
        align-items: center;
    }

    .admin-app .link-box input { flex: 1; }

    .admin-app .link-card .btn,
    .admin-app .link-card .btn-outline {
        display: inline-flex;
        width: auto;
        margin-top: 12px;
        margin-right: 8px;
    }

    .admin-app .form-group input,
    .admin-app .form-group select {
        font-size: 0.95rem;
        min-height: 42px;
        padding: 10px 14px;
    }

    .admin-app .btn {
        min-height: 42px;
        padding: 10px 20px;
    }

    .admin-app .btn-block {
        width: auto;
    }

    .admin-app .form-stack .btn-block {
        width: auto;
    }

    /* Cliente / login no PC: painel centralizado */
    .booking-body.mobile-app {
        max-width: 480px;
        margin: 24px auto;
        min-height: calc(100vh - 48px);
        min-height: calc(100dvh - 48px);
        border-radius: 16px;
        box-shadow: 0 8px 40px rgba(0,0,0,0.12);
        overflow: hidden;
    }

    .booking-sticky-bar {
        left: 50%;
        transform: translateX(-50%);
        max-width: 480px;
        border-radius: 0 0 16px 16px;
    }

    .whatsapp-fab {
        right: max(16px, calc(50% - 224px));
    }

    body.has-sticky-bar .whatsapp-fab {
        bottom: calc(88px + env(safe-area-inset-bottom, 0));
    }

    .login-body.mobile-app {
        max-width: 420px;
        margin: 0 auto;
        box-shadow: none;
        background: transparent;
    }

    .login-card {
        box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }

    /* Modal centralizado no PC */
    .modal-overlay {
        align-items: center;
        padding: 16px;
    }

    .modal-card {
        border-radius: 16px;
        padding: 24px;
        animation: fadeIn 0.2s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    .servico-meta {
        flex-direction: row;
        gap: 16px;
    }

    .horarios-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 400px;
    }
}

/* PC grande */
@media (min-width: 1200px) {
    .admin-app .app-content {
        padding: 32px 48px;
    }

    .admin-app .admin-list {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

/* WhatsApp */
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-family: inherit;
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.subsection-inline {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.whatsapp-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
    border: 1px solid #a7f3d0 !important;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #1ebe57;
    filter: none;
    transform: translateY(-1px);
}

.agenda-detalhes {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xs);
    padding: 12px 14px;
}

.agenda-detalhes summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--slate-700);
}

.agenda-horarios input {
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.whatsapp-status {
    font-size: 0.9rem;
    color: var(--green-dark);
    font-weight: 600;
    margin-bottom: 12px;
    padding: 12px;
    background: #ecfdf5;
    border-radius: var(--radius-xs);
}

/* ===== Layout organizado ===== */
.page-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-intro {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.5;
    margin-bottom: 4px;
}

.card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-200);
}

.card-head.compact {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.card-head.compact h2 {
    margin: 0;
    font-size: 1.05rem;
}

.card-head h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.card-head p {
    font-size: 0.85rem;
    color: var(--slate-500);
    line-height: 1.4;
}

.card-icon {
    width: 44px;
    height: 44px;
    background: var(--slate-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.card-accent {
    border-left: 4px solid var(--gold) !important;
}

.card-accent .card-icon {
    background: var(--gold-light);
}

.card-footer-actions {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--slate-500);
    line-height: 1.45;
}

.label-block {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--slate-700);
}

/* Dias da semana — pills */
.days-pill-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.day-pill {
    cursor: pointer;
}

.day-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.day-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    border-radius: 10px;
    border: 1px solid var(--slate-200);
    background: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-500);
    transition: all var(--transition);
    min-height: 40px;
}

.day-pill input:checked + span {
    background: var(--gold-gradient);
    border-color: transparent;
    color: var(--slate-900);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.input-highlight {
    font-size: 1rem !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.horarios-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.horario-chip {
    background: var(--gold-light);
    color: var(--slate-800);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.logo-upload-row .logo-upload-box {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.preview-img-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--slate-200);
    flex-shrink: 0;
}

.preview-img-lg.placeholder {
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.inner-fields {
    margin-top: 12px;
}

/* Toggle cards */
.toggle-row {
    margin-bottom: 0;
}

.toggle-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xs);
    cursor: pointer;
    width: 100%;
}

.toggle-card input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--gold-dark);
    flex-shrink: 0;
}

.toggle-card strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.toggle-card small {
    font-size: 0.78rem;
    color: var(--slate-500);
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: var(--slate-400);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--slate-200);
}

/* Dashboard */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xs);
    text-decoration: none;
    color: var(--slate-700);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    transition: all var(--transition);
    min-height: 52px;
}

.quick-action-btn:hover {
    border-color: var(--gold);
    background: var(--gold-light);
    color: var(--slate-900);
}

.link-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-decoration: none;
    white-space: nowrap;
}

.btn-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.empty-state {
    text-align: center;
    padding: 24px 16px;
    color: var(--slate-400);
    font-size: 0.9rem;
}

.flat-list {
    gap: 0 !important;
}

.flat-list .admin-list-card {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: none;
    background: transparent;
    padding: 14px 0;
}

.flat-list .admin-list-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.flat-list .admin-list-card:first-child {
    padding-top: 0;
}

.flat-list .delete-inline {
    margin-top: 8px;
    margin-bottom: 0;
}

.flat-list .prof-card {
    padding: 0;
}

.flat-list .admin-edit-card {
    margin-bottom: 0;
}

.card .filter-bar {
    margin-top: -4px;
}

.prof-fields .toggle-card {
    margin-top: 8px;
}

.card-head.compact .text-muted {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Catálogo — serviços e equipe */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.catalog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalog-item {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.catalog-form {
    padding: 16px;
}

.catalog-item-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--slate-200);
}

.catalog-item-icon {
    width: 44px;
    height: 44px;
    background: var(--gold-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.catalog-item-main {
    flex: 1;
    min-width: 0;
}

.catalog-title-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-900);
    padding: 0;
    margin-bottom: 8px;
    font-family: inherit;
}

.catalog-title-input:focus {
    outline: none;
    box-shadow: 0 2px 0 var(--gold);
}

.catalog-meta,
.catalog-prof-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.meta-chip {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-600);
    background: #fff;
    border: 1px solid var(--slate-200);
    padding: 4px 10px;
    border-radius: 20px;
}

.meta-chip.meta-price {
    color: var(--gold-dark);
    background: var(--gold-light);
    border-color: rgba(245, 158, 11, 0.25);
}

.meta-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 6px;
}

.meta-badge-active {
    background: #ecfdf5;
    color: #047857;
}

.meta-badge-inactive {
    background: var(--slate-200);
    color: var(--slate-500);
}

.catalog-item-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalog-item-body .form-group {
    margin-bottom: 0;
}

.catalog-item-section {
    margin-top: 4px;
}

.catalog-item-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--slate-200);
}

.catalog-delete {
    padding: 0 16px 16px;
    margin-top: -4px;
}

.toggle-card.compact {
    padding: 10px 12px;
}

/* Profissional no catálogo */
.catalog-prof-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--slate-200);
}

.catalog-prof-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--slate-200);
}

.catalog-prof-avatar.placeholder {
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.catalog-prof-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-file-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-dark);
    cursor: pointer;
}

.catalog-file-label input[type="file"] {
    font-size: 0.75rem;
    max-width: 100%;
}

/* Serviços como chips selecionáveis */
.service-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-chip {
    cursor: pointer;
}

.service-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-chip span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--slate-200);
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-600);
    transition: all var(--transition);
}

.service-chip input:checked + span {
    background: var(--gold-gradient);
    border-color: transparent;
    color: var(--slate-900);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

@media (min-width: 768px) {
    .catalog-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .catalog-item-prof {
        grid-column: 1 / -1;
    }
}

/* Tabela de serviços — colunas na mesma linha */
.sr-only-fields {
    display: none;
}

.service-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.service-table {
    min-width: 520px;
}

.service-table-head,
.service-table-row {
    display: grid;
    grid-template-columns: minmax(100px, 2fr) 88px 96px 52px 108px;
    gap: 8px;
    align-items: center;
}

.service-table-head {
    padding: 0 8px 10px;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 6px;
}

.service-table-head span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
}

.service-table-row {
    padding: 6px 8px;
    border-radius: 8px;
}

.service-table-row:nth-child(even) {
    background: var(--slate-50);
}

.service-table-row:hover {
    background: #fffbeb;
}

.service-col input[type="text"],
.service-col input[type="number"] {
    width: 100%;
    padding: 8px 8px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
    min-height: 38px;
}

.service-col input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.service-col-duracao,
.service-col-preco {
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-col-duracao input,
.service-col-preco input {
    flex: 1;
    min-width: 0;
}

.col-suffix,
.col-prefix {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    flex-shrink: 0;
}

.service-col-ativo {
    display: flex;
    justify-content: center;
}

.service-col-acoes {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}

.service-col-acoes .btn-sm {
    min-height: 38px;
    padding: 6px 10px;
}

.switch-ativo {
    cursor: pointer;
    display: inline-flex;
}

.switch-ativo input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-ativo-ui {
    width: 42px;
    height: 24px;
    background: var(--slate-300);
    border-radius: 20px;
    position: relative;
    transition: background var(--transition);
}

.switch-ativo-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.switch-ativo input:checked + .switch-ativo-ui {
    background: var(--gold);
}

.switch-ativo input:checked + .switch-ativo-ui::after {
    transform: translateX(18px);
}

@media (min-width: 768px) {
    .service-table-head,
    .service-table-row {
        grid-template-columns: minmax(140px, 2.5fr) 100px 110px 56px 120px;
        gap: 12px;
    }
}

/* Tabela de equipe — colunas na mesma linha */
.team-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.team-table {
    min-width: 640px;
}

.team-table-head,
.team-table-row {
    display: grid;
    grid-template-columns: 72px minmax(100px, 1.2fr) minmax(160px, 2fr) 52px 108px;
    gap: 8px;
    align-items: center;
}

.team-table-head {
    padding: 0 8px 10px;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 6px;
}

.team-table-head span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
}

.team-table-row {
    padding: 8px;
    border-radius: 8px;
}

.team-table-row:nth-child(even) {
    background: var(--slate-50);
}

.team-table-row:hover {
    background: #fffbeb;
}

.team-col-foto {
    display: flex;
    align-items: center;
    gap: 4px;
}

.team-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--slate-200);
}

.team-avatar.placeholder {
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.team-foto-btn {
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity var(--transition);
    flex-shrink: 0;
}

.team-foto-btn:hover {
    opacity: 1;
}

.team-foto-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.team-col-nome input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
    min-height: 38px;
}

.team-col-nome input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.team-col-servicos {
    min-width: 0;
}

.team-service-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.service-chip-mini span {
    padding: 5px 8px;
    font-size: 0.68rem;
    white-space: nowrap;
}

.team-col-ativo {
    display: flex;
    justify-content: center;
}

.team-col-acoes {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}

.team-col-acoes .btn-sm {
    min-height: 38px;
    padding: 6px 10px;
}

@media (min-width: 768px) {
    .team-table {
        min-width: 720px;
    }

    .team-table-head,
    .team-table-row {
        grid-template-columns: 80px minmax(120px, 1.2fr) minmax(200px, 2.5fr) 56px 120px;
        gap: 12px;
    }

    .team-service-chips {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* Horários por profissional */
.agenda-prof-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.agenda-prof-card {
    padding: 16px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xs);
}

.agenda-prof-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-200);
    flex-wrap: wrap;
}

.agenda-prof-title {
    flex: 1;
    min-width: 120px;
}

.agenda-prof-meta {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--slate-500);
}

.agenda-copy-prof {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.agenda-copy-prof select {
    flex: 1;
    min-width: 0;
}

.agenda-defaults {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xs);
}

.agenda-defaults .inner-fields {
    margin-top: 8px;
}

.agenda-prof-head strong {
    font-size: 1rem;
}

.agenda-prof-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Abas de dia (selecionar dia para editar) */
.days-tab-grid {
    gap: 6px;
}

.day-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 10px;
    border: 1px solid var(--slate-200);
    background: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-500);
    cursor: pointer;
    min-height: 44px;
    transition: all var(--transition);
    font-family: inherit;
}

.day-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
}

.day-tab.active .day-tab-count {
    background: rgba(15, 23, 42, 0.12);
}

.day-tab.has-hours:not(.active) .day-tab-count {
    background: rgba(245, 158, 11, 0.25);
}

.agenda-dia-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.agenda-day-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.agenda-day-actions .btn {
    flex: 0 1 auto;
}

.agenda-empty-day {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px dashed var(--slate-300);
    border-radius: var(--radius-xs);
    background: #fff;
    margin-bottom: 10px;
}

.agenda-empty-day p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--slate-500);
}

.agenda-prof-horarios.is-hidden {
    display: none;
}

.day-tab:hover {
    border-color: var(--gold);
}

.day-tab.active {
    background: var(--gold-gradient);
    border-color: transparent;
    color: var(--slate-900);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.day-tab.has-hours:not(.active) {
    border-color: var(--gold-dark);
    color: var(--slate-800);
    background: #fffbeb;
}

.agenda-dia-panels {
    margin-top: 4px;
}

.agenda-dia-panel {
    display: none;
    padding-top: 4px;
}

.agenda-dia-panel.active {
    display: block;
}

.agenda-copy-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--slate-200);
}

.copy-target-grid {
    margin: 10px 0;
}

.agenda-copy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.agenda-copy-actions .btn {
    flex: 1;
    min-width: 140px;
}

.agenda-preview-item span {
    display: block;
    margin-top: 2px;
}

.agenda-prof-horarios {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.agenda-hora-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agenda-hora-row input[type="time"] {
    flex: 1;
}

.agenda-preview {
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.agenda-preview-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: var(--gold-light);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-size: 0.85rem;
}

.agenda-preview-item strong {
    color: var(--slate-800);
}

.agenda-preview-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.agenda-preview-chip {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-size: 0.75rem;
    color: var(--slate-700);
    line-height: 1.3;
}

.agenda-preview-chip em {
    font-style: normal;
    font-weight: 800;
    color: var(--gold-dark);
}

.agenda-preview-item span {
    color: var(--slate-600);
}

.agenda-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.agenda-slot-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xs);
}

.agenda-slot-row .form-group {
    margin-bottom: 0;
}

.btn-remove-slot {
    width: 40px;
    height: 40px;
    border: 1px solid var(--slate-200);
    background: #fff;
    border-radius: 10px;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--slate-500);
    cursor: pointer;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.btn-remove-slot:hover {
    border-color: var(--red);
    color: var(--red);
    background: #fff5f5;
}

#btnAddAgendaSlot {
    margin-top: 10px;
}

@media (max-width: 520px) {
    .agenda-slot-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .agenda-slot-row .form-group:first-child {
        grid-column: 1 / -1;
    }

    .btn-remove-slot {
        grid-row: 2;
        grid-column: 2;
    }
}

@media (max-width: 480px) {
    .days-pill-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .page-stack {
        gap: 20px;
        max-width: 720px;
    }

    .admin-app .app-content .page-stack {
        max-width: none;
    }

    .days-pill-grid {
        max-width: 480px;
    }

    .agenda-copy-prof {
        width: auto;
        margin-top: 0;
        margin-left: auto;
        max-width: 280px;
    }

    .card-head h2 {
        font-size: 1.15rem;
    }
}
