* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 14px 18px;

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

.logo {
    color: #111827;
    text-decoration: none;
    font-size: 23px;
    font-weight: 900;
    white-space: nowrap;
}

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

.menu a {
    padding: 9px 10px;

    color: #374151;
    text-decoration: none;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 800;
}

.menu a:hover,
.menu a.active {
    color: #1d4ed8;
    background: #eff6ff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 38px 18px 55px;
}

.hero {
    text-align: center;
}

.heart {
    font-size: 44px;
}

.hero h1 {
    margin: 10px 0 12px;

    color: #111827;

    font-size: 32px;
}

.hero p {
    margin: 5px auto;

    max-width: 750px;

    color: #64748b;

    line-height: 1.7;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 18px;

    margin-top: 28px;
}

.payment-card {
    padding: 23px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);

    text-align: center;
}

.payment-card h2 {
    margin: 0;

    color: #111827;

    font-size: 21px;
}

.subtitle {
    margin: 6px 0 16px;

    color: #64748b;

    font-size: 13px;
}

.qr-box {
    width: 270px;
    height: 270px;

    max-width: 100%;

    margin: 0 auto 18px;

    padding: 8px;

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

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.qr-box img {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;
}

.field-label {
    margin-bottom: 7px;

    color: #64748b;

    font-size: 11px;
    font-weight: 800;
}

.copy-button {
    width: 100%;
    min-height: 48px;

    padding: 10px 12px;

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

    background: #f8fafc;

    color: #111827;

    cursor: pointer;

    font-size: 17px;
    font-weight: 900;
}

.copy-button:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.copy-button.wallet {
    font-family: Consolas, Monaco, monospace;

    font-size: 12px;

    word-break: break-all;
}

.copy-button.copied {
    color: #166534;
    background: #ecfdf3;
    border-color: #86efac;
}

.help-text {
    margin-top: 7px;

    color: #94a3b8;

    font-size: 12px;
}

.key-section {
    margin-top: 20px;

    padding: 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);

    text-align: center;
}

.gift {
    font-size: 35px;
}

.key-section h2 {
    margin: 8px 0 10px;

    color: #111827;

    font-size: 21px;
}

.key-section > p {
    max-width: 700px;

    margin: 7px auto;

    color: #64748b;

    font-size: 14px;
    line-height: 1.65;
}

.key-section .key-time {
    color: #475569;

    font-weight: 700;
}

.telegram {
    display: inline-block;

    margin-top: 14px;

    padding: 13px 22px;

    color: #ffffff;

    background: #229ed9;

    border-radius: 10px;

    text-decoration: none;

    font-weight: 900;
}

.telegram-user {
    margin-top: 7px;

    color: #64748b;

    font-size: 12px;
}

.activate-box {
    max-width: 650px;

    margin: 22px auto 0;

    padding: 20px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.activate-box h3 {
    margin: 0 0 7px;

    color: #111827;

    font-size: 18px;
}

.activate-box p {
    margin: 0 0 14px;

    color: #64748b;

    font-size: 13px;
}

.activate-row {
    display: flex;

    gap: 8px;
}

.activate-row input {
    flex: 1;

    min-width: 0;

    padding: 12px;

    border: 1px solid #cbd5e1;
    border-radius: 9px;

    outline: none;

    font-size: 14px;
}

.activate-row input:focus {
    border-color: #60a5fa;

    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.activate-row button {
    padding: 12px 18px;

    border: 0;
    border-radius: 9px;

    background: #2563eb;

    color: #ffffff;

    cursor: pointer;

    font-weight: 900;
}

.activate-row button:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}

.license-message {
    display: none;

    margin-top: 10px;

    padding: 10px;

    border-radius: 8px;

    text-align: left;

    font-size: 13px;
    line-height: 1.5;
}

.license-message.info {
    display: block;

    color: #1d4ed8;

    background: #eff6ff;
}

.license-message.success {
    display: block;

    color: #166534;

    background: #ecfdf3;
}

.license-message.error {
    display: block;

    color: #b91c1c;

    background: #fef2f2;
}

.key-info {
    margin-top: 13px;

    color: #64748b;

    text-align: left;

    font-size: 12px;
    line-height: 1.7;
}

.warning {
    margin-top: 18px;

    color: #94a3b8;

    text-align: center;

    font-size: 12px;
}

.toast {
    position: fixed;

    left: 50%;
    bottom: 25px;

    z-index: 9999;

    padding: 11px 16px;

    background: #111827;

    color: #ffffff;

    border-radius: 9px;

    opacity: 0;

    pointer-events: none;

    transform: translate(-50%, 20px);

    transition: 0.2s;

    font-size: 13px;
    font-weight: 800;
}

.toast.show {
    opacity: 1;

    transform: translate(-50%, 0);
}

@media (max-width: 800px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {

    .container {
        padding: 28px 12px 40px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

    .payment-card {
        padding: 18px 14px;
    }

    .qr-box {
        width: 240px;
        height: 240px;
    }

    .activate-row {
        flex-direction: column;
    }

    .activate-row button {
        width: 100%;
    }
}
