:root {
    --bg: #0b1220;
    --panel: rgba(255,255,255,0.06);
    --panel2: rgba(255,255,255,0.10);
    --text: #eaf0ff;
    --muted: rgba(234,240,255,0.72);
    --border: rgba(255,255,255,0.14);
    --accent: #6ee7ff;
    --accent2: #a78bfa;
    --shadow: 0 12px 40px rgba(0,0,0,.35);
    --radius: 18px;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background: radial-gradient(900px 500px at 20% 10%, rgba(110,231,255,0.18), transparent 60%), radial-gradient(900px 500px at 85% 20%, rgba(167,139,250,0.16), transparent 60%), radial-gradient(900px 700px at 50% 100%, rgba(255,255,255,0.06), transparent 55%), var(--bg);
}

a {
    color: var(--accent);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px;
}

.page {
    padding-top: 18px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(11,18,32,0.70);
    backdrop-filter: blur(10px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.topbar-logo {
    height: 28px;
    width: auto;
    opacity: 0.95;
}

.topbar-title {
    font-weight: 900;
    letter-spacing: 0.2px;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* Bubble tabs */
.tabs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}

    .tab:hover {
        background: rgba(255,255,255,0.10);
        text-decoration: none;
    }

    .tab.active {
        border: 0;
        color: #0b1220;
        background: linear-gradient(135deg, var(--accent), var(--accent2));
    }

.tab-danger {
    border: 1px solid rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.10);
}

.cardx {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 900;
}

.btnx {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 800;
}

    .btnx:hover {
        background: rgba(255,255,255,0.10);
    }

.btn-primary-grad {
    height: 46px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    color: #0b1220;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 14px 30px rgba(110,231,255,0.12);
    padding: 0 14px;
}

    .btn-primary-grad:disabled {
        opacity: 0.60;
        cursor: not-allowed;
    }

.alert-error {
    border: 1px solid rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.10);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 10px;
}

.alert-success {
    border: 1px solid rgba(34,197,94,0.35);
    background: rgba(34,197,94,0.10);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 10px;
}

.muted {
    color: var(--muted);
}

.mt-2 {
    margin-top: 10px;
}

.page-title {
    margin: 0;
    font-weight: 950;
    letter-spacing: 0.2px;
}

.page-subtitle {
    margin: 6px 0 18px 0;
    color: var(--muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 1000px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.kv {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px 14px;
    align-items: center;
}

@media (max-width: 520px) {
    .kv {
        grid-template-columns: 1fr;
    }
}

.k {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.v {
    font-size: 14px;
    font-weight: 800;
}

.divider {
    height: 1px;
    background: rgba(255,255,255,0.10);
    margin: 14px 0;
}

/* =========================
   AUTH (Login/Forgot) 
   ========================= */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-window {
    width: min(980px, 92vw);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(14px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.auth-window-single {
    grid-template-columns: 1fr;
    max-width: 520px;
}

@media (max-width: 900px) {
    .auth-window {
        grid-template-columns: 1fr;
    }
}

.auth-brand {
    padding: 34px;
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

@media (max-width: 900px) {
    .auth-brand {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .brand-logo img {
        height: 54px;
        width: auto;
        max-width: 180px;
    }

.brand-title {
    font-size: 22px;
    font-weight: 950;
    letter-spacing: 0.2px;
}

.brand-subtitle {
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
    max-width: 52ch;
}

.auth-form {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.form-title {
    font-size: 18px;
    font-weight: 950;
    margin: 0;
}

.form-hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
}

    .field label {
        font-size: 12px;
        color: var(--muted);
        font-weight: 800;
    }

.input {
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.18);
    color: var(--text);
    padding: 0 12px;
    outline: none;
}

    .input:focus {
        border-color: rgba(110,231,255,0.55);
        box-shadow: 0 0 0 4px rgba(110,231,255,0.18);
    }

.footer-note {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(234,240,255,0.55);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 6px;
}

.link-soft {
    color: rgba(234,240,255,0.75);
    font-size: 13px;
}

    .link-soft:hover {
        color: var(--text);
        text-decoration: none;
    }
