:root {
  --cream: #FFFFFF;
  --dark: #09090B;          /* Slate 950 style dark color */
  --stone: #71717A;         /* Zinc 500 */
  --gold: #EA580C;          /* Premium gold-orange */
  --gold-hover: #C2410C;
  --gold-soft: rgba(234, 88, 12, 0.08);
  --silver: #A1A1AA;        /* Zinc 400 */
  --green: #10B981;         /* Emerald 500 */
  --red: #EF4444;           /* Red 500 */
  --border: #E4E4E7;        /* Zinc 200 */
  --text-muted: #71717A;
  --main-bg: #FAFAF9;       /* Light warm neutral */
  --sidebar-w: 260px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--main-bg);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast.on {
  display: block;
}

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

/* ── LOGIN PAGE ── */
.login-page {
  display: flex;
  min-height: 100vh;
  background: var(--main-bg);
}

.login-left {
  flex: 1.2;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}

.login-logo {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.login-logo span {
  color: var(--gold);
}

.nav-back {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  position: relative;
  z-index: 2;
}
.nav-back:hover {
  color: #fff;
  transform: translateX(-2px);
}

.login-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
  font-weight: 300;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  max-width: 340px;
  position: relative;
  z-index: 2;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 300;
}

.login-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(234, 88, 12, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(234, 88, 12, 0.2);
}

.login-right {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--cream);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 30px rgba(0,0,0,0.02);
}

.login-form {
  width: 100%;
  max-width: 360px;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.login-form h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--dark);
}

.login-form p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 300;
}

.lf-field {
  margin-bottom: 18px;
}

.lf-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lf-field input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lf-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.login-btn {
  width: 100%;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.login-btn:hover {
  background: #27272a;
}
.login-btn:active {
  transform: scale(0.98);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, border-color 0.2s;
}
.btn-social:hover {
  background: #f9fafb;
  border-color: var(--stone);
}

/* ── DASHBOARD SHELL ── */
.dashboard {
  display: none;
  min-height: 100vh;
}
.dashboard.on {
  display: flex;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.sidebar-pro {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-pro-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sidebar-pro-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.sidebar-pro-plan {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  font-weight: 500;
}

.sidebar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-active .status-dot { background: #10B981; }
.status-active { color: #10B981; background: rgba(16, 185, 129, 0.1); }
.status-inactive .status-dot { background: #EF4444; }
.status-inactive { color: #EF4444; background: rgba(239, 68, 68, 0.1); }
.status-pending .status-dot { background: #F59E0B; }
.status-pending { color: #F59E0B; background: rgba(245, 158, 11, 0.1); }

.sidebar-nav {
  padding: 20px 14px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  padding: 0 8px;
  margin-bottom: 8px;
  margin-top: 20px;
}
.nav-section-label:first-of-type {
  margin-top: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.nav-item.on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
}

.nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2px;
  fill: none;
}

.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13.5px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: color 0.2s;
}
.logout-btn:hover {
  color: #fff;
}

/* ── MAIN AREA ── */
.main-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-notif {
  position: relative;
  cursor: pointer;
  color: var(--stone);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.topbar-notif:hover {
  background: #f4f4f5;
  color: var(--dark);
}

.notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid #fff;
}

.topbar-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f4f5;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  overflow: hidden;
}
.topbar-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

/* ── NOTIFICATIONS DROPDOWN ── */
.notif-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  z-index: 100;
  overflow: hidden;
  animation: slideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.notif-dropdown-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.2s;
}
.notif-item:hover {
  background: #fafaf9;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.notif-item-text {
  flex: 1;
  color: var(--dark);
  line-height: 1.5;
}
.notif-item-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.notif-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ── PANELS & CONTAINERS ── */
.page-content {
  padding: 32px;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.panel {
  display: none;
}
.panel.on {
  display: block;
}

/* ── STATUS ALERTS ── */
.status-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}
.status-alert.status-alert-pending {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}
.status-alert.status-alert-recusado {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}
.status-alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* ── PLAN BANNER ── */
.plan-banner {
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.plan-banner-ouro {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1.5px solid #FDBA74;
}
.plan-banner-prata {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1.5px solid var(--border);
}

.plan-banner-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.plan-banner-icon {
  font-size: 36px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
}
.plan-banner-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}
.plan-banner-detail {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}
.plan-banner-expiry {
  font-size: 12px;
  color: var(--stone);
  font-weight: 600;
  margin-top: 4px;
}

.upgrade-btn {
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.1s;
}
.upgrade-btn:hover {
  background: #27272a;
}
.upgrade-btn:active {
  transform: scale(0.98);
}

/* ── COMPLETITUDE CARD ── */
.completude-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px -6px rgba(0,0,0,0.02);
}
.completude-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.completude-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}
.completude-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.completude-pct {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
}
.completude-bar-bg {
  width: 100%;
  height: 8px;
  background: #f4f4f5;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 16px;
}
.completude-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.completude-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.completude-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-weight: 500;
  transition: all 0.2s;
}
.completude-item.done {
  color: #065F46;
  background: #ECFDF5;
  border-color: #A7F3D0;
}
.completude-item.missing {
  color: #92400E;
  background: #FFFBEB;
  border-color: #FDE68A;
  cursor: pointer;
}
.completude-item.missing:hover {
  background: #FDE68A;
  transform: translateY(-1px);
}
.completude-100 {
  color: #047857;
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 0;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #D1FAE5;
  color: #065F46;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 12px;
}

/* ── STAT CARDS (Bento Grid) ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 20px -6px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.06);
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.stat-icon {
  color: var(--gold);
}
.stat-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2px;
  fill: none;
}

/* ── FUNNEL CARD ── */
.funnel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px -6px rgba(0,0,0,0.02);
}
.funnel-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.funnel-steps {
  display: flex;
  align-items: center;
}
.funnel-step {
  flex: 1;
  text-align: center;
  background: var(--main-bg);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.funnel-step-val {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}
.funnel-step-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}
.funnel-step-pct {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  margin-top: 4px;
  background: rgba(16, 185, 129, 0.1);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
}
.funnel-arrow {
  font-size: 22px;
  color: var(--stone);
  padding: 0 16px;
  flex-shrink: 0;
  font-weight: 300;
}

/* ── CHART CARD ── */
.chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px -6px rgba(0,0,0,0.02);
}
.chart-wrap {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 120px;
  padding-top: 10px;
  border-bottom: 1px solid var(--border);
}
.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}
.chart-bars {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  max-width: 20px;
  gap: 2px;
  height: 100%;
}
.chart-bar-val1 {
  background: #E4E4E7;
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease, background 0.2s;
  cursor: pointer;
}
.chart-bar-val1:hover {
  background: var(--stone);
}
.chart-bar-val2 {
  background: var(--green);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease, opacity 0.2s;
  cursor: pointer;
}
.chart-bar-val2:hover {
  opacity: 0.8;
}
.chart-day-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  white-space: nowrap;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}
.chart-leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── SECTION HEADERS & BUTTONS ── */
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-hd h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
}

.btn-sm {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover {
  background: #27272a;
}
.btn-outline-sm {
  background: #fff;
  color: var(--dark);
  border-color: var(--border);
}
.btn-outline-sm:hover {
  background: #f9fafb;
  border-color: var(--stone);
}
.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover {
  opacity: 0.9;
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover {
  opacity: 0.9;
}

/* ── TABLES ── */
.table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px -6px rgba(0,0,0,0.02);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: #fafaf9;
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  border-bottom: 1.5px solid var(--border);
}

td {
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #fafaf9;
}

/* ── PILLS & BADGES ── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.pill-green { background: #ECFDF5; color: #065F46; }
.pill-amber { background: #FFFBEB; color: #92400E; }
.pill-red { background: #FEF2F2; color: #991B1B; }
.pill-blue { background: #EFF6FF; color: #1E40AF; }
.pill-gray { background: #F4F4F5; color: #3F3F46; }

/* ── PROFILE & FORMS ── */
.profile-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px -6px rgba(0,0,0,0.02);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid-2 .full {
  grid-column: 1 / 3;
}

.pf-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pf-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pf-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}
.pf-input:disabled, .pf-input[readonly] {
  background: #f4f4f5;
  color: var(--stone);
  cursor: not-allowed;
}

.pf-textarea {
  resize: vertical;
  height: 110px;
  line-height: 1.6;
}

.save-btn {
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  margin-top: 20px;
  transition: background 0.2s;
}
.save-btn:hover {
  background: #27272a;
}

/* ── PHOTOS GRID ── */
.photos-outer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px -6px rgba(0,0,0,0.02);
}
.photos-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.photos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.photo-item {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--main-bg);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-item:hover img {
  transform: scale(1.05);
}
.photo-item:hover .photo-del {
  opacity: 1;
}
.photo-del {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-del:hover {
  background: rgba(220, 38, 38, 1);
}
.photo-add {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: var(--stone);
  transition: all 0.2s;
  background: #fff;
}
.photo-add:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}
.photos-limit {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ── SERVICES / SERVIÇOS ── */
.svc-edit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--main-bg);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.svc-edit-name {
  flex: 2;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.svc-edit-dur {
  width: 80px;
  font-size: 13px;
  color: var(--stone);
}
.svc-edit-price {
  width: 90px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}
.svc-edit-del {
  background: none;
  border: none;
  color: var(--red);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 0.2s;
}
.svc-edit-del:hover {
  transform: scale(1.1);
}
.svc-add-grid {
  display: grid;
  grid-template-columns: 1fr 110px 110px auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

/* ── WORKING HOURS / HORÁRIOS ── */
.horario-row {
  display: grid;
  grid-template-columns: 40px 100px 120px 24px 120px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.horario-row:last-child {
  border-bottom: none;
}
.horario-day-name {
  font-weight: 600;
  color: var(--dark);
}
.horario-time {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  outline: none;
}
.horario-time:focus {
  border-color: var(--gold);
}
.horario-time:disabled {
  background: #f4f4f5;
  color: var(--stone);
  cursor: not-allowed;
}

/* ── REVIEWS / AVALIAÇÕES ── */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px -6px rgba(0,0,0,0.02);
}
.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.review-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--main-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--stone);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.review-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.review-stars {
  color: #F59E0B;
  font-size: 13px;
  margin-left: auto;
}
.review-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 10px;
}
.review-text {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.6;
  font-weight: 300;
}

/* ── FINANCIAL / FINANCEIRO ── */
.fin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}
.fin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 20px -6px rgba(0,0,0,0.02);
}
.fin-card-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.fin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.fin-row:last-child {
  border-bottom: none;
}
.fin-row-label {
  color: var(--text-muted);
}
.fin-row-val {
  font-weight: 600;
  color: var(--dark);
}
.fin-row-val.green { color: var(--green); }
.fin-row-val.red { color: var(--red); }

.tema-swatch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--dark);
}
.tema-swatch.active {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}
.tema-swatch:hover {
  border-color: var(--stone);
}
.sw-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sw,#18181B);
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.1);
}

/* ── MODALS ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.on {
  display: flex;
}
.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--dark);
}
.modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.modal-footer button {
  flex: 1;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.modal-footer button:first-child {
  background: #fff;
  border-color: var(--border);
  color: var(--dark);
}
.modal-footer button:first-child:hover {
  background: #f9fafb;
}
.modal-footer button:last-child {
  background: var(--dark);
  color: #fff;
}
.modal-footer button:last-child:hover {
  background: #27272a;
}

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .photos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .fin-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .form-grid-2 .full {
    grid-column: 1 / 2;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
    z-index: 200;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,0,0,0.15);
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9,9,11,0.5);
    z-index: 190;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .sidebar-overlay.on {
    display: block;
  }
  .main-area {
    margin-left: 0;
    width: 100%;
  }
  .mobile-menu-btn {
    display: block;
  }
  .topbar {
    padding: 0 18px;
    height: 60px;
  }
  .topbar-title {
    font-size: 18px;
  }
  .page-content {
    padding: 20px 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 24px;
  }
  .plan-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .upgrade-btn {
    width: 100%;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 600px;
  }
  .section-hd {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .review-item {
    padding: 16px;
  }
  .login-page {
    flex-direction: column;
  }
  .login-left {
    padding: 40px 20px;
    flex: none;
    min-height: auto;
  }
  .login-right {
    width: 100%;
    padding: 32px 20px;
    border-left: none;
  }
  .login-features {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .photos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .svc-add-grid {
    grid-template-columns: 1fr;
  }
  .funnel-steps {
    flex-direction: column;
    gap: 8px;
  }
  .funnel-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }
  .horario-row {
    grid-template-columns: 30px 1fr;
    gap: 8px;
  }
  .horario-time {
    grid-column: 2;
  }
  .topbar-title {
    font-size: 16px;
  }
}

/* ── 3-COLUMN DASHBOARD LAYOUT (UNIFIED) ── */
.dashboard-layout-3col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.layout-center {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0; /* Evita estouro de container flex em tabelas/gráficos */
}
.layout-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Modificadores para banners no painel lateral direito */
.layout-right .plan-banner {
  flex-direction: column;
  align-items: stretch;
  padding: 20px;
  gap: 16px;
  margin-bottom: 0;
}
.layout-right .plan-banner-left {
  gap: 12px;
}
.layout-right .plan-banner-icon {
  font-size: 32px;
}
.layout-right .completude-card {
  margin-bottom: 0 !important;
}

/* ── SUB-TABS NAVIGATION (SUBTABS BAR) ── */
.subtabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  padding-bottom: 8px;
  overflow-x: auto;
}
.subtab-btn {
  background: none;
  border: none;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
}
.subtab-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.subtab-btn.active {
  color: #fff;
  background: var(--gold);
}

/* Outros elementos */
.subpanel {
  animation: fadeInPanel 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .dashboard-layout-3col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


