:root {
    --pine-950: #07130e;
    --pine-900: #0b2019;
    --pine-800: #0e3b2e;
    --pine-700: #14513c;
    --pine-600: #1c6b4f;
    --fuchsia: #e5197b;
    --fuchsia-300: #ff7fb8;
    --text-primary: #f3fbf7;
    --text-muted: #8fb8a8;
    --surface: #0e2a20;
    --font: "Manrope", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--pine-950); }

body {
    margin: 0;
    font-family: var(--font);
    background: radial-gradient(circle at 10% 10%, #103929 0%, var(--pine-950) 45%, #030906 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; }

.wrap {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

/* Topbar */
.topbar {
    position: relative;
    z-index: 20;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    background: rgba(7, 19, 14, 0.55);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .02em;
    font-size: 1.15rem;
    white-space: nowrap;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--fuchsia), #ff2f95);
    box-shadow: 0 6px 18px rgba(229, 25, 123, 0.35);
}

.brand-power { color: #fff; }
.brand-host { color: var(--fuchsia-300); }

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    text-decoration: none;
    color: #c3f9e1;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 10px;
    border-radius: 10px;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    background: rgba(28, 107, 79, 0.35);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--fuchsia), #ff2f95);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    border-radius: 14px;
    padding: 12px 20px;
    box-shadow: 0 10px 30px rgba(229, 25, 123, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
    font: inherit;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(229, 25, 123, 0.34);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #c3f9e1 !important;
    border: 1px solid rgba(195, 249, 225, 0.35);
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    padding: 9px 14px;
    cursor: pointer;
    font: inherit;
}

.btn-ghost:hover {
    border-color: #fff;
    color: #fff !important;
}

.btn-tv {
    background: transparent;
    border: 1px solid rgba(195, 249, 225, 0.4);
    color: #c3f9e1 !important;
    box-shadow: none;
}

.btn-tv:hover {
    border-color: #fff;
    color: #fff !important;
}

/* Lang */
.lang-switch summary { list-style: none; cursor: pointer; line-height: 1; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch .lang-menu {
    display: none;
    position: fixed;
    background: #0b2019;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    min-width: 160px;
    padding: 6px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.lang-switch[open] .lang-menu { display: block; }
.lang-switch .lang-menu a {
    display: block;
    color: #d6f6e9;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 7px;
    font-weight: 600;
}
.lang-switch .lang-menu a.active,
.lang-switch .lang-menu a:hover { background: #14513c; color: #fff; }

.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(195, 249, 225, 0.35);
    border-radius: 999px;
    padding: 7px 12px;
    color: #c3f9e1;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    padding: 72px 0 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    align-items: center;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4.6vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.lead {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: clamp(16px, 2.2vw, 19px);
    max-width: 640px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.panel {
    background: linear-gradient(180deg, rgba(28, 107, 79, 0.24), rgba(14, 42, 32, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px;
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--fuchsia-300);
}

.panel p {
    margin: 0 0 10px;
    color: var(--text-muted);
}

.panel p:last-child { margin-bottom: 0; }

/* Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 48px 0;
}

.section-title {
    margin: 0 0 22px;
    font-size: clamp(22px, 3vw, 30px);
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card {
    background: rgba(11, 32, 25, 0.86);
    border: 1px solid rgba(143, 184, 168, 0.22);
    border-radius: 16px;
    padding: 18px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #b6f5dc;
}

.card p {
    margin: 0;
    color: var(--text-muted);
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.plan {
    background: rgba(11, 32, 25, 0.9);
    border: 1px solid rgba(143, 184, 168, 0.22);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan.featured {
    border-color: rgba(229, 25, 123, 0.55);
    box-shadow: 0 12px 40px rgba(229, 25, 123, 0.12);
}

.plan h3 {
    margin: 0;
    color: #b6f5dc;
}

.plan .price {
    font-size: 1.8rem;
    font-weight: 800;
}

.plan .price span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.plan p { margin: 0; color: var(--text-muted); flex: 1; }

.page-hero {
    position: relative;
    z-index: 1;
    padding: 56px 0 28px;
}

.list-check {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.list-check li {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(11, 32, 25, 0.75);
    border: 1px solid rgba(143, 184, 168, 0.18);
    color: var(--text-muted);
}

.list-check li strong {
    color: #b6f5dc;
    font-weight: 700;
}

/* Auth */
.auth-wrap {
    position: relative;
    z-index: 1;
    width: min(440px, 92vw);
    margin: 48px auto 64px;
}

.auth-card {
    background: rgba(11, 32, 25, 0.92);
    border: 1px solid rgba(143, 184, 168, 0.22);
    border-radius: 20px;
    padding: 28px;
}

.auth-card h1 {
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #b6f5dc;
    font-weight: 600;
    font-size: 0.92rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.password-field input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(195, 249, 225, 0.25);
    background: rgba(7, 19, 14, 0.8);
    color: #fff;
    padding: 12px 14px;
    font: inherit;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(182, 245, 220, 0.7);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}

.password-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.password-toggle[aria-pressed="true"] {
    color: var(--fuchsia-300);
}

.password-toggle .eye-closed[hidden],
.password-toggle .eye-open[hidden] {
    display: none !important;
}

.form-group input:focus,
.password-field input:focus {
    outline: none;
    border-color: var(--fuchsia-300);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.form-error {
    color: #ff8fb8;
    font-size: 0.9rem;
    margin: 0 0 10px;
}

.captcha-box {
    margin-bottom: 18px;
}

.captcha-label {
    display: block;
    margin-bottom: 10px;
    color: #b6f5dc;
    font-weight: 600;
    font-size: 0.92rem;
}

.captcha-box .g-recaptcha,
.captcha-box .cf-turnstile {
    transform-origin: left center;
}

@media (max-width: 420px) {
    .captcha-box .g-recaptcha {
        transform: scale(0.92);
    }
}

.auth-alt {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-alt a { color: var(--fuchsia-300); }

/* Footer */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0 36px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
}

.footer-grid h4 {
    margin: 0 0 10px;
    color: #b6f5dc;
}

.footer-grid a {
    display: block;
    color: #c3f9e1;
    text-decoration: none;
    margin-bottom: 6px;
}

.footer-grid a:hover { color: #fff; text-decoration: underline; }

/* Background animation */
.bg-runes {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: .9;
}

body.has-bg-runes::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(1200px 700px at 50% 0%, transparent, rgba(0,0,0,.28) 70%);
    z-index: 0;
    pointer-events: none;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(195, 249, 225, 0.35);
    color: #c3f9e1;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 980px) {
    .hero-grid,
    .plans,
    .footer-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }

    .menu-toggle { display: inline-flex; }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 12px;
    }

    .topbar-inner { flex-wrap: wrap; }

    .topbar.open .nav { display: flex; }

    .nav-actions {
        margin-left: 0;
        flex-wrap: wrap;
    }
}
