:root {
    /* Core palette */
    --p-bg: #0e1117;
    --p-surface: #161b22;
    --p-surface-2: #0f141c;
    --p-border: rgba(255, 255, 255, 0.08);
    --p-text: #e5e7eb;
    --p-text-muted: rgba(229, 231, 235, 0.72);

    /* Accent (premium muted gold) */
    --p-accent: #c8a96a;
    --p-accent-2: #b8944a;
    --p-accent-ink: #0e1117;

    /* Focus */
    --p-focus: rgba(200, 169, 106, 0.35);
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    color: var(--p-text);
    background:
        radial-gradient(1200px 600px at 15% 10%, rgba(200, 169, 106, 0.10), transparent 55%),
        radial-gradient(900px 500px at 85% 0%, rgba(56, 189, 248, 0.08), transparent 55%),
        radial-gradient(700px 500px at 70% 85%, rgba(34, 197, 94, 0.06), transparent 60%),
        var(--p-bg);
}

/* Container width tuning */
.container {
    max-width: 980px;
}

/* Brand */
.brand-title {
    font-family: Orbitron, Roboto, system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 1.65rem;
    line-height: 1.1;
    color: var(--p-text);
}

.brand-subtitle {
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--p-text-muted);
}

/* Language + Onion link */
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--p-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
}

.language-switcher a {
    color: var(--p-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.language-switcher a.is-active {
    color: var(--p-text);
}

.language-divider {
    color: rgba(255, 255, 255, 0.18);
}

.link-onion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--p-border);
    color: var(--p-text-muted);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.link-onion:hover {
    color: var(--p-text);
    border-color: rgba(255, 255, 255, 0.14);
}

/* Cards */
.premium-card {
    background: rgba(22, 27, 34, 0.72);
    border: 1px solid var(--p-border);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.premium-panel {
    background: rgba(15, 20, 28, 0.80);
    border: 1px solid var(--p-border);
}

/* Titles */
.premium-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.premium-subtitle {
    color: var(--p-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.section-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.section-content {
    color: var(--p-text-muted);
    line-height: 1.65;
}

/* Bootstrap inputs tuning */
.form-control,
.form-select {
    background-color: rgba(15, 20, 28, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: var(--p-text) !important;
    border-radius: 12px !important;
    padding: 0.85rem 0.95rem !important;
}

.form-control::placeholder {
    color: rgba(229, 231, 235, 0.45) !important;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem var(--p-focus) !important;
    border-color: rgba(200, 169, 106, 0.65) !important;
}

.form-label {
    color: rgba(229, 231, 235, 0.78);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.field-hint {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: rgba(229, 231, 235, 0.55);
}

.field-hint.is-error {
    color: rgba(248, 113, 113, 0.95);
}

/* Buttons */
.btn-premium {
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--p-accent-ink);
    background: linear-gradient(135deg, var(--p-accent), var(--p-accent-2));
    box-shadow: 0 10px 30px rgba(200, 169, 106, 0.18);
}

.btn-premium:hover {
    filter: brightness(1.05);
    box-shadow: 0 12px 34px rgba(200, 169, 106, 0.24);
}

.btn-outline-light {
    border-radius: 12px;
}

/* Alerts */
.premium-alert {
    border-radius: 14px;
    border: 1px solid rgba(248, 113, 113, 0.25);
    background: rgba(127, 29, 29, 0.22);
    color: rgba(254, 202, 202, 0.95);
}

.premium-alert__title {
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 2px;
}

.premium-alert__text {
    color: rgba(254, 202, 202, 0.9);
}

/* Captcha */
.captcha-box {
    flex: 0 0 auto;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--p-border);
    background: rgba(255, 255, 255, 0.02);
}

.captcha-img {
    display: block;
    height: 46px;
    width: auto;
    border-radius: 10px;
}

/* Mono input */
.premium-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.01em;
}

/* Badges */
.premium-badge {
    border: 1px solid rgba(200, 169, 106, 0.35);
    background: rgba(200, 169, 106, 0.10);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    padding: 0.45rem 0.6rem;
}

/* Links inside content blocks */
.section-content a {
    color: rgba(200, 169, 106, 0.95);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 169, 106, 0.25);
}

.section-content a:hover {
    border-bottom-color: rgba(200, 169, 106, 0.5);
}

/* Small screens polish */
@media (max-width: 575.98px) {
    .brand-title {
        font-size: 1.35rem;
    }
    .language-switcher {
        padding: 7px 10px;
    }
}
