*{
    box-sizing:border-box;
}

:root{
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;

    --bg:#070b14;
    --bg-soft:#0c1220;
    --panel:#101827;
    --panel-2:#131d2f;

    --border:#202d43;
    --border-light:#2a3a54;

    --text:#edf4ff;
    --muted:#8190a8;

    --primary:#00c8ff;
    --primary-2:#7357ff;

    --green:#22d89a;
    --red:#ff5d73;
    --yellow:#ffbe55;
}

html{
    min-height:100%;
    background:#070b14;
}

body{
    margin:0;
    min-height:100vh;
    color:var(--text);

    background:
        linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px),
        radial-gradient(circle at 0% 0%,rgba(0,200,255,.12),transparent 32%),
        radial-gradient(circle at 100% 100%,rgba(115,87,255,.10),transparent 32%),
        #070b14;

    background-size:
        32px 32px,
        32px 32px,
        auto,
        auto,
        auto;
}

/* =========================
   CONTAINER
========================= */

.wrap{
    width:min(1180px,calc(100% - 36px));
    margin:34px auto;
}

.auth{
    width:min(460px,calc(100% - 28px));
    margin:9vh auto;
}

/* =========================
   CARD
========================= */

.card{
    position:relative;

    background:linear-gradient(
        145deg,
        #101827,
        #0d1421
    );

    border:1px solid var(--border);

    border-radius:16px;

    padding:24px;
    margin-bottom:18px;

    box-shadow:
        0 18px 45px rgba(0,0,0,.30),
        0 0 0 1px rgba(255,255,255,.015);

    overflow:hidden;

    transition:
        border-color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.card::before{
    content:"";
    position:absolute;

    left:0;
    top:0;
    bottom:0;

    width:3px;

    background:linear-gradient(
        180deg,
        var(--primary),
        var(--primary-2)
    );

    opacity:.85;
}

.card:hover{
    border-color:#2d405d;

    box-shadow:
        0 22px 55px rgba(0,0,0,.38),
        0 0 25px rgba(0,200,255,.035);
}

/* =========================
   TITLES
========================= */

h1,
h2,
h3{
    margin-top:0;
    color:#ffffff;
    letter-spacing:-.025em;
}

h1{
    font-size:30px;
    font-weight:900;
}

h2{
    font-size:21px;
    font-weight:850;
}

h3{
    font-size:17px;
}

a{
    color:#38d6ff;
    text-decoration:none;
}

a:hover{
    color:#78e5ff;
}

/* =========================
   NAVIGATION
========================= */

nav{
    display:flex;
    align-items:center;

    gap:7px;
    flex-wrap:wrap;

    padding:7px;

    margin-bottom:20px;

    background:#0c1320;

    border:1px solid var(--border);

    border-radius:14px;

    box-shadow:0 10px 30px rgba(0,0,0,.20);
}

nav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-height:39px;

    padding:9px 14px;

    color:#aebbd0;

    border:1px solid transparent;

    border-radius:9px;

    font-weight:700;
    font-size:13px;

    transition:.2s ease;
}

nav a:hover{
    color:#ffffff;

    background:#141f31;

    border-color:#263752;

    transform:none;
}

nav a.active{
    color:#ffffff;

    background:
        linear-gradient(
            135deg,
            #087fa2,
            #6449df
        );

    border-color:rgba(255,255,255,.10);

    box-shadow:0 5px 18px rgba(55,110,255,.22);
}

/* =========================
   FORM
========================= */

label{
    display:block;

    margin:15px 0 7px;

    color:#aab7ca;

    font-weight:700;
    font-size:13px;
}

input,
select,
textarea{
    width:100%;

    padding:13px 14px;

    color:#eaf3ff;

    background:#090f1a;

    border:1px solid #25344b;

    border-radius:10px;

    outline:none;

    font-size:14px;

    box-shadow:
        inset 0 1px 3px rgba(0,0,0,.28);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

input::placeholder,
textarea::placeholder{
    color:#56647a;
}

input:hover,
select:hover,
textarea:hover{
    border-color:#304563;
}

input:focus,
select:focus,
textarea:focus{
    background:#0b1321;

    border-color:#00bce8;

    box-shadow:
        0 0 0 3px rgba(0,200,255,.10),
        inset 0 1px 3px rgba(0,0,0,.25);
}

textarea{
    min-height:100px;
    resize:vertical;
}

select{
    color-scheme:dark;
}

select option{
    background:#101827;
    color:#edf4ff;
}

/* =========================
   BUTTONS
========================= */

button,
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    gap:7px;

    min-height:42px;

    padding:11px 17px;

    border:1px solid rgba(255,255,255,.10);

    border-radius:10px;

    color:#ffffff;

    background:
        linear-gradient(
            135deg,
            #008fbd,
            #6350e8
        );

    box-shadow:
        0 8px 22px rgba(43,91,213,.22);

    font-size:13px;
    font-weight:800;

    cursor:pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

button:hover,
.btn:hover{
    color:#ffffff;

    transform:translateY(-1px);

    filter:brightness(1.08);

    box-shadow:
        0 11px 28px rgba(43,91,213,.30);
}

button:active,
.btn:active{
    transform:translateY(0);
}

.btn.secondary{
    color:#c9d5e7;

    background:#141e2e;

    border-color:#2b3b55;

    box-shadow:none;
}

.btn.secondary:hover{
    background:#19263a;
    border-color:#395171;
}

.btn.danger{
    color:#ffffff;

    background:
        linear-gradient(
            135deg,
            #d83d58,
            #ad2941
        );

    border-color:#ef5269;

    box-shadow:0 8px 20px rgba(210,45,70,.18);
}

/* =========================
   GRID
========================= */

.grid{
    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:18px;
}

/* =========================
   TABLE
========================= */

table{
    width:100%;

    border-collapse:separate;
    border-spacing:0;

    background:#0c131f;

    border:1px solid #1e2a3d;

    border-radius:12px;

    overflow:hidden;
}

th,
td{
    text-align:left;

    padding:13px 12px;

    border-bottom:1px solid #1a2637;

    vertical-align:middle;
}

th{
    color:#71829c;

    background:#0a101a;

    font-size:11px;
    font-weight:850;

    text-transform:uppercase;

    letter-spacing:.07em;
}

td{
    color:#d6e0ee;

    font-size:14px;
}

tbody tr{
    transition:background .17s ease;
}

tbody tr:hover{
    background:#111c2c;
}

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

/* =========================
   STATUS
========================= */

.good{
    color:var(--green);
    font-weight:750;
}

.bad{
    color:var(--red);
    font-weight:750;
}

.warn{
    color:var(--yellow);
    font-weight:750;
}

.muted{
    color:var(--muted);
}

/* =========================
   MESSAGES
========================= */

.msg{
    position:relative;

    padding:13px 15px;

    border-radius:10px;

    margin-bottom:16px;

    color:#7df2bd;

    background:#09251e;

    border:1px solid #14533f;
}

.msg.error{
    color:#ff9baa;

    background:#2a1017;

    border-color:#612432;
}

/* =========================
   CREDIT
========================= */

.credit{
    margin-top:5px;

    font-size:39px;
    line-height:1;

    font-weight:950;

    letter-spacing:-.04em;

    background:
        linear-gradient(
            90deg,
            #31d9ff,
            #a18cff
        );

    -webkit-background-clip:text;
    background-clip:text;

    color:transparent;
}

/* =========================
   INLINE
========================= */

.inline{
    display:flex;

    align-items:center;

    gap:8px;

    flex-wrap:wrap;
}

.inline > *{
    width:auto;
}

/* =========================
   CODE
========================= */

code{
    display:inline-block;

    padding:5px 8px;

    color:#60ddff;

    background:#07111c;

    border:1px solid #1e344b;

    border-radius:7px;

    font-family:"JetBrains Mono",Consolas,monospace;

    font-size:12px;
}

/* =========================
   PRICE BOX
========================= */

.price-box{
    position:relative;

    padding:16px 17px;

    margin:15px 0;

    border-radius:12px;

    color:#cbd8e9;

    background:
        linear-gradient(
            135deg,
            #101b2a,
            #11172a
        );

    border:1px solid #263750;

    box-shadow:
        inset 3px 0 0 #00c8ff;
}

/* =========================
   API
========================= */

.api-fields{
    max-width:850px;
}

.api-key-preview{
    margin-top:7px;

    color:#718199;

    font-size:12px;
}

.copy-row{
    display:grid;

    grid-template-columns:minmax(0,1fr) auto;

    gap:9px;

    align-items:center;
}

.copy-row input{
    font-family:"JetBrains Mono",Consolas,monospace;

    font-size:13px;

    color:#64dcff;
}

/* =========================
   AUTH PAGE
========================= */

.auth .card{
    padding:30px;

    border-top:3px solid transparent;

    border-image:
        linear-gradient(
            90deg,
            #00c8ff,
            #755cff
        ) 1;
}

.auth h1{
    margin-bottom:8px;
}

.auth button,
.auth .btn{
    width:100%;

    margin-top:8px;

    min-height:46px;
}

/* =========================
   SCROLLBAR
========================= */

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

::-webkit-scrollbar-track{
    background:#080d15;
}

::-webkit-scrollbar-thumb{
    background:#26364d;

    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#354c6c;
}

/* =========================
   SELECTION
========================= */

::selection{
    color:#ffffff;

    background:#3468df;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:760px){

    .wrap{
        width:calc(100% - 18px);

        margin:14px auto;
    }

    .auth{
        width:calc(100% - 18px);

        margin:5vh auto;
    }

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

        gap:12px;
    }

    .card{
        padding:17px;

        border-radius:13px;

        overflow-x:auto;
    }

    nav{
        gap:5px;

        padding:6px;
    }

    nav a{
        flex:1;

        min-width:max-content;

        padding:9px 10px;

        font-size:12px;
    }

    h1{
        font-size:24px;
    }

    h2{
        font-size:19px;
    }

    .credit{
        font-size:32px;
    }

    table{
        min-width:650px;
    }

    button,
    .btn{
        min-height:42px;
    }
}

@media(max-width:600px){

    .copy-row{
        grid-template-columns:1fr;
    }

    .copy-row .btn,
    .copy-row button{
        width:100%;
    }
}