:root {
    --bg: #0d1117;
    --surface: #161b22;
    --border: #30363d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #f0a500;
    --accent-hover: #d69300;
    --error: #f85149;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}

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

/* ---- Header ---- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.site-header .logo { font-weight: 700; font-size: 1.2rem; color: var(--text); }

/* ---- Category grid (homepage) ---- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    padding: 20px;
}
.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 14px;
    text-align: center;
    color: var(--text);
}
.category-card h3 { margin: 0 0 4px; font-size: 0.95rem; }
.category-card p { margin: 0; font-size: 0.75rem; color: var(--text-muted); }

/* ---- Auth pages ---- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    width: 100%;
    max-width: 380px;
}
.auth-card h1 { margin: 0 0 4px; font-size: 1.4rem; }
.auth-subtitle { color: var(--text-muted); margin: 0 0 20px; font-size: 0.9rem; }
.auth-card label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--text-muted); }
.auth-card input {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}
.auth-card button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #0d1117;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}
.auth-card button:hover { background: var(--accent-hover); }

.alert { padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; font-size: 0.85rem; }
.alert-error { background: rgba(248,81,73,0.12); color: var(--error); border: 1px solid rgba(248,81,73,0.3); }

/* ---- Site footer ---- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 16px; }
.site-footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.site-footer-contact { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 10px 0; font-size: 0.85rem; }
.site-footer-contact a { color: var(--accent); text-decoration: none; }
.site-footer-contact span { color: var(--text-muted); }
.site-footer-copy { color: var(--text-muted); font-size: 0.75rem; margin: 0; }
