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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 640px;
    width: 100%;
    padding: 3rem 1.5rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #b0b0b0;
}

a {
    color: #6ea8fe;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.tagline {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 2rem;
}

.section {
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e0e0e0;
    background: #1a1a1a;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.btn:hover {
    background: #252525;
    text-decoration: none;
}

.btn-primary {
    background: #1a3a5c;
    border-color: #2a5a8c;
    color: #fff;
}

.btn-primary:hover {
    background: #244b74;
}

.btn-danger {
    border-color: #5c1a1a;
    color: #ff6b6b;
}

.btn-danger:hover {
    background: #2a1010;
}

.note {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Admin page */
.admin-section {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.mode-toggle {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mode-label {
    font-size: 0.9rem;
    color: #888;
}

.mode-label.active {
    color: #6ea8fe;
    font-weight: 600;
}

.user-list {
    list-style: none;
}

.user-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #1a1a1a;
}

.user-list li:last-child {
    border-bottom: none;
}

.user-handle {
    font-weight: 500;
}

.user-role {
    font-size: 0.8rem;
    color: #888;
    margin-left: 0.5rem;
}

.add-user-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.add-user-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.add-user-form input::placeholder {
    color: #555;
}

.status-msg {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    min-height: 1.2em;
}

.status-msg.error { color: #ff6b6b; }
.status-msg.success { color: #6bff8b; }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    margin-bottom: 0;
}
