:root {
    --topup-card: rgba(21, 24, 39, 0.82);
    --topup-card-border: rgba(91, 107, 255, 0.35);
    --topup-soft: rgba(91, 107, 255, 0.12);
    --topup-shadow: 0 22px 50px rgba(6, 10, 22, 0.35);
}

.topup-page {
    min-height: 100vh;
}

.topup-main {
    padding: 28px 0 48px;
}

.hero {
    padding: 20px 0 8px;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px;
    background: linear-gradient(145deg, rgba(27, 32, 51, 0.82), rgba(21, 24, 39, 0.72));
    border: 1px solid var(--topup-card-border);
    border-radius: 24px;
    box-shadow: var(--topup-shadow);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--topup-soft);
    color: #d2d8ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 14px 0 10px;
    font-size: clamp(1.9rem, 2.8vw, 2.8rem);
    color: #f7f9ff;
    line-height: 1.15;
}

.hero-content p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.96rem, 1.4vw, 1.08rem);
}

.topup-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}

.topup-section,
.info-section {
    background: var(--topup-card);
    border: 1px solid var(--topup-card-border);
    border-radius: 20px;
    box-shadow: var(--topup-shadow);
    backdrop-filter: blur(6px);
}

.topup-section {
    padding: 24px;
}

.section-heading {
    margin: 0 0 18px;
    font-size: 1.35rem;
    color: #eef1ff;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d9e0ff;
    font-size: 0.96rem;
    font-weight: 600;
}

.form-group select,
.form-group input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(138, 148, 255, 0.32);
    background: rgba(11, 15, 29, 0.72);
    color: var(--text);
    padding: 12px 14px;
    font-size: 0.96rem;
}

.form-group select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #8a94ff 50%), linear-gradient(135deg, #8a94ff 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.form-group input::placeholder {
    color: rgba(205, 211, 240, 0.58);
}

.nominal-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.nominal-btn {
    border: 1px solid rgba(138, 148, 255, 0.38);
    border-radius: 12px;
    padding: 11px 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e8ebff;
    background: rgba(91, 107, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nominal-btn:hover {
    transform: translateY(-1px);
    background: rgba(91, 107, 255, 0.22);
    border-color: rgba(138, 148, 255, 0.75);
    box-shadow: 0 10px 20px rgba(13, 17, 37, 0.28);
}

.nominal-btn.selected {
    border-color: rgba(164, 172, 255, 0.92);
    background: rgba(91, 107, 255, 0.34);
}

.helper-text {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.submit-btn {
    width: 100%;
    margin-top: 8px;
    border-radius: 12px;
    border: none;
    padding: 13px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5b6bff, #7783ff);
    box-shadow: 0 14px 24px rgba(91, 107, 255, 0.34);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(91, 107, 255, 0.4);
    filter: saturate(1.08);
}

.info-section {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.info-section h3 {
    margin: 0 0 12px;
    color: #eef1ff;
    font-size: 1.15rem;
}

.info-section ul {
    margin: 0;
    padding-left: 18px;
    color: #d6dcf6;
}

.info-section li {
    margin-bottom: 10px;
}

.site-footer {
    margin-top: 20px;
    border-top: 1px solid rgba(91, 107, 255, 0.22);
    background: rgba(8, 10, 18, 0.75);
}

.footer-content {
    padding: 22px 0 28px;
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f2f4ff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.footer-links a,
.social-icons a {
    color: #bcc5ff;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.footer-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .topup-layout {
        grid-template-columns: 1fr;
    }

    .info-section {
        position: static;
    }
}

@media (max-width: 720px) {
    .topup-main {
        padding-top: 16px;
    }

    .hero-content,
    .topup-section,
    .info-section {
        border-radius: 16px;
    }

    .hero-content {
        padding: 22px 18px;
    }

    .topup-section,
    .info-section {
        padding: 18px;
    }

    .nominal-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 1rem;
    }

    .nominal-buttons {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}
