:root {
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --text: #e2e8f0;
    --text-sub: #94a3b8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 15% 20%, #1d4ed8 0, #0f172a 35%, #020617 100%);
    overflow-x: hidden;
}
a { color: #93c5fd; text-decoration: none; }
.bg-blur {
    position: fixed; width: 300px; height: 300px; border-radius: 50%;
    filter: blur(90px); z-index: -1; opacity: 0.35;
}
.bg-one { top: -80px; left: -80px; background: #60a5fa; }
.bg-two { right: -100px; bottom: -100px; background: #a855f7; }
.glass {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
}
.top-nav {
    position: sticky; top: 12px; margin: 12px auto;
    width: min(980px, calc(100% - 24px)); border-radius: 16px;
    padding: 12px 16px; display: flex; justify-content: space-between; z-index: 2;
}
.top-nav nav { display: flex; gap: 12px; flex-wrap: wrap; }
.top-nav .logo { font-weight: 700; letter-spacing: 1px; }
.container { width: min(980px, calc(100% - 24px)); margin: 24px auto 50px; }
.hero { border-radius: 20px; padding: 32px 24px; margin-bottom: 18px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(26px, 5vw, 42px); }
.hero p { color: var(--text-sub); line-height: 1.7; }
.tag { display: inline-block; margin: 0 0 8px; color: #bfdbfe; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.card { border-radius: 16px; padding: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.5);
    color: #dbeafe; border-radius: 999px; padding: 6px 10px; font-size: 13px;
}
.btn {
    display: inline-block; margin-top: 8px; border: 0; border-radius: 10px; padding: 10px 16px;
    color: #fff; background: linear-gradient(120deg, #3b82f6, #6366f1); cursor: pointer;
}
.small { color: var(--text-sub); font-size: 13px; }
.auth-wrap, .admin-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card, .admin-card { width: min(760px, 100%); border-radius: 18px; padding: 22px; }
.auth-card form, .admin-form { display: grid; gap: 8px; }
label { margin-top: 8px; color: #cbd5e1; }
input, textarea {
    width: 100%; border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 10px;
    padding: 10px; color: #e2e8f0; background: rgba(15, 23, 42, 0.6);
}
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.link { margin-right: 10px; }
.flash { margin: 10px 0; border-radius: 10px; padding: 9px 10px; }
.flash.success { background: rgba(34, 197, 94, 0.18); border: 1px solid rgba(34, 197, 94, 0.45); }
.flash.error { background: rgba(239, 68, 68, 0.18); border: 1px solid rgba(239, 68, 68, 0.45); }
.reveal { opacity: 0; transform: translateY(16px); transition: all 0.5s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
@media (max-width: 640px) { .top-nav { position: static; } }
