/* لاله‌زار با ضخامت طبیعی خود قلم؛ یک خانواده برای تمام صفحه‌ها و کنترل‌ها */
:root {
  --font-site: 'Lalezar', sans-serif;
  --text-glow: 0 1px 2px #263a6610;
  --title-glow: 0 1px 0 #ffffff75, 0 3px 12px #42557b12;
}
html, body, body *, input::placeholder, textarea::placeholder,
input[type=file]::file-selector-button {
  font-family: var(--font-site) !important;
  font-weight: 400 !important;
  font-synthesis: none;
  letter-spacing: normal;
}
body { font-size: 17px; line-height: 1.85; text-shadow: var(--text-glow); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .hero-tagline, .stats-val { text-shadow: var(--title-glow); }
input, select, textarea { font-size: 17px; text-shadow: none; }
input::placeholder, textarea::placeholder { font-size: 16px; opacity: 1; }
.btn, .mainnav a { font-size: 17px; }
.btn-sm { font-size: 15px; }
.mainnav a { line-height: 1.6; }
.section-head h2, .admin-head-title h1 { font-size: 27px; line-height: 1.55; }
.home-page .hero-title { font-size: clamp(82px, 9vw, 116px); letter-spacing: -.7px; line-height: 1.35; }
.home-page .hero-title.brand-grad { text-shadow: none; filter: drop-shadow(0 3px 8px #c3567911); }
.hero-tagline { font-size: clamp(25px, 3vw, 36px); line-height: 1.6; letter-spacing: normal; }
.home-page .hero p { font-size: 18px; line-height: 1.95; }
.home-page .hero-badge { font-size: 15px; }
.home-page .chip { font-size: 14px; }
.home-page .hero-float-card { font-size: 14px; }
.studio-orbit-note { font-size: 12px; }
.home-panel-head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.5; letter-spacing: normal; }
.home-panel-head p { font-size: 16px; }
.eyebrow, .source-tag { font-size: 14px; }
.stat-kind { font-size: 15px; }
.stats-val { font-size: clamp(58px, 6vw, 76px); line-height: 1.2; }
.stats-lbl { font-size: 22px; }
.stats-note { font-size: 15px; line-height: 1.9; }
.stats-link { font-size: 16px; }
.stats-status { font-size: 13px; align-items: flex-start; line-height: 1.9; }
.stats-status .status-dot { flex: none; margin-top: 9px; }
.step h4 { font-size: 21px; }
.step p { font-size: 16px; line-height: 1.9; }
.step-label { font-size: 13px; }
.step-n { font-size: 43px; }
.home-page .cta-banner h3 { font-size: 23px; }
.home-page .cta-banner p { font-size: 16px; }
.p-title, .ap-title { font-size: 19px; line-height: 1.7; }
.p-cat, .p-pack, .ap-cat, .ap-unit-price { font-size: 14px; }
.p-price b, .ap-price-main b { font-size: 24px; }
.category-photo-label h3 { font-size: 21px; }
.category-photo-link { font-size: 14px; }
.pill, .stock { font-size: 13px; }
.pd-info h1 { font-size: clamp(27px, 4vw, 37px); line-height: 1.6; }
.pd-desc, .pd-note { font-size: 17px; }
.footer-brand h2 { font-size: 26px; }
.footer-brand p { font-size: 17px; line-height: 2; }
.footer-card-title { font-size: 20px; }
.footer-phone { font-size: 28px; }
.footer-detail { font-size: 16px; line-height: 1.85; }
.footer-detail b { font-size: 15px; }
.footer-contact-card .small-copy, .footer-channel-link { font-size: 15px; }
.footer-market-label, .footer-manager, .footer-line1 { font-size: 14px; }
.footer-line2 { font-size: 13px; }
.support-intro h3, .support-settings-main > h3 { font-size: 22px; }
.support-intro p, .support-settings-aside p, .support-capabilities span { font-size: 16px; }
.support-quick, .support-action, .support-status { font-size: 15px; }
.support-action.product-link b { font-size: 17px; }
.support-action.product-link span, .msg-meta, .chat-note { font-size: 14px; }
.bubble, .support-settings-main .input { font-size: 18px; }
.support-settings-main label { font-size: 17px; }
.support-faq-head h4, .support-settings-aside h4 { font-size: 21px; }
.category-edit-heading, .category-new-form h3 { font-size: 22px; }
.category-photo-help, .category-product-count { font-size: 14px; }
.category-photo-choose, .category-photo-remove { font-size: 16px; }
.seg-label { font-size: 16px; }
.admin-user-tag, .stat-card span { font-size: 16px; }
.admin-top-info h2 { font-size: 26px; }
.stat-card b { font-size: 24px; }
.admin-login-head h1 { font-size: 32px; }
.admin-login-head p, .admin-login-form label span { font-size: 18px; }
.admin-login-badge, .admin-login-back { font-size: 16px; }
.admin-login-form .input { font-size: 20px; }
.admin-login-btn { font-size: 22px; }
.admin-login-foot { font-size: 15px; }
.table { font-size: 17px; }
.footer-line1, .footer-line2, .admin-login-foot, input, select, textarea { text-shadow: none; }
.admin-login-head h1, .admin-top-info h2 { text-shadow: 0 2px 8px #0000001c; }

/* نورها روی یک پس‌زمینه مشترک امتداد دارند؛ هیچ رنگ تختِ جداکننده‌ای بین بخش‌ها نیست. */
body.home-route {
  background-color: #fcfcff;
  background-image:
    radial-gradient(ellipse 930px 760px at -6% 3%, #c9bbef30 0%, #ded5f417 48%, transparent 78%),
    radial-gradient(ellipse 960px 800px at 105% 7%, #f7c5b52c 0%, #f7ded416 48%, transparent 78%),
    radial-gradient(ellipse 960px 1000px at 12% 43%, #c3dbf022 0%, transparent 78%),
    radial-gradient(ellipse 1000px 950px at 95% 74%, #e6d6f01e 0%, transparent 80%),
    linear-gradient(180deg, #fcfbff 0%, #fcfdff 46%, #fffdfa 83%, #ffffff 100%);
  background-repeat: no-repeat;
}
.home-page, .home-page .hero { background: transparent; }
.home-page::before, .home-page .hero::after, .home-page .blob { display: none; }
.home-page .hero { padding-top: 44px; padding-bottom: 56px; }
.studio-aura { opacity: .68; }
.stats-counter-banner, .journey-panel {
  background: linear-gradient(145deg, #ffffff9e, #ffffffe0 72%, #ffffff99);
  border-color: #ffffffc9;
  box-shadow: 0 16px 45px -25px #5d7d9c20, inset 0 1px 0 #ffffff;
  backdrop-filter: blur(15px);
}
.stats-counter-banner::before, .stats-counter-banner::after { opacity: .34; filter: blur(24px); }
.stats-streams { opacity: .15; }
.journey-panel::before { opacity: .38; }
.journey-panel::after { opacity: .3; }
.stats-item, .step { background: #ffffffe0; box-shadow: 0 6px 22px #607b9410; }
.home-page .cta-banner { background: linear-gradient(120deg, #ffffffaa, #f9f9ffbd); border-color: #fff; }
.home-page .cta-banner::after { opacity: .36; }
body.home-route #site-footer, .footer-showcase { background: transparent; }
.footer-showcase { border-top: 0; margin-top: 8px; }
.footer-showcase::before { opacity: .35; }
body.home-route .footer-bottom { background: #ffffff80; border-top-color: #e9edf680; }
.purchases-stat .stats-ico { background: linear-gradient(135deg,#e4f1ff,#f0f7ff); color: #3985c6; }
.purchases-stat .stats-val { color: #286dae; }
.purchases-stat .stat-kind { color: #6289ac; }
.purchases-stat::after { border-color: #7badcd0c; }
.stats-status.purchases-source .status-dot { background: #68a3cf; }

@media (max-width: 900px) {
  .hero-layout { gap: 25px; }
  .home-page .hero-title { font-size: 90px; }
  .hero-tagline { font-size: 29px; }
  .footer-brand p { max-width: none; }
}
@media (max-width: 600px) {
  .section { padding-left: 16px; padding-right: 16px; }
  .home-page .hero { padding: 31px 18px 34px; }
  .home-page .hero-title { font-size: 83px; margin-bottom: 2px; }
  .hero-tagline { font-size: 27px; }
  .home-page .hero p { font-size: 17px; margin-bottom: 22px; }
  .home-page .hero-badge { font-size: 14px; }
  .home-page .hero-chips .chip:first-child { font-size: 13px; }
  .home-page .hero-float-card { font-size: 12px; }
  .studio-orbit-note { font-size: 11px; }
  .home-panel-head h2 { font-size: 29px; }
  .stats-counter-banner, .journey-panel { padding: 25px 20px; }
  .stats-val { font-size: 65px; }
  .stats-lbl { font-size: 22px; }
  .stats-note { font-size: 15px; }
  .home-panel-head p, .source-tag { font-size: 14px; }
  .step h4 { font-size: 21px; }
  .step p { font-size: 16px; }
  .home-page .cta-banner h3 { font-size: 22px; }
  .footer-inner { padding-left: 20px; padding-right: 20px; }
  .footer-brand p { padding-left: 0; }
  .footer-market-label { font-size: 14px; }
  .support-intro h3 { font-size: 20px; }
  .support-intro p { font-size: 16px; }
  .support-quick, .support-action { font-size: 14px; }
  .support-quicks { gap: 7px; }
  .bubble { font-size: 17px; }
  .support-action.product-link b { font-size: 17px; }
  .support-action.product-link span { font-size: 14px; }
  .admin-top-info h2 { font-size: 22px; line-height: 1.65; }
  .admin-user-tag { font-size: 15px; }
  .admin-login-card { padding: 29px 23px; }
  .admin-login-head h1 { font-size: 29px; }
}
@media (max-width: 380px) {
  .home-page .hero-title { font-size: 77px; }
  .hero-tagline { font-size: 25px; }
  .hero-actions { gap: 9px; }
  .home-page .hero-actions .btn { padding-left: 14px; padding-right: 14px; font-size: 16px; }
  .stats-counter-banner, .journey-panel { padding: 23px 17px; }
  .home-panel-head h2 { font-size: 27px; }
  .stats-item { padding: 22px; }
  .footer-phone { font-size: 27px; }
}
@media print {
  body { text-shadow: none; background: #fff !important; }
  h1, h2, h3, h4, .stats-val { text-shadow: none; }
}
/* اندازه ذاتی ورودی نباید عرض کارت محصول را در موبایل بزرگ کند. */
.product-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-info { min-width: 0; }
.pd-info h1, .pd-desc, .pd-note { overflow-wrap: anywhere; }
.pd-price { flex-wrap: wrap; }
#pd-qty { width: 52px; min-width: 0; height: 42px; border: 0; padding: 0; text-align: center; background: transparent; color: #344d6c; }
.qty-box button { flex: none; }
@media (max-width: 768px) {
  .product-detail { grid-template-columns: minmax(0, 1fr); }
  .pd-buy { gap: 12px; }
  .pd-buy > .btn { flex: 1 1 170px; }
}
/* هویت بالای صفحه حتی کنار حساب مدیریت، کوچک و ناخوانا نمی‌شود. */
@media (max-width: 480px) {
  .topbar-inner { gap: 10px; padding: 11px 14px; }
  #topbar .logo { flex: none; }
  #topbar .brand-lockup { width: 128px; max-width: none; }
  .topbar-actions { gap: 8px; }
  .topbar-actions .cart-btn { width: 36px; height: 38px; }
  .user-chip { padding: 4px 6px; gap: 6px; }
  .user-chip .user-name { display: none; }
  .user-chip .icon-btn { width: 30px; height: 32px; }
  .user-chip .user-avatar { width: 30px; height: 30px; flex: none; }
}
.phone-isolate { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }

/* فاکتور خوانا در صفحه؛ چاپ هم از همان لاله‌زار استفاده می‌کند. */
.invoice-toolbar { flex-wrap: wrap; gap: 10px; }
.invoice-sheet { max-width: 920px; padding: 34px; text-shadow: none; }
.inv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; border-bottom: 2px solid #dce8f7; padding-bottom: 23px; margin-bottom: 22px; }
.inv-logo { font-size: 24px; color: #2c405b; line-height: 1.6; }
.inv-logo .logo-mark { width: 43px; height: 43px; flex: none; }
.inv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 16px; line-height: 1.8; color: #688099; }
.inv-meta b { color: #34577b; }
.inv-cust { display: flex; flex-wrap: wrap; gap: 14px 25px; margin-bottom: 23px; font-size: 18px; }
.inv-cust > div { display: flex; align-items: baseline; gap: 8px; }
.inv-cust span { color: #8091a5; }
.inv-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 17px; line-height: 1.85; }
.inv-table th, .inv-table td { padding: 12px 10px; border: 1px solid #e3ebf5; vertical-align: middle; text-align: center; overflow-wrap: anywhere; }
.inv-table th { background: #f4f8fd; color: #52759d; }
.inv-table th:first-child { width: 34%; }
.inv-table th:nth-child(2) { width: 12%; }
.inv-table th:nth-child(3), .inv-table th:nth-child(4) { width: 27%; }
.inv-table td:first-child { text-align: right; }
.inv-table tfoot { background: #f7faff; color: #305c8c; }
.inv-table tfoot td:last-child { text-align: center; }
.inv-note { margin-top: 19px; font-size: 16px; color: #7b8da4; }
.inv-foot { margin-top: 25px; padding-top: 20px; border-top: 1px solid #e8eef7; font-size: 15px; line-height: 2; color: #8594a7; text-align: center; }
.inv-thanks { margin-top: 16px; color: #6785a7; text-align: center; font-size: 18px; }
@media (max-width: 600px) {
  .invoice-sheet { padding: 22px 17px; }
  .inv-head { flex-direction: column; gap: 14px; }
  .inv-logo { font-size: 23px; }
  .inv-meta { width: 100%; align-items: flex-start; }
  .inv-cust { font-size: 17px; }
  .inv-table { font-size: 16px; }
  .inv-table th, .inv-table td { padding: 10px 5px; }
  .inv-foot { font-size: 14px; }
}
/* سبد خرید بالای سایت دیگر ایموجی تنها نیست؛ آیکون و متن دارد. */
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 14px; border-radius: 999px; color: #325879; background: linear-gradient(145deg, #ffffffd7, #eef6ffb8); border: 1px solid #dfeaf7; box-shadow: 0 6px 18px #5e83aa12, inset 0 1px 0 #fff; backdrop-filter: blur(12px); }
.cart-link .ui-icon { width: 21px; height: 21px; color: #2f79b8; }
.cart-link .badge { top: -7px; inset-inline-start: -5px; }
.clean-user-chip { min-height: 42px; padding: 8px 14px; }
.clean-user-chip .user-name { max-width: 160px; }
@media (max-width: 480px) {
  #topbar .brand-lockup { width: 112px; }
  .cart-link { min-height: 38px; padding: 7px 10px; gap: 5px; font-size: 14px; }
  .cart-link .ui-icon { width: 18px; height: 18px; }
  .clean-user-chip { padding: 7px 10px; min-height: 38px; }
  .clean-user-chip .user-name { display: inline; max-width: 78px; }
}
@media (max-width: 350px) {
  #topbar .brand-lockup { width: 104px; }
  .cart-link { padding-inline: 8px; }
  .cart-link span:not(.badge) { max-width: 55px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* سیستم عددی موجودی حذف شد؛ فقط وضعیت دستی موجود/ناموجود نمایش داده می‌شود. */
.p-card.is-unavailable, .admin-prod-card.is-unavailable { order: 99; background: linear-gradient(145deg, #f3f5f8, #eef1f5); border-color: #d7dde7; color: #758196; }
.p-card.is-unavailable .p-img, .admin-prod-card.is-unavailable .ap-thumb { filter: grayscale(.75); opacity: .72; }
.p-card.is-unavailable .p-name, .admin-prod-card.is-unavailable .ap-title { color: #596579; }
.p-card.is-unavailable .btn, .product-detail .btn:disabled { background: linear-gradient(145deg, #9ca6b4, #707b8c) !important; color: #fff !important; cursor: not-allowed; opacity: .95; }
.stock.out { max-width: 100%; white-space: normal; line-height: 1.55; border-color: #e9b5c0; background: #fff0f2; color: #a32643; }
.admin-prod-card.is-unavailable .ap-price-main b, .p-card.is-unavailable .p-price { color: #7b8493; }
.availability-field { gap: 9px; }
.availability-check { margin: 0; padding: 10px 12px; border-radius: 14px; background: #f5fbff; border: 1px solid #dcebf7; }
.closed-ticket-note { margin: 14px 0 0; padding: 14px 16px; border-radius: 18px; background: linear-gradient(145deg, #fff7ed, #fff1f4); border: 1px solid #ffe0cf; color: #92400e; line-height: 2; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.pager-label { padding: 8px 15px; border-radius: 999px; color: #60748c; background: #ffffffb5; border: 1px solid #e4edf8; }
.pager-btn.next .ui-icon { transform: scaleX(-1); }
@media print { .cart-link, .pager, .closed-ticket-note { text-shadow: none; } }

/* اصلاح نهایی موبایل: متن سبد خرید در زوم ۱۰۰٪ روی خودش نیفتد. */
@media (max-width: 520px) {
  #topbar .topbar-inner { gap: 8px; padding-inline: 12px; }
  #topbar .topbar-actions { min-width: 0; gap: 6px; }
  #topbar .topbar-actions .cart-btn.cart-link {
    width: auto !important;
    height: auto !important;
    min-width: 92px;
    max-width: 116px;
    flex: 0 0 auto;
    padding: 7px 10px;
    line-height: 1.25;
    white-space: nowrap;
  }
  #topbar .cart-link span:not(.badge) { display: inline-block; white-space: nowrap; line-height: 1; }
}
@media (max-width: 360px) {
  #topbar .brand-lockup { width: 102px; }
  #topbar .topbar-inner { padding-inline: 10px; }
  #topbar .topbar-actions .cart-btn.cart-link { min-width: 84px; max-width: 96px; padding-inline: 8px; font-size: 13px; }
  #topbar .cart-link .ui-icon { width: 17px; height: 17px; }
}

/* سطح‌های خوانا: زمینه‌ی خیلی روشن، کارت سفید و کنترل‌های متمایز از کارت */
.card, .ticket-card, .p-card, .cat-card, .admin-prod-card, .category-new-form,
.category-edit-form, .modal, .invoice-sheet {
  border-color: #d2deea;
}
.input, select.input, textarea.input {
  background: #eef3f9 !important;
  border: 1px solid #c6d4e4 !important;
  color: #243750 !important;
  box-shadow: inset 0 1px 2px #1b35500d;
}
.input::placeholder, textarea.input::placeholder { color: #788ba2; }
.input:focus, select.input:focus, textarea.input:focus {
  background: #fff !important;
  border-color: #4a88bf !important;
  box-shadow: 0 0 0 3px #4a88bf2a !important;
}
select.input option, option { background-color: #eaf1f8; color: #243750; }
select.input option:checked, option:checked { background-color: #d8e8f7; color: #173f66; }
input[type="checkbox"], input[type="radio"] { accent-color: #377fb5; }
.check:not(.availability-check) {
  padding: 8px 11px;
  border: 1px solid #d0ddea;
  border-radius: 12px;
  background: linear-gradient(145deg, #f2f6fb, #e8f0f8);
  color: #2d435d;
}
.form label.check { flex-direction: row; align-items: center; }
.availability-check {
  background: linear-gradient(145deg, #eaf5fb, #e4f0f8) !important;
  border-color: #bfd4e5 !important;
  color: #24435e;
}
.admin-segmented-nav, .tabs {
  background: #eaf0f7;
  border-color: #cfdae8;
}
.tabs { padding: 6px; border: 1px solid #cfdae8; border-radius: 18px; }
.qty-box { background: #edf3f9; border-color: #cbd8e7; }
.qty-box button { color: #315677; }
.pager-label { background: #eaf1f8; border-color: #cad9e8; color: #3d5873; }

/* موبایل: حرکت و افکت‌های سنگین کمتر؛ ظاهر شیشه‌ای با رنگ و خط واضح حفظ می‌شود. */
@media (max-width: 768px) {
  #font-splash > svg { filter: none !important; }
  .font-splash-line { animation: none !important; }
  body { background-color: #f4f7fb; }
  body.home-route {
    background-color: #f5f7fb;
    background-image: linear-gradient(180deg, #f2f6fb 0%, #fbfcfe 45%, #f7f8fc 100%);
    background-attachment: scroll;
  }
  #topbar, .mobile-bottom-nav, #bottom-nav {
    background: #f8fbff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 16px #334b6612;
  }
  button, .btn, .icon-btn, .mainnav a, .admin-seg-item, .b-nav-item,
  .category-photo-choose, .support-action, .support-quick,
  input[type=file]::file-selector-button, .cart-link,
  .hero-float-card, .studio-orbit-note, .stats-counter-banner,
  .journey-panel, .stats-item, .step, .modal-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  button, .btn, .icon-btn, .mainnav a, .admin-seg-item, .b-nav-item,
  .category-photo-choose, .support-action, .support-quick {
    transition-duration: .16s !important;
  }
  .input, select, textarea { transition-duration: .16s !important; }
  .reveal, .reveal.in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }
  .hero-art-parallax { transform: none !important; transition: none !important; will-change: auto !important; }
  .hero-art-float, .hero-float-card, .journey-head-art .ui-icon,
  .journey-panel::before, .journey-track::after,
  .stats-counter-banner::before, .stats-counter-banner::after,
  .stats-streams path, .home-page .cta-banner::after, .footer-showcase::before,
  .home-page .brand-grad, .badge, .stats-val.value-changed {
    animation: none !important;
  }
  .stats-streams, .home-page .blob, .studio-aura, .bag-shadow { display: none !important; }
  .stats-counter-banner::before, .stats-counter-banner::after,
  .journey-panel::before, .journey-panel::after { filter: none !important; }
  .stats-counter-banner, .journey-panel { box-shadow: 0 8px 24px #34516c12; }
  .stats-item, .step { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .p-card, .cat-card, .stats-item, .step, .ticket-card,
  .p-card:hover, .cat-card:hover, .stats-item:hover, .step:hover, .ticket-card:hover {
    transition-duration: .16s !important;
    transform: none !important;
  }
  .p-card:hover .p-img img, .cat-card:hover .category-photo-frame > img { transform: none !important; }
  .p-card.is-unavailable .p-img img, .admin-prod-card.is-unavailable .ap-thumb { filter: none !important; opacity: .72; }
  .modal-overlay { animation-duration: .18s !important; }
  .modal { animation-duration: .2s !important; }
}

/* اطلاعات موجودی و نوع فروش زیر عکس، کنار توضیحات محصول */
.p-meta-row .stock.out { flex: 1 1 100%; justify-content: flex-start; border-radius: 11px; }
.ap-status-row { display: flex; align-items: flex-start; min-width: 0; margin-top: 7px; }
.ap-status-row .stock.out { justify-content: flex-start; border-radius: 11px; }
.pd-info > .stock { position: static; margin: 2px 0 6px; }

/* منوی دسکتاپ: سه دکمه هم‌اندازه و مرتب داخل قاب واحد */
@media (min-width: 769px) {
  #topbar .topbar-inner { gap: 20px; }
  #topbar .mainnav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
    width: 318px;
    min-width: 318px;
    flex: 0 0 318px;
    padding: 6px;
    border-radius: 18px;
    background: #eaf0f7;
    border: 1px solid #cdd9e7;
    box-shadow: inset 0 1px 2px #2845610b;
  }
  #topbar .mainnav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 42px;
    padding: 0 8px;
    border-radius: 13px;
    text-align: center;
    white-space: nowrap;
    line-height: 1.1;
  }
}

/* منوی موبایل: چهار خانه با عرض و ارتفاع یکسان؛ پس‌زمینه دقیق دور هر گزینه */
@media (max-width: 768px) {
  body { padding-bottom: 84px; }
  #bottom-nav.mobile-bottom-nav {
    height: 64px;
    bottom: 10px;
    left: 50%;
    right: auto;
    width: calc(100% - 24px);
    max-width: 480px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: stretch;
    gap: 5px;
    padding: 5px 6px;
    border-radius: 19px;
  }
  #bottom-nav .b-nav-item {
    flex: 1 1 0;
    min-width: 0;
    height: 52px;
    margin: 0;
    padding: 2px 1px;
    gap: 0;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  #bottom-nav .b-nav-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 24px;
    font-size: 19px;
    line-height: 1;
  }
  #bottom-nav .b-nav-label {
    display: block;
    max-width: 100%;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
