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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1f; color: #e8e8ec; min-height: 100vh; line-height: 1.5;
}

.login-body {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a1a1f 0%, #2a1a2f 100%);
}

.login-box {
    background: #25252c; padding: 40px 36px; border-radius: 12px;
    width: 90%; max-width: 380px; box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.login-box h1 { color: #fff; font-size: 26px; margin-bottom: 4px; }
.login-box .subtitle { color: #888; font-size: 13px; margin-bottom: 24px; }

.login-box input {
    width: 100%; padding: 14px 16px; background: #1a1a1f;
    border: 1px solid #3a3a44; border-radius: 8px; color: #fff;
    font-size: 15px; margin-bottom: 12px;
}

.login-box input:focus { outline: none; border-color: #e91e63; }

.login-box button {
    width: 100%; padding: 14px; background: #e91e63; color: #fff;
    border: none; border-radius: 8px; font-size: 15px; font-weight: 700;
    cursor: pointer; margin-top: 4px;
}

.login-box button:hover { background: #c2185b; }

.error {
    background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
    color: #fca5a5; padding: 10px 14px; border-radius: 6px;
    margin-bottom: 16px; font-size: 13px;
}

.topbar {
    background: #0f0f13; border-bottom: 1px solid #2a2a32;
    padding: 16px 0; position: sticky; top: 0; z-index: 10;
}

.topbar-inner {
    max-width: 900px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}

.topbar h1 { font-size: 20px; color: #fff; font-weight: 600; }
.topbar-actions { display: flex; gap: 12px; align-items: center; }

.user-badge {
    color: #ddd; font-size: 13px; padding: 6px 12px; background: #25252c;
    border-radius: 6px; display: inline-flex; align-items: center; gap: 6px;
}

.role-badge {
    background: #e91e63; color: #fff; font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 3px; text-transform: uppercase;
    letter-spacing: .5px;
}

.logout-link {
    color: #aaa; text-decoration: none; font-size: 13px;
    padding: 6px 12px; border: 1px solid #3a3a44; border-radius: 6px;
}

.logout-link:hover { color: #fff; border-color: #555; }

.main-wrap { max-width: 900px; margin: 0 auto; padding: 24px 20px; }

.status-bar {
    background: #25252c; padding: 12px 16px; border-radius: 8px;
    margin-bottom: 24px; font-size: 13px;
    display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}

.status-label { color: #888; }
.status-time { color: #6eb4ce; font-weight: 600; }

.status-warning {
    background: rgba(251,191,36,.15); color: #fbbf24;
    padding: 4px 10px; border-radius: 4px; font-size: 12px;
}

.events { display: flex; flex-direction: column; gap: 12px; }

.event-card {
    display: block; background: #25252c; border: 1px solid #2e2e36;
    border-radius: 12px; padding: 20px 24px; text-decoration: none;
    color: inherit; position: relative; overflow: hidden;
}

.event-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; background: linear-gradient(180deg, #e91e63, #6eb4ce); opacity: .8;
}

.event-card:hover {
    background: #2a2a32; border-color: #404048; transform: translateY(-1px);
}

.event-name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.event-meta { color: #999; font-size: 13px; margin-bottom: 12px; }
.event-date { color: #6eb4ce; }
.event-location { color: #888; }

.event-tickets {
    display: flex; align-items: baseline; gap: 10px;
    padding-top: 12px; border-top: 1px solid #2e2e36;
}

.tickets-num { font-size: 36px; font-weight: 700; color: #e91e63; line-height: 1; }
.tickets-label { color: #888; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

.empty {
    background: #25252c; padding: 40px 20px; border-radius: 12px;
    text-align: center; color: #888;
}

.footer { text-align: center; padding: 24px 20px; color: #555; font-size: 12px; }

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

.admin-card {
    background: #25252c; padding: 20px; border-radius: 10px; margin-bottom: 16px;
}

.admin-card h3 {
    font-size: 14px; color: #888; text-transform: uppercase;
    letter-spacing: .8px; margin-bottom: 12px;
}

.status-list { list-style: none; }
.status-list li { padding: 6px 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }

.indicator { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #555; }
.indicator.ok { background: #10b981; }
.indicator.warn { background: #fbbf24; }
.indicator.err { background: #ef4444; }

.btn {
    background: #e91e63; color: #fff; border: none;
    padding: 10px 20px; border-radius: 6px; font-size: 13px;
    cursor: pointer; font-weight: 600;
}
.btn:hover { background: #c2185b; }
.btn-secondary { background: #3a3a44; }
.btn-secondary:hover { background: #4a4a54; }

.alert {
    padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13px;
}
.alert-success { background: rgba(16,185,129,.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,.3); }
.alert-error { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }

.log-output {
    background: #0f0f13; padding: 12px; border-radius: 6px;
    font-family: 'Courier New', monospace; font-size: 11px; color: #aaa;
    overflow-x: auto; max-height: 400px; overflow-y: auto; white-space: pre-wrap;
}

.cookie-textarea {
    width: 100%; background: #0f0f13; border: 1px solid #3a3a44;
    border-radius: 6px; padding: 10px;
    font-family: 'Courier New', monospace; font-size: 11px;
    color: #ddd; resize: vertical; min-height: 100px;
}

.cookie-textarea:focus { outline: none; border-color: #e91e63; }

.cookie-input {
    width: 100%; background: #0f0f13; border: 1px solid #3a3a44;
    border-radius: 6px; padding: 12px;
    font-family: 'Courier New', monospace; font-size: 13px;
    color: #ddd;
}

.cookie-input:focus { outline: none; border-color: #e91e63; }

@media (max-width: 640px) {
    .admin-grid { grid-template-columns: 1fr; }
    .event-name { font-size: 16px; }
    .tickets-num { font-size: 30px; }
    .topbar h1 { font-size: 16px; }
    .topbar-actions { flex-wrap: wrap; }
    .user-badge { font-size: 12px; }
}
