/*==================================================
RESET & SYSTEM CORE
==================================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #F7FBFF;
    color: #0F172A;
    -webkit-font-smoothing: antialiased;
}

/*==================================================
MAIN RECHARGE PAGE LAYOUT (CENTERED LARGE FORM)
==================================================*/
.recharge-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F7FBFF;
    background-image: url("../img/dot-pattern.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 20px;
    overflow: hidden;
}

/* Blur Background Gradient Blobs */
.recharge-page::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: -180px;
    top: -180px;
    background: #D8EAFE;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .65;
    pointer-events: none;
}

.recharge-page::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -150px;
    bottom: -180px;
    background: #E7F2FF;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .75;
    pointer-events: none;
}

/* CONTAINER */
.recharge-page .container {
    width: 100%;
    max-width: 460px; /* Comfortably larger card width as requested */
    margin: auto;
    position: relative;
    z-index: 5;
}

.recharge-wrapper {
    width: 100%;
}

.recharge-right {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*==================================================
GLASSMORPHIC SECURE VERIFICATION CARD
==================================================*/
.verify-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 36px 30px; /* More spacious padding */
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
}

.verify-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
}

/* FORM HEADER */
.verify-header {
    text-align: center;
    margin-bottom: 24px;
}

.verify-header img {
    max-height: 40px;
    width: auto;
    display: block;
    margin: 0 auto 12px auto;
}

.verify-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.verify-header p {
    font-size: 12px;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
}

/*==================================================
FORM LABELS & FLEX HEADERS
==================================================*/
.form-group {
    margin-bottom: 18px;
}

.form-label-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
}

.form-label-header label {
    font-size: 12.5px;
    font-weight: 600;
    color: #1E293B;
    margin: 0;
}

.form-label-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.char-counter {
    color: #64748B;
    font-weight: 600;
    font-family: monospace;
}

.help-link {
    color: #0D6EFD;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.help-link:hover {
    text-decoration: underline;
}

/*==================================================
INPUT BOX (FIXED ICON OVERLAPPING BUG)
==================================================*/
.input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #0D6EFD;
    font-size: 15px;
    pointer-events: none;
    z-index: 10;
}

.input-box input {
    width: 100%;
    height: 44px;
    padding: 10px 14px 10px 42px !important; /* Perfect icon spacing */
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
    background-color: #FFFFFF;
    color: #1E293B;
    line-height: normal;
}

.input-box input:focus {
    border-color: #0D6EFD;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.input-box input::placeholder {
    color: #94A3B8;
    font-size: 13px;
    text-transform: none;
}

/*==================================================
VERIFICATION BUTTON
==================================================*/
.verify-btn {
    background: #0D6EFD;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    height: 44px;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.verify-btn:hover {
    background: #0B5ED7;
    transform: translateY(-1px);
}

.verify-btn:disabled {
    background: #93C5FD;
    cursor: not-allowed;
    transform: none;
}

/*==================================================
SSL/SECURITY BADGES GRID (PERFECT ALIGNMENT)
==================================================*/
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 20px;
    width: 100%;
}

.security-item {
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: 10px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.security-icon-box {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.security-icon-box.secure { background: #ECFDF5; color: #059669; }
.security-icon-box.cloud { background: #EFF6FF; color: #1D4ED8; }
.security-icon-box.instant { background: #FFFBEB; color: #D97706; }

.security-item span {
    font-size: 9px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    margin: 0;
}

/*==================================================
SINGLE COLUMN PREMIUM MODAL
==================================================*/
.premium-modal {
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #F8FAFC;
    border-bottom: 1px solid #F1F5F9;
    color: #0F172A;
}

.premium-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verified-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E0F2FE;
    color: #0284C7;
    font-size: 18px;
}

.header-label {
    display: inline-block;
    background: #E0F2FE;
    color: #0369A1;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.premium-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
}

.premium-header p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #64748B;
}

.premium-close {
    width: 30px;
    height: 30px;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    background: #FFFFFF;
    color: #64748B;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.premium-close:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.premium-body {
    padding: 20px;
}

/*==================================================
1-BY-1 VERTICAL STUDENT SUMMARY CARD
==================================================*/
.student-info-summary {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.avatar-small {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #0284C7;
}

.detail-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94A3B8;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    word-break: break-all;
}

/*==================================================
RECHARGE PLANS LIST
==================================================*/
.plans-panel {
    display: flex;
    flex-direction: column;
}

.plans-header {
    margin-bottom: 12px;
}

.plans-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 4px 0;
}

.plans-header p {
    color: #64748B;
    font-size: 12px;
    margin: 0;
}

/* COMPACT PLAN CARD */
.premium-plan-card {
    margin-bottom: 10px;
    position: relative;
}

.premium-plan-label {
    position: relative;
    display: block;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.premium-plan-label:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.plan-radio-selector:checked+.premium-plan-label {
    border-color: #0284C7;
    background: #F0F9FF;
}

.plan-body-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-details-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plan-meta h4 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
}

.plan-meta p {
    margin: 1px 0 0;
    font-size: 10.5px;
    color: #64748B;
}

.plan-features-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #475569;
    font-weight: 500;
}

.plan-price-right {
    font-size: 18px;
    font-weight: 800;
    color: #0284C7;
    display: flex;
    align-items: baseline;
}

.price-symbol {
    font-size: 12px;
    font-weight: 700;
    margin-right: 1px;
}

.selected-badge {
    position: absolute;
    top: -8px;
    left: 14px;
    background: #0284C7;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.2);
}

/* SCROLL LIST */
#other-plans-list-container {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

#other-plans-list-container::-webkit-scrollbar {
    width: 4px;
}

#other-plans-list-container::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

#other-plans-list-container::-webkit-scrollbar-track {
    background: #F1F5F9;
}

.section-divider-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94A3B8;
    letter-spacing: 0.5px;
    margin: 12px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-divider-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

/*==================================================
SECURE NOTE & MODAL BUTTONS (CLEANED)
==================================================*/
.payment-note {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.payment-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #E0F2FE;
    color: #0284C7;
    font-size: 12px;
    flex-shrink: 0;
}

.payment-note h5 {
    margin: 0 0 2px;
    color: #0F172A;
    font-size: 12px;
    font-weight: 700;
}

.payment-note p {
    margin: 0;
    color: #64748B;
    font-size: 11px;
    line-height: 1.3;
}

/* MODAL FOOTER BUTTONS */
.modal-footer-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-cancel {
    flex: 1;
    height: 42px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #FFFFFF;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.btn-payment {
    flex: 2;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #0284C7;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-payment:hover {
    background: #0369A1;
}

/*==================================================
RESPONSIVE LAYOUT MEDIA QUERIES
==================================================*/
@media(max-width: 768px) {
    .recharge-page {
        padding: 40px 0 20px;
    }

    .verify-card {
        padding: 24px 18px; /* Tighter on small devices */
    }

    .premium-body {
        padding: 12px;
    }

    .premium-header {
        padding: 12px 15px;
    }

    .btn-payment,
    .btn-cancel {
        height: 40px;
        font-size: 12.5px;
    }

    .premium-plan-label {
        padding: 10px 12px;
    }

    .plan-price-right {
        font-size: 18px;
    }
}

@media(max-width: 480px) {
    .verify-card {
        padding: 24px 20px;
    }

    .verify-header img {
        height: 36px;
    }

    .verify-header h2 {
        font-size: 18px;
    }
}

/* Fallback for extremely narrow mobile viewports */
@media(max-width: 350px) {
    .form-label-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}
