* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #050505;
    --panel: #0d0d0f;
    --panel-light: #121214;
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: #8f8f95;
    --red: #ff2e2e;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.glow-one {
    background: #ff0000;
    top: -250px;
    right: -200px;
}

.glow-two {
    background: #ff0000;
    bottom: -300px;
    left: -250px;
}

.app {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}


/* SIDEBAR */

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: rgba(8, 8, 9, 0.95);
    border-right: 1px solid var(--border);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 35px;
}

.brand-v {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 900;
    box-shadow: 0 0 25px rgba(255, 46, 46, 0.25);
}

.brand-name {
    font-size: 21px;
    font-weight: 800;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #888;
    text-align: left;
    padding: 13px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.nav-item span {
    margin-right: 10px;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background: rgba(255, 46, 46, 0.1);
}

.nav-item.active {
    border-left: 3px solid var(--red);
}

.sidebar-bottom {
    margin-top: auto;
}

.admin-badge {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.admin-dot {
    width: 9px;
    height: 9px;
    background: #35d16f;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(53, 209, 111, 0.5);
}

.admin-badge strong {
    display: block;
    font-size: 13px;
}

.admin-badge small {
    color: var(--muted);
    font-size: 10px;
}

.logout-button {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    border: 1px solid var(--border);
    background: transparent;
    color: #aaa;
    border-radius: 9px;
    cursor: pointer;
}

.logout-button:hover {
    color: white;
    border-color: rgba(255, 46, 46, 0.4);
}


/* MAIN */

.main {
    flex: 1;
    padding: 45px;
    max-width: 1600px;
    margin: auto;
    width: 100%;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.eyebrow {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

h1 {
    font-size: 38px;
    letter-spacing: -1px;
}

.topbar p {
    color: var(--muted);
    margin-top: 7px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 100px;
    background: rgba(53, 209, 111, 0.07);
    border: 1px solid rgba(53, 209, 111, 0.15);
    color: #8ee9ae;
    font-size: 12px;
}

.secure-badge span {
    width: 7px;
    height: 7px;
    background: #35d16f;
    border-radius: 50%;
}


/* STATS */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.stat-card {
    background: rgba(13, 13, 15, 0.8);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 21px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.25s;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 46, 46, 0.3);
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 46, 46, 0.09);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 18px;
}

.stat-info span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
}

.stat-info strong {
    font-size: 26px;
}


/* USERS */

.users-section {
    background: rgba(10, 10, 11, 0.75);
    border: 1px solid var(--border);
    border-radius: 17px;
    overflow: hidden;
}

.section-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.section-header h2 {
    font-size: 23px;
}

.section-header p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

.refresh-button {
    background: var(--red);
    color: white;
    border: 0;
    padding: 10px 16px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
}

.refresh-button:hover {
    background: #e52323;
}


/* SEARCH */

.search-container {
    margin: 0 25px 20px;
    background: #09090a;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 13px;
}

.search-container span {
    color: #666;
    font-size: 20px;
}

.search-container input {
    width: 100%;
    padding: 13px 10px;
    background: transparent;
    border: 0;
    outline: none;
    color: white;
    font-size: 13px;
}


/* TABLE */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

thead {
    background: rgba(255, 255, 255, 0.025);
}

th {
    text-align: left;
    padding: 13px 25px;
    color: #777;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    padding: 16px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
    font-size: 12px;
}

.email {
    color: white;
    font-weight: 600;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 50px;
    font-size: 10px;
}

.status.verified {
    color: #83e8a4;
    background: rgba(53, 209, 111, 0.08);
}

.status.pending {
    color: #ffb36b;
    background: rgba(255, 179, 107, 0.08);
}

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

.user-id {
    color: #666;
    font-family: monospace;
    font-size: 10px;
}

.loading {
    text-align: center;
    color: #777;
    padding: 45px;
}

.no-users {
    text-align: center;
    color: #777;
    padding: 45px;
}


/* ERROR */

.error-box {
    display: none;
    margin: 0 25px 20px;
    padding: 13px;
    border-radius: 9px;
    background: rgba(255, 46, 46, 0.08);
    border: 1px solid rgba(255, 46, 46, 0.2);
    color: #ff8585;
    font-size: 12px;
}


/* FOOTER */

footer {
    display: flex;
    justify-content: space-between;
    color: #444;
    font-size: 10px;
    padding: 25px 5px;
}


/* MOBILE */

@media (max-width: 900px) {

    .sidebar {
        width: 70px;
        padding: 20px 10px;
    }

    .brand {
        justify-content: center;
        padding: 5px 0 30px;
    }

    .brand-text,
    .nav-item:not(.active) span {
        display: none;
    }

    .nav-item {
        font-size: 0;
        text-align: center;
    }

    .nav-item span {
        font-size: 17px;
        margin: 0;
    }

    .admin-badge {
        justify-content: center;
        padding: 12px 5px;
    }

    .admin-details {
        display: none;
    }

    .logout-button {
        font-size: 0;
    }

    .logout-button::after {
        content: "↪";
        font-size: 18px;
    }

    .main {
        padding: 25px 18px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 29px;
    }
}

@media (max-width: 550px) {

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

    .topbar {
        flex-direction: column;
    }

    .secure-badge {
        align-self: flex-start;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        gap: 5px;
    }
}