/* --- RESET E VARIÁVEIS GLOBAIS --- */
:root {
    --navy: #0b1530;
    --violet: #8068f7;
    --violet-hover: #6a50e6;
    --ink: #17233d;
    --muted: #75819a;
    --line: #e7ebf3;
    --bg: #f5f7fc;
    --white: #ffffff;
    --error: #ff3b30;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: "DM Sans", sans-serif; }
body { min-height: 100vh; padding-bottom: 94px; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }

/* --- TOPBAR (MENU SUPERIOR) --- */
.topbar { height: 76px; padding: 0 clamp(20px, 6vw, 88px); display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 39px; height: 39px; border-radius: 12px; object-fit: cover; }
.brand-name { font: 800 21px "Plus Jakarta Sans", sans-serif; letter-spacing: -.8px; color: var(--navy); }
.brand-name span { color: var(--violet); }
.desktop-nav { display: flex; align-items: center; gap: 8px; }
.desktop-nav a { padding: 10px 15px; border-radius: 10px; color: #697690; font-size: 13px; font-weight: 700; transition: .2s; }
.desktop-nav a:hover, .desktop-nav a.active { background: #f0edff; color: var(--violet); }
.profile-link { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: #34415c; font-size: 13px; font-weight: 700; }
.profile-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- MENU INFERIOR (MOBILE) --- */
.bottom-nav { display: none; }
@media(max-width: 760px) {
    body { padding-bottom: 90px; }
    .topbar { height: 67px; padding: 0 19px; justify-content: center; }
    .desktop-nav, .profile-link { display: none; }
    .bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; justify-content: space-around; align-items: center; padding: 10px 5px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(225,231,242,.95); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); z-index: 100; }
    .nav-item { min-width: 65px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #8994a9; font-size: 10px; font-weight: 700; transition: color .2s; }
    .nav-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .nav-item.active { color: var(--violet); }
    .nav-item.active svg { stroke: var(--violet); }
}

/* --- BOTÕES PADRÃO --- */
button, .btn-primary { width: 100%; padding: 16px; background: var(--violet); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; font-family: "DM Sans", sans-serif; display: inline-flex; justify-content: center; align-items: center;}
button:hover, .btn-primary:hover { background: var(--violet-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(128, 104, 247, 0.3); }

/* --- TOASTS (NOTIFICAÇÕES) --- */
.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; width: 90%; max-width: 400px; pointer-events: none; }
.toast { background: #fff; border-left: 4px solid var(--violet); box-shadow: 0 10px 30px rgba(0,0,0,0.15); padding: 16px; border-radius: 8px; display: flex; align-items: center; gap: 12px; animation: slideDown 0.3s ease forwards; pointer-events: auto; }
.toast img { width: 24px; height: 24px; border-radius: 50%; }
.toast.error { border-left-color: var(--error); }
.toast-msg { font-size: 14px; font-weight: 500; color: var(--ink); flex: 1; line-height: 1.4; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-20px); } }

/* --- ESTILOS ESPECÍFICOS DO INDEX --- */
.main { width: min(1120px, calc(100% - 40px)); margin: 36px auto 0; }
.hero { position: relative; overflow: hidden; min-height: 320px; padding: clamp(30px, 5vw, 58px); display: flex; align-items: center; border-radius: 25px; background: radial-gradient(circle at 85% 15%, rgba(123, 97, 255, 0.45), transparent 35%), radial-gradient(circle at 20% 100%, rgba(57, 120, 246, 0.3), transparent 45%), linear-gradient(115deg, #0b1530, #17366e); box-shadow: 0 18px 42px rgba(16,37,82,.15); color: #fff; }
.hero:before, .hero:after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; pointer-events: none; }
.hero:before { width: 480px; height: 480px; right: -10%; top: -250px; }
.hero:after { width: 320px; height: 320px; right: 5%; top: -150px; }
.hero-content { position: relative; z-index: 1; max-width: 620px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 30px; background: rgba(255,255,255,.08); color: #d4e0ff; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.hero-tag:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8eabff; box-shadow: 0 0 10px #8eabff; }
.hero h1 { margin: 19px 0 12px; font: 800 clamp(29px, 4vw, 43px)/1.16 "Plus Jakarta Sans", sans-serif; letter-spacing: -1.7px; }
.hero p { max-width: 540px; color: #c5d1e8; font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.hero-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 12px; background: #8068f7; color: #fff; text-decoration: none; font-size: 14px; font-weight: 800; transition: .2s; box-shadow: 0 4px 15px rgba(128,104,247,0.4); }
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(128,104,247,0.6); background: #6a50e6; }
.hero-btn.secondary { border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); color: #fff; box-shadow: none; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 38px 2px 16px; }
.section-kicker { margin-bottom: 5px; color: var(--violet); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.section-title { font: 800 21px "Plus Jakarta Sans", sans-serif; letter-spacing: -.6px; color: #17233d; }
.section-description { margin-top: 5px; color: var(--muted); font-size: 13px; }
.see-all { color: var(--violet); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.empty-state { min-height: 210px; padding: 34px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed #d7deeb; border-radius: 18px; background: rgba(255,255,255,.75); }
.empty-icon { width: 54px; height: 54px; margin-bottom: 15px; display: grid; place-items: center; border-radius: 17px; background: #f0edff; color: var(--violet); }
.empty-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty-state strong { font: 700 15px "Plus Jakarta Sans", sans-serif; color: #33415d; }
.empty-state p { max-width: 340px; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer { width: min(1120px, calc(100% - 40px)); margin: 36px auto 0; padding: 20px 0; border-top: 1px solid var(--line); color: #9aa4b6; font-size: 12px; }
@media(max-width: 760px) {
    .main { width: calc(100% - 32px); margin-top: 22px; }
    .hero { min-height: 300px; padding: 30px 24px; border-radius: 21px; }
    .hero:before { right: -180px; } .hero:after { right: -125px; }
    .hero h1 { font-size: 31px; } .hero p { font-size: 14px; }
    .section-head { margin-top: 31px; } .section-title { font-size: 19px; }
    .footer { width: calc(100% - 32px); margin-top: 28px; }
}
