/* ══════════════════════════════════════════════════════════════════════════
   WandererVPN — Night Sky Theme
   Palette extracted from brand images (img_buy.jpg, img_profile.jpg)
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg:             #080c18;
    --bg-card:        rgba(15, 25, 60, 0.4);
    --bg-card-hover:  rgba(20, 35, 80, 0.5);
    --border:         rgba(74, 142, 255, 0.12);
    --border-hover:   rgba(74, 142, 255, 0.25);
    --text:           #c8d8f0;
    --text2:          rgba(160, 180, 220, 0.6);
    --text3:          rgba(160, 180, 220, 0.35);
    --accent:         #4a8eff;
    --accent-glow:    #2060cc;
    --accent-soft:    rgba(74, 142, 255, 0.15);
    --bronze:         #b89860;
    --star-white:     #e8f0ff;
    --radius:         12px;
    --radius-lg:      20px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style-position: inside; }

/* ── Header ───────────────────────────────────────────────────────────────── */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(8, 12, 24, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header__logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--star-white);
    text-decoration: none;
}
.header__nav { display: flex; gap: 24px; align-items: center; }
.header__link {
    color: var(--text2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.header__link:hover { color: var(--text); text-decoration: none; }
.header__link--cta {
    color: var(--bg);
    background: var(--accent);
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 600;
}
.header__link--cta:hover {
    background: #5c9bff;
    text-decoration: none;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: calc(100vh - 64px);
    margin-top: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero__glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 142, 255, 0.12) 0%, rgba(74, 142, 255, 0.03) 40%, transparent 70%);
    pointer-events: none;
}
.hero__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 960px;
    padding: 0 24px;
}
.hero__badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 16px;
    border-radius: 24px;
    margin-bottom: 36px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hero__title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 32px;
    background: linear-gradient(180deg, #e0e8ff 0%, #4a8eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__sub {
    font-size: 20px;
    color: var(--text2);
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 1.6;
}
.hero__trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.trust-item {
    font-size: 13px;
    color: var(--text3);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ── Button ───────────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.btn--primary {
    background: var(--accent);
    color: #fff;
}
.btn--primary:hover {
    background: #5c9bff;
    box-shadow: 0 0 24px rgba(74, 142, 255, 0.35);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section {
    padding: 96px 0;
}
.section__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}
.section__title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--star-white);
}
.section__sub {
    text-align: center;
    color: var(--text2);
    margin-bottom: 48px;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */

.card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 142, 255, 0.15), transparent);
}
.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}
.card__icon { font-size: 28px; margin-bottom: 16px; }
.card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--star-white);
    margin-bottom: 8px;
}
.card__text { color: var(--text2); font-size: 14px; line-height: 1.7; }

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* ── Pricing ──────────────────────────────────────────────────────────────── */

.pricing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 48px auto 0;
}
.pricing__card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
}
.pricing__card--popular {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(74, 142, 255, 0.1);
}
.pricing__badge {
    position: absolute;
    top: -12px; right: 24px;
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}
.pricing__period {
    font-size: 14px;
    color: var(--text2);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pricing__price {
    font-size: 48px;
    font-weight: 800;
    color: var(--star-white);
    margin-bottom: 24px;
}
.pricing__currency { font-size: 24px; color: var(--text2); }
.pricing__features {
    list-style: none;
    margin-bottom: 32px;
}
.pricing__features li {
    padding: 8px 0;
    color: var(--text2);
    font-size: 14px;
    border-bottom: 1px solid rgba(74, 142, 255, 0.06);
}
.pricing__features li:last-child { border: none; }

/* ── FAQ ───────────────────────────────────────────────────────────────────── */

.faq { max-width: 700px; margin: 48px auto 0; }
.faq__item {
    border-bottom: 1px solid var(--border);
}
.faq__question {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--star-white);
    font-size: 16px;
    font-weight: 600;
    padding: 20px 0;
    cursor: pointer;
    font-family: inherit;
}
.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq__answer p {
    color: var(--text2);
    font-size: 14px;
    padding-bottom: 20px;
    line-height: 1.7;
}
.faq__item--open .faq__answer { max-height: 200px; }

/* ── Auth ──────────────────────────────────────────────────────────────────── */

.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    margin-top: 64px;
}
.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}
.auth-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--star-white);
    margin-bottom: 32px;
}
.auth-card__footer {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text2);
}
.auth-form__label {
    display: block;
    text-align: left;
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 8px;
    font-weight: 500;
}
.auth-form__input {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: rgba(8, 12, 24, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.2s;
}
.auth-form__input:focus {
    border-color: var(--accent);
}
.auth-form__input::placeholder { color: var(--text3); }
.auth-form__btn { width: 100%; }

/* ── Guides ───────────────────────────────────────────────────────────────── */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.guide-card ol { margin: 16px 0; color: var(--text2); font-size: 14px; }
.guide-card li { padding: 4px 0; }
.guide-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text3);
}
.link { color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}
.footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer__copy { font-size: 13px; color: var(--text3); }
.footer__link { font-size: 13px; color: var(--text2); }

/* ── Dashboard ─────────────────────────────────────────────────────────── */

.dash-status { margin-top: 48px; max-width: 600px; margin-left: auto; margin-right: auto; }
.dash-status__card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}
.dash-status--active { border-color: var(--accent); box-shadow: 0 0 30px rgba(74, 142, 255, 0.08); }
.dash-status--inactive { border-color: rgba(255, 100, 100, 0.2); }
.dash-status__label {
    font-size: 13px;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.dash-status__value {
    font-size: 20px;
    font-weight: 700;
    color: var(--star-white);
}
.dash-status--active .dash-status__value { color: var(--accent); }

.dash-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.dash-actions .card {
    flex: 0 1 240px;
}
.dash-action {
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dash-action:hover {
    transform: translateY(-3px);
    text-decoration: none;
}
.dash-action .card__icon { font-size: 32px; margin-bottom: 12px; }
.dash-action .card__title { font-size: 16px; }

.dash-info {
    margin-top: 32px;
    text-align: center;
    color: var(--text2);
    font-size: 14px;
}
.dash-info__item { margin-bottom: 4px; }
.dash-info__item b { color: var(--text); }

/* ── Devices ──────────────────────────────────────────────────────────── */

.devices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.device-card { text-align: center; }
.device-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.device-card__number {
    font-size: 16px;
    font-weight: 600;
    color: var(--star-white);
}
.device-card__badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(160, 180, 220, 0.1);
    color: var(--text2);
}
.device-card__badge--active {
    background: var(--accent-soft);
    color: var(--accent);
}
.device-card__btn {
    width: 100%;
    text-align: center;
    font-size: 14px;
    padding: 12px;
}
.btn--disabled {
    background: rgba(160, 180, 220, 0.1);
    color: var(--text3);
    cursor: not-allowed;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
}

.devices-help {
    margin-top: 32px;
    text-align: center;
    color: var(--text2);
    font-size: 14px;
}

/* ── Alerts ───────────────────────────────────────────────────────────── */

.alert {
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14px;
    text-align: center;
}
.alert--warning {
    background: rgba(255, 180, 50, 0.1);
    border: 1px solid rgba(255, 180, 50, 0.2);
    color: #ffb432;
}
.alert--error {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.2);
    color: #ff6b6b;
}
.alert a { color: inherit; text-decoration: underline; }

/* ── Payment methods ──────────────────────────────────────────────────── */

.payment-methods { margin-top: 24px; }
.payment-methods form { margin-bottom: 0; }

/* ── Referral ─────────────────────────────────────────────────────────── */

.ref-link-box {
    user-select: all;
    cursor: pointer;
}

/* ── OTP input ────────────────────────────────────────────────────────── */

.auth-form__input--code {
    text-align: center;
    font-size: 28px;
    letter-spacing: 8px;
    font-weight: 700;
}
.auth-card__sub {
    color: var(--text2);
    font-size: 14px;
    margin-bottom: 24px;
}
.auth-card__error {
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 100, 100, 0.1);
    border-radius: var(--radius);
}

/* ══════════════════════════════════════════════════════════════════════════
   Mobile — @media (max-width: 640px)
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .hero__title { font-size: 36px; }
    .hero__sub { font-size: 16px; }
    .hero__trust { gap: 12px; }
    .features { grid-template-columns: 1fr; }
    .pricing { grid-template-columns: 1fr; }
    .guides-grid { grid-template-columns: 1fr; }
    .header__nav { gap: 12px; }
    .hero__cta { width: 100%; text-align: center; }
    .auth-card { padding: 32px 24px; margin: 0 16px; }
    .dash-actions { grid-template-columns: 1fr; }
    .devices-grid { grid-template-columns: 1fr; }
}
