@font-face {
    font-family: 'NCFont';
    src: url('font.ttf') format('truetype');
    font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'NCFont', 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(180deg, #0a1a2f 0%, #0d2a4a 40%, #1a4a72 100%);
    color: #e8f4ff;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(120,200,255,.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(80,160,255,.12), transparent 45%);
    pointer-events: none;
    z-index: -1;
}

.snow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 60% 70%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent);
    background-size: 200px 200px;
    animation: snowfall 12s linear infinite;
    opacity: .5;
}

@keyframes snowfall {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to { background-position: 100px 200px, -100px 200px, 150px 200px, -50px 200px; }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: rgba(6,20,38,.75);
    backdrop-filter: blur(14px);
    border-bottom: 2px solid rgba(120,200,255,.35);
    box-shadow: 0 4px 30px rgba(0,150,255,.2);
    position: relative;
    z-index: 5;
}

.brand {
    font-size: 22px;
    font-weight: bold;
    color: #bfe6ff;
    text-shadow: 0 0 12px rgba(120,200,255,.9), 0 0 24px rgba(80,160,255,.6);
    letter-spacing: .5px;
}

nav a {
    color: #bfe6ff;
    margin-inline-start: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: .25s;
    padding: 6px 10px;
    border-radius: 6px;
}
nav a:hover {
    color: #fff;
    background: rgba(120,200,255,.15);
    text-shadow: 0 0 8px #7ec8ff;
}

main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

h1 { font-size: 32px; margin-bottom: 20px; color: #cfeaff; text-shadow: 0 0 14px rgba(120,200,255,.6); }
h2 { color: #a8d8ff; margin: 20px 0 12px; }

.card {
    background: linear-gradient(150deg, rgba(20,50,85,.85), rgba(10,30,55,.9));
    border: 1px solid rgba(120,200,255,.35);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow:
        0 6px 30px rgba(0,80,180,.25),
        inset 0 0 40px rgba(120,200,255,.06);
    backdrop-filter: blur(8px);
}

.hero {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at 50% 50%, rgba(120,200,255,.15), transparent 65%);
    border-radius: 24px;
    margin-bottom: 30px;
}
.hero h1 { font-size: 52px; margin-bottom: 20px; }
.hero p { font-size: 20px; color: #b7dcff; margin-bottom: 30px; }

.btn {
    display: inline-block;
    padding: 12px 26px;
    background: linear-gradient(135deg, #4fa8e8, #1f6bb0);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid rgba(180,220,255,.5);
    box-shadow: 0 6px 20px rgba(0,120,220,.4), inset 0 0 12px rgba(255,255,255,.15);
    transition: .25s;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,150,255,.55), inset 0 0 16px rgba(255,255,255,.25);
}
.btn.small { padding: 6px 12px; font-size: 13px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background: rgba(4,16,30,.7);
    border: 1px solid rgba(120,200,255,.35);
    color: #e8f4ff;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}
textarea { min-height: 100px; resize: vertical; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #7ec8ff;
    box-shadow: 0 0 12px rgba(120,200,255,.6);
}

.center {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.center .card { width: 100%; max-width: 420px; }

table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 10px;
    text-align: start;
    border-bottom: 1px solid rgba(120,200,255,.2);
}
th { color: #a8d8ff; font-weight: bold; }

.code-box {
    background: rgba(120,200,255,.1);
    border: 2px dashed #7ec8ff;
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
    text-align: center;
}
.code-box code {
    display: inline-block;
    padding: 10px 20px;
    background: #041224;
    color: #7ec8ff;
    border-radius: 8px;
    font-size: 22px;
    letter-spacing: 3px;
    margin-top: 10px;
    text-shadow: 0 0 10px #4fa8e8;
}

.cos-item {
    text-align: center;
    padding: 12px;
    background: rgba(20,50,85,.5);
    border-radius: 12px;
    border: 1px solid rgba(120,200,255,.25);
}
.cos-item img { max-width: 100%; height: 80px; object-fit: contain; }

footer {
    text-align: center;
    padding: 30px;
    color: #7ea7c9;
    font-size: 14px;
}

.err { color: #ff8080; }

.post-row {
    padding: 12px 0;
    border-bottom: 1px solid rgba(120,200,255,.15);
}

details summary { cursor: pointer; color: #a8d8ff; margin: 12px 0; }