/*
Theme Name: Afghanya Main Theme
Theme URI: https://afghanya.org/
Author: Milad Rahimi
Description: Lightweight custom-coded theme for Afghanya (brand-first, fast, minimal plugins).
Version: 1.0.1
Text Domain: afghanya-main-theme
*/

:root{
  --afg-primary:#0B6F5B;
  --afg-primary-2:#33766A;
  --afg-accent:#AAC777;
  --afg-slate:#667C83;
  --afg-mint:#E6F4F0;
  --afg-white:#FFFFFF;

  --afg-text:#0b0f14;
  --afg-muted: var(--afg-slate);

  --afg-header-h: 64px;
}

/* Background */
html, body{
  background:
    radial-gradient(1200px 600px at 18% -10%, rgba(11,111,91,0.20), transparent 60%),
    radial-gradient(900px 500px at 92% 0%, rgba(170,199,119,0.18), transparent 62%),
    radial-gradient(900px 500px at 40% 110%, rgba(102,124,131,0.14), transparent 60%),
    linear-gradient(180deg, rgba(230,244,240,0.65), rgba(255,255,255,0.85));
}

body{
  margin:0;
  padding-top: var(--afg-header-h);
  color: var(--afg-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{ color: var(--afg-primary); text-decoration:none; }
a:hover{ color: var(--afg-primary-2); }

/* Header */
.afg-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--afg-header-h);
  z-index: 9999;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  background: linear-gradient(180deg, rgba(230,244,240,0.75), rgba(255,255,255,0.55));
  border-bottom: 1px solid rgba(102,124,131,0.18);

  transform: translateY(0);
  transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
}

.afg-header.is-hidden{ transform: translateY(calc(-1 * var(--afg-header-h))); }

.afg-header.is-scrolled{
  box-shadow: 0 14px 35px rgba(11,15,20,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.55));
}

.afg-header__inner{
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.afg-header__left{ display:flex; align-items:center; }
.afg-header__right{ display:flex; align-items:center; justify-content:flex-end; gap:10px; }

/* Logo + mobile tap overlay */
.afg-logoWrap{
  position: relative;
  display:flex;
  align-items:center;
}

.afg-logo{ display:flex; align-items:center; gap:10px; }

.custom-logo{
  height: 42px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.afg-logoTap{
  position:absolute;
  inset:-8px;
  border:0;
  background:transparent;
  padding:0;
  display:none;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Desktop menu */
.afg-nav{ display:flex; justify-content:center; }

.afg-menu{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  display:flex;
  align-items:center;
  gap:18px;
}

.afg-menu li{ margin:0 !important; padding:0 !important; }

.afg-menu a{
  display:inline-flex;
  align-items:center;
  height:38px;
  padding:0 10px;
  border-radius:999px;

  color: rgba(11,15,20,0.78);
  font-weight: 650;
  font-size: 14px;

  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.afg-menu a:hover{
  color: var(--afg-primary);
  background: rgba(170,199,119,0.18);
  transform: translateY(-1px);
}

/* Icon buttons */
.afg-iconbtn{
  width:40px;
  height:40px;
  border-radius:999px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  border:1px solid rgba(102,124,131,0.22);
  background: rgba(255,255,255,0.55);

  cursor:pointer;
  padding:0;

  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.afg-iconbtn:hover{
  transform: translateY(-1px);
  border-color: rgba(11,111,91,0.35);
  box-shadow: 0 10px 22px rgba(11,15,20,0.12);
}

.afg-iconbtn svg{
  width:18px;
  height:18px;
  fill: rgba(11,15,20,0.72);
}

/* Drawer: mobile-only futuristic panel */
.afg-drawer{
  position: fixed;
  inset: 0;
  z-index: 10000;

  background: rgba(11,15,20,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease;
}

.afg-drawer.is-open{
  opacity:1;
  pointer-events:auto;
}

.afg-drawer__panel{
  position:absolute;
  top:10px;
  left:10px;
  bottom:10px;

  width:min(380px, 86vw);
  border-radius:20px;

  background:
    radial-gradient(900px 400px at 10% 0%, rgba(11,111,91,0.35), transparent 55%),
    radial-gradient(700px 380px at 100% 20%, rgba(170,199,119,0.28), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.58));

  border:1px solid rgba(102,124,131,0.22);
  box-shadow: 0 30px 70px rgba(11,15,20,0.25);

  transform: translateX(-110%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.afg-drawer.is-open .afg-drawer__panel{ transform: translateX(0); }

.afg-drawer__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px 10px;
}

.afg-drawer__title{
  font-weight:900;
  letter-spacing:.3px;
  color: rgba(11,15,20,0.82);
}

.afg-drawer__content{ padding:6px 14px 14px; }

.afg-drawer__menu{
  list-style:none !important;
  margin:0 !important;
  padding:8px 0 0 !important;

  display:flex;
  flex-direction:column;
  gap:10px;
}

.afg-drawer__menu li{ margin:0 !important; padding:0 !important; }

.afg-drawer__menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;

  height:44px;
  padding:0 12px;
  border-radius:14px;

  color: rgba(11,15,20,0.78);
  font-weight:750;

  background: rgba(255,255,255,0.40);
  border:1px solid rgba(102,124,131,0.18);

  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}

.afg-drawer__menu a:hover{
  transform: translateX(2px);
  border-color: rgba(11,111,91,0.35);
  box-shadow: 0 14px 28px rgba(11,15,20,0.12);
}

.afg-drawer__actions{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(102,124,131,0.18);
}

.afg-drawer__link{
  display:flex;
  align-items:center;
  justify-content:center;

  height:44px;
  border-radius:14px;

  font-weight:900;
  color: var(--afg-white);
  background: linear-gradient(90deg, var(--afg-primary), var(--afg-primary-2));
  box-shadow: 0 18px 35px rgba(11,15,20,0.20);
}

/* Responsiveness */
@media (max-width: 900px){
  :root{ --afg-header-h: 56px; }
  body{ padding-top: var(--afg-header-h); }

  .afg-nav{ display:none; }
  .afg-logoTap{ display:block; }

  .afg-header__inner{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .custom-logo-link,
  .afg-logo{
    display:flex !important;
    align-items:center !important;
    gap:0 !important;
  }

  .custom-logo{
    height: 30px !important;
    max-width: 140px !important;
    width: auto !important;
    object-fit: contain !important;
    display:block !important;
  }

  .custom-logo-link{
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
  }

  /* Colorless icons on mobile */
  .afg-iconbtn{
    background: transparent !important;
    border: 1px solid rgba(102,124,131,0.20) !important;
    box-shadow: none !important;
  }

  .afg-iconbtn:hover{
    background: rgba(255,255,255,0.18) !important;
    border-color: rgba(11,111,91,0.25) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .afg-iconbtn svg{
    fill: rgba(11,15,20,0.45) !important;
  }

  /* HARD: remove any search forms on mobile (even if plugins inject them) */
  [role="search"], form.search-form, .search-form, .wp-block-search{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
}

/* Desktop: drawer never shows */
@media (min-width: 901px){
  .afg-drawer{ display:none !important; }
}
.afg-main{ padding: 22px 0 50px; }
.afg-container{ max-width: 1200px; margin: 0 auto; padding: 0 18px; }

.afg-footer{
  margin-top: 50px;
  border-top: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.afg-footer__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 18px;
  display: grid;
  gap: 12px;
}

.afg-footer__brand strong{ display:block; font-size: 16px; }
.afg-footer__brand span{ color: rgba(11,15,20,0.55); font-size: 13px; }

.afg-footer__menu{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
.afg-footer__menu a{ color: rgba(11,15,20,0.70); font-weight: 650; }
.afg-footer__menu a:hover{ color: var(--afg-primary); }

.afg-footer__copy{ color: rgba(11,15,20,0.55); font-size: 13px; }
/* Index template styling */
.afg-pagehead{
  margin: 26px 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.afg-pagehead__title{
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: .2px;
}

.afg-pagehead__subtitle{
  margin: 0;
  color: rgba(11,15,20,0.58);
}

.afg-postgrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px){
  .afg-postgrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .afg-postgrid{ grid-template-columns: 1fr; }
}

.afg-card{
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 35px rgba(11,15,20,0.08);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.afg-card:hover{
  transform: translateY(-2px);
  border-color: rgba(11,111,91,0.28);
  box-shadow: 0 26px 55px rgba(11,15,20,0.12);
}

.afg-card__title{
  margin: 0 0 10px;
  font-size: 16px;
}

.afg-card__link{
  color: rgba(11,15,20,0.82);
  font-weight: 800;
}
.afg-card__link:hover{ color: var(--afg-primary); }

.afg-card__excerpt{
  color: rgba(11,15,20,0.60);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.afg-card__cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--afg-primary);
}

.afg-pagination{
  margin: 22px 0 10px;
}

.afg-pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.55);
  margin-right: 8px;
  color: rgba(11,15,20,0.72);
  font-weight: 750;
}

.afg-pagination .page-numbers.current{
  background: linear-gradient(90deg, var(--afg-primary), var(--afg-primary-2));
  color: white;
  border-color: transparent;
}

.afg-empty{
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed rgba(102,124,131,0.35);
  background: rgba(255,255,255,0.40);
}

.afg-empty__title{ margin: 0 0 6px; }
.afg-empty__text{ margin: 0; color: rgba(11,15,20,0.58); }
/* =========================
   Futuristic Footer (Glass + Neon)
   ========================= */

.afg-footer{
  position: relative;
  margin-top: 60px;
  overflow: hidden;

  border-top: 1px solid rgba(102,124,131,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.18));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* glow layer */
.afg-footer__glow{
  position:absolute;
  inset:-120px -120px auto -120px;
  height: 320px;
  pointer-events:none;
  background:
    radial-gradient(800px 240px at 18% 30%, rgba(11,111,91,0.28), transparent 60%),
    radial-gradient(700px 220px at 85% 40%, rgba(170,199,119,0.22), transparent 62%),
    radial-gradient(600px 220px at 55% 10%, rgba(102,124,131,0.18), transparent 65%);
  filter: blur(10px);
  opacity: .95;
}

.afg-footer__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 18px 18px;

  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}

/* Brand block */
.afg-footer__brand{
  display:flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;

  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.38);
  box-shadow: 0 26px 60px rgba(11,15,20,0.10);
}

.afg-footer__logo{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;

  border: 1px solid rgba(102,124,131,0.18);
  background:
    radial-gradient(120px 120px at 30% 20%, rgba(170,199,119,0.22), transparent 60%),
    radial-gradient(120px 120px at 70% 80%, rgba(11,111,91,0.18), transparent 60%),
    rgba(255,255,255,0.45);
  overflow:hidden;
}

.afg-footer__logo .custom-logo{
  height: 44px !important;
  width: auto !important;
  max-width: 56px !important;
  object-fit: contain !important;
  display:block !important;
}

.afg-footer__logoFallback{
  font-weight: 900;
  color: rgba(11,15,20,0.78);
}

.afg-footer__brandText{
  display:flex;
  flex-direction:column;
  gap: 4px;
}

.afg-footer__name{
  font-size: 18px;
  letter-spacing: .2px;
  color: rgba(11,15,20,0.86);
}

.afg-footer__tag{
  font-size: 13px;
  color: rgba(11,15,20,0.58);
  line-height: 1.35;
}

/* Nav blocks */
.afg-footer__nav,
.afg-footer__actions{
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.30);
}

.afg-footer__navTitle{
  font-weight: 900;
  letter-spacing: .25px;
  color: rgba(11,15,20,0.78);
  margin-bottom: 10px;
}

/* Footer menu */
.afg-footer__menu{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;

  display:flex;
  flex-direction:column;
  gap: 10px;
}

.afg-footer__menu li{ margin:0 !important; padding:0 !important; }

.afg-footer__menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.34);

  color: rgba(11,15,20,0.72);
  font-weight: 800;

  transition: transform .2s ease, border-color .25s ease, box-shadow .25s ease;
}

.afg-footer__menu a:hover{
  transform: translateX(2px);
  border-color: rgba(11,111,91,0.28);
  box-shadow: 0 18px 35px rgba(11,15,20,0.10);
  color: var(--afg-primary);
}

/* Action pills */
.afg-footer__pill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  height: 46px;
  padding: 0 14px;
  border-radius: 999px;

  border: 1px solid rgba(102,124,131,0.16);
  background: linear-gradient(90deg, rgba(11,111,91,0.10), rgba(170,199,119,0.10));
  color: rgba(11,15,20,0.76);
  font-weight: 900;

  box-shadow: 0 18px 35px rgba(11,15,20,0.08);
  transition: transform .2s ease, border-color .25s ease, box-shadow .25s ease;
  margin-bottom: 10px;
}

.afg-footer__pill:hover{
  transform: translateY(-1px);
  border-color: rgba(11,111,91,0.28);
  box-shadow: 0 26px 55px rgba(11,15,20,0.12);
  color: var(--afg-primary);
}

.afg-footer__pillDot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--afg-accent), var(--afg-primary));
  box-shadow: 0 0 0 6px rgba(11,111,91,0.10);
}

/* Bottom bar */
.afg-footer__bottom{
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(102,124,131,0.16);
  background: rgba(255,255,255,0.26);
}

.afg-footer__bottomInner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.afg-footer__copy{
  color: rgba(11,15,20,0.58);
  font-size: 13px;
  font-weight: 750;
}

.afg-footer__micro{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  justify-content:flex-end;
}

.afg-footer__microChip{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.30);
  color: rgba(11,15,20,0.58);
  font-weight: 800;
}

/* Responsive footer */
@media (max-width: 900px){
  .afg-footer__inner{
    grid-template-columns: 1fr;
  }
  .afg-footer__bottomInner{
    flex-direction: column;
    align-items: flex-start;
  }
  .afg-footer__micro{ justify-content:flex-start; }
}
/* =========================
   FOOTER: Desktop-only vs Mobile-only
   ========================= */

/* Default: show desktop, hide mobile */
.afg-footer--desktop{ display:block; }
.afg-footer--mobile{ display:none; }

/* Phone: hide desktop, show mobile */
@media (max-width: 900px){
  .afg-footer--desktop{ display:none !important; }
  .afg-footer--mobile{ display:block !important; }
}

/* =========================
   Mobile Footer Styling (Futuristic)
   ========================= */
.afg-mfoot{
  margin-top: 18px;
  padding: 18px 14px 14px;
  border-top: 1px solid rgba(102,124,131,0.18);

  background:
    radial-gradient(700px 220px at 20% 0%, rgba(11,111,91,0.30), transparent 60%),
    radial-gradient(700px 220px at 85% 20%, rgba(170,199,119,0.22), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,255,255,0.26));

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.afg-mfoot__top{
  display:flex;
  align-items:center;
  gap: 12px;

  padding: 14px;
  border-radius: 18px;

  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.40);
  box-shadow: 0 18px 40px rgba(11,15,20,0.10);
}

.afg-mfoot__logo{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;

  border: 1px solid rgba(102,124,131,0.18);
  background:
    radial-gradient(100px 100px at 30% 20%, rgba(170,199,119,0.22), transparent 60%),
    radial-gradient(100px 100px at 70% 80%, rgba(11,111,91,0.18), transparent 60%),
    rgba(255,255,255,0.45);
}

.afg-mfoot__logo .custom-logo{
  height: 40px !important;
  width: auto !important;
  max-width: 48px !important;
  object-fit: contain !important;
}

.afg-mfoot__brandText strong{
  display:block;
  font-size: 16px;
  font-weight: 900;
  color: rgba(11,15,20,0.84);
}

.afg-mfoot__brandText span{
  display:block;
  margin-top: 2px;
  font-size: 12.5px;
  color: rgba(11,15,20,0.58);
}

.afg-mfoot__chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.afg-mfoot__chip{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(102,124,131,0.16);
  background: rgba(255,255,255,0.34);
  color: rgba(11,15,20,0.62);
  font-weight: 850;
}

.afg-mfoot__quick{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.afg-mfoot__btn{
  height: 46px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;

  color: white;
  background: linear-gradient(90deg, var(--afg-primary), var(--afg-primary-2));
  box-shadow: 0 18px 35px rgba(11,15,20,0.16);
}

.afg-mfoot__btn--ghost{
  color: rgba(11,15,20,0.78);
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(102,124,131,0.18);
  box-shadow: none;
}

.afg-mfoot__nav{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.34);
}

.afg-mfoot__menu{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;

  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.afg-mfoot__menu li{ margin:0 !important; padding:0 !important; }

.afg-mfoot__menu a{
  display:flex;
  align-items:center;
  justify-content:center;

  height: 44px;
  border-radius: 14px;

  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.38);

  font-weight: 900;
  color: rgba(11,15,20,0.70);
}

.afg-mfoot__menu a:hover{
  border-color: rgba(11,111,91,0.25);
  color: var(--afg-primary);
}

.afg-mfoot__copy{
  margin-top: 12px;
  padding: 10px 6px 0;
  font-size: 12.5px;
  color: rgba(11,15,20,0.56);
  font-weight: 750;
}
/* =========================
   Home (front-page) — Option A
   ========================= */

.afg-section{ margin: 26px 0; }
.afg-section__head{ margin-bottom: 14px; }
.afg-section__title{ margin:0; font-size: 20px; letter-spacing:.2px; }
.afg-section__sub{ margin:6px 0 0; color: rgba(11,15,20,0.58); }

/* Buttons */
.afg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:46px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(102,124,131,0.18);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.afg-btn:hover{ transform: translateY(-1px); }

.afg-btn--primary{
  color: white;
  border-color: transparent;
  background: linear-gradient(90deg, var(--afg-primary), var(--afg-primary-2));
  box-shadow: 0 18px 35px rgba(11,15,20,0.16);
}

.afg-btn--glass{
  color: rgba(11,15,20,0.78);
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Hero */
.afg-hero{
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(102,124,131,0.18);
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(11,111,91,0.30), transparent 60%),
    radial-gradient(900px 400px at 90% 10%, rgba(170,199,119,0.22), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.32));
  box-shadow: 0 30px 80px rgba(11,15,20,0.10);

  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: stretch;
}

.afg-hero__kicker{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 850;
  color: rgba(11,15,20,0.60);
  margin-bottom: 10px;
}

.afg-dot{
  width:10px; height:10px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--afg-accent), var(--afg-primary));
  box-shadow: 0 0 0 6px rgba(11,111,91,0.10);
}

.afg-hero__title{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: .2px;
  color: rgba(11,15,20,0.86);
}

.afg-hero__text{
  margin: 0 0 14px;
  color: rgba(11,15,20,0.62);
  font-size: 15.5px;
  line-height: 1.55;
}

.afg-hero__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.afg-badge{
  display:inline-flex;
  align-items:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(102,124,131,0.16);
  background: rgba(255,255,255,0.38);
  color: rgba(11,15,20,0.62);
  font-weight: 850;
  margin-right: 8px;
  margin-top: 8px;
}

/* Hero card media */
.afg-heroCard{
  height: 100%;
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(102,124,131,0.18);
  background:
    radial-gradient(700px 240px at 30% 0%, rgba(170,199,119,0.20), transparent 60%),
    radial-gradient(700px 240px at 90% 80%, rgba(11,111,91,0.18), transparent 60%),
    rgba(255,255,255,0.42);
  box-shadow: 0 26px 60px rgba(11,15,20,0.10);
}

.afg-heroCard__top{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  margin-bottom: 12px;
}

.afg-heroCard__pill{
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  font-weight: 900;
  border: 1px solid rgba(102,124,131,0.16);
  background: rgba(255,255,255,0.46);
  color: rgba(11,15,20,0.70);
}
.afg-heroCard__pill--soft{
  background: rgba(255,255,255,0.30);
  color: rgba(11,15,20,0.58);
}

.afg-heroCard__title{
  font-weight: 950;
  font-size: 18px;
  color: rgba(11,15,20,0.82);
  margin-bottom: 6px;
}
.afg-heroCard__sub{
  color: rgba(11,15,20,0.58);
  margin-bottom: 14px;
}

.afg-heroCard__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.afg-miniCard{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.36);
}
.afg-miniCard__t{ font-weight: 950; color: rgba(11,15,20,0.76); }
.afg-miniCard__s{ margin-top: 2px; color: rgba(11,15,20,0.56); font-size: 13px; }

/* Categories */
.afg-cats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.afg-cat{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;

  border: 1px solid rgba(102,124,131,0.16);
  background: rgba(255,255,255,0.50);
  box-shadow: 0 20px 45px rgba(11,15,20,0.08);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.afg-cat:hover{
  transform: translateY(-2px);
  border-color: rgba(11,111,91,0.25);
  box-shadow: 0 28px 60px rgba(11,15,20,0.12);
}

.afg-cat__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;

  border: 1px solid rgba(102,124,131,0.16);
  background:
    radial-gradient(120px 120px at 30% 20%, rgba(170,199,119,0.22), transparent 60%),
    radial-gradient(120px 120px at 70% 80%, rgba(11,111,91,0.18), transparent 60%),
    rgba(255,255,255,0.48);
  color: rgba(11,15,20,0.78);
}

.afg-cat__text strong{
  display:block;
  font-weight: 950;
  color: rgba(11,15,20,0.82);
}
.afg-cat__text span{
  display:block;
  margin-top: 2px;
  color: rgba(11,15,20,0.56);
  font-size: 13px;
}

.afg-cat__arrow{
  margin-left:auto;
  font-weight: 950;
  color: rgba(11,15,20,0.45);
}

/* Trust strip */
.afg-trust{
  margin: 22px 0 10px;
  padding: 14px;
  border-radius: 20px;

  border: 1px solid rgba(102,124,131,0.16);
  background: rgba(255,255,255,0.44);

  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.afg-trust__item{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.34);
}
.afg-trust__item strong{ display:block; font-weight: 950; color: rgba(11,15,20,0.80); }
.afg-trust__item span{ display:block; margin-top: 2px; color: rgba(11,15,20,0.56); font-size: 13px; }

/* CTA */
.afg-cta{ margin: 28px 0 0; }
.afg-cta__box{
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(102,124,131,0.18);
  background:
    radial-gradient(900px 260px at 20% 0%, rgba(11,111,91,0.26), transparent 60%),
    radial-gradient(900px 260px at 92% 20%, rgba(170,199,119,0.20), transparent 62%),
    rgba(255,255,255,0.48);
  box-shadow: 0 26px 60px rgba(11,15,20,0.10);
}

.afg-cta__title{ margin:0 0 6px; font-size: 20px; }
.afg-cta__text{ margin:0 0 14px; color: rgba(11,15,20,0.58); }
.afg-cta__actions{ display:flex; gap: 10px; flex-wrap: wrap; }

/* Responsive home */
@media (max-width: 900px){
  .afg-hero{ grid-template-columns: 1fr; }
  .afg-hero__title{ font-size: 26px; }
  .afg-cats{ grid-template-columns: 1fr; }
  .afg-trust{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .afg-trust{ grid-template-columns: 1fr; }
}
/* =========================
   A) HERO Upgrade (Motion + Depth)
   ========================= */

/* Hero: stronger glass + depth */
.afg-hero{
  position: relative;
  overflow: hidden;
}

/* Add a soft animated aura layer */
.afg-hero::before{
  content:"";
  position:absolute;
  inset:-60px;
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(11,111,91,0.26), transparent 60%),
    radial-gradient(900px 420px at 88% 20%, rgba(170,199,119,0.22), transparent 62%),
    radial-gradient(700px 300px at 40% 110%, rgba(102,124,131,0.14), transparent 60%);
  filter: blur(2px);
  opacity: .9;
  transform: translate3d(0,0,0);
  animation: afgAuraMove 12s ease-in-out infinite alternate;
  pointer-events:none;
}

@keyframes afgAuraMove{
  0%   { transform: translate3d(-6px,-4px,0) scale(1.01); opacity:.82; }
  100% { transform: translate3d(8px,6px,0) scale(1.02); opacity:.95; }
}

/* Add ultra-light grain (premium) */
.afg-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: .18;
  pointer-events:none;
}

/* Ensure content stays above pseudo layers */
.afg-hero__content,
.afg-hero__media{
  position: relative;
  z-index: 2;
}

/* Hero title: more premium typography */
.afg-hero__title{
  letter-spacing: -0.4px;
  text-shadow: 0 12px 30px rgba(11,15,20,0.10);
}

/* Hero text: slightly clearer */
.afg-hero__text{
  color: rgba(11,15,20,0.64);
}

/* Give the media card a floating “alive” feel */
.afg-heroCard{
  transform: translateZ(0);
  animation: afgFloat 6s ease-in-out infinite;
}

@keyframes afgFloat{
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

/* Make the hero card stand out with a controlled glow */
.afg-heroCard{
  box-shadow:
    0 34px 90px rgba(11,15,20,0.16),
    0 0 0 1px rgba(170,199,119,0.12) inset;
}

/* Buttons: better tactile hover */
.afg-btn--primary:hover{
  box-shadow: 0 22px 45px rgba(11,15,20,0.20);
}

.afg-btn--glass:hover{
  border-color: rgba(11,111,91,0.24);
  box-shadow: 0 16px 35px rgba(11,15,20,0.10);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .afg-hero::before,
  .afg-heroCard{
    animation: none !important;
  }
}
/* =========================
   B) Category Cards (Premium)
   ========================= */

/* Grid spacing upgrade */
.afg-cats{
  gap: 14px;
}

/* Card: stronger hierarchy + micro interaction */
.afg-cat{
  position: relative;
  overflow: hidden;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(102,124,131,0.16);
  box-shadow: 0 18px 44px rgba(11,15,20,0.08);
}

/* Soft shine layer */
.afg-cat::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(240px 160px at 18% 18%, rgba(170,199,119,0.18), transparent 60%),
    radial-gradient(240px 160px at 88% 72%, rgba(11,111,91,0.14), transparent 60%);
  opacity: .55;
  pointer-events:none;
  transition: opacity .25s ease, transform .25s ease;
}

.afg-cat:hover::before{
  opacity: .9;
  transform: scale(1.02);
}

/* Icon: more premium */
.afg-cat__icon{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 18px;

  box-shadow:
    0 10px 24px rgba(11,15,20,0.10),
    0 0 0 1px rgba(170,199,119,0.14) inset;

  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.afg-cat:hover .afg-cat__icon{
  transform: translateY(-1px);
  box-shadow:
    0 16px 34px rgba(11,15,20,0.14),
    0 0 0 1px rgba(11,111,91,0.16) inset;
}

/* Text: stronger hierarchy */
.afg-cat__text strong{
  font-size: 15px;
  letter-spacing: -0.2px;
}

.afg-cat__text span{
  font-size: 13px;
  color: rgba(11,15,20,0.54);
}

/* Right meta (tag + arrow) */
.afg-cat__meta{
  margin-left: auto;
  display:flex;
  align-items:center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.afg-cat__tag{
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;

  font-weight: 900;
  font-size: 12px;
  color: rgba(11,15,20,0.62);

  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.40);
}

/* Arrow: animated nudge */
.afg-cat__arrow{
  font-weight: 950;
  color: rgba(11,15,20,0.42);
  transition: transform .22s ease, color .22s ease;
}

.afg-cat:hover .afg-cat__arrow{
  transform: translateX(4px);
  color: rgba(11,111,91,0.70);
}

/* Card hover lift */
.afg-cat:hover{
  transform: translateY(-2px);
  border-color: rgba(11,111,91,0.22);
  box-shadow: 0 26px 60px rgba(11,15,20,0.12);
}
.afg-soon{
  margin-top: 18px;
}
.afg-soon .afg-section__head{
  margin-bottom: 12px;
}
.afg-soon__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.afg-soon__item{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(15,118,110,.14);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .05);
  backdrop-filter: blur(10px);
  font-weight: 600;
  color: rgba(11, 18, 32, .82);
}
@media (max-width: 900px){
  .afg-soon__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .afg-soon__grid{ grid-template-columns: 1fr; }
}

.afg-pagecontent{
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 35px rgba(11,15,20,0.08);
}
/* =========================
   AUTH (Login / Register / Verify)
   ========================= */

.afg-authwrap{
  max-width: 460px;
}

.afg-note{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 35px rgba(11,15,20,0.06);
  color: rgba(11,15,20,0.78);
  margin: 0 0 12px;
  font-weight: 750;
}

.afg-note--ok{
  border-color: rgba(11,111,91,0.22);
}

.afg-note--bad{
  border-color: rgba(180, 70, 70, 0.25);
}

.afg-auth{
  display: grid;
  gap: 10px;
  max-width: 460px;
}

.afg-auth label{
  font-weight: 850;
  color: rgba(11,15,20,0.72);
  margin-top: 4px;
}

.afg-auth input{
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.55);
  padding: 0 12px;
  outline: none;
  color: rgba(11,15,20,0.84);
}

.afg-auth input:focus{
  border-color: rgba(11,111,91,0.28);
  box-shadow: 0 0 0 6px rgba(11,111,91,0.08);
}

.afg-auth__meta{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 6px;
  font-weight: 750;
  color: rgba(11,15,20,0.60);
}

.afg-auth__meta a{
  color: rgba(11,111,91,0.90);
}

.afg-auth__meta span{
  opacity: .55;
}
/* =========================
   Language Switcher + RTL
   ========================= */

.afg-langSwitch{
  display:flex;
  align-items:center;
  gap:8px;
  margin-right: 8px;
}

.afg-langBtn{
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 12px;

  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.45);
  color: rgba(11,15,20,0.70);

  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.afg-langBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(11,111,91,0.25);
  box-shadow: 0 10px 22px rgba(11,15,20,0.10);
}

.afg-langBtn.is-active{
  border-color: transparent;
  background: linear-gradient(90deg, var(--afg-primary), var(--afg-primary-2));
  color: #fff;
}

.afg-drawer__langWrap{
  margin: 6px 0 12px;
}

/* RTL support */
body.afg-rtl{
  direction: rtl;
  text-align: right;
}

/* RTL: flip header areas slightly */
body.afg-rtl .afg-header__right{
  justify-content: flex-start;
}

body.afg-rtl .afg-header__left{
  justify-content: flex-end;
}

/* RTL: drawer menu spacing */
body.afg-rtl .afg-drawer__menu a{
  justify-content: space-between;
}
/* =========================
   Auth UI — Liquid Glass (iPhone vibe)
   ========================= */

.afg-authShell{
  min-height: calc(100vh - var(--afg-header-h) - 120px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px 18px 60px;
}

.afg-authCard{
  width: min(520px, 100%);
  border-radius: 26px;
  border: 1px solid rgba(102,124,131,0.18);
  background:
    radial-gradient(900px 360px at 15% 10%, rgba(11,111,91,0.20), transparent 60%),
    radial-gradient(800px 320px at 90% 20%, rgba(170,199,119,0.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.26));
  box-shadow:
    0 40px 110px rgba(11,15,20,0.14),
    0 0 0 1px rgba(255,255,255,0.35) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow:hidden;
  position: relative;
}

.afg-authCard::before{
  content:"";
  position:absolute;
  inset:-80px;
  background:
    radial-gradient(500px 220px at 20% 10%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(620px 260px at 80% 25%, rgba(255,255,255,0.28), transparent 62%),
    radial-gradient(520px 240px at 50% 90%, rgba(170,199,119,0.14), transparent 60%);
  opacity:.65;
  pointer-events:none;
  filter: blur(1px);
}

.afg-authTop{
  padding: 22px 22px 10px;
  position: relative;
  z-index: 1;
}

.afg-authTitle{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.3px;
  color: rgba(11,15,20,0.86);
}

.afg-authSub{
  margin-top: 6px;
  font-size: 13.5px;
  color: rgba(11,15,20,0.56);
  font-weight: 750;
}

.afg-authForm{
  padding: 14px 22px 22px;
  position: relative;
  z-index: 1;
}

.afg-field{ margin-bottom: 12px; }

.afg-field label{
  display:block;
  font-size: 12.5px;
  font-weight: 850;
  color: rgba(11,15,20,0.68);
  margin-bottom: 7px;
}

.afg-authForm input{
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.55);
  padding: 0 14px;
  outline: none;
  font-weight: 750;
  color: rgba(11,15,20,0.78);
  box-shadow: 0 18px 40px rgba(11,15,20,0.06);
  transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease;
}

.afg-authForm input:focus{
  border-color: rgba(11,111,91,0.32);
  box-shadow: 0 22px 55px rgba(11,15,20,0.10);
  transform: translateY(-1px);
}

.afg-authBtn{
  width: 100%;
  height: 50px;
  border-radius: 18px;
  border: 0;
  cursor: pointer;
  margin-top: 6px;

  font-weight: 950;
  letter-spacing: .2px;
  color: #fff;

  background: linear-gradient(90deg, var(--afg-primary), var(--afg-primary-2));
  box-shadow: 0 24px 60px rgba(11,15,20,0.18);
  transition: transform .2s ease, box-shadow .25s ease;
}

.afg-authBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 30px 75px rgba(11,15,20,0.22);
}

.afg-authMeta{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-weight: 800;
  color: rgba(11,15,20,0.55);
  font-size: 13px;
}

.afg-authMeta--split{
  justify-content: space-between;
}

.afg-authMeta a{
  font-weight: 950;
  color: rgba(11,111,91,0.90);
}

.afg-authMeta a:hover{
  color: var(--afg-primary-2);
}

.afg-authNote{
  margin: 0 22px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(102,124,131,0.16);
  background: rgba(255,255,255,0.45);
  color: rgba(11,15,20,0.70);
  font-weight: 800;
  display:flex;
  gap: 10px;
  align-items:flex-start;
  position: relative;
  z-index: 1;
}

.afg-authNote.afg-ok{
  border-color: rgba(11,111,91,0.22);
  background: rgba(230,244,240,0.60);
}

.afg-authNote.afg-bad{
  border-color: rgba(255,80,80,0.25);
  background: rgba(255,240,240,0.60);
}

/* RTL nicer spacing */
body.afg-rtl .afg-authMeta--split{
  flex-direction: row-reverse;
}
/* =========================
   PC ONLY (lock header layout, disable mobile behaviors)
   ========================= */


/* Content area can still be RTL when needed */
body.afg-rtl{
  direction: rtl;
  text-align: right;
}

/* =========================
   Language Switcher (beautiful + fixed position)
   ========================= */
.afg-header__right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  white-space: nowrap;
}

.afg-lang{
  display:flex;
  align-items:center;
  gap:8px;

  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.afg-lang__btn{
  height: 34px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 999px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: .4px;

  color: rgba(11,15,20,0.70);
  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.32);

  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}

.afg-lang__btn:hover{
  transform: translateY(-1px);
  border-color: rgba(11,111,91,0.25);
  box-shadow: 0 14px 28px rgba(11,15,20,0.10);
}

.afg-lang__btn.is-active{
  color: white;
  border-color: transparent;
  background: linear-gradient(90deg, var(--afg-primary), var(--afg-primary-2));
  box-shadow: 0 18px 35px rgba(11,15,20,0.16);
}

/* =========================
   Liquid Glass Auth (Login/Register/Verify/Lost Password)
   ========================= */
.afg-authShell{
  min-height: calc(100vh - var(--afg-header-h) - 120px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 40px 18px;
}

.afg-authCard{
  width: min(520px, 100%);
  border-radius: 26px;
  border: 1px solid rgba(102,124,131,0.18);

  background:
    radial-gradient(900px 420px at 20% 0%, rgba(11,111,91,0.16), transparent 60%),
    radial-gradient(900px 420px at 90% 20%, rgba(170,199,119,0.14), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.38));

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 40px 120px rgba(11,15,20,0.12),
    0 0 0 1px rgba(255,255,255,0.25) inset;

  padding: 18px;
  position: relative;
  overflow:hidden;
}

/* premium grain */
.afg-authCard::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity:.20;
  pointer-events:none;
}

.afg-authTop{
  padding: 10px 10px 14px;
  position: relative;
  z-index: 1;
}

.afg-authTitle{
  font-size: 20px;
  font-weight: 950;
  color: rgba(11,15,20,0.86);
  letter-spacing: -0.2px;
}

.afg-authSub{
  margin-top: 4px;
  color: rgba(11,15,20,0.56);
  font-weight: 750;
  font-size: 13px;
}

.afg-authForm{
  position: relative;
  z-index: 1;
  display:flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 10px 10px;
}

.afg-field label{
  display:block;
  font-weight: 850;
  font-size: 12.5px;
  color: rgba(11,15,20,0.68);
  margin-bottom: 6px;
}

.afg-field input{
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 16px;

  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.65);

  outline: none;
  font-weight: 700;
  color: rgba(11,15,20,0.82);

  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.afg-field input:focus{
  border-color: rgba(11,111,91,0.35);
  box-shadow: 0 16px 40px rgba(11,15,20,0.12);
  transform: translateY(-1px);
}

.afg-authBtn{
  height: 48px;
  border-radius: 999px;
  border: 0;
  cursor:pointer;

  font-weight: 950;
  letter-spacing: .2px;
  color: white;

  background: linear-gradient(90deg, var(--afg-primary), var(--afg-primary-2));
  box-shadow: 0 22px 45px rgba(11,15,20,0.18);

  transition: transform .2s ease, box-shadow .25s ease;
}

.afg-authBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 28px 60px rgba(11,15,20,0.22);
}

.afg-authMeta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-weight: 800;
  color: rgba(11,15,20,0.58);
  padding-top: 6px;
}

.afg-authMeta--split{
  justify-content: space-between;
}

.afg-authMeta a{
  font-weight: 950;
  color: var(--afg-primary);
}

.afg-authMeta a:hover{
  color: var(--afg-primary-2);
}

.afg-authNote{
  margin: 6px 10px 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(102,124,131,0.16);
  background: rgba(255,255,255,0.52);
  font-weight: 850;
  color: rgba(11,15,20,0.70);
  position: relative;
  z-index: 1;
}

.afg-authNote.afg-ok{
  border-color: rgba(11,111,91,0.22);
  background: rgba(230,244,240,0.60);
}

.afg-authNote.afg-bad{
  border-color: rgba(180,30,60,0.20);
  background: rgba(255,230,235,0.55);
}
/* =========================================================
   AFG — Language Switcher (Pinned, Premium, Never Jumps)
   ========================================================= */
.afg-header__right{
  gap: 12px;
}

/* Force the language switcher to NOT flip order in RTL */
.afg-langSwitch{
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(11,15,20,0.10);
}

.afg-langBtn{
  min-width: 46px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .3px;

  color: rgba(11,15,20,0.68);
  background: transparent;
  border: 0;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.afg-langBtn:hover{
  background: rgba(170,199,119,0.16);
  color: rgba(11,15,20,0.82);
}

.afg-langBtn.is-active{
  color: #fff;
  background: linear-gradient(90deg, var(--afg-primary), var(--afg-primary-2));
  box-shadow: 0 14px 30px rgba(11,15,20,0.18);
}

.afg-rtl .afg-header__right{
  /* Keep icons and switcher pinned and ordered like EN */
  direction: ltr;
}

/* =========================================================
   AFG — Auth UI (Liquid Glass Pro) + Responsive Fix
   ========================================================= */
.afg-authShell{
  min-height: calc(100vh - var(--afg-header-h) - 120px);
  display: grid;
  place-items: center;
  padding: 40px 18px;
}

.afg-authCard{
  width: min(520px, 92vw);
  border-radius: 22px;
  border: 1px solid rgba(102,124,131,0.18);
  background:
    radial-gradient(900px 280px at 20% 0%, rgba(11,111,91,0.22), transparent 60%),
    radial-gradient(900px 280px at 92% 10%, rgba(170,199,119,0.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.56), rgba(255,255,255,0.28));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 110px rgba(11,15,20,0.16);
  overflow: hidden;
  position: relative;
}

.afg-authCard::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: .18;
}

.afg-authTop{
  padding: 18px 18px 8px;
}

.afg-authTitle{
  font-size: 20px;
  font-weight: 980;
  letter-spacing: -0.2px;
  color: rgba(11,15,20,0.86);
}

.afg-authSub{
  margin-top: 4px;
  font-size: 13px;
  font-weight: 750;
  color: rgba(11,15,20,0.55);
}

.afg-authForm{
  padding: 12px 18px 18px;
}

.afg-field{
  margin-top: 12px;
}

.afg-field label{
  display:block;
  font-size: 12px;
  font-weight: 900;
  color: rgba(11,15,20,0.62);
  margin-bottom: 6px;
}

.afg-authForm input{
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.66);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, transform .15s ease;
}

.afg-authForm input:focus{
  border-color: rgba(11,111,91,0.34);
  box-shadow: 0 14px 35px rgba(11,15,20,0.10);
  transform: translateY(-1px);
}

.afg-authBtn{
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  font-weight: 950;
  color: #fff;
  background: linear-gradient(90deg, var(--afg-primary), var(--afg-primary-2));
  box-shadow: 0 18px 40px rgba(11,15,20,0.16);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, filter .2s ease;
}

.afg-authBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 24px 55px rgba(11,15,20,0.20);
  filter: brightness(1.03);
}

.afg-authMeta{
  margin-top: 12px;
  font-size: 13px;
  color: rgba(11,15,20,0.60);
  display:flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.afg-authMeta a{
  font-weight: 950;
  color: var(--afg-primary);
}

.afg-authMeta--split{
  justify-content: space-between;
}

.afg-authNote{
  margin: 10px 18px 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.44);
  color: rgba(11,15,20,0.70);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.afg-authNote.afg-ok{
  border-color: rgba(11,111,91,0.22);
  background: rgba(11,111,91,0.10);
}

.afg-authNote.afg-bad{
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.08);
}

/* RTL: form labels & content align properly, but header switcher stays fixed */
.afg-rtl .afg-authCard,
.afg-rtl .afg-authTop,
.afg-rtl .afg-authForm{
  direction: rtl;
  text-align: right;
}

/* =========================================================
   Mobile / Tablet fixes (your issue)
   ========================================================= */
@media (max-width: 900px){
  .afg-authShell{
    padding: 26px 14px;
    min-height: calc(100vh - var(--afg-header-h) - 60px);
  }

  .afg-authCard{
    width: min(520px, 96vw);
    border-radius: 20px;
    box-shadow: 0 26px 80px rgba(11,15,20,0.16);
  }

  .afg-authTop{
    padding: 16px 14px 6px;
  }

  .afg-authForm{
    padding: 10px 14px 16px;
  }

  .afg-authMeta--split{
    justify-content: center;
    gap: 14px;
  }

  /* Keep language switcher compact but still premium */
  .afg-langSwitch{
    padding: 3px;
  }
  .afg-langBtn{
    min-width: 42px;
    height: 32px;
    font-size: 12px;
    padding: 0 10px;
  }
}

/* Small phones */
@media (max-width: 420px){
  .afg-authTitle{ font-size: 18px; }
  .afg-authForm input{ height: 44px; border-radius: 13px; }
  .afg-authBtn{ height: 46px; }
}
/* ============================
   HERO Slideshow (Vanish)
   ============================ */
.afg-hero--slideshow{
  position: relative;
  overflow: hidden;
}

.afg-heroShow{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.afg-heroSlide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  filter: blur(0px);
  transition: opacity .65s ease;
}

.afg-heroSlide.is-active{
  opacity: 1;
}

.afg-heroSlide.is-vanish{
  animation: afgVanish .85s ease forwards;
}

@keyframes afgVanish{
  0%   { opacity: 1; transform: scale(1.02); filter: blur(0px); }
  100% { opacity: 0; transform: scale(1.12); filter: blur(10px); }
}

.afg-heroShow__veil{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(11,111,91,0.22), transparent 60%),
    radial-gradient(1200px 600px at 90% 10%, rgba(170,199,119,0.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.25));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.afg-hero__content,
.afg-hero__panel{
  position: relative;
  z-index: 1;
}

/* dots */
.afg-heroDots{
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: inline-flex;
  gap: 8px;
  z-index: 2;
}

.afg-heroDot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, width .2s ease;
}

.afg-heroDot.is-active{
  width: 26px;
  background: rgba(255,255,255,0.82);
  transform: translateY(-1px);
}

/* ============================
   Liquid Floating Effect
   ============================ */
.afg-float{
  animation: afgFloat 3.8s ease-in-out infinite;
  will-change: transform;
}

.afg-float:hover{
  animation-play-state: paused;
  transform: translateY(-3px);
}

@keyframes afgFloat{
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

/* Make ALL interactive things float (safe + subtle) */
.afg-btn, .afg-chip, .afg-card, .afg-miniCard{
  will-change: transform;
}

/* ============================
   Category Card "Gallery Hint"
   ============================ */
.afg-card{
  position: relative;
}

.afg-card__peek{
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  opacity: .55;
  pointer-events: none;
}

/* ============================
   Gallery Modal (Optional)
   ============================ */
.afg-gal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.afg-gal.is-open{ display: block; }

.afg-gal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10,14,16,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.afg-gal__panel{
  position: relative;
  width: min(920px, 92vw);
  margin: 6vh auto 0;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 40px 120px rgba(0,0,0,0.35);
  overflow: hidden;
}

.afg-gal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.afg-gal__head{
  padding: 16px 18px;
  color: rgba(255,255,255,0.92);
}

.afg-gal__title{
  font-size: 18px;
  font-weight: 900;
}

.afg-gal__sub{
  margin-top: 2px;
  font-size: 13px;
  opacity: .75;
}

.afg-gal__main{
  padding: 0 18px 12px;
}

#afgGalMain{
  width: 100%;
  height: min(56vh, 520px);
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);
}

.afg-gal__thumbs{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 0 18px 18px;
}

.afg-gal__thumbs img{
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
  opacity: .92;
  transition: transform .2s ease, opacity .2s ease;
}

.afg-gal__thumbs img:hover{
  transform: translateY(-2px);
  opacity: 1;
}

/* ============================
   Responsive polish (mobile/tablet)
   ============================ */
@media (max-width: 900px){
  .afg-heroDots{
    left: 14px;
    bottom: 12px;
  }

  .afg-gal__panel{
    margin-top: 4vh;
    width: 94vw;
  }

  .afg-gal__thumbs{
    grid-template-columns: repeat(3, 1fr);
  }

  #afgGalMain{
    height: 42vh;
  }
}
/* =========================================
   AFG Liquid Glass UI (iPhone vibe)
   Paste at END of style.css
   ========================================= */

:root{
  --afg-bg-1: rgba(16, 28, 28, 0.10);
  --afg-bg-2: rgba(15, 92, 84, 0.10);
  --afg-bg-3: rgba(255, 255, 255, 0.55);

  --afg-glass: rgba(255,255,255,0.20);
  --afg-glass-strong: rgba(255,255,255,0.28);
  --afg-stroke: rgba(255,255,255,0.22);
  --afg-stroke-strong: rgba(255,255,255,0.35);

  --afg-shadow: 0 18px 40px rgba(0,0,0,0.10);
  --afg-shadow-soft: 0 10px 26px rgba(0,0,0,0.10);
  --afg-emerald: #0c6f61;
  --afg-emerald-2: #0aa58d;

  --afg-text: rgba(12, 18, 20, 0.92);
  --afg-muted: rgba(12, 18, 20, 0.65);

  --afg-radius-xl: 28px;
  --afg-radius-lg: 22px;
  --afg-radius-md: 16px;
}

body{
  color: var(--afg-text);
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(12, 111, 97, 0.18), transparent 60%),
    radial-gradient(900px 600px at 88% 12%, rgba(10, 165, 141, 0.15), transparent 55%),
    radial-gradient(800px 560px at 20% 92%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(180deg, rgba(236,248,246,1) 0%, rgba(244,250,249,1) 42%, rgba(238,248,246,1) 100%);
}

/* Subtle noise overlay (luxury glass feel) */
body:before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

/* ---------- Utility: Glass Panel ---------- */
.afg-glass{
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.14));
  border: 1px solid var(--afg-stroke);
  box-shadow: var(--afg-shadow);
  border-radius: var(--afg-radius-xl);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  position: relative;
  overflow: hidden;
}

/* Shine line */
.afg-glass:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(1200px 380px at 14% 10%, rgba(255,255,255,0.48), transparent 55%),
              radial-gradient(900px 320px at 86% 8%, rgba(255,255,255,0.28), transparent 60%);
  opacity: .85;
  pointer-events:none;
}

/* Inner edge */
.afg-glass:after{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: calc(var(--afg-radius-xl) - 12px);
  border: 1px solid rgba(255,255,255,0.22);
  pointer-events:none;
}

/* ---------- HERO upgrade ---------- */
/* Target your hero container/panel; adjust selector if needed */
.afg-hero{
  border-radius: var(--afg-radius-xl);
  padding: 22px;
}

.afg-hero__shell,
.afg-hero__panel,
.afg-hero__wrap,
.afg-hero__inner{
  /* if your theme has one of these wrappers, it will pick up */
}

.afg-hero .afg-hero__content,
.afg-hero{
  /* turn your hero into glass */
  background: linear-gradient(135deg, rgba(255,255,255,0.30), rgba(255,255,255,0.14));
  border: 1px solid var(--afg-stroke-strong);
  box-shadow: var(--afg-shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
  position: relative;
}

/* hero gradient aura */
.afg-hero:before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(520px 260px at 16% 18%, rgba(12,111,97,0.18), transparent 60%),
    radial-gradient(520px 260px at 84% 22%, rgba(10,165,141,0.14), transparent 60%);
  pointer-events:none;
  opacity: .95;
}

/* stronger typography */
.afg-hero__title{
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 48px);
}

.afg-hero__text{
  color: var(--afg-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 58ch;
}

/* Kicker pill */
.afg-hero__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--afg-shadow-soft);
  font-size: 12px;
  color: rgba(12, 18, 20, 0.75);
}

/* ---------- Liquid Floating Buttons ---------- */
.afg-btn,
.afg-chip,
button,
input[type="submit"]{
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  overflow: hidden;
  will-change: transform;
}

/* glossy highlight */
.afg-btn:before,
.afg-chip:before,
button:before,
input[type="submit"]:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(220px 70px at 20% 15%, rgba(255,255,255,0.65), transparent 60%);
  opacity: .65;
  pointer-events:none;
}

/* Liquid shimmer sweep on hover */
.afg-btn:after,
.afg-chip:after,
button:after,
input[type="submit"]:after{
  content:"";
  position:absolute;
  top:-30%;
  left:-40%;
  width: 40%;
  height: 160%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  opacity: 0;
  pointer-events:none;
}

/* Floating feel */
.afg-btn:hover,
.afg-chip:hover,
button:hover,
input[type="submit"]:hover{
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 38px rgba(0,0,0,0.14);
  filter: saturate(1.08);
}

/* Shimmer animate */
.afg-btn:hover:after,
.afg-chip:hover:after,
button:hover:after,
input[type="submit"]:hover:after{
  opacity: .9;
  animation: afgShimmer 0.9s ease forwards;
}

@keyframes afgShimmer{
  from{ left:-45%; }
  to{ left:110%; opacity:0; }
}

/* Primary button emerald glass */
.afg-btn--primary{
  background: linear-gradient(135deg, rgba(12,111,97,0.90), rgba(10,165,141,0.82));
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff !important;
}

/* Secondary button glass */
.afg-btn--ghost,
.afg-btn--secondary{
  background: rgba(255,255,255,0.22);
  color: rgba(12,18,20,0.88);
}

/* ---------- Category cards as glass tiles ---------- */
.afg-card,
.afg-cat,
.afg-category,
.afg-tile,
.afg-sectionCard{
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.14));
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--afg-radius-lg);
  box-shadow: var(--afg-shadow-soft);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}

.afg-card:hover,
.afg-cat:hover,
.afg-category:hover,
.afg-tile:hover,
.afg-sectionCard:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 44px rgba(0,0,0,0.14);
}

/* ---------- Header glass (top bar) ---------- */
#afgHeader{
  background: rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* When scrolled: slightly stronger */
#afgHeader.is-scrolled{
  background: rgba(255,255,255,0.28);
}

/* ---------- Reduce motion friendly ---------- */
@media (prefers-reduced-motion: reduce){
  .afg-btn, .afg-chip, button, input[type="submit"],
  .afg-card, .afg-cat, .afg-category, .afg-tile, .afg-sectionCard{
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   AFG Home — Liquid Hero Layout (Front Page Redesign)
   Works with: .afg-hero--liquid + .afg-heroLiquid markup
   ========================================================= */

/* If the new liquid hero is enabled, let inner layout control the grid */
.afg-hero.afg-hero--liquid{
  display:block;
  padding: 22px;
}

/* Liquid layout wrapper */
.afg-heroLiquid{
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  align-items: stretch;
}

/* Left / Right glass blocks */
.afg-heroLiquid__left,
.afg-heroLiquid__right{
  border-radius: 22px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 26px 60px rgba(11,15,20,0.10);
  overflow:hidden;
  position: relative;
}

.afg-heroLiquid__left{
  padding: 18px;
}

.afg-heroLiquid__right{
  padding: 16px;
}

/* Subtle inner sheen for both */
.afg-heroLiquid__left::before,
.afg-heroLiquid__right::before{
  content:"";
  position:absolute;
  inset:-40px;
  pointer-events:none;
  background:
    radial-gradient(520px 220px at 16% 14%, rgba(255,255,255,0.40), transparent 60%),
    radial-gradient(520px 220px at 84% 24%, rgba(255,255,255,0.22), transparent 62%),
    radial-gradient(620px 260px at 50% 110%, rgba(170,199,119,0.10), transparent 60%);
  opacity:.75;
}

.afg-heroLiquid__left > *,
.afg-heroLiquid__right > *{
  position: relative;
  z-index: 1;
}

/* Micro line */
.afg-heroLiquid__micro{
  margin-top: 12px;
  font-weight: 850;
  font-size: 12.5px;
  color: rgba(11,15,20,0.52);
  letter-spacing: .2px;
}

/* =========================
   Glass Button Grid (6 buttons)
   ========================= */
.afg-glassBtnGrid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.afg-glassBtn{
  position: relative;
  display:flex;
  align-items:center;
  gap: 10px;

  padding: 12px 12px;
  border-radius: 18px;

  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.46);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(11,15,20,0.08);

  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease;
  overflow: hidden;
}

.afg-glassBtn::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(240px 80px at 20% 15%, rgba(255,255,255,0.62), transparent 60%);
  opacity:.65;
  pointer-events:none;
}

.afg-glassBtn__label{
  font-weight: 950;
  letter-spacing: -0.1px;
  color: rgba(11,15,20,0.82);
  line-height: 1.1;
}

.afg-glassBtn__arrow{
  margin-left:auto;
  font-weight: 950;
  color: rgba(11,15,20,0.45);
  transition: transform .22s ease, color .22s ease;
}

/* Mini gallery */
.afg-glassBtn__gallery{
  display:flex;
  gap: 6px;
  align-items:center;
}

.afg-glassBtn__thumb{
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.30);
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 22px rgba(11,15,20,0.10);
  opacity: .92;
  transform: translateZ(0);
  transition: transform .25s ease, opacity .25s ease, width .25s ease, height .25s ease;
}

/* Hover: "opens up" like zooming in */
.afg-glassBtn:hover{
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(11,111,91,0.28);
  box-shadow: 0 26px 55px rgba(11,15,20,0.12);
  filter: saturate(1.05);
}

.afg-glassBtn:hover .afg-glassBtn__arrow{
  transform: translateX(4px);
  color: rgba(11,111,91,0.85);
}

.afg-glassBtn:hover .afg-glassBtn__thumb{
  opacity: 1;
  transform: translateY(-2px) scale(1.06);
}

.afg-glassBtn:hover .afg-glassBtn__thumb:nth-child(1){ width: 30px; height: 30px; }
.afg-glassBtn:hover .afg-glassBtn__thumb:nth-child(2){ width: 28px; height: 28px; }
.afg-glassBtn:hover .afg-glassBtn__thumb:nth-child(3){ width: 26px; height: 26px; }

/* Button tones */
.afg-glassBtn--primary{
  background: linear-gradient(90deg, var(--afg-primary), var(--afg-primary-2));
  border-color: transparent;
}
.afg-glassBtn--primary .afg-glassBtn__label{ color:#fff; }
.afg-glassBtn--primary .afg-glassBtn__arrow{ color: rgba(255,255,255,0.85); }
.afg-glassBtn--primary::before{ opacity:.35; }

.afg-glassBtn--ghost{
  background: rgba(255,255,255,0.42);
}

.afg-glassBtn--glass{
  background: rgba(255,255,255,0.40);
}

/* Featured card */
.afg-featureTop{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.afg-pill{
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  font-weight: 900;
  border: 1px solid rgba(102,124,131,0.16);
  background: rgba(255,255,255,0.46);
  color: rgba(11,15,20,0.70);
}
.afg-pill--muted{
  background: rgba(255,255,255,0.30);
  color: rgba(11,15,20,0.58);
}

.afg-featureTitle{
  margin: 2px 0 6px;
  font-weight: 980;
  letter-spacing: -0.2px;
  color: rgba(11,15,20,0.84);
  font-size: 18px;
}

.afg-featureText{
  margin: 0 0 12px;
  color: rgba(11,15,20,0.58);
  line-height: 1.55;
}

.afg-featureMedia{
  height: 130px;
  border-radius: 18px;
  border: 1px solid rgba(102,124,131,0.16);
  background:
    radial-gradient(520px 220px at 20% 20%, rgba(11,111,91,0.18), transparent 60%),
    radial-gradient(520px 220px at 86% 30%, rgba(170,199,119,0.16), transparent 62%),
    rgba(255,255,255,0.38);
  box-shadow: 0 18px 40px rgba(11,15,20,0.08);
  margin-bottom: 12px;
}

.afg-featureStats{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.afg-chipMini{
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.34);
  color: rgba(11,15,20,0.62);
  font-weight: 900;
  font-size: 12px;
}

/* Reuse existing miniCard classes, but ensure titles align */
.afg-miniCard__title{ font-weight: 950; color: rgba(11,15,20,0.78); }
.afg-miniCard__sub{ margin-top: 2px; color: rgba(11,15,20,0.56); font-size: 13px; }

/* Responsive */
@media (max-width: 900px){
  .afg-hero.afg-hero--liquid{ padding: 16px; }
  .afg-heroLiquid{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .afg-glassBtnGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px){
  .afg-glassBtnGrid{
    grid-template-columns: 1fr;
  }
  .afg-featureMedia{ height: 110px; }
}
/* =========================================================
   AFG Home — Liquid Glass Full Page Sections
   Explore + Metrics + Soon + CTA
   ========================================================= */

.afg-section{
  margin-top: 26px;
}

.afg-section__head{
  margin-bottom: 12px;
}

.afg-h2{
  font-weight: 980;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
  color: rgba(11,15,20,0.84);
}

.afg-sub{
  margin: 0;
  color: rgba(11,15,20,0.58);
}

/* Explore cards grid (fixes your screenshot #2) */
.afg-cards{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.afg-card{
  position: relative;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(11,15,20,0.08);
  overflow:hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.afg-card::before{
  content:"";
  position:absolute;
  inset:-20px;
  background:
    radial-gradient(420px 160px at 20% 10%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(420px 160px at 80% 30%, rgba(170,199,119,0.14), transparent 62%);
  opacity:.75;
  pointer-events:none;
}

.afg-card > *{ position: relative; z-index: 1; }

.afg-card:hover{
  transform: translateY(-4px);
  border-color: rgba(11,111,91,0.26);
  box-shadow: 0 26px 60px rgba(11,15,20,0.12);
}

.afg-card__icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.38);
  box-shadow: 0 14px 30px rgba(11,15,20,0.08);
  flex: 0 0 auto;
}

.afg-card__title{
  font-weight: 950;
  color: rgba(11,15,20,0.82);
  line-height: 1.1;
}

.afg-card__desc{
  margin-top: 4px;
  color: rgba(11,15,20,0.56);
  font-size: 13px;
  line-height: 1.35;
}

.afg-card__arrow{
  margin-left:auto;
  font-weight: 950;
  color: rgba(11,15,20,0.45);
  transition: transform .22s ease, color .22s ease;
}

.afg-card:hover .afg-card__arrow{
  transform: translateX(4px);
  color: rgba(11,111,91,0.85);
}

.afg-card__peek{
  position:absolute;
  right: 14px;
  bottom: 12px;
  font-size: 11px;
  opacity:.55;
}

/* Metrics row */
.afg-metrics{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.afg-metric{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 34px rgba(11,15,20,0.06);
}

.afg-metric__title{
  font-weight: 950;
  color: rgba(11,15,20,0.80);
}

.afg-metric__desc{
  margin-top: 6px;
  color: rgba(11,15,20,0.56);
  font-size: 13px;
  line-height: 1.45;
}

/* Coming Soon */
.afg-soon__grid{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.afg-soon__item{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 900;
  color: rgba(11,15,20,0.62);
}

/* CTA */
.afg-cta{
  margin-top: 26px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 26px 60px rgba(11,15,20,0.10);
}

.afg-cta__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.afg-cta__title{
  margin: 0 0 6px;
  font-weight: 980;
  color: rgba(11,15,20,0.84);
}

.afg-cta__desc{
  margin: 0;
  color: rgba(11,15,20,0.58);
}

.afg-cta__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px){
  .afg-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afg-metrics{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afg-cta__inner{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px){
  .afg-cards{ grid-template-columns: 1fr; }
  .afg-metrics{ grid-template-columns: 1fr; }
}
/* =========================================================
   HERO LEFT — Expanding Square Buttons with Bio
   ========================================================= */

.afg-hero__kicker--hello{
  display:flex;
  align-items:center;
  gap: 10px;
}

.afg-heroKickerIcon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.afg-heroAvatar{
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(11,15,20,0.12);
  border: 1px solid rgba(255,255,255,0.6);
}

/* bio mode */
.afg-glassBtn--bio{
  display:block;
  padding: 12px 12px;
}

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

.afg-glassBtn__bio{
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(11,15,20,0.62);
  opacity: 0;
  transform: translateY(6px);
  max-height: 0;
  overflow: hidden;
  transition: opacity .22s ease, transform .22s ease, max-height .28s ease;
}

.afg-glassBtn__gallery{
  margin-top: 10px;
  opacity: .85;
  transform: translateY(6px);
  transition: transform .22s ease, opacity .22s ease;
}

/* Expand to square on hover */
.afg-glassBtnGrid--bio .afg-glassBtn--bio{
  border-radius: 18px;
  min-height: 48px;
  transition: transform .25s ease, box-shadow .25s ease, min-height .25s ease;
}

.afg-glassBtnGrid--bio .afg-glassBtn--bio:hover{
  min-height: 160px;            /* makes it "square-like" */
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(11,15,20,0.14);
}

.afg-glassBtnGrid--bio .afg-glassBtn--bio:hover .afg-glassBtn__bio{
  opacity: 1;
  transform: translateY(0);
  max-height: 140px;
}

.afg-glassBtnGrid--bio .afg-glassBtn--bio:hover .afg-glassBtn__gallery{
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: no hover—always show bio in a clean way */
@media (max-width: 900px){
  .afg-glassBtn__bio{
    opacity: 1;
    transform: none;
    max-height: 220px;
  }
  .afg-glassBtnGrid--bio .afg-glassBtn--bio{
    min-height: auto;
  }
}
/* =========================================
   HERO MICRO (Quick Actions Row)
   ========================================= */
.afg-heroLiquid__micro{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;

  font-weight: 850;
  font-size: 12.5px;
  color: rgba(11,15,20,0.52);
}

.afg-microLink{
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;

  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  font-weight: 900;
  color: rgba(11,15,20,0.70);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.afg-microLink:hover{
  transform: translateY(-1px);
  border-color: rgba(11,111,91,0.25);
  box-shadow: 0 14px 28px rgba(11,15,20,0.10);
  color: rgba(11,111,91,0.92);
}

.afg-microDot{
  opacity: .55;
  font-weight: 950;
}
/* =========================================================
   RESPONSIVE — HERO (Left Card) Tablet + Mobile
   ========================================================= */

/* 1) Tablet: stack columns, comfortable padding, 2-col buttons */
@media (max-width: 1024px){

  /* If your main layout is 2 columns, this forces it to stack */
  .afg-hero__grid,
  .afg-heroLiquid__grid,
  .afg-homeGrid,
  .afg-home__grid{
    grid-template-columns: 1fr !important;
  }

  .afg-hero,
  .afg-heroLiquid{
    padding: 14px;
  }

  .afg-hero__content,
  .afg-heroLiquid__left{
    padding: 18px;
  }

  /* Title/text scale */
  .afg-hero__title,
  .afg-heroLiquid__title{
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.08;
  }

  .afg-hero__text,
  .afg-heroLiquid__text{
    font-size: 14.5px;
    line-height: 1.65;
  }

  /* Buttons become a neat 2-column grid */
  .afg-hero__actions,
  .afg-heroLiquid__tiles{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* Bigger touch targets */
  .afg-tile,
  .afg-btn,
  .afg-hero__actions a{
    min-height: 48px;
  }

  /* Micro row wraps nicely */
  .afg-heroLiquid__micro{
    gap: 8px;
  }
}


/* 2) Mobile: 1-col buttons, always show small “bio” text, reduce motion */
@media (max-width: 768px){

  .afg-hero__content,
  .afg-heroLiquid__left{
    padding: 16px;
  }

  /* Kicker spacing */
  .afg-hero__kicker,
  .afg-heroLiquid__kicker{
    gap: 10px;
    padding: 10px 12px;
  }

  /* Title/text tighter */
  .afg-hero__title,
  .afg-heroLiquid__title{
    font-size: clamp(26px, 7vw, 38px);
  }

  .afg-hero__text,
  .afg-heroLiquid__text{
    font-size: 14px;
  }

  /* Buttons: 1 column on phones */
  .afg-hero__actions,
  .afg-heroLiquid__tiles{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* IMPORTANT: Mobile has no hover.
     So we keep the “bio” visible by default (if your button bio is inside a span/p element).
     This is safe even if it already appears on hover — it’ll just stay visible on mobile. */
  .afg-tile .afg-tile__sub,
  .afg-tile .afg-sub,
  .afg-tile small,
  .afg-tile p{
    display: block !important;
    opacity: .78;
    margin-top: 6px;
    font-weight: 750;
    font-size: 12.5px;
    line-height: 1.45;
  }

  /* Disable “expand into square on hover” behavior on touch */
  .afg-tile:hover,
  .afg-btn:hover{
    transform: none !important;
  }
}


/* 3) Small phones: extra breathing room + cleaner micro row */
@media (max-width: 480px){

  .afg-hero,
  .afg-heroLiquid{
    padding: 10px;
  }

  .afg-hero__content,
  .afg-heroLiquid__left{
    padding: 14px;
  }

  .afg-heroLiquid__micro{
    font-size: 12px;
  }

  .afg-microLink{
    height: 32px;
    padding: 0 11px;
  }
}


/* 4) Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* LEFT HERO CARD BACKGROUND (reads from inline CSS variable) */
.afg-cardBg{
  position: relative;
  overflow: hidden;
}

.afg-cardBg::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--afg-cardbg);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: blur(1px) saturate(1.1) contrast(1.05);
  transform: scale(1.03);
  pointer-events:none;
  z-index: 0;
}

.afg-cardBg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.78),
    rgba(255,255,255,0.42)
  );
  pointer-events:none;
  z-index: 0;
}

.afg-cardBg > *{
  position: relative;
  z-index: 1;
}

/* RIGHT CARD LOGO */
.afg-featureLogo{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 10px 12px;
  margin: 4px 0 10px;
}

.afg-featureLogo img{
  width: min(360px, 80%);
  height: auto;
  display:block;
  filter: drop-shadow(0 18px 32px rgba(11,15,20,.14));
  opacity: .95;
}

@media (max-width: 768px){
  .afg-featureLogo img{
    width: min(280px, 78%);
  }
}
/* RIGHT CARD LOGO (Premium sizing + always centered) */
.afg-featureLogo{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 8px 10px;
  margin: 6px 0 12px;
}

.afg-featureLogo img{
  width: min(420px, 92%);
  height: auto;
  display:block;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(11,15,20,.14));
  opacity: .98;
}

/* Tablet */
@media (max-width: 1024px){
  .afg-featureLogo img{
    width: min(380px, 88%);
  }
}

/* Mobile */
@media (max-width: 768px){
  .afg-featureLogo img{
    width: min(300px, 86%);
  }
}
/* =========================================================
   LOGO: "Floating on a sea" + subtle hover reaction
   Targets: .afg-featureLogo img
   ========================================================= */

.afg-featureLogo{
  position: relative;
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 8px 10px;
  margin: 6px 0 12px;
  overflow: visible;
}

/* soft sea glow under logo */
.afg-featureLogo::before{
  content:"";
  position:absolute;
  left:50%;
  top: 58%;
  width: min(420px, 88%);
  height: 56%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(closest-side,
    rgba(11,111,91,0.18),
    rgba(11,111,91,0.07) 55%,
    rgba(11,111,91,0.00) 75%
  );
  filter: blur(18px);
  opacity: .75;
  pointer-events:none;
}

/* logo baseline */
.afg-featureLogo img{
  width: min(420px, 92%);
  height: auto;
  display:block;
  object-fit: contain;

  transform: translate3d(0,0,0);
  transform-origin: 50% 70%;

  filter: drop-shadow(0 18px 32px rgba(11,15,20,.14));
  opacity: .98;

  /* smooth hover response */
  transition:
    transform 420ms cubic-bezier(.2,.85,.2,1),
    filter 420ms cubic-bezier(.2,.85,.2,1);
  
  /* gentle floating drift */
  animation: afgLogoFloat 6.8s ease-in-out infinite;
  will-change: transform;
}

/* sea surface shimmer */
.afg-featureLogo::after{
  content:"";
  position:absolute;
  left:50%;
  top: 70%;
  width: min(360px, 82%);
  height: 40%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.00),
    rgba(255,255,255,0.22),
    rgba(255,255,255,0.00)
  );
  filter: blur(14px);
  opacity: .35;
  pointer-events:none;
  animation: afgSeaShimmer 7.8s ease-in-out infinite;
}

/* hover: slight lift + tilt + nicer shadow */
.afg-featureLogo:hover img{
  transform: translate3d(0,-6px,0) rotate(-1.6deg) scale(1.01);
  filter:
    drop-shadow(0 26px 44px rgba(11,15,20,.18))
    drop-shadow(0 0 18px rgba(11,111,91,.18));
}

/* press/click: feels tactile */
.afg-featureLogo:active img{
  transform: translate3d(0,-2px,0) rotate(-.8deg) scale(0.995);
  transition-duration: 160ms;
}

@keyframes afgLogoFloat{
  0%   { transform: translate3d(0, 0px, 0) rotate(.15deg); }
  25%  { transform: translate3d(2px,-4px,0) rotate(-.25deg); }
  50%  { transform: translate3d(0px,-6px,0) rotate(.2deg); }
  75%  { transform: translate3d(-2px,-3px,0) rotate(.35deg); }
  100% { transform: translate3d(0, 0px, 0) rotate(.15deg); }
}

@keyframes afgSeaShimmer{
  0%   { opacity: .24; transform: translateX(-50%) translateY(0) scaleX(0.98); }
  50%  { opacity: .42; transform: translateX(-50%) translateY(-4px) scaleX(1.02); }
  100% { opacity: .24; transform: translateX(-50%) translateY(0) scaleX(0.98); }
}

/* tablet/mobile sizing */
@media (max-width: 1024px){
  .afg-featureLogo img{ width: min(380px, 88%); }
  .afg-featureLogo::before{ width: min(380px, 84%); }
}
@media (max-width: 768px){
  .afg-featureLogo img{ width: min(300px, 86%); }
  .afg-featureLogo::before{ width: min(300px, 82%); }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .afg-featureLogo img,
  .afg-featureLogo::after{
    animation: none !important;
  }
}
/* ================================
   RIGHT TOP PILL: Emerald glossy hover
   ================================ */
.afg-pill--featured{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(11,111,91,0.22);
  background: linear-gradient(180deg, rgba(17,180,140,0.18), rgba(255,255,255,0.55));
  box-shadow: 0 16px 34px rgba(11,15,20,0.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.afg-pill--featured::after{
  content:"";
  position:absolute;
  inset:-60% -40%;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0.65) 50%,
    rgba(255,255,255,0) 65%
  );
  transform: translateX(-40%) rotate(12deg);
  opacity: 0;
  transition: opacity .25s ease;
}

.afg-pill--featured:hover{
  transform: translateY(-1px);
  border-color: rgba(11,111,91,0.34);
  box-shadow: 0 22px 48px rgba(11,15,20,0.12);
}

.afg-pill--featured:hover::after{
  opacity: .85;
  animation: afgShine 1.1s ease forwards;
}

@keyframes afgShine{
  from { transform: translateX(-60%) rotate(12deg); }
  to   { transform: translateX(60%) rotate(12deg); }
}

/* ================================
   RIGHT MEDIA BOX IMAGE
   ================================ */
.afg-featureMedia--img{
  display:block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(11,15,20,0.10);
  min-height: 170px;
  margin-top: 10px;
}

.afg-featureMedia__bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.06);
  transition: transform .35s ease, filter .35s ease;
}

.afg-featureMedia--img:hover .afg-featureMedia__bg{
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.10);
}

/* ================================
   RIGHT TABS (3 pages)
   ================================ */
.afg-rightTabs{
  margin-top: 12px;
}

.afg-rightTabs__nav{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.afg-tabBtn{
  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 12.5px;
  cursor: pointer;
  color: rgba(11,15,20,0.70);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.afg-tabBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(11,111,91,0.25);
  box-shadow: 0 14px 28px rgba(11,15,20,0.10);
}

.afg-tabBtn.is-active{
  border-color: rgba(11,111,91,0.30);
  background: linear-gradient(180deg, rgba(17,180,140,0.18), rgba(255,255,255,0.52));
  color: rgba(11,111,91,0.92);
}

.afg-tabPanel{
  display: none;
  border: 1px solid rgba(102,124,131,0.14);
  background: rgba(255,255,255,0.30);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.afg-tabPanel.is-active{
  display: block;
}

.afg-tabPanel__title{
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: rgba(11,15,20,0.86);
}

.afg-tabPanel__desc{
  font-weight: 750;
  font-size: 13px;
  line-height: 1.55;
  opacity: .72;
  margin-bottom: 10px;
}

/* Mobile polish */
@media (max-width: 768px){
  .afg-featureMedia--img{ min-height: 150px; }
  .afg-rightTabs__nav{ gap: 6px; }
  .afg-tabBtn{ padding: 8px 10px; }
}
.afg-leftCardShow{
  position: relative;
  width: 100%;
  height: 160px; /* adjust */
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
}

.afg-leftCardSlide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .9s ease, transform 1.2s ease;
}

.afg-leftCardSlide.is-active{
  opacity: 1;
  transform: scale(1);
}

.afg-leftCardDots{
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.afg-leftCardDot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  opacity: .5;
}

.afg-leftCardDot.is-active{ opacity: 1; }
/* =========================
   Market Pulse (Apple minimal)
   ========================= */
.afg-pulse{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  margin:14px 0 16px;
  border-radius:18px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.afg-pulse__label{
  font-weight:600;
  opacity:.85;
  white-space:nowrap;
}

.afg-pulse__items{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
}

.afg-pulse__item{
  display:flex;
  align-items:baseline;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.5);
  border:1px solid rgba(0,0,0,.05);
}

.afg-pulse__value{
  font-weight:700;
  font-size:18px;
}

.afg-pulse__meta{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.afg-pulse__name{ font-size:12px; opacity:.75; }
.afg-pulse__unit{ font-size:11px; opacity:.55; }

/* Toggle button */
/* =========================
   Trust System badges
   ========================= */
.afg-trust{
  margin: 18px 0 10px;
}

.afg-trust__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin: 0 0 10px;
}
.afg-trust__title{ font-weight:700; font-size:18px; }
.afg-trust__sub{ opacity:.65; font-size:13px; }

.afg-trust__grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px){
  .afg-trust__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .afg-trust__grid{ grid-template-columns: 1fr; }
}

.afg-trustBadge{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 14px;
  border-radius:18px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.afg-trustBadge__icon{
  width:34px;height:34px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background: rgba(0,0,0,.04);
  font-size:12px;
  opacity:.8;
}

.afg-trustBadge__title{ font-weight:700; }
.afg-trustBadge__desc{ font-size:12px; opacity:.65; margin-top:2px; }
.afg-trustBadge__arrow{ margin-left:auto; opacity:.35; }

/* =========================
   Dark mode (still Apple clean)
   Activated by: <html data-afg-mode="(removed)">
   ========================= */
/* =========================================================
   AFGHANYA – Apple Clean Pulse + Trust + Dark Mode
   Works with: .afg-pulse, .afg-trust { width: 100%; }

/* If your site uses box-sizing differently, this prevents weird layout */
.afg-pulse * , .afg-trust * { box-sizing: border-box; }

/* --- (B) Pulse container --- */
.afg-pulse.afg-pulse--pro {
  position: relative;
  border-radius: 18px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 28px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.6);
  overflow: hidden;
}

/* subtle “Apple glass” sheen */
.afg-pulse.afg-pulse--pro::before{
  content:"";
  position:absolute;
  inset:-40% -30%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(255,255,255,0) 55%);
  transform: rotate(10deg);
  pointer-events:none;
  opacity: .55;
}

/* top row: title + mode button */
.afg-pulse__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.afg-pulse__label{
  font-weight: 650;
  letter-spacing: .2px;
  color: rgba(0,0,0,.78);
  font-size: 14px;
}

/* --- (C) Pulse cards grid --- */
.afg-pulse__items{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1100px){
  .afg-pulse__items{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .afg-pulse__items{ grid-template-columns: 1fr; }
}

/* each pulse card */
.afg-pulseCard{
  border-radius: 16px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.70);
  box-shadow:
    0 10px 20px rgba(0,0,0,.05),
    inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.afg-pulseCard:hover{
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(0,0,0,.07),
    inset 0 1px 0 rgba(255,255,255,.8);
}

/* head row: name + sparkline */
.afg-pulseCard__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.afg-pulseCard__name{
  font-size: 12px;
  color: rgba(0,0,0,.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.afg-pulseCard__spark{
  opacity: .9;
}

/* sparkline line default stroke (don’t set colors harshly) */
.afg-spark__line{
  stroke: rgba(0,0,0,.35);
}

/* value row */
.afg-pulseCard__value{
  display:flex;
  align-items:baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.afg-pulseNum, .afg-pulseText{
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -.2px;
  color: rgba(0,0,0,.82);
  line-height: 1;
}
.afg-pulseUnit{
  font-size: 12px;
  color: rgba(0,0,0,.55);
}

/* progress bar */
.afg-pulseBar{
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  overflow:hidden;
}
.afg-pulseBar__fill{
  display:block;
  height: 100%;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

/* --- (D) Mode button --- */
/* --- (E) Trust System container --- */
.afg-trust{
  margin-top: 14px;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 28px rgba(0,0,0,.06),
    inset 0 1px 0 rgba(255,255,255,.6);
}

.afg-trust__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.afg-trust__title{
  font-weight: 720;
  color: rgba(0,0,0,.82);
  font-size: 14px;
}
.afg-trust__sub{
  font-size: 12px;
  color: rgba(0,0,0,.56);
}

/* trust grid */
.afg-trust__grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1100px){
  .afg-trust__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .afg-trust__grid{ grid-template-columns: 1fr; }
}

/* trust badge */
.afg-trustBadge{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.70);
  box-shadow:
    0 10px 20px rgba(0,0,0,.05),
    inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .25s ease, box-shadow .25s ease;
}
.afg-trustBadge:hover{
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(0,0,0,.07),
    inset 0 1px 0 rgba(255,255,255,.8);
}
.afg-trustBadge__icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(0,0,0,.05);
  display:flex;
  align-items:center;
  justify-content:center;
}
.afg-trustBadge__body{ flex: 1; min-width: 0; }
.afg-trustBadge__title{
  font-size: 13px;
  font-weight: 720;
  color: rgba(0,0,0,.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.afg-trustBadge__desc{
  font-size: 12px;
  color: rgba(0,0,0,.58);
  margin-top: 2px;
}
.afg-trustBadge__arrow{
  color: rgba(0,0,0,.40);
}

/* =========================================================
   AFG FIX PACK (must be at END)
   - fixes mobile drawer being disabled
   - improves RTL header without breaking layout
   - adds base reset + focus ring
   - adds WooCommerce baseline styling
   ========================================================= */

/* ---------- Base Reset (safe) ---------- */
*, *::before, *::after{ box-sizing: border-box; }

img, video, svg{
  max-width: 100%;
  height: auto;
}

ul, ol{
  padding-left: 1.2em;
}

.afg-menu, .afg-footer__menu, .afg-drawer__menu, .afg-mfoot__menu{
  padding-left: 0 !important;
}

/* Nice text rendering */
body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Focus ring (keyboard accessibility) ---------- */
:where(a, button, input, select, textarea, [tabindex]):focus{ outline: none; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible{
  box-shadow: 0 0 0 4px rgba(11,111,91,0.18), 0 0 0 1px rgba(11,111,91,0.35);
  border-radius: 14px;
}

/* ---------- FIX: "PC ONLY" rules must be desktop-only ---------- */
@media (min-width: 901px){
  /* keep your intended desktop behavior */
  .afg-nav{ display:flex !important; }
  .afg-logoTap{ display:none !important; }
  .afg-drawer{ display:none !important; }
}

/* Ensure mobile can use drawer */
@media (max-width: 900px){
  .afg-nav{ display:none !important; }
  .afg-logoTap{ display:block !important; }
  .afg-drawer{ display:block !important; }
}

/* ---------- RTL header: keep layout stable, allow RTL text ---------- */
/* Keep header layout LTR so icons/switcher don't jump */
.afg-header{ direction: ltr; }

/* But allow any explicit RTL text blocks to render RTL properly */
body.afg-rtl .afg-header .afg-menu a,
body.afg-rtl .afg-header .afg-drawer__menu a{
  direction: rtl;
  unicode-bidi: plaintext;
}

/* ---------- WooCommerce: quick baseline (clean + glass) ---------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit{
  border-radius: 999px !important;
  padding: 12px 16px !important;
  font-weight: 900 !important;
  border: 1px solid rgba(102,124,131,0.18) !important;
  background: linear-gradient(90deg, var(--afg-primary), var(--afg-primary-2)) !important;
  color: #fff !important;
  box-shadow: 0 18px 35px rgba(11,15,20,0.16) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select{
  border-radius: 14px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.62);
  padding: 10px 12px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  border-radius: 18px;
  border: 1px solid rgba(102,124,131,0.18);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 35px rgba(11,15,20,0.06);
}

.woocommerce-message{ border-left: 4px solid rgba(11,111,91,0.55); }
.woocommerce-info{ border-left: 4px solid rgba(170,199,119,0.65); }
.woocommerce-error{ border-left: 4px solid rgba(220,38,38,0.55); }
/* Header layout stays stable, but text can still be RTL */
.afg-header{ direction: ltr; }
body.afg-rtl .afg-header .afg-menu a,
body.afg-rtl .afg-header .afg-drawer__menu a{
  direction: rtl;
  unicode-bidi: plaintext;
}
/* === Left Card Slideshow: taller + full width === */
.afg-leftCardShow{
  width: 100%;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;

  /* Taller / covers the section better */
  min-height: 190px;
}

/* Make slides fill the entire container */
.afg-leftCardSlide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 600ms ease, transform 900ms ease;
}

.afg-leftCardSlide.is-active{
  opacity: 1;
  transform: scale(1);
}

/* Dots stay on top of image */
.afg-leftCardDots{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  z-index: 5;
}

/* === PC Arrow Buttons (glass vibe) === */
.afg-leftNav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;

  width: 42px;
  height: 42px;
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  display: grid;
  place-items: center;

  cursor: pointer;
  user-select: none;

  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.afg-leftNav span{
  font-size: 26px;
  line-height: 1;
  opacity: 0.92;
}

.afg-leftNav--prev{ left: 12px; }
.afg-leftNav--next{ right: 12px; }

.afg-leftNav:hover{
  transform: translateY(-50%) scale(1.03);
}

/* Hide arrows on touch devices (mobile/tablet) */
@media (pointer: coarse){
  .afg-leftNav{ display: none; }
}

/* Optional: make it taller on larger screens */
@media (min-width: 980px){
  .afg-leftCardShow{ min-height: 220px; }
}
/* =========================================================
   FUTURISTIC SECTION TEXTURE (Pulse + Trust Core)
   Compatible with your glass/emerald vibe
   ========================================================= */

/* 1) Pulse wrapper pattern (soft, futuristic, not noisy) */
.afg-pulse--neo{
  position: relative;
  overflow: hidden;
}

/* layered sci-fi pattern */
.afg-pulse--neo::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  z-index:0;
  opacity:.55;

  background:
    radial-gradient(1200px 600px at 15% 0%, rgba(16,185,129,.16), transparent 60%),
    radial-gradient(900px 450px at 80% 30%, rgba(56,189,248,.10), transparent 65%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.06) 0px,
      rgba(255,255,255,.06) 1px,
      transparent 1px,
      transparent 14px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.04) 0px,
      rgba(255,255,255,.04) 1px,
      transparent 1px,
      transparent 18px
    );

  /* keep pattern only inside the card */
  border-radius: inherit;
  filter: blur(.2px);
  transform: translateZ(0);
}

/* subtle moving “energy” sweep */
.afg-pulse--neo::after{
  content:"";
  position:absolute;
  inset:-30%;
  pointer-events:none;
  z-index:0;
  opacity:.35;

  background:
    linear-gradient(120deg,
      transparent 0%,
      rgba(16,185,129,.10) 35%,
      rgba(255,255,255,.06) 50%,
      rgba(56,189,248,.08) 65%,
      transparent 100%
    );
  animation: afgSweep 9.5s linear infinite;
  transform: translateZ(0);
}

@keyframes afgSweep{
  0%{ transform: translate3d(-10%, -10%, 0) rotate(0.001deg); }
  100%{ transform: translate3d(10%, 10%, 0) rotate(0.001deg); }
}

/* make sure Pulse content stays above pattern layers */
.afg-pulse--neo > *{
  position: relative;
  z-index: 1;
}


/* 2) TRUST CORE section pattern */
.afg-trust--neo{
  position: relative;
  overflow: hidden;
}

/* A cleaner “circuit + grid” vibe */
.afg-trust--neo::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  z-index:0;
  opacity:.55;

  background:
    radial-gradient(900px 500px at 20% 20%, rgba(16,185,129,.14), transparent 62%),
    radial-gradient(900px 500px at 80% 10%, rgba(56,189,248,.08), transparent 68%),
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.06) 0px,
      rgba(255,255,255,.06) 1px,
      transparent 1px,
      transparent 16px
    ),
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.04) 0px,
      rgba(255,255,255,.04) 1px,
      transparent 1px,
      transparent 22px
    );

  border-radius: inherit;
  transform: translateZ(0);
}

/* a very soft scan glow across the section */
.afg-trust--neo::after{
  content:"";
  position:absolute;
  inset:-40%;
  pointer-events:none;
  z-index:0;
  opacity:.25;

  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(16,185,129,.10) 40%,
      rgba(255,255,255,.05) 50%,
      rgba(16,185,129,.10) 60%,
      transparent 100%
    );
  animation: afgTrustScan 10.5s ease-in-out infinite;
}

@keyframes afgTrustScan{
  0%{ transform: translateX(-14%); }
  50%{ transform: translateX(14%); }
  100%{ transform: translateX(-14%); }
}

.afg-trust--neo > *{
  position: relative;
  z-index: 1;
}


/* =========================================================
   TRUST TILES: Make 01/02/03/04 feel like Pulse cards
   (HUD grid + scan + glow + animated micro-bar)
   ========================================================= */

.afg-trustTile{
  position: relative;
  overflow: hidden;
}

/* HUD layer sits above background but below content */
.afg-trustTile__hud{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:1;
}

.afg-trustTile__hud .afg-hudGrid{
  position:absolute;
  inset:0;
  opacity:.20;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.10) 0px,
      rgba(255,255,255,.10) 1px,
      transparent 1px,
      transparent 18px
    ),
    repeating-linear-gradient(0deg,
      rgba(255,255,255,.08) 0px,
      rgba(255,255,255,.08) 1px,
      transparent 1px,
      transparent 18px
    );
  filter: blur(.15px);
}

/* scan line motion */
.afg-trustTile__hud .afg-hudScan{
  position:absolute;
  left:-20%;
  right:-20%;
  top:-30%;
  height:60%;
  opacity:.22;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(16,185,129,.20) 45%,
    rgba(255,255,255,.08) 50%,
    rgba(56,189,248,.10) 60%,
    transparent 100%
  );
  animation: afgTileScan 6.8s ease-in-out infinite;
}

@keyframes afgTileScan{
  0%{ transform: translateY(-18%); }
  55%{ transform: translateY(80%); }
  100%{ transform: translateY(-18%); }
}

/* corner brackets */
.afg-hudCorner{
  position:absolute;
  width:16px; height:16px;
  opacity:.55;
  border: 1px solid rgba(16,185,129,.35);
  box-shadow: 0 0 18px rgba(16,185,129,.18);
}

.afg-hudCorner--tl{ top:10px; left:10px; border-right:none; border-bottom:none; border-radius:6px 0 0 0; }
.afg-hudCorner--tr{ top:10px; right:10px; border-left:none; border-bottom:none; border-radius:0 6px 0 0; }
.afg-hudCorner--bl{ bottom:10px; left:10px; border-right:none; border-top:none; border-radius:0 0 0 6px; }
.afg-hudCorner--br{ bottom:10px; right:10px; border-left:none; border-top:none; border-radius:0 0 6px 0; }

/* ensure tile text stays above HUD */
.afg-trustTile > *:not(.afg-trustTile__hud){
  position: relative;
  z-index: 1;
}

/* animated micro-progress bar (Pulse vibe) */
.afg-trustTile::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:12px;
  height:6px;
  border-radius:999px;
  background: rgba(0,0,0,.08);
  overflow:hidden;
  z-index:1;
}

/* fill bar */
.afg-trustTile::before{
  content:"";
  position:absolute;
  left:14px;
  bottom:12px;
  height:6px;
  width: 0%;
  border-radius:999px;
  z-index:2;

  background: linear-gradient(90deg,
    rgba(16,185,129,.75),
    rgba(255,255,255,.28),
    rgba(56,189,248,.55)
  );

  animation: afgTrustFill 1.25s ease forwards;
  transform: translateZ(0);
}

/* different widths per tile using nth-child */
.afg-trust__grid .afg-trustTile:nth-child(1)::before{ width: 72%; }
.afg-trust__grid .afg-trustTile:nth-child(2)::before{ width: 58%; }
.afg-trust__grid .afg-trustTile:nth-child(3)::before{ width: 80%; }
.afg-trust__grid .afg-trustTile:nth-child(4)::before{ width: 66%; }

@keyframes afgTrustFill{
  0%{ width:0%; opacity:.0; }
  30%{ opacity:1; }
  100%{ opacity:1; }
}

/* hover: a little more “alive” */
.afg-trustTile:hover .afg-trustTile__hud .afg-hudScan{
  opacity: .30;
}

/* optional: smooth shimmer on hover */
.afg-trustTile:hover{
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

/* mobile safety: reduce motion if user asked */
@media (prefers-reduced-motion: reduce){
  .afg-pulse--neo::after,
  .afg-trust--neo::after,
  .afg-trustTile__hud .afg-hudScan,
  .afg-trustTile::before{
    animation: none !important;
  }
}
/* =========================================================
   TRUST CORE -> Pulse-style compact cards + expand on click
   ========================================================= */

/* Layout: 4 compact cards in a row (wrap nicely) */
.afg-trust__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  align-items: start;
}

/* Tablet */
@media (max-width: 980px){
  .afg-trust__grid{
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

/* Mobile */
@media (max-width: 560px){
  .afg-trust__grid{
    grid-template-columns: 1fr;
  }
}

/* Base tile becomes “Pulse-card like” */
.afg-trustAcc{
  position: relative;
  border-radius: 16px;
  overflow: hidden;

  /* keep the same glass feel */
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* Button header (collapsed view) */
.afg-trustAcc__btn{
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;

  padding: 14px 14px;
  min-height: 78px;

  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  position: relative;
  z-index: 2;
}

/* Step chip like “+8%” vibe */
.afg-trustAcc__step{
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  opacity: .82;

  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.22);
}

/* Title only on collapsed */
.afg-trustAcc__title{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
}

/* Plus turns into x on open */
.afg-trustAcc__chev{
  font-size: 18px;
  opacity: .75;
  transform: translateY(-1px);
  transition: transform 240ms ease, opacity 240ms ease;
}

.afg-trustAcc.is-open .afg-trustAcc__chev{
  transform: rotate(45deg);
  opacity: .9;
}

/* Expand panel */
.afg-trustAcc__panel{
  position: relative;
  z-index: 2;
  padding: 0 14px 14px 14px;
  overflow: hidden;
}

/* Content styling (revealed) */
.afg-trustAcc__desc{
  font-size: 13px;
  line-height: 1.45;
  opacity: .82;
  margin-top: 2px;
}

.afg-trustAcc__chips{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Mini “progress bar” like Pulse bar */
.afg-trustAcc::after{
  content:"";
  position:absolute;
  left:14px; right:14px;
  bottom:10px;
  height:6px;
  border-radius:999px;
  background: rgba(0,0,0,0.08);
  z-index:1;
}

.afg-trustAcc::before{
  content:"";
  position:absolute;
  left:14px;
  bottom:10px;
  height:6px;
  border-radius:999px;
  z-index:2;

  width: 0%;
  opacity: .0;

  background: linear-gradient(90deg,
    rgba(16,185,129,.75),
    rgba(255,255,255,.25),
    rgba(56,189,248,.45)
  );

  transition: width 420ms ease, opacity 240ms ease;
}

/* Different fill per card */
.afg-trust__grid .afg-trustAcc:nth-child(1)::before{ width: 72%; }
.afg-trust__grid .afg-trustAcc:nth-child(2)::before{ width: 58%; }
.afg-trust__grid .afg-trustAcc:nth-child(3)::before{ width: 80%; }
.afg-trust__grid .afg-trustAcc:nth-child(4)::before{ width: 66%; }

.afg-trustAcc.is-open::before{
  opacity: 1;
}

/* Make the tile “lift” when open */
.afg-trustAcc{
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.afg-trustAcc.is-open{
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(0,0,0,0.12);
}

/* Respect reduce-motion */
@media (prefers-reduced-motion: reduce){
  .afg-trustAcc,
  .afg-trustAcc__chev,
  .afg-trustAcc::before{
    transition: none !important;
  }
}

/* Footer logo image */
.afg-footer__logoImg{
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

/* Email line */
.afg-footer__contact{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.afg-footer__email{
  font-weight: 600;
  font-size: 13px;
  opacity: .85;
  text-decoration: none;
}

.afg-footer__email:hover{
  opacity: 1;
  text-decoration: underline;
}

/* Social row */
.afg-footer__social{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Glossy social buttons */
.afg-socialBtn{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-decoration: none;

  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;

  transform: translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

/* icon color using your green */
.afg-socialBtn svg{
  width: 18px;
  height: 18px;
  fill: #19AA27;
  opacity: .92;
}

/* Shine layer */
.afg-socialBtn::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255,255,255,0.00) 35%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0.00) 65%,
    transparent 100%
  );
  transform: translateX(-22%) rotate(12deg);
  opacity: 0;
  transition: opacity 180ms ease;
}

/* Hover / active shine */
.afg-socialBtn:hover{
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 44px rgba(0,0,0,0.16);
}

.afg-socialBtn:hover::before{
  opacity: 1;
  animation: afgShine 0.8s ease forwards;
}

.afg-socialBtn:active{
  transform: translateY(0px) scale(0.99);
}

@keyframes afgShine{
  0%{ transform: translateX(-28%) rotate(12deg); }
  100%{ transform: translateX(28%) rotate(12deg); }
}

/* Mobile footer spacing (if you added the block there) */
.afg-mfoot__contact{
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

/* =========================================
   Explore Page (afg-x*)
   - Glass hero + search + category row + featured grid
   ========================================= */

.afg-xhero{
  position: relative;
  margin-top: 14px;
  border-radius: 26px;
  overflow: hidden;
}

.afg-xhero__bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(11,111,91,.18), transparent 55%),
    radial-gradient(800px 380px at 85% 10%, rgba(170,199,119,.16), transparent 55%),
    radial-gradient(900px 520px at 55% 120%, rgba(11,111,91,.12), transparent 60%);
  filter: blur(.2px);
}

.afg-xhero__bg:before,
.afg-xhero__bg:after{
  content:"";
  position:absolute;
  width: 260px; height: 260px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  filter: blur(10px);
  transform: rotate(18deg);
  opacity: .75;
}
.afg-xhero__bg:before{ left:-80px; top:-90px; }
.afg-xhero__bg:after{ right:-90px; top:10px; width: 320px; height: 320px; opacity:.55; }

.afg-xhero__card{
  position: relative;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
}

.afg-xhero__kicker{
  display:flex; align-items:center; gap:10px;
  font-weight: 600;
  color: var(--afg-muted);
  margin-bottom: 10px;
}
.afg-xhero__title{
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  margin: 0 0 10px;
}
.afg-xhero__sub{
  margin: 0 0 16px;
  color: var(--afg-muted);
  max-width: 64ch;
}

/* Search bar */
.afg-xsearch{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 26px rgba(0,0,0,.07);
}
.afg-xsearch__ico{
  width: 38px; height: 38px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: rgba(11,111,91,.10);
}
.afg-xsearch__input{
  flex: 1;
  height: 42px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--afg-text);
}
.afg-xsearch__btn{
  white-space: nowrap;
}

/* Stats row */
.afg-xhero__stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.afg-xstat{
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.45);
}
.afg-xstat__n{ font-weight: 800; font-size: 18px; }
.afg-xstat__t{ color: var(--afg-muted); font-size: 13px; margin-top: 2px; }

/* Category row */
.afg-section__head--tight{ margin-bottom: 10px; }

.afg-xcats{
  display:flex;
  gap: 10px;
  overflow:auto;
  padding: 6px 2px 10px;
  scroll-snap-type: x mandatory;
}
.afg-xcats::-webkit-scrollbar{ height: 8px; }
.afg-xcats::-webkit-scrollbar-thumb{
  background: rgba(11,111,91,.20);
  border-radius: 999px;
}
.afg-xcat{
  flex: 0 0 auto;
  display:flex; align-items:center; gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  scroll-snap-align: start;
  text-decoration:none;
}
.afg-xcat__ico{
  width: 34px; height: 34px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: rgba(11,111,91,.10);
}
.afg-xcat__label{
  font-weight: 700;
  color: var(--afg-text);
}

/* Quick cards look more “glass” */
.afg-cards--wide{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.afg-card--glass{
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.45);
}

/* Featured grid */
.afg-xgrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.afg-xcard{
  border-radius: 18px;
  overflow:hidden;
  text-decoration:none;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}
.afg-xcard__img{
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(11,111,91,.10);
}
.afg-xcard__img img{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
}
.afg-xcard__img--ph{
  background:
    radial-gradient(400px 200px at 20% 20%, rgba(11,111,91,.18), transparent 60%),
    radial-gradient(400px 200px at 80% 60%, rgba(170,199,119,.16), transparent 60%),
    rgba(255,255,255,.30);
}
.afg-xbadge{
  position:absolute;
  top: 10px;
  left: 10px;
  width: 34px; height: 34px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(255,255,255,.55);
}
.afg-xcard__body{ padding: 12px; }
.afg-xcard__title{ font-weight: 800; margin-bottom: 6px; }
.afg-xcard__meta{ color: var(--afg-muted); font-size: 13px; margin-bottom: 10px; }
.afg-xcard__foot{
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px;
}
.afg-xprice{ font-weight: 900; }
.afg-xgo{
  width: 34px; height: 34px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: rgba(11,111,91,.10);
}

/* CTA glass */
.afg-cta--glass{
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.45);
}

/* Responsive */
@media (max-width: 980px){
  .afg-xgrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afg-cards--wide{ grid-template-columns: 1fr; }
  .afg-xhero__stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .afg-xhero__card{ padding: 18px; border-radius: 20px; }
  .afg-xsearch{ flex-wrap: wrap; }
  .afg-xsearch__btn{ width: 100%; }
  .afg-xgrid{ grid-template-columns: 1fr; }
}

.page-template-page-explore .afg-xhero__stats{
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.page-template-page-explore .afg-xstat__n{ font-size: 16px !important; }
.page-template-page-explore .afg-xstat__t{ font-size: 12px !important; }


/* =========================================
   MOBILE FIX PACK (Explore + Services + Footer)
   - Fix hero layout on mobile
   - Featured listings: 2-column grid on mobile (no big single card)
   - Footer social icons: styled like desktop (no raw huge icons)
   ========================================= */

/* 1) HERO: keep premium card look on mobile */
@media (max-width: 720px){

  .page-template-page-explore .afg-xhero__card,
  .page-template-page-services .afg-xhero__card{
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .page-template-page-explore .afg-xhero__kicker,
  .page-template-page-services .afg-xhero__kicker{
    font-size: 13px !important;
    opacity: .95;
  }

  .page-template-page-explore .afg-xhero__title,
  .page-template-page-services .afg-xhero__title{
    font-size: 30px !important;
    line-height: 1.05 !important;
  }

  .page-template-page-explore .afg-xhero__sub,
  .page-template-page-services .afg-xhero__sub{
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
  }

  /* Force hero stats to remain "cards" (2 columns) */
  .page-template-page-explore .afg-xhero__stats,
  .page-template-page-services .afg-xhero__stats{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .page-template-page-explore .afg-xstat,
  .page-template-page-services .afg-xstat{
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .page-template-page-explore .afg-xstat__n,
  .page-template-page-services .afg-xstat__n{
    font-size: 15px !important;
  }

  .page-template-page-explore .afg-xstat__t,
  .page-template-page-services .afg-xstat__t{
    font-size: 12px !important;
  }
}

/* 2) EXPLORE: Featured Listings -> 2-column grid on mobile
   This solves the “one huge item” problem and shows 4 items in first view.
   (We are NOT hiding anything.)
*/
@media (max-width: 720px){

  .page-template-page-explore .afg-xgrid{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .page-template-page-explore .afg-xcard{
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  /* The real fix: stop huge images */
  .page-template-page-explore .afg-xcard__img{
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: unset !important;
  }

  .page-template-page-explore .afg-xcard__body{
    padding: 10px !important;
  }

  .page-template-page-explore .afg-xcard__title{
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .page-template-page-explore .afg-xcard__meta{
    font-size: 11px !important;
  }

  .page-template-page-explore .afg-xprice{
    font-size: 12px !important;
  }

  .page-template-page-explore .afg-xgo{
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
  }
}

/* 3) FOOTER: social icons look styled on mobile (no raw big icons)
   This targets common class variants + keeps it safe.
*/
@media (max-width: 720px){

  .afg-footer .afg-social,
  .afg-footer__social,
  .afg-footer .social,
  .afg-footer .social-icons{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .afg-footer .afg-social a,
  .afg-footer__social a,
  .afg-footer .social a,
  .afg-footer .social-icons a{
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: rgba(255,255,255,.55) !important;
    border: 1px solid rgba(255,255,255,.45) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;

    box-shadow: 0 10px 22px rgba(0,0,0,.08) !important;
    overflow: hidden !important;
    text-decoration: none !important;
  }

  /* SVG icons */
  .afg-footer .afg-social a svg,
  .afg-footer__social a svg,
  .afg-footer .social a svg,
  .afg-footer .social-icons a svg{
    width: 22px !important;
    height: 22px !important;
    display: block !important;
  }

  /* Image icons */
  .afg-footer .afg-social a img,
  .afg-footer__social a img,
  .afg-footer .social a img,
  .afg-footer .social-icons a img{
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
    display: block !important;
  }

  .afg-footer{
    padding-bottom: 24px !important;
  }
}

/* =========================================
   AFGHANYA FOOTER (GLOBAL)
   - Works on ALL pages
   - Stable on logged-in / WooCommerce pages
   - Desktop + Mobile sections
   ========================================= */

.afg-footer{
  position: relative;
  margin-top: 28px;
  padding-top: 26px;
  background: transparent;
  isolation: isolate;
}

.afg-footer__glow{
  position:absolute;
  inset: -40px 0 -10px 0;
  pointer-events:none;
  background:
    radial-gradient(800px 280px at 20% 0%, rgba(11,111,91,.18), transparent 60%),
    radial-gradient(700px 260px at 90% 10%, rgba(170,199,119,.14), transparent 60%),
    linear-gradient(to bottom, rgba(255,255,255,.05), rgba(255,255,255,.0));
  filter: blur(0px);
  z-index: 0;
}

/* Make sure WP/Woo pages can't override footer spacing/typography */
.afg-footer,
.afg-footer *{
  box-sizing: border-box;
}

.afg-footer a{
  text-decoration: none;
}

/* =========================================
   Desktop / Mobile visibility
   ========================================= */
.afg-footer--desktop{ display:block; }
.afg-footer--mobile{ display:none; }

@media (max-width: 860px){
  .afg-footer--desktop{ display:none; }
  .afg-footer--mobile{ display:block; }
}

/* =========================================
   DESKTOP FOOTER LAYOUT
   ========================================= */
.afg-footer--desktop .afg-footer__inner{
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 8px 18px;

  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 18px;

  border-radius: 20px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

/* brand row */
.afg-footer__brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.afg-footer__logo{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.50);
  box-shadow: 0 10px 25px rgba(0,0,0,.07);
}

.afg-footer__logoImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.afg-footer__brandText{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
}

.afg-footer__name{
  font-size: 16px;
  font-weight: 800;
  color: var(--afg-text, #0b0f14);
}

.afg-footer__tag{
  font-size: 12px;
  color: rgba(15,25,30,.70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* nav */
.afg-footer__navTitle{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(15,25,30,.75);
  margin-bottom: 10px;
}

.afg-footer__menu{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.afg-footer__menu a{
  font-size: 13px;
  color: rgba(15,25,30,.80);
  padding: 6px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s ease, background .15s ease;
}

.afg-footer__menu a:hover{
  background: rgba(255,255,255,.55);
  transform: translateY(-1px);
}

/* pills + contact area */
.afg-footer__actions{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.afg-footer__pill{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 16px;

  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.50);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  color: rgba(15,25,30,.86);
  font-weight: 700;
  font-size: 13px;

  box-shadow: 0 14px 28px rgba(0,0,0,.06);
}

.afg-footer__pillDot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(11,111,91,.85);
  box-shadow: 0 0 0 4px rgba(11,111,91,.12);
}

.afg-footer__contact{
  margin-top: 2px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.afg-footer__email{
  font-size: 13px;
  font-weight: 700;
  color: rgba(11,111,91,.95);
}

/* =========================================
   SOCIAL ICONS (GLOBAL)
   - fixes “raw” icons everywhere
   ========================================= */
.afg-footer__social{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
}

.afg-footer__social .afg-socialBtn{
  width: 44px;
  height: 44px;
  border-radius: 14px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  background: rgba(255,255,255,.60);
  border: 1px solid rgba(255,255,255,.50);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  box-shadow: 0 14px 28px rgba(0,0,0,.06);
  overflow:hidden;

  transition: transform .15s ease, box-shadow .15s ease;
}

.afg-footer__social .afg-socialBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0,0,0,.09);
}

/* IMPORTANT: normalize svg sizes so they never become huge */
.afg-footer__social .afg-socialBtn svg{
  width: 22px;
  height: 22px;
  display:block;
  fill: rgba(15,25,30,.85);
}

/* =========================================
   DESKTOP BOTTOM BAR
   ========================================= */
.afg-footer__bottom{
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 0 18px 20px;
}

.afg-footer__bottomInner{
  border-radius: 18px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.40);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0,0,0,.06);

  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;

  padding: 12px 14px;
}

.afg-footer__copy{
  font-size: 12px;
  color: rgba(15,25,30,.70);
  font-weight: 700;
}

.afg-footer__micro{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.afg-footer__microChip{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(255,255,255,.50);
  color: rgba(15,25,30,.70);
  font-weight: 700;
}

/* =========================================
   MOBILE FOOTER (PHONE)
   ========================================= */
.afg-mfoot{
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 14px;

  border-radius: 20px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.46);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

.afg-mfoot__top{
  display:flex;
  align-items:center;
  gap: 12px;
}

.afg-mfoot__logo{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.50);
  box-shadow: 0 10px 25px rgba(0,0,0,.07);
  display:flex;
  align-items:center;
  justify-content:center;
}

.afg-mfoot__brandText{
  display:flex;
  flex-direction:column;
  gap: 2px;
}

.afg-mfoot__brandText strong{
  font-size: 16px;
  font-weight: 900;
  color: rgba(15,25,30,.90);
}

.afg-mfoot__brandText span{
  font-size: 12px;
  color: rgba(15,25,30,.70);
}

.afg-mfoot__chips{
  margin-top: 12px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.afg-mfoot__chip{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(255,255,255,.50);
  color: rgba(15,25,30,.72);
  font-weight: 700;
}

/* quick buttons */
.afg-mfoot__quick{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.afg-mfoot__btn{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;

  padding: 12px 12px;
  border-radius: 16px;

  background: rgba(11,111,91,.95);
  color: #fff;
  font-weight: 900;
  font-size: 14px;

  box-shadow: 0 18px 32px rgba(0,0,0,.10);
}

.afg-mfoot__btn--ghost{
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.50);
  color: rgba(15,25,30,.84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* mobile contact + social */
.afg-mfoot__contact{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.afg-mfoot .afg-footer__email{
  font-size: 13px;
  font-weight: 800;
}

/* Social icons in mobile footer (same as desktop, consistent) */
.afg-mfoot .afg-footer__social{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.afg-mfoot .afg-footer__social .afg-socialBtn{
  width: 52px;
  height: 52px;
  border-radius: 18px;
}

.afg-mfoot .afg-footer__social .afg-socialBtn svg{
  width: 24px;
  height: 24px;
}

/* mobile menu */
.afg-mfoot__nav{
  margin-top: 14px;
}

.afg-mfoot__menu{
  list-style:none;
  padding: 0;
  margin: 0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.afg-mfoot__menu a{
  font-size: 13px;
  font-weight: 800;
  color: rgba(15,25,30,.78);
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.45);
}

/* copy */
.afg-mfoot__copy{
  margin-top: 14px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,25,30,.65);
}

/* =========================================
   LOGGED-IN / WOO PAGES SAFETY
   - prevent account page styles from breaking footer
   ========================================= */
.logged-in .afg-footer,
.woocommerce-account .afg-footer,
.woocommerce .afg-footer{
  font-family: inherit;
}

.logged-in .afg-footer svg,
.woocommerce-account .afg-footer svg,
.woocommerce .afg-footer svg{
  max-width: 100%;
  max-height: 100%;
}

/* Mobile footer logo image */
.afg-mfoot__logoImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   Header Logo (Left)
   ========================= */
.afg-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  user-select:none;
}

.afg-brand__logo{
  height: 34px;
  width: auto;
  display:block;
  border-radius: 10px;
}

/* Larger on desktop */
@media (min-width: 992px){
  .afg-brand__logo{ height: 42px; }
}

/* =========================
   Mobile Glass Menu Modal
   (matches screenshot vibe)
   ========================= */
.afg-mglass{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.afg-mglass.is-open{
  display: block;
}

.afg-mglass__backdrop{
  position:absolute;
  inset:0;
  background: rgba(6, 12, 14, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.afg-mglass__panel{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 86vw);
  height: min(640px, 74vh);
  padding: 22px 18px;
  border-radius: 26px;

  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.25);

  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  overflow:hidden;
    display: flex;            
  flex-direction: column;  
}

.afg-mglass__panel::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(closest-side at 30% 25%, rgba(255,255,255,0.40), transparent 62%),
    radial-gradient(closest-side at 70% 75%, rgba(11,111,91,0.25), transparent 60%),
    radial-gradient(closest-side at 60% 30%, rgba(170,199,119,0.18), transparent 60%);
  filter: blur(12px);
  pointer-events:none;
}

.afg-mglass__close{
  position: relative;
  z-index: 2;
  margin-left: auto;
  display:flex;
  align-items:center;
  justify-content:center;

  width: 42px;
  height: 42px;
  border-radius: 14px;

  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(20, 30, 36, 0.72);
  font-size: 28px;
  line-height: 1;
  cursor:pointer;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.afg-mglass__nav{
  position: relative;
  z-index: 2;
  margin-top: 32px;
  display:flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 10px;
  flex: 1 1 auto;                 /* NEW: take remaining height */
  min-height: 0;                  /* NEW: critical for flex scroll */
  overflow-y: auto;               /* NEW: enable vertical scroll */
  -webkit-overflow-scrolling: touch; /* NEW: smooth iOS-like scroll */
  touch-action: pan-y;            /* NEW: allow finger scroll */
}

.afg-mglass__btn{
  text-decoration:none;
  text-align:center;
  font-weight: 600;
  letter-spacing: 0.2px;

  padding: 18px 18px;
  border-radius: 22px;

  color: rgba(18, 26, 32, 0.86);
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.36);

  box-shadow:
    0 10px 26px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.32);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.afg-mglass__btn:active{
  transform: scale(0.985);
}

.afg-mglass__btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.26);
  box-shadow:
    0 14px 34px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.32);
}

/* Mobile-only: the logo opens the modal on small screens */
@media (min-width: 992px){
  .afg-mglass{ display:none !important; }
}
.afg-lock{ overflow:hidden !important; }

/* =========================
   HERO CARD BACKGROUND – PRO
   More visible + still readable
   ========================= */
.afg-glassBtn.afg-cardBg{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Blurry image layer */
.afg-glassBtn.afg-cardBg::before{
  content:"";
  position:absolute;
  inset:-10px;
  background-image: var(--afg-cardbg);
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.25) contrast(1.05);
  transform: scale(1.12);
  opacity: 0.85; /* ✅ more visible */
  pointer-events:none;
  transition: transform .35s ease, opacity .35s ease, filter .35s ease;
  will-change: transform;
}

/* Glass veil + readability layer */
.afg-glassBtn.afg-cardBg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(160px 120px at 22% 18%, rgba(255,255,255,0.30), transparent 60%),
    radial-gradient(220px 160px at 82% 70%, rgba(11,111,91,0.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(10,18,22,0.14));
  pointer-events:none;
  transition: opacity .35s ease;
}

/* keep content above layers */
.afg-glassBtn.afg-cardBg > *{
  position: relative;
  z-index: 2;
}

/* Make it even clearer on hover */
.afg-glassBtn.afg-cardBg:hover::before{
  opacity: 0.62;
  filter: blur(7px) saturate(1.35) contrast(1.08);
}

/* =========================
   Grain overlay (premium)

   ========================= */
.afg-glassBtn.afg-cardBg .afg-cardGrain{
  position:absolute;
  inset:0;
  z-index: 1;
  pointer-events:none;
  opacity: 0.16; /* adjust 0.10 - 0.22 */
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  background-size: 260px 260px;
}

/* =========================
   Light sweep (futuristic)
   ========================= */
.afg-glassBtn.afg-cardBg .afg-cardSweep{
  position:absolute;
  inset:-40%;
  z-index: 1;
  pointer-events:none;
  opacity: 0;
  transform: translateX(-35%) rotate(18deg);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.10) 38%,
    rgba(255,255,255,0.32) 50%,
    rgba(255,255,255,0.10) 62%,
    transparent 100%
  );
  transition: opacity .25s ease;
}

.afg-glassBtn.afg-cardBg:hover .afg-cardSweep{
  opacity: 1;
  animation: afgSweep 1.15s ease forwards;
}

@keyframes afgSweep{
  0%   { transform: translateX(-40%) rotate(18deg); }
  100% { transform: translateX(40%) rotate(18deg); }
}

/* =========================
   MOBILE HEADER LOGO FIX
   ========================= */
@media (max-width: 768px){

  /* Constrain the logo container */
  .afg-logoWrap{
    display: flex;
    align-items: center;
    height: 40px; /* same visual row as buttons */
  }

  /* WordPress custom logo image */
  .afg-logo img,
  .custom-logo{
    max-height: 28px;   /* ✅ matches header buttons */
    width: auto;
    height: auto;
    object-fit: contain;
  }

  /* Ensure logo link doesn't stretch */
  .afg-logo,
  .custom-logo-link{
    display: flex;
    align-items: center;
    height: 28px;
  }

}

/* =========================
   Liquid Press Feedback (Logo Tap)
   ========================= */
#afgLogoWrap{
  position: relative;
}

#afgLogoTap{
  position:absolute;
  inset:-6px -6px -6px -6px; /* bigger tap area */
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
}

/* Press down */
#afgLogoWrap.is-pressed .afg-logo{
  transform: translateY(1px) scale(0.985);
  filter: saturate(1.05);
}

/* Ripple + liquid blob */
#afgLogoWrap::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius: 18px;
  opacity: 0;
  transform: scale(0.92);
  pointer-events:none;

  background:
    radial-gradient(closest-side at 25% 35%, rgba(255,255,255,0.35), transparent 62%),
    radial-gradient(closest-side at 70% 65%, rgba(11,111,91,0.22), transparent 62%),
    radial-gradient(closest-side at 55% 40%, rgba(170,199,119,0.18), transparent 62%);
  filter: blur(6px);
  transition: opacity .22s ease, transform .22s ease;
}

#afgLogoWrap.is-pressed::after{
  opacity: 1;
  transform: scale(1.00);
}

/* Smooth logo motion */
.afg-logo{
  display:flex;
  align-items:center;
  transition: transform .22s ease, filter .22s ease;
  will-change: transform;
}

/* =========================
   Logo -> Drawer Morph (When menu opens)
   ========================= */
#afgLogoWrap.is-menuOpen .afg-logo{
  transform: translateY(0) scale(0.98);
}

#afgLogoWrap.is-menuOpen::after{
  opacity: 1;
  transform: scale(1.03);
}

/* Optional: subtle glow ring */
#afgLogoWrap.is-menuOpen{
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.10));
}


/* =========================
   Afghanya Dashboard (Glass)
   ========================= */
.afg-dash{ padding: calc(var(--afg-header-h) + 22px) 0 48px; }
.afg-dash__wrap{ max-width: 1180px; }

.afg-glass{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

.afg-dash__top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 18px;
}
.afg-dash__kicker{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
}
.afg-dash__h1{
  font-size: 34px;
  margin: 6px 0 6px;
}
.afg-dash__sub{ margin:0; opacity:.75; max-width: 520px; }

.afg-dash__mini{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

.afg-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  text-decoration:none;
  color: inherit;
  font-size: 13px;
}
.afg-pill--soft{ background: rgba(255,255,255,0.40); }

.afg-dash__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.afg-dash__card{ padding: 16px 16px 18px; position:relative; overflow:hidden; }
.afg-dash__card--full{ grid-column: 1 / -1; }

.afg-dash__card::before{
  content:"";
  position:absolute; inset:-40px -60px auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(11,111,91,.18), transparent 60%);
  filter: blur(2px);
  pointer-events:none;
}

.afg-dash__cardHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 14px;
}
.afg-dash__h2{ margin:0; font-size: 18px; }

.afg-badge{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
}
.afg-badge--good{ background: rgba(170,199,119,0.22); }
.afg-badge--muted{ opacity:.75; }

.afg-dash__profile{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
}

.afg-dash__avatar img{
  width: 150px; height: 150px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 14px 50px rgba(0,0,0,0.10);
  display:block;
}
.afg-dash__hint{ font-size: 12px; opacity:.72; margin-top:8px; }

.afg-dash__row{ display:grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(0,0,0,0.08); }
.afg-dash__row:last-child{ border-bottom:none; }
.afg-dash__label{ font-size: 12px; opacity:.75; padding-top: 2px; }
.afg-dash__value{ font-size: 14px; }

.afg-dash__inline{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.afg-input{
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.55);
  outline: none;
  min-width: 220px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}
.afg-input:focus{ border-color: rgba(11,111,91,0.45); }

.afg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.60);
  background: rgba(255,255,255,0.60);
  text-decoration:none;
  cursor:pointer;
  box-shadow: 0 12px 34px rgba(0,0,0,0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.afg-btn:hover{ transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0,0,0,0.10); }

.afg-btn--primary{
  background: rgba(11,111,91,0.85);
  color: #fff;
  border-color: rgba(11,111,91,0.35);
}
.afg-btn--soft{
  background: rgba(170,199,119,0.20);
  border-color: rgba(170,199,119,0.35);
}
.afg-btn--mini{
  margin-top: 10px;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 12px;
}

.afg-dash__msg{ margin-top: 8px; font-size: 13px; }
.afg-dash__msg.is-ok{ color: rgba(11,111,91,0.95); }
.afg-dash__msg.is-bad{ color: rgba(160,30,30,0.95); }

.afg-dash__memberGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.afg-stat{
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.55);
}
.afg-stat__k{ font-size: 12px; opacity:.72; margin-bottom: 6px; }
.afg-stat__v{ font-size: 16px; font-weight: 700; }

.afg-dash__cta{ display:flex; gap:10px; flex-wrap:wrap; }
.afg-dash__note{ margin-top: 10px; font-size: 12px; opacity:.72; }

.afg-tx__table{ display:grid; gap: 10px; }
.afg-tx__row{
  display:grid;
  grid-template-columns: 90px 130px 1fr 140px 160px;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.55);
}
.afg-tx__head{ font-size: 12px; opacity:.75; background: rgba(255,255,255,0.55); }
.afg-empty{ padding: 16px; opacity:.75; }

.afg-chip{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.55);
}
.afg-chip--paid{ background: rgba(170,199,119,0.24); }
.afg-chip--pending{ background: rgba(240,190,80,0.22); }
.afg-chip--failed,
.afg-chip--cancelled,
.afg-chip--refunded{ background: rgba(210,70,70,0.18); }

/* Responsive */
@media (max-width: 980px){
  .afg-dash__grid{ grid-template-columns: 1fr; }
  .afg-dash__profile{ grid-template-columns: 1fr; }
  .afg-tx__row{ grid-template-columns: 90px 1fr 1fr; }
  .afg-tx__row > div:nth-child(4),
  .afg-tx__row > div:nth-child(5){ display:none; }
}


/* =========================
   Mobile Glass Menu (Fix)
   ========================= */

/* Lock scroll when menu is open */
html.afg-lock, body.afg-lock{
  overflow: hidden !important;
  height: 100% !important;
}

/* Modal container */
.afg-mglass{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

/* Open state */
.afg-mglass.is-open{
  display: block;
}

/* Backdrop: blur the PAGE behind + dim it */
.afg-mglass__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 14, 0.28);            /* dim */
  backdrop-filter: blur(16px) saturate(1.1);     /* blur */
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

/* Panel: centered, not full screen */
.afg-mglass__panel{
  position: relative;
  margin: 84px auto 24px; /* push down from top */
  width: min(92vw, 520px);
  border-radius: 24px;
  padding: 18px 16px 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Close button: clean and consistent */
.afg-mglass__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* The nav stack */
.afg-mglass__nav{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 42px; /* make room for close button */
}

/* Buttons: full width, centered text, no overlap */
.afg-mglass__btn{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: 100%;
  padding: 0 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;

  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 14px 40px rgba(0,0,0,0.10);
}

/* Nice press feedback */
.afg-mglass__btn:active{
  transform: scale(0.99);
}

/* Ensure it only affects mobile */
@media (min-width: 992px){
  .afg-mglass{ display:none !important; }
}


/* FULLSCREEN overlay always */
#afgMGlass.afg-mglass{
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
}

/* Backdrop blur + dim (entire page) */
.afg-mglass__backdrop{
  position: absolute !important;
  inset: 0 !important;
  background: rgba(8,12,14,0.32) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.1) !important;
}

/* Panel scroll support so all buttons show */
.afg-mglass__panel{
  max-height: calc(100vh - 110px) !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Back button style (optional but nice) */
.afg-mglass__btn--back{
  margin-top: 8px;
  opacity: .9;
}

/* ===========================================
   Mobile Glass Menu Panel: Image Background
   =========================================== */

/* Put the image INSIDE the panel box */
.afg-mglass__panel{
  position: relative; /* required for ::before layering */
  overflow: hidden !important;
  background: rgba(255,255,255,0.22) !important; /* base tint */
  border: 1px solid rgba(255,255,255,0.40) !important;
  backdrop-filter: blur(10px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.15) !important;
}

/* Background image layer */
.afg-mglass__panel::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("http://afghanya.org/wp-content/uploads/2026/02/WhatsApp-Image-2026-02-04-at-5.10.54-PM.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Make image clearly visible but still premium */
  opacity: 0.65;

  /* Optional: soften image so text stays readable */
  filter: blur(1px) saturate(1.05) contrast(1.05);

  z-index: 0;
}

/* A subtle overlay gradient for readability (optional but recommended) */
.afg-mglass__panel::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.20),
    rgba(255,255,255,0.08)
  );
  z-index: 1;
}

/* Ensure content sits ABOVE the background image */
.afg-mglass__close,
.afg-mglass__nav{
  position: relative;
  z-index: 2;
}

/* Buttons floating above image */
.afg-mglass__btn{
  background: rgba(255,255,255,0.55) !important;
  border: 1px solid rgba(255,255,255,0.50) !important;
  backdrop-filter: blur(14px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
  box-shadow: 0 16px 44px rgba(0,0,0,0.14) !important;
}

/* Extra “float” feel */
.afg-mglass__btn:active{
  transform: scale(0.99);
}

/* =========================================================
   Afghanya Dashboard – Premium Glass (PC + Mobile)
   Paste at END of style.css
   ========================================================= */

.afg-dashboard{
  --dash-max: 1120px;
  --glass-bg: rgba(255,255,255,0.62);
  --glass-brd: rgba(255,255,255,0.55);
  --glass-shadow: 0 18px 60px rgba(0,0,0,0.10);
  --glass-blur: blur(18px) saturate(1.15);
  --muted: rgba(11,15,20,0.62);
}

.afg-dashboard .afg-dashboard__wrap{
  max-width: var(--dash-max);
  margin: 0 auto;
  padding: 26px 18px 48px;
}

/* Top */
.afg-dashboard__kicker{
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(11,111,91,0.70);
  margin-bottom: 6px;
}
.afg-dashboard__h1{
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.afg-dashboard__sub{
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 62ch;
}

/* Pills */
.afg-dashboard__pills{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.afg-dpill{
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.60);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-weight: 900;
  font-size: 12px;
  color: rgba(11,15,20,0.78);
  text-decoration: none;
}
.afg-dpill--soft{
  background: rgba(255,255,255,0.62);
}

/* Grid */
.afg-dashboard__grid{
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 16px;
  align-items: start;
  margin-top: 18px;
}

/* Cards */
.afg-card{
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: 22px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.afg-card--full{
  grid-column: 1 / -1;
}
.afg-card::before{
  content:"";
  position:absolute;
  inset: -70px -90px auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(11,111,91,0.18), transparent 60%);
  pointer-events:none;
}
.afg-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.afg-card__title{
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Badges */
.afg-badge{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.60);
  background: rgba(255,255,255,0.62);
}
.afg-badge--muted{
  color: rgba(11,15,20,0.55);
}
.afg-badge--good,
.afg-badge--ok{
  color: rgba(11,111,91,0.95);
}

/* Profile layout */
.afg-profile{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}
.afg-profile__avatar{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.afg-profile__avatar img{
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1/1;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 16px 45px rgba(0,0,0,0.10);
}
.afg-help{
  font-size: 12px;
  color: rgba(11,15,20,0.58);
}

/* Key-value rows */
.afg-kv{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  margin-bottom: 10px;
}
.afg-kv__k{
  font-size: 12px;
  font-weight: 900;
  color: rgba(11,15,20,0.58);
  white-space: nowrap;
}
.afg-kv__v{
  font-weight: 800;
  color: rgba(11,15,20,0.82);
  text-align: right;
  overflow-wrap: anywhere;
}

/* Inline username row */
.afg-inline{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}
.afg-input{
  min-width: 210px;
  flex: 1;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.70);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  outline: none;
}

/* Messages */
.afg-msg{
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
}
.afg-msg.is-ok{ color: rgba(11,111,91,0.95); }
.afg-msg.is-bad{ color: rgba(180,40,40,0.95); }

/* Buttons (dashboard-local) */
.afg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.10);
  font-weight: 900;
  font-size: 13px;
  cursor:pointer;
  text-decoration:none;
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease;
}
.afg-btn:active{ transform: scale(0.99); }
.afg-btn--mini{ padding: 9px 12px; font-size: 12px; }
.afg-btn--glass{ background: rgba(255,255,255,0.58); }
.afg-btn--soft{ background: rgba(255,255,255,0.68); }
.afg-btn--primary{
  background: linear-gradient(180deg, rgba(11,111,91,0.95), rgba(11,111,91,0.72));
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

/* VIP stats */
.afg-vip__grid{
  display:grid;
  gap: 10px;
}
.afg-stat{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}
.afg-stat__k{
  font-size: 12px;
  font-weight: 900;
  color: rgba(11,15,20,0.58);
}
.afg-stat__v{
  font-weight: 900;
}

/* CTA row */
.afg-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.afg-note{
  margin-top: 12px;
  font-size: 12px;
  color: rgba(11,15,20,0.58);
}

/* Transactions */
.afg-tx__table{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.45);
}
.afg-tx__row{
  display:grid;
  grid-template-columns: 90px 1fr 170px 150px 190px;
  gap: 10px;
  padding: 12px 12px;
  border-top: 1px solid rgba(11,15,20,0.08);
  align-items:center;
}
.afg-tx__row:first-child{ border-top: 0; }
.afg-tx__head{
  font-weight: 900;
  color: rgba(11,15,20,0.62);
  background: rgba(255,255,255,0.70);
}
.afg-empty{
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(11,15,20,0.18);
  background: rgba(255,255,255,0.45);
  color: rgba(11,15,20,0.62);
  font-weight: 800;
}

/* Chips */
.afg-chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.62);
}
.afg-chip--paid,
.afg-chip--completed,
.afg-chip--processing{
  color: rgba(11,111,91,0.95);
}
.afg-chip--failed,
.afg-chip--cancelled,
.afg-chip--refunded,
.afg-chip--denied{
  color: rgba(180,40,40,0.95);
}
.afg-chip--pending{
  color: rgba(120,90,10,0.95);
}

/* Mobile */
@media (max-width: 991px){
  .afg-dashboard__grid{
    grid-template-columns: 1fr;
  }
  .afg-profile{
    grid-template-columns: 1fr;
  }
  .afg-profile__avatar img{
    max-width: 160px;
  }
  .afg-kv{
    flex-direction: column;
    align-items: flex-start;
  }
  .afg-kv__v{
    text-align: left;
  }
  .afg-tx__row{
    grid-template-columns: 1fr;
  }
  .afg-tx__head{
    display:none;
  }
  .afg-tx__row > div{
    padding: 2px 0;
  }
  .afg-tx__row > div:nth-child(1)::before{ content:"ID: "; font-weight:900; color: rgba(11,15,20,0.55); }
  .afg-tx__row > div:nth-child(2)::before{ content:"Source: "; font-weight:900; color: rgba(11,15,20,0.55); }
  .afg-tx__row > div:nth-child(3)::before{ content:"Amount: "; font-weight:900; color: rgba(11,15,20,0.55); }
  .afg-tx__row > div:nth-child(4)::before{ content:"Status: "; font-weight:900; color: rgba(11,15,20,0.55); }
  .afg-tx__row > div:nth-child(5)::before{ content:"Date: "; font-weight:900; color: rgba(11,15,20,0.55); }
}


/* =========================
   Mobile Glass Menu (scroll + top + bg image inside panel)
   ========================= */
.afg-mglass{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.afg-mglass.is-open{ display:block; }

/* Full-page blur (focus shifts to menu) */
.afg-mglass__backdrop{
  position: fixed;
  inset: 0;
  background: rgba(6, 16, 18, 0.28);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* Panel layout */
.afg-mglass__panel{
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  transform: translateX(-50%);
  width: min(92vw, 520px);
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 36px);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    0 26px 70px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.25);

  /* base glass */
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* Background image INSIDE panel */
.afg-mglass__panel::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("http://afghanya.org/wp-content/uploads/2026/02/WhatsApp-Image-2026-02-04-at-5.10.54-PM.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0.55; /* image visibility */
  transform: scale(1.06);
  filter: blur(2px) saturate(1.1);
}

/* Soft overlay so buttons are readable but image stays visible */
.afg-mglass__panel::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 50% 10%, rgba(255,255,255,0.40), rgba(255,255,255,0.06) 65%),
    linear-gradient(to bottom, rgba(255,255,255,0.14), rgba(255,255,255,0.10));
  pointer-events:none;
}

/* Close button */
.afg-mglass__close{
  position: absolute;
  right: 16px;
  top: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 26px;
  line-height: 44px;
}

/* Nav: top aligned + scrollable */
.afg-mglass__nav{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 74px 18px 18px; /* space for close button */
  overflow: auto;
  max-height: inherit;
  -webkit-overflow-scrolling: touch;
}

/* Buttons floating on top of image */
.afg-mglass__btn{
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  min-height: 62px;
  border-radius: 999px;
  padding: 0 18px;

  border: 1px solid rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.24);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);

  box-shadow:
    0 14px 32px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.34);

  color: rgba(13,20,22,0.92);
  font-weight: 700;
  letter-spacing: 0.2px;

  transform: translateY(0);
  transition: transform .18s ease, filter .18s ease;
}

.afg-mglass__btn:active{
  transform: translateY(1px) scale(0.995);
  filter: brightness(0.98);
}

.afg-mglass__btn--back{
  margin-top: 6px;
  font-weight: 800;
}

/* Lock body scroll when menu is open */
html.afg-lock, body.afg-lock{
  overflow: hidden !important;
}




.afg-modal{position:fixed;inset:0;display:none;z-index:9999}
.afg-modal[aria-hidden="false"]{display:block}
.afg-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(10px)}
.afg-modal__panel{position:relative;max-width:620px;margin:10vh auto 0 auto;border-radius:22px;padding:18px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(18px)}
.afg-modal__head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:6px 6px 12px}
.afg-modal__title{font-size:18px;font-weight:700}
.afg-modal__sub{opacity:.75;margin-top:4px;font-size:13px}
.afg-modal__body{padding:6px}
.afg-modal__foot{padding:12px 6px 6px;display:flex;justify-content:flex-end}
.afg-formRow{margin:10px 0}
.afg-label{display:block;font-size:12px;opacity:.8;margin:0 0 6px}
body.afg-modalOpen{overflow:hidden}


/* =========================
   Dashboard – Mobile Minimal
   ========================= */
@media (max-width: 640px){

  .afg-dashboard__wrap{
    padding-left: 14px;
    padding-right: 14px;
  }

  .afg-dashboard__grid{
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .afg-profile{
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
    align-items: center;
    text-align: center;
  }

  .afg-profile__avatar{
    display: grid;
    justify-items: center;
    gap: 10px;
  }

  /* “close to a circle but not a circle” = squircle */
  .afg-avatarImg{
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: 26px; /* squircle */
    background: rgba(255,255,255,0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  .afg-profile__meta{
    text-align: left;
  }

  .afg-kv{
    padding: 10px 12px;
  }

  .afg-inline{
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  #afgSaveUsername{
    width: 100%;
  }

  .afg-dashboard__pills{
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Modal on mobile */
  .afg-modal__panel{
    width: calc(100% - 24px);
    margin: 12px;
    border-radius: 16px;
  }
}

/* Modal base (safe if you don’t already have it) */
.afg-modal[aria-hidden="true"]{ display:none; }
.afg-modal[aria-hidden="false"]{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
}
.afg-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(10px);
}
.afg-modal__panel{
  position: relative;
  width: min(560px, calc(100% - 32px));
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
  border-radius: 18px;
  overflow: hidden;
}
.afg-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
}
.afg-modal__title{ font-weight: 800; font-size: 18px; }
.afg-modal__sub{ opacity: 0.75; font-size: 13px; margin-top: 4px; }
.afg-modal__body{ padding: 12px 16px 16px; }
.afg-modalOpen{ overflow:hidden; }
/* =========================
   DASHBOARD – MOBILE MINIMAL (<= 480px)
   ========================= */
@media (max-width: 480px){

  /* Reduce top spacing */
  .afg-dashHero{
    padding: 18px 14px !important;
  }

  /* Make the whole dashboard feel centered */
  .afg-dashWrap,
  .afg-dashMain{
    padding: 14px !important;
  }

  /* Cards become one column */
  .afg-grid,
  .afg-dashGrid{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Profile card: center everything and reduce clutter */
  .afg-profileCard{
    padding: 14px !important;
    text-align: center !important;
  }

  /* Avatar becomes “squircle” (almost circle) */
  .afg-avatar,
  .afg-avatarWrap,
  .afg-profilePhoto{
    width: 96px !important;
    height: 96px !important;
    margin: 0 auto 10px auto !important;
    border-radius: 22px !important; /* squircle */
    overflow: hidden !important;
  }

  .afg-avatar img,
  .afg-profilePhoto img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Buttons: full width and consistent */
  .afg-profileCard .afg-btn,
  .afg-profileCard button,
  .afg-modal button{
    width: 100% !important;
    max-width: 320px !important;
    margin: 8px auto 0 auto !important;
    display: block !important;
  }

  /* Inputs: full width and centered */
  .afg-profileCard input,
  .afg-modal input,
  .afg-modal select{
    width: 100% !important;
    max-width: 320px !important;
    margin: 6px auto !important;
    display: block !important;
  }

  /* Remove left-side “Profile / No username yet” column look (compact it) */
  .afg-profileMeta,
  .afg-profileSide{
    display: none !important;
  }

  /* Tighten labels and spacing */
  .afg-profileCard label,
  .afg-modal label{
    text-align: left !important;
    max-width: 320px !important;
    margin: 10px auto 4px auto !important;
    display: block !important;
    font-size: 12px !important;
    opacity: .85;
  }

  /* Modal: make it look clean & centered on phone */
  .afg-modal,
  .afgEditModal{
    padding: 14px !important;
  }

  .afg-modalCard,
  .afgEditCard{
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
  }
}
/* Logout pill */
.afg-dpill--danger{
  background: rgba(255,80,80,0.12);
  color: #c53c3c;
  border: 1px solid rgba(255,80,80,0.25);
  transition: all .25s ease;
}

.afg-dpill--danger:hover{
  background: rgba(255,80,80,0.18);
  color: #a72626;
}

/* Contact layout */
.afg-grid2{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
  margin-top:16px;
}

.afg-card{
  border-radius:22px;
  padding:18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(14px);
}

.afg-cardTitle{ margin:0 0 10px; font-size:18px; }

.afg-form .afg-field{ margin:12px 0; }
.afg-form input, .afg-form textarea{
  width:100%;
  border-radius:14px;
  border: 1px solid rgba(0,0,0,0.08);
  padding:12px 12px;
  background: rgba(255,255,255,0.75);
}

.afg-note{ padding:10px 12px; border-radius:14px; margin:10px 0; }
.afg-ok{ background: rgba(60,180,120,0.14); border:1px solid rgba(60,180,120,0.22); }
.afg-bad{ background: rgba(220,60,60,0.10); border:1px solid rgba(220,60,60,0.18); }

.afg-infoRow{ display:flex; justify-content:space-between; gap:12px; padding:10px 0; }
.afg-infoLabel{ opacity:.75; }
.afg-divider{ height:1px; background: rgba(0,0,0,0.06); margin:14px 0; }

.afg-formHint{ margin-top:10px; font-size:12px; opacity:.75; }

/* Mobile: 390×861 baseline */
@media (max-width: 520px){
  .afg-grid2{ grid-template-columns: 1fr; }
  .afg-card{ padding:16px; border-radius:20px; }
}

.afg-mglass.is-open{
  display:block;
}

.afg-mglass__panel{
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.afg-mglass__nav{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* =========================
   DESKTOP NAV FIX (PC MODE)
   ========================= */
@media (min-width: 992px){

  /* Ensure header layout is 3 columns: left logo / center menu / right buttons */
  .afg-header__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 16px;
  }

  .afg-header__left,
  .afg-header__right{
    flex: 0 0 auto;
  }

  .afg-nav{
    flex: 1 1 auto;
    display:flex !important;
    justify-content:center;
    align-items:center;
    min-width: 0;
  }

  /* Make sure WP menu UL is visible and horizontal */
  .afg-menu{
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .afg-menu li{
    margin: 0;
    padding: 0;
  }

  .afg-menu a{
    display:inline-flex;
    align-items:center;
    text-decoration:none;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
  }

  /* Hide the mobile tap button on desktop */
  .afg-logoTap{
    display:none !important;
  }
}

/* =========================
   CONTACT PAGE (Afghanya)
   Mobile-first baseline: 390×861
   ========================= */

.afg-cHero{ margin-top: 18px; }
.afg-cHero__card{
  border-radius: 22px;
  padding: 22px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.25);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.afg-cHero__kicker{ opacity:.78; font-size:13px; margin-bottom:10px; display:flex; align-items:center; gap:10px; }
.afg-cHero__title{ font-size: 34px; line-height:1.08; margin:0 0 10px; }
.afg-cHero__sub{ margin:0; opacity:.75; }

.afg-cNotice{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.55);
}
.afg-cNotice--success{ box-shadow: 0 0 0 4px rgba(11,111,91,0.10); }
.afg-cNotice--error{ box-shadow: 0 0 0 4px rgba(180,30,30,0.10); }

.afg-cGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 992px){
  .afg-cGrid{ grid-template-columns: 1fr 1fr; }
}

.afg-cCard{
  border-radius: 22px;
  padding: 22px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.25);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.afg-cTitle{ margin:0 0 14px; font-size:18px; }
.afg-cSubTitle{ margin: 6px 0 10px; font-size:14px; opacity:.85; }

.afg-cForm{ display:flex; flex-direction:column; gap: 12px; }
.afg-cField{ display:flex; flex-direction:column; gap: 8px; }
.afg-cLabel{ font-size: 13px; opacity:.75; }

.afg-cInput{
  width:100%;
  border-radius:14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.08);
  outline:none;
}
.afg-cInput:focus{
  border-color: rgba(11,111,91,0.35);
  box-shadow: 0 0 0 4px rgba(11,111,91,0.12);
}
.afg-cTextarea{ resize: vertical; min-height: 140px; }

.afg-cBtnWide{ width:100%; }

.afg-cHint{ margin: 6px 0 0; font-size: 12px; opacity:.70; }

.afg-cInfo{ display:flex; flex-direction:column; gap: 10px; }
.afg-cRow{ display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.afg-cKey{ font-size: 13px; opacity:.75; }
.afg-cVal{ font-size: 13px; text-decoration:none; }

.afg-cDivider{
  height:1px;
  background: rgba(0,0,0,0.08);
  margin: 14px 0;
  border-radius: 99px;
}

.afg-cSocial{ display:flex; flex-wrap:wrap; gap:10px; }
.afg-cSocBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration:none;
  font-size: 13px;
}

/* =========================
   CONTACT PAGE – Premium Glass (Afghanya)
   Baseline: 390×861
   ========================= */

.afg-contactHero{ margin-top: 18px; }
.afg-contactHero__glass{
  border-radius: 26px;
  padding: 22px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.25);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.afg-contactHero__kicker{
  display:flex; align-items:center; gap:10px;
  opacity:.78; font-size:13px; margin-bottom: 10px;
}
.afg-contactHero__title{
  margin:0 0 10px;
  font-size: 34px; line-height:1.08;
  letter-spacing: -0.02em;
}
.afg-contactHero__sub{ margin:0; opacity:.74; }

.afg-contactQuick{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

.afg-contactChip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration:none;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.afg-contactNotice{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.55);
}
.afg-contactNotice--success{ box-shadow: 0 0 0 4px rgba(11,111,91,0.10); }
.afg-contactNotice--error{ box-shadow: 0 0 0 4px rgba(180,30,30,0.10); }

.afg-contactGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (min-width: 992px){
  .afg-contactGrid{ grid-template-columns: 1.1fr 0.9fr; align-items:start; }
}

.afg-contactCard{
  border-radius: 26px;
  padding: 22px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.25);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.afg-contactCard__head{ margin-bottom: 14px; }
.afg-contactCard__title{ margin:0; font-size: 18px; }
.afg-contactCard__muted{ margin: 6px 0 0; font-size: 12px; opacity:.72; }

.afg-contactForm{ display:flex; flex-direction:column; gap: 14px; }

.afg-contactFields{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px){
  .afg-contactFields{ grid-template-columns: 1fr 1fr; }
  .afg-contactField--full{ grid-column: 1 / -1; }
}

.afg-contactField{ display:flex; flex-direction:column; gap: 8px; }
.afg-contactLabel{ font-size: 13px; opacity: .78; }

.afg-contactInput{
  width: 100%;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.08);
  outline: none;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.afg-contactInput:focus{
  border-color: rgba(11,111,91,0.38);
  box-shadow: 0 0 0 4px rgba(11,111,91,0.12);
  transform: translateY(-1px);
}

.afg-contactTextarea{
  min-height: 170px;
  resize: vertical;
}

.afg-contactBtn{
  width: 100%;
  border-radius: 999px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.afg-contactInfo{ display:flex; flex-direction:column; gap: 10px; margin-top: 12px; }

.afg-contactRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.afg-contactKey{ font-size: 13px; opacity: .72; }
.afg-contactVal{ font-size: 13px; text-decoration:none; }

.afg-contactDivider{
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 14px 0;
  border-radius: 99px;
}

.afg-contactSubTitle{
  margin: 2px 0 10px;
  font-size: 14px;
  opacity:.85;
}

.afg-contactSocial{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

.afg-contactSocialBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration:none;
  font-size: 13px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Contact – social icon buttons (match footer glass style) */
.afg-contactSocialIcons{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 10px;
}

.afg-socIcon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;

  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.afg-socIcon svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: .9;
}

.afg-socIcon:hover{
  transform: translateY(-1px);
  border-color: rgba(11,111,91,0.22);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* Make success/error notice feel premium */
.afg-contactNotice{
  border-radius: 18px;
}

.afg-contactNotice--success{
  border-color: rgba(11,111,91,0.18);
  box-shadow: 0 0 0 4px rgba(11,111,91,0.10), 0 14px 40px rgba(0,0,0,0.10);
}

.afg-contactNotice--error{
  border-color: rgba(180,30,30,0.18);
  box-shadow: 0 0 0 4px rgba(180,30,30,0.10), 0 14px 40px rgba(0,0,0,0.10);
}

/* =========================
   ABOUT US – Afghanya Glass
   ========================= */

.afg-aboutHero{ margin-top: 18px; }
.afg-aboutHero__glass,
.afg-aboutCard,
.afg-aboutCTA__glass{
  border-radius: 26px;
  padding: 22px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.25);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.afg-aboutHero__kicker{
  display:flex; align-items:center; gap:10px;
  opacity:.78; font-size:13px; margin-bottom: 10px;
}
.afg-aboutHero__title{
  margin:0 0 10px;
  font-size: 34px; line-height:1.08;
  letter-spacing: -0.02em;
}
.afg-aboutHero__sub{ margin:0; opacity:.74; max-width: 62ch; }

.afg-aboutHero__actions{
  margin-top: 16px;
  display:flex; flex-wrap:wrap; gap: 10px;
}

.afg-aboutGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (min-width: 992px){
  .afg-aboutGrid{ grid-template-columns: 1fr 1fr; }
}

.afg-aboutCard__title{ margin:0 0 8px; font-size: 18px; }
.afg-aboutCard__text{ margin:0; opacity:.78; line-height:1.7; }

.afg-aboutMini{
  margin-top: 14px;
  display:flex; flex-wrap:wrap; gap: 8px;
}
.afg-aboutTag{
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
}

.afg-aboutSection{ margin-top: 18px; }
.afg-aboutSection__head{ margin-bottom: 12px; }
.afg-aboutSection__title{ margin:0 0 6px; font-size: 20px; }
.afg-aboutSection__sub{ margin:0; opacity:.72; }

.afg-aboutCards3{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 992px){
  .afg-aboutCards3{ grid-template-columns: 1fr 1fr 1fr; }
}

.afg-aboutStats{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 992px){
  .afg-aboutStats{ grid-template-columns: repeat(4, 1fr); }
}
.afg-stat{
  border-radius: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
}
.afg-stat__num{ font-size: 22px; font-weight: 700; line-height:1; }
.afg-stat__lbl{ margin-top: 6px; font-size: 12px; opacity:.75; }

.afg-aboutTimeline{
  margin-top: 12px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.afg-step{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
}
.afg-step__dot{
  width: 10px; height: 10px;
  border-radius: 99px;
  margin-top: 6px;
  background: rgba(11,111,91,0.85);
  box-shadow: 0 0 0 6px rgba(11,111,91,0.12);
}
.afg-step__title{ font-weight: 700; }
.afg-step__text{ margin-top: 6px; opacity:.78; }

.afg-aboutCTA{ margin-top: 18px; }
.afg-aboutCTA__title{ margin:0 0 8px; font-size: 20px; }
.afg-aboutCTA__sub{ margin:0; opacity:.74; }
.afg-aboutCTA__actions{
  margin-top: 14px;
  display:flex; flex-wrap:wrap; gap: 10px;
}
