:root {
    --bg: #0a0d0f;
    --bg-soft: #0e1416;
    --panel: #101a19;
    --panel-border: #1c2b29;
    --text: #dff8f8;
    --text-dim: #7fa3a2;
    --accent: #4ec0c1;
    --accent-bright: #30f5ef;
    --accent-gold: #e8b86d;
    --danger: #ff6b6b;
    --radius: 14px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 20% -10%, #12201f 0%, var(--bg) 55%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.accent {
    color: var(--accent-bright);
}

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-glow {
    position: absolute;
    width: 620px;
    height: 620px;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(78, 192, 193, 0.25) 0%, rgba(78, 192, 193, 0) 70%);
    pointer-events: none;
}

.auth-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 1;
}

.auth-card {
    width: min(360px, 90vw);
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 36px 32px 30px;
    box-shadow: var(--shadow);
}

.auth-sub {
    margin: 6px 0 24px;
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
}

.auth-error {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: var(--danger);
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 18px;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-footnote {
    font-size: 12px;
    color: var(--text-dim);
    opacity: 0.6;
    letter-spacing: 0.02em;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(78, 192, 193, 0.5));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.field-input {
    background: var(--bg);
    border: 1px solid var(--panel-border);
    border-radius: 9px;
    padding: 11px 13px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(78, 192, 193, 0.15);
}

.btn-primary {
    margin-top: 6px;
    padding: 12px 16px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
    color: #04211f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 18px rgba(48, 245, 239, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(48, 245, 239, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 1px solid var(--panel-border);
    position: sticky;
    top: 0;
    background: rgba(10, 13, 15, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.logout-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    border: 1px solid var(--panel-border);
    padding: 7px 14px;
    border-radius: 8px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.logout-link:hover {
    color: var(--accent-bright);
    border-color: var(--accent);
}

.content {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.panel-title {
    font-size: 15px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
}

.panel {
    margin-bottom: 36px;
}

.cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.card {
    flex: 1;
    min-width: 180px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 20px 22px;
}

.card-skeleton {
    min-height: 84px;
    background: linear-gradient(90deg, var(--panel) 25%, var(--bg-soft) 37%, var(--panel) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.card-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--accent-bright);
    line-height: 1.2;
}

.card-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.event-row {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 14px 16px;
}

.event-row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.event-name {
    font-size: 14px;
    font-weight: 600;
}

.event-meta {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
}

.bar-track {
    height: 6px;
    border-radius: 4px;
    background: var(--bg);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 100%);
    transition: width 0.4s ease;
}

.table-wrap {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 10px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--panel-border);
}

th {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    background: var(--bg-soft);
}

tr:last-child td {
    border-bottom: none;
}

.empty {
    color: var(--text-dim);
    text-align: center;
    padding: 24px;
    font-size: 13px;
}

@media (max-width: 560px) {
    .topbar {
        padding: 16px 18px;
    }

    .content {
        padding: 24px 16px 48px;
    }
}