/* All-buttons page uses the current Ezan Vakti design family without changing existing templates. */
.ev-apk-more-page{box-sizing:border-box;max-width:760px;margin:12px auto 36px;padding:16px;color:var(--ev-more-text,#fff);font-family:inherit;border-radius:20px;min-height:55vh;background:var(--ev-more-bg,linear-gradient(165deg,#214e65,#102b40));}
.ev-apk-more-page *{box-sizing:border-box}
.ev-apk-more-top{display:flex;align-items:center;gap:16px}
.ev-apk-more-top h1{margin:0;color:inherit;font-size:clamp(20px,4vw,27px)}
.ev-apk-more-back{border:1px solid currentColor;border-radius:12px;padding:8px 13px;text-decoration:none!important;color:inherit!important;font-weight:600;background:rgba(255,255,255,.12)}
.ev-apk-more-desc{opacity:.8;margin:10px 0 20px;font-size:14px}
.ev-apk-more-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ev-apk-more-grid .ev-apk-more-tile{appearance:none;background:var(--ev-more-tile,rgba(255,255,255,.13));border:1px solid var(--ev-more-border,rgba(255,255,255,.3));color:inherit;border-radius:15px;padding:12px 5px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font:inherit;cursor:pointer;min-height:92px;transition:transform .15s,background .15s}
.ev-apk-more-grid .ev-apk-more-tile:hover,.ev-apk-more-grid .ev-apk-more-tile:focus-visible{transform:translateY(-2px);background:var(--ev-more-hover,rgba(255,255,255,.21));outline-offset:2px}
.ev-apk-more-grid .ev1-ref4-tool-icon,.ev-apk-more-grid .ev2-tool-icon{display:grid;place-items:center;width:34px;height:34px}
.ev-apk-more-grid svg{display:block;width:29px;height:29px;stroke:currentColor;fill:none}
.ev-apk-more-grid .ev2-tool-name,.ev-apk-more-grid .ev-apk-home-label{font-size:clamp(10px,2.6vw,13px);font-weight:600;overflow-wrap:anywhere;text-align:center;line-height:1.3}
.ev-apk-more-design-1{--ev-more-bg:linear-gradient(160deg,#f6fdfa,#d4eae3);--ev-more-text:#075d5a;--ev-more-tile:rgba(255,255,255,.82);--ev-more-border:rgba(13,114,105,.2);--ev-more-hover:#fff}
.ev-apk-more-design-2{--ev-more-bg:linear-gradient(160deg,#132c53,#1a5580 65%,#af6444);--ev-more-text:#fff;--ev-more-tile:rgba(12,25,49,.45)}
.ev-apk-more-design-3{--ev-more-bg:linear-gradient(155deg,#243d66,#314e73 48%,#497b83);--ev-more-text:#fff;--ev-more-tile:rgba(255,255,255,.12)}
.ev-apk-more-design-4{--ev-more-bg:linear-gradient(150deg,#dceffa,#f6faf7);--ev-more-text:#1c536c;--ev-more-tile:rgba(255,255,255,.75);--ev-more-border:rgba(42,100,125,.18)}
@media(max-width:460px){.ev-apk-more-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.ev-apk-more-page{margin:0 auto 22px;border-radius:15px;padding:14px 10px}.ev-apk-more-grid .ev-apk-more-tile{min-height:88px}}
@media(max-width:340px){.ev-apk-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v1.2.155: More page only – no duplicate back button, full-width mobile layout.
   The existing shared header remains the only Back control. */
body.ev-apk-more-screen .ev-apk-more-back { display:none!important; }
body.ev-apk-more-screen .ev-apk-more-top { gap:0; }
@media (max-width: 767px) {
  /* The WordPress page content has side padding; break out only this page and its header. */
  html body.ev-apk-more-screen #ev-shared-app-header,
  html body.ev-apk-more-screen .ev-apk-more-page {
    box-sizing:border-box!important;
    width:100vw!important;max-width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
  }
  html body.ev-apk-more-screen .ev-apk-more-page {
    border-radius:0!important;
    padding:14px clamp(10px,3vw,16px) 24px!important;
    min-height:55vh;
  }
  html body.ev-apk-more-screen #ev-shared-app-header {
    border-radius:0!important;
  }
  html body.ev-apk-more-screen { overflow-x:clip!important; }
}
/* Parent/theme icon resets on regular WP pages can make the circles appear blank.
   Confine the repair to this page's shared app header only. */
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar .ev-quick-icon {
  visibility:visible!important;opacity:1!important;color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar .ev-quick-icon svg {
  display:block!important;visibility:visible!important;opacity:1!important;
  width:100%!important;height:100%!important;min-width:18px!important;min-height:18px!important;
  fill:none!important;stroke:#fff!important;stroke-width:1.9!important;
  color:#fff!important;
}
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar .ev-quick-icon svg :is(path,circle,rect,line,polyline,polygon,ellipse) {
  display:inline!important;visibility:visible!important;opacity:1!important;
  stroke:#fff!important;fill:none!important;stroke-width:1.9!important;
}
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar .ev-quick-profile img {
  display:block!important;visibility:visible!important;opacity:1!important;
  width:100%!important;height:100%!important;object-fit:cover!important;
}

/* v1.2.156: More page is a WordPress page, not an app shell.
   Ezan Vakti adds its own #ev-shared-app-header to the page content.
   Suppress the WordPress theme header ONLY here to avoid two stacked bars.
   Never hide or re-create the application's actual shared header. */
html body.ev-apk-more-screen > header:not(#ev-shared-app-header),
html body.ev-apk-more-screen #masthead:not(#ev-shared-app-header),
html body.ev-apk-more-screen #site-header:not(#ev-shared-app-header),
html body.ev-apk-more-screen #header:not(#ev-shared-app-header),
html body.ev-apk-more-screen header.site-header:not(#ev-shared-app-header),
html body.ev-apk-more-screen .site-header:not(#ev-shared-app-header),
html body.ev-apk-more-screen .main-header:not(#ev-shared-app-header),
html body.ev-apk-more-screen .mobile-header:not(#ev-shared-app-header),
html body.ev-apk-more-screen .header-wrap:not(#ev-shared-app-header),
html body.ev-apk-more-screen .header-wrapper:not(#ev-shared-app-header),
html body.ev-apk-more-screen .wp-site-blocks > header:not(#ev-shared-app-header),
html body.ev-apk-more-screen #page > header:not(#ev-shared-app-header),
html body.ev-apk-more-screen #site > header:not(#ev-shared-app-header),
html body.ev-apk-more-screen header[role="banner"]:not(#ev-shared-app-header){
    display:none!important;
}
/* Do not leave the usual top offset/padding behind on the more-buttons page. */
html body.ev-apk-more-screen #ev-shared-app-header{margin-top:0!important;}

/* The previous SVG visibility workaround allowed theme styles to push icons
   below their circular hit area. Put each SVG exactly in the center of its
   *existing* button, with no new duplicated controls or wrapper elements. */
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar .ev-quick-icon{
    position:relative!important;
    display:grid!important;
    place-items:center!important;
    line-height:1!important;
}
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar .ev-quick-icon > svg{
    box-sizing:border-box!important;
    position:absolute!important;
    inset:auto!important;
    top:50%!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    transform:translate(-50%,-50%)!important;
    margin:0!important;
    padding:0!important;
    width:22px!important;
    height:22px!important;
    min-width:0!important;
    min-height:0!important;
    max-width:22px!important;
    max-height:22px!important;
    vertical-align:middle!important;
}
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar .ev-quick-profile > svg{
    width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;
}
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar .ev-quick-profile > img{
    margin:auto!important;position:relative!important;transform:none!important;
}

/* v1.2.157: theme-free More page only for non-admins. The original
   #ev-shared-app-header is rendered by Ezan Vakti through the_content. */
html body.ev-apk-more-document {margin:0;max-width:100%;overflow-x:clip;background:#fff}
html body.ev-apk-more-document #ev-apk-more-root {width:100%;max-width:none;margin:0;padding:0}
html body.ev-apk-more-document #ev-shared-app-header {margin:0!important;max-width:100%!important}
/* Avatar crop: theme and third-party img rules may otherwise push the image
   outside the profile circle. Restrict these overrides to the More page. */
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar a.ev-quick-profile {
  display:grid!important;place-items:center!important;position:relative!important;
  overflow:hidden!important;isolation:isolate;
  box-sizing:border-box!important;border-radius:50%!important;padding:0!important;
  flex-shrink:0!important;
}
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar a.ev-quick-profile > img.ev-quick-avatar {
  display:block!important;position:absolute!important;
  inset:0!important;top:0!important;left:0!important;
  box-sizing:border-box!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
  margin:0!important;padding:0!important;border:0!important;
  transform:none!important;object-fit:cover!important;object-position:center!important;
  border-radius:50%!important;vertical-align:middle!important;
}
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar a.ev-quick-profile > svg {
  display:block!important;position:absolute!important;top:50%!important;left:50%!important;
  right:auto!important;bottom:auto!important;margin:0!important;padding:0!important;
  transform:translate(-50%,-50%)!important;
  width:22px!important;height:22px!important;min-width:0!important;min-height:0!important;
}

/* v1.2.160: The minimal More page previously left a white strip below
   the cards when there were few buttons. Continue the active template's
   background onto the document without stretching the cards or changing
   the shared header, advertisements, or button count. */
html:has(body.ev-apk-more-document) {
    min-height:100%;
}
html body.ev-apk-more-document {
    min-height:100dvh;
    margin:0;
}
html body.ev-apk-more-document:has(.ev-apk-more-design-1) {background:#d4eae3!important;}
html body.ev-apk-more-document:has(.ev-apk-more-design-2) {background:#1a5580!important;}
html body.ev-apk-more-document:has(.ev-apk-more-design-3) {background:#314e73!important;}
html body.ev-apk-more-document:has(.ev-apk-more-design-4) {background:#eaf4f8!important;}
html body.ev-apk-more-document .ev-apk-more-page {
    margin-bottom:0!important;
}


/* v1.2.176: The More-page specific CSS must not undo the shared header
   alignment or move the avatar on OEM WebViews. */
html body.ev-apk-more-screen #ev-shared-app-header {
  display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;
  grid-template-rows:auto!important;align-items:center!important;align-content:center!important;
}
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar {
  align-self:center!important;justify-self:end!important;max-width:none!important;
  flex-wrap:nowrap!important;height:var(--ev-header-icon-size,40px)!important;
  min-height:var(--ev-header-icon-size,40px)!important;margin:0!important;padding:0!important;
}
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar > a.ev-quick-icon {
  align-self:center!important;margin:0!important;
}
html body.ev-apk-more-screen #ev-shared-app-header .ev-quickbar a.ev-quick-profile > img.ev-quick-avatar {
  top:2px!important;left:2px!important;right:auto!important;bottom:auto!important;
  width:calc(100% - 4px)!important;height:calc(100% - 4px)!important;
  margin:0!important;transform:none!important;
}

/* v1.2.186 — The shared header must remain visible when restoring the More page. */
html body.ev-apk-more-screen #ev-shared-app-header{
 display:flex!important;visibility:visible!important;opacity:1!important;
 position:relative!important;top:auto!important;left:auto!important;
 flex:0 0 auto!important;width:100%!important;max-width:100%!important;
 margin:0!important;z-index:99990!important;
}
html body.ev-apk-more-document{min-height:100dvh!important;overflow-x:clip!important}
html body.ev-apk-more-document #ev-apk-more-root{
 box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
 width:100%!important;min-width:0!important;min-height:100dvh!important;
 padding:0 0 env(safe-area-inset-bottom,0px)!important;margin:0!important;
}
html body.ev-apk-more-document .ev-apk-more-page{
 box-sizing:border-box!important;flex:1 0 auto!important;min-height:0!important;
 max-width:none!important;width:100%!important;
 margin:0!important;padding-bottom:max(20px,env(safe-area-inset-bottom,0px))!important;
 overflow-x:clip!important;
}
/* The non-admin More shell is already full-bleed. Do not apply the old
   viewport breakout (100vw + negative margins) a second time: that causes
   several-pixel horizontal scroll on devices with a browser scrollbar. */
@media(max-width:767px){
 html body.ev-apk-more-document #ev-shared-app-header,
 html body.ev-apk-more-document .ev-apk-more-page{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  margin-left:0!important;margin-right:0!important;
 }
}

/* Manual Google Play link: a navigation action, never the quota-limited in-app API. */
.ev-apk-more-page .ev-apk-review-link{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:50px;width:calc(100% - 28px);max-width:620px;margin:18px auto 8px;padding:12px 16px;border-radius:16px;background:#fff;color:#155c62;border:1px solid rgba(10,85,89,.2);font:650 16px/1.3 system-ui,sans-serif;text-align:center;text-decoration:none;box-shadow:0 5px 16px rgba(14,69,78,.08)}
.ev-apk-more-page .ev-apk-review-link:focus-visible{outline:3px solid #13867d;outline-offset:3px}
