/* =============================================
   CHEFEAGORA v4.0 — DESIGN SYSTEM PREMIUM
   Paleta: Preto #0a0a0a + Dourado #C9A84C
   Novidades v4.0: KYC, Banco, Multi-Admin, Retenção 48h
============================================= */

:root {
  --black: #0a0a0a;
  --black-2: #111111;
  --black-3: #1a1a1a;
  --black-4: #222222;
  --black-5: #2a2a2a;
  --gold: #C9A84C;
  --gold-light: #e8c96b;
  --gold-dark: #a88630;
  --gold-glow: rgba(201,168,76,0.15);
  --white: #ffffff;
  --gray: #888888;
  --gray-light: #cccccc;
  --gray-dark: #555555;
  --success: #2ecc71;
  --success-bg: rgba(46,204,113,0.1);
  --error: #e74c3c;
  --error-bg: rgba(231,76,60,0.1);
  --warning: #f39c12;
  --warning-bg: rgba(243,156,18,0.1);
  --info: #3498db;
  --info-bg: rgba(52,152,219,0.1);
  --purple: #9b59b6;
  --purple-bg: rgba(155,89,182,0.1);
  --border: rgba(201,168,76,0.18);
  --border-subtle: rgba(255,255,255,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 32px rgba(201,168,76,0.18);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.25s ease;
  --font: 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--black); color: var(--white); line-height: 1.6; min-height: 100vh; }

/* ---- TIPOGRAFIA ---- */
h1 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { line-height: 1.7; }
.gold { color: var(--gold) !important; }
.text-gray { color: var(--gray); }
.text-light { color: var(--gray-light); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.1rem; }

/* ---- LINKS ---- */
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* ---- BOTÕES ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: none; transition: var(--transition); text-decoration: none;
  white-space: nowrap; font-family: var(--font);
}
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--black); }
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); transform: translateY(-2px); box-shadow: var(--shadow-gold); color: var(--black); }
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--black); transform: translateY(-2px); }
.btn-ghost { background: var(--black-3); color: var(--white); border: 1px solid var(--border-subtle); }
.btn-ghost:hover { background: var(--black-4); border-color: var(--border); }
.btn-danger { background: var(--error); color: var(--white); }
.btn-danger:hover { background: #c0392b; transform: translateY(-2px); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #27ae60; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: #e0bc55; transform: translateY(-2px); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-xl { padding: 18px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-loading { opacity: 0.7; pointer-events: none; }

/* ---- CARDS ---- */
.card { background: var(--black-2); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 24px; transition: var(--transition); }
.card:hover { border-color: var(--border); }
.card-gold { background: linear-gradient(135deg, #1a1200, #221800); border: 1px solid var(--gold); }
.card-hover:hover { border-color: rgba(201,168,76,0.4); box-shadow: var(--shadow-gold); transform: translateY(-3px); }
.card-glass { background: rgba(255,255,255,0.03); backdrop-filter: blur(12px); border: 1px solid rgba(201,168,76,0.12); border-radius: var(--radius); padding: 24px; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 28px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand { font-size: 1.35rem; font-weight: 900; color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.navbar-brand span { color: var(--gold); }
.navbar-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.navbar-links a { color: var(--gray-light); font-size: 0.88rem; transition: var(--transition); }
.navbar-links a:hover { color: var(--gold); }
.navbar-actions { display: flex; gap: 10px; align-items: center; }
@media(max-width:768px) { .navbar-links { display: none; } }

/* ---- CONTAINER / LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }

/* ---- GRID ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media(max-width:900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- FORMULÁRIOS ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-light); margin-bottom: 7px; letter-spacing: 0.2px; }
.form-label .required { color: var(--error); margin-left: 3px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--black-3); border: 1px solid rgba(255,255,255,0.09);
  color: var(--white); padding: 11px 15px; border-radius: var(--radius-sm);
  font-size: 0.92rem; transition: var(--transition); font-family: var(--font);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}
.form-input::placeholder { color: var(--gray-dark); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-select option { background: var(--black-3); color: var(--white); }
.form-error { font-size: 0.78rem; color: var(--error); margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-hint { font-size: 0.78rem; color: var(--gray); margin-top: 4px; }
.form-success { font-size: 0.78rem; color: var(--success); margin-top: 4px; }
.input-group { position: relative; }
.input-group .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray); font-size: 0.9rem; }
.input-group .form-input { padding-left: 36px; }
.input-group .input-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gray); font-size: 0.85rem; }

/* ---- BADGES / STATUS ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.badge-gold { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(201,168,76,0.2); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-red { background: var(--error-bg); color: var(--error); }
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-gray { background: rgba(136,136,136,0.12); color: var(--gray); }
.badge-orange { background: var(--warning-bg); color: var(--warning); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-lg { padding: 6px 14px; font-size: 0.82rem; }

/* ---- STARS ---- */
.stars { display: flex; gap: 2px; }
.stars span { color: var(--gold); font-size: 0.95rem; }
.stars.interactive span { cursor: pointer; font-size: 1.6rem; transition: var(--transition); }
.stars.interactive span:hover { transform: scale(1.2); }
.star-empty { color: var(--black-5) !important; }

/* ---- TOAST ---- */
.toast-container { position: fixed; top: 76px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--black-3); border-left: 3px solid var(--gold); padding: 12px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-width: 340px; font-size: 0.88rem; animation: slideIn 0.3s ease; }
.toast.error { border-left-color: var(--error); }
.toast.success { border-left-color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { transform: translateX(110%); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* ---- MODAL ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--black-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.modal-close { background: none; border: none; color: var(--gray); font-size: 1.2rem; cursor: pointer; transition: var(--transition); padding: 4px; border-radius: 6px; }
.modal-close:hover { color: var(--white); background: var(--black-3); }

/* ---- SIDEBAR / DASHBOARD ---- */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--black-2); border-right: 1px solid var(--border-subtle); padding: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--border-subtle); }
.sidebar-logo { font-size: 1.3rem; font-weight: 900; }
.sidebar-logo span { color: var(--gold); }
.sidebar-user { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.72rem; color: var(--gray); }
.sidebar-nav { list-style: none; padding: 12px 0; flex: 1; }
.sidebar-nav li a, .sidebar-nav li button {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 20px; color: var(--gray-light); font-size: 0.87rem;
  transition: var(--transition); width: 100%; background: none; border: none;
  cursor: pointer; font-family: var(--font); text-align: left;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active, .sidebar-nav li button:hover { color: var(--gold); background: rgba(201,168,76,0.06); }
.sidebar-nav li a.active { border-right: 2px solid var(--gold); }
.sidebar-section { padding: 14px 20px 5px; font-size: 0.66rem; color: var(--gray-dark); text-transform: uppercase; letter-spacing: 1.5px; }
.sidebar-bottom { padding: 12px 20px; border-top: 1px solid var(--border-subtle); }
.main-content { padding: 28px 32px; overflow-y: auto; background: var(--black); }
@media(max-width:900px) { .dashboard-layout { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* ---- STAT CARDS ---- */
.stat-card { background: var(--black-2); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; gap: 14px; transition: var(--transition); }
.stat-card:hover { border-color: var(--border); }
.stat-icon { width: 46px; height: 46px; background: var(--gold-glow); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--gold); flex-shrink: 0; }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.red { background: var(--error-bg); color: var(--error); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); }
.stat-icon.purple { background: var(--purple-bg); color: var(--purple); }
.stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: 0.75rem; color: var(--gray); margin-top: 2px; }
.stat-trend { font-size: 0.75rem; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--error); }

/* ---- TABELAS ---- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-subtle); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--black-3); }
thead th { padding: 11px 16px; text-align: left; font-size: 0.72rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.8px; white-space: nowrap; }
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.03); transition: var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(201,168,76,0.02); }
tbody td { padding: 12px 16px; font-size: 0.875rem; }

/* ---- ALERTAS ---- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 14px; border-left: 3px solid; line-height: 1.5; }
.alert-info { background: var(--info-bg); border-color: var(--info); color: #a0d0f0; }
.alert-success { background: var(--success-bg); border-color: var(--success); color: #a0efc0; }
.alert-warning { background: var(--warning-bg); border-color: var(--warning); color: #fdd9a0; }
.alert-error { background: var(--error-bg); border-color: var(--error); color: #ffa8a0; }

/* ---- TABS ---- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 22px; overflow-x: auto; }
.tab-btn { padding: 10px 18px; background: none; border: none; color: var(--gray); font-size: 0.88rem; cursor: pointer; transition: var(--transition); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-family: var(--font); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-btn:hover { color: var(--white); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- PLANOS ---- */
.plan-card { background: var(--black-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 28px; text-align: center; transition: var(--transition); position: relative; overflow: hidden; }
.plan-card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.plan-card.featured { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.plan-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--black); font-size: 0.7rem; font-weight: 800; padding: 4px 14px; border-radius: 0 0 8px 8px; }
.plan-price { font-size: 2.6rem; font-weight: 900; margin: 14px 0 3px; }
.plan-price span { font-size: 0.9rem; font-weight: 400; color: var(--gray); }
.plan-features { list-style: none; text-align: left; margin: 18px 0; }
.plan-features li { padding: 7px 0; font-size: 0.87rem; border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; align-items: center; gap: 8px; }
.plan-features li:last-child { border-bottom: none; }
.plan-features .check { color: var(--success); }
.plan-features .cross { color: var(--error); }

/* ---- WALLET ---- */
.wallet-card { background: linear-gradient(135deg, #120e00, #1c1600); border: 1px solid rgba(201,168,76,0.3); border-radius: var(--radius-lg); padding: 26px; position: relative; overflow: hidden; }
.wallet-card::before { content: ''; position: absolute; top: -40px; right: -40px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%); }
.wallet-balance { font-size: 2.2rem; font-weight: 900; color: var(--gold); }
.wallet-label { font-size: 0.75rem; color: var(--gray); margin-bottom: 6px; }

/* ---- RETENÇÃO BADGE ---- */
.retention-badge { background: var(--warning-bg); border: 1px solid rgba(243,156,18,0.3); border-radius: 8px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 0.83rem; }
.retention-countdown { font-weight: 800; color: var(--warning); font-size: 1.1rem; }

/* ---- KYC STATUS ---- */
.kyc-card { border-radius: var(--radius); padding: 20px; }
.kyc-card.pending { background: var(--warning-bg); border: 1px solid rgba(243,156,18,0.2); }
.kyc-card.verified { background: var(--success-bg); border: 1px solid rgba(46,204,113,0.2); }
.kyc-card.rejected { background: var(--error-bg); border: 1px solid rgba(231,76,60,0.2); }
.kyc-step { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.kyc-step:last-child { border-bottom: none; }
.kyc-step-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.kyc-step-icon.done { background: var(--success-bg); color: var(--success); }
.kyc-step-icon.pending { background: var(--warning-bg); color: var(--warning); }
.kyc-step-icon.todo { background: var(--black-4); color: var(--gray); }

/* ---- UPLOAD ---- */
.upload-zone { border: 2px dashed rgba(255,255,255,0.15); border-radius: var(--radius); padding: 32px; text-align: center; cursor: pointer; transition: var(--transition); }
.upload-zone:hover { border-color: var(--gold); background: rgba(201,168,76,0.03); }
.upload-zone.active { border-color: var(--success); background: var(--success-bg); }
.upload-icon { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.5; }
.upload-label { font-size: 0.9rem; color: var(--gray-light); margin-bottom: 4px; }
.upload-hint { font-size: 0.75rem; color: var(--gray); }
.upload-preview { position: relative; display: inline-block; }
.upload-preview img { width: 120px; height: 120px; border-radius: var(--radius); object-fit: cover; border: 2px solid var(--border); }
.upload-remove { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; background: var(--error); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.7rem; color: white; }

/* ---- CHAT ---- */
.chat-container { display: flex; height: calc(100vh - 64px); }
.chat-sidebar { width: 280px; border-right: 1px solid var(--border-subtle); overflow-y: auto; background: var(--black-2); }
.chat-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.chat-header { padding: 14px 20px; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 12px; background: var(--black-2); }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-input-area { padding: 14px 20px; border-top: 1px solid var(--border-subtle); background: var(--black-2); display: flex; gap: 10px; align-items: flex-end; }
.message { max-width: 70%; }
.message.own { align-self: flex-end; }
.message-bubble { padding: 10px 14px; border-radius: 12px; font-size: 0.88rem; background: var(--black-3); line-height: 1.5; }
.message.own .message-bubble { background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.15); }
.message-time { font-size: 0.68rem; color: var(--gray); margin-top: 3px; }
.message-blocked { background: var(--error-bg) !important; border: 1px solid rgba(231,76,60,0.2) !important; color: var(--error) !important; }
.conv-item { padding: 13px 16px; cursor: pointer; border-bottom: 1px solid var(--border-subtle); transition: var(--transition); display: flex; gap: 11px; align-items: center; }
.conv-item:hover, .conv-item.active { background: rgba(201,168,76,0.05); }

/* ---- AVATAR ---- */
.avatar { width: 38px; height: 38px; background: rgba(201,168,76,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.avatar-sm { width: 28px; height: 28px; font-size: 0.7rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.3rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 2rem; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.online { position: relative; }
.online::after { content: ''; position: absolute; bottom: 1px; right: 1px; width: 9px; height: 9px; background: var(--success); border-radius: 50%; border: 2px solid var(--black-2); }

/* ---- PROGRESS ---- */
.progress-bar { background: var(--black-3); border-radius: 50px; overflow: hidden; }
.progress-fill { height: 8px; border-radius: 50px; transition: width 0.7s ease; }
.progress-gold { background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); }
.progress-green { background: var(--success); }
.progress-blue { background: var(--info); }

/* ---- STEPS ---- */
.steps { display: flex; margin-bottom: 28px; }
.step-item { flex: 1; text-align: center; padding: 14px 6px; position: relative; }
.step-item:not(:last-child)::after { content: ''; position: absolute; top: 26px; right: 0; width: 50%; height: 2px; background: var(--border-subtle); }
.step-item.active:not(:last-child)::after, .step-item.done:not(:last-child)::after { background: var(--gold); }
.step-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--black-3); border: 2px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; margin: 0 auto 7px; font-size: 0.82rem; font-weight: 700; color: var(--gray); transition: var(--transition); }
.step-item.active .step-circle { background: var(--gold); border-color: var(--gold); color: var(--black); }
.step-item.done .step-circle { background: var(--success); border-color: var(--success); color: white; }
.step-label { font-size: 0.72rem; color: var(--gray); }
.step-item.active .step-label { color: var(--gold); }
.step-item.done .step-label { color: var(--success); }

/* ---- NFS-e ---- */
.nfe-document { background: #fffef0; color: #222; border-radius: var(--radius); padding: 28px; font-family: 'Courier New', monospace; font-size: 0.82rem; border: 2px solid var(--gold); }
.nfe-header { text-align: center; margin-bottom: 18px; border-bottom: 2px solid #333; padding-bottom: 14px; }
.nfe-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.nfe-table th, .nfe-table td { border: 1px solid #aaa; padding: 7px 10px; }
.nfe-table th { background: #e0e0e0; font-weight: 700; }

/* ---- LOADER ---- */
.loader { width: 32px; height: 32px; border: 3px solid var(--black-3); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.7s linear infinite; }
.loader-sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- SECTION TITLE ---- */
.section-title { text-align: center; margin-bottom: 48px; }
.section-label { font-size: 0.72rem; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 10px; display: block; }
.section-title p { color: var(--gray-light); max-width: 520px; margin: 10px auto 0; }

/* ---- CHEF CARD ---- */
.chef-card { background: var(--black-2); border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; transition: var(--transition); cursor: pointer; }
.chef-card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.chef-card-img { height: 160px; background: linear-gradient(135deg, var(--black-3), var(--black-4)); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; }
.chef-card-img img { width: 100%; height: 100%; object-fit: cover; }
.chef-card-img .chef-badge { position: absolute; top: 8px; right: 8px; }
.chef-card-body { padding: 14px 16px; }
.chef-rating { color: var(--gold); font-size: 0.82rem; display: flex; align-items: center; gap: 4px; }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 52px 20px; color: var(--gray); }
.empty-state i { font-size: 2.8rem; margin-bottom: 14px; color: var(--gold); opacity: 0.35; display: block; }
.empty-state h3 { margin-bottom: 6px; color: var(--gray-light); font-size: 1rem; }
.empty-state p { font-size: 0.85rem; }

/* ---- DIVIDERS ---- */
.divider { height: 1px; background: var(--border-subtle); margin: 20px 0; }
.divider-text { text-align: center; color: var(--gray); font-size: 0.78rem; margin: 14px 0; position: relative; }
.divider-text::before, .divider-text::after { content: ''; position: absolute; top: 50%; width: 44%; height: 1px; background: var(--border-subtle); }
.divider-text::before { left: 0; } .divider-text::after { right: 0; }

/* ---- NOTIFICAÇÕES ---- */
.notif-dot { width: 7px; height: 7px; background: var(--error); border-radius: 50%; display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.notif-badge { background: var(--error); color: white; border-radius: 50%; min-width: 18px; height: 18px; font-size: 0.68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ---- SUBSCRIPTION BLOCK ---- */
.sub-block { position: fixed; inset: 0; background: rgba(0,0,0,0.96); z-index: 500; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.sub-block-inner { max-width: 460px; }

/* ---- PAYMENT STATUS ---- */
.pay-status { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; }
.pay-status.pending { background: var(--warning-bg); color: var(--warning); }
.pay-status.paid { background: var(--success-bg); color: var(--success); }
.pay-status.retained { background: var(--info-bg); color: var(--info); }
.pay-status.released { background: rgba(155,89,182,0.1); color: var(--purple); }
.pay-status.refunded { background: var(--error-bg); color: var(--error); }

/* ---- ADMIN ROLE COLORS ---- */
.role-dono { background: rgba(201,168,76,0.15); color: var(--gold); }
.role-diretor { background: rgba(155,89,182,0.15); color: var(--purple); }
.role-gerente { background: rgba(52,152,219,0.15); color: var(--info); }
.role-financeiro { background: rgba(46,204,113,0.15); color: var(--success); }
.role-suporte { background: rgba(136,136,136,0.15); color: var(--gray); }

/* ---- CHART ---- */
.chart-wrap { position: relative; }

/* ---- FOOTER ---- */
footer { background: var(--black-2); border-top: 1px solid var(--border-subtle); padding: 36px 24px; text-align: center; color: var(--gray); font-size: 0.82rem; }
footer strong { color: var(--gold); }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: var(--black-5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ---- UTILITIES ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mb-4{margin-bottom:4px} .mb-8{margin-bottom:8px} .mb-12{margin-bottom:12px}
.mb-16{margin-bottom:16px} .mb-20{margin-bottom:20px} .mb-24{margin-bottom:24px}
.mb-32{margin-bottom:32px} .mb-40{margin-bottom:40px}
.mt-8{margin-top:8px} .mt-12{margin-top:12px} .mt-16{margin-top:16px}
.mt-20{margin-top:20px} .mt-24{margin-top:24px} .mt-32{margin-top:32px}
.p-16{padding:16px} .p-20{padding:20px} .p-24{padding:24px}
.w-full{width:100%} .text-center{text-align:center} .text-right{text-align:right}
.hidden{display:none!important} .invisible{visibility:hidden}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cursor-pointer{cursor:pointer}
.relative{position:relative} .absolute{position:absolute}
.rounded{border-radius:var(--radius)} .rounded-full{border-radius:50%}
.border{border:1px solid var(--border-subtle)}
.opacity-50{opacity:0.5} .opacity-70{opacity:0.7}
.fw-700{font-weight:700} .fw-800{font-weight:800} .fw-900{font-weight:900}

/* ---- HERO ---- */
.hero { min-height: 92vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 55% 40%, rgba(201,168,76,0.05) 0%, transparent 60%); }
.hero-content { position: relative; z-index: 1; max-width: 620px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.25); color: var(--gold); padding: 5px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; color: var(--gray-light); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-mockup { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 290px; background: var(--black-2); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-gold); animation: float 3.5s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(-50%) translateY(-8px)} 50%{transform:translateY(-50%) translateY(8px)} }
@media(max-width:960px){.hero-mockup{display:none}}

/* ---- RESPONSIVE HELPERS ---- */
@media(max-width:600px){
  .section{padding:48px 0;}
  .main-content{padding:20px 16px;}
  .modal{padding:24px 18px;}
  .hide-mobile{display:none!important}
}
