/* =========================================================
   বিয়েকরবো.কম - Modern Header & App Drawer Styles
   Clean, Responsive, Fast & Luxury Theme
========================================================= */

:root {
    --bk-primary: #E92F83;
    --bk-primary-dark: #be185d;
    --bk-primary-soft: #fdf2f8;
    --bk-secondary: #0AA4B9;
    --bk-teal: #0d9488;
    --bk-emerald: #10b981;
    --bk-amber: #f59e0b;
    --bk-purple: #8b5cf6;
    --bk-slate-900: #0f172a;
    --bk-slate-800: #1e293b;
    --bk-slate-700: #334155;
    --bk-slate-600: #475569;
    --bk-slate-200: #e2e8f0;
    --bk-slate-100: #f1f5f9;
    --bk-slate-50: #f8fafc;
}

/* Base resets for Header components */
.bk-header-wrapper,
.bk-header-wrapper *,
.bk-drawer,
.bk-drawer * {
    box-sizing: border-box !important;
}

.bk-header-wrapper {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    font-family: 'Anek Bangla', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: box-shadow 0.2s ease;
}

.bk-header-wrapper.scrolled {
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.12) !important;
}

/* ---------------------------------------------------------
   1. TOP UTILITY BAR (Desktop Only)
--------------------------------------------------------- */
.bk-topbar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.5;
}

.bk-topbar .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bk-topbar-left,
.bk-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bk-topbar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bk-topbar a:hover {
    color: #ffffff;
}

.bk-topbar-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    margin: 0 2px;
}

.bk-badge-wallet {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399 !important;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.78rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bk-badge-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

/* ---------------------------------------------------------
   2. MAIN NAVBAR (Desktop)
--------------------------------------------------------- */
.bk-navbar {
    background: #ffffff;
    height: 70px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.bk-navbar .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.bk-logo-box {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    height: 100%;
}

.bk-logo-img {
    height: 66px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
}

/* Nav Menu List */
.bk-nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bk-nav-item {
    position: relative;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bk-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.bk-nav-link i {
    font-size: 0.92rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.bk-nav-link i.fa-chevron-down {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-left: 2px;
    transition: transform 0.25s ease;
}

.bk-nav-link:hover,
.bk-nav-link.active {
    background: #fdf2f8;
    color: #E92F83;
}

.bk-nav-link:hover i,
.bk-nav-link.active i {
    color: #E92F83;
}

.bk-nav-item:hover .bk-nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu (Hidden by default) */
.bk-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    padding: 8px;
    z-index: 1050;
    list-style: none !important;
    margin-top: 4px;
}

/* Invisible bridge so cursor doesn't fall through gap */
.bk-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.bk-nav-item:hover > .bk-dropdown-menu {
    display: block;
    animation: bkDropdownFade 0.2s ease forwards;
}

@keyframes bkDropdownFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bk-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.bk-dropdown-item i {
    font-size: 0.95rem;
    width: 22px;
    text-align: center;
    color: #E92F83;
    flex-shrink: 0;
}

.bk-dropdown-item:hover {
    background: #fdf2f8;
    color: #E92F83;
    transform: translateX(3px);
}

/* Desktop User Actions Area */
.bk-desktop-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.bk-user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.bk-user-profile-btn:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.bk-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #E92F83, #0AA4B9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.bk-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#bkUserDropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 250px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    padding: 8px;
    z-index: 1060;
}

.bk-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    color: #334155;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #ffffff;
}

.bk-btn-ghost:hover {
    border-color: #E92F83;
    color: #E92F83;
    background: #fdf2f8;
}

.bk-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #E92F83 0%, #be185d 100%);
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(233, 47, 131, 0.28);
    transition: all 0.2s ease;
    border: none;
}

.bk-btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 47, 131, 0.38);
    color: #ffffff;
}

/* ---------------------------------------------------------
   3. MOBILE APP BAR (Header on Small Screens)
--------------------------------------------------------- */
.bk-mobile-bar {
    display: none;
}

@media (max-width: 991px) {
    .bk-topbar,
    .bk-navbar {
        display: none !important;
    }

    .bk-mobile-bar {
        display: flex !important;
        height: 70px;
        padding: 0 16px;
        background: #ffffff;
        border-bottom: 1px solid #f1f5f9;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }
}

.bk-mobile-logo {
    height: 56px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    display: block;
}

.bk-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bk-mob-chip-balance {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    color: #059669;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.bk-mob-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    border-radius: 10px;
    color: #E92F83;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.bk-hamburger-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 2px;
    padding: 0;
}

.bk-hamburger-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ---------------------------------------------------------
   4. MOBILE APP DRAWER (Native Sheet Style)
--------------------------------------------------------- */
.bk-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bk-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.bk-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 86vw;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.bk-drawer.active {
    transform: translateX(0);
}

.bk-drawer-head {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 22px 18px 18px;
    position: relative;
    flex-shrink: 0;
}

.bk-drawer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bk-drawer-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.bk-drawer-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-right: 32px;
}

.bk-drawer-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #E92F83, #0AA4B9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.bk-drawer-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bk-drawer-user-details h4 {
    margin: 0 0 3px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 165px;
}

.bk-drawer-user-details p {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bk-drawer-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.bk-drawer-action-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.bk-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    -webkit-overflow-scrolling: touch;
}

.bk-drawer-group {
    margin-bottom: 20px;
}

.bk-drawer-group-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-bottom: 8px;
    padding-left: 8px;
}

.bk-drawer-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bk-drawer-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bk-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.bk-drawer-link:hover {
    background: #f8fafc;
    color: #E92F83;
}

.bk-drawer-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Drawer Icon variants */
.icon-pink { background: #fdf2f8; color: #ec4899; }
.icon-teal { background: #f0fdfa; color: #0d9488; }
.icon-green { background: #ecfdf5; color: #10b981; }
.icon-purple { background: #f5f3ff; color: #8b5cf6; }
.icon-amber { background: #fffbeb; color: #f59e0b; }
.icon-slate { background: #f1f5f9; color: #64748b; }

.bk-drawer-support-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.bk-drawer-support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.bk-support-call {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.bk-support-wa {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.bk-drawer-foot {
    padding: 12px 16px;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
    background: #fafafa;
}

.bk-drawer-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border-radius: 12px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.bk-drawer-logout-btn:hover {
    background: #fecaca;
}
