:root{
    --shadow-header:0 10px 30px rgba(15,23,42,.10);
}

body{
    padding-top:118px;
    background:var(--body-bg);
}

body[data-header-light-mode="1"]{
    padding-top:118px !important;
}

a{
    color:var(--link-color);
}

.topbar{
    position:fixed;
    top:8px;
    left:8px;
    right:8px;
    z-index:900;
    overflow:visible;
    background:#ffffff !important;
    color:#111827 !important;
    border:1px solid var(--card-border);
    border-radius:24px;
    box-shadow:var(--shadow-header);
    padding:8px;
}

.topbar-main{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.brand-link{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#111827 !important;
    font-weight:900;
    font-size:15px;
}

.brand-link span{
    color:#111827 !important;
}

.brand-logo{
    width:44px;
    height:44px;
    border-radius:14px;
    object-fit:cover;
    background:#fff;
    border:1px solid var(--card-border);
    box-shadow:0 5px 14px rgba(15,23,42,.10);
}

.topbar-right{
    display:flex;
    align-items:center;
    gap:8px;
}

.menu-btn,
.bell-btn,
.header-login-link{
    position:relative;
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    border:1px solid #e5e7eb;
    background:#f8fafc !important;
    color:var(--brand) !important;
    box-shadow:none;
    text-decoration:none;
    font-weight:900;
}

.menu-btn .svg-icon,
.bell-btn .svg-icon,
.topbar .svg-icon{
    stroke:var(--brand) !important;
    color:var(--brand) !important;
}

.bell-btn.active{
    background:#ffffff !important;
    color:var(--brand) !important;
    border-color:var(--brand) !important;
}

.bell-status{
    position:absolute;
    top:7px;
    right:7px;
    width:10px;
    height:10px;
    border-radius:50%;
    border:2px solid #fff;
}

.bell-on{background:#22c55e}
.bell-off{background:#ef4444}
.bell-default{background:#f59e0b}

/* SEARCH */
.header-search-shell{
    padding:8px 0 0 !important;
    background:transparent !important;
    position:relative;
    z-index:1001;
}

.header-live-search-form{
    position:relative;
    display:flex;
    align-items:center;
    gap:8px;
    background:#f8fafc !important;
    border:1px solid #e5e7eb !important;
    border-radius:18px !important;
    padding:6px 8px !important;
    box-shadow:none !important;
    width:100%;
    overflow:visible;
    box-sizing:border-box;
}

.header-search-icon{
    flex:0 0 22px;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:.75;
    color:#111827;
}

.header-live-search-input{
    flex:1;
    min-width:0;
    height:42px;
    border:none;
    outline:none;
    background:transparent;
    font-size:15px;
    color:#111827;
}

.header-live-search-btn{
    border:none;
    height:42px !important;
    padding:0 16px;
    border-radius:14px !important;
    background:var(--brand) !important;
    color:#fff;
    font-size:14px;
    font-weight:900;
    cursor:pointer;
}

/* SEARCH RESULT DROPDOWN */
.header-live-search-dropdown,
.search-suggestions,
.suggestions-box,
.autocomplete-list,
#searchSuggestions,
#searchResults{
    position:absolute !important;
    top:calc(100% + 8px) !important;
    left:0 !important;
    right:0 !important;
    z-index:99999 !important;
    background:#fff;
    border:1px solid var(--card-border);
    border-radius:18px;
    box-shadow:0 14px 35px rgba(15,23,42,.22);
    max-height:320px;
    overflow-y:auto;
    padding:8px;
}

.header-live-search-item{
    display:flex;
    gap:10px;
    padding:10px;
    border-radius:14px;
    text-decoration:none;
    color:inherit;
}

.header-live-search-thumb{
    width:74px;
    height:60px;
    flex:0 0 74px;
    border-radius:12px;
    overflow:hidden;
    border:1px solid #e5e7eb;
    background:#f8f9fa;
}

.header-live-search-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.header-live-search-title{
    font-size:14px;
    font-weight:900;
    color:#1a0dab;
    margin-bottom:6px;
}

/* DRAWER */
.drawer{
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    width:86%;
    max-width:360px;
    background:#ffffff;
    z-index:9999 !important;
    transform:translateX(-110%);
    transition:transform .25s ease;
    border-radius:0 26px 26px 0;
    overflow-y:auto;
    padding:0;
    box-shadow:0 18px 45px rgba(15,23,42,.22);
}

.drawer.show{
    transform:translateX(0);
}

.drawer-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.45);
    z-index:9998 !important;
    opacity:0;
    visibility:hidden;
    transition:.25s ease;
}

.drawer-overlay.show{
    opacity:1;
    visibility:visible;
}

.drawer-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px;
    font-size:20px;
    font-weight:900;
    color:#111827;
    background:linear-gradient(180deg,#ffffff,var(--brand-light));
    border-bottom:1px solid var(--card-border);
}

.drawer-head button{
    width:42px;
    height:42px;
    border:0;
    border-radius:14px;
    background:#f8fafc;
    color:var(--brand);
}

.drawer-body{
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.drawer-btn{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:50px;
    padding:12px 14px;
    border-radius:16px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    color:#111827 !important;
    text-decoration:none;
    font-size:15px;
    font-weight:900;
    box-shadow:0 4px 12px rgba(15,23,42,.06);
}

.drawer-btn .svg-icon{
    width:22px;
    height:22px;
    stroke:var(--brand) !important;
    color:var(--brand) !important;
}

/* LOADER */
.global-form-loader{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.72);
    z-index:999999;
}

.global-form-loader.show{
    display:flex;
}

.loader-box{
    background:#fff;
    border:1px solid var(--card-border);
    border-radius:22px;
    padding:18px 22px;
    text-align:center;
    box-shadow:0 18px 45px rgba(15,23,42,.20);
}

.loader-spinner{
    width:34px;
    height:34px;
    margin:0 auto 10px;
    border-radius:50%;
    border:4px solid var(--brand-light);
    border-top-color:var(--brand);
    animation:loaderSpin .8s linear infinite;
}

.loader-text{
    font-size:14px;
    font-weight:900;
    color:var(--brand);
}

@keyframes loaderSpin{
    to{transform:rotate(360deg)}
}

/* INSTALL */
.app-download-btn,
.app-share-btn{
    background:#f8fafc !important;
    color:var(--brand) !important;
    border-color:#e5e7eb !important;
}

.app-download-btn .svg-icon,
.app-share-btn .svg-icon{
    stroke:var(--brand) !important;
}

.app-install-count{
    position:absolute;
    top:48px;
    right:34px;
    z-index:99999;
    min-height:22px;
    padding:5px 10px;
    border-radius:999px;
    background:#fff;
    color:#111827;
    font-size:10px;
    font-weight:800;
    line-height:1;
    box-shadow:0 8px 20px rgba(15,23,42,.16);
    white-space:nowrap;
    border:1px solid var(--card-border);
}

#installAppBtn.installing{
    width:auto !important;
    min-width:92px !important;
    height:40px !important;
    padding:0 10px !important;
    gap:6px;
    background:linear-gradient(180deg,var(--brand),var(--brand-dark)) !important;
    pointer-events:none;
}

#installAppBtn.installing .install-spin{
    width:18px;
    height:18px;
    border:3px solid rgba(255,255,255,.35);
    border-top-color:#fff;
    border-radius:50%;
    animation:installSpin .8s linear infinite;
}

#installAppBtn.installing .install-text{
    font-size:11px;
    font-weight:900;
    color:#fff;
}

@keyframes installSpin{
    to{transform:rotate(360deg)}
}

/* PAGE */
.container{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:0 12px;
    box-sizing:border-box;
}

#mainContent{
    display:block;
    min-height:200px;
    padding-top:12px;
}

body[data-header-light-mode="1"] #mainContent{
    padding-top:0 !important;
}

/* MOBILE */
@media(max-width:768px){
    body{
        padding-top:118px !important;
    }

    body[data-header-light-mode="1"]{
        padding-top:118px !important;
    }

    .topbar{
        top:8px;
        left:8px;
        right:8px;
        border-radius:22px;
        padding:8px;
    }

    .brand-link{
        font-size:14px;
    }

    .brand-logo,
    .menu-btn,
    .bell-btn{
        width:40px;
        height:40px;
    }

    .header-live-search-input{
        height:40px;
        font-size:14px;
    }

    .header-live-search-btn{
        height:40px !important;
        padding:0 12px;
        font-size:13px;
    }
}
#installProgressPopup{
    position:fixed;
    inset:0;
    z-index:9999999;
}

.install-progress-overlay{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,.55);
    backdrop-filter:blur(4px);
}

.install-progress-card{
    position:absolute;
    left:16px;
    right:16px;
    bottom:105px;
    background:#ffffff;
    border-radius:26px;
    padding:22px 18px;
    text-align:center;
    box-shadow:0 24px 60px rgba(15,23,42,.35);
}

.install-progress-icon{
    width:58px;
    height:58px;
    margin:0 auto 12px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid var(--brand);
    color:var(--brand);
}

.install-progress-icon .svg-icon{
    width:30px;
    height:30px;
    stroke:var(--brand) !important;
}

.install-progress-title{
    font-size:18px;
    font-weight:900;
    color:#111827;
}

.install-progress-subtitle{
    margin-top:4px;
    font-size:13px;
    color:#64748b;
    font-weight:800;
}

.install-progress-percent{
    margin-top:14px;
    font-size:22px;
    font-weight:900;
    color:var(--brand);
}

.install-progress-track{
    height:12px;
    margin-top:12px;
    background:#e5e7eb;
    border-radius:999px;
    overflow:hidden;
}

.install-progress-fill{
    width:0%;
    height:100%;
    background:linear-gradient(90deg,var(--brand),var(--brand-dark));
    border-radius:999px;
    transition:width .12s linear;
}

.install-progress-time{
    margin-top:8px;
    display:flex;
    justify-content:space-between;
    font-size:12px;
    font-weight:800;
    color:#64748b;
}

#installAppBtn.installing{
    min-width:64px !important;
}

#installAppBtn .install-spin{
    width:18px;
    height:18px;
    border:3px solid rgba(255,255,255,.35);
    border-top-color:#fff;
    border-radius:50%;
    animation:installSpin .8s linear infinite;
}

#installAppBtn .install-text{
    font-size:11px;
    font-weight:900;
    color:#fff;
}
#buildsathiInstallPopup{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.45);
    z-index:99999999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

#buildsathiInstallPopup .pwa-install-popup{
    width:100%;
    max-width:360px;
    background:#fff;
    border-radius:24px;
    padding:20px;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

#buildsathiInstallPopup .pwa-install-popup-title{
    font-size:20px;
    font-weight:900;
    margin-bottom:8px;
    color:#111827;
}

#buildsathiInstallPopup .pwa-install-popup-text{
    font-size:14px;
    color:#64748b;
    line-height:1.6;
    margin-bottom:16px;
}

#buildsathiInstallPopup .pwa-install-popup-actions{
    display:flex;
    gap:10px;
}

#buildsathiInstallPopup .pwa-install-now{
    flex:1;
    border:0;
    border-radius:14px;
    padding:12px;
    background:linear-gradient(135deg,var(--brand),var(--brand-dark));
    color:#fff;
    font-weight:900;
}

#buildsathiInstallPopup .pwa-install-later{
    border:0;
    border-radius:14px;
    padding:12px 16px;
    background:#f1f5f9;
    color:#111827;
    font-weight:900;
}