.fee-card-premium {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.25rem 0 0.75rem 0 !important;
    position: relative;
    z-index: 25;
    margin-bottom: 1.5rem !important;
}

.fee-card-premium.dropdown-active,
.fee-card-premium:has(.custom-fee-trigger.open),
.fee-card-premium:has(.custom-dropdown-trigger.open) {
    z-index: 60;
}

#paymentFormCard.payment-form-initial #htContainer {
    width: 100%;
    max-width: 420px;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
    transition: margin 0.28s ease, transform 0.28s ease;
}

/* Hide native number input up/down spinner arrows on fee amount fields */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Toast Notification Container - Positioned safely above floating WhatsApp widget */
#toastNotificationContainer {
    position: fixed !important;
    bottom: 96px !important;
    right: 24px !important;
    z-index: 1000100 !important;
    pointer-events: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    max-width: min(440px, calc(100vw - 32px)) !important;
}

.rvit-portal-toast {
    pointer-events: auto !important;
    background: linear-gradient(135deg, #0c2340 0%, #17375e 100%) !important;
    border: 1.5px solid #f59e0b !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    font-size: 0.88rem !important;
    animation: toastEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastEntrance {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 767px) {
    #toastNotificationContainer {
        bottom: 82px !important;
        right: 14px !important;
        max-width: calc(100vw - 28px) !important;
    }
}

.form-label-custom {
    font-weight: 700;
    font-size: 0.94rem;
    color: #102040;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.form-control-custom {
    height: 46px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.55rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-control-custom:hover {
    border-color: #94a3b8;
    background-color: #ffffff;
}

.form-control-custom:focus {
    border-color: #f59e0b;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
    outline: none;
}

.form-select-custom,
select.form-select-custom {
    height: 46px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.55rem 2.2rem 0.55rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.85rem center !important;
    background-size: 13px 13px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-select-custom:hover:not(:disabled) {
    border-color: #94a3b8;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.form-select-custom:focus {
    border-color: #c59b27;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.22);
    outline: none;
}

.form-select-custom:disabled {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.75 !important;
}

.form-select-custom option,
.supply-subject-select option {
    padding: 8px 12px;
    background: #ffffff;
    color: #1e293b;
    font-size: 0.90rem;
    font-weight: 500;
}

.form-select-custom option:disabled,
.supply-subject-select option:disabled {
    color: #94a3b8;
    background: #f8fafc;
}

/* SUPPLY SUBJECT COMPACT DROPDOWN */
.supply-subject-select {
    height: 38px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.38rem 2rem 0.38rem 0.75rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.7rem center !important;
    background-size: 12px 12px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.supply-subject-select:hover:not(:disabled) {
    border-color: #94a3b8;
    background-color: #ffffff;
}

.supply-subject-select:focus {
    border-color: #c59b27 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.22) !important;
    outline: none !important;
}

.supply-subject-select:disabled {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.75 !important;
}

.btn-get-links {
    background: linear-gradient(135deg, #102040 0%, #19315e 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.96rem;
    min-height: 48px;
    height: auto;
    padding: 0.72rem 1.5rem;
    border-radius: 12px;
    border: 1.5px solid #102040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 8px 22px rgba(16, 32, 64, 0.22);
    transition: all 0.22s ease;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
}

.btn-get-links i {
    color: #fbbf24;
    flex-shrink: 0;
}

.btn-get-links:hover {
    background: linear-gradient(135deg, #19315e 0%, #102040 100%);
    color: #ffffff;
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(16, 32, 64, 0.3);
}

.btn-razorpay-pay {
    background: linear-gradient(135deg, #102040 0%, #19315e 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.02rem;
    padding: 0.92rem 2rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.22s ease;
    box-shadow: 0 8px 24px rgba(16, 32, 64, 0.22);
    border: 1.5px solid #102040;
}

.btn-razorpay-pay:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #102040 !important;
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

.razorpay-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(197, 155, 39, 0.12);
    color: #8a6612;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    border: 1px solid rgba(197, 155, 39, 0.35);
}

.due-result-box {
    display: none;
    background: #ffffff;
    border: 2px solid #0c1e3d;
    border-radius: 16px;
    padding: 1.8rem;
    margin-top: 1.8rem;
    box-shadow: 0 12px 35px rgba(12, 30, 61, 0.08);
    animation: fadeInSlide 0.4s ease forwards;
}

.due-card-item {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    height: 100%;
    transition: all 0.2s ease;
}

.due-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 30, 61, 0.05);
    border-color: #c59b27;
}

.due-card-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

.due-card-val {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0c1e3d;
}

/* Mobile Edge-to-Edge Optimized Spacing */
@media (max-width: 768px) {

    .fee-portal-container,
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .fee-card-premium {
        padding: 0.2rem 0 0.5rem 0 !important;
        margin-bottom: 1rem !important;
    }

    .due-result-box {
        padding: 1.1rem 0.9rem !important;
        margin-top: 1.2rem !important;
        border-radius: 14px !important;
    }

    .ledger-update-notice {
        padding: 0.9rem 1rem !important;
        border-radius: 14px !important;
    }

    .form-control-custom,
    .form-select-custom {
        height: 40px !important;
        padding: 0.42rem 0.85rem !important;
        font-size: 0.88rem !important;
    }

    .custom-dropdown-trigger,
    .custom-fee-trigger {
        min-height: 40px !important;
        height: auto !important;
        padding: 0.38rem 0.75rem !important;
        font-size: 0.88rem !important;
        overflow: hidden !important;
    }

    .form-select-custom {
        padding-right: 2rem !important;
    }

    .due-card-item {
        padding: 0.65rem 0.75rem !important;
    }
}

@media (max-width: 576px) {

    .fee-portal-container,
    .container-fluid {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .fee-card-premium {
        padding: 0.2rem 0 0.5rem 0 !important;
    }

    .due-result-box {
        padding: 0.85rem 0.6rem !important;
        margin-top: 1rem !important;
        border-radius: 12px !important;
    }

    .ledger-update-notice {
        padding: 0.75rem 0.75rem !important;
        border-radius: 12px !important;
    }

    .form-control-custom,
    .form-select-custom {
        height: 38px !important;
        padding: 0.38rem 0.75rem !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }

    .custom-dropdown-trigger,
    .custom-fee-trigger {
        min-height: 38px !important;
        height: auto !important;
        padding: 0.35rem 0.70rem !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .form-select-custom {
        padding-right: 1.85rem !important;
    }

    .form-label-custom {
        font-size: 0.82rem !important;
        margin-bottom: 0.35rem !important;
    }

    .due-card-item {
        padding: 0.55rem 0.6rem !important;
        border-radius: 8px !important;
    }

    .due-card-label {
        font-size: 0.68rem !important;
    }

    .due-card-val {
        font-size: 0.86rem !important;
    }

    .btn-razorpay-pay {
        font-size: 0.92rem !important;
        padding: 0.75rem 1rem !important;
        border-radius: 10px !important;
    }

    .btn-get-links {
        font-size: 0.83rem !important;
        min-height: 46px !important;
        height: auto !important;
        padding: 0.7rem 0.95rem !important;
        border-radius: 12px !important;
        line-height: 1.32 !important;
        letter-spacing: 0.2px !important;
        gap: 0.45rem !important;
    }

    .row.g-3 {
        --bs-gutter-x: 0.5rem !important;
        --bs-gutter-y: 0.65rem !important;
    }

    .blinking-notice-badge {
        font-size: 0.76rem !important;
        padding: 0.38rem 0.8rem !important;
        border-radius: 50px !important;
        letter-spacing: 0.2px !important;
    }

    .blinking-notice-badge .badge {
        font-size: 0.68rem !important;
        padding: 0.15rem 0.45rem !important;
    }

    .blinking-dot {
        width: 6px !important;
        height: 6px !important;
    }

}

/* Mobile-Native Fullscreen Sheet Styling for Payment Modal (<= 768px) */
@media (max-width: 768px) {
    #razorpayModal {
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    #razorpayModal .modal-dialog {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        transform: none !important;
    }

    #razorpayModal .modal-content {
        height: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }

    #razorpayModal .modal-header {
        padding: 8px 12px !important;
        min-height: 44px !important;
        flex-shrink: 0 !important;
    }

    #razorpayModal .modal-header .badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }

    #razorpayModalTitle {
        font-size: 0.82rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #razorpayModal .btn-close-custom {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
    }

    #razorpayStudentBanner {
        padding: 6px 12px !important;
        font-size: 0.74rem !important;
        flex-shrink: 0 !important;
        line-height: 1.3 !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    #razorpayModal .modal-body {
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #razorpayIframe {
        width: 100% !important;
        height: 100% !important;
        flex: 1 1 auto !important;
        border: none !important;
        display: block !important;
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* High Z-Index & Clean Placement for Razorpay Payment Modal Popup */
.modal-backdrop.show {
    z-index: 999990 !important;
    backdrop-filter: blur(5px);
    background-color: rgba(6, 11, 25, 0.8) !important;
}

body.rvit-payment-status-open .modal-backdrop.show {
    z-index: 2147483600 !important;
    background-color: rgba(6, 11, 25, 0.72) !important;
}

#paymentStatusModal {
    z-index: 2147483601 !important;
}

#razorpayModal {
    z-index: 1000050 !important;
}

@media (min-width: 769px) {
    #razorpayModal {
        padding-top: 10px !important;
    }

    #razorpayModal .modal-dialog {
        margin-top: 15px !important;
    }
}

#razorpayModal .modal-content {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
    border: 2px solid rgba(251, 191, 36, 0.4) !important;
}

#razorpayModal .modal-header {
    background: linear-gradient(135deg, #060b19 0%, #1e293b 100%) !important;
    border-bottom: 2px solid #fbbf24 !important;
    position: relative;
    z-index: 10;
}

#razorpayModal .btn-close-custom {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

#razorpayModal .btn-close-custom:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

/* Custom Accordion Styling */
.accordion-custom .accordion-button:not(.collapsed) {
    background-color: rgba(245, 158, 11, 0.08) !important;
    color: #0c2340 !important;
}

.accordion-custom .accordion-button:focus {
    box-shadow: none !important;
}

/* Sync Fee Portal bottom sections cleanly with Approvals Register CSS */
#feePortalBottomHub {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.fp-doc-section-box {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(16, 32, 64, 0.05) !important;
}

.fp-doc-section-box .accordion-button {
    background: linear-gradient(120deg, #f8fafc, #fffdf5) !important;
    color: #102040 !important;
    border-radius: 16px !important;
}

.fp-doc-section-box .accordion-button:not(.collapsed) {
    border-bottom: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0 !important;
}

.fp-doc-body {
    background: #ffffff;
    line-height: 1.7;
    color: #334155;
    font-size: 0.92rem;
}

.fp-tc-clause {
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.fp-tc-clause h6 {
    font-size: 0.94rem;
    font-weight: 800;
    color: #102040;
    margin-bottom: 6px;
}

.fp-tc-declaration {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #102040;
}

html[data-theme="dark"] .fp-doc-section-box,
html[data-theme="dark"] #fpHelpdeskCard {
    background: #131e36 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .fp-doc-section-box .accordion-button {
    background: linear-gradient(120deg, #16233e, #1a2845) !important;
    color: #f8fafc !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .fp-doc-section-box .accordion-button h6,
html[data-theme="dark"] .fp-tc-clause h6 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .fp-doc-body {
    background: #131e36 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .fp-tc-clause {
    background: #17243b;
    border-color: #334155;
    color: #cbd5e1;
}

html[data-theme="dark"] .fp-tc-declaration {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fde68a;
}

.blinking-notice-badge {
    background: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5) !important;
}

.blinking-notice-badge .badge {
    background: #fbbf24 !important;
    color: #0c2340 !important;
    font-weight: 800 !important;
}

/* High Z-Index & Positioning to ensure Modal is ALWAYS above fixed Navbar */
.modal-backdrop.show {
    z-index: 999980 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(6, 11, 25, 0.82) !important;
}

/* Clean Static Badges & Clean Layout Styles */
.portal-main-heading {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

.portal-main-heading i {
    flex-shrink: 0 !important;
}

.portal-heading-text {
    display: inline !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 800 !important;
    color: #0c1e3d !important;
    line-height: 1.25 !important;
}

.portal-live-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4.5px !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%) !important;
    color: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.64rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.7px !important;
    text-transform: uppercase !important;
    padding: 2.5px 8px 2.5px 6.5px !important;
    border-radius: 50px !important;
    line-height: 1 !important;
    vertical-align: 2px !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    animation: portalLivePillGlow 1.4s infinite ease-in-out !important;
    margin-left: 6px !important;
    position: relative !important;
    cursor: default !important;
    user-select: none !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
}

.portal-live-pulse-dot {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    display: inline-block !important;
    box-shadow: 0 0 6px #ffffff !important;
    animation: portalLiveDotBlink 0.9s infinite alternate ease-in-out !important;
}

.portal-live-text {
    font-size: 0.64rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: 0.7px !important;
    line-height: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

@keyframes portalLivePillGlow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 18px rgba(239, 68, 68, 0.85);
    }
}

@keyframes portalLiveDotBlink {
    0% {
        opacity: 0.35;
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        transform: scale(1.25);
    }
}

@media (max-width: 767px) {
    .portal-main-heading {
        gap: 10px !important;
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }

    .portal-main-heading i {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 1.05rem !important;
        border-radius: 9px !important;
    }

    .portal-heading-text {
        font-size: 1.22rem !important;
        line-height: 1.3 !important;
    }

    .portal-live-pill {
        font-size: 0.58rem !important;
        padding: 2px 6.5px 2px 5.5px !important;
        margin-left: 5px !important;
        vertical-align: 1px !important;
    }

    .portal-live-pulse-dot {
        width: 5px !important;
        height: 5px !important;
        min-width: 5px !important;
    }

    .portal-live-text {
        font-size: 0.58rem !important;
    }
}

@media (max-width: 480px) {
    .portal-main-heading {
        gap: 8px !important;
    }

    .portal-main-heading i {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: 0.92rem !important;
        border-radius: 8px !important;
    }

    .portal-heading-text {
        font-size: 1.08rem !important;
    }
}

.blinking-cursor {
    color: #10b981;
    font-weight: bold;
    margin-left: 2px;
}

@keyframes noticeBlinkAnimation {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
        background-color: #dc2626 !important;
    }

    50% {
        opacity: 0.35;
        transform: scale(0.98);
        box-shadow: 0 0 16px 4px rgba(220, 38, 38, 0.2);
        background-color: #991b1b !important;
    }
}

@keyframes liveDotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.6);
        opacity: 0.2;
    }
}

.blinking-notice-badge {
    animation: noticeBlinkAnimation 1.2s infinite ease-in-out !important;
    background-color: #dc2626 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.2s ease !important;
}

.blinking-notice-badge:hover,
.blinking-notice-badge:focus {
    animation-play-state: paused !important;
    opacity: 1 !important;
    transform: scale(1.03) !important;
    background-color: #b91c1c !important;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.6) !important;
}

.blinking-notice-badge:hover .blinking-dot,
.blinking-notice-badge:focus .blinking-dot {
    animation-play-state: paused !important;
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

.blinking-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: liveDotPulse 1.2s infinite ease-in-out !important;
}

/* ========================================================
   UNIVERSAL CUSTOM DROPDOWNS SYSTEM (COMPACT, NEAT & APPEALING)
   Used by Program, Course / Branch, Semester, and Fee Type
   ======================================================== */
.custom-dropdown-wrapper,
.custom-fee-wrapper {
    position: relative;
    width: 100%;
}

.custom-dropdown-wrapper.is-open,
.custom-fee-wrapper.is-open,
.custom-dropdown-wrapper:has(.custom-dropdown-trigger.open),
.custom-fee-wrapper:has(.custom-fee-trigger.open) {
    z-index: 1050;
}

.custom-dropdown-trigger,
.custom-fee-trigger {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    height: auto;
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.2s ease;
    background-image: none !important;
    overflow: hidden;
    box-sizing: border-box;
}

.custom-dropdown-trigger:hover:not(.disabled),
.custom-fee-trigger:hover:not(.disabled) {
    border-color: #94a3b8;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.custom-dropdown-trigger:focus,
.custom-dropdown-trigger.open,
.custom-fee-trigger:focus,
.custom-fee-trigger.open {
    border-color: #c59b27 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.22) !important;
    outline: none !important;
}

.custom-dropdown-trigger.disabled,
.custom-fee-trigger.disabled {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.75 !important;
}

.custom-dropdown-arrow,
.custom-fee-arrow {
    font-size: 0.80rem;
    color: #64748b;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.custom-dropdown-trigger.open .custom-dropdown-arrow,
.custom-fee-trigger.open .custom-fee-arrow {
    transform: rotate(180deg);
    color: var(--rvit-gold-on-light-surface, #8a6612);
}

.custom-dropdown-wrapper.is-open,
.custom-fee-wrapper.is-open {
    position: relative;
    z-index: 1500 !important;
}

.custom-dropdown-menu,
.custom-fee-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(16, 32, 64, 0.22), 0 4px 12px rgba(16, 32, 64, 0.08);
    z-index: 1600 !important;
    max-height: 290px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 0 !important;
}

.custom-dropdown-menu::-webkit-scrollbar,
.custom-fee-menu::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-menu::-webkit-scrollbar-track,
.custom-fee-menu::-webkit-scrollbar-track {
    background: #f8fafc;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb,
.custom-fee-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb:hover,
.custom-fee-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.custom-dropdown-option,
.custom-fee-option {
    padding: 7px 12px;
    margin: 0 !important;
    border-radius: 0 !important;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow: hidden;
    transition: none;
    line-height: 1.45;
    border-bottom: 1px solid #f8fafc;
    width: 100%;
    box-sizing: border-box;
}

.custom-fee-option>div:first-child,
.custom-fee-option .min-w-0 {
    min-width: 0 !important;
    overflow: hidden !important;
}

.custom-dropdown-option:last-child,
.custom-fee-option:last-child {
    border-bottom: none;
}

/* Top placeholder item (-- Select Program --) as shown in Pic 1 */
.custom-dropdown-option.placeholder-opt,
.custom-fee-option.placeholder-opt {
    color: #64748b !important;
    font-size: 0.85rem;
    background-color: #fafbfc;
    border-bottom: 1px solid #e2e8f0;
}

.custom-dropdown-option.placeholder-opt:hover,
.custom-fee-option.placeholder-opt:hover {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
}

/* Hover & Selected state inside dropdown: Shield Navy Dual-Tone */
.custom-dropdown-option:hover:not(.placeholder-opt):not(.due-pending),
.custom-dropdown-option:focus:not(.placeholder-opt):not(.due-pending),
.custom-fee-option:hover:not(.placeholder-opt):not(.due-pending),
.custom-fee-option:focus:not(.placeholder-opt):not(.due-pending) {
    background-color: #19315e !important;
    color: #ffffff !important;
}

.custom-dropdown-option.selected:not(.placeholder-opt):not(.due-pending),
.custom-fee-option.selected:not(.placeholder-opt):not(.due-pending) {
    background-color: #102040 !important;
    color: #ffffff !important;
    font-weight: 700;
}

.fee-workspace-panel,
#feeTypeContainer,
#formRow2,
#feePaymentForm,
#paymentFormCard {
    overflow: visible !important;
}

.custom-dropdown-option:hover .dropdown-option-label,
.custom-fee-option:hover .dropdown-option-label,
.custom-dropdown-option.selected .dropdown-option-label,
.custom-fee-option.selected .dropdown-option-label,
.custom-dropdown-option:hover .fee-option-label,
.custom-fee-option:hover .fee-option-label,
.custom-dropdown-option.selected .fee-option-label,
.custom-fee-option.selected .fee-option-label {
    color: #ffffff !important;
}

/* Due-pending options - Normal unselected state: soft light-red card background */
.custom-dropdown-option.due-pending,
.custom-fee-option.due-pending {
    background-color: #fef2f2 !important;
    border-bottom: 1px solid #fee2e2 !important;
}

.custom-dropdown-option.due-pending .text-danger,
.custom-fee-option.due-pending .text-danger {
    color: #b91c1c !important;
}

/* Due-pending options - Hover state: full vibrant red with white text */
.custom-dropdown-option.due-pending:hover,
.custom-fee-option.due-pending:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

/* Due-pending options - Selected state: rich crimson with pure white text */
.custom-dropdown-option.due-pending.selected,
.custom-fee-option.due-pending.selected {
    background-color: #b91c1c !important;
    color: #ffffff !important;
}

/* Force all child text and exclamation icons to white on hovered or selected due-pending rows */
.custom-dropdown-option.due-pending.selected .text-danger,
.custom-dropdown-option.due-pending.selected .fee-due-label,
.custom-dropdown-option.due-pending.selected i,
.custom-fee-option.due-pending.selected .text-danger,
.custom-fee-option.due-pending.selected .fee-due-label,
.custom-fee-option.due-pending.selected i,
.custom-dropdown-option.due-pending:hover .text-danger,
.custom-dropdown-option.due-pending:hover .fee-due-label,
.custom-dropdown-option.due-pending:hover i,
.custom-fee-option.due-pending:hover .text-danger,
.custom-fee-option.due-pending:hover .fee-due-label,
.custom-fee-option.due-pending:hover i {
    color: #ffffff !important;
}

/* Dues Pending Pill Badge on selected or hovered rows: White background with bold red text */
.custom-dropdown-option.due-pending.selected .badge,
.custom-dropdown-option.due-pending:hover .badge,
.custom-fee-option.due-pending.selected .badge,
.custom-fee-option.due-pending:hover .badge {
    background-color: #ffffff !important;
    color: #b91c1c !important;
    font-weight: 800 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
    border: none !important;
}

/* Invert the NEW starburst badge on red due-pending background for maximum legibility */
.custom-fee-option.due-pending.selected .rvit-oval-burst-badge svg path,
.custom-fee-option.due-pending:hover .rvit-oval-burst-badge svg path {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.custom-fee-option.due-pending.selected .rvit-oval-burst-badge .burst-text,
.custom-fee-option.due-pending:hover .rvit-oval-burst-badge .burst-text {
    color: #b91c1c !important;
    text-shadow: none !important;
    font-weight: 900 !important;
}

/* Tick mark icon pinned to the far right ("in last") */
.selected-tick-icon {
    margin-left: auto !important;
    padding-left: 6px !important;
    font-size: 0.88rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Clean, high-contrast Copy Link button inside fee type options */
.fee-copy-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    padding: 3px 8px !important;
    border-radius: 9999px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #102040 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
    transition: all 0.15s ease-in-out !important;
    cursor: pointer !important;
    user-select: none !important;
    flex-shrink: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
}

.fee-copy-btn:hover,
.fee-copy-btn:active {
    background: #fffbeb !important;
    border-color: #f59e0b !important;
    color: #102040 !important;
    transform: scale(1.04) !important;
}

.custom-fee-option:hover .fee-copy-btn,
.custom-fee-option.selected .fee-copy-btn {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #102040 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22) !important;
}

.custom-fee-option.due-pending .fee-copy-btn {
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
}

.custom-fee-option.due-pending:hover .fee-copy-btn,
.custom-fee-option.due-pending.selected .fee-copy-btn {
    background: #ffffff !important;
    color: #dc2626 !important;
    border-color: #ffffff !important;
}

/* Mobile specific dropdown & workspace tweaks */
@media (max-width: 576px) {
    .fee-portal-container {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .custom-fee-menu {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .custom-fee-option,
    .custom-dropdown-option {
        padding: 8px 10px !important;
        gap: 6px !important;
    }

    .custom-dropdown-menu,
    .custom-fee-menu {
        max-height: 250px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .fee-copy-btn {
        font-size: 0.68rem !important;
        padding: 3px 8px !important;
    }

    .fee-option-label {
        font-size: 0.82rem !important;
    }

    #btnCopySelectedFeeLink {
        font-size: 0.70rem !important;
        padding: 2px 7px !important;
    }
}

.custom-dropdown-selected-text,
.custom-fee-selected-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.88rem;
    line-height: 1.35;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.custom-fee-trigger .rvit-oval-burst-badge {
    width: 42px !important;
    height: 22px !important;
    margin-left: 4px !important;
}

/* EXACT OVAL ZIGZAG STARBURST 'NEW' BADGE (MATCHING NAVBAR DROPDOWNS) */
@keyframes rvitBurstPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.94);
    }
}

.rvit-oval-burst-badge {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 26px !important;
    margin-left: 6px !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    animation: rvitBurstPulse 1.2s infinite ease-in-out !important;
    vertical-align: middle !important;
    user-select: none !important;
    text-decoration: none !important;
    filter: none !important;
}

.rvit-oval-burst-badge svg {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
    filter: none !important;
}

.rvit-oval-burst-badge .burst-text {
    position: relative !important;
    z-index: 2 !important;
    color: #ffffff !important;
    font-size: 0.62rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.4px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(0.5px) !important;
}

/* Notice Board Button Hover Effects */
.notice-board-badge-btn:hover {
    background-color: #fffbeb !important;
    border-color: #f59e0b !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
}

.notice-modal-item:hover {
    background-color: #f0fdf4 !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

/* Program Badge & Filter Styling */
.bg-purple {
    background-color: #8b5cf6 !important;
}

.text-purple {
    color: #7c3aed !important;
}

.border-purple {
    border-color: #8b5cf6 !important;
}

.fee-card-highlight {
    border-color: #d97706 !important;
}

/* Ultra-Appealing Pill Capsule Notice Bar Styling */
.hero-program-filter-btn {
    transition: all 0.25s ease;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 0.32rem 0.85rem !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-program-filter-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: #f59e0b !important;
}

.hero-program-filter-btn.active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4) !important;
}

.hero-notice-badge-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50px !important;
    padding: 0.4rem 0.95rem !important;
    font-size: 0.83rem !important;
    color: #0c2340 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
}

.hero-notice-badge-btn:hover {
    background: #fffdf5 !important;
    border-color: #f59e0b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.28) !important;
}

.hero-notice-badge-btn:hover .arrow-icon {
    transform: translateY(2px);
    color: #d97706 !important;
}

/* Zero-Lag Smooth 60fps Iframe Modal Body Styling */
#razorpayModal {
    z-index: 1000050 !important;
}

@media (min-width: 769px) {
    #razorpayModal .modal-dialog {
        z-index: 1000060 !important;
        margin-top: 5.5rem !important;
        margin-bottom: 2rem !important;
        max-width: 960px !important;
    }

    #razorpayModal .modal-content {
        border: 1.5px solid rgba(251, 191, 36, 0.5) !important;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6) !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }

    #razorpayModal .modal-body {
        overflow-y: auto !important;
        position: relative;
        height: 82vh !important;
        max-height: 820px !important;
        min-height: 620px !important;
        background: #f8fafc;
        -webkit-overflow-scrolling: touch;
    }

    #razorpayIframe {
        width: 100%;
        height: 100%;
        min-height: 680px;
        border: none;
        position: relative;
        z-index: 2;
        will-change: transform;
        transform: translateZ(0);
        -webkit-overflow-scrolling: touch;
    }
}

.btn-close-custom {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-close-custom:hover {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.08);
}

/* DIGITAL RVIT Cashless Campus Badge (Pic 1) */
.digital-rvit-badge {
    background: #f59e0b;
    color: #0c2340;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 0.42rem 1.15rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    text-align: center;
}

.digital-rvit-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.35);
    background: #fbbf24;
}

@media (max-width: 768px) {
    #paymentFormHeader {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.65rem !important;
    }

    .digital-rvit-badge {
        font-size: 0.78rem !important;
        padding: 0.35rem 0.95rem !important;
        white-space: nowrap !important;
        line-height: 1.35 !important;
        width: auto !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .digital-rvit-badge {
        font-size: 0.74rem !important;
        padding: 0.32rem 0.85rem !important;
        display: inline-flex !important;
        width: auto !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Ledger Update Timeframe Callout Card (Dual-Tone Navy & Amber Gold) */
.ledger-update-notice {
    background: linear-gradient(135deg, #fffdf5 0%, #fef9e7 100%);
    border: 1.5px solid #fde68a;
    border-left: 5px solid #102040;
    border-radius: 16px;
    padding: 1.15rem 1.4rem;
    box-shadow: 0 4px 18px rgba(16, 32, 64, 0.06);
    max-width: 100%;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.ledger-update-notice:hover {
    box-shadow: 0 6px 22px rgba(16, 32, 64, 0.11);
    border-color: #f59e0b;
}

.ledger-clock-icon {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #102040 0%, #19315e 100%);
    color: #fbbf24;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-right: 12px;
    margin-top: 2px;
    box-shadow: 0 2px 6px rgba(16, 32, 64, 0.25);
}

.ledger-notice-text {
    color: #0f172a;
    font-size: 0.91rem;
    line-height: 1.6;
    font-weight: 500;
    padding-top: 1px;
}

.ledger-notice-text strong {
    color: #0c2340;
    font-weight: 800;
}

.ledger-official-badge {
    background: #ffffff;
    color: #0c2340;
    border: 1px solid #fde68a;
    border-radius: 50px;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.22rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 1px 4px rgba(16, 32, 64, 0.05);
    letter-spacing: 0.2px;
}

/* Dark mode adjustments */
html[data-theme="dark"] .ledger-update-notice {
    background: linear-gradient(135deg, rgba(25, 49, 94, 0.45) 0%, rgba(15, 23, 42, 0.78) 100%);
    border-color: rgba(245, 158, 11, 0.35);
    border-left-color: #f59e0b;
}

html[data-theme="dark"] .ledger-notice-text {
    color: #e2e8f0;
}

html[data-theme="dark"] .ledger-notice-text strong {
    color: #fbbf24;
}

html[data-theme="dark"] .ledger-official-badge {
    background: #17243b;
    color: #f8fafc;
    border-color: #334155;
}

/* Ultra-Compact & Crisp Points Bar */
.portal-quick-strip {
    margin-bottom: 0.85rem;
}

.portal-mini-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0c2340;
    font-size: 0.81rem;
    font-weight: 700;
    padding: 0.28rem 0.85rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.portal-mini-pill:hover {
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

@media (max-width: 576px) {
    .portal-quick-strip {
        gap: 0.4rem !important;
        margin-bottom: 0.75rem !important;
    }

    .portal-mini-pill {
        font-size: 0.75rem !important;
        padding: 0.24rem 0.65rem !important;
        line-height: 1.35 !important;
    }
}

/* Dark mode */
html[data-theme="dark"] .portal-mini-pill {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .portal-mini-pill:hover {
    border-color: #f59e0b;
}

/* ============================================================
   COMPREHENSIVE DARK MODE FIXES — Fee Payment Portal
   Fixes: heading, labels, card bg, inputs, dropdowns, due-box
============================================================ */

/* Page heading — was dark text on dark bg */
html[data-theme="dark"] .portal-heading-text {
    color: #f1f5f9 !important;
}

/* Flat cardless main form container matching RVIT Approvals / Inner pages */
html[data-theme="dark"] #paymentFormCard,
html[data-theme="dark"] .fee-card-premium {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* All field labels */
html[data-theme="dark"] .form-label-custom {
    color: #e2e8f0 !important;
}

/* Text inputs and native selects */
html[data-theme="dark"] .form-control-custom,
html[data-theme="dark"] .form-select-custom,
html[data-theme="dark"] .supply-subject-select {
    background-color: #0f172a !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .form-control-custom::placeholder {
    color: #64748b !important;
}

html[data-theme="dark"] .form-control-custom:focus,
html[data-theme="dark"] .form-select-custom:focus {
    border-color: #c59b27 !important;
    background-color: #1e293b !important;
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.25) !important;
}

html[data-theme="dark"] .form-control-custom[readonly] {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .form-select-custom:disabled,
html[data-theme="dark"] .supply-subject-select:disabled {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #475569 !important;
}

/* Custom dropdown triggers */
html[data-theme="dark"] .custom-dropdown-trigger,
html[data-theme="dark"] .custom-fee-trigger {
    background-color: #0f172a !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .custom-dropdown-trigger:hover,
html[data-theme="dark"] .custom-fee-trigger:hover {
    border-color: #94a3b8 !important;
    background-color: #1e293b !important;
}

html[data-theme="dark"] .custom-dropdown-trigger.open,
html[data-theme="dark"] .custom-fee-trigger.open {
    border-color: #c59b27 !important;
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.22) !important;
}

html[data-theme="dark"] .custom-dropdown-selected-text .text-muted,
html[data-theme="dark"] .custom-dropdown-selected-text .opacity-75 {
    color: #64748b !important;
}

html[data-theme="dark"] .custom-dropdown-selected-text .text-navy,
html[data-theme="dark"] .custom-dropdown-selected-text .fw-semibold {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .custom-dropdown-chevron {
    color: #94a3b8 !important;
}

/* Dropdown menus */
html[data-theme="dark"] .custom-dropdown-menu,
html[data-theme="dark"] .custom-fee-menu {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5) !important;
}

/* Dropdown options — base */
html[data-theme="dark"] .custom-dropdown-option,
html[data-theme="dark"] .custom-fee-option {
    color: #e2e8f0 !important;
    border-bottom-color: #334155 !important;
}

/* Placeholder row */
html[data-theme="dark"] .custom-dropdown-option.placeholder-opt,
html[data-theme="dark"] .custom-fee-option.placeholder-opt {
    background-color: #0f172a !important;
    color: #64748b !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .custom-dropdown-option.placeholder-opt:hover,
html[data-theme="dark"] .custom-fee-option.placeholder-opt:hover {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
}

/* Hover state — keep the vibrant blue highlight */
html[data-theme="dark"] .custom-dropdown-option:hover:not(.placeholder-opt):not(.due-pending),
html[data-theme="dark"] .custom-fee-option:hover:not(.placeholder-opt):not(.due-pending) {
    background-color: #19315e !important;
    color: #ffffff !important;
}

/* Selected state */
html[data-theme="dark"] .custom-dropdown-option.selected:not(.placeholder-opt):not(.due-pending),
html[data-theme="dark"] .custom-fee-option.selected:not(.placeholder-opt):not(.due-pending) {
    background-color: #fbbf24 !important;
    color: #102040 !important;
}

html[data-theme="dark"] .custom-dropdown-option .dropdown-option-label,
html[data-theme="dark"] .custom-fee-option .dropdown-option-label,
html[data-theme="dark"] .custom-dropdown-option .fee-option-label,
html[data-theme="dark"] .custom-fee-option .fee-option-label {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .custom-dropdown-option:hover .dropdown-option-label,
html[data-theme="dark"] .custom-fee-option:hover .dropdown-option-label,
html[data-theme="dark"] .custom-dropdown-option:hover .fee-option-label,
html[data-theme="dark"] .custom-fee-option:hover .fee-option-label {
    color: #ffffff !important;
}

html[data-theme="dark"] .custom-dropdown-option.selected .dropdown-option-label,
html[data-theme="dark"] .custom-fee-option.selected .dropdown-option-label,
html[data-theme="dark"] .custom-dropdown-option.selected .fee-option-label,
html[data-theme="dark"] .custom-fee-option.selected .fee-option-label {
    color: #102040 !important;
}

html[data-theme="dark"] .fee-copy-btn {
    background: #0f172a !important;
    border-color: #475569 !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .fee-copy-btn:hover,
html[data-theme="dark"] .fee-copy-btn:active {
    background: #1e293b !important;
    border-color: #fbbf24 !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .custom-fee-option:hover .fee-copy-btn,
html[data-theme="dark"] .custom-fee-option.selected .fee-copy-btn {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #102040 !important;
}

/* Due result box */
html[data-theme="dark"] .due-result-box {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .due-card-item {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .due-card-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .due-card-val {
    color: #f1f5f9 !important;
}

/* Deprecated optional social-links modal styles; the modal never gates payment. */
#socialGateModal {
    z-index: 1000050 !important;
}

#socialGateModal .modal-dialog {
    z-index: 1000060 !important;
    margin-top: 5.5rem !important;
    margin-bottom: 2.5rem !important;
    max-width: 840px !important;
}

#socialGateModal .modal-content {
    border: 1.5px solid rgba(251, 191, 36, 0.5) !important;
    box-shadow: 0 30px 80px rgba(12, 35, 64, 0.5) !important;
    border-radius: 24px !important;
}

.modal-backdrop.show {
    z-index: 1000040 !important;
    background-color: rgba(6, 11, 25, 0.82) !important;
}

.sg-channel-card {
    border-radius: 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sg-channel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/* 1. YouTube Brand Theme */
.sg-channel-card.sg-theme-youtube {
    background: #fff8f8 !important;
    border: 1.5px solid rgba(255, 0, 0, 0.25) !important;
}

.sg-channel-card.sg-theme-youtube:hover {
    border-color: rgba(255, 0, 0, 0.55) !important;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.12) !important;
}

.sg-badge-youtube {
    background: rgba(255, 0, 0, 0.08) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(255, 0, 0, 0.28) !important;
}

/* 2. Instagram Brand Theme */
.sg-channel-card.sg-theme-instagram {
    background: linear-gradient(135deg, #fff5f8 0%, #fdf2f8 100%) !important;
    border: 1.5px solid rgba(225, 48, 108, 0.25) !important;
}

.sg-channel-card.sg-theme-instagram:hover {
    border-color: rgba(225, 48, 108, 0.55) !important;
    box-shadow: 0 8px 24px rgba(225, 48, 108, 0.12) !important;
}

.sg-badge-instagram {
    background: rgba(225, 48, 108, 0.08) !important;
    color: #e1306c !important;
    border: 1px solid rgba(225, 48, 108, 0.28) !important;
}

/* 3. Facebook Brand Theme */
.sg-channel-card.sg-theme-facebook {
    background: #f6faff !important;
    border: 1.5px solid rgba(24, 119, 242, 0.25) !important;
}

.sg-channel-card.sg-theme-facebook:hover {
    border-color: rgba(24, 119, 242, 0.55) !important;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.12) !important;
}

.sg-badge-facebook {
    background: rgba(24, 119, 242, 0.08) !important;
    color: #1877f2 !important;
    border: 1px solid rgba(24, 119, 242, 0.28) !important;
}

/* 4. WhatsApp Brand Theme */
.sg-channel-card.sg-theme-whatsapp {
    background: #f5fcf7 !important;
    border: 1.5px solid rgba(37, 211, 102, 0.25) !important;
}

.sg-channel-card.sg-theme-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.55) !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.12) !important;
}

.sg-badge-whatsapp {
    background: rgba(37, 211, 102, 0.08) !important;
    color: #16a34a !important;
    border: 1px solid rgba(37, 211, 102, 0.28) !important;
}

/* 5. Google Reviews Brand Theme */
.sg-channel-card.sg-theme-google_review {
    background: #f8fbff !important;
    border: 1.5px solid rgba(66, 133, 244, 0.3) !important;
}

.sg-channel-card.sg-theme-google_review:hover {
    border-color: rgba(66, 133, 244, 0.6) !important;
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.12) !important;
}

.sg-badge-google_review {
    background: rgba(66, 133, 244, 0.08) !important;
    color: #1a73e8 !important;
    border: 1px solid rgba(66, 133, 244, 0.28) !important;
}

.sg-channel-card.sg-completed {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.08) !important;
}

.sg-btn-action {
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 50rem;
    padding: 6px 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sg-btn-youtube {
    background: #ff0000;
    color: #ffffff !important;
    border: none;
}

.sg-btn-youtube:hover {
    background: #cc0000;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.35);
}

.sg-btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    border: none;
}

.sg-btn-instagram:hover {
    opacity: 0.95;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.35);
}

.sg-btn-facebook {
    background: #1877f2;
    color: #ffffff !important;
    border: none;
}

.sg-btn-facebook:hover {
    background: #0d65d9;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.sg-btn-whatsapp {
    background: #25d366;
    color: #ffffff !important;
    border: none;
}

.sg-btn-whatsapp:hover {
    background: #1ebc59;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.sg-btn-google_review {
    background: #4285F4;
    color: #ffffff !important;
    border: none;
}

.sg-btn-google_review:hover {
    background: #3367d6;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.35);
}

.sg-btn-verified {
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: default !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

.sg-btn-verifying {
    background: #f59e0b !important;
    color: #0c2340 !important;
    border: none !important;
    cursor: wait !important;
}

.btn-proceed-unlocked {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #0c2340 !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45) !important;
    animation: pulseGlow 1.8s infinite !important;
    cursor: pointer !important;
}

.btn-proceed-unlocked:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #0c2340 !important;
    transform: translateY(-1px);
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

/* RVIT-aligned fee portal masthead and calm, high-clarity form surface */
#paymentFormHeader {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 88px;
    padding: 18px 22px !important;
    border: 1px solid rgba(251, 191, 36, 0.34);
    border-left: 4px solid #c59b27;
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 90% 0%, rgba(56, 189, 248, 0.16), transparent 38%),
        linear-gradient(125deg, #061124 0%, #0c1e3d 58%, #142a52 100%);
    box-shadow: 0 16px 38px rgba(6, 17, 36, 0.18);
}

.portal-main-heading {
    gap: 13px !important;
    min-width: 0;
    color: #ffffff !important;
}

.portal-main-heading>i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 15px !important;
    background: linear-gradient(145deg, #fde68a 0%, #f59e0b 100%);
    color: #0c1e3d !important;
    font-size: 1.2rem !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.24);
}

.portal-heading-text {
    font-family: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(1.18rem, 2.15vw, 1.7rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em;
    color: #ffffff !important;
    text-wrap: balance;
}

.digital-rvit-badge {
    position: relative;
    z-index: 1;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.digital-rvit-badge i {
    color: #fbbf24;
}

/* =====================================================================
   APPROVALS-STYLE CLEAN REGISTER BOXES & FRIENDLY PORTAL UX
   Designed for effortless readability and zero clutter
   ===================================================================== */
.fp-portal-shell {
    max-width: 1180px;
    margin: 18px auto 28px;
}

/* Hidden source tabs: visual navigation lives in the full-bleed gold sub-bar right below hero */
.fp-hidden-source-tabs {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes rvitLiveRedBlink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55);
    }

    50% {
        opacity: 0.42;
        box-shadow: 0 0 0 5px rgba(220, 38, 38, 0);
    }
}

.rvit-subnav-live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626 !important;
    color: #ffffff !important;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    margin-left: 5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.45);
    animation: rvitLiveRedBlink 1.3s ease-in-out infinite;
}

.aicte-register {
    overflow: visible !important;
    position: relative;
    margin-top: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(16, 32, 64, 0.06);
}

#feePayFormWrapper,
#feePayFormWrapper.dropdown-active,
.aicte-register:has(.custom-fee-trigger.open),
.aicte-register:has(.custom-dropdown-trigger.open) {
    z-index: 80 !important;
}

.aicte-register-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 17px 17px 0 0;
    background: linear-gradient(120deg, #f8fafc, #fffdf5);
    flex-wrap: wrap;
}

.aicte-register-title {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.aicte-register-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 13px;
    color: #fbbf24;
    background: #102040;
    font-size: 1.1rem;
}

.aicte-register-title h3 {
    margin: 0;
    color: #102040;
    font-size: 1.04rem;
    font-weight: 800;
}

.aicte-register-title p {
    margin: 3px 0 0;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.45;
}

.aicte-register-count {
    flex: 0 0 auto;
    padding: 7px 13px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 999px;
    color: #102040;
    background: #fffbeb;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.aicte-document-card {
    display: flex;
    min-height: 152px;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    padding: 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.aicte-document-card.fee-cat-card {
    display: block;
    min-height: 0;
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 14px rgba(16, 32, 64, 0.045);
}

.aicte-document-card.fee-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(16, 32, 64, 0.11);
}

.fp-cat-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: left;
}

.fp-cat-top {
    padding: 12px 15px 0;
    margin-bottom: 5px !important;
}

.fp-cat-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0 15px;
    flex: 1;
    min-width: 0;
}

.aicte-document-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 10px 22px rgba(16, 32, 64, 0.09);
}

.aicte-document-card:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.55);
    outline-offset: 2px;
}

.aicte-document-card.active {
    border: 2px solid #102040;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
    box-shadow: 0 12px 26px rgba(16, 32, 64, 0.12);
}

.aicte-document-category {
    margin-bottom: 6px;
    color: #92400e;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.aicte-document-name {
    margin: 0 0 4px;
    color: #102040;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.28;
}

.fee-cat-card .fp-doc-due-line {
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 4px;
}

.fp-doc-sub {
    flex: 1;
    margin: 0 0 12px;
    color: #475569;
    font-size: 0.79rem;
    line-height: 1.4;
}

.aicte-document-open {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(16, 32, 64, 0.22);
    border-radius: 999px;
    color: #102040;
    background: #f8fafc;
    font-size: 0.77rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.aicte-document-card:hover .aicte-document-open,
.aicte-document-open:hover,
.aicte-document-open:focus-visible {
    border-color: #f59e0b;
    color: #102040;
    background: #fffbeb;
}

.aicte-document-card.active .aicte-document-open {
    background: #102040;
    color: #ffffff;
    border-color: #102040;
}

.aicte-document-card.active .aicte-document-open i {
    color: #fbbf24;
}

.fp-cat-grid-wrap {
    padding: 16px 18px 18px;
}

/* Seamless Top 3D-style SVG Hero Header (Open & Un-sandwiched on Desktop/Tablet) */
.fp-card-illus-stage {
    order: -1;
    position: relative;
    width: 100%;
    height: 108px;
    margin: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(155deg, #f2f6fc 0%, #fffdf7 100%);
    border: 0;
    border-bottom: 1px solid rgba(16, 32, 64, 0.07);
    box-shadow: none;
    transition: background 220ms ease, border-color 220ms ease;
}

.fee-cat-card[data-cat="college"] .fp-card-illus-stage {
    background: radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0.92) 0%, rgba(238, 244, 253, 0.95) 65%, #e8effa 100%);
}

.fee-cat-card[data-cat="misc"] .fp-card-illus-stage {
    background: radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 250, 232, 0.96) 68%, #fef3c7 100%);
}

.fee-cat-card[data-cat="transport"] .fp-card-illus-stage {
    background: radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0.92) 0%, rgba(240, 246, 254, 0.96) 65%, #fdf4dc 100%);
}

.fee-cat-card[data-cat="exam"] .fp-card-illus-stage {
    background: radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0.92) 0%, rgba(244, 247, 252, 0.96) 68%, #eef2f9 100%);
}

.fp-card-illus-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(16, 32, 64, 0.065) 1px, transparent 1px);
    background-size: 13px 13px;
    opacity: 0.42;
    pointer-events: none;
}

.fp-card-illus-svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100px;
    max-width: 196px;
    display: block;
    filter: drop-shadow(0 8px 12px rgba(16, 32, 64, 0.14));
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), filter 240ms ease;
    will-change: transform;
}

.aicte-document-card:hover .fp-card-illus-stage {
    background: radial-gradient(circle at 50% 55%, #ffffff 0%, #fffbeb 62%, #fef3c7 100%);
    border-bottom-color: rgba(245, 158, 11, 0.35);
}

.aicte-document-card:hover .fp-card-illus-svg {
    transform: translateY(-3px) scale(1.035);
    filter: drop-shadow(0 12px 16px rgba(16, 32, 64, 0.18));
}

.aicte-document-card.active .fp-card-illus-stage {
    background: radial-gradient(circle at 50% 52%, #fffef8 0%, #fef3c7 75%, #fde68a 100%);
    border-bottom-color: rgba(217, 119, 6, 0.42);
}

.aicte-document-card.active .fp-card-illus-svg {
    transform: translateY(-2px) scale(1.025);
}

.fee-cat-card .aicte-document-open {
    margin: auto 15px 14px;
}

@media (prefers-reduced-motion: reduce) {
    .fp-card-illus-svg {
        transition: none;
    }

    .aicte-document-card:hover .fp-card-illus-svg,
    .aicte-document-card.active .fp-card-illus-svg {
        transform: none;
    }
}

.fee-card-premium {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.fp-confirm-box {
    background: linear-gradient(120deg, #fffdf5 0%, #fffbeb 100%);
    border: 1.5px solid #fde68a;
    border-left: 4px solid #102040;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-top: 1.15rem;
    margin-bottom: 1.15rem;
}

.fee-present-year-box {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #102040 !important;
    font-weight: 800 !important;
    cursor: default;
}

.fp-verify-btn {
    height: 46px;
    background: #102040 !important;
    color: #ffffff !important;
    border: 1.5px solid #102040 !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.94rem !important;
    padding: 0 22px !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.fp-verify-btn:hover {
    background: #19315e !important;
    border-color: #f59e0b !important;
}

.fp-verify-btn i {
    color: #fbbf24 !important;
}

/* Hide auto-filled Present Year & redundant confirmation cards from UI (kept silently in DOM) */
#semesterContainer,
#verifiedStudentBanner,
#checkDueInlineResult .fp-confirm-box {
    display: none !important;
}

/* Proportional grid: HT+verify | Mobile | Email */
.fee-top-fields-grid {
    display: grid !important;
    grid-template-columns: minmax(390px, 1.85fr) minmax(195px, 1fr) minmax(245px, 1.25fr);
    gap: 16px;
    align-items: start;
    width: 100%;
}

.fp-empty-notice-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
    border: 1.5px solid #fde68a;
    border-left: 4px solid #102040;
    border-radius: 14px;
    padding: 18px 20px;
}

.fp-empty-notice-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #102040;
    color: #fbbf24;
    font-size: 1.15rem;
}

html[data-theme="dark"] .fp-empty-notice-card {
    background: linear-gradient(135deg, #17243b 0%, #111b31 100%);
    border-color: rgba(251, 191, 36, 0.38);
    border-left-color: #fbbf24;
}

html[data-theme="dark"] .fp-empty-notice-card h6,
html[data-theme="dark"] .fp-empty-notice-card .text-navy {
    color: #f8fafc !important;
}

#paymentFormCard.payment-form-initial .fee-top-fields-grid {
    grid-template-columns: minmax(320px, 680px);
    justify-content: start;
}

#hallTicketNo::placeholder,
#checkDueHtInput::placeholder {
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
    font-size: 0.92rem;
}

@media (min-width: 576px) {

    #hallTicketNo,
    #checkDueHtInput {
        min-width: 265px;
    }
}

.fee-top-fields-grid>div {
    width: 100%;
    min-width: 0;
}

@media (max-width: 991px) {
    .fee-top-fields-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .fee-top-fields-grid #htContainer {
        grid-column: 1 / -1;
    }

    #paymentFormCard.payment-form-initial .fee-top-fields-grid {
        grid-template-columns: minmax(260px, 1fr);
    }
}

@media (max-width: 767px) {
    .fp-cat-grid-wrap {
        padding: 10px 11px;
    }

    /* Mobile / Narrow View: 4 Sleek One-by-One Horizontal Line Cards */
    .aicte-document-card.fee-cat-card {
        display: block !important;
        padding: 0 !important;
        border-radius: 13px;
        border: 1.5px solid #e2e8f0;
        border-left: 4px solid #102040;
        background: linear-gradient(95deg, #ffffff 0%, #f8fafc 100%);
        box-shadow: 0 3px 10px rgba(16, 32, 64, 0.05);
    }

    .aicte-document-card.fee-cat-card.active {
        border: 2px solid #102040;
        border-left: 5px solid #f59e0b;
        background: linear-gradient(95deg, #fffdf5 0%, #fef3c7 100%);
        box-shadow: 0 8px 20px rgba(16, 32, 64, 0.11);
    }

    html[data-theme="dark"] .aicte-document-card.fee-cat-card {
        border-color: #334155;
        border-left: 4px solid #fbbf24;
        background: linear-gradient(95deg, #17243b 0%, #111c33 100%);
    }

    html[data-theme="dark"] .aicte-document-card.fee-cat-card.active {
        border-color: #fbbf24;
        border-left: 5px solid #f59e0b;
        background: linear-gradient(95deg, #1e3154 0%, #152238 100%);
    }

    .fee-cat-card .fp-cat-inner {
        display: grid !important;
        grid-template-columns: 58px minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 11px;
        row-gap: 2px;
        align-items: center;
        padding: 9px 11px;
        text-align: left !important;
    }

    .fee-cat-card .fp-card-illus-stage {
        order: 0;
        grid-column: 1;
        grid-row: 1 / 3;
        width: 58px;
        height: 58px;
        margin: 0;
        border: 1px solid rgba(16, 32, 64, 0.08);
        border-radius: 11px;
        flex-shrink: 0;
    }

    .fee-cat-card .fp-card-illus-svg {
        height: 52px;
        max-width: 54px;
        filter: drop-shadow(0 4px 6px rgba(16, 32, 64, 0.14));
    }

    .fee-cat-card .fp-cat-top {
        grid-column: 2 / 4;
        grid-row: 1;
        padding: 0;
        margin-bottom: 1px !important;
    }

    .fee-cat-card .aicte-document-category {
        font-size: 0.61rem;
        margin-bottom: 0;
        letter-spacing: 0.055em;
    }

    .fee-cat-card .fee-cat-status-pill {
        font-size: 0.59rem;
        padding: 2px 7px;
    }

    .fee-cat-card .fp-cat-body {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        min-width: 0;
        text-align: left !important;
    }

    .fee-cat-card .aicte-document-name {
        font-size: 0.9rem;
        line-height: 1.2;
        margin: 0 0 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .fee-cat-card .fp-doc-due-line {
        font-size: 0.77rem;
        line-height: 1.2;
        margin: 0;
    }

    .fee-cat-card .fp-doc-sub {
        font-size: 0.7rem;
        line-height: 1.22;
        margin: 1px 0 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .fee-cat-card .aicte-document-open {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
        margin: 0;
        min-height: 30px;
        padding: 5px 10px;
        font-size: 0.71rem;
        gap: 5px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 575px) {
    .fp-portal-shell {
        margin: 8px auto 18px !important;
    }

    .approvals-section .section-title {
        font-size: 1.02rem;
        margin-bottom: 8px;
    }

    .aicte-register-head {
        align-items: center;
        padding: 10px 12px;
        gap: 8px;
    }

    .aicte-register-count {
        padding: 4px 8px;
        font-size: 0.68rem;
    }

    .aicte-register-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
        font-size: 0.92rem;
    }

    .aicte-register-title h3 {
        font-size: 0.92rem;
    }

    .aicte-register-title p {
        font-size: 0.75rem;
        margin-top: 1px;
    }

    .aicte-document-card {
        min-height: 0;
        padding: 13px;
    }

    .fee-top-fields-grid,
    #paymentFormCard.payment-form-initial .fee-top-fields-grid {
        grid-template-columns: 1fr;
    }

    #hallTicketNo,
    #dueHallTicketInput,
    .fp-portal-shell input.form-control {
        font-size: 16px;
        min-height: 44px;
    }

    .fp-verify-btn {
        width: 100%;
        min-height: 46px;
    }
}

@media (max-width: 390px) {
    .fee-cat-card .fp-cat-inner {
        grid-template-columns: 50px minmax(0, 1fr) auto;
        column-gap: 9px;
        padding: 8px 9px;
    }

    .fee-cat-card .fp-card-illus-stage {
        width: 50px;
        height: 50px;
        border-radius: 9px;
    }

    .fee-cat-card .fp-card-illus-svg {
        max-width: 46px;
    }

    .fee-cat-card .aicte-document-name {
        font-size: 0.85rem;
    }

    .fee-cat-card .aicte-document-open {
        padding: 4px 8px;
        font-size: 0.68rem;
    }
}

.custom-fee-option .rvit-oval-burst-badge.fee-type-new-badge,
.custom-fee-trigger .rvit-oval-burst-badge.fee-type-new-badge {
    width: auto !important;
    min-width: 40px !important;
    height: 20px !important;
    margin: 0 0 0 8px !important;
    padding: 0 7px !important;
    border: 1px solid #b91c1c !important;
    border-radius: 999px !important;
    background: #dc2626 !important;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.25) !important;
    animation: none !important;
    opacity: 1 !important;
}

.custom-fee-option .fee-type-new-badge svg,
.custom-fee-trigger .fee-type-new-badge svg {
    display: none !important;
}

.custom-fee-option .fee-type-new-badge .burst-text,
.custom-fee-trigger .fee-type-new-badge .burst-text {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.045em !important;
    text-shadow: none !important;
    line-height: 1 !important;
}

.custom-fee-option:hover .fee-type-new-badge,
.custom-fee-option.selected .fee-type-new-badge {
    border-color: #ffffff !important;
    background: #ffffff !important;
}

.custom-fee-option:hover .fee-type-new-badge .burst-text,
.custom-fee-option.selected .fee-type-new-badge .burst-text {
    color: #b91c1c !important;
}

.custom-fee-option.due-pending:hover .fee-type-new-badge,
.custom-fee-option.due-pending.selected .fee-type-new-badge {
    border-color: #ffffff !important;
    background: #ffffff !important;
}

.custom-fee-option.due-pending:hover .fee-type-new-badge .burst-text,
.custom-fee-option.due-pending.selected .fee-type-new-badge .burst-text {
    color: #b91c1c !important;
}

.form-control-custom,
.form-select-custom,
.supply-subject-select {
    min-height: 46px;
    border-radius: 12px;
}

.custom-dropdown-trigger,
.custom-fee-trigger {
    min-height: 46px;
    border-radius: 12px;
}

.form-control-custom:focus-visible,
.form-select-custom:focus-visible,
.supply-subject-select:focus-visible,
.custom-dropdown-trigger:focus-visible,
.custom-fee-trigger:focus-visible,
.btn-get-links:focus-visible {
    outline: 3px solid rgba(180, 83, 9, 0.38);
    outline-offset: 2px;
}

html[data-theme="dark"] #paymentFormHeader {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .portal-mini-pill {
    background: #17243b;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .fee-card-premium {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    #paymentFormHeader {
        min-height: 0;
        padding: 16px !important;
        border-radius: 17px;
    }

    .portal-main-heading {
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    .portal-main-heading>i {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 12px !important;
    }

    .digital-rvit-badge {
        margin-left: 52px;
        padding: 7px 11px;
        white-space: normal !important;
    }

    .portal-quick-strip {
        margin: 12px 0 14px;
    }
}

@media (max-width: 480px) {
    .portal-main-heading {
        align-items: flex-start !important;
    }

    .portal-heading-text {
        font-size: 1.05rem !important;
        letter-spacing: -0.025em;
    }

    .digital-rvit-badge {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    #paymentFormHeader *,
    .fee-card-premium *,
    .portal-mini-pill,
    .fee-cat-card {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================================
   STATUS PILLS, WORKSPACE & DARK MODE PARITY
   ===================================================================== */
.fee-cat-status-pill {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.3;
}

.fee-pill-danger {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border-color: #fecaca !important;
}

.fee-pill-success {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

.fee-pill-info {
    background: #eff3fa !important;
    color: #19315e !important;
    border-color: #cbd5e1 !important;
}

.fee-pill-warning {
    background: #fefce8 !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}

.fee-pill-primary {
    background: #eef2ff !important;
    color: #102040 !important;
    border-color: #cbd5e1 !important;
}

.fee-pill-neutral {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

.fee-workspace-panel {
    margin-top: 1.1rem;
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    position: relative;
}

#workspaceBadgeIcon {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px;
}

html[data-theme="dark"] .aicte-register {
    background: #131e36;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .aicte-register-head {
    background: linear-gradient(120deg, #16233e, #1a2845);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .aicte-register-title h3,
html[data-theme="dark"] .aicte-document-name {
    color: #f8fafc;
}

html[data-theme="dark"] .aicte-register-title p,
html[data-theme="dark"] .fp-doc-sub {
    color: #cbd5e1;
}

html[data-theme="dark"] .aicte-register-count {
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fbbf24;
}

html[data-theme="dark"] .aicte-document-card {
    background: #17243b;
    border-color: #334155;
}

html[data-theme="dark"] .aicte-document-card:hover {
    border-color: #fbbf24;
}

html[data-theme="dark"] .aicte-document-card.active {
    background: linear-gradient(180deg, #1d2d4a 0%, #152238 100%);
    border-color: #fbbf24;
}

html[data-theme="dark"] .fp-card-illus-stage,
html[data-theme="dark"] .fee-cat-card[data-cat] .fp-card-illus-stage {
    background: radial-gradient(circle at 50% 45%, #1d2f52 0%, #121e36 68%, #0d172a 100%);
    border-color: rgba(148, 163, 184, 0.18);
    border-bottom-color: rgba(251, 191, 36, 0.14);
    box-shadow: none;
}

html[data-theme="dark"] .fp-card-illus-stage::before {
    background-image: radial-gradient(rgba(251, 191, 36, 0.14) 1px, transparent 1px);
    opacity: 0.4;
}

html[data-theme="dark"] .fp-card-illus-svg {
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
}

html[data-theme="dark"] .aicte-document-card:hover .fp-card-illus-stage,
html[data-theme="dark"] .aicte-document-card.active .fp-card-illus-stage,
html[data-theme="dark"] .fee-cat-card[data-cat]:hover .fp-card-illus-stage,
html[data-theme="dark"] .fee-cat-card[data-cat].active .fp-card-illus-stage {
    background: radial-gradient(circle at 50% 40%, #233860 0%, #162647 72%, #111c35 100%);
    border-bottom-color: rgba(251, 191, 36, 0.48);
}

html[data-theme="dark"] .aicte-document-category {
    color: #fbbf24;
}

html[data-theme="dark"] .aicte-document-open {
    background: #0f172a;
    color: #f8fafc;
    border-color: rgba(251, 191, 36, 0.35);
}

html[data-theme="dark"] .aicte-document-card.active .aicte-document-open {
    background: #fbbf24;
    color: #102040;
    border-color: #fbbf24;
}

html[data-theme="dark"] .aicte-document-card.active .aicte-document-open i {
    color: #102040;
}

html[data-theme="dark"] .fp-confirm-box {
    background: #17243b;
    border-color: rgba(251, 191, 36, 0.4);
    border-left-color: #fbbf24;
}

html[data-theme="dark"] .fee-present-year-box {
    background: #17243b !important;
    border-color: #334155 !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .fee-workspace-panel {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .fee-pill-danger {
    background: rgba(185, 28, 28, 0.22) !important;
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
}

html[data-theme="dark"] .fee-pill-success {
    background: rgba(4, 120, 87, 0.22) !important;
    color: #6ee7b7 !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
}

html[data-theme="dark"] .fee-pill-info {
    background: rgba(25, 49, 94, 0.4) !important;
    color: #e2e8f0 !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}

html[data-theme="dark"] .fee-pill-warning {
    background: rgba(180, 83, 9, 0.24) !important;
    color: #fde68a !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
}

html[data-theme="dark"] .fee-pill-primary {
    background: rgba(16, 32, 64, 0.55) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}

html[data-theme="dark"] .fee-pill-neutral {
    background: rgba(51, 65, 85, 0.6) !important;
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}

.custom-fee-option:hover .text-muted,
.custom-fee-option.selected .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* === Check Due Cards (Desktop + Compact 4-Row Vertical Stack on Mobile) === */
.cd-due-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cd-due-card:hover {
    transform: translateY(-2px);
    border-color: #f59e0b !important;
    box-shadow: 0 10px 24px rgba(16, 32, 64, 0.1) !important;
}

.cd-due-card:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

.fp-no-due-callout {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1.5px solid #86efac;
    border-left: 4px solid #059669;
    border-radius: 14px;
    padding: 15px 18px;
}

.fp-no-due-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #059669;
    color: #ffffff;
    font-size: 1.1rem;
}

.fp-explore-all-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 10px 14px;
}

html[data-theme="dark"] .fp-no-due-callout {
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.28) 0%, #111c33 100%);
    border-color: rgba(52, 211, 153, 0.4);
    border-left-color: #34d399;
}

html[data-theme="dark"] .fp-no-due-callout h6,
html[data-theme="dark"] .fp-no-due-callout .text-navy {
    color: #f8fafc !important;
}

html[data-theme="dark"] .fp-explore-all-bar {
    background: #17243b;
    border-color: #334155;
}

@media (max-width: 767px) {
    #checkDueInlineResult .cd-due-grid {
        --bs-gutter-y: 8px;
        margin-top: 8px !important;
    }

    #checkDueInlineResult .cd-due-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 10px;
        padding: 11px 12px !important;
        min-height: 0 !important;
        border-radius: 12px !important;
        border-left: 4px solid #dc2626 !important;
        box-shadow: 0 3px 10px rgba(16, 32, 64, 0.06) !important;
    }

    #checkDueInlineResult .cd-due-col[data-cd-status="eligible"] .cd-due-card {
        border-left-color: #059669 !important;
    }

    #checkDueInlineResult .cd-due-info {
        min-width: 0;
    }

    #checkDueInlineResult .cd-due-info .aicte-document-category {
        font-size: 0.62rem;
        margin-bottom: 1px;
        display: block;
    }

    #checkDueInlineResult .cd-due-info .aicte-document-name {
        font-size: 1.05rem;
        line-height: 1.15;
        margin: 0 0 2px;
    }

    #checkDueInlineResult .cd-due-info .fp-doc-sub {
        font-size: 0.72rem;
        line-height: 1.2;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #checkDueInlineResult .cd-due-info .cd-short-sub,
    .fee-cat-card .fp-doc-sub:has(.fp-short-tags) {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    #checkDueInlineResult .cd-due-btn {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 0.72rem;
        white-space: nowrap;
        flex-shrink: 0;
        margin: 0;
    }

    .fp-explore-all-bar {
        padding: 10px 12px;
    }
}

#checkDueInlineResult .cd-due-col[data-cd-status="locked"] .cd-due-card {
    border-left-color: #dc2626 !important;
}

#checkDueInlineResult .cd-due-btn.is-locked {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
}

html[data-theme="dark"] #checkDueInlineResult .cd-due-btn.is-locked {
    background: rgba(185, 28, 28, 0.2) !important;
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
}

/* === Tailored Short-Form Fee Chips (Active & Eligible Per Student) === */
.fp-short-tags {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.fp-short-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
    white-space: nowrap;
}

.fp-short-chip.is-misc {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.fp-short-chip.is-exam {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.fp-short-chip.is-locked {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

html[data-theme="dark"] .fp-short-chip.is-misc {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.38);
}

html[data-theme="dark"] .fp-short-chip.is-exam {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.38);
}

html[data-theme="dark"] .fp-short-chip.is-locked {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.4);
}

@media (max-width: 767px) {
    .fp-short-tags {
        gap: 4px;
    }

    .fp-short-chip {
        padding: 1px 6.5px;
        font-size: 0.65rem;
    }
}

/* =====================================================================
   SHARED FEEPORTAL UTILITIES, PASSWORD TOGGLE, ADMIN & HOD DASHBOARDS
   Used commonly across index.php, fee-payments-admin.php, generate-link.php
   ===================================================================== */

.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.px-1\.5 { padding-left: 0.375rem !important; padding-right: 0.375rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.p-1\.5 { padding: 0.375rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.p-3\.5 { padding: 0.875rem !important; }
.gap-0\.5 { gap: 0.125rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.mt-1\.5 { margin-top: 0.375rem !important; }
.me-0\.5 { margin-right: 0.125rem !important; }
.me-1\.5 { margin-right: 0.375rem !important; }
.ms-0\.5 { margin-left: 0.125rem !important; }
.ms-1\.5 { margin-left: 0.375rem !important; }
.font-bold { font-weight: 700 !important; }
.fw-extrabold { font-weight: 800 !important; }
.fw-black { font-weight: 900 !important; }
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05) !important; }
.shadow-2xs { box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.02) !important; }

/* Shared Password Toggle Group */
.fp-eye-btn {
    border: 1.5px solid #cbd5e1;
    border-left: 0;
    background: #f8fafc;
    color: #475569;
    border-radius: 0 10px 10px 0 !important;
    padding: 0 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fp-eye-btn:hover {
    color: #102040;
    background: #fffbeb;
}

.fp-input-has-eye {
    border-right: 0 !important;
    border-radius: 10px 0 0 10px !important;
}

html[data-theme="dark"] .fp-eye-btn {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}

html[data-theme="dark"] .fp-eye-btn:hover {
    color: #fbbf24;
    background: #1e293b;
}

/* Centered Auth Card Wrapper */
.fp-admin-login-wrap,
.fp-hod-login-wrap {
    max-width: 500px;
    margin: 16px auto 34px;
}

.fp-admin-shell,
html body .fp-admin-shell.container-fluid {
    max-width: none !important;
    width: 100% !important;
    padding-left: clamp(8px, 0.9vw, 16px) !important;
    padding-right: clamp(8px, 0.9vw, 16px) !important;
    margin: 14px auto 34px !important;
}

html body .fp-admin-shell #adminTabContent.tab-content {
    padding: 14px 16px !important;
    border-radius: 16px;
}

.fp-hod-shell {
    max-width: 1320px;
    width: 100%;
    margin: 18px auto 38px;
}

/* Fee Payments Admin Control Dashboard */
.fp-admin-hub-sync {
    background: linear-gradient(135deg, #102040 0%, #1e293b 100%) !important;
    border-left: 6px solid #fbbf24 !important;
}

.fp-admin-hub-hod {
    background: linear-gradient(135deg, #102040 0%, #0369a1 100%) !important;
    border-left: 6px solid #38bdf8 !important;
}

.fp-admin-search-clear {
    background: #ffffff;
}

.admin-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d97706, #fbbf24, #0284c7);
}

.stat-badge-box {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.stat-badge-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.3);
}

.stat-number {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--navy, #0f172a);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fp-admin-shell .list-group-item {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.88rem;
    border-color: #f1f5f9;
}

.admin-maxsem-select {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 1.75rem 0.25rem 0.65rem !important;
    background-color: #0f172a !important;
    color: #fbbf24 !important;
    border: 1px solid #334155 !important;
    border-radius: 6px !important;
    cursor: pointer;
    min-width: 120px;
    line-height: 1.3;
}

.table-admin {
    font-size: 0.85rem;
}

.table-admin th {
    background: #0f172a;
    color: #fbbf24;
    font-weight: 700;
    padding: 0.5rem 0.55rem;
    white-space: nowrap;
    font-size: 0.8rem;
    border-bottom: 2px solid #d97706;
}

.table-admin td {
    vertical-align: middle;
    padding: 0.5rem 0.55rem;
}

.fp-admin-date-cell {
    white-space: nowrap;
    font-size: 0.77rem;
}

.fp-admin-amount-col {
    min-width: 155px;
    max-width: 240px;
}

.table-admin tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}

.table-admin tbody tr:hover {
    background-color: #f1f5f9 !important;
}

.table-admin .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
}

.fp-fine-preview-card {
    background: #fffdf5;
    border: 1px solid #fde68a !important;
    font-size: 0.72rem;
    max-width: 215px;
    line-height: 1.25;
}

.fp-fine-preview-card-head {
    border-bottom: 1px solid #fef3c7 !important;
}

#adminTab .nav-link,
#statusFilterTabs .nav-link {
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    font-size: 0.88rem;
    padding: 0.5rem 1.2rem;
    transition: all 0.25s ease;
}

#adminTab #hod-links-tab {
    border-color: #0284c7;
}

#adminTab .nav-link.active,
#statusFilterTabs .nav-link.active {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #fbbf24 !important;
    border-color: #0f172a !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

#adminTab .nav-link.active i,
#statusFilterTabs .nav-link.active i {
    color: #fbbf24 !important;
}

#adminTab .nav-link:hover:not(.active),
#statusFilterTabs .nav-link:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Checkbox Multi-Select Component */
.checkbox-group-box {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 8px 10px;
    max-height: 160px;
    overflow-y: auto;
}

.checkbox-item-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 9px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-size: 0.84rem;
    font-weight: 500;
    color: #334155;
}

.checkbox-item-custom:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.checkbox-item-custom input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #0f172a;
    cursor: pointer;
}

.checkbox-item-custom.wildcard-item {
    background: #fef3c7;
    border-color: #fde68a;
    font-weight: 700;
    color: #92400e;
}

/* HOD Payment Link Generator Portal Styles */
.portal-main-heading {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

.portal-main-heading > i {
    flex-shrink: 0 !important;
    background: #102040;
    color: #f59e0b;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.portal-heading-text {
    display: inline !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 800 !important;
    color: #102040 !important;
    line-height: 1.25 !important;
    font-size: 1.55rem;
}

.portal-live-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4.5px !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    font-size: 0.65rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.7px !important;
    text-transform: uppercase !important;
    padding: 3px 8px !important;
    border-radius: 50px !important;
    vertical-align: 2px !important;
}

.digital-rvit-badge {
    background: #102040;
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.portal-quick-strip {
    margin: 10px 0 16px 0;
}

.portal-mini-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-submit-main {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 12px 32px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-main:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.45);
    color: #ffffff;
}

.badge-fixed-amount {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #bae6fd;
}

.badge-custom-amount {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #fde68a;
}

.hod-tabs-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.hod-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hod-tab-btn:hover:not(.active) {
    color: #102040;
    background: rgba(255, 255, 255, 0.6);
}

.hod-tab-btn.active {
    color: #102040;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(16, 32, 64, 0.1);
}

.batch-summary-stat {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
}

.batch-summary-stat .stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #102040;
    line-height: 1.2;
}

.batch-summary-stat .stat-lbl {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.recent-audit-toggle-card {
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.recent-audit-toggle-card:hover {
    border-color: #102040;
    box-shadow: 0 4px 14px rgba(16, 32, 64, 0.08);
}

.fp-hod-shell input[type=number]::-webkit-inner-spin-button,
.fp-hod-shell input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.fp-hod-shell input[type=number] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

#singleLinkSuccessModal {
    z-index: 2147483647 !important;
}

#singleLinkSuccessModal .modal-dialog {
    margin-top: 145px !important;
    margin-bottom: 40px !important;
    max-width: 680px !important;
}

@media (max-width: 768px) {
    #singleLinkSuccessModal .modal-dialog {
        margin-top: 125px !important;
    }

    #adminTab {
        flex-wrap: wrap !important;
    }

    #adminTab .nav-link,
    #statusFilterTabs .nav-link {
        padding: 0.42rem 0.9rem;
        font-size: 0.82rem;
    }

    .hod-tabs-nav {
        flex-direction: column;
    }

    .hod-tab-btn {
        width: 100%;
    }
}

/* Dark Theme Parity for FeePayments Admin & HOD Portals */
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .fp-admin-shell .admin-card.bg-white,
html[data-theme="dark"] .fp-admin-shell .border.bg-white,
html[data-theme="dark"] .fp-admin-shell .fine-slab-row.bg-white,
html[data-theme="dark"] .fp-hod-shell .bg-white,
html[data-theme="dark"] .fp-hod-shell .batch-summary-stat,
html[data-theme="dark"] .fp-hod-shell .recent-audit-toggle-card {
    background: #141f35 !important;
    background-color: #141f35 !important;
    border-color: rgba(251, 191, 36, 0.25) !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .stat-badge-box {
    background: #141f35;
    border-color: rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
}

html[data-theme="dark"] .stat-number,
html[data-theme="dark"] .batch-summary-stat .stat-num,
html[data-theme="dark"] .portal-heading-text {
    color: #f8fafc !important;
}

html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .batch-summary-stat .stat-lbl {
    color: #94a3b8;
}

html[data-theme="dark"] .fp-admin-shell .list-group-item {
    background: #18253d;
    border-color: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

html[data-theme="dark"] .fp-admin-shell .text-dark,
html[data-theme="dark"] .fp-admin-shell .text-slate-700,
html[data-theme="dark"] .fp-admin-shell .text-slate-800,
html[data-theme="dark"] .fp-hod-shell .text-dark {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .fp-admin-shell .bg-light,
html[data-theme="dark"] .fp-hod-shell .bg-light,
html[data-theme="dark"] .fp-admin-shell .checkbox-group-box {
    background: #0f172a !important;
    background-color: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .fp-admin-shell .input-group-text.bg-white,
html[data-theme="dark"] .fp-admin-search-clear {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.32) !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .table-admin {
    --bs-table-bg: #111b30;
    --bs-table-color: #e2e8f0;
    --bs-table-border-color: rgba(148, 163, 184, 0.2);
    --bs-table-hover-bg: #1b2a47;
    color: #e2e8f0;
}

html[data-theme="dark"] .table-admin tbody tr:nth-of-type(even) {
    background-color: #16233d;
}

html[data-theme="dark"] .table-admin tbody tr:hover {
    background-color: #1e2f4f !important;
}

html[data-theme="dark"] .table-admin .badge.bg-light,
html[data-theme="dark"] .fp-admin-shell .badge.bg-light {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
}

html[data-theme="dark"] .fp-fine-preview-card {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(251, 191, 36, 0.32) !important;
    color: #e2e8f0;
}

html[data-theme="dark"] .fp-fine-preview-card-head {
    border-bottom-color: rgba(251, 191, 36, 0.22) !important;
}

html[data-theme="dark"] #adminTab .nav-link,
html[data-theme="dark"] #statusFilterTabs .nav-link {
    background: #141f35;
    border-color: rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

html[data-theme="dark"] #adminTab .nav-link:hover:not(.active),
html[data-theme="dark"] #statusFilterTabs .nav-link:hover:not(.active) {
    background: #1d2d4a;
    border-color: rgba(251, 191, 36, 0.45);
    color: #fbbf24;
}

html[data-theme="dark"] .checkbox-item-custom {
    background: #141f35;
    border-color: rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

html[data-theme="dark"] .checkbox-item-custom:hover {
    background: #1d2d4a;
    border-color: #fbbf24;
}

html[data-theme="dark"] .checkbox-item-custom.wildcard-item {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.38);
    color: #fde68a;
}

html[data-theme="dark"] .hod-tabs-nav {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.25);
}

html[data-theme="dark"] .hod-tab-btn {
    color: #cbd5e1;
}

html[data-theme="dark"] .hod-tab-btn.active {
    background: #1b2a47;
    color: #fbbf24;
}

html[data-theme="dark"] .portal-mini-pill {
    background: #141f35;
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

html[data-theme="dark"] .modal-content {
    background: #141f35;
    color: #e2e8f0;
}

html[data-theme="dark"] .modal-footer.bg-light,
html[data-theme="dark"] .modal-body.bg-light {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

#checkDueModal,
#feeRestrictionModal {
    z-index: 2147483647 !important;
}

#checkDueModal .modal-dialog {
    margin-top: 145px !important;
    margin-bottom: 40px !important;
    max-width: 440px !important;
}

#feeRestrictionModal .modal-dialog {
    margin-top: 145px !important;
    margin-bottom: 40px !important;
    max-width: 480px !important;
}

@media (max-width: 768px) {
    #checkDueModal .modal-dialog,
    #feeRestrictionModal .modal-dialog {
        margin-top: 125px !important;
    }
}

html[data-theme="dark"] .fp-hod-shell .table-light {
    --bs-table-bg: #0f172a;
    --bs-table-color: #fbbf24;
    --bs-table-border-color: rgba(148, 163, 184, 0.25);
    color: #fbbf24;
}

/* Standard "Other Fees" Fallback Badge & Misc Student Guidance Callout */
.fp-std-fee-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    white-space: nowrap;
}

.custom-fee-option.selected .fp-std-fee-pill,
.custom-fee-option:hover .fp-std-fee-pill {
    background: rgba(255, 255, 255, 0.94);
    color: #102040;
    border-color: #ffffff;
}

.fp-other-fee-subtext {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
    margin-top: 2px;
}

.custom-fee-option.selected .fp-other-fee-subtext,
.custom-fee-option:hover .fp-other-fee-subtext {
    color: rgba(255, 255, 255, 0.9);
}

.fp-misc-guidance-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 10px;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    background: linear-gradient(120deg, #fffbeb 0%, #fef9c3 100%);
    color: #1e293b;
    font-size: 0.82rem;
    line-height: 1.48;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.07);
}

.fp-misc-guidance-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #102040;
    color: #fbbf24;
    font-size: 0.78rem;
    margin-top: 1px;
}

html[data-theme="dark"] .fp-misc-guidance-note {
    background: linear-gradient(120deg, rgba(245, 158, 11, 0.14) 0%, rgba(30, 41, 59, 0.92) 100%);
    border-color: rgba(251, 191, 36, 0.35);
    border-left-color: #fbbf24;
    color: #e2e8f0;
}

html[data-theme="dark"] .fp-std-fee-pill {
    background: rgba(245, 158, 11, 0.22);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.45);
}

html[data-theme="dark"] .fp-other-fee-subtext {
    color: #94a3b8;
}

/* Payment Submitted Modal Highlighting (Amount + Fee Type + Email Receipt) */
.fp-receipt-email-highlight {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 6px;
    background: #fef3c7;
    color: #102040;
    border: 1px solid #f59e0b;
    font-weight: 800;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.84rem;
    word-break: break-all;
}

.fp-status-amount-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    font-weight: 800;
}

html[data-theme="dark"] #paymentStatusModal .bg-light {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
    color: #e2e8f0;
}

html[data-theme="dark"] .fp-receipt-email-highlight {
    background: rgba(245, 158, 11, 0.22);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.5);
}

html[data-theme="dark"] .fp-status-amount-pill {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.45);
}

/* Post-Payment Live Due Refresh Banner on Check Due Tab */
.fp-postpay-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    background: linear-gradient(125deg, #ecfdf5 0%, #f0f9ff 100%);
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}

.fp-postpay-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #fbbf24;
    font-size: 0.92rem;
    margin-top: 1px;
}

.fp-postpay-close {
    font-size: 0.72rem;
}

.fp-postpay-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.fp-postpay-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #102040;
}

html[data-theme="dark"] .fp-postpay-banner {
    background: linear-gradient(125deg, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: rgba(52, 211, 153, 0.35);
    border-left-color: #10b981;
    color: #e2e8f0;
}

html[data-theme="dark"] .fp-postpay-banner .text-navy {
    color: #f8fafc !important;
}

html[data-theme="dark"] .fp-postpay-pill {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.28);
    color: #f8fafc;
}

/* Remove spiral-notebook-theme 1400px .site-main-content cap when hosting the Admin Dashboard */
html body.spiral-notebook-theme .site-main-content:has(.fp-admin-shell),
html body.fp-admin-page .site-main-content {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Universal Bootstrap Modal Stacking Fix (Admin, HOD & Student Portals)
   Keeps .modal-backdrop strictly below .modal and lifts all modals cleanly above fixed RVIT header/sidebars */
.modal-backdrop,
.modal-backdrop.show {
    z-index: 200000010 !important;
    background-color: rgba(6, 11, 25, 0.78) !important;
}

.modal,
.modal.show,
#socialGateModal {
    z-index: 200000020 !important;
}

#razorpayModal {
    z-index: 200000030 !important;
}

body.rvit-payment-status-open .modal-backdrop.show {
    z-index: 2147483600 !important;
}

#paymentStatusModal {
    z-index: 2147483601 !important;
}

#noDuePopupModal,
#checkDueModal,
#feeRestrictionModal,
#singleLinkSuccessModal {
    z-index: 2147483647 !important;
}

#noDuePopupModal .modal-dialog {
    max-width: 440px;
    margin: 1.25rem auto;
}

/* Keep tall Admin Add/Edit/Duplicate rule modals comfortably sized with fixed header & footer */
.fp-admin-rule-modal .modal-dialog {
    max-width: 720px;
    margin: 1rem auto;
}

.fp-admin-rule-modal .modal-body {
    max-height: calc(100vh - 175px);
    overflow-y: auto;
}

html[data-theme="dark"] .modal .checkbox-group-box {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    color: #e2e8f0 !important;
}

/* Payment Status / Receipt Modal Header Logo, DB QR Verification Box & Open Mail CTA */
.fp-receipt-logo-badge {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    background: #ffffff;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(251, 191, 36, 0.7);
}

.fp-receipt-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fp-receipt-inst-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.fp-receipt-qr-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 6px 4px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #fbbf24;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.fp-receipt-qr-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.35);
}

.fp-receipt-qr-box {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    line-height: 0;
}

.fp-receipt-qr-box img,
.fp-receipt-qr-box canvas {
    width: 58px !important;
    height: 58px !important;
    display: block;
}

.fp-receipt-qr-label {
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #0c1e3d;
    line-height: 1;
    white-space: nowrap;
}

.fp-open-mail-btn {
    background: linear-gradient(135deg, #102040 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border: 0;
    padding: 5px 14px;
    font-size: 0.78rem;
    box-shadow: 0 3px 10px rgba(29, 78, 216, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fp-open-mail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(29, 78, 216, 0.28);
    color: #fbbf24 !important;
}

html[data-theme="dark"] .fp-open-mail-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .fp-receipt-logo-badge {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .fp-receipt-qr-box,
    .fp-receipt-qr-box img,
    .fp-receipt-qr-box canvas {
        width: 48px !important;
        height: 48px !important;
    }
}
