/* ══════════════════════════════════════════════════════
   GLOBAL RESET & BASE STYLES
══════════════════════════════════════════════════════ */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body { 
    overflow-x: hidden; 
    width: 100%; 
    min-height: 100vh;
    position: relative;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
    touch-action: pan-y;
    background-color: #FFFFFF; 
    font-family: 'Outfit', sans-serif; 
    color: #1E293B; 
    padding-bottom: 85px; /* নতুন স্লিম মেনুবারের জন্য নিখুঁত স্পেস */
} 

/* ── SPA Tab Styling ── */
.page-tab { 
    display: none; 
}
.page-tab.active { 
    display: block; 
    animation: tabFadeIn 0.25s ease-out; 
}
@keyframes tabFadeIn { 
    from { opacity: 0; transform: translateY(4px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ── সোজা ও ফ্ল্যাট হেডার ── */
.top-header {
    background: var(--gradient);
    color: white;
    padding: 16px 20px;
    height: 60px;
    box-shadow: 0 4px 15px var(--primary-border);
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.svg-icon { display: inline-block; width: 32px; height: 32px; }
.platform-btn svg { width: 32px; height: 32px; }

/* ── শিমার ইফেক্ট শুধুমাত্র সোশ্যাল আইকনগুলোর ওপর কাজ করবে ── */
.shimmer-btn { position: relative; overflow: hidden; }
.shimmer-btn::after {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 50%; 
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-25deg);
    animation: shimmerEffect 4s infinite;
    animation-delay: var(--shimmer-delay, 0s);
    pointer-events: none;
}
.platform-btn:nth-child(1) { --shimmer-delay: 0s; }
.platform-btn:nth-child(2) { --shimmer-delay: 0.4s; }
.platform-btn:nth-child(3) { --shimmer-delay: 0.8s; }
.platform-btn:nth-child(4) { --shimmer-delay: 1.2s; }
.platform-btn:nth-child(5) { --shimmer-delay: 1.6s; }
.platform-btn:nth-child(6) { --shimmer-delay: 2.0s; }
.platform-btn:nth-child(7) { --shimmer-delay: 2.4s; }
.platform-btn:nth-child(8) { --shimmer-delay: 2.8s; }

@keyframes shimmerEffect {
    0%   { left: -100%; opacity: 0; }
    10%  { opacity: 1; }
    40%  { left: 150%; opacity: 0; }
    100% { left: 150%; opacity: 0; }
}

.platform-active::after { display: none; } 
.platform-active { 
    background: var(--gradient) !important; 
    border-color: transparent !important; 
    transform: translateY(-4px); 
    box-shadow: 0 10px 20px var(--primary-border); 
} 
.platform-active svg { filter: brightness(0) invert(1); }
.platform-active .ig-icon-svg { filter: none !important; }

/* ── ক্যাটাগরি ও সার্ভিস সিলেকশন ওয়েভ শিমার ── */
@keyframes slowShimmer {
    0% { background-position: -150% 0; }
    100% { background-position: 150% 0; }
}
.dropdown-shimmer {
    background-image: linear-gradient(
        90deg, 
        var(--primary-light) 0%, 
        rgba(255, 255, 255, 0.4) 35%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.4) 65%, 
        var(--primary-light) 100%
    );
    background-size: 300% 100%;
    animation: slowShimmer 8s infinite linear;
}

/* ── ইনপুট ও ড্রপডাউন স্টাইলিং ── */
.custom-input {
    background-color: #F8FAFC;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
}
.custom-input:focus { 
    background-color: #fff !important; 
    box-shadow: 0 0 0 3px var(--primary-light); 
    outline: none;
}

.custom-select-box {
    border: 1px solid var(--primary-light) !important;
    transition: all 0.3s ease;
}
.custom-select-box.active-state {
    background-color: #fff !important;
    border: 2px solid var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.custom-dropdown-content {
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: white; 
    border: none;
    border-radius: 16px; 
    max-height: 280px; 
    overflow-y: auto; 
    z-index: 50;
    box-shadow: 0 15px 40px rgba(0,0,0,0.13);
    margin-top: 8px; 
    display: none; 
    padding: 6px;
}
.custom-dropdown-content.show { display: block; }

.dropdown-item { 
    padding: 14px 16px; 
    margin: 6px; 
    background: var(--primary-light); 
    border: 1px solid var(--primary-border); 
    border-radius: 12px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    color: #1E293B;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
.dropdown-item:hover { 
    background: var(--gradient); 
    box-shadow: 0 8px 20px var(--primary-border); 
    transform: translateY(-3px); 
    border-color: transparent; 
}
.dropdown-item:hover * { color: #FFFFFF !important; }
.dropdown-item:hover svg { filter: brightness(0) invert(1); }

/* ── সার্ভিস কার্ড ও এরিয়া ── */
.ser-combined-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.09);
    overflow: hidden;
    transition: all 0.3s ease;
}
.ser-selected-bar {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 14px 16px;
    cursor: pointer; 
    background: var(--primary-light); 
    transition: background 0.3s ease;
}
.ser-selected-bar .ser-id-badge-inner {
    background: var(--gradient); 
    color: white;
    padding: 3px 10px; 
    border-radius: 8px;
    font-size: 11px; 
    font-weight: 900; 
    white-space: nowrap;
}
.ser-list-area { 
    max-height: 300px; 
    overflow-y: auto; 
    padding: 6px; 
}
.ser-list-area.show { display: block !important; }
.ser-list-area::-webkit-scrollbar { width: 5px; }
.ser-list-area::-webkit-scrollbar-thumb { background: var(--gradient); border-radius: 10px; }

.ser-item {
    display: flex; 
    align-items: flex-start; 
    gap: 10px;
    padding: 12px 14px; 
    margin: 4px 2px; 
    border-radius: 12px;
    cursor: pointer; 
    transition: all 0.25s ease;
    background: var(--primary-light); 
    border: 1px solid var(--primary-border);
}
.ser-item:hover { 
    background: var(--gradient); 
    border-color: transparent; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px var(--primary-border); 
}
.ser-item:hover * { color: #fff !important; }
.ser-item.active-item { 
    background: var(--gradient) !important; 
    border-color: transparent !important; 
    box-shadow: 0 4px 14px var(--primary-border); 
}
.ser-item.active-item * { color: #fff !important; }
.ser-item-badge { 
    background: var(--gradient); 
    color: white; 
    padding: 3px 9px; 
    border-radius: 8px; 
    font-size: 11px; 
    font-weight: 900; 
    white-space: nowrap; 
    margin-top: 2px; 
}

.price-text { color: #DC2626 !important; }

/* ── ডেসক্রিপশন ও টাইম বক্স ── */
.desc-box { 
    background: var(--primary-light); 
    border: 1px solid var(--primary-border); 
    border-radius: 14px; 
    padding: 14px 16px; 
    margin-bottom: 12px; 
    font-size: 13px; 
    line-height: 1.8; 
}
.desc-box .desc-line { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
.desc-box .desc-line .desc-dot { color: var(--primary); font-size: 10px; margin-top: 4px; flex-shrink: 0; }
.desc-box .desc-line .desc-key { font-weight: 900; color: #1E293B; margin-right: 4px; }
.desc-box .desc-line .desc-val { font-weight: 600; color: #475569; }

.est-time-box { 
    background: linear-gradient(135deg, #f0fdf4, #dcfce7); 
    border: 1.5px solid #86efac; 
    border-radius: 14px; 
    padding: 12px 16px; 
    margin-bottom: 12px; 
    display: none; 
    align-items: center; 
    justify-content: space-between; 
    transition: all 0.3s ease; 
}
.est-time-box.visible { display: flex; }
.est-time-box .est-label { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 11px; 
    font-weight: 900; 
    color: #16a34a; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.est-time-box .est-value { font-size: 13px; font-weight: 900; color: #15803d; }

@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(8deg); }
    60% { transform: rotate(-6deg); }
    75% { transform: rotate(4deg); }
    90% { transform: rotate(-2deg); }
}
.animate-wiggle { animation: wiggle 2.5s infinite; }

/* ══════════════════════════════════════════════════════
   ছবির মতো স্লিম, পারফেক্ট ও ব্যালেন্সড বটম নেভিগেশন বার
══════════════════════════════════════════════════════ */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #1877F2 !important; /* সম্পূর্ণ রয়্যাল ব্লু ব্যাকগ্রাউন্ড */
    height: 62px !important; /* স্ট্যান্ডার্ড স্লিম ব্যালেন্সড হাইট */
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 4px 7px 4px !important;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 15px rgba(24, 119, 242, 0.25);
    z-index: 1000;
}

/* প্রতিটি মেনু আইটেম */
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: transparent !important;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

/* সাধারণ আইকন র্যাপার */
.bottom-nav-item .nav-icon-wrapper {
    height: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px !important;
}

.bottom-nav-item i {
    font-size: 19px !important; /* ছবির মতো নিখুঁত স্বাভাবিক সাইজ */
    color: #FFFFFF !important;
}

/* মেনু টেক্সট লেবেল */
.bottom-nav-item .nav-label {
    font-size: 9.5px !important; /* স্লিম ও পরিষ্কার ফন্ট */
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

/* ── মাঝখানের পরিমিত সাইজের সাদা ফ্লোটিং হোম বাটন ── */
.center-home-btn {
    position: relative;
    overflow: visible;
}

.center-home-btn .home-icon-circle {
    width: 50px !important;  /* ছবির মতো পরিমিত গোল সার্কেল */
    height: 50px !important;
    background: #FFFFFF !important; /* সম্পূর্ণ সাদা ব্যাকগ্রাউন্ড */
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px !important; /* বারের ওপরে সামান্য ভেসে থাকবে */
    margin-bottom: 2px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.center-home-btn .home-icon-circle i {
    font-size: 22px !important; /* ক্লিয়ার ডার্ক হোম আইকন */
    color: #0F172A !important;
}

.center-home-btn:active .home-icon-circle {
    transform: scale(0.92);
}

/* নোটিফিকেশন/Soon ব্যাজ */
.badge-soon {
    position: absolute;
    top: -5px;
    right: calc(50% - 20px);
    background: #EF4444;
    color: #FFFFFF;
    font-size: 8px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}