
        :root {
            --bg: #1a1818;
            --bg-soft: #211f1f;
            --bg-card: #221f1f;
            --bg-deep: #141212;
            --bg-code: #0f0e0e;
            --border: #2d2a2a;
            --border-strong: #3d3939;
            --text: #ffffff;
            --text-body: #b0abab;
            --text-muted: #7a7575;
            --orange: #f05409;
            --orange-light: #ff8c42;
            --orange-deep: #d24a07;
            --cyan-deep: #14b3cf;

            --ok: #34d399;
            --cyan: #22d3ee;
            --purple: #a78bfa;
            --warn: #facc15;
            --danger: #ef4444;

            --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
            --nav-h: 64px;
            --gutter: 16px;
            --safe-top: env(safe-area-inset-top, 0px);
            --safe-bottom: env(safe-area-inset-bottom, 0px);
        }
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--safe-top) + 16px); }
        body { font-family: var(--font); font-size: 14.5px; line-height: 1.6; background: var(--bg); color: var(--text); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
        a { color: inherit; text-decoration: none; }
        button, input { font: inherit; color: inherit; }
        button { cursor: pointer; }
        button:disabled { cursor: default; }
        svg { display: block; }
        [hidden] { display: none !important; }
        :focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
        ::selection { background: rgba(240, 84, 9, 0.35); }
        .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-left)); }
        .mono { font-family: var(--mono); }
        .link { color: var(--orange-light); font-weight: 600; }
        .link:hover { text-decoration: underline; }

        /* brilho de fundo fixo */
        body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(900px 520px at 78% -8%, rgba(240, 84, 9, 0.11), transparent 70%), radial-gradient(640px 420px at -6% 18%, rgba(167, 139, 250, 0.05), transparent 70%); }

        /* ===== Navbar (padrão das páginas 8Token) ===== */
        .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding-top: var(--safe-top); background: rgba(26, 24, 24, 0.96); border-bottom: 1px solid var(--border); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
        .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--nav-h); }
        .logo { display: flex; align-items: center; }
        .logo img { display: block; width: auto; height: 42px; }
        .logo-footer img { height: 64px; }
        .nav-actions { display: flex; align-items: center; gap: 8px; }

        .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; background: none; font-size: 13.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; transition: border-color 150ms ease, color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 120ms ease; }
        .btn:active:not(:disabled) { transform: scale(0.97); }
        .btn:disabled { opacity: .55; }
        .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
        .btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
        .btn-lg { min-height: 46px; padding: 0 20px; font-size: 14.5px; }
        .btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(240, 84, 9, 0.3); }
        .btn-primary:hover:not(:disabled) { background: #fff; color: var(--orange); box-shadow: 0 0 20px rgba(255, 255, 255, 0.35); }
        .btn-ghost { border-color: var(--border-strong); background: var(--bg-soft); }
        .btn-ghost:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
        .btn-orange { border-color: rgba(240, 84, 9, 0.55); background: rgba(240, 84, 9, 0.08); color: var(--orange-light); }
        .btn-orange:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
        .btn-ok { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); color: var(--ok); }
        .btn-ok:hover:not(:disabled) { background: rgba(52, 211, 153, 0.16); }
        .btn-danger { border-color: var(--danger); background: var(--danger); color: #fff; }
        .btn-danger:hover { background: #dc2626; }
        .btn-block { display: flex; width: 100%; }
        .btn-admin { border-color: rgba(167, 139, 250, 0.45); background: rgba(167, 139, 250, 0.08); color: var(--purple); }
        .btn-admin:hover { background: rgba(167, 139, 250, 0.16); }

        .icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text-body); transition: border-color 150ms ease, color 150ms ease, background 150ms ease; }
        .icon-btn svg { width: 17px; height: 17px; }
        .icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: var(--orange); color: var(--orange); }
        .icon-btn.sm { width: 34px; height: 34px; border-radius: 9px; }
        .icon-btn.sm svg { width: 15px; height: 15px; }
        .icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
        .icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--bg-soft); }
        .icon-btn.copied { border-color: var(--ok); color: var(--ok); }

        /* Conta (igual ao chip do index) */
        .drop { position: relative; }
        .account-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04); font-size: 13px; font-weight: 700; transition: border-color .2s, background .2s; }
        .account-chip:hover, .account-chip[aria-expanded="true"] { border-color: rgba(240, 84, 9, 0.6); background: rgba(240, 84, 9, 0.08); }
        .account-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(240, 84, 9, 0.35), rgba(240, 84, 9, 0.12)); border: 1px solid rgba(240, 84, 9, 0.45); font-size: 17px; line-height: 1; flex-shrink: 0; overflow: hidden; padding: 2px; box-sizing: border-box; }
        .account-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; transform: scale(.84); } /* margem para a cabeça inteira caber no círculo */
        .account-avatar-lg { width: 42px; height: 42px; font-size: 23px; }
        .account-email { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .account-caret { width: 14px; height: 14px; color: var(--text-muted); transition: transform .2s; }
        .account-chip[aria-expanded="true"] .account-caret { transform: rotate(180deg); }

        .menu { position: absolute; top: calc(100% + 10px); right: 0; width: 280px; padding: 8px; border-radius: 14px; border: 1px solid var(--border-strong); background: #1a1717; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); z-index: 110; }
        .menu-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 10px; }
        .menu-id { display: flex; flex-direction: column; min-width: 0; }
        .menu-id strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .menu-id span { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .menu-status { display: flex; align-items: center; gap: 6px; margin: 0 8px 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--ok); }
        .menu-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
        .menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; border: 0; border-radius: 8px; background: none; font-size: 14px; font-weight: 600; text-align: left; }
        .menu-item svg { width: 17px; height: 17px; color: var(--text-muted); }
        .menu-item:hover { background: rgba(255, 255, 255, 0.05); }
        .menu-item.out, .menu-item.out svg { color: var(--orange-light); }
        /* página atual: mesmo destaque do menu lateral */
        .menu-item.active { position: relative; color: var(--orange); background: rgba(240, 84, 9, 0.1); box-shadow: inset 0 0 0 1px rgba(240, 84, 9, 0.4), 0 0 22px rgba(240, 84, 9, 0.08); }
        .menu-item.active:hover { background: rgba(240, 84, 9, 0.14); }
        .menu-item.active svg { color: var(--orange); }
        .menu-item.active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
        .menu-title { padding: 6px 8px 10px; font-size: 13px; font-weight: 800; border-bottom: 1px solid var(--border); }
        .menu-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px 16px; text-align: center; font-size: 12.5px; color: var(--text-muted); }
        .menu-empty svg { width: 26px; height: 26px; color: var(--border-strong); }
        .notif { display: flex; gap: 10px; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-body); }
        .notif:last-child { border-bottom: 0; }
        .notif i { flex-shrink: 0; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
        .notif b { display: block; color: var(--text); font-size: 13px; }

        /* ===== Estrutura: menu lateral + conteúdo ===== */
        .shell { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: calc(var(--nav-h) + var(--safe-top) + 20px); padding-bottom: 64px; }
        .side-nav { display: flex; gap: 6px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
        .side-nav::-webkit-scrollbar { display: none; }
        .side-link { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); font-size: 13.5px; font-weight: 600; color: var(--text-body); white-space: nowrap; transition: border-color 150ms ease, color 150ms ease, background 150ms ease; }
        .side-link svg { width: 17px; height: 17px; flex-shrink: 0; }
        .side-link:hover { color: var(--text); border-color: var(--border-strong); }
        .side-link.active { color: var(--orange); background: rgba(240, 84, 9, 0.1); border-color: rgba(240, 84, 9, 0.4); box-shadow: inset 0 0 0 1px rgba(240, 84, 9, 0.12), 0 0 22px rgba(240, 84, 9, 0.08); }
        .side-link.out { color: var(--orange-light); }
        .side-sep, .help { display: none; }

        /* Barra do modo demonstração (some quando CONFIG.DEMO = false) */
        .demo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 14px; padding: 8px 10px; border-radius: 12px; border: 1px dashed var(--border-strong); background: rgba(20, 18, 18, 0.6); font-size: 12px; color: var(--text-muted); }
        .demo b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
        .demo nav { display: flex; flex-wrap: wrap; gap: 6px; }
        .demo a { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); font-weight: 600; color: var(--text-body); }
        .demo a:hover { color: var(--text); border-color: var(--border-strong); }
        .demo a.on { color: var(--purple); border-color: rgba(167, 139, 250, 0.5); background: rgba(167, 139, 250, 0.1); }

        /* entrada suave, em cascata */
        .reveal { animation: rise 520ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
        @keyframes rise { from { opacity: 0; transform: translateY(12px); } }

        /* ===== Cabeçalho da página ===== */
        .page-head { position: relative; display: grid; gap: 18px; padding: 22px 20px; border-radius: 20px; border: 1px solid var(--border); background: radial-gradient(520px 220px at 100% 0%, rgba(240, 84, 9, 0.16), transparent 70%), linear-gradient(180deg, #242020 0%, #1c1a1a 100%); overflow: hidden; }
        .page-head::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(420px 200px at 90% 0%, #000, transparent 75%); mask-image: radial-gradient(420px 200px at 90% 0%, #000, transparent 75%); }
        .page-head::after { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(240, 84, 9, 0.7), transparent); }
        .ph-text, .ph-chips { position: relative; }
        .eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
        .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
        .eyebrow .hello { color: var(--text-muted); letter-spacing: .1em; }
        .eyebrow .hello:not(:empty)::before { content: '·'; margin-right: 8px; color: var(--border-strong); }
        .page-head h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; background: linear-gradient(180deg, #fff 30%, #d9d3d3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
        .page-head p { margin-top: 8px; font-size: 15px; color: var(--text-body); }
        .ph-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; align-content: center; }
        .ph-chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 32%, var(--border)); background: color-mix(in srgb, var(--c) 8%, rgba(20, 18, 18, 0.6)); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
        .ph-chips li svg { width: 15px; height: 15px; color: var(--c); }
        .ph-chips li span { color: var(--text-muted); font-weight: 600; }

        /* ===== Cards ===== */
        .card { position: relative; margin-top: 16px; border-radius: 18px; background: linear-gradient(180deg, var(--bg-card) 0%, #1d1b1b 100%); border: 1px solid var(--border); overflow: hidden; transition: border-color 200ms ease; }
        .card:hover { border-color: var(--border-strong); }
        .card::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); }
        .card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
        .card-head h2 { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
        .card-head h2 > svg { width: 34px; height: 34px; padding: 8px; flex-shrink: 0; border-radius: 10px; color: var(--orange); background: rgba(240, 84, 9, 0.12); border: 1px solid rgba(240, 84, 9, 0.25); }
        .card-head h2 small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
        .card-head .aside { font-family: var(--mono); font-size: 11px; color: var(--text-muted); text-align: right; white-space: nowrap; }
        .card-body { padding: 20px; }
        .note { font-size: 12.5px; color: var(--text-muted); line-height: 1.65; }
        .lbl { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

        .pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--c, var(--ok)); background: color-mix(in srgb, var(--c, var(--ok)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--ok)) 35%, transparent); white-space: nowrap; }
        .pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }

        .seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--bg-deep); border: 1px solid var(--border); }
        .seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; font-size: 12.5px; font-weight: 700; color: var(--text-muted); white-space: nowrap; transition: color 150ms ease, background 150ms ease; }
        .seg button:hover { color: var(--text); }
        .seg button[aria-pressed="true"] { color: var(--text); background: var(--bg-soft); box-shadow: 0 0 0 1px var(--border-strong); }
        .seg.accent button[aria-pressed="true"] { color: var(--orange-light); background: rgba(240, 84, 9, 0.12); box-shadow: 0 0 0 1px rgba(240, 84, 9, 0.4); }

        .sub-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 0 12px; }
        .sub-h h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
        .sub-h h3 .num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--orange-light); background: rgba(240, 84, 9, 0.12); border: 1px solid rgba(240, 84, 9, 0.3); }
        .sub-h > a, .sub-h > span { font-size: 12.5px; }

        /* ===== Campos ===== */
        .field { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); font-size: 14px; transition: border-color 150ms ease, box-shadow 150ms ease; }
        .field::placeholder { color: var(--text-muted); }
        .field:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 84, 9, 0.18); }

        /* ===== Janela, confirmação e aviso ===== */
        .modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
        .modal-box { width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); animation: pop 220ms cubic-bezier(.2, .8, .2, 1); }
        .modal-box.wide { max-width: 520px; }
        @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
        .modal-box h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
        .modal-box h3 svg { width: 22px; height: 22px; color: var(--ok); }
        .modal-box p { margin-top: 8px; font-size: 13.5px; color: var(--text-body); }
        .modal-box p b { color: var(--text); font-family: var(--mono); }
        .modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }
        .toast { position: fixed; left: 50%; bottom: calc(20px + var(--safe-bottom)); z-index: 210; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px; background: #2a2626; border: 1px solid var(--border-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); font-size: 13px; font-weight: 600; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease; }
        .toast.show { opacity: 1; transform: translate(-50%, 0); }

        /* ===== Footer ===== */
        .footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 44px 0 calc(32px + var(--safe-bottom)); }
        .f-top { display: grid; gap: 28px; }
        .f-brand p { max-width: 36ch; margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--text-body); }
        .f-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
        .f-col h4 { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
        .f-col a { display: block; padding: 4px 0; font-size: 13px; color: var(--text-body); }
        .f-col a:hover, .f-col a.active { color: var(--text); }
        .f-bottom { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
        .f-legal { display: flex; flex-wrap: wrap; gap: 16px; }
        .f-legal a { color: var(--text-body); }
        .f-legal a:hover { color: var(--text); }

        .btn-del { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); color: #f87171; }
        .btn-del:hover { border-color: var(--danger); background: var(--danger); color: #fff; }
        .btn.copied, .icon-btn.copied { border-color: rgba(52, 211, 153, 0.55) !important; background: rgba(52, 211, 153, 0.12) !important; color: var(--ok) !important; box-shadow: none !important; }


        /* ===== Estado vazio (igual ao painel) ===== */
        .panel { position: relative; padding: 30px 20px; border-radius: 16px; border: 1.5px dashed var(--border-strong); background: radial-gradient(360px 180px at 50% 0%, rgba(240, 84, 9, 0.1), transparent 70%), var(--bg-deep); text-align: center; overflow: hidden; }
        .panel .big-ic { position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 13px; color: var(--c, var(--orange)); background: color-mix(in srgb, var(--c, var(--orange)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--orange)) 35%, transparent); }
        .panel .big-ic svg { width: 21px; height: 21px; }
        .panel h4 { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
        .panel p { max-width: 50ch; margin: 6px auto 0; font-size: 13.5px; color: var(--text-body); }


        /* ===== Formulário (janela de novo chamado) ===== */
        .form { display: grid; gap: 16px; margin-top: 18px; }
        .fg { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
        .fg > label, .fg > .fg-l { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-body); }
        .fg > label span, .fg > .fg-l span { color: var(--text-muted); letter-spacing: .06em; text-transform: none; font-family: var(--font); font-weight: 500; }
        .hint { font-size: 12px; line-height: 1.5; color: var(--text-muted); }
        .hint.err { color: #f87171; }
        .hint.ok { color: var(--ok); }
        textarea.field { min-height: 44px; padding: 11px 14px; line-height: 1.55; resize: vertical; font: inherit; color: var(--text); }
        .count-row { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
        .count-row .hint { font-family: var(--font); }

        /* tópicos */
        .topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
        .topic { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); font-size: 13px; font-weight: 600; line-height: 1.3; text-align: left; color: var(--text-body); transition: border-color 150ms ease, background 150ms ease, color 150ms ease; }
        .topic svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-muted); }
        .topic:hover { border-color: var(--orange); color: var(--text); }
        .topic[aria-checked="true"] { border-color: var(--orange); background: rgba(240, 84, 9, 0.1); color: var(--orange-light); box-shadow: inset 0 0 0 1px rgba(240, 84, 9, 0.25); }
        .topic[aria-checked="true"] svg { color: var(--orange); }

        /* anexos */
        .drop-zone { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--border-strong); background: var(--bg); text-align: left; color: var(--text-body); transition: border-color 150ms ease, background 150ms ease; }
        .drop-zone:hover, .drop-zone.over { border-color: var(--orange); background: rgba(240, 84, 9, 0.06); }
        .drop-zone > svg { width: 34px; height: 34px; padding: 8px; flex-shrink: 0; border-radius: 10px; color: var(--orange); background: rgba(240, 84, 9, 0.12); }
        .drop-zone b { display: block; font-size: 13.5px; color: var(--text); }
        .drop-zone small { display: block; font-size: 12px; color: var(--text-muted); }
        .drop-zone:disabled { opacity: .5; }
        .thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
        .thumbs:empty { display: none; }
        .thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-strong); background: #000; }
        .thumb img { width: 100%; height: 100%; object-fit: cover; }
        .thumb button { position: absolute; top: 3px; right: 3px; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.75); color: #fff; }
        .thumb button svg { width: 11px; height: 11px; }

        /* ===== Lista de chamados ===== */
        .tk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
        .tk-bar .note { display: flex; align-items: center; gap: 8px; }
        .tk-bar .note svg { width: 14px; height: 14px; flex-shrink: 0; }
        .tk-bar .note.limit { color: var(--warn); }
        .slots { display: inline-flex; gap: 4px; }
        .slots i { width: 22px; height: 6px; border-radius: 3px; background: var(--border-strong); }
        .slots i.on { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
        .tk-list { display: grid; gap: 10px; }
        .tk { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--border)); background: radial-gradient(300px 130px at 0% 50%, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%), var(--bg-deep); text-align: left; overflow: hidden; transition: border-color 150ms ease, transform 150ms ease; }
        .tk::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); box-shadow: 0 0 10px var(--c); }
        .tk:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 60%, var(--border)); }
        /* chamado aberto: sempre laranja. Aguardando o suporte = laranja claro; o suporte respondeu = laranja forte */
        /* respondido: o mesmo laranja do item selecionado no menu lateral */
        .tk.ans { --c: var(--orange); border-color: rgba(240, 84, 9, 0.4); background: rgba(240, 84, 9, 0.1); box-shadow: inset 0 0 0 1px rgba(240, 84, 9, 0.12), 0 0 22px rgba(240, 84, 9, 0.08); }
        .tk.ans .tk-top b { color: var(--orange); }
        /* aguardando o suporte: o mesmo laranja, só mais apagado */
        .tk.wait { --c: var(--orange-light); border-color: rgba(255, 140, 66, 0.38); background: radial-gradient(300px 130px at 0% 50%, rgba(255, 140, 66, 0.07), transparent 70%), var(--bg-deep); }
        .tk.wait .tk-ic { color: var(--orange-light); background: rgba(255, 140, 66, 0.1); border-color: rgba(255, 140, 66, 0.35); }
        .pill.soft { opacity: .65; }
        /* finalizado esperando avaliação: único caso em amarelo */
        .tk.closed.torate { --c: var(--warn); }
        /* resposta do suporte que o cliente ainda não viu */
        .tk.new { border-color: rgba(240, 84, 9, 0.75); box-shadow: 0 0 0 1px rgba(240, 84, 9, 0.25), 0 10px 30px rgba(240, 84, 9, 0.12); }
        .tk.new .tk-ic { position: relative; overflow: visible; }
        .tk.new .tk-ic::after { content: ''; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid var(--bg-deep); animation: ping-o 1.8s ease-out infinite; }
        @keyframes ping-o { 0% { box-shadow: 0 0 0 0 rgba(240, 84, 9, 0.7); } 100% { box-shadow: 0 0 0 9px rgba(240, 84, 9, 0); } }
        .new-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 14px rgba(240, 84, 9, 0.35); }
        .new-badge svg { width: 12px; height: 12px; }
        .tk.closed { --c: var(--text-muted); padding: 12px 14px; background: var(--bg); }
        .tk.closed::before { display: none; }
        .tk-ic { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; color: var(--c, var(--orange)); background: color-mix(in srgb, var(--c, var(--orange)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--orange)) 30%, transparent); }
        .tk-ic svg { width: 19px; height: 19px; }
        .tk.closed .tk-ic { width: 36px; height: 36px; border-radius: 10px; }
        .tk.closed .tk-ic svg { width: 16px; height: 16px; }
        .tk-main { flex: 1; min-width: 0; }
        .tk-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
        .tk-top b { font-size: 14.5px; font-weight: 800; }
        .tk-id { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
        .tk-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 5px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
        .tk-meta b { font-weight: 700; color: var(--text-body); }
        .tk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
        .tk-go { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-muted); }
        .pill.wait-p i { animation: blink 1.6s ease-in-out infinite; }
        @keyframes blink { 50% { opacity: .3; } }

        .stars-sm { display: inline-flex; gap: 2px; color: var(--warn); }
        .stars-sm svg { width: 13px; height: 13px; }
        .stars-sm .off { color: var(--border-strong); }

        /* finalizados (minimizados) */
        .done-box { margin-top: 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.18); }
        .done-box summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--text-body); }
        .done-box summary::-webkit-details-marker { display: none; }
        .done-box summary > span { display: inline-flex; align-items: center; gap: 9px; }
        .done-box summary svg { width: 16px; height: 16px; color: var(--text-muted); transition: transform 200ms ease; }
        .done-box summary .cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--border-strong); font-family: var(--mono); font-size: 11px; color: var(--text); }
        .done-box[open] summary .chev { transform: rotate(180deg); }
        .done-box summary:hover { color: var(--text); }
        .done-list { display: grid; gap: 8px; padding: 0 12px 12px; }

        /* avaliação */
        .rate { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; padding: 16px; border-radius: 14px; border: 1px solid rgba(250, 204, 21, 0.4); background: radial-gradient(320px 140px at 0% 50%, rgba(250, 204, 21, 0.12), transparent 70%), var(--bg-deep); }
        #listArea .rate { margin: 16px 0 0; }
        .rate-ic { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; color: var(--warn); background: rgba(250, 204, 21, 0.12); border: 1px solid rgba(250, 204, 21, 0.35); }
        .rate-ic svg { width: 20px; height: 20px; }
        .rate-tx { flex: 1 1 200px; min-width: 0; }
        .rate-tx b { display: block; font-size: 14.5px; font-weight: 800; }
        .rate-tx span { display: block; font-size: 12.5px; color: var(--text-muted); }
        /* estrelas: ordem invertida no HTML para o "hover" acender as anteriores só com CSS */
        .stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
        .stars button { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--border-strong); transition: color 120ms ease, transform 120ms ease; }
        .stars button svg { width: 26px; height: 26px; }
        .stars button:hover, .stars button:hover ~ button, .stars button:focus-visible, .stars button:focus-visible ~ button { color: var(--warn); }
        .stars button:hover { transform: scale(1.12); }

        /* ===== Conversa ===== */
        .chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
        .chat-head .tk-ic { width: 38px; height: 38px; border-radius: 10px; }
        .chat-head .tk-ic svg { width: 17px; height: 17px; }
        .chat-title { flex: 1; min-width: 0; }
        .chat-title b { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; }
        .chat-title small { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
        .msgs { display: flex; flex-direction: column; gap: 14px; min-height: min(460px, 64vh); max-height: 64vh; padding: 18px 16px; overflow-y: auto; background: radial-gradient(500px 240px at 100% 0%, rgba(240, 84, 9, 0.05), transparent 70%), var(--bg-deep); scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
        .day-sep { align-self: center; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
        .msg { display: flex; align-items: flex-end; gap: 10px; max-width: min(86%, 560px); }
        .msg.me { align-self: flex-end; flex-direction: row-reverse; }
        .msg-av { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; overflow: hidden; border: 1px solid rgba(240, 84, 9, 0.45); background: radial-gradient(circle at 30% 30%, rgba(240, 84, 9, 0.35), rgba(240, 84, 9, 0.12)); padding: 2px; }
        .msg-av img { width: 100%; height: 100%; object-fit: contain; transform: scale(.84); }
        .msg.them .msg-av { border-color: var(--border-strong); background: #0f0e0e; padding: 5px; }
        .msg.them .msg-av img { transform: none; }
        .msg-body { min-width: 0; }
        /* responder mensagem: círculo apagado ao lado da mensagem, acende ao passar o mouse */
        .msg-content { position: relative; }
        .rp { position: absolute; top: 50%; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text-muted); opacity: .3; transform: translateY(-50%); transition: opacity 150ms ease, color 150ms ease, border-color 150ms ease, background 150ms ease; }
        .rp svg { width: 14px; height: 14px; }
        .msg.me .rp { left: -40px; }
        .msg.them .rp { right: -40px; }
        .msg:hover .rp, .rp:focus-visible { opacity: 1; }
        .rp:hover { color: var(--orange); border-color: var(--orange); background: rgba(240, 84, 9, 0.1); }
        @media (hover: none) { .rp { opacity: .6; } }
        .quote { display: block; width: fit-content; max-width: 100%; margin-bottom: 4px; padding: 6px 10px; border: 0; border-left: 3px solid var(--orange); border-radius: 8px; background: rgba(255, 255, 255, 0.04); text-align: left; font-size: 12px; line-height: 1.4; color: var(--text-muted); cursor: pointer; }
        .msg.me .quote { margin-left: auto; }
        .quote:hover { background: rgba(255, 255, 255, 0.07); }
        .quote b { display: block; font-size: 11px; color: var(--orange-light); }
        .quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
        .msg.flash .bubble, .msg.flash .msg-imgs { animation: flash 1.2s ease-out; }
        @keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px rgba(240, 84, 9, 0.55); } 100% { box-shadow: 0 0 0 0 rgba(240, 84, 9, 0); } }
        .reply-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; border-left: 3px solid var(--orange); background: var(--bg); }
        .reply-bar > svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--orange); }
        .reply-bar > div { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.4; }
        .reply-bar b { display: block; font-size: 12px; color: var(--orange-light); }
        .reply-bar span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
        .msg-who { margin-bottom: 4px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
        .msg.them .msg-who { color: var(--orange-light); }
        .msg.me .msg-who, .msg.me .msg-time { text-align: right; }
        .bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
        .msg.me .bubble { border: 1px solid rgba(240, 84, 9, 0.42); border-bottom-right-radius: 5px; background: linear-gradient(135deg, rgba(240, 84, 9, 0.24), rgba(240, 84, 9, 0.1)); color: var(--text); }
        .msg.them .bubble { border: 1px solid var(--border-strong); border-bottom-left-radius: 5px; background: var(--bg-soft); color: var(--text); }
        .msg-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
        .msg.me .msg-imgs { justify-content: flex-end; }
        .msg-imgs button { width: 132px; height: 88px; padding: 0; border-radius: 10px; border: 1px solid var(--border-strong); background: #000; overflow: hidden; transition: border-color 150ms ease; }
        .msg-imgs button:hover { border-color: var(--orange); }
        .msg-imgs img { width: 100%; height: 100%; object-fit: cover; }
        .bubble + .msg-imgs { margin-top: 6px; }
        .msg-time { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); }
        .msg.me .msg-time { justify-content: flex-end; }
        /* ✓ = enviada; ✓✓ = lida pelo suporte */
        .msg-time .st-sent { color: var(--text-muted); }
        .msg-time .st-read { color: var(--orange-light); }
        .msg-time svg { width: 12px; height: 12px; }
        .sys { align-self: center; max-width: 90%; padding: 8px 14px; border-radius: 10px; border: 1px dashed var(--border-strong); text-align: center; font-size: 12px; color: var(--text-muted); }
        .sys b { color: var(--text-body); }

        .composer { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--bg-card); }
        .comp-row { display: flex; align-items: flex-end; gap: 8px; }
        .comp-row textarea.field { flex: 1; max-height: 160px; resize: none; }
        .comp-row .icon-btn { width: 44px; height: 44px; border-radius: 10px; }
        .comp-row .btn { min-height: 44px; }
        /* mensagens seguidas da mesma pessoa: mais juntas, avatar só na última */
        .msg.cont { margin-top: -10px; }
        .msg-av.ghost { visibility: hidden; }
        .bubble + .msg-time { margin-top: 4px; }
        .msg-imgs + .bubble { margin-top: 6px; }
        .msg-content > .msg-imgs:first-child { margin-top: 0; }
        /* arrastar imagem para a conversa */
        #chatCard.dropping::after { content: 'Solte a imagem para anexar'; position: absolute; inset: 8px; z-index: 5; display: flex; align-items: center; justify-content: center; border-radius: 14px; border: 2px dashed var(--orange); background: rgba(26, 24, 24, 0.88); font-size: 15px; font-weight: 800; color: var(--orange-light); pointer-events: none; }
        .chat-end { padding: 16px; border-top: 1px solid var(--border); background: var(--bg-card); }
        .chat-end .rate { margin: 0; }
        .rated { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; font-size: 13px; color: var(--text-body); }
        .rated .stars-sm svg { width: 16px; height: 16px; }

        /* ações do admin (só na demonstração) */
        .adm { display: grid; gap: 8px; margin: 0; padding: 12px; border-top: 1px dashed rgba(167, 139, 250, 0.45); background: rgba(167, 139, 250, 0.05); }
        .adm > b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
        .adm-row { display: flex; flex-wrap: wrap; gap: 8px; }
        .adm-row .field { flex: 1 1 220px; min-height: 40px; }
        .btn-purple { border-color: rgba(167, 139, 250, 0.5); background: rgba(167, 139, 250, 0.1); color: var(--purple); }
        .btn-purple:hover { background: rgba(167, 139, 250, 0.2); }

        /* imagem ampliada */
        .lb { padding: 24px; }
        .lb img { max-width: min(1000px, 100%); max-height: 86vh; border-radius: 12px; border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
        .lb .icon-btn { position: absolute; top: 16px; right: 16px; }
        .modal-box .topics + .hint, .modal-box .fg .hint { margin-top: 0; }
        .modal-box h3 > svg { color: var(--orange); }

        @media (max-width: 559px) {
            .topics { grid-template-columns: minmax(0, 1fr); }
            .tk { flex-wrap: wrap; gap: 10px 12px; }
            .tk-main { flex-basis: calc(100% - 56px); }
            .tk-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; padding-left: 54px; }
            .tk.closed .tk-side { padding-left: 48px; }
            .comp-row .btn span { display: none; }
            .comp-row .btn { width: 44px; padding: 0; }
            .msg { max-width: 94%; }
            .msgs { min-height: min(380px, 58vh); max-height: 62vh; padding: 14px 12px; }
            .chat-head .pill { display: none; }
        }
        /* demonstração no menu lateral, abaixo de "Precisa de ajuda?" */
        .side .demo { flex-direction: column; align-items: stretch; gap: 8px; margin: 14px 0 0; padding: 12px; }
        .side .demo nav { flex-direction: column; }
        .side .demo a { padding: 7px 10px; }
        .side .demo span { font-size: 11.5px; line-height: 1.5; }
        @media (prefers-reduced-motion: reduce) {
            .tk:hover { transform: none; }
            .pill.wait-p i, .tk.new .tk-ic::after { animation: none; }
        }

        /* celular estreito */
        @media (max-width: 559px) {
            .account-email, .account-caret, .btn-admin span { display: none; }
            .account-chip { padding: 3px; }
            .btn-admin { width: 38px; padding: 0; }
            .ro-foot .btn, .sec-row .btn, .renew .btn { width: 100%; }
            .profile .pill { display: none; }
            .plan-price { text-align: left; margin-left: 0; }
            .days-big b { font-size: 38px; }
            .modal-actions .btn { flex: 1; }
        }
        @media (max-width: 639px) {
            /* histórico vira lista de cartões */
            .pay thead { display: none; }
            .pay, .pay tbody, .pay tr, .pay td { display: block; width: 100%; }
            .pay tr { margin-bottom: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-deep); }
            .pay tr:last-child { margin-bottom: 0; }
            .pay td, .pay tr:last-child td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0 !important; border: 0; text-align: right !important; }
            .pay td::before { content: attr(data-l); flex-shrink: 0; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
        }
        @media (min-width: 640px) {
            .card-head { padding: 20px 26px; }
            .card-body { padding: 26px; }
            .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .ups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .ups.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
            .panel { padding: 36px 28px; }
            .renew { padding: 16px 20px; }
        }
        @media (min-width: 760px) {
            .f-top { grid-template-columns: 1.2fr 2fr; }
            .f-cols { grid-template-columns: repeat(4, 1fr); }
            .f-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
        }
        @media (min-width: 960px) {
            :root { --nav-h: 72px; --gutter: 32px; }
            .logo img { height: 52px; }
            .shell { grid-template-columns: 228px minmax(0, 1fr); gap: 40px; padding-top: calc(var(--nav-h) + var(--safe-top) + 36px); }
            .side { position: sticky; top: calc(var(--nav-h) + var(--safe-top) + 36px); align-self: start; }
            .side-nav { flex-direction: column; margin: 0; padding: 0; overflow: visible; gap: 4px; }
            .side-link { position: relative; min-height: 44px; border-color: transparent; background: none; }
            .side-link.active { border-color: rgba(240, 84, 9, 0.4); background: rgba(240, 84, 9, 0.1); }
            .side-link.active::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
            .side-sep { display: block; height: 1px; margin: 12px 0; background: var(--border); }
            .help { display: block; margin-top: 22px; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: radial-gradient(200px 120px at 100% 0%, rgba(240, 84, 9, 0.14), transparent 70%), var(--bg-soft); }
            .help-ic { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 9px; color: var(--orange); background: rgba(240, 84, 9, 0.12); }
            .help-ic svg { width: 17px; height: 17px; }
            .help b { display: block; font-size: 14px; font-weight: 800; }
            .help p { margin: 4px 0 12px; font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }
            .help-link { display: block; margin-top: 8px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text-body); }
            .help-link:hover { color: var(--ok); }
            .page-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 30px 32px; }
            .ph-chips { flex-direction: column; align-items: flex-end; }
        }
        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            .reveal { animation: none; }
            .up:hover { transform: none; }
        }

        /* ===== Footer mínimo da área logada (igual em Painel, Status, Minha Conta, Suporte e Afiliados) ===== */
        .foot-mini { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 16px 0 calc(16px + var(--safe-bottom)); font-size: 12px; line-height: 1.6; color: var(--text-muted); }
        .foot-mini-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 0; text-align: center; }
        .foot-mini nav { display: inline-flex; flex-wrap: wrap; justify-content: center; }
        .foot-mini nav a { color: var(--text-muted); transition: color 150ms ease; }
        .foot-mini nav a::before { content: '·'; margin: 0 8px; color: var(--border-strong); }
        .foot-mini nav a:hover { color: var(--text-body); }
        @media (max-width: 559px) {
            .foot-mini-in { flex-direction: column; }
            .foot-mini nav a:first-child::before { display: none; }
        }

        /* ===== Topo (header) só no início da página: rola junto com o conteúdo ===== */
        .nav { position: absolute; }
        html { scroll-padding-top: 16px; }
        @media (min-width: 960px) { .side { top: 24px; } }

        /* ===== Sidebar única (sem header horizontal): logo + card do usuário + menu ===== */
        .shell { padding-top: calc(var(--safe-top) + 20px); }
        .side-logo { display: inline-flex; margin-bottom: 14px; }
        .side-logo img { display: block; width: auto; height: 44px; }
        .side-user { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: radial-gradient(220px 110px at 0% 0%, rgba(240, 84, 9, 0.14), transparent 70%), var(--bg-soft); }
        .su-av { width: 56px; height: 56px; padding: 3px; cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease; }
        .su-av:hover, .su-av:focus-visible { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 84, 9, 0.2); outline: none; }
        .su-id { flex: 1; min-width: 0; }
        .su-id b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; line-height: 1.3; }
        .su-id span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--orange-light); }
        .su-bell-wrap { position: static; }
        .su-bell { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text-body); transition: border-color 150ms ease, color 150ms ease; }
        .su-bell svg { width: 18px; height: 18px; }
        .su-bell:hover, .su-bell[aria-expanded="true"] { border-color: var(--orange); color: var(--orange); }
        .su-bell .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--bg); }
        .side-user .menu { top: calc(100% + 8px); left: 0; right: auto; width: min(300px, calc(100vw - 32px)); }
        @media (min-width: 960px) {
            .shell { grid-template-columns: 264px minmax(0, 1fr); gap: 36px; padding-top: calc(var(--safe-top) + 32px); }
            .side { top: 24px; }
            .side-user { padding: 14px 12px; gap: 10px; }
            .side-logo { margin: 0 0 18px 6px; }
            .side-logo img { height: 50px; }
            .side-user { margin-bottom: 18px; }
        }

        /* avatar da sidebar: ao passar o mouse aparece "Trocar"; clicar abre a janela de avatares */
        .su-av { position: relative; overflow: hidden; }
        .su-av-edit { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 50%; background: rgba(15, 14, 14, 0.72); color: #fff; opacity: 0; transition: opacity 150ms ease; }
        .su-av-edit svg { width: 16px; height: 16px; color: var(--orange-light); }
        .su-av-edit b { font-size: 10px; font-weight: 800; letter-spacing: .02em; }
        .su-av:hover .su-av-edit, .su-av:focus-visible .su-av-edit { opacity: 1; }

        /* sino: contador de notificações não vistas */
        .su-bell .dot { top: -5px; right: -5px; width: auto; display: flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--orange); box-shadow: 0 0 0 2px var(--bg-soft); color: #fff; font-family: var(--font); font-size: 10.5px; font-weight: 800; line-height: 1; }

        /* ===== Sidebar: textos maiores (mesma largura) ===== */
        @media (min-width: 960px) {
            .side-link { min-height: 46px; font-size: 15px; }
            .side-link svg { width: 19px; height: 19px; }
            .su-id b { font-size: 16.5px; }
            .su-id span { font-size: 13px; }
            .help b { font-size: 15.5px; }
            .help p { font-size: 13.5px; }
            .help .btn { font-size: 14px; }
            .help-link { font-size: 13.5px; }
            .side .demo, .side .demo span { font-size: 12.5px; }
            .side .demo b { font-size: 11.5px; }
            .side .demo a { font-size: 13.5px; }
        }
