:root {
    --bkash-pink: #d12076;
    --bkash-light-pink: #fde8ef;
    --bkash-white: #ffffff;
    --bkash-grey: #666;
    --bkash-bg: #f5f5f5;
}

body {
    background-color: var(--bkash-bg);
    font-family: 'Hind Siliguri', 'Outfit', sans-serif;
    color: #333;
    overflow-x: hidden;
}

.numbers {
    font-family: 'Outfit', sans-serif !important;
}

.bkash-card {
    background: var(--bkash-white);
    border-radius: 12px;
    border: none;
    box-shadow: var(--bkash-shadow);
    padding: 20px;
}

.btn-bkash {
    background-color: var(--bkash-pink);
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
    transition: all 0.3s ease;
}

.btn-bkash:hover {
    background-color: #b51a62;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-bkash {
    border: 2px solid var(--bkash-pink);
    color: var(--bkash-pink);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-bkash:hover {
    background: var(--bkash-pink);
    color: white;
    transform: translateY(-2px);
}

.text-bkash {
    color: var(--bkash-pink);
}

.bg-bkash {
    background-color: var(--bkash-pink) !important;
}

.bg-bkash-gradient {
    background: linear-gradient(135deg, var(--bkash-pink), #ff4d94);
}

.text-bkash-gradient {
    background: linear-gradient(135deg, var(--bkash-pink), #ff4d94);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.section-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--bkash-pink);
    border-radius: 10px;
}

.bkash-card-premium {
    background: var(--bkash-white);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(216, 32, 118, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bkash-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(216, 32, 118, 0.12);
    border-color: rgba(216, 32, 118, 0.1);
}

.icon-box-premium {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--bkash-light-pink);
    color: var(--bkash-pink);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.bkash-card-premium:hover .icon-box-premium {
    background: var(--bkash-pink);
    color: white;
    transform: rotate(10deg);
}

.card-image-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card {
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 12px 25px rgba(216, 32, 118, 0.15);
}

.video-thumb-container {
    position: relative;
    overflow: hidden;
}

.video-thumb-container::after {
    content: "\f04b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 45px;
    height: 45px;
    background: rgba(216, 32, 118, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.video-card:hover .video-thumb-container::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Header & Navbar Improvements */
.navbar-bkash {
    background-color: var(--bkash-pink);
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.user-info-group {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.header-logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo img,
.site-logo-brand {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.header-menu-group {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.navbar-toggler {
    color: white !important;
    border: none !important;
    padding-right: 0 !important;
    margin-left: auto;
}

.navbar-toggler i {
    color: white !important;
}

/* Language Dropdown UI */
.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:active {
    background-color: var(--bkash-pink) !important;
    color: white !important;
}

.dropdown-item.active {
    background-color: var(--bkash-pink);
    color: white;
}

.dropdown-menu {
    z-index: 2000;
    animation: fadeInDropdown 0.2s ease;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-menu-group {
    overflow: visible !important;
}

.navbar-nav {
    margin-left: auto;
}

.user-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-meta .user-name {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}

.header-balance-btn {
    background: #fff;
    border-radius: 50px;
    padding: 2px 10px 2px 28px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-width: 130px;
    height: 28px;
    border: none;
    transition: all 0.3s ease;
}

.header-balance-btn .balance-circle {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 24px;
    height: 24px;
    background: var(--bkash-pink);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-balance-btn .balance-circle::after {
    content: "৳";
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.header-balance-btn .btn-text,
.header-balance-btn .btn-amount {
    font-size: 0.75rem;
    position: absolute;
    width: calc(100% - 30px);
    text-align: center;
    transition: all 0.4s ease;
}

.header-balance-btn .btn-text {
    left: 28px;
}

.header-balance-btn .btn-amount {
    opacity: 0;
    transform: translateX(-10px);
    left: 5px;
    z-index: 1;
}

.header-balance-btn.active .btn-text {
    opacity: 0;
    transform: translateX(10px);
}

.header-balance-btn.active .btn-amount {
    opacity: 1;
    transform: translateX(0);
    left: 5px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.2s;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-1px);
}

.notice-bar {
    background-color: var(--bkash-pink);
    color: white;
    font-size: 0.8rem;
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
}

.notice-bar marquee {
    margin-bottom: -4px;
}

/* User Profile in Header */
.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.2s;
}

.user-profile-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: white;
    color: var(--bkash-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Mobile Side Menu */
.mobile-offcanvas {
    width: 280px !important;
    border-right: none;
    background-color: white;
}

.offcanvas-header {
    background: var(--bkash-pink);
    color: white;
    padding: 25px 20px;
}

.offcanvas-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.offcanvas-body {
    padding: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--bkash-black);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f1f1f1;
    transition: 0.2s;
}

.mobile-nav-link:hover {
    background: var(--bkash-light-pink);
    color: var(--bkash-pink);
}

.mobile-nav-link i {
    width: 20px;
    color: var(--bkash-pink);
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-item {
    text-align: center;
    padding: 15px 10px;
    cursor: pointer;
    transition: 0.3s;
}

.grid-item:hover {
    background: var(--bkash-light-pink);
    border-radius: 10px;
}

.grid-item i {
    font-size: 24px;
    color: var(--bkash-pink);
    display: block;
    margin-bottom: 8px;
}

.grid-item span {
    font-size: 12px;
    font-weight: 500;
}

/* bKash Balance Toggle UI - Realistic Animation */
.balance-btn {
    background: #fff;
    border-radius: 50px;
    padding: 2px 12px 2px 35px;
    /* Space for the circle */
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-width: 155px;
    height: 34px;
    border: 1px solid rgba(216, 32, 118, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.balance-btn .balance-circle {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 26px;
    height: 26px;
    background: var(--bkash-pink);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-btn .balance-circle::after {
    content: "৳";
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.balance-btn .btn-text,
.balance-btn .btn-amount {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bkash-pink);
    width: calc(100% - 40px);
    text-align: center;
    position: absolute;
    left: 35px;
    transition: all 0.4s ease;
}

.balance-btn .btn-amount {
    opacity: 0;
    transform: translateX(-20px);
    left: 10px;
}

/* Active State Animation - Both Button Types */
.balance-btn.active .balance-circle,
.header-balance-btn.active .balance-circle {
    left: calc(100% - 30px);
}

.balance-btn.active .btn-text,
.header-balance-btn.active .btn-text {
    opacity: 0;
    transform: translateX(-20px);
}

.balance-btn .btn-amount {
    opacity: 0;
    transform: translateX(-10px);
    position: absolute;
    left: 10px;
    z-index: 1;
}

.balance-btn.active .btn-amount,
.header-balance-btn.active .btn-amount {
    opacity: 1;
    transform: translateX(0);
    left: 10px;
}

.nav-balance-btn {
    background: #fff;
    border: none;
}

/* Swiper Customization */
.bannerSwiper .swiper-pagination-bullet-active {
    background: var(--bkash-pink) !important;
}

.bannerSwiper .swiper-button-next,
.bannerSwiper .swiper-button-prev {
    background: rgba(0, 0, 0, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.bannerSwiper .swiper-button-next:after,
.bannerSwiper .swiper-button-prev:after {
    font-size: 14px;
    font-weight: bold;
}

/* ZiniPay Style Gateway */
.zp-gateway-bg {
    background-color: #f8fafc;
    min-height: 100vh;
    padding: 40px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.zp-gateway-card {
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.zp-card-nav {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.zp-nav-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.zp-nav-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.zp-header {
    padding: 40px 20px 20px;
    text-align: center;
    transition: background 0.4s ease;
}

.zp-logo-container {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.zp-logo-container img {
    width: 45px;
    height: auto;
}

.zp-brand-name {
    font-weight: 800;
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.zp-invoice-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.zp-copy-icon {
    color: #3b82f6;
    cursor: pointer;
}

.zp-support-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.zp-support-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.zp-support-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.zp-category-bar {
    background: #2563eb;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.zp-body {
    padding: 20px;
}

.zp-method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zp-method-tile {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.zp-method-tile:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.zp-method-tile img {
    height: 30px;
    max-width: 100px;
    object-fit: contain;
}

.zp-view-footer {
    padding: 20px;
    background: #fff;
}

.zp-pay-btn {
    width: 100%;
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.zp-pay-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

/* Manual Payment Form View */
.zp-form-view {
    display: none;
    animation: zpFadeIn 0.3s ease;
}

@keyframes zpFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zp-branded-header {
    margin: -20px -20px 20px;
    padding: 30px 20px;
    color: #fff;
    text-align: center;
}

.zp-branded-header.bkash {
    background-color: #e2136e;
}

.zp-branded-header.nagad {
    background-color: #ed1c24;
}

.zp-branded-header.rocket {
    background-color: #8c3494;
}

.zp-amount-badge {
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 10px;
}

.zp-form-group {
    margin-bottom: 20px;
}

.zp-label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.zp-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f1f5f9;
    border-radius: 14px;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.3s;
}

.zp-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}

.zp-instructions {
    background: #f8fafc;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
}

.zp-instruction-step {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #475569;
}

.zp-instruction-step:last-child {
    margin-bottom: 0;
}

.zp-step-num {
    min-width: 22px;
    height: 22px;
    background: #cbd5e1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.zp-highlight-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.zp-highlight-value {
    font-weight: 800;
    color: #1e293b;
    font-family: 'Outfit', sans-serif;
}

.zp-verify-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    color: #fff;
    border: none;
    font-weight: 700;
    transition: all 0.2s;
}

.zp-verify-btn.bkash {
    background-color: #e2136e;
}

.zp-verify-btn.nagad {
    background-color: #ed1c24;
}

.zp-verify-btn.rocket {
    background-color: #8c3494;
}

.zp-verify-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

/* Auth Logo Styles */
.logo-container-circular {
    width: 120px;
    height: auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 576px) {
    .logo-container-circular {
        width: 100px;
        height: auto;
    }
}