/* Variáveis Inteligentes de Tema */
:root { 
    --fit-primary: #4caf50;
    --fit-bg: #0d0d0d;
    --fit-card-bg: rgba(255, 255, 255, 0.05); 
    --fit-border: rgba(255, 255, 255, 0.1); 
    --fit-text-main: #ffffff;
    --fit-text-muted: #aaaaaa;
    --fit-input-bg: rgba(0,0,0,0.3);
    --fit-nav-bg: rgba(13,13,13,0.9);
    --fit-icon-bg: rgba(0,0,0,0.4);
}
:root.light-theme {
    --fit-card-bg: #ffffff;
    --fit-border: #e2e8f0;
    --fit-text-main: #1e293b;
    --fit-text-muted: #64748b;
    --fit-input-bg: #f1f5f9;
    --fit-nav-bg: rgba(255,255,255,0.95);
    --fit-icon-bg: #f1f5f9;
}

.fit-app-container * { box-sizing: border-box !important; }
.fit-app-container { width: 100%; max-width: 480px; margin: 0 auto; color: var(--fit-text-main); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; position: relative; min-height: 100dvh; overflow: hidden; }
.fit-screen { padding: 25px 20px 100px 20px; display: none; animation: fadeIn 0.4s ease; height: 100%; overflow-y: auto; overflow-x: hidden; }
.fit-screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

h1, h2, h3, h4, .post-author, .diet-time, .workout-name, .rank-info h4, .stat-item, .metric-data h2, .weight-box .value, .achievement-card h4 { color: var(--fit-text-main) !important; }
p, .diet-food, .workout-header p, .rank-info p, .stat-item i, .metric-data h4, .weight-box .label, .info-item span, .achievement-card p, .post-time, .comment-item, form label, .auth-header p { color: var(--fit-text-muted) !important; }

/* Header & Cards Premium */
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;}
.header-top h1 { font-size: 18px; margin: 0; font-weight: 600; }
.streak-badge { background: var(--fit-card-bg); padding: 6px 14px; border-radius: 20px; font-weight: bold; color: var(--fit-primary); border: 1px solid var(--fit-border); font-size: 13px;}
.level-card, .stats-section, .profile-info-card, .metric-card, .update-weight-box { background: var(--fit-card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 18px; margin-top: 20px; border: 1px solid var(--fit-border); transition: 0.3s;}
.level-info { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; font-weight: 500;}
.progress-bar-bg { background: var(--fit-input-bg); height: 8px; border-radius: 4px; overflow: hidden; }
.progress-bar-fill { background: var(--fit-primary); height: 100%; transition: width 0.8s ease-out; box-shadow: 0 0 10px var(--fit-primary);}
.level-hint { text-align: right; font-size: 12px; margin-top: 8px; }
h3 { margin-top: 15px; font-size: 16px; margin-bottom: 15px; display: flex; align-items: center; gap: 8px;}
h3 i { color: var(--fit-primary); }

:root.light-theme .level-card, :root.light-theme .diet-header, :root.light-theme .stats-section, :root.light-theme .profile-info-card, :root.light-theme .metric-card, :root.light-theme .update-weight-box, :root.light-theme .mission-card, :root.light-theme .diet-card, :root.light-theme .workout-card, :root.light-theme .weight-box, :root.light-theme .ranking-card, :root.light-theme .community-post-box, :root.light-theme .feed-post, :root.light-theme .modal-content { box-shadow: 0 4px 15px rgba(0,0,0,0.04); }

.theme-switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.theme-switch.mini { width: 36px; height: 20px; margin-left: 5px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--fit-icon-bg); transition: .4s; border:1px solid var(--fit-border);}
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 3px; background-color: var(--fit-primary); transition: .4s; }
.theme-switch.mini .slider:before { height: 14px; width: 14px; left: 3px; bottom: 2px; }
input:checked + .slider { background-color: var(--fit-border); }
input:checked + .slider:before { transform: translateX(24px); }
.theme-switch.mini input:checked + .slider:before { transform: translateX(16px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.mission-card { background: var(--fit-card-bg); border-radius: 16px; padding: 14px; display: flex; align-items: center; margin-bottom: 12px; border: 1px solid var(--fit-border); transition: all 0.3s; }
.mission-card.weekly { border-color: var(--fit-primary); } .mission-card.completed { opacity: 0.4; pointer-events: none; }
.mission-icon { font-size: 18px; color: var(--fit-primary); background: var(--fit-icon-bg); width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-right: 14px; flex-shrink: 0; }
.mission-details h4 { margin: 0 0 4px 0; font-size: 14px; font-weight: 600;} .mission-details p { margin: 0; font-size: 12px; }
.mission-check { margin-left: auto; width: 26px; height: 26px; border: 2px solid var(--fit-text-muted); border-radius: 50%; cursor: pointer; flex-shrink: 0; transition: all 0.2s; display: flex; justify-content: center; align-items: center;}
.mission-check i { opacity: 0; font-size: 12px; color: #fff; }
.mission-card.completed .mission-check { background-color: var(--fit-primary); border-color: var(--fit-primary); } .mission-card.completed .mission-check i { opacity: 1; }

.diet-header { background: linear-gradient(135deg, var(--fit-card-bg), rgba(0,0,0,0.05)); padding: 25px 20px; border-radius: 16px; margin-top: 20px; border: 1px solid var(--fit-border); text-align: center; }
.diet-header p.meta-label { margin: 0 0 5px 0; font-size: 14px; color: var(--fit-text-muted) !important; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.diet-header h2 { margin: 0; font-size: 30px; color: var(--fit-primary) !important; font-weight: 700; }
.diet-header p.diet-objective { margin: 8px 0 0 0; font-size: 13px; color: var(--fit-primary) !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.85; }
.diet-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.diet-card { background: var(--fit-card-bg); padding: 16px; border-radius: 16px; border-left: 4px solid var(--fit-primary); }
.diet-time { font-weight: bold; font-size: 15px; margin-bottom: 6px; } .diet-food { font-size: 14px; margin-bottom: 8px; line-height: 1.5; } .diet-kcal { font-size: 12px; color: var(--fit-primary); font-weight: bold; }

.workout-header { background: linear-gradient(135deg, var(--fit-card-bg), rgba(0,0,0,0.05)); padding: 20px; border-radius: 16px; margin-bottom: 20px; border: 1px solid var(--fit-border); text-align: center;}
.workout-header h2 { margin: 0; font-size: 20px; color: var(--fit-primary) !important; font-weight: bold; display:flex; align-items:center; justify-content:center; } 
.workout-header p { margin: 5px 0 0 0; font-size: 14px; }
.workout-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.workout-card { background: var(--fit-card-bg); padding: 16px; border-radius: 16px; display: flex; align-items: center; border: 1px solid var(--fit-border); transition: 0.3s;}
.workout-card.interativo .workout-name { cursor: pointer; flex: 1; }
.workout-num { background: var(--fit-primary); color: #fff !important; font-weight: bold; width: 32px; height: 32px; display: flex; justify-content: center; align-items: center; border-radius: 50%; margin-right: 15px; font-size: 14px; flex-shrink: 0;}
.workout-name { font-size: 15px; font-weight: 500; transition: 0.3s;}
.workout-check { margin-left: auto; width: 30px; height: 30px; border: 2px solid var(--fit-text-muted); border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: 0.3s; cursor: pointer;}
.workout-check i { opacity: 0; font-size: 12px; color: #fff; }
.workout-card.done { opacity: 0.5; }
.workout-card.done .workout-name { text-decoration: line-through; }
.workout-card.done .workout-check { background-color: var(--fit-primary); border-color: var(--fit-primary); }
.workout-card.done .workout-check i { opacity: 1; }

/* PAINEL DE CARDIO E MAPA E HISTORY */
.cardio-type-selector { background: var(--fit-input-bg); padding: 5px; border-radius: 12px; border: 1px solid var(--fit-border);}
.cardio-type-btn { flex: 1; background: transparent; border: none; color: var(--fit-text-muted); padding: 10px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: 0.3s; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cardio-type-btn i { font-size: 18px; }
.cardio-type-btn.active { background: var(--fit-card-bg); color: var(--fit-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.cardio-metric { background: var(--fit-card-bg); border: 1px solid var(--fit-border); border-radius: 12px; padding: 15px 5px; display: flex; flex-direction: column; align-items: center; }
.cardio-metric .c-label { font-size: 11px; text-transform: uppercase; color: var(--fit-text-muted); font-weight: bold; letter-spacing: 1px; margin-bottom: 5px; }
.cardio-metric .c-val { font-size: 20px; font-weight: 900; font-style: italic; color: var(--fit-text-main); line-height: 1; }
.cardio-metric small { font-size: 10px; color: var(--fit-text-muted); font-style: normal; margin-top: 2px; }

.btn-share-cardio:hover { background: var(--fit-primary) !important; color: #fff !important; }
.btn-delete-cardio:hover { background: #f44336 !important; color: #fff !important; }

.rest-timer-box { margin-top: 20px; text-align: center; background: var(--fit-card-bg); padding: 15px; border-radius: 16px; border: 1px solid var(--fit-border);}
#btn-start-timer { background: transparent; border: 1px solid var(--fit-primary); color: var(--fit-primary); padding: 10px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; font-size: 14px; transition: 0.3s;}
#btn-start-timer.running { background: var(--fit-primary); color: #fff; }
#timer-display { font-size: 24px; font-weight: bold; margin-left: 15px; display: none; vertical-align: middle; color: var(--fit-text-main);}

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 10000; justify-content: center; align-items: center; padding: 20px; }
.modal-content { background: var(--fit-bg); width: 100%; max-width: 400px; border-radius: 20px; padding: 20px; position: relative; border: 1px solid var(--fit-border); box-shadow: 0 10px 30px rgba(0,0,0,0.8); animation: popModal 0.3s ease;}
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 20px; color: var(--fit-text-muted); cursor: pointer; }
@keyframes popModal { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.stats-list { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.stat-item { display: flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--fit-text-main);}
.stat-item i { width: 25px; font-size: 16px; text-align: center; margin-right: 10px; color: var(--fit-text-muted);}
.stat-item span { margin-left: auto; font-weight: bold; }
.stat-item span.highlight { color: #ff9800; }
.achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 15px; }
.achievement-card { background: var(--fit-card-bg); padding: 15px 10px; border-radius: 14px; text-align: center; border: 1px solid var(--fit-border); transition: 0.3s; }
.achievement-card .ach-icon { font-size: 24px; margin-bottom: 10px; color: var(--fit-primary); } .achievement-card h4 { font-size: 11px; margin: 0 0 4px 0; } .achievement-card p { font-size: 10px; margin: 0; }
.achievement-card:not(.unlocked) { opacity: 0.25; filter: grayscale(1); } .achievement-card.unlocked { background: linear-gradient(145deg, var(--fit-card-bg), transparent); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.weight-dashboard { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.weight-box { background: var(--fit-card-bg); padding: 15px; border-radius: 16px; flex: 1; text-align: center; border: 1px solid var(--fit-border); }
.weight-box.current { background: var(--fit-primary); border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.3);}
.weight-box .label { display: block; font-size: 12px; margin-bottom: 5px; } .weight-box.current .label { color: rgba(255,255,255,0.8) !important; }
.weight-box .value { font-size: 20px; font-weight: bold; } .weight-box.current .value { color: #fff !important; } .weight-box .value small { font-size: 12px; font-weight: normal; } .weight-box .value.target { color: var(--fit-primary); }

/* STORIES UI */
.stories-wrapper { display: flex; overflow-x: auto; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--fit-border); margin-bottom: 15px; -webkit-overflow-scrolling: touch;}
.stories-wrapper::-webkit-scrollbar { display: none; }
.story-circle-container { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; flex-shrink: 0;}
.story-circle { width: 66px; height: 66px; border-radius: 50%; position: relative; display: flex; justify-content: center; align-items: center;}
.story-circle.active-story { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); padding: 3px; }
.story-circle.viewed-story { border: 2px solid var(--fit-text-muted); padding: 3px; }
.story-circle.my-story-btn-empty { border: 2px dashed var(--fit-text-muted); padding: 3px; background: transparent; }
.story-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--fit-bg); background: var(--fit-bg);}
.story-add-icon { position: absolute; bottom: 0; right: 0; background: var(--fit-primary); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 12px; border: 2px solid var(--fit-bg); transition:0.2s;}
.story-add-icon:hover { transform: scale(1.1); }
.story-name { font-size: 11px; color: var(--fit-text-main); font-weight: 500; max-width: 66px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.story-segment { flex: 1; height: 100%; background: rgba(255,255,255,0.3); border-radius: 2px; overflow: hidden; position: relative;}
.story-segment-fill { height: 100%; width: 0%; background: #fff; position: absolute; left: 0; top: 0;}
#story-view-img { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none; }

.community-tabs-toggle { display: flex; background: var(--fit-input-bg); border-radius: 12px; padding: 5px; margin-top: 15px;}
.com-tab-btn { flex: 1; background: transparent; border: none; color: var(--fit-text-muted); padding: 10px; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.3s;}
.com-tab-btn.active { background: var(--fit-card-bg); color: var(--fit-text-main); box-shadow: 0 2px 8px rgba(0,0,0,0.2);}
.com-view { display: none; animation: fadeIn 0.3s ease; } .com-view.active { display: block; }
.treino-view { display: none; animation: fadeIn 0.3s ease; } .treino-view.active { display: block; }
.ranking-header { text-align: center; margin: 20px 0; }
.ranking-header h3 { justify-content: center; margin-bottom: 5px; font-size: 20px;} .ranking-header p { font-size: 13px; margin:0;}
.ranking-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px;}
.ranking-card { display: flex; align-items: center; background: var(--fit-card-bg); padding: 15px; border-radius: 16px; border: 1px solid var(--fit-border); transition:0.2s;}
.ranking-card:hover { filter: brightness(1.1); transform: scale(1.02); }
.rank-pos { width: 40px; font-size: 18px; font-weight: bold; color: var(--fit-text-muted); }
.rank-info h4 { margin: 0 0 2px 0; font-size: 15px;} .rank-info p { margin: 0; font-size: 12px;}
.rank-xp { margin-left: auto; font-weight: bold; color: var(--fit-primary); font-size: 14px;}
.ranking-card.gold { border-color: #ffd700; background: rgba(255, 215, 0, 0.1); } .ranking-card.gold .rank-pos { color: #ffd700; }
.ranking-card.silver { border-color: #c0c0c0; background: rgba(192, 192, 192, 0.1); } .ranking-card.silver .rank-pos { color: #c0c0c0; }
.ranking-card.bronze { border-color: #cd7f32; background: rgba(205, 127, 50, 0.1); } .ranking-card.bronze .rank-pos { color: #cd7f32; }

/* FEED COM EXCLUIR POST */
.community-post-box { background: var(--fit-card-bg); border-radius: 16px; padding: 15px; border: 1px solid var(--fit-border); margin-top: 15px;}
.community-input { background: var(--fit-input-bg); border: 1px solid var(--fit-border); border-radius: 12px; color: var(--fit-text-main); resize: none; width: 100%; padding: 14px; font-family: inherit; font-size: 14px; height: 80px;} .community-input:focus { outline: none; border-color: var(--fit-primary); }
.btn-post { background: var(--fit-primary); color: #fff; border: none; padding: 10px 20px; border-radius: 20px; margin-top: 10px; font-weight: bold; cursor: pointer; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; float: right; transition: 0.3s;} .community-post-box::after { content: ""; clear: both; display: table; }
.community-feed { margin-top: 30px; display: flex; flex-direction: column; gap: 15px; } 
.feed-post { background: var(--fit-card-bg); border-radius: 16px; padding: 18px; border: 1px solid var(--fit-border); animation: fadeIn 0.4s ease;}
.post-header { display: flex; align-items: center; margin-bottom: 12px; } .post-avatar { font-size: 35px; color: var(--fit-primary); margin-right: 12px; } .post-author { font-weight: bold; font-size: 15px; display: flex; align-items: center; gap: 8px;} .feed-level-badge { background: rgba(255, 193, 7, 0.15); color: #ffc107; font-size: 10px; padding: 2px 8px; border-radius: 12px; border: 1px solid rgba(255, 193, 7, 0.3); font-weight: bold; text-transform: uppercase;} .post-time { font-size: 11px; margin-top: 2px;} .post-content { font-size: 14px; line-height: 1.5; margin-bottom: 15px; color: var(--fit-text-main);}
.post-footer { display: flex; justify-content: flex-end; gap: 15px; border-top: 1px solid var(--fit-border); padding-top: 10px;} 
.btn-like, .btn-comment { background: transparent; border: none; color: var(--fit-text-muted); font-size: 16px; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 5px; transition: 0.2s;} 
.btn-like.liked { color: #f44336; } .btn-like.liked i { animation: pop 0.3s ease; } @keyframes pop { 50% { transform: scale(1.3); } }
.btn-comment:hover { color: var(--fit-primary); }

.btn-delete-post { background: transparent; border: none; color: var(--fit-text-muted); cursor: pointer; font-size: 14px; transition: 0.3s; padding: 5px; margin-left: auto; }
.btn-delete-post:hover { color: #f44336; transform: scale(1.1); }

.post-comments-section { border-top: 1px solid var(--fit-border); padding-top: 15px; margin-top: 10px; }
.comments-list { display: flex; flex-direction: column; gap: 8px; max-height: 150px; overflow-y: auto; margin-bottom: 10px; }
.comment-item { font-size: 13px; background: var(--fit-input-bg); padding: 8px 12px; border-radius: 8px; color: var(--fit-text-muted);}
.comment-item strong { color: var(--fit-text-main); margin-right: 5px; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { flex: 1; background: var(--fit-input-bg); border: 1px solid var(--fit-border); padding: 10px 12px; border-radius: 20px; color: var(--fit-text-main); font-size: 13px; outline: none;}
.comment-form input:focus { border-color: var(--fit-primary); }
.comment-form button { background: var(--fit-primary); color: #fff; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.3s;}
.comment-form button:hover { filter: brightness(1.1); }

.info-grid { display: flex; justify-content: space-between; text-align: center; } .info-item span { display: block; font-size: 12px; margin-bottom: 5px; } .info-item strong { font-size: 16px; }
.health-metrics { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 20px;} .metric-icon { font-size: 26px; color: var(--fit-primary); background: var(--fit-icon-bg); width: 55px; height: 55px; display: flex; justify-content: center; align-items: center; border-radius: 14px; flex-shrink: 0; margin-right: 15px;} .metric-data h4 { margin: 0; font-size: 11px; text-transform: uppercase; } .metric-data h2 { margin: 5px 0; font-size: 22px; color: var(--fit-text-main) !important; }
.btn-primary { background: var(--fit-primary); color: #fff; border: none; padding: 16px; border-radius: 12px; margin-top: 30px; font-weight: bold; font-size: 16px; cursor: pointer; width: 100%; transition: 0.3s;} .btn-primary:hover { filter: brightness(1.1); }
.btn-logout { display: inline-block; background: rgba(244, 67, 54, 0.1); color: #f44336; text-decoration: none; padding: 16px; border-radius: 12px; font-weight: bold; width: 100%; text-align: center; transition: 0.3s; font-size: 15px; border: 1px solid #f44336;} .btn-logout:hover { background: #f44336; color: white !important; }

.bottom-nav { position: absolute; bottom: 0; left: 0; width: 100%; background: var(--fit-nav-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-top: 1px solid var(--fit-border); display: flex; justify-content: space-between; padding: 12px 5px 25px 5px; z-index: 9997; }
.nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none !important; color: var(--fit-text-muted); font-size: 18px; flex: 1; transition: 0.3s;}
.nav-item span { font-size: 9px; margin-top: 5px; font-weight: 500;} .nav-item.active { color: var(--fit-primary); transform: translateY(-3px);}

.auth-wrapper { padding-top: 40px !important; } .auth-header { text-align: center; margin-bottom: 25px; } .auth-icon { font-size: 45px; color: var(--fit-primary); margin-bottom: 15px; } .auth-header h2 { margin: 0 0 5px 0; font-size: 22px; } .auth-header p { font-size: 14px; margin: 0; }
.auth-toggle { display: flex; background: var(--fit-input-bg); border-radius: 12px; margin-bottom: 25px; padding: 6px; border: 1px solid var(--fit-border); width: 100%;} .auth-btn { flex: 1; background: transparent; color: var(--fit-text-muted); border: none; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; font-size: 14px;} .auth-btn.active { background: var(--fit-card-bg); color: var(--fit-text-main); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
form { display: flex; flex-direction: column; width: 100%; } form label { margin-top: 15px; font-size: 14px; margin-bottom: 5px; font-weight: 500; display:flex; gap: 8px; align-items: center;} form label i { color: var(--fit-primary); } form input, form select { background: var(--fit-input-bg); border: 1px solid var(--fit-border); color: var(--fit-text-main); padding: 14px; border-radius: 12px; font-size: 16px; width: 100%; transition: 0.3s; margin: 0; box-sizing: border-box !important;} form input:focus { outline: none; border-color: var(--fit-primary); }

/* CALENDÁRIO */
.calendar-wrapper { width: 100%; background: var(--fit-input-bg); padding: 15px; border-radius: 12px; border: 1px solid var(--fit-border); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.cal-header { font-size: 11px; color: var(--fit-text-muted); font-weight: bold; margin-bottom: 5px; }
.cal-day { font-size: 13px; color: var(--fit-text-main); padding: 8px 0; border-radius: 8px; display: flex; justify-content: center; align-items: center; position: relative; }
.cal-day.completed { background: var(--fit-primary); color: #fff; font-weight: bold; box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4); }

/* ITENS DA LOJA (BORDAS E SELOS) */
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.store-item { background: var(--fit-input-bg); border: 1px solid var(--fit-border); border-radius: 12px; padding: 15px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.store-item-preview { height: 60px; display: flex; justify-content: center; align-items: center; margin-bottom: 10px; }
.store-item-name { font-size: 14px; font-weight: bold; color: var(--fit-text-main); margin-bottom: 5px; }
.store-item-price { font-size: 12px; color: #ffd700; font-weight: bold; margin-bottom: 10px; }
.store-btn { background: var(--fit-primary); color: #fff; border: none; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.store-btn.btn-equip { background: transparent; border: 1px solid var(--fit-primary); color: var(--fit-primary); }
.store-btn.btn-equipped { background: var(--fit-card-bg); color: var(--fit-text-muted); cursor: default; border: 1px solid var(--fit-border); }

/* BORDAS COMPRÁVEIS */
.border-ouro { border: 3px solid #FFD700 !important; box-shadow: 0 0 10px rgba(255,215,0,0.5) !important; }
.border-neon { border: 3px solid #00FFFF !important; box-shadow: 0 0 10px rgba(0,255,255,0.5) !important; }
.border-lava { border: 3px solid #ff4500 !important; box-shadow: 0 0 10px rgba(255,69,0,0.5) !important; }

/* ================= IA CHAT ESTILOS ================= */
.ai-chat-fab { position: fixed; bottom: 85px; right: 20px; width: 55px; height: 55px; background: linear-gradient(135deg, var(--fit-primary), #00bcd4); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.4); cursor: pointer; z-index: 9998; transition: 0.3s; }
.ai-chat-fab:hover { transform: scale(1.1); }
.ai-select-btn:hover { border-color: var(--fit-primary) !important; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

.chat-bubble { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.4; position: relative; animation: popIn 0.3s ease; }
@keyframes popIn { from { opacity:0; transform: translateY(10px) scale(0.95); } to { opacity:1; transform: translateY(0) scale(1); } }
.chat-bubble.user { align-self: flex-end; background: var(--fit-primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.ai { align-self: flex-start; background: var(--fit-card-bg); color: var(--fit-text-main); border: 1px solid var(--fit-border); border-bottom-left-radius: 4px; }

/* Digitando... animação */
.typing-dots { display: flex; gap: 4px; align-items: center; height: 20px; padding: 0 5px; }
.typing-dots span { width: 6px; height: 6px; background: var(--fit-text-muted); border-radius: 50%; animation: bounce 1.4s infinite ease-in-out both; }
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }