
body{background:#f5f6f7}
.avm-page{max-width:900px;margin:30px auto;padding:15px;font-family:inherit}
.avm-card{background:#fff;border-radius:22px;padding:28px;box-shadow:0 10px 40px rgba(0,0,0,.08);text-align:center}
.avm-photo-wrap{width:220px;height:280px;margin:0 auto 22px;overflow:hidden;border-radius:16px;border:6px solid #222;background:#eee;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.avm-photo{width:100%;height:100%;object-fit:cover;display:block}
.avm-card h1{margin:10px 0;font-size:30px}
.avm-father{color:#666;margin-bottom:15px}
.avm-dates{display:flex;gap:15px;justify-content:center;flex-wrap:wrap;margin:15px 0;color:#555}
.avm-content{max-width:720px;margin:25px auto;line-height:2.1;text-align:right}
.avm-spiritual{margin-top:30px;padding-top:28px;border-top:1px solid #eee}
.avm-spiritual h2{margin:0 0 8px;font-size:25px}
.avm-spiritual p{color:#777;font-size:14px;margin-bottom:22px}
.avm-actions-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
button.avm-action-card{position:relative;border:1px solid #e4e4e4!important;background:linear-gradient(180deg,#fff,#fafafa)!important;color:#222!important;border-radius:18px;padding:18px 8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:155px;box-shadow:0 5px 16px rgba(0,0,0,.07);transition:transform .18s,box-shadow .18s,border-color .18s}
.avm-action-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.10);border-color:#ccc}
.avm-action-card:active{transform:scale(.98)}
.avm-action-icon{font-size:40px;line-height:1}
.avm-action-card strong{font-size:15px;line-height:1.7}
.avm-action-count{font-size:13px;color:#777;background:#f0f0f0;border-radius:20px;padding:3px 10px;min-width:48px}
.avm-action-done{background:#f3faf5!important;border-color:#b8ddc2!important;box-shadow:none!important}
.avm-action-done .avm-action-count{background:#e0f2e5;color:#26743c}
.avm-action-done:after{content:'✓ انجام شد';position:absolute;top:8px;left:10px;font-size:10px;color:#26743c}
.avm-brand{margin-top:30px;font-size:12px;color:#999}
@media(max-width:700px){
 .avm-page{margin:10px auto;padding:10px}
 .avm-card{padding:22px 14px;border-radius:18px}
 .avm-actions-grid{grid-template-columns:repeat(2,1fr);gap:12px}
 .avm-action-card{min-height:145px}
 .avm-action-icon{font-size:36px}
}
@media(max-width:380px){
 .avm-actions-grid{gap:9px}
 .avm-action-card{min-height:135px;padding:14px 6px}
 .avm-action-card strong{font-size:13px}
 .avm-action-count{font-size:12px}
 .avm-photo-wrap{width:180px;height:230px}
 .avm-card h1{font-size:24px}
}

.avm-audio-section{margin-top:30px;padding:24px 0;border-top:1px solid #eee}
.avm-audio-section h2{margin:0 0 7px;font-size:23px}
.avm-audio-section>p{color:#777;font-size:13px;margin:0 0 18px}
.avm-audio-list{display:grid;gap:12px}
.avm-audio-card{background:#fafafa;border:1px solid #e7e7e7;border-radius:16px;padding:14px 16px;text-align:right}
.avm-audio-card strong{display:block;margin-bottom:9px;font-size:15px}
.avm-audio-card audio{width:100%;height:42px}

.avm-audio-section{margin-top:30px;padding-top:28px;border-top:1px solid #eee;text-align:right}
.avm-audio-section h2{font-size:23px;margin:0 0 7px;text-align:center}
.avm-audio-section>p{font-size:13px;color:#777;text-align:center;margin:0 0 18px}
.avm-audio-list{display:grid;grid-template-columns:1fr;gap:12px}
.avm-audio-card{background:#fafafa;border:1px solid #e5e5e5;border-radius:15px;padding:14px}
.avm-audio-title{font-weight:700;margin-bottom:9px}
.avm-audio-card audio{width:100%;display:block}

/* شمارنده صلوات */
.avm-salawat-card{position:relative;border:1px solid #e4e4e4;background:linear-gradient(180deg,#fff,#fafafa);color:#222;border-radius:18px;padding:18px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:155px;box-shadow:0 5px 16px rgba(0,0,0,.07)}
.avm-salawat-counter{display:flex;flex-direction:row;align-items:center;justify-content:center;direction:rtl;gap:8px;margin-top:1px;width:100%;line-height:1}
.avm-salawat-counter button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;margin:0!important;padding:0!important;border:1px solid #d7d7d7!important;border-radius:50%!important;background:#fff!important;color:#333!important;font-size:23px!important;font-weight:400!important;line-height:36px!important;cursor:pointer!important;box-shadow:none!important;appearance:none!important;-webkit-appearance:none!important}
.avm-salawat-counter button:active{transform:scale(.94)}
.avm-salawat-counter button:disabled{opacity:.5;cursor:not-allowed}
.avm-salawat-amount{display:inline-block;min-width:38px;width:38px;font-size:18px;font-weight:700;text-align:center;line-height:36px;direction:rtl}
.avm-salawat-submit{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:112px!important;height:38px!important;margin:0!important;border:0!important;border-radius:20px!important;background:#e7f5ea!important;color:#26743c!important;padding:7px 16px!important;font-family:inherit!important;font-size:13px!important;line-height:1!important;cursor:pointer!important;box-shadow:none!important;appearance:none!important;-webkit-appearance:none!important}
.avm-salawat-submit:disabled{opacity:.6;cursor:not-allowed}
.avm-salawat-card .avm-action-count{margin-top:1px}
@media(max-width:700px){.avm-salawat-card{min-height:145px}}
@media(max-width:380px){.avm-salawat-card{min-height:135px;padding:14px 6px}.avm-salawat-counter button{width:32px;height:32px}}


/* ===== AVM Responsive Layout ===== */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

.avm-public-page,
.avm-memorial-page,
.avm-wrap,
.avm-container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .avm-public-page,
  .avm-memorial-page,
  .avm-wrap,
  .avm-container {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    overflow-x: hidden;
  }

  .avm-public-page img,
  .avm-memorial-page img,
  .avm-wrap img,
  .avm-container img {
    max-width: 100%;
    height: auto;
  }

  .avm-public-page .avm-grid,
  .avm-memorial-page .avm-grid,
  .avm-wrap .avm-grid,
  .avm-container .avm-grid {
    grid-template-columns: 1fr !important;
  }

  .avm-public-page .avm-row,
  .avm-memorial-page .avm-row,
  .avm-wrap .avm-row,
  .avm-container .avm-row {
    flex-direction: column !important;
  }

  .avm-public-page button,
  .avm-memorial-page button,
  .avm-wrap button,
  .avm-container button {
    min-height: 44px;
    max-width: 100%;
  }

  .avm-public-page .avm-actions,
  .avm-memorial-page .avm-actions,
  .avm-wrap .avm-actions,
  .avm-container .avm-actions {
    flex-wrap: wrap;
  }

  .avm-public-page h1,
  .avm-memorial-page h1 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .avm-public-page h2,
  .avm-memorial-page h2 {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .avm-public-page .avm-card,
  .avm-memorial-page .avm-card {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .avm-public-page,
  .avm-memorial-page,
  .avm-wrap,
  .avm-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1200px) {
  .avm-public-page,
  .avm-memorial-page,
  .avm-wrap,
  .avm-container {
    max-width: 1180px;
  }
}


/* ===== Desktop typography ===== */
@media (min-width: 768px) {
  .avm-public-page,
  .avm-memorial-page,
  .avm-wrap,
  .avm-container {
    font-size: 18px;
  }

  .avm-public-page p,
  .avm-memorial-page p,
  .avm-wrap p,
  .avm-container p,
  .avm-public-page li,
  .avm-memorial-page li {
    font-size: 18px;
    line-height: 1.9;
  }

  .avm-public-page button,
  .avm-memorial-page button,
  .avm-wrap button,
  .avm-container button,
  .avm-public-page input,
  .avm-memorial-page input {
    font-size: 17px;
  }
}

@media (min-width: 1200px) {
  .avm-public-page,
  .avm-memorial-page,
  .avm-wrap,
  .avm-container {
    font-size: 19px;
  }

  .avm-public-page p,
  .avm-memorial-page p,
  .avm-wrap p,
  .avm-container p,
  .avm-public-page li,
  .avm-memorial-page li {
    font-size: 19px;
  }
}


/* ===== Audio cards responsive ===== */
.avm-audio-list { display: grid; gap: 14px; }
.avm-audio-card { width: 100%; }
.avm-audio-card audio { display: block; width: 100%; max-width: 100%; }
@media (min-width: 768px) {
  .avm-audio-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .avm-audio-card { padding: 12px; }
}

/* ===== Memorial photo framing ===== */
.avm-photo-wrap{overflow:hidden}
.avm-photo-wrap .avm-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
@media(max-width:767px){
  .avm-photo-wrap{width:100%;max-width:100%;aspect-ratio:4/5}
}
@media(min-width:768px){
  .avm-photo-wrap{width:min(420px,100%);aspect-ratio:4/5;margin-inline:auto}
}

/* ===== Memorial Search Page ===== */
.avm-search-page{max-width:980px;margin:40px auto;padding:0 18px;direction:rtl}
.avm-search-box{background:#fff;border-radius:18px;padding:28px;box-shadow:0 8px 30px rgba(0,0,0,.08)}
.avm-search-title{text-align:center;margin:0 0 10px}
.avm-search-desc{text-align:center;color:#666;margin:0 0 24px}
.avm-search-form{display:flex;gap:10px;max-width:700px;margin:0 auto 30px}
.avm-search-input{flex:1;min-width:0;border:1px solid #ddd;border-radius:12px;padding:14px 16px;font-size:17px}
.avm-search-submit{border:0;border-radius:12px;padding:14px 24px;cursor:pointer;font-weight:700}
.avm-search-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.avm-search-results{display:grid;grid-template-columns:1fr;gap:12px}
.avm-search-card{display:flex;align-items:center;gap:14px;min-height:92px;padding:10px 12px;text-decoration:none;border:1px solid #eee;border-radius:16px;overflow:hidden;background:#fff;transition:transform .2s,box-shadow .2s}
.avm-search-card:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.07)}
.avm-search-card img{display:block;width:76px;height:76px;flex:0 0 76px;object-fit:cover;border-radius:12px;background:#f2f2f2}
.avm-search-card-body{padding:4px 2px;min-width:0;flex:1}
.avm-search-card-title{margin:0 0 5px;font-size:19px;line-height:1.5;color:#222}
.avm-search-card-meta{color:#777;font-size:13px}
.avm-tax-page{max-width:980px;margin:40px auto;padding:0 18px;direction:rtl}
.avm-tax-box{background:#fff;border-radius:18px;padding:28px;box-shadow:0 8px 30px rgba(0,0,0,.08)}
.avm-tax-title{text-align:center;margin:0 0 24px}
.avm-tax-list{display:grid;grid-template-columns:1fr;gap:12px}
.avm-tax-card{display:flex;align-items:center;gap:14px;min-height:92px;padding:10px 12px;text-decoration:none;border:1px solid #eee;border-radius:16px;background:#fff;transition:transform .2s,box-shadow .2s}
.avm-tax-card:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.07)}
.avm-tax-card img{width:76px;height:76px;flex:0 0 76px;object-fit:cover;border-radius:12px;background:#f2f2f2}
.avm-tax-card-body{flex:1;min-width:0}
.avm-tax-card-title{margin:0 0 5px;font-size:19px;line-height:1.5;color:#222}
.avm-tax-card-meta{color:#777;font-size:13px}
.avm-tax-empty{text-align:center;padding:24px;border-radius:12px;background:#f8f8f8;color:#666}
.avm-search-empty{text-align:center;padding:24px;border-radius:12px;background:#f8f8f8}
@media(max-width:600px){.avm-search-form{flex-direction:column}.avm-search-submit{width:100%}}


/* ===== 0.4.11: Compact cards on memorial lists/taxonomies ===== */
.avm-tax-page,
.avm-search-page{
  direction:rtl;
}
.avm-tax-list,
.avm-search-results{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
}
.avm-tax-card,
.avm-search-card{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  width:100% !important;
  min-height:78px !important;
  height:auto !important;
  padding:8px 10px !important;
  margin:0 !important;
  box-sizing:border-box !important;
  gap:12px !important;
  overflow:hidden !important;
  text-decoration:none !important;
}
.avm-tax-card img,
.avm-search-card img{
  width:64px !important;
  height:64px !important;
  min-width:64px !important;
  max-width:64px !important;
  min-height:64px !important;
  max-height:64px !important;
  flex:0 0 64px !important;
  object-fit:contain !important;
  object-position:center !important;
  background:#f2f2f2 !important;
  border-radius:10px !important;
  display:block !important;
}
.avm-tax-card-body,
.avm-search-card-body{
  flex:1 1 auto !important;
  min-width:0 !important;
  padding:0 !important;
}
.avm-tax-card-title,
.avm-search-card-title{
  margin:0 !important;
  padding:0 !important;
  font-size:18px !important;
  line-height:1.5 !important;
  font-weight:600 !important;
}
.avm-tax-card-meta,
.avm-search-card-meta{
  margin-top:2px !important;
  font-size:12px !important;
  line-height:1.5 !important;
}
@media(max-width:600px){
  .avm-tax-page,
  .avm-search-page{
    max-width:100% !important;
    margin:20px auto !important;
    padding:0 12px !important;
  }
  .avm-tax-box,
  .avm-search-box{
    padding:16px !important;
    border-radius:14px !important;
  }
  .avm-tax-title,
  .avm-search-title{
    font-size:25px !important;
    line-height:1.5 !important;
    margin-bottom:16px !important;
  }
  .avm-tax-card,
  .avm-search-card{
    min-height:76px !important;
    padding:7px 9px !important;
    gap:10px !important;
  }
  .avm-tax-card img,
  .avm-search-card img{
    width:60px !important;
    height:60px !important;
    min-width:60px !important;
    max-width:60px !important;
    min-height:60px !important;
    max-height:60px !important;
    flex-basis:60px !important;
  }
  .avm-tax-card-title,
  .avm-search-card-title{
    font-size:17px !important;
  }
}

/* 0.4.13: hard override for memorial list thumbnails */
.avm-tax-card .avm-list-photo,.avm-search-card .avm-list-photo{
 width:64px!important;height:64px!important;max-width:64px!important;min-width:64px!important;max-height:64px!important;min-height:64px!important;
 object-fit:contain!important;object-position:center!important;display:block!important;flex:0 0 64px!important;
 border-radius:10px!important;background:#f2f2f2!important;margin:0!important;padding:0!important;
}
.avm-tax-card,.avm-search-card{display:flex!important;flex-direction:row!important;align-items:center!important;width:100%!important;height:auto!important;min-height:78px!important;box-sizing:border-box!important;}
@media(max-width:600px){.avm-tax-card .avm-list-photo,.avm-search-card .avm-list-photo{width:60px!important;height:60px!important;max-width:60px!important;min-width:60px!important;max-height:60px!important;min-height:60px!important;flex-basis:60px!important;}}


/* 0.4.14: real source image in compact lists; never crop the photo */
.avm-tax-card .avm-list-photo,
.avm-search-card .avm-list-photo {
  width:64px !important; height:64px !important;
  min-width:64px !important; max-width:64px !important;
  min-height:64px !important; max-height:64px !important;
  flex:0 0 64px !important;
  object-fit:contain !important; object-position:center !important;
  display:block !important; border-radius:10px !important;
  background:#f2f2f2 !important; margin:0 !important; padding:0 !important;
}
@media (max-width:600px){
  .avm-tax-card .avm-list-photo, .avm-search-card .avm-list-photo {
    width:60px !important; height:60px !important;
    min-width:60px !important; max-width:60px !important;
    min-height:60px !important; max-height:60px !important;
    flex-basis:60px !important;
  }
}


/* ===== 0.4.16: Escape the theme's narrow content column on desktop =====
   The individual memorial page is fine, but archive/search templates can be
   rendered inside a theme content column with a narrow max-width. These
   pages need a full-width outer canvas, while their inner box stays centered.
*/
@media (min-width: 768px) {
  .avm-search-page,
  .avm-tax-page {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
  }

  .avm-search-box,
  .avm-tax-box {
    width: min(1100px, 100%) !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .avm-search-results,
  .avm-tax-list {
    width: 100% !important;
  }
}


/* ===== Memorial Share — bottom of page ===== */
.avm-share-section{
  margin:32px auto 6px;
  padding-top:24px;
  border-top:1px solid #eee;
}
.avm-share-box{
  max-width:520px;
  margin:0 auto;
  padding:20px 18px;
  text-align:center;
  background:#fafafa;
  border:1px solid #e7e7e7;
  border-radius:16px;
}
.avm-share-title{
  display:block;
  font-size:18px;
  margin-bottom:6px;
}
.avm-share-desc{
  margin:0 0 14px;
  color:#777;
  font-size:13px;
}
.avm-share-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:9px 24px;
  border:0;
  border-radius:12px;
  background:#222;
  color:#fff;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}
.avm-share-button:hover{opacity:.9}
.avm-share-status{
  display:block;
  min-height:22px;
  margin-top:9px;
  color:#26743c;
  font-size:12px;
}
@media(max-width:600px){
  .avm-share-box{padding:18px 14px}
  .avm-share-button{width:100%}
}

/* ===== Direct share (WhatsApp/Telegram) ===== */
.avm-share-direct{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:12px;
}
.avm-share-whatsapp,
.avm-share-telegram{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 18px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  color:#fff;
}
.avm-share-whatsapp{background:#25d366}
.avm-share-telegram{background:#26a5e4}
.avm-share-whatsapp:hover,.avm-share-telegram:hover{opacity:.9}
.avm-share-note{
  margin:12px 0 0;
  font-size:11px;
  color:#999;
}

/* ===== Gallery ===== */
.avm-gallery-section{margin:26px 0}
.avm-gallery-section h2{font-size:17px;margin-bottom:10px}
.avm-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
  gap:8px;
}
.avm-gallery-item{
  display:block;
  border-radius:10px;
  overflow:hidden;
  aspect-ratio:1/1;
}
.avm-gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ===== Condolences ===== */
.avm-condolence-section{
  margin:32px auto 0;
  max-width:560px;
  padding-top:28px;
  border-top:1px solid #eee;
}
.avm-condolence-section h2{
  font-size:25px;
  line-height:1.7;
  font-weight:800;
  color:#20242b;
  margin:0 0 7px;
  text-align:center;
  letter-spacing:-.2px;
}
.avm-condolence-section > p{
  color:#777;
  font-size:14px;
  line-height:2;
  text-align:center;
  margin:0 auto 20px;
  max-width:520px;
}
.avm-condolence-form{
  display:flex;
  flex-direction:column;
  gap:12px;
  background:#fafafa;
  border:1px solid #e4e4e4;
  border-radius:20px;
  padding:18px;
  box-shadow:0 4px 18px rgba(0,0,0,.035);
}
.avm-condolence-name,
.avm-condolence-message{
  width:100%;
  box-sizing:border-box;
  border:1px solid #dcdcdc;
  border-radius:13px;
  background:#fff;
  color:#252525;
  font-family:inherit;
  font-size:15px;
  line-height:1.9;
  outline:none;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
.avm-condolence-name{
  min-height:54px;
  padding:12px 15px;
}
.avm-condolence-message{
  min-height:125px;
  padding:13px 15px;
  resize:vertical;
}
.avm-condolence-name::placeholder,
.avm-condolence-message::placeholder{color:#aaa;opacity:1}
.avm-condolence-name:focus,
.avm-condolence-message:focus{
  border-color:#28bd4f;
  box-shadow:0 0 0 3px rgba(40,189,79,.12);
  background:#fff;
}
.avm-condolence-submit{
  align-self:center;
  min-height:50px;
  min-width:150px;
  padding:9px 30px;
  border:0;
  border-radius:13px;
  background:#25c34b;
  color:#fff;
  font-family:inherit;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(37,195,75,.18);
  transition:transform .15s,opacity .15s,box-shadow .15s;
}
.avm-condolence-submit:hover{
  opacity:.94;
  box-shadow:0 7px 18px rgba(37,195,75,.23);
}
.avm-condolence-submit:active{transform:translateY(1px)}
.avm-condolence-submit:disabled{opacity:.65;cursor:default;box-shadow:none}
.avm-condolence-status{
  text-align:center;
  min-height:18px;
  font-size:12px;
  color:#26743c;
}
.avm-condolence-list{margin-top:20px;display:flex;flex-direction:column;gap:10px}
.avm-condolence-item{
  background:#fff;
  border:1px solid #eee;
  border-radius:14px;
  padding:14px 16px;
}
.avm-condolence-item strong{display:block;font-size:14px;color:#444;margin-bottom:2px}
.avm-condolence-date{display:block;font-size:11px;color:#999;margin-bottom:8px}
.avm-condolence-item p{margin:0;font-size:14px;line-height:1.9}
.avm-condolence-total{font-size:13px;color:#999;font-weight:400}
.avm-condolence-more{
  display:block;
  margin:14px auto 0;
  min-height:38px;
  padding:6px 22px;
  border:1px solid #ccc;
  border-radius:10px;
  background:#fff;
  color:#333;
  font-size:13px;
  cursor:pointer;
}
.avm-condolence-more:hover{background:#f5f5f5}
.avm-condolence-more:disabled{opacity:.6;cursor:default}
@media(max-width:600px){
  .avm-condolence-section{padding-top:24px}
  .avm-condolence-section h2{font-size:23px}
  .avm-condolence-section > p{font-size:13px;padding:0 5px;margin-bottom:16px}
  .avm-condolence-form{padding:15px;border-radius:18px;gap:10px}
  .avm-condolence-name{min-height:52px;font-size:14px}
  .avm-condolence-message{min-height:115px;font-size:14px}
  .avm-condolence-submit{width:150px;min-height:48px}
}

/* تثبیت چیدمان شمارنده صلوات در قالب‌های RTL */
.avm-salawat-card .avm-salawat-counter{direction:rtl;flex-direction:row;flex-wrap:nowrap}
.avm-salawat-card .avm-salawat-counter .avm-salawat-plus{order:1}
.avm-salawat-card .avm-salawat-counter .avm-salawat-amount{order:2}
.avm-salawat-card .avm-salawat-counter .avm-salawat-minus{order:3}

/* ===== AVM Homepage ===== */
.avm-home{max-width:1180px;margin:0 auto;padding:0 16px 60px;color:#20252a;font-family:inherit}
.avm-home-hero{margin:18px auto 22px;padding:34px 18px 30px;text-align:center;border-radius:28px;background:linear-gradient(145deg,#111416,#252a2c);color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.16)}
.avm-home-brand{font-weight:800;font-size:18px;color:#d9dee0}.avm-home-brand span{font-weight:500;color:#9da7aa}
.avm-home-symbol{font-size:44px;margin:16px 0 4px}.avm-home-hero h1{margin:0;font-size:32px;line-height:1.6}.avm-home-hero>p{margin:5px auto 22px;color:#c6ced0;max-width:650px;line-height:2}
.avm-home-search{display:flex;gap:9px;max-width:760px;margin:auto;background:#fff;padding:7px;border-radius:17px}.avm-home-search input{flex:1;border:0;outline:0;background:#fff;color:#222;padding:14px 16px;border-radius:12px;font:inherit;min-width:0}.avm-home-search button{border:0;border-radius:12px;padding:12px 20px;background:#6fa47b;color:#fff;font:inherit;font-weight:700;cursor:pointer}.avm-home-create{display:inline-block;margin-top:14px;color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.25);border-radius:13px;padding:10px 18px}.avm-home-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 auto 34px}.avm-home-stats>div{background:#fff;border:1px solid #e8ebec;border-radius:18px;padding:18px 10px;text-align:center;box-shadow:0 7px 25px rgba(0,0,0,.05)}.avm-home-stats strong{display:block;font-size:25px;color:#5c8e68}.avm-home-stats span{display:block;margin-top:4px;color:#70777a;font-size:13px}
.avm-home-section{margin:34px 0}.avm-home-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:16px}.avm-home-section-head h2{margin:0;font-size:24px}.avm-home-section-head p{margin:3px 0 0;color:#777;font-size:13px}.avm-home-section-head>a{color:#5c8e68;text-decoration:none;font-weight:700;white-space:nowrap}.avm-home-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.avm-home-memorial-card{display:flex;align-items:center;gap:13px;padding:12px;background:#fff;border:1px solid #e8ebec;border-radius:18px;text-decoration:none;color:inherit;box-shadow:0 7px 25px rgba(0,0,0,.05);transition:.18s}.avm-home-memorial-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,0,0,.08)}.avm-home-card-photo{width:72px;height:82px;flex:0 0 72px;border-radius:13px;overflow:hidden;background:#f1f3f3;display:flex;align-items:center;justify-content:center;font-size:26px}.avm-home-card-photo img{width:100%;height:100%;object-fit:cover}.avm-home-card-body{min-width:0}.avm-home-card-body h3{margin:0;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.avm-home-card-body p{margin:3px 0;color:#777;font-size:12px}.avm-home-card-body>div{display:flex;gap:10px;color:#63836b;font-size:11px}.avm-home-popular{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.avm-home-memorial-card.is-compact{padding:10px}.avm-home-memorial-card.is-compact .avm-home-card-photo{width:58px;height:64px;flex-basis:58px}.avm-home-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.avm-home-actions a{background:#fff;border:1px solid #e7eaea;border-radius:18px;padding:22px 12px;text-align:center;text-decoration:none;color:inherit;box-shadow:0 7px 25px rgba(0,0,0,.05)}.avm-home-actions span{display:block;font-size:34px}.avm-home-actions b{display:block;margin-top:7px;font-size:17px}.avm-home-actions small{display:block;color:#777;margin-top:3px}.avm-home-quran{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px;border-radius:22px;background:#edf5ef;border:1px solid #d8e8dc}.avm-home-quran h2{margin:0;font-size:23px}.avm-home-quran p{margin:6px 0 0;color:#66736a;line-height:1.9}.avm-home-quran a{background:#5c8e68;color:#fff;text-decoration:none;border-radius:13px;padding:11px 17px;white-space:nowrap}.avm-home-cta{margin:34px 0;padding:28px;border-radius:22px;background:#171a1b;color:#fff;text-align:center}.avm-home-cta span{font-size:36px}.avm-home-cta h2{margin:4px 0;font-size:25px}.avm-home-cta p{margin:5px auto;color:#c2c8c9;line-height:2}.avm-home-cta-note{font-size:12px!important;color:#9fa7a9!important}.avm-home-services{margin:34px 0}.avm-home-services h2{text-align:center;font-size:24px}.avm-home-services>div{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.avm-home-services article,.avm-home-about,.avm-home-faq{background:#fff;border:1px solid #e8ebec;border-radius:18px;padding:20px;box-shadow:0 7px 25px rgba(0,0,0,.04)}.avm-home-services b{font-size:17px}.avm-home-services p,.avm-home-about p{color:#70777a;line-height:2;margin-bottom:0}.avm-home-about{text-align:center;margin:34px 0}.avm-home-about h2{margin-top:0}.avm-home-faq h2{margin-top:0}.avm-home-faq details{border-top:1px solid #eee;padding:14px 0}.avm-home-faq summary{cursor:pointer;font-weight:700}.avm-home-faq details p{color:#70777a;line-height:2;margin:8px 0 0}.avm-home-empty{padding:30px;text-align:center;background:#fff;border:1px dashed #ccd2d3;border-radius:18px;color:#777}
@media(max-width:767px){.avm-home{padding:0 10px 40px}.avm-home-hero{padding:27px 13px 24px;border-radius:22px}.avm-home-hero h1{font-size:25px}.avm-home-search{display:block;padding:6px}.avm-home-search input{width:100%;padding:12px}.avm-home-search button{width:100%;margin-top:6px}.avm-home-stats{grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:27px}.avm-home-stats>div{padding:14px 7px}.avm-home-stats strong{font-size:21px}.avm-home-section{margin:27px 0}.avm-home-section-head h2{font-size:20px}.avm-home-cards,.avm-home-popular{grid-template-columns:1fr}.avm-home-actions{grid-template-columns:repeat(2,1fr);gap:10px}.avm-home-actions a{padding:17px 8px}.avm-home-actions span{font-size:30px}.avm-home-quran{display:block;padding:20px}.avm-home-quran a{display:block;text-align:center;margin-top:15px}.avm-home-services>div{grid-template-columns:1fr}.avm-home-cta{padding:24px 15px}.avm-home-cta h2{font-size:21px}}

/* ===== 0.4.36: Memorial home visual refresh ===== */
.avm-home{
  max-width:none;
  width:100%;
  margin:0;
  padding:0 18px 95px;
  color:#f4f4f4;
  background:#1d1d1d;
  font-family:inherit;
}
.avm-home > *{max-width:1120px;margin-left:auto;margin-right:auto}
.avm-home-hero{
  margin-top:0!important;
  padding:34px 18px 30px;
  border-radius:0 0 28px 28px;
  background:linear-gradient(145deg,#202020,#292929);
  border:1px solid #333;
  box-shadow:0 12px 34px rgba(0,0,0,.22);
}
.avm-home-brand{color:#fff}.avm-home-brand span{color:#a8a8a8}
.avm-home-hero h1{color:#fff}.avm-home-hero>p{color:#c8c8c8}
.avm-home-search{background:#303030;border:1px solid #414141}
.avm-home-search input{background:#303030;color:#fff}.avm-home-search input::placeholder{color:#999}
.avm-home-search button,.avm-home-create{background:#25b34a;border-color:#25b34a}
.avm-home-create{font-weight:700}
.avm-home-stats{margin-top:18px}
.avm-home-stats>div,.avm-home-memorial-card,.avm-home-actions a,.avm-home-services article,.avm-home-about,.avm-home-faq,.avm-home-empty{
  background:#2a2a2a;border-color:#3a3a3a;color:#f2f2f2;box-shadow:0 6px 22px rgba(0,0,0,.16)
}
.avm-home-stats strong{color:#27bd50}.avm-home-stats span,.avm-home-card-body p,.avm-home-section-head p,.avm-home-actions small,.avm-home-services p,.avm-home-about p,.avm-home-faq details p{color:#aaa}
.avm-home-section-head h2,.avm-home-services h2,.avm-home-about h2,.avm-home-faq h2{color:#fff}
.avm-home-section-head>a{color:#2cc052}
.avm-home-card-photo{background:#333}.avm-home-card-body>div{color:#29b84e}
.avm-home-actions a:hover,.avm-home-memorial-card:hover{border-color:#2dbd52}
.avm-home-quran{background:#25372a;border-color:#35543d}.avm-home-quran h2{color:#fff}.avm-home-quran p{color:#b9c5bc}.avm-home-quran a{background:#25b34a}
.avm-home-cta{background:linear-gradient(145deg,#202020,#2a2a2a);border:1px solid #3a3a3a}
.avm-home-services article{min-height:120px}
.avm-home-faq details{border-color:#3c3c3c}
.avm-home-faq summary{color:#fff}
.avm-home-bottom-nav{position:fixed;z-index:9999;bottom:0;right:0;left:0;height:70px;background:#202020;border-top:1px solid #383838;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;box-shadow:0 -8px 25px rgba(0,0,0,.28)}
.avm-home-bottom-nav a{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;color:#ddd;font-size:11px}
.avm-home-bottom-nav a span{font-size:22px;line-height:1;color:#ddd}.avm-home-bottom-nav a b{font-weight:600}
.avm-home-bottom-nav a.is-active,.avm-home-bottom-nav a.is-active span,.avm-home-bottom-create,.avm-home-bottom-create span{color:#28bd50!important}
.avm-home-bottom-create span{width:38px;height:38px;border:2px solid #28bd50;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:26px}
@media(max-width:767px){
 .avm-home{padding:0 10px 86px}
 .avm-home-hero{border-radius:0 0 22px 22px;padding:26px 12px 22px}
 .avm-home-symbol{font-size:38px}.avm-home-hero h1{font-size:25px}
 .avm-home-section{margin:25px 0}.avm-home-section-head{align-items:center}
 .avm-home-section-head h2{font-size:19px}.avm-home-card-photo{width:70px;height:78px;flex-basis:70px}
 .avm-home-actions a{padding:16px 8px}.avm-home-stats strong{font-size:20px}
}


/* ===== 0.4.37 Home polish: closer to the requested memorial portal ===== */
body.avm-home-page{
  background:#1f1f1f !important;
}
body.avm-home-page .entry-title,
body.avm-home-page .page-header,
body.avm-home-page .entry-header,
body.avm-home-page .breadcrumb,
body.avm-home-page .breadcrumbs{
  display:none !important;
}
body.avm-home-page .site-content,
body.avm-home-page .content-area,
body.avm-home-page .site-main{
  background:#1f1f1f !important;
}
body.avm-home-page .avm-home{
  max-width:920px;
  padding:0 12px 92px;
  color:#f4f4f4;
}
body.avm-home-page .avm-home-hero{
  margin:0 auto 16px;
  border-radius:0 0 24px 24px;
  padding:30px 16px 24px;
  border:1px solid #353535;
  background:linear-gradient(160deg,#202020 0%,#292929 100%);
  box-shadow:0 12px 35px rgba(0,0,0,.25);
}
body.avm-home-page .avm-home-brand{font-size:18px}
body.avm-home-page .avm-home-symbol{font-size:42px;margin:12px 0 2px}
body.avm-home-page .avm-home-hero h1{font-size:29px;line-height:1.55}
body.avm-home-page .avm-home-hero>p{font-size:14px;max-width:650px}
body.avm-home-page .avm-home-search{max-width:680px;background:#303030;border:1px solid #454545;padding:7px;border-radius:16px}
body.avm-home-page .avm-home-search input{background:#303030;color:#fff;text-align:right}
body.avm-home-page .avm-home-search button{background:#28b94c;color:#fff;border-radius:11px}
body.avm-home-page .avm-home-create{background:#28b94c;border-color:#28b94c;padding:11px 20px;border-radius:13px}
body.avm-home-page .avm-home-stats{gap:10px;margin:0 auto 28px}
body.avm-home-page .avm-home-stats>div{
  position:relative;background:#2c2c2c;border:1px solid #3a3a3a;color:#fff;box-shadow:none;padding:17px 8px;border-radius:15px;
}
body.avm-home-page .avm-home-stats>div:before{display:block;font-size:25px;line-height:1;margin-bottom:7px}
body.avm-home-page .avm-home-stats>div:nth-child(1):before{content:'🕊️'}
body.avm-home-page .avm-home-stats>div:nth-child(2):before{content:'🤲'}
body.avm-home-page .avm-home-stats>div:nth-child(3):before{content:'📿'}
body.avm-home-page .avm-home-stats>div:nth-child(4):before{content:'📖'}
body.avm-home-page .avm-home-stats strong{font-size:22px;color:#2ac24f}
body.avm-home-page .avm-home-stats span{color:#ddd;font-size:13px}
body.avm-home-page .avm-home-section{margin:28px 0}
body.avm-home-page .avm-home-section-head h2{font-size:21px}
body.avm-home-page .avm-home-section-head p{color:#999}
body.avm-home-page .avm-home-section-head>a{color:#2ac24f}
body.avm-home-page .avm-home-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.avm-home-page .avm-home-memorial-card{
  background:#2b2b2b;border-color:#3a3a3a;color:#fff;box-shadow:0 5px 16px rgba(0,0,0,.18);border-radius:15px;
}
body.avm-home-page .avm-home-card-photo{background:#333;border-radius:10px;width:78px;height:88px;flex-basis:78px}
body.avm-home-page .avm-home-card-body h3{color:#fff;font-size:16px}
body.avm-home-page .avm-home-card-body p{color:#aaa}
body.avm-home-page .avm-home-card-body>div{color:#2ac24f}
body.avm-home-page .avm-home-actions{gap:10px}
body.avm-home-page .avm-home-actions a{background:#2b2b2b;border-color:#3a3a3a;color:#fff;box-shadow:none}
body.avm-home-page .avm-home-actions small{color:#aaa}
body.avm-home-page .avm-home-quran{background:#293c2d;border-color:#3c5c43}
body.avm-home-page .avm-home-cta{border:1px solid #3b3b3b}
body.avm-home-page .avm-home-services article,
body.avm-home-page .avm-home-about,
body.avm-home-page .avm-home-faq,
body.avm-home-page .avm-home-empty{background:#2b2b2b;border-color:#3a3a3a;box-shadow:none;color:#fff}
body.avm-home-page .avm-home-services p,
body.avm-home-page .avm-home-about p,
body.avm-home-page .avm-home-faq details p{color:#aaa}
body.avm-home-page .avm-home-faq details{border-color:#3b3b3b}
body.avm-home-page .avm-home-bottom-nav{height:72px;background:#202020;border-top:1px solid #3a3a3a}
@media(max-width:767px){
  body.avm-home-page .avm-home{padding-left:10px;padding-right:10px}
  body.avm-home-page .avm-home-hero h1{font-size:25px}
  body.avm-home-page .avm-home-cards{grid-template-columns:1fr}
  body.avm-home-page .avm-home-stats>div{padding:14px 6px}
}

/* ===== 0.4.38 Mobile header + first-screen refinement ===== */
body.avm-home-page .site-header,
body.avm-home-page .ast-primary-header-bar,
body.avm-home-page .ast-primary-header,
body.avm-home-page .site-primary-header-wrap,
body.avm-home-page .ast-main-header-wrap,
body.avm-home-page .main-header-bar-wrap,
body.avm-home-page .main-header-bar{
  background:#202020 !important;
  border-color:#343434 !important;
}
body.avm-home-page .site-header{box-shadow:0 3px 14px rgba(0,0,0,.25) !important}
body.avm-home-page .site-header .main-header-menu > .menu-item > a,
body.avm-home-page .site-header .ast-header-search,
body.avm-home-page .site-header .ast-header-social-1-wrap,
body.avm-home-page .site-header .ast-header-html-1,
body.avm-home-page .site-header .ast-builder-menu-mobile .main-header-menu .menu-item > a{
  color:#fff !important;
}
body.avm-home-page .site-header .custom-logo-link img,
body.avm-home-page .site-header .site-logo-img img{max-height:62px !important;width:auto !important}
body.avm-home-page .site-header .menu-toggle,
body.avm-home-page .site-header .ast-mobile-menu-trigger-minimal,
body.avm-home-page .site-header .ast-mobile-menu-trigger-fill{
  color:#fff !important;
  background:transparent !important;
  border-color:transparent !important;
}
@media(max-width:767px){
  body.avm-home-page .site-header .ast-builder-grid-row-container.ast-builder-grid-row-mobile-full{
    min-height:68px !important;
  }
  body.avm-home-page .site-header .ast-builder-grid-row{
    min-height:68px !important;
  }
  body.avm-home-page .site-header .custom-logo-link img,
  body.avm-home-page .site-header .site-logo-img img{max-height:54px !important}
  body.avm-home-page .site-header{min-height:68px !important}
  body.avm-home-page .avm-home{padding-top:0 !important;padding-bottom:84px !important}
  body.avm-home-page .avm-home-hero{
    margin:0 0 12px !important;
    border-radius:0 0 20px 20px !important;
    padding:20px 12px 18px !important;
  }
  body.avm-home-page .avm-home-brand{font-size:16px !important}
  body.avm-home-page .avm-home-symbol{font-size:34px !important;margin:8px 0 0 !important}
  body.avm-home-page .avm-home-hero h1{font-size:23px !important;line-height:1.55 !important;margin:8px 0 5px !important}
  body.avm-home-page .avm-home-hero>p{font-size:13px !important;line-height:1.9 !important;margin:0 auto 12px !important}
  body.avm-home-page .avm-home-search{padding:5px !important;border-radius:14px !important}
  body.avm-home-page .avm-home-search input{height:45px !important;font-size:13px !important}
  body.avm-home-page .avm-home-search button{height:45px !important;font-size:14px !important}
  body.avm-home-page .avm-home-create{padding:10px 17px !important;font-size:14px !important;margin-top:10px !important}
  body.avm-home-page .avm-home-stats{margin:0 0 20px !important;gap:7px !important}
  body.avm-home-page .avm-home-stats>div{padding:11px 4px !important;border-radius:12px !important}
  body.avm-home-page .avm-home-stats>div:before{font-size:20px !important;margin-bottom:5px !important}
  body.avm-home-page .avm-home-stats strong{font-size:18px !important}
  body.avm-home-page .avm-home-stats span{font-size:11px !important}
}


/* ===== 0.4.39 final mobile polish ===== */
body.avm-home-page .avm-home-create,
body.avm-home-page .avm-home-create:visited,
body.avm-home-page .avm-home-create:hover,
body.avm-home-page .avm-home-create:focus{color:#fff !important;text-decoration:none !important}
body.avm-home-page .avm-home-card-body h3{color:#fff !important}
body.avm-home-page .avm-home-card-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#2ac24f;font-weight:700;margin-top:8px}
body.avm-home-page .avm-home-card-enter{display:block;margin-top:10px;background:#20b94b;color:#fff !important;text-align:center;padding:9px 12px;border-radius:10px;font-weight:700;font-size:13px}
body.avm-home-page .avm-home-card-photo{overflow:hidden}
body.avm-home-page .avm-home-card-photo img{width:100%;height:170px;object-fit:cover;display:block}
@media(max-width:767px){
 body.avm-home-page .avm-home-card-photo img{height:145px}
 body.avm-home-page .avm-home-card-body{padding:12px !important}
 body.avm-home-page .avm-home-card-body h3{font-size:16px !important}
 body.avm-home-page .avm-home-card-enter{font-size:12px;padding:8px}
 body.avm-home-page .avm-home-bottom-nav{padding-bottom:env(safe-area-inset-bottom,0);height:72px !important}
 body.avm-home-page .avm-home{padding-bottom:95px !important}
}

/* QR / کد اختصاصی یادبود */
.avm-qr-section{margin:28px 0;}
.avm-qr-card{max-width:520px;margin:0 auto;padding:24px 18px;text-align:center;border:1px solid rgba(128,128,128,.28);border-radius:20px;background:rgba(255,255,255,.04);box-shadow:0 8px 28px rgba(0,0,0,.10);}
.avm-qr-heading{font-size:24px;font-weight:800;margin-bottom:14px;}
.avm-qr-code-badge{display:inline-flex;align-items:center;gap:10px;padding:8px 18px;margin-bottom:10px;border-radius:999px;background:#1fae49;color:#fff;}
.avm-qr-code-badge span{font-size:15px;}
.avm-qr-code-badge strong{font-size:22px;line-height:1;}
.avm-qr-help{margin:8px 0 16px;opacity:.82;}
.avm-qr-image-link{display:inline-block;padding:10px;border-radius:16px;background:#fff;line-height:0;}
.avm-qr-image-link img{display:block;width:230px;height:230px;max-width:100%;object-fit:contain;}
.avm-qr-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:14px;}
.avm-qr-actions a{display:inline-block;padding:10px 18px;border-radius:10px;text-decoration:none;font-weight:700;}
.avm-qr-open{background:#eee;color:#222;}
.avm-qr-download{background:#1fae49;color:#fff;} .avm-qr-print-download{background:#222;color:#fff;}
.avm-qr-print-download:hover{opacity:.9;}
.avm-qr-short-link{margin-top:16px;font-size:13px;word-break:break-all;opacity:.85;}
.avm-qr-short-link span{display:block;margin-bottom:4px;font-weight:700;}
.avm-qr-short-link a{color:#1fae49;}
@media(max-width:600px){.avm-qr-card{padding:20px 12px}.avm-qr-heading{font-size:21px}.avm-qr-image-link img{width:210px;height:210px}.avm-qr-actions a{padding:9px 15px}}

/* ===== Condolence form final button override ===== */
.avm-condolence-form .avm-condolence-submit,
.avm-condolence-section .avm-condolence-submit {
  background:#25b94b !important;
  background-color:#25b94b !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 5px 14px rgba(37,185,75,.20) !important;
}
.avm-condolence-form .avm-condolence-submit:hover,
.avm-condolence-section .avm-condolence-submit:hover {
  background:#20aa43 !important;
  background-color:#20aa43 !important;
  color:#fff !important;
}

/* ===== 0.4.44: Sticky memorial footer on individual memorial pages ===== */
body.single-avm_memorial .avm-memorial-bottom-nav{
  display:grid;
}
body.single-avm_memorial .avm-public-wrap,
body.single-avm_memorial .avm-memorial-page{
  padding-bottom:96px;
}


/* ===== Memorial pages: match the dark Avaye Noghre memorial home theme ===== */
body.single-avm_memorial {
  background: #111111 !important;
  color: #f3f3f3;
}
body.single-avm_memorial #page,
body.single-avm_memorial .site,
body.single-avm_memorial .site-content,
body.single-avm_memorial .content-area,
body.single-avm_memorial main {
  background: #111111 !important;
}
body.single-avm_memorial .avm-public-wrap,
body.single-avm_memorial .avm-memorial-page {
  background: transparent !important;
  color: #f3f3f3;
}
body.single-avm_memorial .avm-card,
body.single-avm_memorial .avm-box,
body.single-avm_memorial .avm-section,
body.single-avm_memorial .avm-memorial-card {
  background: #1b1b1b;
  color: #f3f3f3;
}
body.single-avm_memorial h1,
body.single-avm_memorial h2,
body.single-avm_memorial h3,
body.single-avm_memorial h4,
body.single-avm_memorial h5,
body.single-avm_memorial h6 {
  color: #ffffff;
}
body.single-avm_memorial p,
body.single-avm_memorial li,
body.single-avm_memorial label,
body.single-avm_memorial .description,
body.single-avm_memorial .meta {
  color: #d8d8d8;
}
body.single-avm_memorial input,
body.single-avm_memorial textarea,
body.single-avm_memorial select {
  background: #202020;
  color: #ffffff;
  border-color: #444444;
}
body.single-avm_memorial .avm-home-bottom-nav {
  background: #000000;
}


/* ===== Memorial dark theme v2: unify remaining light cards/sections ===== */
html:has(body.single-avm_memorial),
body.single-avm_memorial,
body.single-avm_memorial .site,
body.single-avm_memorial #page,
body.single-avm_memorial .site-main,
body.single-avm_memorial .site-content,
body.single-avm_memorial .content-area,
body.single-avm_memorial main {
  background:#111 !important;
}

body.single-avm_memorial .avm-share-section {
  border-top-color:#444 !important;
}
body.single-avm_memorial .avm-share-box {
  background:#1b1b1b !important;
  border-color:#3a3a3a !important;
  color:#f3f3f3 !important;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
body.single-avm_memorial .avm-share-title {
  color:#fff !important;
}
body.single-avm_memorial .avm-share-desc,
body.single-avm_memorial .avm-share-note {
  color:#cfcfcf !important;
}
body.single-avm_memorial .avm-share-button {
  background:#222 !important;
  color:#fff !important;
}
body.single-avm_memorial .avm-share-status {
  color:#55d477 !important;
}

body.single-avm_memorial .avm-condolence-form {
  background:#1b1b1b !important;
  border-color:#3a3a3a !important;
  box-shadow:0 8px 24px rgba(0,0,0,.18) !important;
}
body.single-avm_memorial .avm-condolence-name,
body.single-avm_memorial .avm-condolence-message {
  background:#202020 !important;
  color:#fff !important;
  border-color:#444 !important;
}
body.single-avm_memorial .avm-condolence-name::placeholder,
body.single-avm_memorial .avm-condolence-message::placeholder {
  color:#aaa !important;
}
body.single-avm_memorial .avm-condolence-item {
  background:#1b1b1b !important;
  border-color:#3a3a3a !important;
  color:#eee !important;
}
body.single-avm_memorial .avm-condolence-item strong {
  color:#fff !important;
}
body.single-avm_memorial .avm-condolence-date,
body.single-avm_memorial .avm-condolence-total {
  color:#aaa !important;
}
body.single-avm_memorial .avm-condolence-more {
  background:#222 !important;
  border-color:#444 !important;
  color:#fff !important;
}

body.single-avm_memorial .avm-qr-section,
body.single-avm_memorial .avm-gallery-section {
  color:#f3f3f3 !important;
}
body.single-avm_memorial .avm-qr-card {
  background:#1b1b1b !important;
  border-color:#3a3a3a !important;
  color:#f3f3f3 !important;
}
body.single-avm_memorial .avm-qr-heading,
body.single-avm_memorial .avm-qr-help {
  color:#f3f3f3 !important;
}
body.single-avm_memorial .avm-qr-short-link {
  color:#ccc !important;
}
body.single-avm_memorial .avm-qr-open {
  background:#eee !important;
  color:#222 !important;
}

/* Remove the light outer gutter on the memorial page. */
body.single-avm_memorial .site-content {
  padding-left:0 !important;
  padding-right:0 !important;
}


/* ===== Memorial dark theme v3: remove white outer gutters ===== */
html body.single-avm_memorial,
body.single-avm_memorial #page,
body.single-avm_memorial .site,
body.single-avm_memorial .site-content,
body.single-avm_memorial .site-main,
body.single-avm_memorial .content-area,
body.single-avm_memorial main,
body.single-avm_memorial article,
body.single-avm_memorial .ast-article-single,
body.single-avm_memorial .ast-container,
body.single-avm_memorial .ast-row {
  background:#111111 !important;
}

body.single-avm_memorial .site-content .ast-container,
body.single-avm_memorial .site-main .ast-container,
body.single-avm_memorial .content-area .ast-container {
  max-width:none !important;
  width:100% !important;
  padding-left:0 !important;
  padding-right:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

body.single-avm_memorial .ast-article-single,
body.single-avm_memorial article.avm_memorial {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  border:0 !important;
}

body.single-avm_memorial .avm-page {
  width:100% !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  background:#111111 !important;
}


/* ===== V4: match /yadbood dark framed page on individual memorials ===== */
body.single-avm_memorial {
  background:#111 !important;
  color:#f5f5f5 !important;
}

/* Black outer canvas / side gutters */
body.single-avm_memorial .site-content,
body.single-avm_memorial .site-main,
body.single-avm_memorial .content-area,
body.single-avm_memorial main,
body.single-avm_memorial article {
  background:#111 !important;
}

/* Centered dark memorial sheet */
body.single-avm_memorial .avm-page {
  width:calc(100% - 28px) !important;
  max-width:640px !important;
  margin:14px auto 110px !important;
  padding:0 !important;
  background:#1b1b1b !important;
  color:#f5f5f5 !important;
  border:1px solid #333 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:hidden !important;
}

/* Main memorial card */
body.single-avm_memorial .avm-card {
  width:100% !important;
  margin:0 !important;
  padding:24px 14px !important;
  background:#1b1b1b !important;
  color:#f5f5f5 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

/* Dark action cards: the old white !important rules must be overridden */
body.single-avm_memorial button.avm-action-card,
body.single-avm_memorial .avm-salawat-card {
  background:linear-gradient(180deg,#292929,#222) !important;
  color:#fff !important;
  border:1px solid #414141 !important;
  box-shadow:0 5px 16px rgba(0,0,0,.22) !important;
}
body.single-avm_memorial .avm-action-card strong,
body.single-avm_memorial .avm-action-count,
body.single-avm_memorial .avm-action-icon {
  color:#fff !important;
}
body.single-avm_memorial .avm-action-count {
  background:#333 !important;
  color:#ddd !important;
}
body.single-avm_memorial .avm-action-done {
  background:#202b23 !important;
  border-color:#2fbf5b !important;
}
body.single-avm_memorial .avm-action-done .avm-action-count {
  background:#203a28 !important;
  color:#62db83 !important;
}

/* Audio cards */
body.single-avm_memorial .avm-audio-section {
  border-top-color:#444 !important;
}
body.single-avm_memorial .avm-audio-section h2,
body.single-avm_memorial .avm-audio-section > p {
  color:#fff !important;
}
body.single-avm_memorial .avm-audio-section > p {
  color:#bbb !important;
}
body.single-avm_memorial .avm-audio-card {
  background:#292929 !important;
  color:#fff !important;
  border:1px solid #444 !important;
  border-radius:16px !important;
}
body.single-avm_memorial .avm-audio-card strong {
  color:#fff !important;
}

/* Salawat controls */
body.single-avm_memorial .avm-salawat-counter button {
  background:#252525 !important;
  color:#fff !important;
  border-color:#555 !important;
}
body.single-avm_memorial .avm-salawat-amount {
  color:#fff !important;
}
body.single-avm_memorial .avm-salawat-submit {
  background:#203a28 !important;
  color:#62db83 !important;
}

/* Separators and typography */
body.single-avm_memorial .avm-spiritual,
body.single-avm_memorial .avm-share-section {
  border-top-color:#444 !important;
}
body.single-avm_memorial .avm-spiritual h2,
body.single-avm_memorial .avm-share-title,
body.single-avm_memorial .avm-qr-heading {
  color:#fff !important;
}
body.single-avm_memorial .avm-spiritual p {
  color:#bbb !important;
}

/* QR */
body.single-avm_memorial .avm-qr-card {
  background:#292929 !important;
  color:#fff !important;
  border-color:#444 !important;
}
body.single-avm_memorial .avm-qr-image-link {
  background:#fff !important;
}

/* Share */
body.single-avm_memorial .avm-share-box {
  background:#292929 !important;
  color:#fff !important;
  border:1px solid #444 !important;
}
body.single-avm_memorial .avm-share-desc,
body.single-avm_memorial .avm-share-note {
  color:#bbb !important;
}
body.single-avm_memorial .avm-share-button {
  background:#222 !important;
  color:#fff !important;
}

/* Condolence */
body.single-avm_memorial .avm-condolence-form,
body.single-avm_memorial .avm-condolence-item {
  background:#292929 !important;
  color:#fff !important;
  border-color:#444 !important;
}
body.single-avm_memorial .avm-condolence-name,
body.single-avm_memorial .avm-condolence-message {
  background:#202020 !important;
  color:#fff !important;
  border-color:#4a4a4a !important;
}
body.single-avm_memorial .avm-condolence-item strong {
  color:#fff !important;
}
body.single-avm_memorial .avm-condolence-date,
body.single-avm_memorial .avm-condolence-total {
  color:#aaa !important;
}

/* Keep bottom nav full width and above the black canvas */
body.single-avm_memorial .avm-home-bottom-nav {
  left:0 !important;
  right:0 !important;
  width:100% !important;
  background:#050505 !important;
  z-index:99999 !important;
}

@media(max-width:700px){
  body.single-avm_memorial .avm-page {
    width:calc(100% - 28px) !important;
    max-width:640px !important;
    margin-top:10px !important;
  }
  body.single-avm_memorial .avm-card {
    padding:20px 12px !important;
  }
}


/* ===== Public Create Memorial Page ===== */
.avm-create-page-wrap{
  min-height:70vh;
  background:#111;
  color:#f5f5f5;
  padding:18px 14px 110px;
}
.avm-create-card{
  width:100%;
  max-width:640px;
  margin:0 auto;
  background:#1b1b1b;
  border:1px solid #343434;
  border-radius:24px;
  box-shadow:0 12px 32px rgba(0,0,0,.22);
  padding:22px 16px 26px;
}
.avm-create-head{
  display:flex;
  align-items:center;
  gap:14px;
  padding:4px 4px 22px;
  border-bottom:1px solid #3a3a3a;
}
.avm-create-icon{
  width:58px;height:58px;border-radius:18px;
  display:flex;align-items:center;justify-content:center;
  background:#242424;font-size:31px;flex:0 0 auto;
}
.avm-create-kicker{color:#9b9b9b;font-size:13px;margin-bottom:4px}
.avm-create-head h1{margin:0;color:#fff;font-size:27px;line-height:1.45}
.avm-create-head p{margin:5px 0 0;color:#bdbdbd;line-height:1.9;font-size:14px}
.avm-create-form{padding-top:20px}
.avm-create-section-title{
  color:#fff;font-weight:800;font-size:18px;margin:10px 0 14px;
  padding-right:10px;border-right:3px solid #27c957;
}
.avm-create-field{display:block;margin:0 0 15px}
.avm-create-field>span{
  display:block;color:#eee;font-weight:700;font-size:14px;margin-bottom:7px
}
.avm-create-field em{color:#35cf61;font-style:normal}
.avm-create-field input,
.avm-create-field textarea{
  width:100%;box-sizing:border-box;background:#242424!important;
  color:#fff!important;border:1px solid #474747!important;
  border-radius:14px;padding:13px 14px;font-family:inherit;font-size:15px;
  outline:none;
}
.avm-create-field input:focus,
.avm-create-field textarea:focus{
  border-color:#2bc85a!important;box-shadow:0 0 0 2px rgba(43,200,90,.12)
}
.avm-create-field textarea{resize:vertical;min-height:120px;line-height:1.9}
.avm-create-field input[type=file]{padding:10px}
.avm-create-field small{display:block;color:#929292;font-size:11px;margin-top:5px}
.avm-create-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.avm-create-check{
  display:flex;gap:10px;align-items:flex-start;
  background:#202020;border:1px solid #383838;border-radius:14px;
  padding:13px;margin:5px 0 16px;color:#cfcfcf;font-size:13px;line-height:1.8
}
.avm-create-check input{accent-color:#28c957;margin-top:4px}
.avm-create-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.avm-create-status{
  min-height:24px;text-align:center;color:#aaa;font-size:13px;margin:6px 0 10px
}
.avm-create-status.is-success{color:#5fe281}
.avm-create-status.is-error{color:#ff7d7d}
.avm-create-submit{
  width:100%;border:0;border-radius:16px;padding:15px 18px;
  background:#28c957;color:#fff;font-family:inherit;font-weight:800;font-size:17px;
  cursor:pointer;box-shadow:0 8px 18px rgba(40,201,87,.18)
}
.avm-create-submit:disabled{opacity:.7;cursor:wait}
.avm-create-submit.is-loading{position:relative}
.avm-create-back{
  display:block;text-align:center;color:#aaa;text-decoration:none;margin-top:15px;font-size:13px
}
.avm-create-back:hover{color:#fff}
body.avm-create-page .site-content,
body.avm-create-page .site-main,
body.avm-create-page .content-area,
body.avm-create-page main{
  background:#111!important;
}
@media(max-width:520px){
  .avm-create-page-wrap{padding:10px 10px 100px}
  .avm-create-card{border-radius:20px;padding:18px 13px 22px}
  .avm-create-head h1{font-size:23px}
  .avm-create-two{grid-template-columns:1fr}
}

/* ===== Step 7: dedicated create-memorial page ===== */
html:has(body.avm-create-page),
body.avm-create-page,
body.avm-create-page #page,
body.avm-create-page .site,
body.avm-create-page .site-content,
body.avm-create-page .site-main,
body.avm-create-page .content-area,
body.avm-create-page main.avm-create-template,
body.avm-create-page article {
  background:#111 !important;
  color:#f5f5f5 !important;
}
body.avm-create-page .site-content .ast-container,
body.avm-create-page .site-main .ast-container,
body.avm-create-page .content-area .ast-container {
  max-width:none !important;
  width:100% !important;
  padding:0 !important;
  margin:0 !important;
  background:#111 !important;
}
body.avm-create-page .avm-create-page-wrap {
  min-height:calc(100vh - 120px) !important;
  width:100% !important;
  box-sizing:border-box !important;
  background:#111 !important;
  padding:16px 14px 110px !important;
}
body.avm-create-page .avm-create-card {
  max-width:640px !important;
  margin:0 auto !important;
  background:#1b1b1b !important;
  border:1px solid #343434 !important;
  color:#f5f5f5 !important;
}
body.avm-create-page .avm-create-bottom-nav {
  position:fixed !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  z-index:99999 !important;
  background:#050505 !important;
}
body.avm-create-page .avm-create-bottom-nav a.is-active,
body.avm-create-page .avm-create-bottom-nav a.is-active span {
  color:#28bd50 !important;
}
body.avm-create-page .avm-create-bottom-nav .avm-home-bottom-create span {
  color:#28bd50 !important;
  border-color:#28bd50 !important;
}

/* ===== STEP 8: standalone create page + complete five-item footer ===== */
html, body { margin:0 !important; padding:0 !important; }
body.avm-create-page {
  background:#111 !important;
  width:100% !important;
  min-width:0 !important;
  overflow-x:hidden !important;
}
body.avm-create-page #page,
body.avm-create-page .site,
body.avm-create-page .site-content,
body.avm-create-page .site-main,
body.avm-create-page .content-area {
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  background:#111 !important;
}
body.avm-create-page .site-header,
body.avm-create-page .site-footer,
body.avm-create-page .ast-footer-wrap {
  display:none !important;
}
.avm-create-standalone {
  position:relative !important;
  display:block !important;
  width:100vw !important;
  max-width:100vw !important;
  min-height:100vh !important;
  margin:0 !important;
  padding:0 !important;
  background:#111 !important;
  box-sizing:border-box !important;
}
.avm-create-standalone .avm-create-page-wrap {
  width:100% !important;
  max-width:none !important;
  min-height:100vh !important;
  box-sizing:border-box !important;
  padding:24px 14px 105px !important;
  background:#111 !important;
}
.avm-create-standalone .avm-create-card {
  width:min(640px, calc(100vw - 28px)) !important;
  max-width:640px !important;
  margin:0 auto !important;
  box-sizing:border-box !important;
  background:#1b1b1b !important;
}
.avm-create-full-footer {
  position:fixed !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100vw !important;
  max-width:100vw !important;
  height:76px !important;
  display:grid !important;
  grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
  align-items:stretch !important;
  margin:0 !important;
  padding:0 !important;
  background:#050505 !important;
  border-top:1px solid #292929 !important;
  box-shadow:0 -8px 24px rgba(0,0,0,.35) !important;
  z-index:2147483647 !important;
  transform:none !important;
}
.avm-create-full-footer a {
  min-width:0 !important;
  width:auto !important;
  height:76px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:3px !important;
  padding:4px 2px !important;
  margin:0 !important;
  box-sizing:border-box !important;
  color:#ddd !important;
  background:transparent !important;
  text-decoration:none !important;
  font-size:11px !important;
  line-height:1.2 !important;
}
.avm-create-full-footer a .avm-foot-icon {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:30px !important;
  height:30px !important;
  font-size:24px !important;
  line-height:1 !important;
  color:#ddd !important;
}
.avm-create-full-footer a b {
  display:block !important;
  color:inherit !important;
  font-weight:600 !important;
  white-space:nowrap !important;
}
.avm-create-full-footer a.is-active,
.avm-create-full-footer a.is-active b,
.avm-create-full-footer a.is-active .avm-foot-icon {
  color:#28bd50 !important;
}
.avm-create-full-footer .avm-foot-create-icon {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:42px !important;
  height:42px !important;
  border:2px solid #28bd50 !important;
  border-radius:50% !important;
  color:#28bd50 !important;
  font-size:29px !important;
  line-height:1 !important;
  box-sizing:border-box !important;
}
@media(max-width:767px) {
  .avm-create-standalone .avm-create-page-wrap {
    padding:16px 10px 105px !important;
  }
  .avm-create-standalone .avm-create-card {
    width:calc(100vw - 20px) !important;
  }
  .avm-create-full-footer,
  .avm-create-full-footer a {
    height:72px !important;
  }
}

/* ===== V10: force create page to full mobile viewport ===== */
body.avm-create-page,
body.avm-create-page #page,
body.avm-create-page .site,
body.avm-create-page .site-content,
body.avm-create-page .site-content-wrap,
body.avm-create-page .content-area,
body.avm-create-page .site-main,
body.avm-create-page main.avm-create-template,
body.avm-create-page .avm-create-standalone {
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  float:none !important;
  box-sizing:border-box !important;
}

body.avm-create-page #page,
body.avm-create-page .site,
body.avm-create-page .site-content,
body.avm-create-page .content-area,
body.avm-create-page .site-main,
body.avm-create-page main.avm-create-template {
  width:100vw !important;
  max-width:100vw !important;
  background:#111 !important;
}

body.avm-create-page .avm-create-standalone {
  width:100vw !important;
  max-width:100vw !important;
  overflow:visible !important;
  background:#111 !important;
}

body.avm-create-page .avm-create-standalone .avm-create-page-wrap {
  width:100vw !important;
  max-width:100vw !important;
  margin:0 !important;
  padding:18px 10px 105px !important;
  box-sizing:border-box !important;
  background:#111 !important;
}

body.avm-create-page .avm-create-standalone .avm-create-card {
  display:block !important;
  width:100% !important;
  max-width:640px !important;
  margin:0 auto !important;
  box-sizing:border-box !important;
}

body.avm-create-page .avm-create-full-footer {
  position:fixed !important;
  inset:auto 0 0 0 !important;
  width:100vw !important;
  max-width:100vw !important;
  min-width:100vw !important;
  height:72px !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  box-sizing:border-box !important;
  background:#050505 !important;
  transform:none !important;
  z-index:2147483647 !important;
}

body.avm-create-page .avm-create-full-footer > a {
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

@media (max-width:767px) {
  body.avm-create-page .avm-create-page-wrap {
    width:100vw !important;
    max-width:100vw !important;
  }
  body.avm-create-page .avm-create-card {
    width:calc(100vw - 20px) !important;
    max-width:640px !important;
  }
}

/* ===== V11: full-viewport overlay, independent of theme's wrapper/sidebar markup ===== */
body.avm-create-page .avm-create-standalone {
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  inset:0 !important;
  width:100vw !important;
  max-width:100vw !important;
  height:100vh !important;
  max-height:none !important;
  min-height:0 !important;
  margin:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  background:#111 !important;
  z-index:2147483647 !important;
  transform:none !important;
  float:none !important;
  display:block !important;
}
body.avm-create-page .avm-create-standalone .avm-create-page-wrap {
  width:100% !important;
  max-width:none !important;
  min-height:calc(100vh - 76px) !important;
}
body.avm-create-page #wpadminbar {
  z-index:2147483647 !important;
}


/* ===== V15: dark memorial list page (/yadbood -> یادبودها) ===== */
body.post-type-archive-avm_memorial,
body.post-type-archive-avm_memorial #page,
body.post-type-archive-avm_memorial .site,
body.post-type-archive-avm_memorial .site-content,
body.post-type-archive-avm_memorial .site-main,
body.post-type-archive-avm_memorial .content-area,
body.post-type-archive-avm_memorial main {
  background:#111 !important;
  color:#f5f5f5 !important;
}
body.post-type-archive-avm_memorial .site-header,
body.post-type-archive-avm_memorial .site-footer,
body.post-type-archive-avm_memorial .ast-footer-wrap {
  display:none !important;
}
body.post-type-archive-avm_memorial .site-content .ast-container,
body.post-type-archive-avm_memorial .site-main .ast-container,
body.post-type-archive-avm_memorial .content-area .ast-container {
  width:100% !important;
  max-width:none !important;
  padding:0 !important;
  margin:0 !important;
  background:#111 !important;
}
body.post-type-archive-avm_memorial .avm-archive-page {
  width:100% !important;
  max-width:100% !important;
  min-height:100vh !important;
  margin:0 !important;
  padding:18px 12px 105px !important;
  box-sizing:border-box !important;
  background:#111 !important;
  direction:rtl !important;
}
body.post-type-archive-avm_memorial .avm-tax-box {
  width:100% !important;
  max-width:640px !important;
  margin:0 auto !important;
  padding:18px 12px !important;
  box-sizing:border-box !important;
  background:#1b1b1b !important;
  border:1px solid #333 !important;
  border-radius:18px !important;
  box-shadow:none !important;
}
body.post-type-archive-avm_memorial .avm-tax-title {
  color:#fff !important;
  margin:4px 0 20px !important;
  font-size:22px !important;
}
body.post-type-archive-avm_memorial .avm-tax-list {
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
}
body.post-type-archive-avm_memorial .avm-tax-card {
  width:100% !important;
  min-height:78px !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:12px !important;
  padding:8px 10px !important;
  background:#252525 !important;
  border:1px solid #3c3c3c !important;
  border-radius:14px !important;
  color:#fff !important;
  box-shadow:none !important;
}
body.post-type-archive-avm_memorial .avm-tax-card:hover {
  background:#2b2b2b !important;
  transform:none !important;
}
body.post-type-archive-avm_memorial .avm-tax-card .avm-list-photo {
  width:60px !important;
  height:60px !important;
  min-width:60px !important;
  max-width:60px !important;
  min-height:60px !important;
  max-height:60px !important;
  flex:0 0 60px !important;
  object-fit:contain !important;
  border-radius:10px !important;
  background:#151515 !important;
}
body.post-type-archive-avm_memorial .avm-tax-card-title {
  color:#fff !important;
  margin:0 0 4px !important;
  font-size:17px !important;
}
body.post-type-archive-avm_memorial .avm-tax-card-meta {
  color:#aaa !important;
}
body.post-type-archive-avm_memorial .avm-tax-empty {
  background:#252525 !important;
  color:#aaa !important;
  border:1px solid #3c3c3c !important;
}
body.post-type-archive-avm_memorial .avm-archive-bottom-nav {
  position:fixed !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  height:72px !important;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  z-index:99999 !important;
  margin:0 !important;
  padding:0 !important;
  background:#050505 !important;
  border-top:1px solid #292929 !important;
}
body.post-type-archive-avm_memorial .avm-archive-bottom-nav > a {
  min-width:0 !important;
  width:100% !important;
  height:72px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:3px !important;
  color:#ddd !important;
  text-decoration:none !important;
  font-size:11px !important;
}
body.post-type-archive-avm_memorial .avm-archive-bottom-nav > a span {
  font-size:23px !important;
  line-height:1 !important;
}
body.post-type-archive-avm_memorial .avm-archive-bottom-nav > a b {
  color:inherit !important;
  white-space:nowrap !important;
}
body.post-type-archive-avm_memorial .avm-archive-bottom-nav > a.is-active,
body.post-type-archive-avm_memorial .avm-archive-bottom-nav > a.is-active b,
body.post-type-archive-avm_memorial .avm-archive-bottom-nav > a.is-active span {
  color:#28bd50 !important;
}
body.post-type-archive-avm_memorial .avm-archive-bottom-nav .avm-home-bottom-create span {
  width:40px !important;
  height:40px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:2px solid #28bd50 !important;
  border-radius:50% !important;
  color:#28bd50 !important;
  font-size:28px !important;
}

/* ===== 0.4.50 صفحه یادبود: متن منو در حالت موبایل (پس‌زمینه روشن کشویی) مشکی، اما در دسکتاپ (پس‌زمینه مشکی هدر) همچنان سفید باقی می‌ماند =====
   نکته 0.4.52: بازه این کوئری از 767 به 1024 افزایش یافت تا با breakpoint جدید قالب (که باید در Customizer روی 1024 تنظیم شود) هماهنگ باشد. */
@media (max-width:1024px){
  body.avm-home-page .site-header .menu-toggle,
  body.avm-home-page .site-header .ast-mobile-menu-trigger-minimal,
  body.avm-home-page .site-header .ast-mobile-menu-trigger-fill,
  body.avm-home-page .site-header .mobile-menu-toggle-icon,
  body.avm-home-page .site-header .ast-builder-menu-mobile .main-header-menu .menu-item > a,
  body.avm-home-page .site-header .ast-header-search,
  body.avm-home-page .site-header .ast-header-html-1{
    color:#000 !important;
  }
  body.avm-home-page .site-header .menu-toggle svg,
  body.avm-home-page .site-header .ast-mobile-menu-trigger-minimal svg,
  body.avm-home-page .site-header .ast-mobile-menu-trigger-fill svg{
    fill:#000 !important;
    color:#000 !important;
  }
  body.avm-home-page .site-header .menu-toggle .toggle-bar{
    background-color:#000 !important;
  }
}

/* ===== 0.4.52: بلوک زورچپان‌کردن نمایش همبرگری در بازه تبلت (که در 0.4.48-0.4.51 اینجا بود) حذف شد.
   آن بلوک باعث نمایش هم‌زمان لوگوی نسخه موبایل و نسخه دسکتاپ و وسط‌چین‌شدن آیکون می‌شد،
   چون فقط ظاهر را با CSS عوض می‌کرد و خود قالب Astra هنوز در «حالت دسکتاپ» باقی می‌ماند.
   راه‌حل درست: تغییر «Mobile Header Breakpoint» قالب از داخل Customizer (نه CSS) —
   به توضیح ارسالی همراه این نسخه مراجعه کنید. ===== */
