:root {
    --bg-main: #0b0c0e;
    --bg-card: #161719;
    --bg-input: #1f2024;
    --primary: #b5c7eb;
    --primary-glow: rgba(181, 199, 235, 0.2);
    --success: #10b981;
    --danger: #ef4444;
    --text-main: #f2f5f7;
    --text-muted: #6b6e76;
    --border: rgba(255, 255, 255, 0.08);
    --radius-md: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-main); color: var(--text-main); min-height: 100vh; width: 100%; padding: 70px 0 90px 0; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--bg-input); border-radius: 10px; }
.hidden { display: none !important; }

.app-header { position: fixed; top: 0; left: 0; width: 100%; height: 60px; background: rgba(11, 12, 14, 0.8); backdrop-filter: blur(20px); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; z-index: 100; border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { height: 32px; width: 32px; }
.logo-text { font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.logo-ade { color: #f2f5f7; }
.logo-max { color: #b5c7eb; }
.header-icon i { color: var(--text-muted); font-size: 18px; cursor: pointer; }

.navbar { position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%); width: calc(100% - 30px); max-width: 500px; background: rgba(22, 23, 25, 0.80); backdrop-filter: blur(20px); display: flex; justify-content: space-around; padding: 12px 10px; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 100; }
.nav-btn { background: none; border: none; color: var(--text-muted); font-size: 11px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 15px; border-radius: 12px; transition: all 0.3s; }
.nav-btn i { font-size: 18px; }
.nav-btn.active { color: var(--primary); background: rgba(181, 199, 235, 0.1); }

.container { width: 100%; max-width: 600px; margin: 0 auto; padding: 20px; }
.view { display: none; animation: fadeIn 0.4s ease; }
.active-view { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
h1 { font-size: 28px; font-weight: 800; margin-bottom: 5px; }
.subtitle { color: var(--text-muted); margin-bottom: 25px; font-size: 15px; }
.header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }

.card { background: var(--bg-card); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.highlight-card { background: linear-gradient(135deg, #181a1f, #1f2024); border: 1px solid rgba(181, 199, 235, 0.3); text-align: left; padding: 25px; }
.highlight-card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 10px; }
.highlight-card h2 { font-size: 26px; font-weight: 800; margin-bottom: 25px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 .card { margin-bottom: 0; }
.big-number { font-size: 32px; font-weight: 800; color: var(--primary); margin-top: 8px; display: block; }
.card h3 { font-size: 14px; color: var(--text-muted); font-weight: 500; }

.imc-result-card { border: 1px solid var(--primary); background: linear-gradient(135deg, #181a1f, #1f2024); }
.imc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: center; margin-top: 15px; }
.status-tag { display: inline-block; padding: 5px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; margin-top: 5px; background: var(--bg-input); color: var(--text-main); }
.label { display: block; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; font-weight: 600; }

.stat-card { display: flex; align-items: center; gap: 15px; }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-icon.blue { background: rgba(181, 199, 235, 0.1); color: var(--primary); }
.stat-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--success); }

.grid-prog-stats { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 20px; }
.grid-prog-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.chart-card { display: flex; flex-direction: column; }
.chart-container { position: relative; height: 350px; width: 100%; margin-top: 15px; }
.prog-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); padding: 15px 18px; border-radius: 16px; border: 1px solid var(--border); margin-bottom: 10px; }
.prog-date { display: flex; flex-direction: column; gap: 4px; }
.prog-date .day { font-size: 15px; font-weight: 700; color: var(--text-main); }
.prog-date .reps { font-size: 12px; color: var(--text-muted); }
.prog-weight { font-size: 20px; font-weight: 800; color: var(--success); background: rgba(16, 185, 129, 0.1); padding: 8px 14px; border-radius: 10px; }
.prog-record { font-size: 10px; text-transform: uppercase; background: var(--primary); color: #0b0c0e; padding: 4px 10px; border-radius: 20px; margin-left: 10px; font-weight: 700; }

.btn-primary, .btn-success, .btn-danger-outline, .btn-danger { border: none; padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; width: 100%; transition: transform 0.1s, filter 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--primary); color: #0b0c0e; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-success { background: var(--success); color: white; font-size: 16px; padding: 16px; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-full { width: 100%; margin-top: 12px; }

.workouts-list { display: flex; flex-direction: column; gap: 12px; }
.workout-item { display: flex; flex-direction: column; gap: 15px; background: var(--bg-card); padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--border); }
.workout-info h3 { font-size: 16px; color: var(--text-main); font-weight: 700; margin-bottom: 4px; }
.workout-info p { color: var(--text-muted); font-size: 13px; }
.workout-actions { display: flex; gap: 10px; }
.btn-action { flex: 1; padding: 10px; border-radius: 8px; border: none; cursor: pointer; font-size: 13px; font-weight: 600; }
.btn-edit { background: rgba(181, 199, 235, 0.1); color: var(--primary); border: 1px solid rgba(181, 199, 235, 0.3); }
.btn-delete { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-start { background: var(--primary); color: #0b0c0e; }

input, select { width: 100%; background: var(--bg-input); border: 1px solid var(--border); padding: 14px; border-radius: 10px; color: var(--text-main); font-size: 16px; font-family: inherit; margin-bottom: 15px; }
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
label { font-size: 13px; color: var(--text-muted); font-weight: 500; display: block; margin-bottom: 8px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: flex-end; z-index: 200; }
.modal-content { background: var(--bg-main); width: 100%; max-width: 500px; padding: 30px 25px 40px; border-radius: 24px 24px 0 0; border-top: 1px solid var(--border); max-height: 85vh; overflow-y: auto; }
.modal-content h2 { font-size: 24px; font-weight: 800; margin-bottom: 25px; text-align: center; }
.modal-content h3 { font-size: 13px; color: var(--text-muted); margin: 25px 0 12px 0; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.modal-actions { display: flex; gap: 12px; margin-top: 30px; }
.modal-actions button { flex: 1; }
.info-box { background: rgba(181, 199, 235, 0.05); border: 1px solid rgba(181, 199, 235, 0.2); border-radius: 16px; padding: 15px; margin-bottom: 25px; }
.info-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.6; }

.active-workout-container { text-align: center; }
.progress-bar-container { width: 100%; height: 8px; background: var(--bg-input); border-radius: 10px; margin-bottom: 40px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--success), #34d399); border-radius: 10px; transition: width 0.4s ease; }
#active-exercise-name { font-size: 28px; font-weight: 800; margin-bottom: 5px; }
.set-info { font-size: 16px; color: var(--text-muted); margin-bottom: 30px; }
.timer-display { font-size: 96px; font-weight: 800; color: var(--primary); margin: 20px 0 30px; }

.timer-controls { display: flex; gap: 12px; justify-content: center; margin-top: 30px; }
.timer-controls button { width: auto; flex: 1; padding: 14px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-main); cursor: pointer; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s ease; }
.timer-controls button:hover { border-color: var(--primary); color: var(--primary); background: rgba(181, 199, 235, 0.1); }
.timer-controls .btn-danger { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--danger); }
.timer-controls .btn-danger:hover { background: var(--danger); color: white; border-color: var(--danger); }

.exercises-tabs { display: flex; gap: 10px; margin-bottom: 15px; overflow-x: auto; padding-bottom: 5px; }
.exercises-tabs::-webkit-scrollbar { height: 4px; }
.exercises-tabs::-webkit-scrollbar-thumb { background: var(--bg-input); border-radius: 4px; }
.tab-btn { white-space: nowrap; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.tab-btn:hover { border-color: rgba(181, 199, 235, 0.5); color: var(--text-main); }
.tab-btn.active-tab { background: rgba(181, 199, 235, 0.15); color: var(--primary); border: 1px solid var(--primary); box-shadow: 0 4px 10px rgba(181, 199, 235, 0.1); }

.exercises-library { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.exercise-lib-item { display: flex; align-items: center; gap: 15px; padding: 15px; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.exercise-lib-item:last-child { border-bottom: none; }
.exercise-lib-item:hover { background: rgba(255, 255, 255, 0.03); }
.ex-thumb { width: 55px; height: 55px; border-radius: 12px; object-fit: cover; background: var(--bg-input); border: 1px solid var(--border); flex-shrink: 0; } 
.ex-info { flex: 1; display: flex; flex-direction: column; gap: 6px; } 
.ex-info span { font-size: 15px; font-weight: 700; color: var(--text-main); } 
.btn-video { background: rgba(181, 199, 235, 0.1); border: none; color: var(--primary); font-size: 11px; font-weight: 600; cursor: pointer; padding: 5px 10px; border-radius: 6px; text-align: left; width: fit-content; display: inline-flex; align-items: center; gap: 5px; transition: 0.2s; }
.btn-video:hover { background: rgba(181, 199, 235, 0.2); }
.btn-add-lib { width: auto !important; margin: 0 !important; padding: 10px 16px !important; font-size: 13px !important; background: transparent !important; color: var(--text-main) !important; box-shadow: none !important; border: 1px solid var(--border); border-radius: 10px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: 0.2s; } 
.btn-add-lib:hover { background: var(--primary) !important; color: #0b0c0e !important; border-color: var(--primary); } 

.added-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; } 
.added-item { display: flex; justify-content: space-between; align-items: center; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); padding: 12px 15px; border-radius: 10px; animation: fadeIn 0.3s; } 
.added-item span { font-size: 14px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 10px; } 
.added-item span i { color: var(--success); font-size: 16px; }
.btn-remove { background: transparent; border: 1px solid var(--danger); color: var(--danger); padding: 6px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; font-weight: 600; transition: 0.2s; } 
.btn-remove:hover { background: var(--danger); color: white; }

.client-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: var(--bg-card); padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--border); transition: 0.2s; }
.client-card:hover { border-color: rgba(181, 199, 235, 0.3); }
.client-info { display: flex; align-items: center; gap: 15px; flex: 1; min-width: 0; }
.client-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--bg-input); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border: 1px solid var(--border); }
.client-avatar img { width: 100%; height: 100%; object-fit: cover; }
.client-avatar i { color: var(--text-muted); font-size: 20px; }
.client-details h3 { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-details p { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-badge { font-size: 10px; background: var(--primary); color: #0b0c0e; padding: 2px 6px; border-radius: 10px; vertical-align: middle; margin-left: 5px; font-weight: 700; }
.manage-btn { background: rgba(181, 199, 235, 0.1); color: var(--primary); border: 1px solid rgba(181, 199, 235, 0.3); padding: 10px 15px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.manage-btn:hover { background: var(--primary); color: #0b0c0e; }
.danger-zone { border: 1px solid rgba(239, 68, 68, 0.3) !important; background: rgba(239, 68, 68, 0.05) !important; }
.danger-zone h3 { color: var(--danger) !important; }

/* MODO CLARO (TEMA BRANCO) */
.theme-toggle { cursor: pointer; transition: transform 0.2s; }
.theme-toggle:hover { transform: scale(1.1); }
body.light-mode {
    --bg-main: #f4f6f8;
    --bg-card: #ffffff;
    --bg-input: #eef1f4;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.08);
}
body.light-mode .app-header { background: rgba(255, 255, 255, 0.85); }
body.light-mode .navbar { background: rgba(255, 255, 255, 0.9); border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
body.light-mode .nav-btn.active { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
body.light-mode .highlight-card { background: linear-gradient(135deg, #ffffff, #f8fafc); border: 1px solid var(--border); }
body.light-mode .imc-result-card { background: #ffffff; }
body.light-mode .modal-overlay { background: rgba(0,0,0,0.3); }
body.light-mode .modal-content { background: var(--bg-card); }
body.light-mode .info-box { background: rgba(59, 130, 246, 0.05); border-color: rgba(59, 130, 246, 0.2); }
body.light-mode .added-item { background: rgba(16, 185, 129, 0.05); border-color: rgba(16, 185, 129, 0.2); }
body.light-mode .danger-zone { background: rgba(239, 68, 68, 0.05) !important; }
body.light-mode .btn-primary, body.light-mode .btn-start, body.light-mode .admin-badge, body.light-mode .prog-record, body.light-mode .manage-btn:hover, body.light-mode .btn-add-lib:hover { color: #ffffff !important; }

/* Ajustando a Logo no Tema Claro (App) */
body.light-mode .logo-ade { color: #1e293b; } /* ACADE vira preto */
body.light-mode .logo-max { color: #3b82f6; } /* MAX vira azul escuro */
body.light-mode .logo svg path[stroke="#b5c7eb"] { stroke: #3b82f6; } /* Curva MAX vira azul */
body.light-mode .logo svg path[stroke="#f2f5f7"] { stroke: #1e293b; } /* Curva ACADE vira preto */
body.light-mode .logo svg rect[fill="#b5c7eb"] { fill: #3b82f6; } /* Barrinha do meio vira azul */

@media (min-width: 768px) {
    body { padding: 70px 0 0 260px; }
    .app-header { padding-left: 260px; }
    .container { max-width: 100%; padding: 40px; }
    .navbar { flex-direction: column; justify-content: flex-start; gap: 10px; top: 80px; left: 20px; transform: none; bottom: 20px; width: 240px; height: calc(100vh - 100px); }
    .nav-btn { flex-direction: row; justify-content: flex-start; font-size: 15px; padding: 15px 20px; width: 100%; }
    .nav-btn i { font-size: 16px; }
    .modal-overlay { align-items: center; }
    .modal-content { border-radius: 24px; border: 1px solid var(--border); }
    .grid-prog-stats { grid-template-columns: repeat(3, 1fr); }
    .grid-prog-layout { grid-template-columns: 350px 1fr; align-items: start; }
    .chart-container { height: 400px !important; }
}

@media (max-width: 600px) {
    .nav-btn span { display: none; }
    .nav-btn i { font-size: 20px; }
    .nav-btn { padding: 12px; }
}
@media (max-width: 480px) {
    .client-card { flex-direction: column; align-items: flex-start; }
    .manage-btn { width: 100%; justify-content: center; margin-top: 5px; }
}
/* =============================================
   NUTRIÇÃO
   ============================================= */
.macro-card {
    display: flex; flex-direction: column; gap: 4px;
    padding: 15px; border-radius: 12px; border: 1px solid var(--border);
}
.macro-prot { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.25); }
.macro-carb { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); }
.macro-fat  { background: rgba(239,68,68,0.08);  border-color: rgba(239,68,68,0.25);  }
.macro-water{ background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.25); }
.macro-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.macro-value { font-size: 22px; font-weight: 800; color: var(--text-main); }
.macro-cal   { font-size: 12px; color: var(--text-muted); }
.macro-prot .macro-value { color: #10b981; }
.macro-carb .macro-value { color: #f59e0b; }
.macro-fat  .macro-value { color: #ef4444; }
.macro-water .macro-value { color: #3b82f6; }

.macro-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.macro-bar-label { font-size: 13px; font-weight: 600; width: 90px; flex-shrink: 0; }
.macro-bar-track { flex: 1; height: 10px; background: var(--bg-input); border-radius: 10px; overflow: hidden; }
.macro-bar-fill  { height: 100%; border-radius: 10px; transition: width 0.6s ease; }
.macro-bar-pct   { font-size: 12px; color: var(--text-muted); width: 36px; text-align: right; }

.nutr-tip-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.nutr-tip-item i { font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.nutr-tip-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* =============================================
   FICHA DE SAÚDE
   ============================================= */
.health-section { margin-bottom: 20px; }
.health-section-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--primary); margin-bottom: 14px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.health-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.health-check-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-input); padding: 12px 14px;
    border-radius: 10px; border: 1px solid var(--border);
    cursor: pointer; transition: all 0.2s;
    font-size: 14px; font-weight: 500;
}
.health-check-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }
.health-check-item:has(input:checked) { border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.07); color: var(--text-main); }

.health-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; padding: 4px 10px;
    border-radius: 20px; margin: 3px;
}
.health-badge.red    { background: rgba(239,68,68,0.15);  color: #ef4444; }
.health-badge.yellow { background: rgba(245,158,11,0.15); color: #f59e0b; }
.health-badge.blue   { background: rgba(59,130,246,0.15); color: #3b82f6; }
.health-badge.green  { background: rgba(16,185,129,0.15); color: #10b981; }

.objetivo-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.objetivo-btn {
    padding: 14px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--bg-input); color: var(--text-muted);
    cursor: pointer; text-align: center; transition: all 0.2s;
    font-size: 13px; font-weight: 600;
}
.objetivo-btn i { display: block; font-size: 20px; margin-bottom: 6px; }
.objetivo-btn.selected { border-color: var(--primary); background: rgba(181,199,235,0.12); color: var(--text-main); }
body.light-mode .objetivo-btn.selected { border-color: #3b82f6; background: rgba(59,130,246,0.1); }

.nivel-btn-grid { display: flex; gap: 8px; }
.nivel-btn {
    flex: 1; padding: 12px 8px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--bg-input);
    color: var(--text-muted); cursor: pointer; text-align: center;
    font-size: 13px; font-weight: 600; transition: all 0.2s;
}
.nivel-btn.selected { border-color: var(--success); background: rgba(16,185,129,0.1); color: var(--success); }

/* Alerta vermelho para fichas com restrições */
.health-alert-banner {
    display: flex; align-items: center; gap: 12px;
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
    border-radius: 12px; padding: 14px; margin-bottom: 16px;
    font-size: 14px; font-weight: 500; color: #ef4444;
}

/* =============================================
   MELHORIAS VISUAIS v3
   ============================================= */

/* Navbar com 6 botões — reduz padding no mobile */
@media (max-width: 767px) {
    .navbar { padding: 10px 4px; gap: 0; }
    .nav-btn { padding: 8px 6px; gap: 3px; font-size: 10px; }
    .nav-btn i { font-size: 17px; }
}
@media (max-width: 380px) {
    .nav-btn span { display: none; }
    .nav-btn i { font-size: 20px; }
    .nav-btn { padding: 10px 8px; }
}

/* Hover nos cards de treino */
.workout-item { transition: border-color 0.2s, transform 0.15s; }
.workout-item:hover { border-color: rgba(181,199,235,0.25); transform: translateY(-1px); }

/* Hover nos cards gerais */
.card { transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.3); }

/* Animação stagger nos cards ao entrar na view */
.active-view .card:nth-child(1) { animation: fadeInUp 0.35s ease both; }
.active-view .card:nth-child(2) { animation: fadeInUp 0.35s 0.07s ease both; }
.active-view .card:nth-child(3) { animation: fadeInUp 0.35s 0.14s ease both; }
.active-view .card:nth-child(4) { animation: fadeInUp 0.35s 0.21s ease both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-input) 25%, rgba(255,255,255,0.05) 50%, var(--bg-input) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-title { height: 24px; width: 50%; margin-bottom: 16px; }

/* Separador de seção no perfil */
.section-divider {
    height: 1px; background: var(--border);
    margin: 20px 0; border: none;
}

/* Badge de status online */
.online-dot {
    display: inline-block; width: 9px; height: 9px;
    background: var(--success); border-radius: 50%;
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 6px var(--success);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Scroll suave */
html { scroll-behavior: smooth; }

/* Inputs no modo claro */
body.light-mode input::placeholder { color: #94a3b8; }
body.light-mode select { background: #fff; color: #1e293b; border-color: rgba(0,0,0,0.1); }
body.light-mode select option { background: #fff; }

/* Chip de "novo" */
.badge-new {
    font-size: 10px; font-weight: 700; background: var(--success);
    color: #fff; padding: 2px 7px; border-radius: 20px;
    vertical-align: middle; margin-left: 6px; letter-spacing: 0.3px;
    animation: pulse-dot 2s infinite;
}

/* Botão de voltar nas subviews */
.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 14px; font-weight: 600;
    cursor: pointer; margin-bottom: 20px; transition: color 0.2s;
    background: none; border: none; padding: 0;
}
.back-btn:hover { color: var(--primary); }
.back-btn i { font-size: 12px; }

/* Toast no desktop fica na lateral */
@media (min-width: 768px) {
    #academax-toast {
        bottom: 30px !important;
        left: auto !important;
        right: 30px !important;
        transform: translateY(10px) !important;
    }
    #academax-toast.show,
    #academax-toast[style*="opacity: 1"] {
        transform: translateY(0) !important;
    }
}
