
/* MODI Lighting final unified theme v20
   سنگین، صنعتی، آبی نئونی + سرمه‌ای؛ بدون حس فروشگاه روشنایی/سرمه‌ای. */
:root,
html[data-theme="light"],
body[data-theme="light"]{
  --modi-bg:#eef6ff;
  --modi-bg-2:#f7fbff;
  --modi-ink:#07111f;
  --modi-ink-2:#0b1b2f;
  --modi-card:#ffffff;
  --modi-soft:#f1f8ff;
  --modi-line:rgba(0,168,232,.18);
  --modi-cyan:#00e0ff;
  --modi-blue:#0077ff;
  --modi-neon:#29f1ff;
  --modi-lime:#7cffd9;
  --modi-text:#07111f;
  --modi-muted:#526577;
  --modi-light:#eefaff;
  --app-bg:#eef6ff;
  --card-bg:#ffffff;
  --card-soft:#f1f8ff;
  --card-border:rgba(0,168,232,.18);
  --text-main:#07111f;
  --text-muted:#526577;
  --accent-a:#00e0ff;
  --accent-b:#0077ff;
  --accent-c:#7cffd9;
  --gold:#00e0ff;
}
html[data-theme="dark"],
body[data-theme="dark"]{
  --modi-bg:#050b16;
  --modi-bg-2:#07111f;
  --modi-ink:#eafcff;
  --modi-ink-2:#bfefff;
  --modi-card:#07111f;
  --modi-soft:#0b1b2f;
  --modi-line:rgba(0,224,255,.22);
  --modi-cyan:#00e0ff;
  --modi-blue:#2f8cff;
  --modi-neon:#29f1ff;
  --modi-lime:#7cffd9;
  --modi-text:#eefaff;
  --modi-muted:#9fb4c9;
  --modi-light:#eefaff;
  --app-bg:#050b16;
  --card-bg:#07111f;
  --card-soft:#0b1b2f;
  --card-border:rgba(0,224,255,.22);
  --text-main:#eefaff;
  --text-muted:#9fb4c9;
  --accent-a:#00e0ff;
  --accent-b:#0077ff;
  --accent-c:#7cffd9;
  --gold:#00e0ff;
}
html,body{background:var(--app-bg)!important;color:var(--text-main)!important;}
body.app-body{background:radial-gradient(circle at 82% -8%,rgba(0,224,255,.18),transparent 34%),radial-gradient(circle at 8% 5%,rgba(0,119,255,.10),transparent 30%),linear-gradient(180deg,var(--modi-bg),var(--modi-bg-2))!important;}
body.app-body::before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(135deg,rgba(0,224,255,.05),transparent 28%,rgba(0,119,255,.05));z-index:-1;}
.topbar,.feed-topbar,.bottom-nav-grid,.admin-bottom-nav,.premium-pagebar{background:rgba(5,11,22,.90)!important;border-color:rgba(0,224,255,.20)!important;color:#eefaff!important;box-shadow:0 20px 50px rgba(0,0,0,.22)!important;backdrop-filter:blur(18px)!important;}
html[data-theme="light"] .topbar,html[data-theme="light"] .feed-topbar{background:rgba(255,255,255,.90)!important;color:#07111f!important;}
.brand-mark,.premium-brand__mark{background:#050b16!important;border:1px solid rgba(0,224,255,.30)!important;box-shadow:0 0 0 1px rgba(255,255,255,.04) inset,0 18px 38px rgba(0,119,255,.18)!important;}
.bottom-nav{background:linear-gradient(180deg,rgba(238,246,255,0),rgba(238,246,255,.84) 26%,rgba(238,246,255,.98))!important;}
html[data-theme="dark"] .bottom-nav{background:linear-gradient(180deg,rgba(5,11,22,0),rgba(5,11,22,.78) 26%,rgba(5,11,22,.96))!important;}
.bottom-nav-item{color:#8aa0b7!important;}
.bottom-nav-item.nav-active{color:#eaffff!important;background:linear-gradient(180deg,rgba(0,224,255,.18),rgba(0,119,255,.13))!important;box-shadow:inset 0 0 0 1px rgba(0,224,255,.24),0 10px 24px rgba(0,119,255,.16)!important;}
html[data-theme="light"] .bottom-nav-item.nav-active{color:#07111f!important;}
.bottom-nav-item.nav-active::before{background:linear-gradient(90deg,var(--modi-cyan),var(--modi-blue))!important;box-shadow:0 0 18px rgba(0,224,255,.50)!important;}
.btn-primary,.product-card__cta,.detail-cta,.pwa-install-btn,.ig-follow-btn,.story-btn--primary,.ts-shop-hero__reserve{background:linear-gradient(135deg,var(--modi-cyan),var(--modi-blue))!important;color:#03101f!important;border:0!important;box-shadow:0 18px 42px rgba(0,119,255,.24)!important;}
.btn-secondary,.detail-share,.product-card__share,.ts-bottom-sheet__secondary{background:rgba(255,255,255,.82)!important;border:1px solid rgba(0,168,232,.20)!important;color:#07111f!important;}
.panel-card,.admin-kpi,.product-card,.detail-card,.story-card,.highlight-card,.reel-card,.category-showcase,.new-products-showcase,.shop-hero-card{border-color:rgba(0,224,255,.18)!important;box-shadow:0 24px 62px rgba(7,17,31,.10)!important;}
.shop-shell{max-width:920px!important;background:transparent!important;}
.ts-shop-hero{min-height:clamp(330px,78vw,430px)!important;border-radius:32px!important;border:1px solid rgba(0,224,255,.22)!important;background:#050b16!important;box-shadow:0 28px 72px rgba(7,17,31,.30),0 0 0 1px rgba(255,255,255,.05) inset!important;}
.ts-shop-hero__image img{object-fit:cover!important;object-position:center center!important;transform:none!important;animation:none!important;filter:none!important;}
.ts-shop-hero::before,.ts-shop-hero::after,.ts-shop-hero__content{display:none!important;}
.modi-shop-summary-card,.shop-hero-card{background:radial-gradient(circle at 14% 10%,rgba(0,224,255,.22),transparent 28%),radial-gradient(circle at 86% 2%,rgba(124,255,217,.14),transparent 22%),linear-gradient(145deg,#061426,#071a2e 52%,#030a16)!important;border:1px solid rgba(0,224,255,.24)!important;color:#eefaff!important;}
.shop-hero-kicker{background:rgba(0,224,255,.10)!important;border-color:rgba(0,224,255,.26)!important;color:#dffaff!important;}
.shop-hero-title,.shop-hero-title b{color:#fff!important;text-shadow:0 14px 32px rgba(0,0,0,.32)!important;}
.shop-hero-title b{color:var(--modi-cyan)!important;}
.shop-cart-entry,.shop-search-bar,.hero-stat{background:rgba(3,13,27,.78)!important;border-color:rgba(0,224,255,.24)!important;color:#fff!important;}
.hero-stat strong{color:#fff!important}.hero-stat span{color:#bfefff!important;}
.category-card,.new-product-card,.product-card{background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(239,247,255,.92))!important;border-color:rgba(0,168,232,.16)!important;}
html[data-theme="dark"] .category-card,html[data-theme="dark"] .new-product-card,html[data-theme="dark"] .product-card{background:linear-gradient(180deg,#07111f,#050b16)!important;border-color:rgba(0,224,255,.18)!important;}
.category-card--active,.new-products-chip,.ts-card-pill,.product-attr-badge{background:linear-gradient(135deg,#061426,#08345a)!important;color:#eefaff!important;border-color:rgba(0,224,255,.28)!important;}
.new-products-title,.category-showcase__title,.product-card__title,.detail-title{color:var(--text-main)!important;}
.product-card__media-shell,.detail-media-col{background:radial-gradient(circle at 50% 0%,rgba(0,224,255,.15),transparent 52%),linear-gradient(180deg,#f5fbff,#eaf4ff)!important;}
html[data-theme="dark"] .product-card__media-shell,html[data-theme="dark"] .detail-media-col{background:radial-gradient(circle at 50% 0%,rgba(0,224,255,.16),transparent 52%),linear-gradient(180deg,#0b1b2f,#050b16)!important;}
.detail-card,.detail-topbar,.detail-info-col,.detail-stat,.variant-panel,.ts-bottom-sheet__panel,.ts-gallery-viewer__panel{background:linear-gradient(180deg,var(--card-bg),var(--card-soft))!important;border-color:rgba(0,224,255,.18)!important;color:var(--text-main)!important;}
.detail-thumb.is-active,.variant-chip.is-active{border-color:rgba(0,224,255,.72)!important;box-shadow:0 0 0 4px rgba(0,224,255,.16),0 15px 34px rgba(0,119,255,.18)!important;}
.detail-stock-chip,.inventory-chip,.stock-chip{display:none!important;}
/* Shop display only: comment UI must not appear inside shop/product cards. Do not hide global post/reel comments. */
.shop-shell [data-comments-open],
.shop-shell .ig-comment-form,
.shop-shell .ig-comments,
.shop-shell .comment-count,
.shop-shell .ig-comment-input,
.shop-shell [data-comment-form]{display:none!important;}
.story-ring-new .story-card__ring{background:conic-gradient(#00e0ff,#0077ff,#7cffd9,#00e0ff)!important;}
.story-ring-seen .story-card__ring{background:rgba(148,163,184,.42)!important;}
.pwa-install-card,.pwa-install-sheet{background:linear-gradient(145deg,#061426,#071a2e 52%,#030a16)!important;border:1px solid rgba(0,224,255,.22)!important;color:#eefaff!important;box-shadow:0 28px 72px rgba(7,17,31,.34)!important;}
.pwa-install-sub,.pwa-install-sheet p,.pwa-install-note{color:#b8d8ef!important;}
.pwa-install-close,.pwa-install-sheet-close{background:rgba(255,255,255,.08)!important;border-color:rgba(0,224,255,.16)!important;color:#eefaff!important;}
@media(max-width:700px){.ts-shop-hero{min-height:372px!important;border-radius:30px!important}.shop-shell{padding-top:12px!important}.product-card__actions{grid-template-columns:1fr auto!important}.product-card__share{min-width:52px!important}}
@media(max-width:390px){.ts-shop-hero{min-height:342px!important}.shop-hero-title{font-size:17px!important}.hero-stat{min-height:68px!important}.hero-stat strong{font-size:18px!important}}

/* MODI_CONTRAST_AND_PREMIUM_UI_V20
   هدف: خوانایی قطعی در تم روز/شب، دکمه فروشگاه سنگین و premium، بدون قهوه‌ای/طلایی سبک. */
:root,
html[data-theme="light"],
body[data-theme="light"]{
  --modi-bg:#eef6ff;
  --modi-bg-2:#f7fbff;
  --modi-ink:#07111f;
  --modi-card:#ffffff;
  --modi-soft:#eaf6ff;
  --modi-line:rgba(0,119,255,.18);
  --modi-cyan:#00d7ff;
  --modi-blue:#006dff;
  --modi-deep:#061426;
  --modi-text:#061426;
  --modi-muted:#4b5f76;
  --app-bg:#eef6ff;
  --card-bg:#ffffff;
  --card-soft:#eaf6ff;
  --card-border:rgba(0,119,255,.18);
  --text-main:#061426;
  --text-muted:#4b5f76;
  --text-soft:#60748c;
  --accent-a:#00d7ff;
  --accent-b:#006dff;
  --accent-c:#7cffd9;
  --gold:#00d7ff;
}
html[data-theme="dark"],
body[data-theme="dark"]{
  --modi-bg:#050b16;
  --modi-bg-2:#07111f;
  --modi-ink:#eefaff;
  --modi-card:#07111f;
  --modi-soft:#0b1b2f;
  --modi-line:rgba(0,224,255,.24);
  --modi-cyan:#00e0ff;
  --modi-blue:#2f8cff;
  --modi-deep:#030a16;
  --modi-text:#eefaff;
  --modi-muted:#b7c9dc;
  --app-bg:#050b16;
  --card-bg:#07111f;
  --card-soft:#0b1b2f;
  --card-border:rgba(0,224,255,.24);
  --text-main:#eefaff;
  --text-muted:#b7c9dc;
  --text-soft:#98adc2;
  --accent-a:#00e0ff;
  --accent-b:#2f8cff;
  --accent-c:#7cffd9;
  --gold:#00e0ff;
}

/* دکمه‌های عمومی، پروفایل، عضویت و ورود: متن همیشه خوانا */
.btn-primary,
.btn-ghost,
.btn-secondary,
.ig-follow-btn,
.ig-pill-btn,
.ig-pill-btn--primary,
.support-btn,
.modi-tour-primary,
.home-notif-btn,
.story-btn--primary{
  color:#eefaff!important;
  border:1px solid rgba(0,224,255,.26)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.18)!important;
}
.btn-primary,
.ig-follow-btn--active,
.ig-pill-btn--primary,
.support-btn,
.modi-tour-primary,
.story-btn--primary{
  background:linear-gradient(135deg,#07111f 0%,#006dff 58%,#00d7ff 100%)!important;
  color:#fff!important;
  box-shadow:0 18px 38px rgba(0,109,255,.22), inset 0 1px 0 rgba(255,255,255,.14)!important;
}
.btn-ghost,
.btn-secondary,
.ig-follow-btn:not(.ig-follow-btn--active),
.ig-pill-btn:not(.ig-pill-btn--primary){
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(234,246,255,.86))!important;
  color:#061426!important;
  border-color:rgba(0,119,255,.18)!important;
  box-shadow:0 12px 28px rgba(7,17,31,.08)!important;
  text-shadow:none!important;
}
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .ig-follow-btn:not(.ig-follow-btn--active),
html[data-theme="dark"] .ig-pill-btn:not(.ig-pill-btn--primary){
  background:linear-gradient(180deg,rgba(15,30,52,.96),rgba(7,17,31,.92))!important;
  color:#eefaff!important;
  border-color:rgba(0,224,255,.22)!important;
  box-shadow:0 16px 34px rgba(0,0,0,.22)!important;
}

/* کارت محصول: روشن، صنعتی، بدون حس کارت خالی و بدون تضاد ضعیف */
.product-grid{gap:14px!important;align-items:stretch!important;}
.product-card{
  position:relative!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,#ffffff 0%,#eef8ff 100%)!important;
  border:1px solid rgba(0,119,255,.18)!important;
  box-shadow:0 18px 42px rgba(7,17,31,.10)!important;
}
.product-card::before{
  content:"";position:absolute;inset:0 0 auto 0;height:3px;
  background:linear-gradient(90deg,#00d7ff,#006dff,#7cffd9)!important;
  opacity:.95;pointer-events:none;
}
html[data-theme="dark"] .product-card{
  background:linear-gradient(180deg,#07111f 0%,#050b16 100%)!important;
  border-color:rgba(0,224,255,.22)!important;
  box-shadow:0 24px 54px rgba(0,0,0,.34)!important;
}
.product-card__title{color:#061426!important;font-weight:1000!important;line-height:1.65!important;}
.product-card__price{color:#061426!important;font-weight:1000!important;letter-spacing:-.02em!important;}
.product-card__currency,.product-card__meta{color:#526577!important;font-weight:900!important;}
html[data-theme="dark"] .product-card__title,
html[data-theme="dark"] .product-card__price{color:#eefaff!important;}
html[data-theme="dark"] .product-card__currency,
html[data-theme="dark"] .product-card__meta{color:#b7c9dc!important;}
.product-card__media-shell{
  min-height:184px!important;
  background:radial-gradient(circle at 50% 0%,rgba(0,215,255,.18),transparent 48%),linear-gradient(180deg,#f7fcff,#dcecf8)!important;
}
html[data-theme="dark"] .product-card__media-shell{
  background:radial-gradient(circle at 50% 0%,rgba(0,224,255,.18),transparent 48%),linear-gradient(180deg,#0b1b2f,#061426)!important;
}
.product-card__media{object-fit:contain!important;padding:8px!important;}
.product-card__media--empty{background:linear-gradient(180deg,#dcecf8,#bfd7ea)!important;}
html[data-theme="dark"] .product-card__media--empty{background:linear-gradient(180deg,#0b1b2f,#061426)!important;}

/* دکمه افزودن به سبد: دکمه اصلی فروشگاه، نه یک حباب کم‌رنگ */
.product-card__actions{gap:10px!important;padding:10px!important;align-items:center!important;}
.product-card__cta{
  min-height:48px!important;
  border-radius:18px!important;
  padding:0 14px!important;
  background:linear-gradient(135deg,#00e0ff 0%,#0077ff 52%,#07111f 100%)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:1000!important;
  letter-spacing:-.01em!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 18px 34px rgba(0,119,255,.30), inset 0 1px 0 rgba(255,255,255,.22)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.28)!important;
}
.product-card__cta:active{transform:scale(.985)!important;}
.product-card__cta.btn-busy{opacity:.78!important;filter:saturate(.8)!important;}
.product-card__share{
  min-width:50px!important;height:48px!important;border-radius:18px!important;
  background:linear-gradient(180deg,#ffffff,#eaf6ff)!important;
  color:#006dff!important;border:1px solid rgba(0,119,255,.20)!important;
  box-shadow:0 12px 28px rgba(7,17,31,.09)!important;
}
html[data-theme="dark"] .product-card__share{
  background:linear-gradient(180deg,#0b1b2f,#061426)!important;
  color:#00e0ff!important;border-color:rgba(0,224,255,.22)!important;
}
.product-card__share svg{width:20px!important;height:20px!important;stroke:currentColor!important;}

/* صفحه اصلی/پروفایل: کنتراست تم روز و شب */
.explore-shell,.app-main--feed{color:var(--text-main)!important;}
.ig-profile-card{
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(234,246,255,.92))!important;
  color:#061426!important;
  border-color:rgba(0,119,255,.18)!important;
}
.ig-profile-card::before{background:radial-gradient(circle at top right,rgba(0,215,255,.18),transparent 45%),radial-gradient(circle at top left,rgba(0,119,255,.12),transparent 42%)!important;}
.ig-profile-title,.ig-profile-bio,.ig-stat strong,.highlight-title,.highlights-head__title,.support-title,.ig-topbar-title{color:#061426!important;}
.ig-profile-handle,.ig-stat span,.highlight-meta,.highlights-head__sub,.ig-topbar-subtitle{color:#526577!important;}
html[data-theme="dark"] .ig-profile-card{
  background:linear-gradient(180deg,rgba(5,11,22,.97),rgba(7,17,31,.94))!important;
  color:#eefaff!important;
  border-color:rgba(0,224,255,.22)!important;
}
html[data-theme="dark"] .ig-profile-title,
html[data-theme="dark"] .ig-profile-bio,
html[data-theme="dark"] .ig-stat strong,
html[data-theme="dark"] .highlight-title,
html[data-theme="dark"] .highlights-head__title,
html[data-theme="dark"] .support-title,
html[data-theme="dark"] .ig-topbar-title{color:#eefaff!important;}
html[data-theme="dark"] .ig-profile-handle,
html[data-theme="dark"] .ig-stat span,
html[data-theme="dark"] .highlight-meta,
html[data-theme="dark"] .highlights-head__sub,
html[data-theme="dark"] .ig-topbar-subtitle{color:#b7c9dc!important;}

/* آبی/فیروزه‌ای اینستاگرام MODI، بدون قهوه‌ای و طلایی سبک */
.category-card--active,
.new-products-chip,
.ts-card-pill,
.product-attr-badge,
.gallery-chip{
  background:linear-gradient(135deg,#061426,#0077ff)!important;
  color:#eefaff!important;
  border-color:rgba(0,224,255,.28)!important;
}
.shop-cart-entry__badge{background:#00e0ff!important;color:#061426!important;}
.ts-quick-view-btn{background:rgba(7,17,31,.88)!important;color:#eefaff!important;border:1px solid rgba(0,224,255,.24)!important;}


/* MODI_BASE_V21_FINAL: readable premium buttons + disabled base-version surfaces */
.product-card__actions{display:grid!important;grid-template-columns:minmax(0,1fr) 46px!important;gap:9px!important;align-items:center!important;padding:10px!important;}
.product-card__cta,[data-shop-cta="1"]{
  position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:46px!important;width:100%!important;padding:0 12px!important;border-radius:18px!important;
  border:1px solid rgba(0,224,255,.54)!important;
  background:linear-gradient(135deg,#02111f 0%,#004fb8 45%,#00cfff 100%)!important;
  color:#ffffff!important;font-size:12px!important;font-weight:1000!important;line-height:1.35!important;
  text-align:center!important;white-space:normal!important;letter-spacing:-.01em!important;
  text-shadow:0 1px 2px rgba(0,0,0,.72)!important;
  box-shadow:0 16px 36px rgba(0,119,255,.32), inset 0 1px 0 rgba(255,255,255,.22)!important;
  overflow:hidden!important;
}
.product-card__cta::before,[data-shop-cta="1"]::before{content:"";position:absolute;inset:1px;border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.20),rgba(255,255,255,0) 56%);pointer-events:none;}
.product-card__cta:hover,.product-card__cta:focus-visible,[data-shop-cta="1"]:hover,[data-shop-cta="1"]:focus-visible{transform:translateY(-1px)!important;border-color:rgba(247,201,74,.72)!important;box-shadow:0 20px 44px rgba(0,119,255,.40),0 0 0 4px rgba(0,224,255,.13)!important;outline:none!important;}
.product-card__cta:active,[data-shop-cta="1"]:active{transform:translateY(1px) scale(.99)!important;}
.product-card__share{display:grid!important;place-items:center!important;width:46px!important;height:46px!important;min-width:46px!important;border-radius:17px!important;background:#07111f!important;color:#eaffff!important;border:1px solid rgba(0,224,255,.38)!important;box-shadow:0 12px 26px rgba(5,18,38,.20)!important;}
.product-card__share svg{width:20px!important;height:20px!important;stroke:currentColor!important;}
html[data-theme="light"] .product-card__cta,body[data-theme="light"] .product-card__cta,html[data-theme="light"] [data-shop-cta="1"],body[data-theme="light"] [data-shop-cta="1"]{background:linear-gradient(135deg,#031224 0%,#005ed9 46%,#00b7e8 100%)!important;color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.72)!important;}
html[data-theme="dark"] .product-card__cta,body[data-theme="dark"] .product-card__cta,html[data-theme="dark"] [data-shop-cta="1"],body[data-theme="dark"] [data-shop-cta="1"]{background:linear-gradient(135deg,#07111f 0%,#006dff 50%,#00e0ff 100%)!important;color:#ffffff!important;border-color:rgba(0,224,255,.62)!important;text-shadow:0 1px 2px rgba(0,0,0,.72)!important;}
@media(max-width:430px){.product-card__cta,[data-shop-cta="1"]{font-size:11px!important;min-height:44px!important;padding-inline:8px!important}.product-card__share{width:44px!important;height:44px!important;min-width:44px!important}.product-card__actions{grid-template-columns:minmax(0,1fr) 44px!important;gap:8px!important}}
.notify-permission-card,.notification-permission,.webpush-card,[data-notification-prompt],[data-notifications-entry],.home-notif-btn,#notifBadge,.notif-badge,[href*="/notifications/"],.story-view-metric,[data-story-analytics],[data-story-replies-entry]{display:none!important;}
