*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* =====================================================
   SISTEMA DE 10 TEMAS
   ===================================================== */
[data-theme="light"] {
  --primary: #6366f1; --primary-hover: #4f46e5; --primary-light: #818cf8;
  --secondary: #8b5cf6; --accent: #f59e0b;
  --bg-body: #f8f9fc; --bg-sidebar: #ffffff; --bg-card: #ffffff; --bg-hover: #f0f1f5;
  --text: #1f2937; --text-muted: #6b7280; --text-dim: #9ca3af;
  --border: #e5e7eb;
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
}
[data-theme="sky"] {
  --primary: #0ea5e9; --primary-hover: #0284c7; --primary-light: #38bdf8;
  --secondary: #06b6d4; --accent: #14b8a6;
  --bg-body: #f0f9ff; --bg-sidebar: #ffffff; --bg-card: #ffffff; --bg-hover: #e0f2fe;
  --text: #0c4a6e; --text-muted: #0369a1; --text-dim: #7dd3fc;
  --border: #bae6fd;
  --gradient: linear-gradient(135deg, #0ea5e9, #06b6d4);
}
[data-theme="mint"] {
  --primary: #10b981; --primary-hover: #059669; --primary-light: #34d399;
  --secondary: #22c55e; --accent: #84cc16;
  --bg-body: #f0fdf4; --bg-sidebar: #ffffff; --bg-card: #ffffff; --bg-hover: #dcfce7;
  --text: #14532d; --text-muted: #166534; --text-dim: #86efac;
  --border: #bbf7d0;
  --gradient: linear-gradient(135deg, #10b981, #22c55e);
}
[data-theme="peach"] {
  --primary: #f97316; --primary-hover: #ea580c; --primary-light: #fb923c;
  --secondary: #ef4444; --accent: #eab308;
  --bg-body: #fff7ed; --bg-sidebar: #ffffff; --bg-card: #ffffff; --bg-hover: #ffedd5;
  --text: #7c2d12; --text-muted: #c2410c; --text-dim: #fdba74;
  --border: #fed7aa;
  --gradient: linear-gradient(135deg, #f97316, #ef4444);
}
[data-theme="blossom"] {
  --primary: #ec4899; --primary-hover: #db2777; --primary-light: #f472b6;
  --secondary: #a855f7; --accent: #f43f5e;
  --bg-body: #fdf2f8; --bg-sidebar: #ffffff; --bg-card: #ffffff; --bg-hover: #fce7f3;
  --text: #831843; --text-muted: #be185d; --text-dim: #f9a8d4;
  --border: #fbcfe8;
  --gradient: linear-gradient(135deg, #ec4899, #a855f7);
}
[data-theme="midnight"] {
  --primary: #6366f1; --primary-hover: #4f46e5; --primary-light: #818cf8;
  --secondary: #8b5cf6; --accent: #f59e0b;
  --bg-body: #0f0f1a; --bg-sidebar: #13131f; --bg-card: #1a1a2e; --bg-hover: #252540;
  --text: #f1f1f1; --text-muted: #9ca3af; --text-dim: #6b7280;
  --border: #2e2e4d;
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
}
[data-theme="ocean"] {
  --primary: #0ea5e9; --primary-hover: #0284c7; --primary-light: #38bdf8;
  --secondary: #06b6d4; --accent: #14b8a6;
  --bg-body: #0c1929; --bg-sidebar: #0f2137; --bg-card: #132f4c; --bg-hover: #1a4165;
  --text: #e6f4ff; --text-muted: #94c4e8; --text-dim: #5a9bcf;
  --border: #1e4976;
  --gradient: linear-gradient(135deg, #0ea5e9, #06b6d4);
}
[data-theme="forest"] {
  --primary: #22c55e; --primary-hover: #16a34a; --primary-light: #4ade80;
  --secondary: #10b981; --accent: #84cc16;
  --bg-body: #0f1a14; --bg-sidebar: #142118; --bg-card: #1a2f22; --bg-hover: #254033;
  --text: #e8f5e9; --text-muted: #a5d6a7; --text-dim: #66bb6a;
  --border: #2d5a3d;
  --gradient: linear-gradient(135deg, #22c55e, #10b981);
}
[data-theme="sunset"] {
  --primary: #f97316; --primary-hover: #ea580c; --primary-light: #fb923c;
  --secondary: #ef4444; --accent: #eab308;
  --bg-body: #1a1310; --bg-sidebar: #211915; --bg-card: #2f211a; --bg-hover: #402d22;
  --text: #fff5eb; --text-muted: #e0c4a8; --text-dim: #b8956c;
  --border: #5a3d2b;
  --gradient: linear-gradient(135deg, #f97316, #ef4444);
}
[data-theme="rose"] {
  --primary: #ec4899; --primary-hover: #db2777; --primary-light: #f472b6;
  --secondary: #a855f7; --accent: #f43f5e;
  --bg-body: #1a0f14; --bg-sidebar: #21131a; --bg-card: #2f1a24; --bg-hover: #402333;
  --text: #fdf2f8; --text-muted: #f9a8d4; --text-dim: #ec4899;
  --border: #5a2d43;
  --gradient: linear-gradient(135deg, #ec4899, #a855f7);
}
[data-theme="sand"] {
  --primary: #ca8a04; --primary-hover: #a16207; --primary-light: #fbbf24;
  --secondary: #d97706; --accent: #b45309;
  --bg-body: #fefce8; --bg-sidebar: #fffbeb; --bg-card: #ffffff; --bg-hover: #fef9c3;
  --text: #713f12; --text-muted: #92400e; --text-dim: #fbbf24;
  --border: #fde68a;
  --gradient: linear-gradient(135deg, #ca8a04, #d97706);
}
[data-theme="lavender"] {
  --primary: #7c3aed; --primary-hover: #6d28d9; --primary-light: #a78bfa;
  --secondary: #8b5cf6; --accent: #c084fc;
  --bg-body: #f5f3ff; --bg-sidebar: #ffffff; --bg-card: #ffffff; --bg-hover: #ede9fe;
  --text: #4c1d95; --text-muted: #6d28d9; --text-dim: #a78bfa;
  --border: #ddd6fe;
  --gradient: linear-gradient(135deg, #7c3aed, #c084fc);
}
[data-theme="aqua"] {
  --primary: #0d9488; --primary-hover: #0f766e; --primary-light: #2dd4bf;
  --secondary: #06b6d4; --accent: #14b8a6;
  --bg-body: #f0fdfa; --bg-sidebar: #ffffff; --bg-card: #ffffff; --bg-hover: #ccfbf1;
  --text: #134e4a; --text-muted: #0f766e; --text-dim: #5eead4;
  --border: #99f6e4;
  --gradient: linear-gradient(135deg, #0d9488, #06b6d4);
}
[data-theme="carbon"] {
  --primary: #e2e8f0; --primary-hover: #cbd5e1; --primary-light: #f1f5f9;
  --secondary: #94a3b8; --accent: #60a5fa;
  --bg-body: #0a0a0f; --bg-sidebar: #111118; --bg-card: #18181f; --bg-hover: #22222c;
  --text: #e2e8f0; --text-muted: #94a3b8; --text-dim: #64748b;
  --border: #2a2a35;
  --gradient: linear-gradient(135deg, #334155, #475569);
}
[data-theme="aurora"] {
  --primary: #34d399; --primary-hover: #10b981; --primary-light: #6ee7b7;
  --secondary: #22d3ee; --accent: #a78bfa;
  --bg-body: #030d1a; --bg-sidebar: #051525; --bg-card: #0a1e33; --bg-hover: #0f2c48;
  --text: #e0fff8; --text-muted: #7eddd5; --text-dim: #4fb6aa;
  --border: #0e3a4a;
  --gradient: linear-gradient(135deg, #34d399, #22d3ee);
}
[data-theme="burgundy"] {
  --primary: #f59e0b; --primary-hover: #d97706; --primary-light: #fcd34d;
  --secondary: #e11d48; --accent: #fb7185;
  --bg-body: #12060a; --bg-sidebar: #1c0c12; --bg-card: #26101a; --bg-hover: #35172a;
  --text: #fef2f2; --text-muted: #fca5a5; --text-dim: #f87171;
  --border: #4c1029;
  --gradient: linear-gradient(135deg, #f59e0b, #e11d48);
}

:root { --col1-width: 260px; --col3-width: 300px; --navbar-height: 56px; }

/* iOS: for�a height correto em Safari (antes de html,body) */
html { min-height: -webkit-fill-available; }

html, body {
  height: 100%;
  min-height: -webkit-fill-available; /* iOS Safari */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-body); color: var(--text); overflow: hidden;
  -webkit-text-size-adjust: 100%; /* evita zoom de fonte no iOS */
}

/* iOS: remove highlight cinza no tap e delay de 300ms */
button, a, input, select, textarea, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* =====================================================
   LAYOUT 3 COLUNAS
   ===================================================== */
.container { display: flex; height: 100vh; height: 100dvh; width: 100%; /* 100dvh: exclui barra do browser no iOS */ }

.col-menu {
  width: var(--col1-width); min-width: var(--col1-width);
  background: var(--bg-sidebar); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.col-content {
  flex: 1; background: var(--bg-body);
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* in�rcia de scroll no iOS */
}
.col-aside {
  width: var(--col3-width); min-width: var(--col3-width);
  background: var(--bg-sidebar); border-left: 1px solid var(--border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =====================================================
   COLUNA 1 - MENU LATERAL
   ===================================================== */
.menu-logo {
  padding: 16px 20px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.menu-logo-icon { width: 36px; height: 36px; border-radius: 6px; object-fit: contain; }
.menu-logo-text {
  font-size: 1.1rem; font-weight: 700;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.menu-user {
  padding: 14px 20px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.menu-user-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg-card);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  overflow: hidden; flex-shrink: 0;
}
.menu-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.menu-user-info { flex: 1; min-width: 0; }
.menu-user-name { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-user-role { font-size: 0.72rem; color: var(--primary-light); }
.menu-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.menu-label {
  display: block; padding: 12px 20px 4px; font-size: 0.7rem; font-weight: 600;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em;
}
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 20px;
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
  border-left: 3px solid transparent; font-size: 0.88rem; text-decoration: none;
}
.menu-item:hover { background: var(--bg-hover); color: var(--text); }
.menu-item.active {
  background: rgba(99, 102, 241, 0.1); color: var(--primary-light);
  border-left-color: var(--primary);
}
.menu-item i { font-size: 1.2rem; width: 22px; }
.menu-badge {
  margin-left: auto; padding: 2px 8px; border-radius: 10px;
  font-size: 0.7rem; font-weight: 600; background: var(--bg-hover); color: var(--primary-light);
}

/* =====================================================
   COLUNA 2 - CONTE�DO PRINCIPAL
   ===================================================== */
.content-tabs {
  display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--border);
  overflow-x: auto; overflow-y: hidden; background: var(--bg-body);
  scrollbar-width: none; position: sticky; top: 0; z-index: 10;
}
.content-tabs::-webkit-scrollbar { display: none; }
.content-tab {
  padding: 12px 16px; background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 0.88rem; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.content-tab:hover { color: var(--text); }
.content-tab.active { color: var(--primary-light); border-bottom-color: var(--primary); }
.content-tab i { font-size: 1.1rem; }
.tab-badge {
  background: var(--primary); color: #fff; border-radius: 999px;
  padding: 1px 6px; font-size: 0.68rem; font-weight: 700;
}
.content-section { padding: 20px 24px; display: none; }
.content-section.active { display: block; }

/* Welcome banner */
.welcome-banner {
  background: var(--gradient); border-radius: 16px; padding: 24px;
  margin-bottom: 20px; position: relative; overflow: hidden; color: #fff;
}
.welcome-banner::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 300px; height: 300px; background: rgba(255,255,255,0.1); border-radius: 50%;
}
.welcome-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.welcome-text { font-size: 0.9rem; opacity: 0.9; }

/* Stats grid */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; text-align: center; transition: all 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.stat-icon { font-size: 1.5rem; margin-bottom: 6px; }
.stat-value { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* Quick actions */
.quick-actions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; transition: all 0.2s;
  text-decoration: none; color: var(--text-muted);
}
.quick-action:hover {
  border-color: var(--primary); color: var(--primary-light);
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99,102,241,0.1);
}
.quick-action i { font-size: 1.5rem; }
.quick-action span { font-size: 0.8rem; font-weight: 500; text-align: center; }

.section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
  flex-wrap: wrap; gap: 10px;
}
.section-title {
  font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }

/* Activity card */
.activity-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
}
.activity-card-title {
  font-size: 0.95rem; font-weight: 600; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.activity-item {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border-radius: 8px; transition: background 0.2s;
}
.activity-item:hover { background: var(--bg-hover); }
.activity-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; background: var(--bg-hover); color: var(--primary-light); flex-shrink: 0;
}
.activity-info { flex: 1; }
.activity-text { font-size: 0.85rem; color: var(--text); }
.activity-time { font-size: 0.75rem; color: var(--text-dim); }

/* Feature buttons */
.feature-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  border-radius: 10px; border: none; cursor: pointer; font-size: 0.88rem;
  font-weight: 600; transition: all 0.2s; text-decoration: none;
}
.feature-btn.primary { background: var(--gradient); color: #fff; }
.feature-btn.primary:hover { opacity: 0.9; transform: translateY(-1px); }
.feature-btn.outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.feature-btn.outline:hover { background: var(--primary); color: #fff; }

/* Form */
.form-row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 180px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-body); color: var(--text); font-size: 0.88rem;
  transition: border-color 0.2s; outline: none; font-family: inherit;
}
.form-input:focus { border-color: var(--primary); }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* =====================================================
   COLUNA 3 - ASIDE
   ===================================================== */
.aside-section { padding: 14px; border-bottom: 1px solid var(--border); }
.aside-title {
  font-size: 0.95rem; font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.aside-tip {
  background: var(--bg-hover); border-radius: 10px; padding: 12px;
  margin-bottom: 8px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5;
}
.aside-tip i { color: var(--primary-light); margin-right: 4px; }

/* =====================================================
   NAVBAR MOBILE
   ===================================================== */
.navbar-mobile {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  /* notch iOS: safe-area-inset-top garante conte�do abaixo do notch/Dynamic Island */
  height: calc(var(--navbar-height) + env(safe-area-inset-top, 0px));
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border); z-index: 100;
  padding: env(safe-area-inset-top, 0px) 16px 0;
  align-items: center; justify-content: space-between;
}
.navbar-btn {
  width: 40px; height: 40px; background: none; border: none;
  color: var(--text); font-size: 1.4rem; cursor: pointer;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.navbar-btn:hover { background: var(--bg-hover); }
.navbar-logo { display: flex; align-items: center; gap: 8px; }
.navbar-logo-text {
  font-size: 1rem; font-weight: 700;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 90;
}
.menu-overlay.active { display: block; }

/* Empty state / loading */
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--text-dim);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 10px; display: block; }
.empty-state p { font-size: 0.9rem; }
.loading-spinner {
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.loading-spinner::after {
  content: ''; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   STATUS PILLS (an�lises)
   ===================================================== */
.status-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
}
.status-pill.aguardando { background: rgba(245,158,11,0.15); color: #f59e0b; }
.status-pill.andamento  { background: rgba(59,130,246,0.15);  color: #3b82f6; }
.status-pill.concluido  { background: rgba(34,197,94,0.15);   color: #22c55e; }
.status-pill.recusado   { background: rgba(239,68,68,0.15);   color: #ef4444; }
.status-pill.cancelado  { background: rgba(156,163,175,0.15); color: #9ca3af; }

/* =====================================================
   LISTA DE AN�LISES
   ===================================================== */
.analysis-list { display: flex; flex-direction: column; gap: 10px; }
.analysis-item {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 12px; align-items: start;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; transition: all 0.2s;
}
.analysis-item:hover { border-color: var(--primary); transform: translateX(2px); }
.analysis-cover {
  width: 60px; height: 90px; border-radius: 8px; overflow: hidden;
  background: var(--bg-hover); flex-shrink: 0;
}
.analysis-cover img { width: 100%; height: 100%; object-fit: cover; }
.analysis-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.analysis-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.analysis-meta { font-size: 0.78rem; color: var(--text-muted); }
.analysis-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.analysis-btn {
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-hover); color: var(--text-muted); font-size: 0.78rem;
  cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.analysis-btn:hover { border-color: var(--primary); color: var(--primary); }

/* =====================================================
   BUNDLE ROW (contrata��es)
   ===================================================== */
.bundle-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--bg-hover);
  margin-bottom: 8px; transition: all 0.2s;
}
.bundle-row:hover { border-color: var(--primary); }
.bundle-row-tier {
  padding: 3px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0;
}
.bundle-bronze { background: rgba(205,127,50,0.2); color: #cd7f32; border: 1px solid rgba(205,127,50,0.4); }
.bundle-prata  { background: rgba(192,192,192,0.2); color: #808080; border: 1px solid rgba(192,192,192,0.4); }
.bundle-ouro   { background: rgba(255,215,0,0.2);  color: #b8860b; border: 1px solid rgba(255,215,0,0.4); }
.bundle-platina{ background: rgba(229,228,226,0.2);color: #999;    border: 1px solid rgba(229,228,226,0.4); }
.bundle-row-info { flex: 1; min-width: 0; }
.bundle-row-nome { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.bundle-row-meta { font-size: 0.76rem; color: var(--text-muted); }
.bundle-row-vendas { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; }
.bundle-row-acoes { display: flex; gap: 6px; }

/* =====================================================
   MEU CLUBE
   ===================================================== */
.clube-header {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: start; margin-bottom: 16px;
}
.clube-banner {
  width: 100%; height: 120px; border-radius: 14px; background: var(--gradient);
  position: relative; overflow: hidden; margin-bottom: 16px;
}
.clube-avatar {
  position: absolute; bottom: -20px; left: 20px;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-card); border: 3px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--primary);
  overflow: hidden;
}
.clube-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.clube-meta { padding-top: 28px; }
.clube-nome { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.clube-descricao { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.clube-stats-row {
  display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--text-muted);
}
.clube-stats-row i { color: var(--primary-light); margin-right: 3px; }

/* =====================================================
   PLANOS DE ASSINATURA
   ===================================================== */
.planos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.plano-card {
  background: var(--bg-card); border: 2px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: all 0.2s; position: relative;
}
.plano-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.plano-destaque {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(99,102,241,0.2);
}
.plano-badge {
  background: var(--gradient); color: #fff; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; text-align: center; padding: 5px;
}
.plano-header {
  padding: 20px; text-align: center; background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}
.plano-icon { font-size: 2rem; margin-bottom: 8px; color: var(--primary); }
.plano-nome { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.plano-preco { font-size: 2rem; font-weight: 800; color: var(--primary); }
.plano-preco span { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); }
.plano-body { padding: 16px; }
.plano-itens {
  list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;
}
.plano-itens li {
  display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--text-muted);
}
.plano-itens i.ri-check-line { color: #22c55e; }
.plano-footer { padding: 16px; border-top: 1px solid var(--border); }
.plano-footer .feature-btn { width: 100%; justify-content: center; }

/* Assinatura ativa */
.assinatura-status { margin-bottom: 16px; }
.assinatura-ativa {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; border-left: 4px solid var(--primary);
}
.assinatura-ativa-icone { font-size: 2rem; color: var(--accent); }
.assinatura-ativa-info { flex: 1; }
.assinatura-ativa-plano { font-size: 1rem; font-weight: 700; color: var(--text); }
.assinatura-ativa-validade { font-size: 0.82rem; color: var(--text-muted); }
.assinatura-historico { margin-top: 16px; }
.plano-ativo { border-color: var(--primary); box-shadow: 0 4px 20px rgba(99,102,241,0.2); }
.plano-btn-ativo { opacity: 0.6; cursor: not-allowed; }

/* =====================================================
   UTILIT�RIOS
   ===================================================== */
.is-hidden { display: none !important; }
.icon-danger  { color: #ef4444; }
.icon-info    { color: #3b82f6; }
.icon-success { color: #22c55e; }
.icon-lg      { font-size: 1.4rem; flex-shrink: 0; }
.alert-text   { margin: 4px 0 0; font-size: 0.88rem; }

/* =====================================================
   ASSINATURA � Rich Section (migrado do lazy)
   ===================================================== */

/* Hero */
.ass-header {
  background: var(--gradient);
  color: #fff; padding: 50px 40px; border-radius: 16px; margin-bottom: 24px;
  text-align: center; position: relative; overflow: hidden;
}
.ass-header-titulo {
  margin: 0 0 14px; font-size: 2rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  position: relative; z-index: 1;
}
.ass-header-titulo i { font-size: 2.4rem; }
.ass-header-desc {
  margin: 0 auto 18px; font-size: 1rem; color: rgba(255,255,255,0.88);
  max-width: 680px; line-height: 1.6; position: relative; z-index: 1;
}
.trial-badge-hero {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(40,167,69,.2); border: 2px solid #28a745; color: #7cfc00;
  padding: 10px 22px; border-radius: 30px; font-size: 0.9rem; margin-bottom: 14px;
  animation: pulse-trial 2s ease-in-out infinite; position: relative; z-index: 1;
}
@keyframes pulse-trial {
  0%,100% { box-shadow: 0 0 0 0 rgba(40,167,69,.4); }
  50% { box-shadow: 0 0 20px 5px rgba(40,167,69,.2); }
}
.badge-premium-hero {
  display: inline-block; background: linear-gradient(135deg,#c9a227,#e0b92b);
  color: #1a1a2e; padding: 6px 18px; border-radius: 20px; font-size: 0.78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  position: relative; z-index: 1;
}

/* Status container */
.ass-status-container {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.ass-status-container.status-ativo { background: #d4edda; border-color: #28a745; }
.ass-status-info { display: flex; align-items: center; gap: 14px; }
.ass-status-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.ass-status-icon.ativo  { background: #28a745; color: #fff; }
.ass-status-icon.inativo{ background: #6c757d; color: #fff; }
.ass-status-titulo  { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: var(--text); }
.ass-status-detalhes{ margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* Vantagens grid */
.ass-vantagens-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin-bottom: 24px;
}
.ass-vantagem-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; transition: all 0.3s; position: relative; overflow: hidden;
}
.ass-vantagem-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient);
}
.ass-vantagem-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: var(--primary); }
.ass-vantagem-card h3 { margin: 0 0 8px; font-size: 1rem; color: var(--text); font-weight: 600; }
.ass-vantagem-card p  { margin: 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.ass-vantagem-icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 14px;
}
.ass-vantagem-icon.verde  { background: linear-gradient(135deg,#28a745,#20c997); color: #fff; }
.ass-vantagem-icon.azul   { background: linear-gradient(135deg,#007bff,#17a2b8); color: #fff; }
.ass-vantagem-icon.roxo   { background: linear-gradient(135deg,#6f42c1,#e83e8c); color: #fff; }
.ass-vantagem-icon.dourado{ background: linear-gradient(135deg,#c9a227,#ffc107); color: #fff; }

/* Trial destaque */
.ass-trial-destaque {
  background: linear-gradient(135deg,#1a472a,#2d5a3d,#1a472a);
  border: 2px solid #28a745; border-radius: 16px; padding: 32px;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.ass-trial-destaque::before {
  content: ''; position: absolute; top: -50%; right: -50%;
  width: 100%; height: 200%;
  background: radial-gradient(circle, rgba(40,167,69,.1) 0%, transparent 70%);
  pointer-events: none;
}
.ass-trial-content {
  display: flex; align-items: center; gap: 28px; position: relative; z-index: 2;
}
.ass-trial-icon {
  flex-shrink: 0; width: 96px; height: 96px;
  background: linear-gradient(135deg,#28a745,#20c997); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(40,167,69,.3);
}
.ass-trial-icon i    { font-size: 1.6rem; color: #fff; margin-bottom: -4px; }
.ass-trial-dias      { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.ass-trial-texto h3  { margin: 0 0 12px; font-size: 1.4rem; color: #7cfc00; font-weight: 700; }
.ass-trial-texto p   { margin: 0; color: #e0e0e0; font-size: 0.9rem; line-height: 1.7; }
.ass-trial-texto strong { color: #7cfc00; }

/* Stripe aviso */
.ass-stripe-aviso {
  padding: 28px; background: linear-gradient(135deg,#fff3cd,#ffe9a6);
  border: 2px solid #ffc107; border-radius: 16px; margin-bottom: 24px; text-align: center;
}
.ass-stripe-aviso-icon   { font-size: 3rem; color: #ff9800; margin-bottom: 14px; }
.ass-stripe-aviso-titulo { font-size: 1.3rem; font-weight: 700; color: #856404; margin: 0 0 12px; }
.ass-stripe-aviso-titulo.incompleto { color: #cc7000; }
.ass-stripe-aviso-texto  {
  font-size: 0.95rem; color: #856404; margin: 0 auto 20px; line-height: 1.6; max-width: 600px;
}
.ass-stripe-aviso-texto.incompleto { color: #cc7000; }
.btn-conectar-stripe {
  background: linear-gradient(135deg,#667eea,#764ba2); color: #fff; border: none;
  padding: 12px 26px; border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-conectar-stripe:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(102,126,234,.4); }
.btn-conectar-stripe.stripe-incompleto { background: linear-gradient(135deg,#ffa500,#ff8c00); }

/* Planos section */
.ass-planos-section {
  background: var(--bg-hover); border-radius: 16px; padding: 36px 28px; margin-bottom: 24px;
}
.ass-planos-section.planos-bloqueados { opacity: 0.5; pointer-events: none; filter: grayscale(50%); }
.ass-planos-titulo { text-align: center; margin: 0 0 8px; font-size: 1.5rem; color: var(--text); }
.ass-planos-desc   { text-align: center; color: var(--text-muted); margin: 0 0 14px; font-size: 0.95rem; }
.ass-trial-aviso-wrapper { text-align: center; margin-bottom: 22px; }
.ass-trial-aviso {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg,#d4edda,#c3e6cb); border: 1px solid #28a745;
  color: #155724; padding: 10px 22px; border-radius: 25px; font-size: 0.9rem;
}
.ass-trial-aviso i      { font-size: 1.1rem; color: #28a745; }
.ass-trial-aviso strong { color: #28a745; }

/* Cards de plano */
.ass-planos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
}
.ass-plano-card {
  background: var(--bg-card); border: 2px solid var(--border); border-radius: 16px;
  padding: 28px 22px; text-align: center; transition: all 0.3s; position: relative;
  display: flex; flex-direction: column;
}
.ass-plano-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.ass-destaque { border-color: var(--primary); }
/* 🔴🔴 TEXTO DE INTERFACE EM `content:` DE CSS — o quarto ponto cego.
   Esta pílula estava FORA DOS TRÊS GATES ao mesmo tempo, por construção: não há
   nó de texto para o `data-i18n` trocar, não há atributo para o
   `data-i18n-attr` alcançar, e o gate de chaves só olha código × pacote.
   Quem a achou foi o `varrer_completude.js`, que hoje também lê `.css`.

   A ponte é a VARIÁVEL: a folha declara a queda e o dashboard.js escreve o
   valor nos dois ganchos. A página sem motor continua idêntica ao que era.
   ⚠️ As aspas ficam DENTRO da variável (`--x: "texto"`), e a aspa da tradução
   tem de ser escapada — em francês e italiano o apóstrofo é corrente, e uma
   aspa solta derruba a declaração inteira: a pílula SUMIRIA da tela.
   ⚠️ Há `letter-spacing` e o rótulo é curto por desenho: vale forma CURTA. */
.ass-destaque::before {
  content: var(--badge-mais-popular, "MAIS POPULAR"); position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%); background: var(--gradient); color: #fff;
  padding: 4px 14px; border-radius: 14px; font-size: 0.68rem; font-weight: 700; letter-spacing: 1px;
}
.ass-plano-periodo { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.ass-plano-valor   { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ass-plano-economia{
  display: inline-block; background: rgba(34,197,94,.15); color: #15803d;
  padding: 3px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; margin-bottom: 12px;
}
.ass-plano-equiv   { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 18px; }

/* Skeleton loading para valores dos planos */
.ass-plano-card.loading .ass-plano-valor,
.ass-plano-card.loading .ass-plano-economia,
.ass-plano-card.loading .ass-plano-equiv {
  color: transparent;
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
  background-size: 200% 100%;
  animation: shimmer-ass 1.5s infinite;
  border-radius: 4px;
}
@keyframes shimmer-ass {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Bot�o assinar */
.btn-assinar {
  display: block; width: 100%; padding: 12px 18px; border: none; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
  background: var(--gradient); color: #fff; margin-top: auto;
}
.btn-assinar:hover   { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(0,0,0,.15); }
.btn-assinar:disabled{ opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Recursos inclusos */
.ass-recursos-section {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px; margin-bottom: 24px;
}
.ass-recursos-titulo {
  margin: 0 0 18px; font-size: 1.1rem; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.ass-recursos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px;
}
.ass-recurso-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--bg-hover); border-radius: 8px; transition: background 0.2s;
}
.ass-recurso-item:hover  { background: var(--border); }
.ass-recurso-item i      { color: #28a745; font-size: 1.05rem; }
.ass-recurso-item span   { color: var(--text-muted); font-size: 0.84rem; }

/* Alert */
.ass-alert {
  padding: 14px 18px; border-radius: 8px; margin-bottom: 10px;
  display: flex; align-items: flex-start; gap: 10px;
}
.ass-alert-info { background: #cfe2ff; border-left: 4px solid #0d6efd; color: #084298; }

/* =====================================================
   G�NEROS
   ===================================================== */
.genero-btn {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-hover); color: var(--text-muted); font-size: 0.8rem;
  cursor: pointer; transition: all 0.2s;
}
.genero-btn:hover { border-color: var(--primary); color: var(--primary); }
.genero-btn.ativo {
  background: rgba(99,102,241,0.15); border-color: var(--primary); color: var(--primary-light);
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-box {
  width: min(520px, 96vw); background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; max-height: 90vh; overflow-y: auto;
}
.modal-title {
  font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}

/* =====================================================
   TOAST DE SUCESSO
   ===================================================== */
.toast-sucesso {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #22c55e; color: #fff; border-radius: 10px; padding: 10px 20px;
  font-size: 0.88rem; font-weight: 600; z-index: 9999;
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 16px rgba(34,197,94,0.3);
}
.toast-sucesso.visivel { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .navbar-mobile { display: flex; }
  /* padding-top inclui notch para n�o cobrir conte�do atr�s do navbar */
  .container { padding-top: calc(var(--navbar-height) + env(safe-area-inset-top, 0px)); }
  .col-menu {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 95;
    transform: translateX(-100%); transition: transform 0.3s ease;
  }
  .col-menu.open { transform: translateX(0); }
  .col-aside {
    /* top abaixo da navbar (inclui notch) */
    position: fixed; top: calc(var(--navbar-height) + env(safe-area-inset-top, 0px)); right: 0; bottom: 0; z-index: 95;
    transform: translateX(100%); transition: transform 0.3s ease;
    padding-bottom: calc(150px + env(safe-area-inset-bottom, 34px));
  }
  .col-aside.open { transform: translateX(0); }
  .content-tabs { display: none; }
  /* Margem inferior � home indicator iOS */
  .content-section { padding-bottom: calc(150px + env(safe-area-inset-bottom, 34px)); }
  .col-content { padding-bottom: calc(150px + env(safe-area-inset-bottom, 34px)); }
  .col-menu .menu-nav { -webkit-overflow-scrolling: touch; padding-bottom: calc(150px + env(safe-area-inset-bottom, 34px)); }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .analysis-item { grid-template-columns: 50px 1fr; }
  .analysis-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .planos-grid { grid-template-columns: 1fr; }
  .clube-header { grid-template-columns: 1fr; }
  .assinatura-ativa { flex-direction: column; align-items: flex-start; }
  /* Assinatura rich */
  .ass-header { padding: 30px 18px; }
  .ass-header-titulo { font-size: 1.5rem; flex-direction: column; gap: 8px; }
  .ass-header-titulo i { font-size: 2rem; }
  .ass-trial-content { flex-direction: column; text-align: center; gap: 18px; }
  .ass-trial-icon { width: 78px; height: 78px; }
  .ass-trial-texto h3 { font-size: 1.15rem; }
  .ass-planos-section { padding: 24px 16px; }
  .ass-planos-grid { grid-template-columns: 1fr; }
  .ass-vantagens-grid { grid-template-columns: 1fr; }
  .ass-recursos-grid { grid-template-columns: 1fr; }
}