html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.flex-grow-1 {
    flex: 1 0 auto;
}

.premium-footer,
.simple-marquee {
    flex-shrink: 0;
}

/* --- Payment Page Styles --- */

.payment-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--surface-border);
}

.payment-main {
    background: transparent;
}

.summary-panel {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-left: 1px solid var(--surface-border);
    position: relative;
}

/* --- Form Improvements --- */
.form-floating-custom {
    position: relative;
    margin-bottom: 25px;
}

.form-floating-custom input {
    height: 70px;
    padding: 25px 20px 10px 20px;
    border-radius: 18px;
    border: 2.5px solid var(--surface-border);
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s ease;
}

.form-floating-custom label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.form-floating-custom input:focus,
.form-floating-custom input:not(:placeholder-shown) {
    border-color: var(--primary);
    box-shadow: 0 10px 25px var(--primary-glow);
    padding-top: 30px;
    outline: none;
}

.form-floating-custom input:focus+label,
.form-floating-custom input:not(:placeholder-shown)+label {
    top: 15px;
    font-size: 12px;
    color: var(--primary);
    transform: translateY(0);
}

.card-icons {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    font-size: 24px;
    color: var(--text-muted);
    transition: 0.4s;
}

.form-floating-custom input:focus~.card-icons {
    color: var(--primary);
}

/* --- Method Tabs --- */
.method-tab {
    flex: 1;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid var(--surface-border);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: 0.4s;
    cursor: pointer;
}

.method-tab i {
    font-size: 24px;
    color: var(--text-muted);
}

.method-tab span {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.method-tab.active {
    border-color: var(--primary);
    background: var(--primary-glow);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.method-tab.active i {
    color: var(--primary);
}

.method-view {
    display: none;
    animation: fadeIn 0.5s ease;
}

.method-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- UPI View --- */
.qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: #f8f9fa;
    border: 2px dashed var(--surface-border);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.qr-placeholder i {
    font-size: 80px;
    margin-bottom: 15px;
    color: var(--primary);
}

.upi-apps img {
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
    cursor: pointer;
}

.upi-apps img:hover {
    transform: scale(1.1);
}

/* --- Bank View --- */
.bank-info-box {
    background: #fff;
    border: 2px solid var(--surface-border);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--surface-border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span {
    color: var(--text-muted);
}

/* --- Pay Button --- */
.btn-pay {
    height: 70px;
    border: none;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--primary), #e74c3c);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.4s;
    box-shadow: 0 20px 40px var(--primary-glow);
}

.btn-pay:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px var(--primary-glow);
    background: linear-gradient(90deg, #e74c3c, var(--primary));
}

.btn-pay:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* --- Order Summary --- */
.summary-title {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 24px;
}

.summary-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.item-img {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--surface-border);
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 700;
    color: var(--text-main);
}

.item-price {
    color: var(--primary);
    font-weight: 800;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.total-row.final {
    color: var(--text-main);
    font-size: 24px;
    font-weight: 800;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 184, 148, 0.1);
    color: var(--accent);
    border-radius: 15px;
    font-weight: 700;
}

/* --- Modal Styles --- */
.success-icon {
    font-size: 80px;
    color: var(--accent);
    animation: scaleCheck 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleCheck {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@media (max-width: 991px) {
    .summary-panel {
        border-left: none;
        border-top: 1px solid var(--surface-border);
    }
}

/* --- Skewed Payment Cards --- */
.payment-card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 0;
}

.payment-card {
    width: 280px;
    height: 150px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    border-left: 2px rgba(255, 255, 255, 0.3) outset;
    box-shadow: -20px 30px 40px rgba(0, 0, 0, 0.2);
    transform: skewX(5deg);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    color: white;
    margin-bottom: 50px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-card:hover,
.payment-card.active {
    height: 350px;
    transform: skew(0deg) translateY(-15px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.payment-card:hover p,
.payment-card.active p {
    opacity: 1;
}

.card-align {
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-self: flex-start;
}

.dot-red {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff605c;
    box-shadow: 0 0 10px rgba(255, 96, 92, 0.5);
}

.dot-yellow {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffbd44;
    box-shadow: 0 0 10px rgba(255, 189, 68, 0.5);
}

.dot-green {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #00ca4e;
    box-shadow: 0 0 10px rgba(0, 202, 78, 0.5);
}

.payment-card h1 {
    text-align: center;
    margin: 1rem 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.payment-card p {
    padding: 0 2rem;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0;
    transition: 0.5s;
    color: rgba(11, 11, 11, 0.9);
}

.payment-card:hover p {
    opacity: 1;
}

.payment-card .card-icon,
.payment-card .payment-logo {
    font-size: 40px;
    height: 40px;
    display: block;
    margin: 0 auto 10px auto;
    opacity: 0.9;
    object-fit: contain;
}