/*
 * Hayaat Prime Shell
 * Companion shell for Arkia Prime Core / Café Hayaat UI.
 */
:root{
  --aps-bg:#83ABAB;
  --aps-bg-soft:#9FC2C0;
  --aps-bg-deep:#2F7680;
  --aps-bg-dark:#174A54;
  --aps-surface:rgba(255,248,236,.58);
  --aps-card:#FFF8EC;
  --aps-card2:#F2E1C7;
  --aps-text:#163F48;
  --aps-muted:#58717A;
  --aps-border:rgba(230,208,179,.78);
  --aps-accent:#2F7680;
  --aps-burgundy:#6B0205;
  --aps-wine:#6B0205;
  --aps-cream:#E6D0B3;
  --aps-radius:22px;
  --aps-maxw:1180px;
  --aps-shadow:0 18px 44px rgba(20,65,73,.16);
  --font-primary:'Vazirmatn','Segoe UI',Tahoma,Arial,sans-serif;
}
*{box-sizing:border-box}
html{min-height:100%;scroll-behavior:smooth}
body.aps-body{
  margin:0;
  min-height:100svh;
  overflow-x:hidden;
  direction:rtl;
  font-family:var(--font-primary);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(circle at 50% -10%,rgba(255,255,255,.38),transparent 34%),
    linear-gradient(155deg,var(--aps-bg-soft),var(--aps-bg) 48%,#679B9F);
  background-attachment:fixed;
  color:var(--aps-text);
}
body.aps-body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.09;
  background-image:
    linear-gradient(30deg,transparent 47%,rgba(255,255,255,.55) 48%,transparent 49%),
    linear-gradient(150deg,transparent 47%,rgba(255,255,255,.42) 48%,transparent 49%);
  background-size:38px 38px;
}
body,h1,h2,h3,h4,h5,h6,p,span,a,li,td,th,button,input,select,textarea{font-family:inherit}
a{color:inherit}
button,input,textarea,select{color:var(--aps-text)}
::placeholder{color:var(--aps-muted);opacity:.76}

.aps-app{
  min-height:100svh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding-bottom:calc(94px + env(safe-area-inset-bottom));
}
.aps-content{
  width:100%;
  max-width:var(--aps-maxw);
  padding:14px 14px 0;
}

/* Header */
.aps-topbar{
  position:sticky;
  top:0;
  z-index:9000;
  width:min(calc(100% - 24px),var(--aps-maxw));
  min-height:72px;
  margin:10px auto 0;
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  border:1px solid rgba(230,208,179,.66);
  border-radius:22px;
  background:rgba(255,248,236,.86);
  box-shadow:0 14px 34px rgba(19,65,73,.15);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.aps-topbar.is-scrolled{
  background:rgba(255,248,236,.94);
  box-shadow:0 18px 42px rgba(19,65,73,.20);
}
.aps-brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
}
.aps-logo-frame{
  width:50px;
  height:50px;
  flex:0 0 50px;
  display:grid;
  place-items:center;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.aps-logo-img{
  width:42px;
  height:42px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 4px 10px rgba(23,74,84,.10));
}
.aps-brand-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.aps-brand-copy strong{
  color:var(--aps-bg-dark);
  font-size:16px;
  font-weight:800;
  white-space:nowrap;
}
.aps-brand-copy small{
  color:var(--aps-muted);
  font-size:11px;
  white-space:nowrap;
}
.aps-top-actions{margin-right:auto}
.aps-top-menu{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
.aps-top-menu a,.aps-back-link{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 13px;
  border:1px solid rgba(47,118,128,.16);
  border-radius:14px;
  background:rgba(131,171,171,.10);
  color:var(--aps-bg-dark);
  text-decoration:none;
  font-size:13px;
  font-weight:700;
}

/* Bottom navigation */
.aps-bottomnav{
  position:fixed;
  z-index:9200;
  left:50%;
  bottom:max(10px,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(calc(100% - 20px),720px);
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  padding:8px;
  border:1px solid rgba(230,208,179,.85);
  border-radius:24px;
  background:rgba(255,248,236,.94);
  box-shadow:0 18px 46px rgba(19,65,73,.25);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.aps-tab{
  position:relative;
  min-width:0;
  min-height:60px;
  padding:8px 5px 7px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  overflow:hidden;
  border:1px solid transparent;
  border-radius:17px;
  color:var(--aps-muted);
  text-decoration:none;
  transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.aps-tab::before{
  content:"";
  position:absolute;
  inset:auto 20% 0;
  height:3px;
  border-radius:9px;
  background:transparent;
}
.aps-tab .aps-ico{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.aps-tab .aps-label{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:700;
}
.aps-tab.is-active{
  color:#FFF8EC;
  background:linear-gradient(145deg,var(--aps-bg-deep),var(--aps-bg-dark));
  box-shadow:0 9px 22px rgba(23,74,84,.26);
  transform:translateY(-3px);
}
.aps-tab.is-active::before{background:var(--aps-cream)}

/* Plugin landing remains full bleed. */
body.apc-route-arkia .aps-topbar,
body.apc-route-arkia .aps-bottomnav{display:none}
body.apc-route-arkia .aps-app{
  padding-bottom:0;
  align-items:stretch;
}
body.apc-route-arkia .aps-content{
  max-width:none;
  width:100%;
  padding:0;
}

/* Contact section displayed on the landing route. */
.aps-contact{display:none}
body.apc-route-arkia .aps-contact{
  display:block;
  width:100%;
  padding:34px 16px 40px;
  background:
    linear-gradient(180deg,rgba(131,171,171,0),rgba(47,118,128,.16) 20%,rgba(23,74,84,.30));
}
.aps-contact-inner{
  width:min(100%,900px);
  margin:0 auto;
}
.aps-contact-head{
  margin-bottom:18px;
  text-align:center;
}
.aps-contact-kicker{
  display:inline-block;
  margin-bottom:4px;
  color:var(--aps-cream);
  font-size:12px;
  font-weight:800;
}
.aps-contact-title{
  margin:0;
  color:#FFF8EC;
  font-size:clamp(22px,5vw,30px);
  font-weight:900;
}
.aps-contact-sub{
  margin:7px 0 0;
  color:rgba(255,248,236,.78);
  font-size:13px;
}
.aps-map-card{
  overflow:hidden;
  border:1px solid rgba(230,208,179,.56);
  border-radius:24px;
  background:rgba(255,248,236,.82);
  box-shadow:var(--aps-shadow);
}
.aps-map{width:100%;height:300px;border:0;display:block}
.aps-smart-map{position:relative}
.aps-map[hidden],.aps-map-switcher[hidden],.aps-map-loading[hidden]{display:none!important}
.aps-map-loading{
  min-height:300px;
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:var(--aps-text);
  font-size:14px;
  font-weight:800;
  text-align:center;
}
.aps-map-loading-spinner{
  width:24px;
  height:24px;
  flex:0 0 24px;
  border:2px solid rgba(19,65,73,.18);
  border-top-color:var(--aps-bg-deep);
  border-radius:50%;
  animation:apsMapSpin .8s linear infinite;
}
@keyframes apsMapSpin{to{transform:rotate(360deg)}}
.aps-map-switcher{
  min-height:54px;
  padding:9px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid rgba(19,65,73,.12);
  background:rgba(255,248,236,.94);
}
.aps-map-switcher-buttons{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.aps-map-switch{
  min-height:34px;
  padding:6px 13px;
  border:1px solid rgba(19,65,73,.20);
  border-radius:12px;
  background:rgba(255,255,255,.54);
  color:var(--aps-text);
  font:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.aps-map-switch.is-active{
  border-color:transparent;
  background:linear-gradient(145deg,var(--aps-bg),var(--aps-bg-deep));
  color:#fff8ec;
}
.aps-map-switch:focus-visible{outline:3px solid rgba(131,171,171,.42);outline-offset:2px}

.aps-map-placeholder{
  min-height:180px;
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  color:var(--aps-text);
}
.aps-map-ph-icon{
  width:54px;
  height:54px;
  flex:0 0 54px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:rgba(131,171,171,.16);
  color:var(--aps-bg-deep);
  font-size:27px;
}
.aps-map-ph-title{margin-bottom:4px;font-weight:900}
.aps-map-ph-sub{color:var(--aps-muted);font-size:13px;line-height:1.8}
.aps-contact-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.aps-info-card{
  min-width:0;
  padding:16px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  border:1px solid rgba(230,208,179,.70);
  border-radius:21px;
  background:rgba(255,248,236,.89);
  box-shadow:0 12px 28px rgba(19,65,73,.11);
}
.aps-info-icon{
  width:43px;
  height:43px;
  flex:0 0 43px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(145deg,var(--aps-bg),var(--aps-bg-deep));
  color:#FFF8EC;
  font-size:19px;
}
.aps-info-label{
  margin-bottom:5px;
  color:var(--aps-muted);
  font-size:11px;
  font-weight:700;
}
.aps-info-value{
  overflow-wrap:anywhere;
  color:var(--aps-text);
  font-size:14px;
  line-height:1.85;
}
.aps-link{color:var(--aps-bg-deep);font-weight:900;text-decoration:none}
.aps-phone-list{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
}
.aps-phone-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  padding:5px 9px;
  border:1px solid rgba(47,118,128,.16);
  border-radius:11px;
  background:rgba(131,171,171,.09);
  direction:ltr;
  unicode-bidi:plaintext;
}
.aps-phone-link b{
  white-space:nowrap;
  font:inherit;
  font-weight:900;
}
.aps-phone-caption{
  color:var(--aps-muted);
  font-size:10px;
  font-weight:700;
  direction:rtl;
}
.aps-socials{display:flex;flex-wrap:wrap;gap:7px}
.aps-social{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 10px;
  border:1px solid rgba(47,118,128,.18);
  border-radius:12px;
  background:rgba(131,171,171,.10);
  color:var(--aps-bg-dark);
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}
.aps-social--instagram{
  width:46px;
  height:46px;
  min-height:46px;
  padding:0;
  border:0;
  border-radius:14px;
  color:#fff;
  background:
    radial-gradient(circle at 30% 105%,#feda75 0 20%,#fa7e1e 38%,#d62976 58%,#962fbf 76%,#4f5bd5 100%);
  box-shadow:0 8px 22px rgba(150,47,191,.22);
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.aps-social--instagram:hover,
.aps-social--instagram:focus-visible{
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 11px 26px rgba(150,47,191,.3);
  filter:saturate(1.08);
}
.aps-social--instagram svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.85;
}
.aps-social--instagram .aps-instagram-dot{
  fill:currentColor;
  stroke:none;
}
.aps-social--instagram img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:inherit;
}
.aps-muted{color:var(--aps-muted);font-size:12px}
.aps-policy{margin-top:16px;text-align:center}
.aps-policy-link{
  min-height:43px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 15px;
  border:1px solid rgba(230,208,179,.62);
  border-radius:15px;
  background:rgba(255,248,236,.15);
  color:#FFF8EC;
  text-decoration:none;
  font-size:13px;
  font-weight:800;
}

/* Static / Privacy pages */
.aps-static-app{padding-bottom:30px}
.aps-policy-page{padding-top:20px}
.aps-policy-article{direction:rtl;text-align:right;
  padding:clamp(18px,4vw,30px);
  border:1px solid rgba(230,208,179,.76);
  border-radius:25px;
  background:rgba(255,248,236,.92);
  box-shadow:var(--aps-shadow);
}
.aps-policy-h1{
  margin:0 0 18px;
  color:var(--aps-bg-dark);
  font-size:clamp(22px,5vw,30px);
  font-weight:900;
}
.aps-policy-body{color:var(--aps-text);font-size:14px;line-height:2}
.aps-policy-body h2,.aps-policy-body h3{margin:22px 0 7px;color:var(--aps-bg-deep)}
.aps-policy-body p{margin:8px 0}
.aps-policy-body ul{
  margin:10px 0 16px;
  padding:0 22px 0 0;
}
.aps-policy-body li{margin:7px 0}
.aps-policy-body strong{color:var(--aps-bg-dark)}
.aps-policy-intro{
  margin-bottom:20px;
  padding:15px 17px;
  border:1px solid rgba(47,118,128,.18);
  border-radius:18px;
  background:rgba(131,171,171,.12);
}
.aps-policy-note{
  margin:18px 0;
  padding:15px 17px;
  border:1px solid rgba(107,2,5,.18);
  border-right:4px solid var(--aps-wine);
  border-radius:16px;
  background:rgba(107,2,5,.055);
}
.aps-policy-note p{margin-bottom:0}

.aps-policy-home-action{
  display:flex;
  justify-content:center;
  margin-top:26px;
  padding-top:22px;
  border-top:1px solid rgba(47,118,128,.16);
}
.aps-policy-home-button{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:11px 22px;
  border:1px solid rgba(230,208,179,.82);
  border-radius:16px;
  background:linear-gradient(145deg,var(--aps-bg-deep),var(--aps-bg-dark));
  box-shadow:0 10px 24px rgba(17,66,75,.18);
  color:#FFF8EC;
  text-decoration:none;
  font-size:14px;
  font-weight:900;
  transition:transform .18s ease,box-shadow .18s ease;
}
.aps-policy-home-button:hover,
.aps-policy-home-button:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(17,66,75,.24);
}
.aps-policy-home-button span[aria-hidden="true"]{
  font-size:18px;
  line-height:1;
}

/* Harmonize common plugin surfaces when the Hayaat plugin skin is active. */
body.apc-hayaat-active .aps-content{background:transparent}
body.apc-hayaat-active .apc-modal__panel,
body.apc-hayaat-active .apc-busy__panel{
  border-color:rgba(230,208,179,.65);
}
body.apc-hayaat-active .apc-table-badge{
  background:rgba(23,74,84,.82);
  border-color:rgba(230,208,179,.50);
  color:#FFF8EC;
}

/* Desktop */
@media(min-width:760px){
  .aps-content{padding-inline:18px}
  .aps-bottomnav{bottom:14px}
}

/* Mobile */
@media(max-width:640px){
  .aps-app{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
  .aps-topbar{
    width:100%;
    min-height:64px;
    margin:0;
    padding:8px 11px;
    border-top:0;
    border-left:0;
    border-right:0;
    border-radius:0 0 22px 22px;
  }
  .aps-logo-frame{width:45px;height:45px;flex-basis:45px;border-radius:14px}
  .aps-logo-img{width:38px;height:38px}
  .aps-brand-copy strong{font-size:14px}
  .aps-brand-copy small{display:none}
  .aps-content{padding:10px 9px 0}
  .aps-bottomnav{
    width:calc(100% - 12px);
    bottom:max(6px,env(safe-area-inset-bottom));
    border-radius:21px;
    gap:4px;
    padding:6px;
  }
  .aps-tab{min-height:58px;border-radius:15px}
  .aps-tab .aps-label{font-size:11px}
  .aps-contact{padding-inline:10px}
  .aps-contact-grid{grid-template-columns:1fr}
  .aps-map{height:240px}
  .aps-map-loading{min-height:240px}
  .aps-map-switcher{align-items:stretch;flex-direction:column}
  .aps-map-switcher-buttons{width:100%}
  .aps-map-switch{flex:1}
}

/* Very narrow screens */
@media(max-width:350px){
  .aps-brand-copy{display:none}
  .aps-tab .aps-label{font-size:10px}
}

/* Reduced motion */
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* Privacy page mobile reliability — v0.2.4 */
body.aps-privacy-page,
body.page-privacy-policy,
body.page-template-page-privacy-policy{
  height:auto!important;
  min-height:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
}
body.aps-privacy-page::before,
body.page-privacy-policy::before,
body.page-template-page-privacy-policy::before{
  z-index:-1!important;
}
.aps-privacy-app{
  position:relative!important;
  z-index:20!important;
  display:flex!important;
  min-height:100dvh!important;
  height:auto!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
  padding-bottom:max(32px,env(safe-area-inset-bottom))!important;
}
.aps-privacy-app .aps-policy-page,
.aps-privacy-app .aps-policy-article,
.aps-privacy-app .aps-policy-body{
  display:block!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}
.aps-privacy-app .aps-policy-page{
  position:relative;
  z-index:21;
  padding-bottom:24px;
}
.aps-privacy-app .aps-policy-article{
  color:#163F48!important;
  background:rgba(255,248,236,.96)!important;
}
.aps-privacy-app .aps-policy-body,
.aps-privacy-app .aps-policy-body p,
.aps-privacy-app .aps-policy-body li{
  color:#163F48!important;
  -webkit-text-fill-color:#163F48!important;
}
.aps-privacy-app .aps-policy-body h2,
.aps-privacy-app .aps-policy-body h3,
.aps-privacy-app .aps-policy-body strong{
  color:#174A54!important;
  -webkit-text-fill-color:#174A54!important;
}

@media(max-width:640px){
  .aps-privacy-app{
    display:block!important;
    padding-bottom:calc(28px + env(safe-area-inset-bottom))!important;
  }
  .aps-privacy-app .aps-privacy-topbar{
    position:relative!important;
    top:auto!important;
    z-index:50!important;
  }
  .aps-privacy-app .aps-policy-page{
    width:100%!important;
    padding:12px 8px 24px!important;
  }
  .aps-privacy-app .aps-policy-article{
    width:100%!important;
    padding:18px 14px 24px!important;
    border-radius:20px!important;
  }
  .aps-privacy-app .aps-policy-h1{
    margin-bottom:14px!important;
    font-size:23px!important;
    line-height:1.55!important;
  }
  .aps-privacy-app .aps-policy-body{
    font-size:14px!important;
    line-height:2.05!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
  }
  .aps-privacy-app .aps-policy-body h2{
    margin-top:22px!important;
    font-size:17px!important;
    line-height:1.75!important;
  }
  .aps-privacy-app .aps-policy-body ul{
    padding-right:20px!important;
  }
  .aps-privacy-app .aps-policy-intro,
  .aps-privacy-app .aps-policy-note{
    padding:13px!important;
  }
  .aps-privacy-app .aps-policy-home-action{
    margin-top:22px!important;
    padding-top:18px!important;
  }
  .aps-privacy-app .aps-policy-home-button{
    width:100%!important;
    min-height:52px!important;
    padding:12px 16px!important;
    font-size:14px!important;
  }
}


/* 0.2.15 — persistent shell navigation on Clean URL application routes */
body:not(.apc-route-arkia) .aps-bottomnav[data-aps-persistent-nav]{
  display:grid!important;
  position:fixed!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  z-index:9200!important;
}
/* The landing page intentionally stays full-bleed without the app navigation. */
body.apc-route-arkia .aps-bottomnav[data-aps-persistent-nav]{
  display:none!important;
}
