﻿:root {
    --bg: #232f36;
    --panel: rgba(255, 255, 255, 0.03);
    --gold: #b4760e;
    --gold-soft: #c98718;
    --text: #f5f1e8;
    --muted: rgba(245, 241, 232, 0.72);
    --line: rgba(180, 118, 14, 0.22);
    --white-line: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

body {
    overflow-x: hidden;
}

.payment-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
}

.payment-card {
    width: 100%;
    max-width: 760px;
    background: var(--panel);
    border: 1px solid var(--white-line);
    border-radius: 18px;
    padding: 34px 30px;
    box-shadow: var(--shadow);
}

.payment-kicker {
    color: var(--gold-soft);
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}

.payment-title {
    font-size: 34px;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 12px;
}

.payment-subtitle {
    max-width: 620px;
    margin: 0 auto 28px;
    text-align: center;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-label {
    font-size: 13px;
    color: var(--gold-soft);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.plan-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.plan-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 20px;
    border: 1px solid var(--white-line);
    border-radius: 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: 0.25s ease;
}

    .plan-option.active {
        border-color: rgba(180, 118, 14, 0.45);
        background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(180,118,14,0.08));
    }

    .plan-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.plan-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-soft);
}

.payment-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid var(--white-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 15px;
    outline: none;
}

    .payment-input:focus {
        border-color: rgba(180, 118, 14, 0.45);
    }

    .payment-input::placeholder {
        color: rgba(245, 241, 232, 0.44);
    }

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

    .two-col > div {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

.payment-summary {
    border: 1px solid var(--white-line);
    border-radius: 16px;
    padding: 18px 18px;
    background: rgba(255, 255, 255, 0.02);
}

.payment-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    color: var(--muted);
    font-size: 15px;
}

    .payment-summary-row + .payment-summary-row {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .payment-summary-row strong {
        color: var(--text);
        font-size: 16px;
    }

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.payment-btn {
    width: 100%;
    max-width: 360px;
    min-height: 52px;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #111;
    cursor: pointer;
    transition: 0.25s ease;
}

    .payment-btn:hover {
        background: var(--gold-soft);
        border-color: var(--gold-soft);
        transform: translateY(-2px);
    }

.payment-btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.10);
}

    .payment-btn-outline:hover {
        color: var(--gold-soft);
        border-color: var(--gold-soft);
        background: transparent;
    }

@media (max-width: 768px) {
    .payment-card {
        padding: 26px 18px;
    }

    .payment-title {
        font-size: 28px;
    }

    .payment-subtitle {
        font-size: 15px;
    }

    .plan-options,
    .two-col {
        grid-template-columns: 1fr;
    }

    .plan-name {
        font-size: 18px;
    }

    .plan-price {
        font-size: 24px;
    }
}


.payment-warning-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.payment-warning-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.payment-warning-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    padding: 24px 22px;
    border-radius: 22px;
    background: rgba(20,20,24,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    color: #fff;
    text-align: left;
}

    .payment-warning-dialog strong {
        display: block;
        margin-bottom: 12px;
        font-size: 20px;
        font-weight: 700;
    }

    .payment-warning-dialog p {
        margin: 0;
        color: rgba(255,255,255,0.92);
        line-height: 1.7;
        font-size: 15px;
    }

.payment-warning-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.payment-warning-list {
    margin: 14px 0 14px 0;
    padding-left: 20px;
    color: rgba(255,255,255,0.92);
}

    .payment-warning-list li {
        margin-bottom: 8px;
        line-height: 1.4;
        font-size: 15px;
    }

        .payment-warning-list li:last-child {
            margin-bottom: 0;
        }

@media print {
    .lang-switcher,
    .payment-actions {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .payment-page,
    .payment-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: #ffffff !important;
    }

    .payment-title,
    .payment-kicker,
    .payment-subtitle,
    .payment-summary,
    .payment-summary-row,
    .payment-summary-row span,
    .payment-summary-row strong {
        color: #000000 !important;
    }
}

.payment-captcha-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 0;
}

.hermes-captcha {
    width: 100%;
    max-width: 380px;
    height: 78px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hermes-captcha-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
}

.hermes-captcha-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    flex: 1;
    min-width: 0;
    height: 100%;
}

    .hermes-captcha-check input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.hermes-captcha-custom-box {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-block;
    position: relative;
    transition: 0.2s ease;
}

.hermes-captcha-check input[type="checkbox"]:checked + .hermes-captcha-custom-box::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 3px;
    width: 7px;
    height: 14px;
    border: solid #7CFFB2;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.hermes-captcha-text {
    font-size: 14px;
    color: #f5f1e8;
    line-height: 1.2;
    white-space: nowrap;
}

.hermes-captcha-brand {
    width: 112px;
    min-width: 112px;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: left;
}

.hermes-captcha-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.hermes-captcha-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.05;
}

.hermes-captcha-brand-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(245, 241, 232, 0.82);
    line-height: 1.05;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.1px;
}

.hermes-captcha-brand-subtitle {
    font-size: 9px;
    color: rgba(245, 241, 232, 0.52);
    line-height: 1.1;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 3px;
}

.hermes-captcha-status {
    display: none;
}

.hermes-captcha.verified {
    border-color: rgba(124, 255, 178, 0.35);
    background: rgba(124, 255, 178, 0.08);
}

@media (max-width: 640px) {
    .payment-captcha-wrap {
        margin-top: 6px;
    }

    .hermes-captcha {
        max-width: 100%;
        height: 78px;
    }
}

