body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f4f4;
}

header,
footer {
    width: 100%;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

main {
    min-height: 400px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.recharge-container {
    max-width: 550px;
    margin: 0 auto 40px;
    background: #fff;
    border-radius: 8px;
    overflow: visible;
}

.flow-title {
    text-align: center;
    color: #555;
    font-size: 32px;
    margin: 20px 0 30px;
    font-weight: 400;
}

.tabs {
    display: flex;
    margin-bottom: 15px;
    position: relative;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px;
}

.tab.active {
    background: #00A9E0;
    color: #fff;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 169, 224, 0.3);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #00A9E0;
}

.tab.inactive {
    background: #f8f8f8;
    color: #999;
    border: 1px solid #eee;
}

.tab-icon {
    width: 20px;
    height: 20px;
}

.step-content {
    padding: 15px 40px;
}

.tab-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.tab-desc strong {
    color: #00A9E0;
    font-weight: bold;
}

.input-group {
    margin-bottom: 20px;
    text-align: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.input-group label {
    display: block;
    margin-bottom: 15px;
    color: #666;
    font-weight: bold;
    font-size: 15px;
}

.input-wrapper {
    position: relative;
    border: 1px solid #999;
    border-radius: 8px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper.valid {
    border-color: #7ECA11 !important;
    box-shadow: 0 0 0 1px #7ECA11;
}

.input-wrapper.invalid {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 0 1px #ff4d4d;
}

.input-wrapper.valid input {
    color: #2e7d32;
}

.input-wrapper.invalid input {
    color: #d32f2f;
}

.input-wrapper input {
    border: none;
    width: 100%;
    font-size: 18px;
    outline: none;
    color: #333;
    padding-top: 12px;
}

.input-wrapper .label-floating {
    position: absolute;
    top: 4px;
    left: 15px;
    font-size: 10px;
    color: #999;
    text-transform: none;
}

.input-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.btn-primary {
    background: #7ECA11;
    color: #fff;
    border: none;
    padding: 12px 60px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    width: fit-content;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #6ab00e;
}

.back-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00A9E0;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 18px;
}

.amount-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.amount-item {
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    background: #fff;
}

.amount-item.selected {
    border-color: #00A9E0;
    background: #eef9ff;
}

.plan-card {
    border: 1px solid #00A9E0;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px 0;
    cursor: pointer;
}

.summary-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row span:last-child {
    font-weight: bold;
}

.step-header {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    padding: 0 20px;
    font-weight: 500;
}

.payment-option {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    cursor: pointer;
}

.payment-option .left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-option .logo {
    width: 30px;
    height: 30px;
}

.payment-details {
    font-size: 12px;
    color: #666;
}

.card-form {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.card-visual {
    perspective: 1000px;
    margin-bottom: 30px;
    height: 200px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 30px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-visual.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    color: #fff;
    background: #102B3F;
}

.card-back {
    transform: rotateY(180deg);
    padding: 0;
}

.card-front .chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #FFD700 0%, #daa520 100%);
    border-radius: 6px;
    margin-bottom: 30px;
}

.card-front .number-display {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    height: 24px;
}

.card-front .bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: absolute;
    bottom: 55px;
    left: 20px;
    right: 20px;
}

.card-front .name-display {
    font-size: 14px;
    text-transform: uppercase;
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-front .expiry-display {
    font-size: 14px;
}

.card-front .brand-logo {
    position: absolute;
    bottom: 15px;
    right: 20px;
    width: 50px;
    transition: all 0.3s ease;
}

.card-back .black-bar {
    background: #000;
    height: 40px;
    width: 100%;
    margin-top: 20px;
}

.card-back .signature-bar {
    background: #fff;
    height: 35px;
    width: 80%;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    font-style: italic;
    font-weight: bold;
}

.card-back .cvv-display {
    background: #fff;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
}

#payment-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    text-align: center;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #00A9E0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-logo {
    width: 120px;
    margin-bottom: 30px;
}

.loader-text {
    color: #003366;
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
}

.loader-subtext {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#payment-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #7ECA11;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.terms-section {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
    background: #fff;
    border-top: 1px solid #eee;
}

.terms-section a {
    color: #00A9E0;
    text-decoration: none;
}

#promo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#promo-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 80%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#promo-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
}

.post-form-content {
    width: min(1120px, calc(100% - 32px));
    margin: 48px auto 36px;
    text-align: center;
}

.post-form-header {
    background: linear-gradient(135deg, #fff 0%, #eef9ff 100%);
    border: 1px solid rgba(0, 169, 224, 0.18);
    border-radius: 16px;
    padding: 34px 28px;
    box-shadow: 0 18px 45px rgba(0, 64, 96, 0.08);
}

.post-form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 7px 14px;
    background: #00A9E0;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.post-form-header h2 {
    max-width: 760px;
    margin: 0 auto 14px;
    color: #003366;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
}

.post-form-header p {
    max-width: 760px;
    margin: 0 auto;
    color: #52616b;
    font-size: 16px;
    line-height: 1.75;
}

.post-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 24px 0;
}

.post-card,
.post-panel,
.post-faq,
.post-legal {
    background: #fff;
    border: 1px solid #e8eef2;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.post-card {
    min-height: 195px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 169, 224, 0.45);
    box-shadow: 0 18px 40px rgba(0, 169, 224, 0.12);
}

.post-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #7ECA11;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.post-card h3,
.post-panel h2,
.post-faq h2,
.post-legal h2 {
    color: #003366;
    margin: 0;
}

.post-card h3 {
    font-size: 19px;
}

.post-card p {
    margin: 0;
    color: #60717d;
    line-height: 1.6;
}

.post-form-columns {
    display: grid;
    grid-template-columns: 1.4fr .95fr;
    gap: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.post-panel,
.post-faq,
.post-legal {
    padding: 28px;
}

.post-steps {
    margin: 18px 0 0;
    padding-left: 22px;
    color: #44525c;
    line-height: 1.75;
}

.post-steps li {
    margin-bottom: 10px;
}

.post-benefits ul {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.post-benefits li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 28px;
    color: #44525c;
    line-height: 1.55;
}

.post-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7ECA11;
    box-shadow: 0 0 0 4px rgba(126, 202, 17, 0.14);
}

.post-faq {
    margin-bottom: 24px;
    text-align: left;
}

.post-faq h2,
.post-legal h2 {
    text-align: center;
    margin-bottom: 18px;
}

.post-faq-item {
    background: #fbfdff;
    border: 1px solid #edf1f4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.post-faq-item summary {
    cursor: pointer;
    padding: 16px 18px;
    color: #003366;
    font-weight: 800;
    list-style: none;
}

.post-faq-item summary::-webkit-details-marker {
    display: none;
}

.post-faq-item summary::after {
    content: "+";
    float: right;
    color: #00A9E0;
    font-size: 20px;
    line-height: 1;
}

.post-faq-item[open] summary::after {
    content: "-";
}

.post-faq-item p {
    margin: 0;
    padding: 0 18px 18px;
    color: #52616b;
    line-height: 1.65;
}

.post-legal-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.post-legal-links a {
    padding: 13px 10px;
    color: #003366;
    background: #f4fbff;
    border: 1px solid #dbeff8;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.post-legal-links a:hover {
    color: #00A9E0;
    background: #fff;
    border-color: #00A9E0;
}

@media screen and (max-width: 768px) {
    .recharge-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .flow-title {
        font-size: 22px;
        margin: 20px 0;
    }

    .post-form-content {
        width: calc(100% - 24px);
        margin-top: 34px;
    }

    .post-form-header,
    .post-panel,
    .post-faq,
    .post-legal {
        padding: 22px;
        border-radius: 12px;
    }

    .post-form-grid,
    .post-form-columns,
    .post-legal-links {
        grid-template-columns: 1fr;
    }

    .post-card {
        min-height: auto;
    }

    .post-form-columns {
        text-align: left;
    }
}