
/* =========================================================
   GOWTHAMRAJ NETWORK
   PAYMENT & VERIFICATION
   MODERN PREMIUM UI
========================================================= */

:root {
    --primary-color: #5b21b6;
    --primary-light: #7c3aed;
    --primary-dark: #3b0764;

    --secondary-color: #f59e0b;
    --success-color: #16a34a;

    --bg-main: #f6f7fb;
    --card-bg: rgba(255, 255, 255, 0.94);

    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;

    --border-color: #e5e7eb;

    --primary-gradient:
        linear-gradient(
            135deg,
            #4c1d95 0%,
            #6d28d9 50%,
            #7c3aed 100%
        );

    --gold-gradient:
        linear-gradient(
            135deg,
            #f59e0b,
            #fbbf24
        );

    --shadow-sm:
        0 4px 15px rgba(17, 24, 39, 0.05);

    --shadow-md:
        0 15px 40px rgba(17, 24, 39, 0.08);

    --shadow-lg:
        0 25px 70px rgba(76, 29, 149, 0.15);

    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        "Work Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text-primary);

    line-height: 1.6;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(124, 58, 237, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(245, 158, 11, 0.10),
            transparent 25%
        ),
        var(--bg-main);

    position: relative;

    overflow-x: hidden;
}

/* =========================================================
   ANIMATED BACKGROUND
========================================================= */

body::before,
body::after {
    content: "";

    position: fixed;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    pointer-events: none;

    z-index: -1;

    filter: blur(30px);
}

body::before {
    top: -130px;
    left: -100px;

    background: rgba(124, 58, 237, 0.10);

    animation:
        floatingShape 9s ease-in-out infinite;
}

body::after {
    bottom: -120px;
    right: -100px;

    background: rgba(245, 158, 11, 0.08);

    animation:
        floatingShape 11s ease-in-out infinite reverse;
}

@keyframes floatingShape {

    0%,
    100% {
        transform:
            translate(0, 0)
            scale(1);
    }

    50% {
        transform:
            translate(35px, -25px)
            scale(1.12);
    }
}

/* =========================================================
   PAGE CONTAINER
========================================================= */

.container {
    max-width: 1180px;

    position: relative;

    animation:
        pageEnter 0.8s
        cubic-bezier(0.16, 1, 0.3, 1)
        forwards;
}

@keyframes pageEnter {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   BRAND HEADER
========================================================= */

header {
    position: relative;

    animation:
        headerReveal 0.9s
        cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes headerReveal {

    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-title {
    margin-bottom: 8px;

    font-size: 2.4rem;

    font-weight: 700;

    letter-spacing: -0.045em;

    background:
        linear-gradient(
            135deg,
            #111827,
            #4c1d95,
            #7c3aed
        );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-size: 200% auto;

    animation:
        gradientText 5s ease infinite;
}

@keyframes gradientText {

    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.brand-subtitle {
    max-width: 600px;

    margin: 0.7rem auto 0;

    color: var(--text-secondary);

    font-size: 0.95rem;

    line-height: 1.7;
}

/* =========================================================
   COMMON CARD
========================================================= */

.nav-card,
.main-card {
    position: relative;

    background: var(--card-bg);

    border-radius: var(--radius-lg);

    border: 1px solid rgba(255, 255, 255, 0.8);

    box-shadow: var(--shadow-md);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.nav-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-lg);
}

.main-card {
    overflow: hidden;
}

.main-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #4c1d95,
            #7c3aed,
            #f59e0b
        );

    background-size: 200% 100%;

    animation:
        gradientBar 4s linear infinite;
}

@keyframes gradientBar {

    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* =========================================================
   LEFT PAYMENT NAVIGATION
========================================================= */

.nav-header-label {
    display: block;

    margin-bottom: 15px;

    font-size: 0.72rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.12em;

    color: var(--text-secondary);
}

/* =========================================================
   PAYMENT OPTION
========================================================= */

.list-group-item-action {
    position: relative;

    padding: 16px 15px;

    border: 1px solid var(--border-color) !important;

    border-radius: var(--radius-md) !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        );

    color: var(--text-primary);

    overflow: hidden;

    transition:
        transform 0.35s
        cubic-bezier(0.16, 1, 0.3, 1),

        box-shadow 0.35s ease,

        border-color 0.35s ease,

        color 0.35s ease;
}

.list-group-item-action::before {
    content: "";

    position: absolute;

    top: 0;
    left: -110%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.65),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.7s ease;
}

.list-group-item-action:hover::before {
    left: 130%;
}

.list-group-item-action:hover {
    transform: translateY(-3px);

    color: var(--primary-color);

    border-color:
        rgba(124, 58, 237, 0.30) !important;

    box-shadow:
        0 12px 28px
        rgba(76, 29, 149, 0.09);

    text-decoration: none;
}

.list-group-item-action.active {
    background: var(--primary-gradient) !important;

    color: #ffffff !important;

    border-color: transparent !important;

    box-shadow:
        0 18px 35px
        rgba(91, 33, 182, 0.27);

    transform: translateY(-2px);
}

/* =========================================================
   ICON
========================================================= */

.icon-wrapper {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        rgba(124, 58, 237, 0.10);

    color: var(--primary-light);

    font-size: 17px;

    transition:
        transform 0.4s ease,
        background 0.4s ease,
        color 0.4s ease;
}

.list-group-item-action:hover
.icon-wrapper {
    transform:
        rotate(-8deg)
        scale(1.08);

    background:
        rgba(124, 58, 237, 0.15);
}

.list-group-item-action.active
.icon-wrapper {
    background:
        rgba(255, 255, 255, 0.20);

    color: #ffffff;

    animation:
        iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        box-shadow:
            0 0 0 0
            rgba(255, 255, 255, 0.15);
    }

    50% {
        box-shadow:
            0 0 0 7px
            rgba(255, 255, 255, 0.04);
    }
}

/* =========================================================
   STATUS PILL
========================================================= */

.status-pill {
    padding: 5px 10px;

    border-radius: 30px;

    background: #f1f5f9;

    color: var(--text-secondary);

    font-size: 0.64rem;

    font-weight: 700;

    letter-spacing: 0.04em;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.list-group-item-action:hover
.status-pill {
    transform: scale(1.05);
}

.list-group-item-action.active
.status-pill {
    background:
        rgba(255, 255, 255, 0.20);

    color: #ffffff;
}

/* =========================================================
   AMOUNT DISPLAY
========================================================= */

.fee-display-card {
    position: relative;

    padding: 27px 30px;

    border-radius: 18px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #3b0764 0%,
            #5b21b6 45%,
            #7c3aed 100%
        );

    background-size: 200% 200%;

    box-shadow:
        0 20px 45px
        rgba(91, 33, 182, 0.22);

    overflow: hidden;

    animation:
        feeGradient 7s ease infinite;
}

@keyframes feeGradient {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.fee-display-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -70px;
    top: -90px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.08);

    animation:
        feeCircle 5s ease-in-out infinite;
}

@keyframes feeCircle {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}

.fee-title {
    position: relative;

    display: block;

    margin-bottom: 5px;

    font-size: 0.72rem;

    text-transform: uppercase;

    letter-spacing: 0.1em;

    font-weight: 500;

    opacity: 0.85;
}

.fee-amount {
    position: relative;

    font-size: 2.4rem;

    font-weight: 700;

    letter-spacing: -0.04em;

    animation:
        amountReveal 0.8s
        cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes amountReveal {

    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fee-badge {
    position: relative;

    padding: 9px 14px;

    border-radius: 30px;

    background:
        rgba(255, 255, 255, 0.13);

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(10px);

    font-size: 0.7rem;

    font-weight: 600;

    white-space: nowrap;
}

/* =========================================================
   PAYMENT DETAIL BOX
========================================================= */

.payment-details {
    animation:
        paymentReveal 0.55s
        cubic-bezier(0.16, 1, 0.3, 1)
        forwards;
}

@keyframes paymentReveal {

    from {
        opacity: 0;
        transform:
            translateY(20px)
            scale(0.98);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

.upi-box,
.qr-box {
    position: relative;

    border:
        1.5px dashed
        #d8dce5;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        );

    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.upi-box:hover,
.qr-box:hover {
    border-color:
        var(--primary-light);

    box-shadow:
        0 15px 35px
        rgba(76, 29, 149, 0.08);

    transform: translateY(-2px);
}

.upi-box h5,
.qr-box h5 {
    font-size: 1.15rem;

    font-weight: 700;
}

/* =========================================================
   UPI ICON
========================================================= */

.upi-box > i {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 70px;
    height: 70px;

    border-radius: 20px;

    background:
        rgba(124, 58, 237, 0.10);

    color:
        var(--primary-light) !important;

    animation:
        walletFloat 3s ease-in-out infinite;
}

@keyframes walletFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* =========================================================
   QR FRAME
========================================================= */

.qr-frame {
    position: relative;

    display: inline-block;

    padding: 15px;

    border-radius: 18px;

    background: #ffffff;

    border:
        1px solid
        var(--border-color);

    box-shadow:
        0 15px 40px
        rgba(17, 24, 39, 0.10);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.qr-frame::before {
    content: "";

    position: absolute;

    inset: -5px;

    border-radius: 22px;

    border:
        1px solid
        rgba(124, 58, 237, 0.12);

    pointer-events: none;
}

.qr-frame:hover {
    transform:
        translateY(-5px)
        scale(1.025);

    box-shadow:
        0 22px 50px
        rgba(76, 29, 149, 0.15);
}

.qr-img {
    width: 220px;
    max-width: 100%;

    display: block;

    border-radius: 10px;
}

/* =========================================================
   WARNING BOX
========================================================= */

.alert-warning-custom {
    position: relative;

    margin-bottom: 0;

    padding: 14px 17px;

    border:
        1px solid
        #fde68a;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #fffdf5,
            #fffbeb
        );

    color: #92400e;

    font-size: 0.82rem;

    box-shadow:
        0 8px 20px
        rgba(245, 158, 11, 0.06);

    animation:
        alertReveal 0.6s ease;
}

@keyframes alertReveal {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   SELECTION PROMPT
========================================================= */

#selectPrompt {
    min-height: 220px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(248, 250, 252, 0.8),
            rgba(255, 255, 255, 0.9)
        );
}

#selectPrompt p {
    font-size: 0.9rem;
}

.bounce-icon {
    color:
        var(--primary-light) !important;

    animation:
        handBounce 2.2s
        ease-in-out infinite;
}

@keyframes handBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-4px);
    }
}

/* =========================================================
   VERIFICATION SECTION
========================================================= */

#verificationFormSection {
    position: relative;

    border-top:
        1px solid
        #edf0f4 !important;

    animation:
        formReveal 0.65s
        cubic-bezier(0.16, 1, 0.3, 1)
        forwards;
}

@keyframes formReveal {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#verificationFormSection h5 {
    font-size: 1.1rem;

    color:
        var(--text-primary);
}

.step-number {
    position: relative;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        var(--primary-gradient);

    color: #ffffff;

    font-size: 0.9rem;

    font-weight: 700;

    box-shadow:
        0 8px 20px
        rgba(91, 33, 182, 0.25);

    animation:
        stepPulse 3s ease-in-out infinite;
}

@keyframes stepPulse {

    0%,
    100% {
        box-shadow:
            0 8px 20px
            rgba(91, 33, 182, 0.25);
    }

    50% {
        box-shadow:
            0 8px 28px
            rgba(91, 33, 182, 0.38);
    }
}

/* =========================================================
   FORM LABEL
========================================================= */

.form-group label {
    display: block;

    margin-bottom: 8px;

    color:
        var(--text-primary);

    font-size: 0.82rem;

    font-weight: 600;
}

/* =========================================================
   INPUT
========================================================= */

.form-control {
    min-height: 50px;

    padding:
        12px 15px;

    border:
        1px solid
        var(--border-color);

    border-radius:
        var(--radius-sm);

    background:
        #f9fafb;

    color:
        var(--text-primary);

    font-family:
        "Work Sans",
        sans-serif;

    font-size: 0.87rem;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

.form-control::placeholder {
    color:
        #a1a1aa;

    font-size: 0.82rem;
}

.form-control:hover {
    border-color:
        #c4b5fd;
}

.form-control:focus {
    background:
        #ffffff;

    border-color:
        var(--primary-light);

    box-shadow:
        0 0 0 4px
        rgba(124, 58, 237, 0.10);

    transform:
        translateY(-1px);

    outline: none;
}

/* =========================================================
   FILE UPLOAD
========================================================= */

.custom-file-box {
    position: relative;

    min-height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 13px 15px;

    border:
        1.5px dashed
        #d8dce5;

    border-radius:
        var(--radius-sm);

    background:
        linear-gradient(
            145deg,
            #fafafa,
            #f8fafc
        );

    overflow: hidden;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.custom-file-box:hover {
    border-color:
        var(--primary-light);

    background:
        #f5f3ff;

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(91, 33, 182, 0.06);
}

.custom-file-box:focus-within {
    border-color:
        var(--primary-light);

    box-shadow:
        0 0 0 4px
        rgba(124, 58, 237, 0.08);
}

.custom-file-input {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;

    z-index: 2;
}

.file-label-text {
    width: 100%;

    color:
        var(--text-secondary);

    font-size: 0.82rem;

    text-align: center;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    pointer-events: none;

    transition:
        color 0.3s ease;
}

.custom-file-box:hover
.file-label-text {
    color:
        var(--primary-color);
}

/* =========================================================
   PAY BUTTON
========================================================= */

.btn-pay-now,
.btn-primary-theme {
    position: relative;

    border: none !important;

    border-radius:
        var(--radius-sm);

    background:
        var(--primary-gradient);

    color: #ffffff !important;

    font-family:
        "Work Sans",
        sans-serif;

    font-weight: 600;

    box-shadow:
        0 12px 30px
        rgba(91, 33, 182, 0.20);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.btn-pay-now::before,
.btn-primary-theme::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left 0.7s ease;
}

.btn-pay-now:hover::before,
.btn-primary-theme:hover::before {
    left: 140%;
}

.btn-pay-now:hover,
.btn-primary-theme:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 18px 40px
        rgba(91, 33, 182, 0.30);

    color: #ffffff !important;
}

.btn-pay-now:active,
.btn-primary-theme:active {
    transform:
        translateY(-1px);
}

/* =========================================================
   SUBMIT BUTTON
========================================================= */

.btn-primary-theme {
    min-height: 56px;

    font-size: 0.92rem;

    letter-spacing: 0.01em;
}

/* =========================================================
   TEXT COLORS
========================================================= */

.text-primary {
    color:
        var(--primary-light) !important;
}

.text-muted {
    color:
        var(--text-secondary) !important;
}

/* =========================================================
   D-NONE ANIMATION COMPATIBILITY
========================================================= */

.d-none {
    display: none !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) {

    .nav-card {
        position: sticky;

        top: 25px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    body {
        background:
            radial-gradient(
                circle at 50% 0%,
                rgba(124, 58, 237, 0.10),
                transparent 35%
            ),
            var(--bg-main);
    }

    .container {
        padding-top: 25px !important;

        padding-bottom: 35px;
    }

    .brand-title {
        font-size: 1.75rem;

        letter-spacing: -0.04em;
    }

    .brand-subtitle {
        padding:
            0 15px;

        font-size: 0.82rem;
    }

    .nav-card,
    .main-card {
        border-radius: 18px;
    }

    .main-card .card-body {
        padding:
            22px !important;
    }

    .fee-display-card {
        padding:
            22px 20px;
    }

    .fee-amount {
        font-size:
            2rem;
    }

    .fee-badge {
        padding:
            7px 9px;

        font-size:
            0.61rem;
    }

    .list-group-item-action {
        padding:
            14px 13px;
    }

    .payment-details {
        margin-bottom:
            20px !important;
    }

    .upi-box,
    .qr-box {
        padding:
            22px !important;
    }

    .qr-img {
        width:
            205px;
    }

    .alert-warning-custom {
        font-size:
            0.77rem;
    }

    #verificationFormSection {
        padding-top:
            25px !important;
    }

    .form-row {
        margin-left:
            -7px;

        margin-right:
            -7px;
    }

    .form-row > [class*="col-"] {
        padding-left:
            7px;

        padding-right:
            7px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .container {
        padding-left:
            10px;

        padding-right:
            10px;
    }

    .brand-title {
        font-size:
            1.45rem;
    }

    .brand-subtitle {
        font-size:
            0.76rem;
    }

    .main-card .card-body {
        padding:
            16px !important;
    }

    .fee-display-card {
        padding:
            19px 16px;

        border-radius:
            15px;
    }

    .fee-title {
        font-size:
            0.62rem;
    }

    .fee-amount {
        font-size:
            1.75rem;
    }

    .fee-badge {
        display:
            none;
    }

    .icon-wrapper {
        width:
            38px;

        height:
            38px;
    }

    .status-pill {
        font-size:
            0.56rem;

        padding:
            4px 7px;
    }

    .qr-img {
        width:
            190px;
    }

    .step-number {
        width:
            38px;

        height:
            38px;
    }

    .btn-primary-theme {
        min-height:
            52px;

        font-size:
            0.82rem;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;
    }
}

/* =========================================================
   EXTRA JS ANIMATIONS
========================================================= */

.custom-file-box.file-selected {
    border-color: var(--primary-light);

    background: #f5f3ff;

    animation:
        fileSelected 0.45s
        cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fileSelected {

    0% {
        transform: scale(0.98);
        opacity: 0.7;
    }

    60% {
        transform: scale(1.015);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.input-focused {
    transform: translateY(-1px);

    transition:
        transform 0.25s ease;
}

/* Button ripple */

.btn-pay-now,
.btn-primary-theme {
    position: relative;
}

.button-ripple {
    position: absolute;

    border-radius: 50%;

    transform: scale(0);

    animation:
        buttonRipple 0.6s linear;

    background:
        rgba(255, 255, 255, 0.25);

    pointer-events: none;
}

@keyframes buttonRipple {

    to {
        transform: scale(3);
        opacity: 0;
    }
}

