:root{
    color-scheme:dark;
    --bg:#02070b;
    --panel:#06111a;
    --card:#0a1824;
    --line:rgba(80,215,255,.18);
    --line2:rgba(80,215,255,.36);
    --text:#eefaff;
    --muted:#9db4c3;
    --cyan:#48d9ff;
    --cyan2:#8ef0ff;
    --purple:#7057ff;
    --green:#33e6ad;
    --yellow:#f5d94b;
    --red:#ff6f91;
    --shadow:0 24px 90px rgba(0,20,34,.54);
}

*{
    box-sizing:border-box;
}

html{
    background:var(--bg);
    scroll-behavior:smooth;
}

body{
    margin:0;
    min-height:100vh;
    font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
    background:
        radial-gradient(circle at 50% -15%,rgba(72,217,255,.18),transparent 36%),
        radial-gradient(circle at 82% 16%,rgba(112,87,255,.12),transparent 28%),
        linear-gradient(180deg,#02070b,#051018 55%,#020407);
    color:var(--text);
    overflow-x:hidden;
}

body:before{
    content:"";
    position:fixed;
    inset:-80px;
    pointer-events:none;
    background-image:
        linear-gradient(rgba(80,215,255,.045) 1px,transparent 1px),
        linear-gradient(90deg,rgba(80,215,255,.045) 1px,transparent 1px),
        linear-gradient(115deg,transparent 0%,rgba(72,217,255,.07) 44%,transparent 56%);
    background-size:46px 46px,46px 46px,260% 260%;
    opacity:.65;
    z-index:0;
    animation:gridMove 26s linear infinite,sweep 16s ease-in-out infinite;
}

body:after{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background:repeating-linear-gradient(
        180deg,
        rgba(72,217,255,.022) 0 1px,
        transparent 1px 9px
    );
    opacity:.24;
    z-index:0;
    animation:scan 8s linear infinite;
}

@keyframes gridMove{
    to{
        transform:translate3d(46px,46px,0);
    }
}

@keyframes sweep{
    50%{
        background-position:0 0,0 0,100% 50%;
    }
}

@keyframes scan{
    to{
        transform:translateY(18px);
    }
}

a{
    color:inherit;
    text-decoration:none;
}

button,
input,
select{
    font:inherit;
}

button{
    cursor:pointer;
}

.shell{
    width:min(1120px,calc(100% - 34px));
    margin:0 auto;
}

.nav-wrap{
    position:sticky;
    top:16px;
    z-index:10;
    padding-top:16px;
}

.nav{
    width:min(900px,calc(100% - 20px));
    min-height:56px;
    margin:0 auto;
    padding:8px 10px 8px 16px;
    border:1px solid var(--line);
    border-radius:12px;
    background:rgba(2,8,13,.84);
    box-shadow:0 18px 54px rgba(0,0,0,.38);
    backdrop-filter:blur(18px);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.brand img{
    width:112px;
    height:38px;
    object-fit:contain;
    filter:drop-shadow(0 0 15px rgba(72,217,255,.48));
}

.links{
    display:flex;
    gap:16px;
    color:var(--muted);
    font-size:13px;
    font-weight:850;
}

.links a:hover,
.links a.active{
    color:white;
}

.actions{
    display:flex;
    gap:8px;
}

.mini,
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--line2);
    border-radius:8px;
    background:rgba(255,255,255,.04);
    color:white;
    font-weight:900;
}

.mini{
    min-height:32px;
    padding:0 12px;
    font-size:12px;
}

.btn{
    min-height:44px;
    padding:0 16px;
    font-size:14px;
}

.primary,
.mini.primary{
    background:linear-gradient(135deg,var(--cyan),var(--cyan2));
    border-color:transparent;
    color:#001018;
}

.ghost{
    background:rgba(255,255,255,.035);
}

main,
.footer{
    position:relative;
    z-index:2;
}

.hero{
    min-height:calc(100vh - 86px);
    display:grid;
    place-items:center;
    padding:70px 0;
}

.hero-inner{
    text-align:center;
    width:min(760px,100%);
}

.eyebrow,
.tag{
    display:inline-flex;
    align-items:center;
    gap:9px;
    border:1px solid var(--line);
    border-radius:999px;
    background:rgba(6,17,26,.78);
    padding:8px 13px;
    color:#c8edf8;
    font-size:13px;
    font-weight:850;
}

.eyebrow i{
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--cyan);
    box-shadow:0 0 18px var(--cyan);
}

.hero-logo{
    display:block;
    width:min(720px,90vw);
    margin:92px auto 38px;
    filter:drop-shadow(0 0 34px rgba(72,217,255,.58));
}

.subtitle{
    margin:0 auto;
    max-width:680px;
    color:#bad0dc;
    font-size:clamp(17px,2.2vw,22px);
    font-weight:650;
}

.page{
    padding:92px 0 78px;
}

.head{
    text-align:center;
    max-width:760px;
    margin:0 auto 38px;
}

.head h1{
    font-size:clamp(42px,7vw,78px);
    line-height:.92;
    margin:18px 0 12px;
}

.head p{
    color:var(--muted);
    font-size:16px;
}

.cards,
.guide-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.card,
.guide-step,
.plan-box,
.panel{
    border:1px solid var(--line);
    border-radius:16px;
    background:rgba(6,17,26,.76);
    box-shadow:var(--shadow);
}

.card,
.guide-step,
.plan-box,
.panel{
    padding:22px;
}

.card h3,
.guide-step h3,
.plan-box h3{
    margin:0 0 8px;
}

.card p,
.guide-step p,
.plan-box p{
    margin:0;
    color:var(--muted);
}

.pricing-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.plan-options{
    display:grid;
    gap:10px;
    margin-top:18px;
}

.option{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    border:1px solid rgba(80,215,255,.14);
    border-radius:12px;
    background:rgba(255,255,255,.03);
    padding:14px;
}

.option span{
    display:block;
    color:var(--muted);
    font-size:13px;
}

.option b{
    font-size:24px;
    color:#dff9ff;
}

.guide-step em{
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border-radius:10px;
    background:rgba(72,217,255,.13);
    color:var(--cyan);
    font-style:normal;
    font-weight:950;
    margin-bottom:14px;
}

.download-box{
    width:min(720px,100%);
    margin:0 auto;
    border:1px solid var(--line);
    border-radius:18px;
    background:rgba(6,17,26,.78);
    padding:24px;
    display:grid;
    grid-template-columns:1fr auto;
    gap:14px;
    align-items:end;
}

.field label{
    display:block;
    color:#d9f2fb;
    font-size:13px;
    font-weight:850;
    margin-bottom:8px;
}

.field input,
.field select{
    width:100%;
    min-height:44px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#030a10;
    color:white;
    padding:0 12px;
    outline:none;
}

.field input:focus,
.field select:focus{
    border-color:var(--cyan);
}


/* =========================================================
   UTILIDADES CSP / PORTAL
   ========================================================= */

.text-muted{
    color:var(--muted);
}

.mt-16{
    margin-top:16px!important;
}

.generated-code{
    color:var(--cyan);
    font-weight:950;
}


.portal-main{
    padding:86px 0;
}

.auth-switch{
    display:flex;
    gap:10px;
    justify-content:center;
    margin-bottom:22px;
}

.auth-grid{
    display:grid;
    grid-template-columns:minmax(280px,560px);
    justify-content:center;
}

.dashboard{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:18px;
}

.side{
    border:1px solid var(--line);
    border-radius:16px;
    background:rgba(6,17,26,.78);
    padding:14px;
    height:max-content;
    position:sticky;
    top:96px;
}

.side button{
    width:100%;
    justify-content:flex-start;
    margin-bottom:8px;
}

.side .active{
    border-color:var(--cyan);
    background:rgba(72,217,255,.13);
}

.hidden{
    display:none!important;
}

.profile{
    display:grid;
    grid-template-columns:80px 1fr;
    gap:16px;
    align-items:center;
}

.avatar{
    width:76px;
    height:76px;
    border-radius:18px;
    background:linear-gradient(135deg,var(--cyan),var(--purple));
    display:grid;
    place-items:center;
    color:#001018;
    font-size:28px;
    font-weight:950;
}

.stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.stat{
    border:1px solid rgba(80,215,255,.14);
    border-radius:14px;
    background:rgba(255,255,255,.03);
    padding:16px;
}

.stat strong{
    display:block;
    font-size:28px;
}

.table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}

.table th,
.table td{
    text-align:left;
    padding:13px 11px;
    border-bottom:1px solid rgba(80,215,255,.12);
    vertical-align:top;
}

.table th{
    color:var(--muted);
    font-size:11px;
    text-transform:uppercase;
}

.badge{
    display:inline-flex;
    align-items:center;
    min-height:26px;
    padding:0 9px;
    border-radius:999px;
    font-size:12px;
    font-weight:950;
}

.badge.ok{
    background:rgba(51,230,173,.13);
    color:#a9ffe4;
}

.badge.warn{
    background:rgba(245,217,75,.13);
    color:#fff0a0;
}

.badge.bad{
    background:rgba(255,111,145,.13);
    color:#ffc5d3;
}

.badge.info{
    background:rgba(72,217,255,.13);
    color:#c8f6ff;
}

.members{
    display:grid;
    gap:10px;
}

.member{
    display:grid;
    grid-template-columns:1fr auto auto;
    gap:10px;
    align-items:center;
    border:1px solid rgba(80,215,255,.14);
    border-radius:12px;
    background:rgba(255,255,255,.03);
    padding:12px;
}

.admin-tools{
    display:grid;
    grid-template-columns:minmax(220px,1.2fr) minmax(180px,.8fr) auto;
    gap:12px;
    align-items:end;
    border:1px solid rgba(80,215,255,.18);
    border-radius:14px;
    background:rgba(4,14,22,.64);
    padding:14px;
}

.result-detail{
    margin-top:16px;
    border:1px solid rgba(80,215,255,.14);
    border-radius:14px;
    background:rgba(255,255,255,.03);
    padding:16px;
    color:var(--muted);
}

.footer{
    padding:42px 0 56px;
    text-align:center;
    color:var(--muted);
    border-top:1px solid rgba(80,215,255,.08);
}

.footer img{
    width:170px;
    margin:0 auto 12px;
    filter:drop-shadow(0 0 16px rgba(72,217,255,.38));
}


/* =========================================================
   CURSOR LAPSUS
   ========================================================= */

.cursor-dot,
.cursor-ring{
    position:fixed;
    left:0;
    top:0;
    pointer-events:none!important;
    z-index:100000;
    will-change:transform;
}

.cursor-dot{
    width:4px;
    height:4px;
    margin-left:-2px;
    margin-top:-2px;
    border-radius:50%;
    background:#effcff;
    box-shadow:0 0 10px rgba(142,240,255,.9);
}

.cursor-ring{
    width:32px;
    height:32px;
    margin-left:-16px;
    margin-top:-16px;
    border:2px solid rgba(142,240,255,.86);
    border-radius:50%;
    background:rgba(72,217,255,.035);
    box-shadow:0 0 18px rgba(72,217,255,.18);
}

.cursor-ring:after{
    content:"";
    position:absolute;
    width:12px;
    height:2px;
    border-radius:999px;
    background:rgba(142,240,255,.86);
    right:-8px;
    bottom:1px;
    transform:rotate(45deg);
}

@media(pointer:fine){
    body.cursor-enabled,
    body.cursor-enabled a,
    body.cursor-enabled button,
    body.cursor-enabled input,
    body.cursor-enabled select{
        cursor:none!important;
    }
}


/* =========================================================
   TOASTS LAPSUS
   ========================================================= */

.toast-stack{
    position:fixed;
    top:22px;
    right:22px;
    z-index:9999;
    display:grid;
    gap:10px;
    width:min(360px,calc(100vw - 28px));
    pointer-events:none;
}

.toast{
    transform:translateY(-8px) scale(.98);
    opacity:0;
    padding:14px 16px;
    border:1px solid rgba(81,218,255,.34);
    border-radius:14px;
    background:rgba(3,17,27,.94);
    color:#eafaff;
    box-shadow:
        0 18px 50px rgba(0,0,0,.36),
        0 0 24px rgba(70,210,255,.14);
    font-weight:800;
    line-height:1.35;
    backdrop-filter:blur(16px);
    transition:
        opacity .2s ease,
        transform .2s ease;
}

.toast.show{
    transform:translateY(0) scale(1);
    opacity:1;
}

.toast.ok{
    border-color:rgba(74,255,190,.42);
    box-shadow:
        0 18px 50px rgba(0,0,0,.36),
        0 0 24px rgba(74,255,190,.12);
}

.toast.warn{
    border-color:rgba(255,219,92,.46);
}

.toast.bad{
    border-color:rgba(255,107,151,.48);
}


/* =========================================================
   MODAL LAPSUS
   ========================================================= */

body.modal-open{
    overflow:hidden;
}

.lapsus-modal-backdrop{
    position:fixed;
    inset:0;
    z-index:95000;

    display:grid;
    place-items:center;

    padding:24px;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(72,217,255,.055),
            transparent 34%
        ),
        rgba(0,4,8,.74);

    backdrop-filter:
        blur(11px)
        saturate(115%);

    opacity:0;
    visibility:hidden;

    transition:
        opacity .18s ease,
        visibility .18s ease;
}

.lapsus-modal-backdrop.show{
    opacity:1;
    visibility:visible;
}

.lapsus-modal{
    position:relative;

    width:min(480px,100%);

    display:grid;
    grid-template-columns:54px minmax(0,1fr);
    gap:18px;

    padding:24px;

    border:1px solid rgba(72,217,255,.34);
    border-radius:18px;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(72,217,255,.12),
            transparent 38%
        ),
        radial-gradient(
            circle at 95% 100%,
            rgba(112,87,255,.10),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(7,22,32,.99),
            rgba(2,10,16,.99)
        );

    box-shadow:
        0 35px 120px rgba(0,0,0,.78),
        0 0 55px rgba(72,217,255,.11),
        inset 0 1px 0 rgba(255,255,255,.045);

    overflow:hidden;

    transform:
        translateY(16px)
        scale(.965);

    opacity:.5;

    transition:
        transform .18s cubic-bezier(.2,.8,.2,1),
        opacity .18s ease;
}

.lapsus-modal:before{
    content:"";

    position:absolute;
    left:0;
    right:0;
    top:0;

    height:1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(142,240,255,.72),
            transparent
        );

    opacity:.8;
}

.lapsus-modal:after{
    content:"";

    position:absolute;
    width:160px;
    height:160px;

    right:-80px;
    top:-90px;

    border-radius:50%;

    background:
        rgba(72,217,255,.08);

    filter:blur(20px);

    pointer-events:none;
}

.lapsus-modal-backdrop.show .lapsus-modal{
    transform:
        translateY(0)
        scale(1);

    opacity:1;
}

.lapsus-modal-icon{
    width:50px;
    height:50px;

    display:grid;
    place-items:center;

    border:1px solid rgba(72,217,255,.42);
    border-radius:14px;

    background:
        linear-gradient(
            145deg,
            rgba(72,217,255,.13),
            rgba(72,217,255,.045)
        );

    color:var(--cyan2);

    font-size:23px;
    line-height:1;
    font-weight:950;

    box-shadow:
        0 0 24px rgba(72,217,255,.13),
        inset 0 1px 0 rgba(255,255,255,.05);

    user-select:none;
}

.lapsus-modal-icon.danger{
    border-color:
        rgba(255,111,145,.43);

    background:
        linear-gradient(
            145deg,
            rgba(255,111,145,.15),
            rgba(255,111,145,.05)
        );

    color:#ffd0dc;

    box-shadow:
        0 0 27px rgba(255,111,145,.13),
        inset 0 1px 0 rgba(255,255,255,.05);
}

.lapsus-modal-content{
    min-width:0;
    position:relative;
    z-index:1;
}

.lapsus-modal-content h3{
    margin:1px 0 8px;

    color:#f0fbff;

    font-size:20px;
    line-height:1.2;
    font-weight:950;

    letter-spacing:-.02em;
}

.lapsus-modal-content p{
    margin:0;

    max-width:370px;

    color:#a9c0cd;

    font-size:14px;
    line-height:1.6;
}

.lapsus-modal-actions{
    display:flex;
    justify-content:flex-end;
    flex-wrap:wrap;

    gap:10px;

    margin-top:23px;
}

.lapsus-modal-btn{
    position:relative;

    min-height:40px;

    padding:0 16px;

    border-radius:9px;

    font-size:13px;
    font-weight:950;

    outline:none;

    transition:
        transform .15s ease,
        border-color .15s ease,
        background .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.lapsus-modal-btn:hover{
    transform:translateY(-1px);
}

.lapsus-modal-btn:active{
    transform:translateY(0) scale(.985);
}

.lapsus-modal-btn.cancel{
    border:
        1px solid rgba(80,215,255,.23);

    background:
        rgba(255,255,255,.035);

    color:#d8edf6;
}

.lapsus-modal-btn.cancel:hover{
    border-color:
        rgba(142,240,255,.5);

    background:
        rgba(72,217,255,.075);

    color:white;

    box-shadow:
        0 8px 24px rgba(72,217,255,.07);
}

.lapsus-modal-btn.confirm{
    border:
        1px solid transparent;

    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--cyan2)
        );

    color:#001018;

    box-shadow:
        0 9px 28px rgba(72,217,255,.18);
}

.lapsus-modal-btn.confirm:hover{
    box-shadow:
        0 10px 34px rgba(72,217,255,.28);
}

.lapsus-modal-btn.danger{
    border:
        1px solid rgba(255,111,145,.42);

    background:
        linear-gradient(
            135deg,
            rgba(255,111,145,.96),
            rgba(255,147,173,.96)
        );

    color:#1c030a;

    box-shadow:
        0 9px 28px rgba(255,111,145,.17);
}

.lapsus-modal-btn.danger:hover{
    border-color:
        rgba(255,174,194,.72);

    box-shadow:
        0 11px 36px rgba(255,111,145,.29);
}

.lapsus-modal-btn:focus-visible{
    outline:
        2px solid var(--cyan2);

    outline-offset:3px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:920px){
    .links{
        display:none;
    }

    .cards,
    .guide-grid,
    .pricing-grid,
    .dashboard,
    .stats,
    .admin-tools{
        grid-template-columns:1fr;
    }

    .download-box{
        grid-template-columns:1fr;
    }

    .side{
        position:static;
    }

    .member{
        grid-template-columns:1fr;
    }

    .panel{
        overflow-x:auto;
    }
}

@media(max-width:560px){
    .lapsus-modal-backdrop{
        padding:16px;
    }

    .lapsus-modal{
        grid-template-columns:1fr;
        gap:14px;
        padding:20px;
    }

    .lapsus-modal-icon{
        width:44px;
        height:44px;
        border-radius:12px;
    }

    .lapsus-modal-actions{
        flex-direction:column-reverse;
        margin-top:20px;
    }

    .lapsus-modal-btn{
        width:100%;
        min-height:44px;
    }
}

@media(prefers-reduced-motion:reduce){
    body:before,
    body:after{
        animation:none!important;
    }

    .lapsus-modal-backdrop,
    .lapsus-modal{
        transition:none!important;
    }
}