/* Estrutura do app: sidebar, topbar, navegação e botões */
.app { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0, 1fr); }
.sidebar { background: var(--sidebar); border-right: 1px solid rgba(255,255,255,.035); padding: 25px 16px 20px; display: flex; flex-direction: column; gap: 30px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; min-height: 48px; }
.brand-mark { flex: 0 0 39px; height: 39px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(145deg, #7b72ff, #4f45da); box-shadow: 0 8px 22px #5c51e533; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-name { font-weight: 750; font-size: 13px; line-height: 1.25; letter-spacing: -.25px; }
.auth-brand .brand-name { font-size: 14px; letter-spacing: -.35px; }
.auth-brand .brand-name::first-line { color: #f7f5ff; }
.side-label { color: #626a80; text-transform: uppercase; font-weight: 750; letter-spacing: 1.2px; font-size: 10px; padding: 0 11px; margin: 3px 0 9px; }
.nav-list { display: grid; gap: 6px; }
.nav-button { border: 0; width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #8991a6; background: transparent; text-align: left; transition: .18s ease; font-weight: 600; }
.nav-button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.nav-button:hover { color: #fff; background: #ffffff0b; }
.nav-button.active { color: white; background: linear-gradient(100deg, #625af0, #4d48cc); box-shadow: 0 7px 18px #5f56f42a; }
.side-divider { height: 1px; background: rgba(255,255,255,.065); margin: -13px 8px -11px; }
.sidebar-bottom { margin-top: auto; }
.help-card { padding: 14px; border-radius: 14px; border: 1px solid #ffffff0d; background: linear-gradient(145deg,#1c1f3a,#16182b); }
.help-icon { width: 30px; height: 30px; background: #6860f329; border-radius: 10px; display: grid; place-items: center; color: #aaa5ff; margin-bottom: 11px; }
.help-card strong { display: block; font-size: 12px; margin-bottom: 5px; }
.help-card p { margin: 0; color: #858ba0; font-size: 11px; line-height: 1.55; }
.main { min-width: 0; padding: 30px clamp(18px, 3vw, 42px) 36px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 28px; }
.eyebrow { font-size: 11px; text-transform: uppercase; font-weight: 750; letter-spacing: 1.5px; color: var(--purple-2); margin-bottom: 6px; }
h1 { font-size: clamp(24px, 2.3vw, 32px); margin: 0; letter-spacing: -1.05px; line-height: 1.14; }
.subtitle { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.period-pill { display: flex; align-items: center; gap: 8px; color: #c0c4ce; background: var(--panel); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; white-space: nowrap; font-size: 12px; }
.period-pill svg { width: 15px; height: 15px; color: #a8a1ff; }
.btn { border: 0; border-radius: 11px; padding: 11px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; transition: transform .15s ease, filter .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { color: white; background: linear-gradient(110deg, #7067ff, #574ce5); box-shadow: 0 8px 22px #6257ed26; }
.btn-secondary { color: #cbd0dc; background: var(--panel-2); border: 1px solid var(--border); }

/* ===== Darvix brand ===== */
.brand-tile { display:grid; place-items:center; flex:0 0 auto; width:44px; height:44px; border-radius:13px; background:radial-gradient(circle at 30% 20%, #241a5e, #0b0922 70%); border:1px solid rgba(139,100,255,.45); box-shadow:0 6px 20px rgba(98,52,255,.28), inset 0 1px 0 rgba(255,255,255,.08); }
.brand-tile img { width:78%; height:auto; display:block; }
.sidebar .brand { gap:11px; }
.sidebar .brand-wordmark { height:25px; width:auto; display:block; }
