:root {
    --bg: #07111f;
    --bg-soft: #0c1728;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-2: rgba(8, 15, 28, 0.88);
    --text: #e6eefc;
    --muted: #91a4c3;
    --line: rgba(148, 163, 184, 0.18);
    --primary: #22d3ee;
    --primary-2: #3b82f6;
    --gold: #d4af37;
    --gold-deep: #8b7500;
    --danger: #ef4444;
    --success: #22c55e;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(34,211,238,0.14), transparent 24%),
        radial-gradient(circle at top right, rgba(59,130,246,0.14), transparent 22%),
        linear-gradient(180deg, #040913 0%, #07111f 35%, #0b1320 100%);
    color: var(--text);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(34,211,238,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(34,211,238,0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0));
}
a {
    color: #7dd3fc;
    text-decoration: none;
}
a:hover { text-decoration: none; color: #a5f3fc; }

header.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(3, 8, 18, 0.76);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--text);
    padding: 1rem 1.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header.site-header .logo {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
header.site-header .logo::before {
    content: '';
    width: 54px;
    height: 54px;
    display: inline-block;
    background-image: url('../img/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 8px 18px rgba(212,175,55,.24));
    flex: 0 0 54px;
}
header.site-header nav {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
}
header.site-header nav a {
    color: #dbeafe;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: .2s ease;
}
header.site-header nav a:hover {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.18);
}

main.hero {
    min-height: calc(100vh - 88px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
}
.hero-content {
    width: min(100%, 980px);
    padding: 3rem;
    background: linear-gradient(180deg, rgba(11,23,40,0.86), rgba(7,14,28,0.92));
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 28px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero-content::before,
.hero-content::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
}
.hero-content::before {
    width: 220px; height: 220px;
    right: -40px; top: -40px;
    background: radial-gradient(circle, rgba(34,211,238,0.24), transparent 66%);
}
.hero-content::after {
    width: 220px; height: 220px;
    left: -60px; bottom: -90px;
    background: radial-gradient(circle, rgba(212,175,55,0.20), transparent 70%);
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.18);
    color: #a5f3fc;
    font-size: .9rem;
    margin-bottom: 1rem;
}
main.hero h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.02;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}
main.hero p {
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 0 1.5rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.8rem;
}
.hero-stat {
    padding: 1rem 1.1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
}
.hero-stat strong {
    display: block;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: .25rem;
}
.hero-stat span { color: var(--muted); font-size: .93rem; }

.button,
input[type="submit"],
button {
    appearance: none;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: white;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 14px 30px rgba(34,211,238,.18);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    cursor: pointer;
}
.button:hover,
input[type="submit"]:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(34,211,238,.24);
    opacity: 0.98;
    color: #fff;
}
.button-secondary {
    background: linear-gradient(135deg, rgba(212,175,55,.95), rgba(139,117,0,.95));
    box-shadow: 0 14px 30px rgba(212,175,55,.16);
}

footer.site-footer {
    margin-top: 2rem;
    color: var(--muted);
    padding: 1rem 1.5rem 2rem;
    text-align: center;
}

main.content,
main[style],
.container,
.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
}
main.content,
main[style*="padding"],
body > main:not(.hero) {
    padding: 2rem !important;
}

.card,
.panel,
form,
.admin-card {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
form {
    padding: 1.25rem;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15,23,42,0.86), rgba(8,15,28,0.94));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.admin-table th,
.admin-table td {
    border-bottom: 1px solid rgba(148,163,184,.10);
    padding: 0.9rem 1rem;
    text-align: left;
}
.admin-table th {
    background: rgba(255,255,255,0.04);
    color: #dbeafe;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.admin-table td { color: #e2e8f0; }
.admin-table tr:hover td { background: rgba(34,211,238,0.03); }

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.85rem 0.95rem;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    outline: none;
}
textarea { min-height: 130px; }
input::placeholder, textarea::placeholder { color: #7890b3; }
input:focus, textarea:focus, select:focus {
    border-color: rgba(34,211,238,.45);
    box-shadow: 0 0 0 4px rgba(34,211,238,.10);
}
label { display: block; margin-bottom: .45rem; color: #cbd5e1; font-weight: 600; }

.alert {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert-success {
    background: rgba(34,197,94,.12);
    color: #bbf7d0;
    border-color: rgba(34,197,94,.2);
}
.alert-error {
    background: rgba(239,68,68,.12);
    color: #fecaca;
    border-color: rgba(239,68,68,.2);
}

h1,h2,h3,h4 { color: #f8fbff; margin-top: 0; }
p { color: var(--muted); }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.4rem;
}
.metric-card {
    padding: 1.1rem 1.15rem;
    background: linear-gradient(180deg, rgba(15,23,42,.82), rgba(8,15,28,.94));
    border: 1px solid rgba(148,163,184,.12);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.metric-card strong {
    display: block;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: .25rem;
}
.metric-card span {
    color: var(--muted);
    font-size: .92rem;
}
.badge-gold {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(212,175,55,.12);
    border: 1px solid rgba(212,175,55,.26);
    color: #f8e7a3;
    font-size: .88rem;
}

@media (max-width: 880px) {
    header.site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
    .hero-content { padding: 2rem 1.25rem; }
    .hero-grid { grid-template-columns: 1fr; }
}
