
/* HadithApps v2.1 refinement: compact brand/search header, account+theme menus */
.site-header{position:relative!important;top:auto!important;z-index:40;background:var(--v20-header,#1a211d)!important}
.header-inner{grid-template-columns:minmax(275px,355px) minmax(360px,1fr) auto!important;min-height:82px!important;gap:clamp(10px,1.4vw,22px)!important}
.header-brand{gap:10px!important}
.header-brand img{width:58px!important;height:58px!important;flex-basis:58px!important}
.header-brand-copy{gap:0!important}
.header-brand-copy strong{font-size:clamp(15px,1.18vw,18px)!important;line-height:1.35!important;white-space:nowrap!important}
.header-brand-copy small{font-size:clamp(10px,.76vw,12px)!important;line-height:1.35!important;white-space:nowrap!important}
.header-search-centered{max-width:720px!important}
.header-search{background:#dfe4df!important;border-color:#c3cec5!important}
.header-search input{color:#25382b!important}
.header-search select{background:#edf0ed!important;color:#334b3b!important}
.header-actions-visible{gap:8px!important}
.theme-dropdown,.account-dropdown{position:relative;display:inline-flex}
.theme-dropdown>summary,.account-dropdown>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.16);background:#29342d;color:#f2f6f1;font-weight:700;font-size:13px;white-space:nowrap}
.theme-dropdown>summary::-webkit-details-marker,.account-dropdown>summary::-webkit-details-marker{display:none}
.theme-dropdown>summary{width:44px;padding:0;font-size:23px}
.theme-dropdown[open]>summary,.account-dropdown[open]>summary{background:#35463a}
.theme-dropdown-menu,.account-dropdown-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:100;min-width:190px;padding:8px;border:1px solid rgba(205,224,208,.24);border-radius:12px;background:#17231b;box-shadow:0 16px 36px rgba(0,0,0,.34);display:grid;gap:4px}
.theme-dropdown-menu button,.account-dropdown-menu a,.account-dropdown-menu button{display:block;width:100%;padding:9px 11px;border:0;border-radius:8px;background:transparent;color:#edf4ed;text-align:left;text-decoration:none;font:600 13px 'Noto Sans Bengali',sans-serif;cursor:pointer}
.theme-dropdown-menu button:hover,.account-dropdown-menu a:hover,.account-dropdown-menu button:hover{background:rgba(130,185,141,.2);color:#fff}
.account-dropdown-menu form{margin:0}
.header-account{background:#29332d;color:#eef3ed!important}
.header-donate{min-height:42px;padding:8px 14px!important}
.main-nav-row{display:none!important}
.home-category-section{margin:17px auto 22px!important}
.home-feature-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:clamp(5px,.8vw,13px)!important}
.home-feature-grid a.feature-tile,.home-feature-grid a.feature-tile:hover{padding:10px 6px 9px!important;gap:1px!important;border-radius:12px!important;background:rgba(79,130,91,.16)!important;border:1px solid rgba(132,179,139,.15)!important;transition:background .2s ease,transform .2s ease}
.home-feature-grid a.feature-tile:hover{background:rgba(82,147,97,.25)!important;transform:translateY(-2px)}
.home-feature-grid .feature-icon,.home-feature-grid .feature-quran-image{width:clamp(72px,6.8vw,100px)!important;height:clamp(72px,6.8vw,100px)!important;margin:0 auto -2px!important}
.home-feature-grid .feature-tile span{font-size:clamp(13px,1vw,16px)!important;font-weight:600!important;line-height:1.35!important}
.home-feature-grid .feature-tile small{display:block!important;min-height:14px;margin-top:2px!important;color:#a9d0af!important;font-size:10px!important;line-height:1.35}
.app-download-left h2{font-size:clamp(25px,2.3vw,34px)!important}
.app-feature-list{grid-template-columns:1fr!important;gap:8px 14px!important}
.app-feature-list li{font-size:15px!important;line-height:1.8!important;gap:10px!important;padding:4px 0!important}
.app-feature-list li>span{flex:0 0 27px;width:27px;height:27px;font-size:15px!important}
.app-right-heading{font-size:19px!important}
.app-selectors{margin-top:1px}
.app-mode-select{min-height:45px;font-size:14px!important}
.app-project-title{margin:4px 0 0!important;text-align:center;color:#e7eee5;font-size:15px;line-height:1.6;font-weight:700}
.app-language-form select{background:#202b23!important;color:#f4f6ef!important}
.app-platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 12px!important}
.app-platform-item{min-height:144px!important;gap:3px!important}
.app-platform-item img{width:clamp(104px,10vw,138px)!important;height:clamp(104px,10vw,138px)!important}
.app-platform-item strong{font-size:13px!important}
.app-platform-item .platform-translated-label{color:#c9d8ca;font-size:12px;line-height:1.4;text-align:center}
.app-platform-item small{color:#98be9e;font-size:11px;line-height:1.4;text-align:center}
.app-platform-item:last-child:nth-child(odd){grid-column:auto!important;width:100%!important}
.hadith-app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:start}
.hadith-app-card{display:flex;flex-direction:column;align-items:center;gap:7px;padding:9px 5px;border-radius:12px;border:1px solid rgba(175,211,179,.18);background:rgba(94,143,101,.09);color:#eef4ed;text-decoration:none;text-align:center;min-width:0}
.hadith-app-card img{width:clamp(90px,8.5vw,126px);height:clamp(90px,8.5vw,126px);object-fit:contain;background:transparent}
.hadith-app-card strong{font-size:11px;line-height:1.5}
.app-coming-note{margin:10px 0;color:#bad0bd;text-align:center;font-size:13px}
.donate-page{background:linear-gradient(145deg,#171f19,#1c2820)!important}
.donation-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0}
.donation-method{padding:17px;border:1px solid rgba(185,206,190,.22);border-radius:12px;background:rgba(255,255,255,.035)}
.donation-method h2{margin:0 0 12px;color:#e9d18c;font-size:17px}
.donation-detail-row{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.08);color:#e8efe8;font-size:13px;flex-wrap:wrap}
.donation-detail-row strong{color:#a9c5ad}
.donation-not-configured{color:#c5cec6;font-size:13px;line-height:1.7}
.copy-donation{border:1px solid rgba(224,205,139,.4);border-radius:7px;padding:5px 9px;background:rgba(224,205,139,.12);color:#f4dfa0;cursor:pointer}
.donate-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.alert-success{padding:11px 13px;border-radius:9px;background:rgba(40,140,85,.18);border:1px solid rgba(88,190,128,.34);color:#b8f0c9}
.donor-auth-card{max-width:640px}
.donor-auth-card textarea{width:100%;padding:11px;border:1px solid rgba(190,210,193,.22);border-radius:9px;background:#111a14;color:#f4f6f1;font:inherit}
@media(max-width:1180px){
 .header-inner{grid-template-columns:minmax(210px,1fr) auto!important;grid-template-areas:"brand actions" "search search"!important;row-gap:9px!important}
 .header-brand{grid-area:brand}.header-actions-visible{grid-area:actions}.header-search-centered{grid-area:search;max-width:780px!important}
}
@media(max-width:760px){
 .header-inner{grid-template-columns:1fr!important;grid-template-areas:"brand" "search" "actions"!important;padding:10px 12px!important;gap:8px!important}
 .header-brand img{width:48px!important;height:48px!important;flex-basis:48px!important}
 .header-brand-copy strong{font-size:14px!important;white-space:normal!important}
 .header-brand-copy small{white-space:normal!important;font-size:10px!important}
 .header-actions-visible{justify-content:flex-end!important;width:100%;gap:6px!important}
 .account-dropdown>summary{font-size:11px;padding:7px 9px}
 .header-donate{font-size:11px;padding:7px 9px!important}
 .theme-dropdown>summary{width:38px;min-height:38px}
 .home-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 .home-feature-grid a.feature-tile{padding:8px 3px!important}
 .app-download-layout{grid-template-columns:1fr!important}
 .app-feature-list{grid-template-columns:1fr!important}
 .app-download-right{border-left:0!important;border-top:1px solid rgba(211,228,213,.14);padding:17px 0 0!important}
 .app-platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .hadith-app-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .hadith-app-card img{width:clamp(72px,24vw,110px);height:clamp(72px,24vw,110px)}
 .hadith-app-card strong{font-size:10px}
 .donation-method-grid{grid-template-columns:1fr}
 .dbht-footer-grid{grid-template-columns:1fr!important}
}
