:root {
    --bg: #050812;
    --card: rgba(255, 255, 255, .07);
    --line: rgba(255, 255, 255, .12);
    --muted: #94a3b8;
    --text: #ffffff;
    --cyan: #67e8f9;
    --blue: #2563eb;
    --green: #86efac;
    --red: #fb7185;
}

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

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

body::before,
body::after {
    content: '';
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(90px);
    z-index: -3;
}

body::before {
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(34, 211, 238, .22);
}

body::after {
    right: -170px;
    bottom: -210px;
    background: rgba(37, 99, 235, .3);
}

.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(circle at top, rgba(255,255,255,.09), transparent 34%),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
}

.container {
    width: min(1160px, calc(100% - 34px));
    margin: 0 auto;
}

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

.logo {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 13px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #020617;
    font-size: 24px;
    box-shadow: 0 18px 45px rgba(34, 211, 238, .22);
}

.logo-title {
    font-size: 21px;
    font-weight: 900;
}

.logo-subtitle {
    margin-top: 2px;
    color: rgba(186, 230, 253, .72);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .28em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: .25s;
}

.btn {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    color: #020617;
    box-shadow: 0 20px 50px rgba(34, 211, 238, .18);
}

.btn:hover,
.btn-outline:hover {
    transform: translateY(-2px);
}

.btn-outline {
    color: white;
    border-color: var(--line);
    background: rgba(255,255,255,.08);
}

.page-title {
    margin-top: 22px;
    margin-bottom: 26px;
}

.page-title h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: .96;
    letter-spacing: -.06em;
    font-weight: 950;
}

.page-title p {
    margin-top: 16px;
    max-width: 680px;
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 17px;
}

.login-wrap {
    min-height: calc(100vh - 102px);
    display: grid;
    place-items: center;
    padding: 30px 0 70px;
}

.login-box {
    width: min(430px, 100%);
    padding: 34px;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.075);
    box-shadow: 0 30px 90px rgba(0,0,0,.38);
    backdrop-filter: blur(20px);
}

.login-box h1 {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 10px;
}

.login-box p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 25px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    height: 52px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, .45);
    color: white;
    outline: none;
    padding: 0 16px;
    font-size: 16px;
}

.input-group input:focus {
    border-color: rgba(103,232,249,.55);
    box-shadow: 0 0 0 4px rgba(103,232,249,.08);
}

.error {
    margin-bottom: 17px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(251,113,133,.28);
    background: rgba(251,113,133,.1);
    color: #fecdd3;
    font-weight: 800;
}

.full-btn {
    width: 100%;
    height: 54px;
    margin-top: 5px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    color: #020617;
    font-weight: 950;
    font-size: 16px;
    cursor: pointer;
}

.hero-profile {
    margin-top: 18px;
    padding: 34px;
    border-radius: 34px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(103,232,249,.15), rgba(37,99,235,.16));
    box-shadow: 0 28px 90px rgba(0,0,0,.28);
}

.hero-profile h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: .95;
    letter-spacing: -.06em;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.08);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 900;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--card);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 70px rgba(0,0,0,.18);
}

.card span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.card strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    line-height: 1.1;
}

.wide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.table-card {
    overflow: hidden;
}

.table-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.table-title h2 {
    font-size: 25px;
}

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

th, td {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: left;
    font-size: 14px;
}

th {
    color: #cbd5e1;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

td {
    color: #f8fafc;
}

.empty {
    color: var(--muted);
    line-height: 1.7;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 560px) {
    .header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions,
    .header-actions .btn,
    .header-actions .btn-outline {
        width: 100%;
    }

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

    .login-box,
    .hero-profile,
    .card {
        padding: 24px;
    }
}
