/* ============================================================
   BEAUTYFLOW - Design System Premium
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* ── CSS VARIABLES ── */
:root {
  /* Brand Colors */
  --bf-pink:        #EC4899;
  --bf-pink-light:  #F9A8D4;
  --bf-pink-dark:   #BE185D;
  --bf-violet:      #8B5CF6;
  --bf-violet-light:#C4B5FD;
  --bf-violet-dark: #6D28D9;
  --bf-teal:        #2DD4BF;
  --bf-gold:        #F59E0B;
  --bf-gold-light:  #FDE68A;

  /* Neutrals */
  --bf-white:       #FFFFFF;
  --bf-gray-50:     #F9FAFB;
  --bf-gray-100:    #F3F4F6;
  --bf-gray-200:    #E5E7EB;
  --bf-gray-300:    #D1D5DB;
  --bf-gray-400:    #9CA3AF;
  --bf-gray-500:    #6B7280;
  --bf-gray-600:    #4B5563;
  --bf-gray-700:    #374151;
  --bf-gray-800:    #1F2937;
  --bf-gray-900:    #111827;

  /* Gradients */
  --bf-gradient-primary: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
  --bf-gradient-soft:    linear-gradient(135deg, #FDF2F8 0%, #F5F3FF 100%);
  --bf-gradient-dark:    linear-gradient(135deg, #1F2937 0%, #111827 100%);
  --bf-gradient-gold:    linear-gradient(135deg, #F59E0B 0%, #EC4899 100%);
  --bf-gradient-teal:    linear-gradient(135deg, #2DD4BF 0%, #8B5CF6 100%);

  /* Glass */
  --bf-glass-bg:     rgba(255, 255, 255, 0.7);
  --bf-glass-border: rgba(255, 255, 255, 0.3);
  --bf-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Shadows */
  --bf-shadow-xs:  0 1px 2px rgba(0,0,0,.05);
  --bf-shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --bf-shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --bf-shadow-lg:  0 8px 32px rgba(0,0,0,.10);
  --bf-shadow-xl:  0 16px 48px rgba(0,0,0,.12);
  --bf-shadow-pink: 0 8px 24px rgba(236,72,153,.25);
  --bf-shadow-violet: 0 8px 24px rgba(139,92,246,.25);

  /* Typography */
  --bf-font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bf-font-serif:  'Playfair Display', Georgia, serif;

  /* Radius */
  --bf-radius-sm:   6px;
  --bf-radius-md:   12px;
  --bf-radius-lg:   16px;
  --bf-radius-xl:   24px;
  --bf-radius-full: 9999px;

  /* Transitions */
  --bf-ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --bf-duration:    200ms;

  /* Sidebar */
  --bf-sidebar-w:   260px;
  --bf-topbar-h:    64px;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--bf-font);
  color: var(--bf-gray-800);
  background: var(--bf-gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--bf-gray-900); }
.font-serif { font-family: var(--bf-font-serif) !important; }
.text-gradient {
  background: var(--bf-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: var(--bf-gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bf-gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bf-gray-400); }

/* ── BUTTONS ── */
.btn-bf-primary {
  background: var(--bf-gradient-primary);
  color: white;
  border: none;
  padding: .625rem 1.5rem;
  border-radius: var(--bf-radius-full);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: all var(--bf-duration) var(--bf-ease);
  box-shadow: var(--bf-shadow-pink);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.btn-bf-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(236,72,153,.35);
  color: white;
}
.btn-bf-primary:active { transform: translateY(0); }

.btn-bf-outline {
  background: transparent;
  color: var(--bf-pink);
  border: 2px solid var(--bf-pink);
  padding: .5rem 1.5rem;
  border-radius: var(--bf-radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--bf-duration) var(--bf-ease);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.btn-bf-outline:hover {
  background: var(--bf-gradient-primary);
  color: white;
  border-color: transparent;
}

.btn-bf-ghost {
  background: var(--bf-glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bf-glass-border);
  padding: .5rem 1.25rem;
  border-radius: var(--bf-radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--bf-duration) var(--bf-ease);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-bf-ghost:hover { background: var(--bf-gray-100); }

.btn-bf-danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  border: none;
  padding: .5rem 1.25rem;
  border-radius: var(--bf-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--bf-duration) var(--bf-ease);
}
.btn-bf-danger:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239,68,68,.3); }

/* ── CARDS ── */
.bf-card {
  background: var(--bf-white);
  border-radius: var(--bf-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--bf-shadow-sm);
  border: 1px solid var(--bf-gray-100);
  transition: box-shadow var(--bf-duration) var(--bf-ease);
}
.bf-card:hover { box-shadow: var(--bf-shadow-md); }

.bf-card-glass {
  background: var(--bf-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bf-glass-border);
  border-radius: var(--bf-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--bf-glass-shadow);
}

.bf-card-gradient {
  background: var(--bf-gradient-primary);
  border-radius: var(--bf-radius-lg);
  padding: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.bf-card-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
}

/* ── FONT WEIGHT UTILITIES ── */
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

/* ── STAT CARD (horizontal — usado no Caixa) ── */
.bf-stat-card {
  background: var(--bf-white);
  border-radius: var(--bf-radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--bf-shadow-sm);
  border: 1px solid var(--bf-gray-100);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--bf-duration) var(--bf-ease);
  height: 100%;
}
.bf-stat-card:hover { transform: translateY(-2px); box-shadow: var(--bf-shadow-md); }
.bf-stat-card .bf-stat-icon {
  flex-shrink: 0;
  margin-bottom: 0;
  color: white;
}
.bf-stat-card .bf-stat-icon i { color: white; }
.bf-stat-card .bf-stat-value { font-size: 1.35rem; }

/* ── STAT CARDS ── */
.bf-stat {
  background: var(--bf-white);
  border-radius: var(--bf-radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--bf-shadow-sm);
  border: 1px solid var(--bf-gray-100);
  position: relative;
  overflow: hidden;
  transition: all var(--bf-duration) var(--bf-ease);
}
.bf-stat:hover { transform: translateY(-2px); box-shadow: var(--bf-shadow-md); }
.bf-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--bf-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: .75rem;
  color: white;
}
.bf-stat-icon i { color: white; }
.bf-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--bf-gray-900);
}
.bf-stat-label {
  font-size: .8rem;
  color: var(--bf-gray-500);
  margin-top: .25rem;
  font-weight: 500;
}
.bf-stat-change {
  font-size: .75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-top: .5rem;
}
.bf-stat-change.up { color: #10B981; }
.bf-stat-change.down { color: #EF4444; }

/* ── SIDEBAR ── */
.bf-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--bf-sidebar-w);
  background: var(--bf-gray-900);
  border-right: 1px solid rgba(255,255,255,.05);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform .3s var(--bf-ease);
}
.bf-sidebar-logo {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.bf-sidebar-logo img { height: 36px; }
.bf-sidebar-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--bf-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}
.bf-sidebar-nav { flex: 1; padding: 1rem 0; }
.bf-sidebar-section {
  padding: .5rem 1.5rem .25rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-top: .5rem;
}
.bf-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem 1.5rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--bf-duration) var(--bf-ease);
  position: relative;
  margin: 1px 0;
}
.bf-nav-item:hover {
  color: white;
  background: rgba(255,255,255,.06);
}
.bf-nav-item.active {
  color: white;
  background: linear-gradient(135deg, rgba(236,72,153,.2), rgba(139,92,246,.2));
}
.bf-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--bf-gradient-primary);
  border-radius: 0 2px 2px 0;
}
.bf-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  opacity: .8;
}
.bf-nav-badge {
  margin-left: auto;
  background: var(--bf-gradient-primary);
  color: white;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: var(--bf-radius-full);
}
.bf-sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.bf-user-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .875rem;
  border-radius: var(--bf-radius-md);
  cursor: pointer;
  transition: background var(--bf-duration);
}
.bf-user-card:hover { background: rgba(255,255,255,.06); }
.bf-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bf-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
  overflow: hidden;
}
.bf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bf-user-info { flex: 1; min-width: 0; }
.bf-user-name {
  font-size: .8rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bf-user-role {
  font-size: .7rem;
  color: rgba(255,255,255,.4);
}

/* ── TOPBAR ── */
.bf-topbar {
  position: fixed;
  top: 0;
  left: var(--bf-sidebar-w);
  right: 0;
  height: var(--bf-topbar-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bf-gray-200);
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}
.bf-topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bf-gray-900);
}
.bf-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.bf-notification-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--bf-radius-md);
  border: 1px solid var(--bf-gray-200);
  background: var(--bf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--bf-gray-600);
  font-size: 1rem;
  transition: all var(--bf-duration);
}
.bf-notification-btn:hover { background: var(--bf-gray-50); color: var(--bf-pink); }
.bf-notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--bf-pink);
  border-radius: 50%;
  border: 2px solid white;
}

/* ── MAIN CONTENT ── */
.bf-main {
  margin-left: var(--bf-sidebar-w);
  padding-top: var(--bf-topbar-h);
  min-height: 100vh;
}
.bf-content {
  padding: 1.75rem;
  max-width: 1400px;
}

/* ── PAGE HEADER ── */
.bf-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}
.bf-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bf-gray-900);
}
.bf-page-subtitle {
  font-size: .875rem;
  color: var(--bf-gray-500);
  margin-top: .2rem;
  font-weight: 400;
}

/* ── TABLE ── */
.bf-table-wrap {
  background: white;
  border-radius: var(--bf-radius-lg);
  overflow: hidden;
  box-shadow: var(--bf-shadow-sm);
  border: 1px solid var(--bf-gray-100);
}
.bf-table {
  width: 100%;
  border-collapse: collapse;
}
.bf-table th {
  background: var(--bf-gray-50);
  padding: .75rem 1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bf-gray-500);
  border-bottom: 1px solid var(--bf-gray-200);
  text-align: left;
}
.bf-table td {
  padding: .875rem 1rem;
  font-size: .875rem;
  color: var(--bf-gray-700);
  border-bottom: 1px solid var(--bf-gray-100);
  vertical-align: middle;
}
.bf-table tr:last-child td { border-bottom: none; }
.bf-table tr:hover td { background: var(--bf-gray-50); }

/* ── FORMS ── */
.bf-form-group { margin-bottom: 1.25rem; }
.bf-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--bf-gray-700);
  margin-bottom: .4rem;
  letter-spacing: .01em;
}
.bf-input,
.bf-select,
.bf-textarea {
  width: 100%;
  padding: .625rem 1rem;
  border: 1.5px solid var(--bf-gray-200);
  border-radius: var(--bf-radius-md);
  font-size: .875rem;
  font-family: var(--bf-font);
  color: var(--bf-gray-800);
  background: var(--bf-white);
  transition: all var(--bf-duration) var(--bf-ease);
  outline: none;
  appearance: none;
}
.bf-input:focus, .bf-select:focus, .bf-textarea:focus {
  border-color: var(--bf-pink);
  box-shadow: 0 0 0 3px rgba(236,72,153,.1);
}
.bf-input::placeholder { color: var(--bf-gray-400); }
.bf-textarea { resize: vertical; min-height: 100px; }
.bf-input-icon { position: relative; }
.bf-input-icon .bf-input { padding-left: 2.75rem; }
.bf-input-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bf-gray-400);
}

/* ── BADGES ── */
.bf-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .6rem;
  border-radius: var(--bf-radius-full);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.bf-badge-pink      { background: #FDF2F8; color: var(--bf-pink-dark); }
.bf-badge-violet    { background: #F5F3FF; color: var(--bf-violet-dark); }
.bf-badge-green     { background: #ECFDF5; color: #065F46; }
.bf-badge-yellow    { background: #FFFBEB; color: #92400E; }
.bf-badge-red       { background: #FEF2F2; color: #991B1B; }
.bf-badge-gray      { background: var(--bf-gray-100); color: var(--bf-gray-600); }
.bf-badge-teal      { background: #F0FDFA; color: #0F766E; }
/* Status aliases */
.bf-badge-success   { background: #ECFDF5; color: #065F46; }
.bf-badge-warning   { background: #FFFBEB; color: #92400E; }
.bf-badge-danger    { background: #FEF2F2; color: #991B1B; }
.bf-badge-secondary { background: var(--bf-gray-100); color: var(--bf-gray-600); }
.bf-badge-info      { background: #EFF6FF; color: #1E40AF; }

/* ── STATUS INDICATORS ── */
.bf-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.bf-status-dot.online  { background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.bf-status-dot.warning { background: var(--bf-gold); }
.bf-status-dot.error   { background: #EF4444; }
.bf-status-dot.offline { background: var(--bf-gray-300); }

/* ── MODAL ── */
.bf-modal .modal-content {
  border: none;
  border-radius: var(--bf-radius-xl);
  box-shadow: var(--bf-shadow-xl);
  overflow: hidden;
}
.bf-modal .modal-header {
  background: var(--bf-gradient-soft);
  border-bottom: 1px solid var(--bf-gray-200);
  padding: 1.25rem 1.5rem;
}
.bf-modal .modal-title { font-weight: 700; font-size: 1.1rem; }
.bf-modal .modal-footer {
  border-top: 1px solid var(--bf-gray-100);
  padding: 1rem 1.5rem;
}

/* ── ALERT ── */
.bf-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--bf-radius-md);
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 1px solid transparent;
}
.bf-alert-success { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.bf-alert-warning { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.bf-alert-error   { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.bf-alert-info    { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }

/* ── LOADING / SKELETON ── */
.bf-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: bf-shimmer 1.5s infinite;
  border-radius: var(--bf-radius-md);
}
@keyframes bf-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.bf-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--bf-gray-200);
  border-top-color: var(--bf-pink);
  border-radius: 50%;
  animation: bf-spin .6s linear infinite;
}
@keyframes bf-spin { to { transform: rotate(360deg); } }

/* ── AGENDA / CALENDAR ── */
.bf-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid var(--bf-gray-100);
}
.bf-calendar-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.bf-calendar-nav button {
  width: 34px;
  height: 34px;
  border-radius: var(--bf-radius-md);
  border: 1px solid var(--bf-gray-200);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--bf-gray-600);
  font-size: .9rem;
  transition: all var(--bf-duration);
}
.bf-calendar-nav button:hover { background: var(--bf-pink); color: white; border-color: var(--bf-pink); }

.bf-time-slot {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--bf-gray-100);
  min-height: 60px;
}
.bf-time-label {
  width: 56px;
  padding: .5rem;
  font-size: .7rem;
  color: var(--bf-gray-400);
  border-right: 1px solid var(--bf-gray-100);
  flex-shrink: 0;
  font-weight: 500;
}
.bf-event {
  flex: 1;
  margin: 2px;
  padding: .375rem .625rem;
  border-radius: var(--bf-radius-sm);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  border-left: 3px solid transparent;
  transition: all var(--bf-duration);
}
.bf-event:hover { filter: brightness(.95); transform: translateX(2px); }
.bf-event-aguardando  { background: #FFFBEB; border-color: var(--bf-gold); color: #92400E; }
.bf-event-confirmado  { background: #EFF6FF; border-color: #3B82F6; color: #1E40AF; }
.bf-event-concluido   { background: #ECFDF5; border-color: #10B981; color: #065F46; }
.bf-event-cancelado   { background: #FEF2F2; border-color: #EF4444; color: #991B1B; text-decoration: line-through; }
.bf-event-nao_compareceu { background: #F9FAFB; border-color: var(--bf-gray-400); color: var(--bf-gray-500); }

/* ── BEAUTYLINK PAGE ── */
.bf-beautylink-page {
  min-height: 100vh;
  background: var(--bf-gradient-soft);
}
.bf-beautylink-hero {
  background: var(--bf-gradient-primary);
  padding: 3rem 1.5rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.bf-beautylink-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
}

/* ── ANIMATIONS ── */
@keyframes bf-fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bf-slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes bf-pulse-pink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236,72,153,.4); }
  50%       { box-shadow: 0 0 0 12px rgba(236,72,153,0); }
}

.bf-animate-in { animation: bf-fadeIn .4s var(--bf-ease) both; }
.bf-animate-slide { animation: bf-slideIn .3s var(--bf-ease) both; }

/* Delay helpers */
.bf-delay-1 { animation-delay: .1s; }
.bf-delay-2 { animation-delay: .2s; }
.bf-delay-3 { animation-delay: .3s; }
.bf-delay-4 { animation-delay: .4s; }

/* ── STATUS TRIAL BANNER ── */
.bf-trial-banner {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-bottom: 1px solid #F59E0B;
  padding: .5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  font-weight: 600;
  color: #92400E;
}

/* ── EMPTY STATE ── */
.bf-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--bf-gray-400);
}
.bf-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: .4;
}
.bf-empty h4 { color: var(--bf-gray-500); font-size: 1.1rem; margin-bottom: .5rem; }
.bf-empty p { font-size: .875rem; }

/* ── QUICK STATS ROW ── */
.bf-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ── PROGRESS ── */
.bf-progress {
  height: 6px;
  background: var(--bf-gray-100);
  border-radius: var(--bf-radius-full);
  overflow: hidden;
}
.bf-progress-bar {
  height: 100%;
  background: var(--bf-gradient-primary);
  border-radius: var(--bf-radius-full);
  transition: width .5s var(--bf-ease);
}

/* ── TOOLTIP ── */
[data-bf-tip] { position: relative; cursor: pointer; }
[data-bf-tip]::after {
  content: attr(data-bf-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bf-gray-800);
  color: white;
  font-size: .7rem;
  white-space: nowrap;
  padding: .3rem .6rem;
  border-radius: var(--bf-radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--bf-duration);
}
[data-bf-tip]:hover::after { opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root { --bf-sidebar-w: 0px; }
  .bf-sidebar { transform: translateX(-260px); }
  .bf-sidebar.open { transform: translateX(0); --bf-sidebar-w: 260px; }
  .bf-topbar { left: 0; }
  .bf-main { margin-left: 0; }
  .bf-content { padding: 1.25rem; }
}

@media (max-width: 640px) {
  .bf-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bf-content { padding: 1rem; }
  .bf-page-header { flex-direction: column; align-items: flex-start; }
}

/* ── DROPDOWN MENU ── */
.bf-dropdown {
  background: white;
  border-radius: var(--bf-radius-lg);
  box-shadow: var(--bf-shadow-xl);
  border: 1px solid var(--bf-gray-100);
  overflow: hidden;
  min-width: 200px;
  animation: bf-fadeIn .2s var(--bf-ease);
}
.bf-dropdown-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem 1rem;
  font-size: .875rem;
  color: var(--bf-gray-700);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--bf-duration);
}
.bf-dropdown-item:hover { background: var(--bf-gray-50); color: var(--bf-pink); }
.bf-dropdown-item.danger { color: #EF4444; }
.bf-dropdown-item.danger:hover { background: #FEF2F2; }
.bf-dropdown-divider { height: 1px; background: var(--bf-gray-100); margin: .25rem 0; }

/* ── TOGGLE / SWITCH ── */
.bf-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
}
.bf-toggle input { display: none; }
.bf-toggle-track {
  width: 44px;
  height: 24px;
  background: var(--bf-gray-200);
  border-radius: var(--bf-radius-full);
  transition: background .2s;
  position: relative;
}
.bf-toggle input:checked + .bf-toggle-track { background: var(--bf-pink); }
.bf-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--bf-shadow-sm);
  transition: left .2s;
}
.bf-toggle input:checked + .bf-toggle-track::after { left: 22px; }

/* ── LANDING PAGE ── */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all .3s;
}
.lp-nav.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--bf-shadow-sm);
}
.lp-hero {
  min-height: 100vh;
  background: var(--bf-gradient-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.lp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(236,72,153,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139,92,246,.15) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(45,212,191,.1) 0%, transparent 40%);
}
.lp-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.lp-section { padding: 6rem 0; }
.lp-section-alt { background: var(--bf-gradient-soft); }

.lp-feature-card {
  background: white;
  border-radius: var(--bf-radius-xl);
  padding: 2rem;
  box-shadow: var(--bf-shadow-md);
  border: 1px solid var(--bf-gray-100);
  transition: all .3s var(--bf-ease);
  height: 100%;
}
.lp-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bf-shadow-xl);
  border-color: var(--bf-pink-light);
}
.lp-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--bf-radius-lg);
  background: var(--bf-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.lp-plan-card {
  background: white;
  border-radius: var(--bf-radius-xl);
  padding: 2.5rem 2rem;
  border: 2px solid var(--bf-gray-100);
  transition: all .3s var(--bf-ease);
  position: relative;
  text-align: center;
}
.lp-plan-card.featured {
  border-color: var(--bf-pink);
  box-shadow: 0 0 0 4px rgba(236,72,153,.1);
  transform: scale(1.02);
}
.lp-plan-card:hover { border-color: var(--bf-pink); box-shadow: var(--bf-shadow-xl); }
.lp-plan-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--bf-gray-900);
  line-height: 1;
}
.lp-plan-price sup { font-size: 1.25rem; vertical-align: top; margin-top: .75rem; }
.lp-plan-price span { font-size: 1rem; font-weight: 400; color: var(--bf-gray-400); }

.lp-testimonial {
  background: white;
  border-radius: var(--bf-radius-xl);
  padding: 2rem;
  box-shadow: var(--bf-shadow-md);
  border: 1px solid var(--bf-gray-100);
  position: relative;
}
.lp-testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--bf-font-serif);
  font-size: 5rem;
  color: var(--bf-pink-light);
  line-height: 1;
}

/* Dashboard "Salão Hoje" Card */
.bf-today-card {
  background: var(--bf-gradient-dark);
  border-radius: var(--bf-radius-xl);
  padding: 1.75rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.bf-today-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(236,72,153,.2) 0%, transparent 70%);
}
.bf-today-card::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,.2) 0%, transparent 70%);
}
.bf-insight-msg {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--bf-radius-md);
  padding: .75rem 1rem;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
  backdrop-filter: blur(4px);
}
