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

:root {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --surface-hover: #222;
    --border: #333;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #c9a227;
    --accent-hover: #d4b23a;
    --error: #d44;
    --success: #4a4;
    --radius: 6px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 2rem 1.5rem;
}

.container--wide {
    max-width: 600px;
}

h1 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--accent);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
}

textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

button {
    width: 100%;
    padding: 0.7rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: var(--accent-hover);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.links {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.links a + a {
    margin-left: 1rem;
}

.nav {
    width: 100%;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.nav-brand {
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-user {
    color: var(--text-muted);
}

#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 360px;
}

.toast {
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    animation: slidein 0.25s ease-out;
    word-break: break-word;
}

.toast--error {
    background: var(--error);
    color: #fff;
}

.toast--success {
    background: var(--success);
    color: #fff;
}

@keyframes slidein {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero {
    text-align: center;
    padding: 3rem 0 1rem;
}

.hero p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.btn-group {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.btn-group button,
.btn-group a {
    flex: 1;
    text-align: center;
    padding: 0.7rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #000;
    text-decoration: none;
}

.status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge--pending { background: #553; color: #cc3; }
.status-badge--answered { background: #353; color: #4c4; }
.status-badge--rejected { background: #533; color: #c44; }
