* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f5f5f5;
    color: #111;

    line-height: 1.5;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 5%;

    background: #ffffff;

    border-bottom: 1px solid #eaeaea;
}

header h1 {
    margin: 0;

    font-size: 24px;
    line-height: 1.2;

    white-space: nowrap;
}


nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 18px;

    flex-wrap: wrap;
}

nav a {
    color: #111;

    text-decoration: none;

    font-size: 15px;
}

nav a:hover {
    text-decoration: underline;
}


/* =========================================================
   MAIN
   ========================================================= */

main {
    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px 50px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    text-align: center;

    padding: 55px 10px 35px;
}

.hero h2 {
    max-width: 800px;

    margin: 0 auto 14px;

    font-size: clamp(
        30px,
        6vw,
        46px
    );

    line-height: 1.1;
}

.hero p {
    max-width: 650px;

    margin: 0 auto;

    font-size: 17px;

    color: #555;
}


/* =========================================================
   PLANS
   ========================================================= */

.plans {
    display: grid;

    grid-template-columns:
        1fr;

    gap: 18px;

    padding: 20px 0 35px;
}

.plan {
    width: 100%;

    padding: 26px 22px;

    background: #ffffff;

    border-radius: 16px;

    text-align: center;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.07);
}

.plan h3 {
    margin: 0;

    font-size: 24px;
}

.plan p {
    margin: 8px 0;

    color: #555;

    font-size: 15px;
}

.price {
    margin: 18px 0;

    font-size: 34px;

    font-weight: 700;

    line-height: 1.1;
}


/* =========================================================
   GENERIC CARD
   ========================================================= */

.content-card {
    width: 100%;

    max-width: 760px;

    margin:
        30px auto 0;

    padding: 26px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.07);
}

.content-card h2,
.content-card h3 {
    margin-top: 0;
}


/* =========================================================
   BUTTONS
   ========================================================= */

button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 50px;

    padding: 14px 18px;

    border: 0;

    border-radius: 10px;

    background: #111;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        opacity 0.15s ease,
        transform 0.1s ease;
}

button:hover {
    opacity: 0.85;
}

button:active {
    transform: scale(0.99);
}

button:disabled {
    opacity: 0.55;

    cursor: not-allowed;
}


/* =========================================================
   PAYMENT RESULT
   ========================================================= */

.result-card {
    margin-top: 30px;
}

.result-card hr,
.content-card hr {
    margin:
        30px 0;

    border: 0;

    border-top:
        1px solid #e5e5e5;
}


/* =========================================================
   SUCCESS / INFO BLOCKS
   ========================================================= */

.success-box,
.instruction-box,
.technical-box,
.account-status-card {
    margin-top: 20px;

    padding: 20px;

    border-radius: 14px;

    background: #f7f7f7;

    border:
        1px solid #e3e3e3;
}

.success-box h3,
.instruction-box h3,
.technical-box h3 {
    margin-bottom: 10px;
}


/* =========================================================
   ACCOUNT
   ========================================================= */

.account-header {
    margin-bottom: 20px;
}

.account-header h2 {
    margin-bottom: 8px;
}

.account-status-card {
    background: #ffffff;

    border:
        1px solid #dddddd;
}

.account-status-card p {
    margin: 8px 0;
}


/* =========================================================
   COPY INPUTS
   ========================================================= */

.copy-input {
    display: block;

    width: 100%;

    min-height: 48px;

    margin-top: 12px;

    padding: 12px;

    border:
        1px solid #d7d7d7;

    border-radius: 10px;

    background: #ffffff;

    color: #222;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 13px;
}


/* =========================================================
   COPY BUTTON
   ========================================================= */

.secondary-button {
    margin-top: 10px;

    background: #333;
}


/* =========================================================
   LINK BUTTON
   ========================================================= */

.button-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 50px;

    margin-top: 10px;

    padding: 14px 18px;

    border-radius: 10px;

    background: #111;

    color: #ffffff;

    text-decoration: none;

    font-size: 16px;
    font-weight: 600;
}

.button-link:hover {
    opacity: 0.85;
}


/* =========================================================
   INSTRUCTIONS
   ========================================================= */

.instruction-box ol {
    margin:
        12px 0 0;

    padding-left: 24px;
}

.instruction-box li {
    margin:
        9px 0;
}


/* =========================================================
   VLESS
   ========================================================= */

#vlessLink,
#accountVlessLink {
    display: block;

    width: 100%;

    min-height: 130px;

    margin-top: 10px;

    padding: 12px;

    border:
        1px solid #d7d7d7;

    border-radius: 10px;

    background: #ffffff;

    color: #222;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 12px;

    line-height: 1.4;

    resize: vertical;
}


/* =========================================================
   RENEWAL
   ========================================================= */

.renewal-section {
    margin-top: 20px;
}

.renew-buttons {
    display: grid;

    grid-template-columns:
        1fr;

    gap: 10px;

    margin-top: 15px;
}

.message {
    padding: 12px;

    border-radius: 10px;

    background: #f0f0f0;
}


/* =========================================================
   ERROR
   ========================================================= */

.error-box {
    padding: 10px 0;
}

.error-box h2 {
    margin-bottom: 10px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 25px 20px;

    text-align: center;

    background: #ffffff;

    border-top:
        1px solid #eaeaea;

    color: #666;

    font-size: 14px;
}

footer p {
    margin: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (min-width: 600px) {

    header {
        padding-left: 7%;
        padding-right: 7%;
    }

    main {
        padding-left: 28px;
        padding-right: 28px;
    }

    .plans {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 22px;
    }

    .plan {
        padding:
            30px 24px;
    }

    .renew-buttons {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* =========================================================
   DESKTOP
   ========================================================= */

@media screen and (min-width: 950px) {

    header {
        padding-left: 8%;
        padding-right: 8%;
    }

    .plans {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );

        gap: 22px;
    }

    .plan {
        min-width: 0;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media screen and (max-width: 420px) {

    header {
        flex-direction: column;

        align-items: center;

        padding: 16px;
    }

    header h1 {
        font-size: 22px;
    }

    nav {
        justify-content: center;

        width: 100%;

        gap: 14px;
    }

    nav a {
        font-size: 14px;
    }

    main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero {
        padding:
            38px 4px 22px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .plan {
        padding:
            24px 18px;
    }

    .price {
        font-size: 32px;
    }

    .content-card {
        padding:
            20px 16px;
    }

    .success-box,
    .instruction-box,
    .technical-box,
    .account-status-card {
        padding: 16px;
    }

}
