/* HadithApps v2.4 — app selectors, compact platform grid, deep-green header and donation refinements */
:root{--dbht-main-deep:#0d110e;--dbht-main-deep-2:#0d110e;--dbht-panel-border:rgba(163,198,168,.22)}

/* Header, search, theme and account controls blend into the same deep-green page palette. */
.site-header{background:var(--dbht-main-deep)!important;border-bottom:1px solid rgba(160,190,164,.09)!important;box-shadow:none!important}
.header-inner{background:transparent!important}
.header-search,.header-search:focus-within{background:var(--dbht-main-deep)!important;border-color:rgba(183,207,185,.20)!important;box-shadow:none!important}
.header-search input{background:transparent!important;color:#f1f4ef!important}
.header-search input::placeholder{color:#d0d9d1!important;opacity:.85}
.header-search select,.header-search button{background:var(--dbht-main-deep)!important;color:#f1f4ef!important;border-color:rgba(183,207,185,.18)!important}
.theme-dropdown>summary,.account-dropdown>summary,.header-actions .theme-dropdown>summary,.header-actions .account-dropdown>summary{background:var(--dbht-main-deep)!important;color:#f1f4ef!important;border:1px solid rgba(183,207,185,.16)!important;box-shadow:none!important}
.theme-dropdown[open]>summary,.account-dropdown[open]>summary{background:var(--dbht-main-deep-2)!important}
.theme-dropdown-menu,.account-dropdown-menu{background:#14231a!important;border-color:rgba(183,207,185,.20)!important}
.theme-dropdown-menu button,.account-dropdown-menu a,.account-dropdown-menu button{color:#f1f4ef!important}

/* The first selector belongs to the Hadith feature column; the Quran controls are on the right. */
.app-selectors{display:block!important;margin:0 0 13px!important}
.app-mode-select{width:100%!important;min-height:46px!important;padding:10px 14px!important;background:#17271c!important;color:#f4f6f1!important;border:1px solid rgba(167,204,171,.35)!important;border-radius:11px!important;font-family:inherit!important;font-size:15px!important;font-weight:650!important;outline:none!important}
.app-mode-select option{background:#14231a!important;color:#f4f6f1!important}
.app-project-title{display:block!important;margin:0 0 11px!important;text-align:center!important;color:#f2f5ef!important;font-size:clamp(16px,1.35vw,20px)!important;line-height:1.55!important;font-weight:700!important}
.app-download-left .app-feature-heading{margin-top:2px!important}
.hadith-app-selection-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;margin:0 0 14px!important}
.hadith-app-selection-grid .hadith-app-card{min-width:0}
.hadith-app-selection-grid[hidden]{display:none!important}
.hadith-app-selection-grid .hadith-app-card[hidden]{display:none!important}

/* Five platform icons: three on row one and two on row two, with smaller artwork. */
.app-platform-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px 8px!important;align-items:start!important;justify-items:center!important;padding:8px 0 0!important}
.app-platform-item{grid-column:span 2!important;width:100%!important;min-height:112px!important;gap:3px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;transition:none!important}
.app-platform-item:nth-child(4){grid-column:2/span 2!important}
.app-platform-item:nth-child(5){grid-column:4/span 2!important}
.app-platform-item img{width:clamp(54px,5vw,70px)!important;height:clamp(54px,5vw,70px)!important;object-fit:contain!important;transition:transform .18s ease,filter .18s ease!important;filter:drop-shadow(0 3px 5px rgba(0,0,0,.22))}
.app-platform-item:hover img{transform:translateY(-3px) scale(1.08)!important;filter:drop-shadow(0 7px 9px rgba(0,0,0,.28))!important}
.app-platform-item strong{font-size:11px!important;line-height:1.3!important;color:#f3f6f0!important}
.app-platform-item .platform-translated-label,.app-platform-item .platform-coming-soon{font-size:10px!important;line-height:1.3!important;text-align:center!important;color:#c3d5c6!important}

/* Category tiles keep their subtle green surface; only the actual icon reacts to hover. */
.home-feature-grid .feature-tile{transition:background .18s ease!important}
.home-feature-grid .feature-tile:hover{transform:none!important}
.home-feature-grid .feature-icon{transition:transform .18s ease,filter .18s ease!important}
.home-feature-grid .feature-tile:hover .feature-icon{transform:translateY(-3px) scale(1.06)!important;filter:drop-shadow(0 7px 9px rgba(0,0,0,.30))!important}

/* Donation page: remove the small brand kicker and keep the main heading modest. */
.donation-page-heading .eyebrow{display:none!important}
.donation-page-heading h1{font-size:clamp(19px,1.9vw,25px)!important;line-height:1.55!important;font-weight:700!important;margin:0 auto 8px!important;max-width:900px}
.donation-hadiya-notice{display:none!important}

@media(max-width:1180px){
  .app-download-layout{grid-template-columns:1fr!important}
  .app-download-right{border-left:0!important;border-top:1px solid rgba(211,228,213,.14)!important;padding:17px 0 0!important}
}
@media(max-width:760px){
  .app-platform-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px 4px!important}
  .app-platform-item{grid-column:span 2!important;min-height:102px!important}
  .app-platform-item:nth-child(4){grid-column:2/span 2!important}
  .app-platform-item:nth-child(5){grid-column:4/span 2!important}
  .app-platform-item img{width:clamp(46px,14vw,62px)!important;height:clamp(46px,14vw,62px)!important}
  .app-platform-item strong{font-size:10px!important}
  .app-platform-item .platform-translated-label,.app-platform-item .platform-coming-soon{font-size:9px!important}
  .hadith-app-selection-grid{grid-template-columns:1fr!important}
  .hadith-app-selection-grid .hadith-app-card{display:none}
  .hadith-app-selection-grid .hadith-app-card.selected{display:flex}
}
