/*
Theme Name: GoFast
Theme URI: https://example.com/
Author: VPN Service
Description: Минималистичная тема для VPN-сервиса GoFast.
Version: 1.0.1
Text Domain: gofast
*/

:root {
    --vpn-bg: #f7f7f8;
    --vpn-text: #111827;
    --vpn-muted: #8a93a3;
    --vpn-card: #ffffff;
    --vpn-border: #e8eaf0;
    --vpn-black: #111827;
    --vpn-primary: #7567ef;
    --vpn-primary-light: #f0eeff;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--vpn-bg);
    color: var(--vpn-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.vpn-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.vpn-header {
    background: rgba(247, 247, 248, .94);
    border-bottom: 1px solid #eceef2;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.vpn-header-inner {
    width: min(100% - 44px, 1040px);
    min-height: 72px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.vpn-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #111827;
    text-decoration: none;

    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.vpn-brand-mark {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #111827;
    color: #fff;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.vpn-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.vpn-header-link {
    color: #8a93a3;
    text-decoration: none;

    font-size: 12px;
    font-weight: 500;

    white-space: nowrap;

    transition:
        color .2s ease,
        transform .2s ease;
}

.vpn-header-link:hover {
    color: #111827;
}

.vpn-header-login {
    color: #8a93a3;
}

.vpn-header-login strong {
    color: #111827;
    font-weight: 700;
}

.vpn-header-login:hover {
    color: #111827;
}

.vpn-header-support {
    color: var(--vpn-primary) !important;
    font-weight: 600;
}

.vpn-header-support:hover {
    color: #5f51d9 !important;
}


/* =========================================================
   MAIN
========================================================= */

.vpn-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.vpn-main-inner {
    width: min(100% - 44px, 1040px);
    margin: 0 auto;

    padding: 0 0 30px;
}

.entry-content {
    margin: 0;
}

.entry-content > *:first-child {
    margin-top: 0;
}


/* =========================================================
   FOOTER
========================================================= */

.vpn-footer {
    border-top: 1px solid #eceef2;
    background: transparent;
}

.vpn-footer-inner {
    width: min(100% - 44px, 1040px);
    min-height: 72px;

    margin: 0 auto;

    display: flex;
    align-items: center;
}

.vpn-footer-content {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.vpn-footer-copy {
    color: #8a93a3;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;
}

.vpn-footer-support {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #8a93a3;
    font-size: 13px;
    line-height: 1.4;
}

.vpn-footer-link {
    display: inline-flex;
    align-items: center;

    color: #6558df;
    text-decoration: none;

    padding: 7px 11px;

    border-radius: 8px;

    background: #f0eeff;

    font-size: 13px;
    font-weight: 700;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.vpn-footer-link:hover {
    background: #e8e4ff;
    color: #5749cf;
    transform: translateY(-1px);
}


/* =========================================================
   СТАРЫЕ СТИЛИ VPN
   Оставляем для совместимости
========================================================= */

.vpn-service-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.vpn-service-hero {
    text-align: center;
    padding: 20px 0 10px;
}

.vpn-service-logo {
    width: 54px;
    height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: var(--vpn-black);
    color: #fff;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
}

.vpn-service-hero h1,
.vpn-service-dashboard-head h1 {
    margin: 20px 0 10px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.05;
    letter-spacing: -1.8px;
}

.vpn-service-hero p {
    max-width: 470px;
    margin: 0 auto;

    color: var(--vpn-muted);
    line-height: 1.7;
}

.vpn-service-plans {
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.vpn-service-plan {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;

    padding: 18px;

    background: var(--vpn-card);
    border: 1px solid var(--vpn-border);
    border-radius: 18px;
}

.vpn-service-plan-name {
    font-weight: 650;
    font-size: 17px;
}

.vpn-service-plan-price {
    font-size: 18px;
    font-weight: 750;
}

.vpn-service-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 18px;

    border: 0;
    border-radius: 12px;

    background: var(--vpn-black);
    color: #fff !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 650;

    cursor: pointer;

    transition:
        transform .15s ease,
        opacity .15s ease,
        background .15s ease;
}

.vpn-service-button:hover {
    background: #292929;
    color: #fff !important;
    transform: translateY(-1px);
}

.vpn-service-button-light {
    background: #ececee;
    color: var(--vpn-text) !important;
}

.vpn-service-button-light:hover {
    background: #e2e2e4;
    color: var(--vpn-text) !important;
}

.vpn-service-dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.vpn-service-dashboard-head h1 {
    margin-top: 12px;
}

.vpn-service-logout,
.vpn-service-logout-bottom {
    color: #888;
    text-decoration: none;
    font-size: 14px;
}

.vpn-service-card {
    padding: 28px;

    background: var(--vpn-card);
    border: 1px solid var(--vpn-border);
    border-radius: 22px;
}

.vpn-service-status {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #555;
    font-size: 14px;
}

.vpn-service-dot {
    width: 9px;
    height: 9px;

    display: block;
    border-radius: 50%;
}

.vpn-service-dot-on {
    background: #22c55e;
}

.vpn-service-dot-off {
    background: #ef4444;
}

.vpn-service-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    margin-top: 28px;
}

.vpn-service-stats span {
    display: block;

    margin-bottom: 8px;

    color: #888;
    font-size: 13px;
}

.vpn-service-stats strong {
    font-size: 25px;
    letter-spacing: -.4px;
}

.vpn-service-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    margin-top: 28px;
}

.vpn-service-access {
    margin-top: 22px;
    padding-top: 20px;

    border-top: 1px solid #eee;
}

.vpn-service-access label {
    display: block;

    margin-bottom: 8px;

    color: #888;
    font-size: 13px;
}

.vpn-service-access input {
    width: 100%;
    min-height: 44px;

    padding: 0 12px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: #fff;
    color: #444;

    font-size: 12px;
}

.vpn-service-renew {
    margin-top: 42px;
}

.vpn-service-renew-head h2 {
    margin: 0;

    font-size: 24px;
    letter-spacing: -.5px;
}

.vpn-service-renew-head p {
    margin: 6px 0 0;
    color: #888;
}

.vpn-service-logout-bottom {
    display: inline-block;
    margin-top: 20px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .vpn-header-inner,
    .vpn-main-inner,
    .vpn-footer-inner {
        width: min(100% - 28px, 1040px);
    }

    .vpn-header-inner {
        min-height: 62px;
    }

    .vpn-main-inner {
        padding-bottom: 20px;
    }

    .vpn-header-actions {
        gap: 12px;
    }

    .vpn-header-link {
        font-size: 10px;
    }

    .vpn-footer-inner {
        min-height: 82px;
    }

    .vpn-footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .vpn-footer-copy {
        font-size: 13px;
    }

    .vpn-footer-support {
        justify-content: center;
        flex-wrap: wrap;
        font-size: 13px;
    }

    .vpn-footer-link {
        font-size: 13px;
    }

    .vpn-service-plan {
        grid-template-columns: 1fr auto;
    }

    .vpn-service-plan .vpn-service-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .vpn-service-plan-price {
        text-align: right;
    }

    .vpn-service-dashboard-head {
        align-items: flex-start;
    }

    .vpn-service-stats,
    .vpn-service-actions {
        grid-template-columns: 1fr;
    }

    .vpn-service-card {
        padding: 22px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .vpn-header-inner {
        gap: 10px;
    }

    .vpn-brand {
        gap: 8px;
        font-size: 15px;
    }

    .vpn-brand-mark {
        width: 29px;
        height: 29px;
        font-size: 10px;
    }

    .vpn-header-actions {
        gap: 9px;
    }

    .vpn-header-link {
        font-size: 9px;
    }

    .vpn-footer-support {
        gap: 6px;
    }

}

/* =========================================================
   ФИКС БЕЙДЖА "ПОПУЛЯРНЫЙ" НА ГЛАВНОЙ И В ЛИЧНОМ КАБИНЕТЕ
   ========================================================= */

/* --- 1. ГЛАВНАЯ СТРАНИЦА (gofast-home-plan) --- */
.gofast-home-plan {
    position: relative;
    padding: 27px 100px 27px 27px !important;
}

.gofast-plan-badge {
    position: absolute;
    right: 18px;
    top: 18px;
    padding: 5px 10px;
    border-radius: 7px;
    background: #f0eeff;
    color: #6558df;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 2;
    line-height: 1;
}

.gofast-home-plan .gofast-plan-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #667085 !important;
    margin-bottom: 16px !important;
    padding-right: 10px;
}

/* --- 2. ЛИЧНЫЙ КАБИНЕТ (gofast-dashboard-plan) --- */
.gofast-dashboard-plan {
    position: relative;
    padding: 25px 100px 25px 25px !important;
}

.gofast-dashboard-plan-badge {
    position: absolute;
    right: 18px;
    top: 17px;
    padding: 5px 10px;
    border-radius: 7px;
    background: #f0eeff;
    color: #6558df;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 2;
    line-height: 1;
}

.gofast-dashboard-plan-name {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-right: 10px;
}

/* --- 3. МОБИЛЬНАЯ ВЕРСИЯ (до 700px) --- */
@media (max-width: 700px) {

    /* Главная */
    .gofast-home-plan {
        padding: 18px 18px 18px 18px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        min-height: 180px !important;
    }

    .gofast-plan-badge {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        align-self: flex-start !important;
        margin-bottom: 4px !important;
        font-size: 7px !important;
        padding: 3px 10px !important;
        order: -1 !important;
        flex-shrink: 0 !important;
    }

    .gofast-home-plan .gofast-plan-name {
        font-size: 13px !important;
        margin-bottom: 2px !important;
        padding-right: 0 !important;
    }

    .gofast-home-price {
        font-size: 28px !important;
    }

    .gofast-home-buy {
        font-size: 11px !important;
        min-height: 40px !important;
        margin-top: 6px !important;
        width: 100% !important;
        padding: 0 12px !important;
    }

    /* Личный кабинет */
    .gofast-dashboard-plan {
        padding: 16px 16px 16px 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        min-height: 170px !important;
    }

    .gofast-dashboard-plan-badge {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        align-self: flex-start !important;
        margin-bottom: 4px !important;
        font-size: 7px !important;
        padding: 3px 10px !important;
        order: -1 !important;
        flex-shrink: 0 !important;
    }

    .gofast-dashboard-plan-name {
        font-size: 13px !important;
        margin-bottom: 2px !important;
        padding-right: 0 !important;
    }

    .gofast-dashboard-plan-price {
        font-size: 28px !important;
    }

    .gofast-dashboard-plan-button {
        font-size: 11px !important;
        min-height: 40px !important;
        margin-top: 6px !important;
        width: 100% !important;
        padding: 0 12px !important;
    }
}

/* --- 4. ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 420px) --- */
@media (max-width: 420px) {

    .gofast-home-plan {
        padding: 14px !important;
        min-height: 150px !important;
    }

    .gofast-dashboard-plan {
        padding: 14px !important;
        min-height: 150px !important;
    }

    .gofast-plan-badge,
    .gofast-dashboard-plan-badge {
        font-size: 6px !important;
        padding: 2px 8px !important;
    }

    .gofast-home-price,
    .gofast-dashboard-plan-price {
        font-size: 24px !important;
    }

    .gofast-home-plan .gofast-plan-name,
    .gofast-dashboard-plan-name {
        font-size: 12px !important;
    }

    .gofast-home-buy,
    .gofast-dashboard-plan-button {
        font-size: 10px !important;
        min-height: 34px !important;
    }
}