/* ═══════════════════════════════════════════════════════════
 * Kronos AI — Dashboard (visual no estilo do painel MyCheats)
 * Coloque em /app/css/kronos-dashboard.css
 * ═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0a0b;
    --panel: #0d0e0f;
    --panel2: #111418;
    --panel3: #0a0b0c;
    --line: #1e2225;
    --line2: #2a3038;
    --t1: #e5e7eb;
    --t2: #9ca3af;
    --t3: #8a9ab0;
    --t4: #7a8fa0;
    --t5: #5a7080;
    --t6: #3a4d5c;
    --icon: #4b5563;
    --accent: #15ac5e; /* cor de destaque (no MyCheats é o vermelho #8F0E0F) */
    --accent-bg: rgba(21, 172, 94, .09); /* fundo do item ativo do menu */
    --accent-soft: rgba(21, 172, 94, .14);
    --accent-line: rgba(21, 172, 94, .32);
    --warn: #ff9900;
    --danger: #ff5c5c;
    --text-secondary: var(--t5);
    --primary: var(--accent);
}

html {
    background: var(--bg);
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg);
    color: #fff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--line2);
    border-radius: 99px;
}

/* ═════ Navbar ═════ */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 56px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .3);
}

.tn-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .tn-left img {
        max-height: 36px;
        display: block;
    }

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    padding: 4px;
}

    .menu-btn:hover {
        color: #fff;
    }

.tn-right {
    position: relative;
    padding-right: 96px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 16px;
    color: #001a0c;
    background: linear-gradient(135deg, #15ac5e, #7dffb8);
}

.nav-user p {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-top: 4px;
}

.nav-drop {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 280px;
    z-index: 100;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .6);
    overflow: hidden;
}

    .nav-drop.open {
        display: block;
    }

.nd-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

    .nd-head .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .nd-head b {
        display: block;
        font-size: 14px;
        font-weight: 600;
    }

    .nd-head span {
        display: block;
        font-size: 12px;
        color: var(--t5);
        margin-top: 1px;
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.nd-body {
    padding: 8px;
}

    .nd-body + .nd-body {
        border-top: 1px solid var(--line);
    }

.nd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--t3);
    font-size: 14px;
    text-align: left;
    transition: .15s;
}

    .nd-item i {
        color: var(--t5);
        width: 16px;
        text-align: center;
    }

    .nd-item:hover {
        color: #fff;
        background: rgba(255, 255, 255, .04);
    }

    .nd-item.danger:hover {
        color: #f87171;
        background: rgba(127, 29, 29, .15);
    }

/* ═════ Estrutura ═════ */
.wrap {
    display: flex;
    padding: 40px 40px 40px 56px;
    gap: 0;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 40;
}

    .overlay.open {
        display: block;
    }

/* ═════ Sidebar ═════ */
.sidebar {
    font-family: 'Inter', sans-serif;
    width: 210px;
    flex-shrink: 0;
}

.side-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--t6);
    font-weight: 600;
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-nav, .side-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
}

.side-links {
    margin-top: 2px;
}

.sidebar-nav a, .side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--t5);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .025em;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: .15s;
    background: none;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    width: 100%;
    text-align: left;
}

    .sidebar-nav a i, .side-link i {
        font-size: 1rem;
        width: 18px;
        text-align: center;
        flex-shrink: 0;
    }

    .sidebar-nav a:hover, .side-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, .04);
    }

    .sidebar-nav a.active {
        background: var(--accent-bg);
        border-left-color: var(--accent);
        color: #fff;
        font-weight: 600;
    }

        .sidebar-nav a.active i {
            color: var(--accent);
        }

    .side-link.danger {
        color: #ef4444;
    }

        .side-link.danger:hover {
            color: #f87171;
            background: rgba(127, 29, 29, .15);
        }

.side-sep {
    height: 1px;
    background: var(--line);
    margin: 20px 12px;
}

.side-close {
    display: none;
}

/* ═════ Conteúdo ═════ */
.content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
}

.inner {
    width: 100%;
    max-width: 1024px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-top: 20px;
    overflow: hidden;
}

    .card.first {
        margin-top: 24px;
    }

    .card.accent {
        border-left: 2px solid var(--accent);
    }

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, #131618 0%, #0d0e0f 100%);
}

    .card-head h2 {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--t3);
    }

        .card-head h2 i {
            color: var(--t6);
        }

.card-body {
    padding: 24px;
}

.viewlink {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
}

    .viewlink:hover {
        text-decoration: underline;
    }

/* ═════ Verificação de email ═════ */
.verify {
    display: flex;
    align-items: center;
    gap: 16px 24px;
    padding: 16px 24px;
    flex-wrap: wrap;
}

.verify-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .verify-label > i {
        color: var(--accent);
        font-size: 18px;
    }

    .verify-label b {
        display: block;
        font-size: 14px;
        font-weight: 600;
    }

    .verify-label small {
        color: var(--t5);
        font-size: 12px;
    }

.verify-input {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 280px;
}

.email-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    background: var(--panel3);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--t2);
    font: 14px 'Roboto', sans-serif;
    outline: none;
    transition: .15s;
}

    .email-input::placeholder {
        color: #2a3035;
    }

    .email-input:focus {
        border-color: var(--accent);
    }

.btn-verificar {
    padding: 10px 22px;
    background: var(--accent);
    border: none;
    border-radius: 4px;
    color: #001a0c;
    font: 600 13.5px 'Roboto', sans-serif;
    white-space: nowrap;
    min-width: 100px;
    transition: .15s;
}

    .btn-verificar:hover {
        filter: brightness(1.12);
    }

.email-status {
    flex-basis: 100%;
    font-size: 13px;
    display: none;
}

    .email-status.ok {
        color: var(--accent);
    }

    .email-status.err {
        color: var(--danger);
    }

#email-sugestoes {
    flex-basis: 100%;
    margin-top: 0 !important;
}

/* ═════ Páginas ═════ */
.page {
    display: none;
}

    .page.active {
        display: block;
        animation: in .3s ease;
    }

@keyframes in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
}

    .page-title i {
        color: var(--accent);
    }

    .page-title h1 {
        font-size: 20px;
        font-weight: 700;
    }

    .page-title p {
        font-size: 13px;
        color: var(--t5);
        margin-top: 2px;
    }

/* ═════ Perfil (cabeçalho) ═════ */
.hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    flex-wrap: wrap;
}

.av-outer {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .av-outer::before {
        content: '';
        position: absolute;
        inset: -1.5px;
        border-radius: 50%;
        z-index: 0;
        animation: comet1 7s linear infinite;
        background: conic-gradient(from 0deg, transparent 0deg, transparent 60deg, rgba(21,172,94,.04) 90deg, rgba(21,172,94,.14) 130deg, rgba(21,172,94,.3) 175deg, rgba(40,200,110,.5) 220deg, rgba(60,220,130,.75) 265deg, #7dffb8 295deg, rgba(60,220,130,.5) 315deg, rgba(21,172,94,.2) 338deg, transparent 360deg);
    }

    .av-outer::after {
        content: '';
        position: absolute;
        inset: -1.5px;
        border-radius: 50%;
        z-index: 0;
        animation: comet2 11s linear infinite;
        background: conic-gradient(from 180deg, transparent 0deg, transparent 70deg, rgba(21,172,94,.03) 100deg, rgba(21,172,94,.1) 145deg, rgba(21,172,94,.22) 190deg, rgba(21,172,94,.35) 235deg, rgba(60,220,130,.48) 270deg, rgba(100,230,150,.55) 295deg, rgba(21,172,94,.25) 320deg, transparent 360deg);
    }

@keyframes comet1 {
    to {
        transform: rotate(360deg);
    }
}

@keyframes comet2 {
    to {
        transform: rotate(-360deg);
    }
}

.av-inner {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.kronos-ball {
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    cursor: default;
}

    .kronos-ball img.ball-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
    }

.ball-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--panel);
    border: 1px solid var(--line2);
    border-radius: 6px;
    padding: 16px;
    width: 168px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: .2s;
    z-index: 9999;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8);
}

.kronos-ball:hover .ball-tooltip {
    opacity: 1;
}

.tt-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: block;
    object-fit: cover;
}

.tt-name {
    font-size: 13px;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.tt-xp {
    font-size: 10px;
    color: rgba(255, 255, 255, .45);
    display: block;
    margin-bottom: 8px;
}

.tt-bar-wrap {
    background: #1a1f24;
    border-radius: 99px;
    height: 5px;
    overflow: hidden;
}

.tt-bar, .xp-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

.hero-info {
    flex: 1;
    min-width: 200px;
}

    .hero-info .name {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 8px;
        word-break: break-all;
    }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #4b5563;
    color: #d1d5db;
    background: #1f2937;
}

    .chip.green {
        color: #4ade80;
        border-color: rgba(74, 222, 128, .35);
        background: rgba(20, 83, 45, .35);
    }

    .chip .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        display: inline-block;
    }

.hero-stats {
    display: flex;
    gap: 12px;
    padding-left: 32px;
    border-left: 1px solid var(--line);
    flex-shrink: 0;
}

.stat-card {
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 20px;
    text-align: center;
    min-width: 90px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--t1);
}

.stat-label {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    color: var(--t6);
}

/* ═════ Linhas de informação ═════ */
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
}

    .info-row:last-child {
        border-bottom: none;
    }

    .info-row .l {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--t4);
        font-size: 14px;
    }

        .info-row .l i {
            color: var(--icon);
            font-size: 16px;
            width: 18px;
            text-align: center;
        }

    .info-row .r {
        color: var(--t2);
        font-size: 14px;
        font-weight: 500;
        text-align: right;
        min-width: 0;
        max-width: 260px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .pill .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

    .pill.off {
        background: #111418;
        color: #6b7280;
        border: 1px solid var(--line2);
    }

    .pill.on {
        background: rgba(21, 172, 94, .12);
        color: #4ade80;
        border: 1px solid rgba(74, 222, 128, .3);
    }

.btn-mini {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--panel2);
    border: 1px solid var(--line);
    color: var(--t4);
    transition: .2s;
}

    .btn-mini:hover {
        border-color: var(--icon);
        color: #fff;
    }

/* ═════ Nível de XP ═════ */
.quote {
    padding-left: 12px;
    border-left: 2px solid rgba(209, 213, 219, .33);
    margin-bottom: 20px;
}

    .quote p {
        font-size: 14px;
        font-style: italic;
        line-height: 1.6;
        color: rgba(209, 213, 219, .6);
    }

.xp-box {
    background: var(--panel3);
    border: 1px solid #1a1f24;
    border-radius: 6px;
}

    .xp-box .top {
        padding: 16px;
        border-bottom: 1px solid #1a1f24;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
    }

        .xp-box .top b {
            font-size: 14px;
            font-weight: 600;
            display: block;
        }

        .xp-box .top small {
            color: var(--t5);
            font-size: 12px;
        }

        .xp-box .top .stat-value {
            font-size: 26px;
        }

    .xp-box .bot {
        padding: 16px;
    }

.xp-bar-wrap {
    background: #1a1f24;
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
}

.xp-sub {
    font-size: 14px;
    color: var(--t5);
    margin-top: 10px;
}

.help {
    position: relative;
    margin-left: 6px;
}

    .help > button {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--panel2);
        border: 1px solid var(--t6);
        color: var(--t3);
        font-size: 9px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: helpPulse 2.5s ease-in-out infinite;
    }

@keyframes helpPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(138, 154, 176, .35);
        border-color: #3a4d5c;
    }

    50% {
        box-shadow: 0 0 0 4px rgba(138, 154, 176, 0);
        border-color: #8a9ab0;
    }
}

.help-tip {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 8px);
    width: 260px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .7);
    text-transform: none;
    letter-spacing: 0;
}

.help:hover .help-tip {
    display: block;
}

.help-tip b {
    font-size: 14px;
    color: #fff;
    display: block;
}

.help-tip p {
    font-size: 12px;
    color: var(--t5);
    margin: 2px 0 12px;
    font-weight: 400;
}

.lv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

    .lv-row:last-child {
        margin-bottom: 0;
    }

    .lv-row span:first-child {
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid;
        white-space: nowrap;
    }

    .lv-row span:last-child {
        font-size: 11px;
        color: #4a5a68;
    }

/* ═════ Produtos ═════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.product-card {
    position: relative;
    background: var(--panel3);
    border: 1px solid #1a1f24;
    border-radius: 6px;
    padding: 24px 18px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: .2s;
}

    .product-card:hover {
        border-color: var(--accent-line);
        transform: translateY(-2px);
    }

    .product-card.has-license {
        border-color: var(--accent-line);
        background: linear-gradient(180deg, rgba(21, 172, 94, .06), var(--panel3) 60%);
    }

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 26px;
    background: var(--panel2);
    border: 1px solid var(--line);
}

.product-name {
    font-size: 15px;
    font-weight: 700;
}

.product-desc {
    font-size: 12.5px;
    color: var(--t5);
    line-height: 1.6;
}

.product-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
}

    .product-status.ativa {
        background: rgba(21, 172, 94, .12);
        color: #4ade80;
        border: 1px solid rgba(74, 222, 128, .3);
    }

    .product-status.sem-licenca {
        background: var(--panel2);
        color: #6b7280;
        border: 1px solid var(--line2);
    }

.product-expira {
    font-size: 12px;
    color: var(--t5);
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    font: 600 13px 'Roboto', sans-serif;
    border: none;
    margin-top: auto;
    transition: .15s;
}

    .btn-download.enabled {
        background: var(--accent);
        color: #001a0c;
    }

        .btn-download.enabled:hover {
            filter: brightness(1.12);
        }

    .btn-download.disabled {
        background: var(--panel2);
        color: #4b5563;
        cursor: not-allowed;
        pointer-events: none;
        border: 1px solid var(--line);
    }

/* ═════ Tabelas ═════ */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--t6);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

td {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    color: var(--t5);
    font-size: 13.5px;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(255, 255, 255, .02);
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-ativa {
    background: rgba(21, 172, 94, .12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, .3);
}

.badge-expirada {
    background: rgba(255, 150, 0, .1);
    color: var(--warn);
    border: 1px solid rgba(255, 150, 0, .25);
}

.badge-revogada {
    background: rgba(255, 60, 60, .1);
    color: var(--danger);
    border: 1px solid rgba(255, 60, 60, .25);
}

.empty-msg {
    padding: 32px;
    text-align: center;
    color: var(--t5);
    font-size: 14px;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .14);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#dashAssinaturas {
    padding: 16px;
}

/* ═════ Chat ═════ */
.chat-wrap {
    display: flex;
    flex-direction: column;
    height: min(620px, calc(100vh - 260px));
    min-height: 400px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-top: 20px;
    overflow: hidden;
}

.chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 78%;
    padding: 11px 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
}

    .chat-msg.bot {
        align-self: flex-start;
        background: var(--panel2);
        border: 1px solid var(--line);
    }

    .chat-msg.user {
        align-self: flex-end;
        background: var(--accent);
        color: #001a0c;
        font-weight: 500;
    }

    .chat-msg.erro {
        border-color: rgba(255, 68, 68, .35);
        color: #ff8a8a;
    }

    .chat-msg.typing {
        color: var(--t5);
        font-style: italic;
    }

.chat-go {
    display: block;
    margin-top: 10px;
    padding: 9px 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 14px;
}

    .chat-chips button {
        padding: 6px 14px;
        background: var(--accent-bg);
        border: 1px solid var(--accent-line);
        color: var(--accent);
        border-radius: 999px;
        font: 13px 'Roboto', sans-serif;
        transition: .15s;
    }

        .chat-chips button:hover {
            background: var(--accent-soft);
        }

.chat-human {
    display: none;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: rgba(255, 150, 0, .06);
    font-size: 13px;
    color: var(--warn);
}

    .chat-human input {
        flex: 1;
        min-width: 200px;
        padding: 9px 14px;
        background: var(--panel3);
        border: 1px solid var(--line);
        border-radius: 4px;
        color: #fff;
        font: 14px 'Roboto', sans-serif;
        outline: none;
    }

    .chat-human button {
        padding: 9px 18px;
        background: rgba(255, 150, 0, .15);
        border: 1px solid rgba(255, 150, 0, .35);
        color: var(--warn);
        border-radius: 4px;
        font: 600 13px 'Roboto', sans-serif;
    }

.chat-input-row {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}

    .chat-input-row input {
        flex: 1;
        padding: 11px 14px;
        background: var(--panel3);
        border: 1px solid var(--line);
        border-radius: 4px;
        color: var(--t2);
        font: 14px 'Roboto', sans-serif;
        outline: none;
    }

        .chat-input-row input:focus {
            border-color: var(--accent);
        }

    .chat-input-row button {
        padding: 0 24px;
        background: var(--accent);
        border: none;
        border-radius: 4px;
        color: #001a0c;
        font: 600 14px 'Roboto', sans-serif;
    }

        .chat-input-row button:disabled {
            opacity: .4;
            cursor: not-allowed;
        }

/* ═════ Tutoriais ═════ */
.tut-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    margin-top: 20px;
}

.tut-player {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

    .tut-player iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

.tut-info {
    padding: 16px 2px;
}

    .tut-info h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .tut-info p {
        font-size: .9rem;
        line-height: 1.6;
        color: var(--t5);
    }

.tut-list {
    align-self: start;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
}

    .tut-list h3 {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--t3);
        margin-bottom: 14px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line);
    }

.tut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px;
    margin-bottom: 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #fff;
    text-align: left;
    transition: .15s;
}

    .tut-item:hover {
        background: rgba(255, 255, 255, .04);
    }

    .tut-item.active {
        background: var(--accent-bg);
        border-color: var(--accent-line);
    }

    .tut-item img {
        width: 90px;
        aspect-ratio: 16/9;
        object-fit: cover;
        border-radius: 4px;
    }

    .tut-item strong {
        display: block;
        font-size: .88rem;
    }

    .tut-item small {
        display: block;
        font-size: .75rem;
        color: var(--accent);
        margin-top: 4px;
    }

/* ═════ Responsivo ═════ */
@media (max-width: 1000px) {
    .hero-stats {
        padding-left: 0;
        border-left: none;
        width: 100%;
        border-top: 1px solid var(--line);
        padding-top: 16px;
    }

        .hero-stats .stat-card {
            flex: 1;
            min-width: 0;
        }

    .tut-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .topnav {
        padding: 14px 16px;
    }

    .menu-btn {
        display: block;
    }

    .tn-right {
        padding-right: 0;
    }

    .nav-user p {
        display: none;
    }

    .wrap {
        padding: 16px;
    }

    .content {
        padding: 0;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 256px;
        z-index: 50;
        overflow-y: auto;
        background: var(--panel);
        border-right: 1px solid var(--line);
        padding: 20px 12px;
        transform: translateX(-100%);
        transition: transform .3s;
    }

        .sidebar.open {
            transform: none;
        }

    .side-close {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 28px;
        padding: 0 8px;
    }

        .side-close img {
            max-height: 28px;
        }

        .side-close button {
            background: none;
            border: none;
            color: #9ca3af;
            font-size: 22px;
        }

    .chat-msg {
        max-width: 92%;
    }

    .info-row .r {
        max-width: 160px;
    }
}

/* ═════ Últimos acessos ═════ */
.acesso {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
}

    .acesso:last-child {
        border-bottom: none;
    }

    .acesso.atual {
        background: rgba(21, 172, 94, .04);
    }

.ac-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ac-quando {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
}

.ac-local {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--t4);
    margin-bottom: 6px;
}

    .ac-local i {
        color: var(--icon);
    }

.ac-meta {
    display: flex;
    gap: 6px 24px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--t5);
}

    .ac-meta b {
        color: var(--t3);
        font-weight: 500;
    }

/* ═════ Avatar cartoon ═════ */
.user-avatar {
    overflow: hidden;
}

    .user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
    }

.hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    display: block;
    background: #fff;
}
/* Bolinha de XP vira selo no canto do avatar */
.av-outer .kronos-ball {
    position: absolute;
    right: -4px;
    bottom: -4px;
    z-index: 3;
    border: 2px solid var(--panel);
    border-radius: 50%;
    background: var(--panel);
}

.av-outer .ball-tooltip {
    bottom: auto;
    top: 50%;
    left: calc(100% + 12px);
    transform: translateY(-50%);
}
.hero-avatar,
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #fff;
    border-radius: 50%;
}

.av-inner {
    overflow: hidden;
}
.av-inner {
    background: linear-gradient(135deg, #15ac5e, #7dffb8);
}

.hero-avatar {
    background: #fff;
}