:root {
  --bg: #f3f5fb;
  --text: #20243a;
  --card: #ffffff;
  --line: #e7ebf3;
  --brand: #2d2a88;
  --brand-dark: #221f6d;
  --ok: #14b8a6;
  --danger: #ef4444;
  --warn: #f59e0b;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-soft: 0 10px 26px rgba(31, 35, 64, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "Vazirmatn";
  src:
    url("/assets/fonts/Vazir.woff2") format("woff2"),
    url("/assets/fonts/Vazir.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(45, 42, 136, 0.08), transparent 30%),
    radial-gradient(circle at 10% 18%, rgba(23, 144, 234, 0.06), transparent 34%),
    var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.app {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.hero {
  background: linear-gradient(180deg, #2f2a8a, #26216d);
  color: #fff;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: 0 18px 38px rgba(38, 33, 109, 0.18);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.hero--app {
  gap: 10px;
}

.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.home-topbar__brand {
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
}

.home-topbar__subtitle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
}

.home-topbar__avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.home-hero-card {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  padding: 16px;
  background: #fff;
  color: var(--text);
  display: grid;
  gap: 14px;
}

.home-hero-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-hero-card__body {
  display: grid;
  gap: 10px;
}

.home-plan-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef1ff;
  color: #2d2a88;
  font-weight: 800;
  white-space: nowrap;
  margin-inline: auto;
}

.home-plan-meta,
.home-overview-strip {
  color: #667085;
  font-size: 0.86rem;
  line-height: 1.9;
  text-align: center;
}

.hero-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.hero-kpi {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 16px;
  border: 1px solid #eceef5;
  background: #f9fafc;
}

.hero-kpi__icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.hero-kpi__value {
  color: #1f2340;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-kpi__label {
  color: #6a7088;
  font-size: 0.74rem;
  line-height: 1.4;
}

.hero-kpi--blue {
  background: linear-gradient(160deg, #f4f9ff, #ffffff);
  border-color: #dcecff;
}

.hero-kpi--peach {
  background: linear-gradient(160deg, #fff8f1, #ffffff);
  border-color: #ffe3ca;
}

.hero-kpi--mint {
  background: linear-gradient(160deg, #f3fffa, #ffffff);
  border-color: #d4f5e5;
}

.hero-kpi--violet {
  background: linear-gradient(160deg, #faf7ff, #ffffff);
  border-color: #eadfff;
}

.hero h1 {
  margin: 0 0 6px;
  text-align: right;
  font-size: 1.35rem;
  line-height: 1.5;
  font-weight: 700;
  color: #1f2340;
}

.hero p {
  margin: 0;
  text-align: right;
  line-height: 1.9;
}

.hero-status {
  color: #7c8097;
  font-size: 0.88rem;
}

.hero-lead {
  max-width: 540px;
  margin: 0;
  color: #59627a;
  font-size: 0.86rem;
}

.hero-inline-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #e7ebf3;
  border-radius: 999px;
  background: #f6f8fd;
}

.hero-inline-status__label {
  color: #8b90a6;
  font-size: 0.8rem;
}

.hero-inline-status__value {
  color: #2d2a88;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.hero-action-grid button {
  min-height: 44px;
  border-radius: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px rgba(31, 35, 64, 0.08);
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

.hero-ghost-btn {
  background: #eef1fb !important;
  color: #2d2a88 !important;
  border: 1px solid #dce3fb !important;
}

.hero-ghost-btn:hover {
  background: #e4e8f8 !important;
}

.hero-progress {
  width: 100%;
  max-width: 320px;
  height: 14px;
  margin: 0 auto 2px;
  background: #f4effb;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #ebe2f8;
}

.hero-progress__bar {
  width: 48%;
  height: 100%;
  background: linear-gradient(90deg, #43c6f9, #3b82f6);
  border-radius: 999px;
}

.hero-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.hero-checklist__item {
  background: #faf7fd;
  border: 1px solid #eee7f7;
  border-radius: 14px;
  padding: 12px 12px;
  text-align: center;
  color: #666b85;
  font-size: 0.82rem;
}

.hero .actions {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.actions button,
.panel button {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
}

.actions button:hover,
.panel button:hover {
  background: var(--brand-dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #eceef5;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(31, 35, 64, 0.04);
}

.stat-card__header-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #f2f4fb;
  font-size: 1.05rem;
  margin: 0 auto 6px;
}

.stat-card--mini {
  text-align: center;
  padding: 16px 12px;
}

.stat-card--mini .stat-value {
  font-size: 1.35rem;
}

.stat-card--blue {
  background: linear-gradient(160deg, #f4f9ff, #ffffff);
  border-color: #dcecff;
}

.stat-card--peach {
  background: linear-gradient(160deg, #fff8f1, #ffffff);
  border-color: #ffe3ca;
}

.stat-card--mint {
  background: linear-gradient(160deg, #f3fffa, #ffffff);
  border-color: #d4f5e5;
}

.stat-card--violet {
  background: linear-gradient(160deg, #faf7ff, #ffffff);
  border-color: #eadfff;
}

.stat-title {
  color: #6a7088;
  font-size: 0.88rem;
  font-weight: 500;
}

.stat-value {
  margin-top: 4px;
  font-weight: 700;
  font-size: 1.35rem;
  color: #21253d;
}

.stat-meta {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.8;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.module-card {
  border: 1px solid #eceef5;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 12px;
  text-align: right;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  min-height: 132px;
  box-shadow: var(--shadow-soft);
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

.module-grid--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.module-card--large {
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas:
    "icon eyebrow"
    "icon title"
    "icon desc";
  align-items: center;
  align-content: center;
  padding: 12px 14px;
  min-height: 104px;
}

.module-card.module-card--poll {
  background: linear-gradient(160deg, #eef4ff, #ffffff) !important;
  border-color: #d8e6ff !important;
}

.module-card.module-card--contest {
  background: linear-gradient(160deg, #eefcff, #ffffff) !important;
  border-color: #d6f1f8 !important;
}

.module-card.module-card--challenge {
  background: linear-gradient(160deg, #fff6ec, #ffffff) !important;
  border-color: #ffe1c2 !important;
}

.module-card.module-card--store {
  background: linear-gradient(160deg, #f1fbf3, #ffffff) !important;
  border-color: #d5eedb !important;
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(31, 35, 64, 0.12);
}

.module-card strong {
  color: #1f2340;
  font-size: 0.96rem;
  line-height: 1.7;
  order: 2;
  grid-area: title;
  text-align: right;
}

.module-card span {
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.8;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

.module-eyebrow {
  order: 2;
  display: inline-flex;
  justify-content: flex-start;
  color: #6a7088;
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.03em;
  grid-area: eyebrow;
  text-align: right;
}

.module-card strong {
  order: 3;
}

.module-desc {
  order: 4;
  min-height: 0;
  grid-area: desc;
  text-align: right;
}

.module-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.35rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.96);
  order: 1;
  grid-area: icon;
  justify-self: end;
}

.module-icon--glow {
  margin: 0;
}

.module-card--poll .module-icon {
  background: #dfeaff;
}

.module-card--contest .module-icon {
  background: #dcf7fb;
}

.module-card--challenge .module-icon {
  background: #ffe9d2;
}

.module-card--store .module-icon {
  background: #ddf4e4;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-heading--dense {
  margin-bottom: 12px;
}

.section-heading strong {
  display: block;
  color: #161b33;
  font-size: 1rem;
  text-align: center;
}

.section-heading span {
  display: block;
  color: #7c8097;
  font-size: 0.82rem;
  margin-top: 3px;
  text-align: center;
}

.module-card.is-locked {
  opacity: 0.42;
  filter: grayscale(0.18);
  pointer-events: none;
  box-shadow: none;
}

.module-card.is-locked .module-icon {
  background: #eef1f7;
}

.store-actions-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.overview-grid--store-top {
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 14px;
}

.stat-card--store-overview-wrap {
  padding: 16px 14px;
  background: linear-gradient(160deg, #f8fbff, #ffffff);
  border-color: #dfe8f4;
  box-shadow: 0 10px 22px rgba(31, 35, 64, 0.05);
}

.stat-title--store-overview {
  margin-bottom: 12px;
  text-align: center;
}

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

.store-overview-item {
  text-align: center;
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid #e4ebf5;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.store-overview-item:nth-child(1) {
  background: linear-gradient(160deg, #eef8ff, #ffffff);
  border-color: #d8ebff;
}

.store-overview-item:nth-child(2) {
  background: linear-gradient(160deg, #f3f8ef, #ffffff);
  border-color: #deecd3;
}

.store-overview-item:nth-child(3) {
  background: linear-gradient(160deg, #fff8ee, #ffffff);
  border-color: #ffe3c5;
}

.store-overview-item:nth-child(4) {
  background: linear-gradient(160deg, #f8f3ff, #ffffff);
  border-color: #e8dcff;
}

.store-actions-grid--modules .store-action-card {
  background: #ffffff;
  border: 1px solid #e9edf5;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(31, 35, 64, 0.05);
  min-height: 128px;
  padding: 16px 14px;
  gap: 7px;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  text-align: center;
  align-content: start;
  justify-items: center;
  justify-content: start;
}

.store-actions-grid--modules .store-action-card strong {
  color: #1f2340;
  font-size: 1rem;
  text-align: center;
}

.store-actions-grid--modules .store-action-card span {
  color: #344054;
  font-weight: 500;
  line-height: 1.9;
  text-align: center;
}

.store-link-card {
  margin-bottom: 14px;
  background: linear-gradient(160deg, #eef8ff, #ffffff) !important;
  border-color: #d6ebff !important;
  text-align: center;
  min-height: auto;
  padding: 18px 16px;
  gap: 10px;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

.store-link-card strong {
  color: #1f2340;
  font-size: 1rem;
  text-align: center;
}

.store-actions-grid--modules .store-action-card:nth-child(1) {
  background: linear-gradient(160deg, #ece4ff, #ffffff) !important;
  border-color: #d6c6fb !important;
}

.store-actions-grid--modules .store-action-card:nth-child(2) {
  background: linear-gradient(160deg, #ffeecf, #ffffff) !important;
  border-color: #ffd69d !important;
}

.store-actions-grid--modules .store-action-card:nth-child(3) {
  background: linear-gradient(160deg, #ddf6e6, #ffffff) !important;
  border-color: #b9e8c7 !important;
}

.store-actions-grid--modules .store-action-card:nth-child(4) {
  background: linear-gradient(160deg, #ffe1ec, #ffffff) !important;
  border-color: #f7bfd6 !important;
}

.store-link-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: nowrap;
}

.store-link-actions button {
  flex: 1 1 0;
  min-width: 142px;
  font-size: 0.88rem;
  padding: 9px 14px;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

.poll-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #eff6ff);
  flex-wrap: wrap;
}

.poll-option input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.poll-option__result {
  width: 100%;
  margin-top: 4px;
}

.poll-option__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #667085;
  font-size: 0.84rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-actions .tiny-btn {
  font-size: 0.76rem;
  padding: 5px 8px;
}

.table-actions--stack {
  display: grid;
  grid-template-columns: 1fr;
}

.table-actions--stack .tiny-btn {
  width: 100%;
}

@media (max-width: 760px) {
  [data-store-view][hidden] {
    display: none !important;
  }

  .table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

.intro-panel {
  text-align: center;
  background: linear-gradient(160deg, #ffffff, #fcfbff);
  border-color: #efe6fb;
}

.intro-panel--app {
  box-shadow: var(--shadow-soft);
}

.intro-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.intro-sub {
  margin-top: 6px;
  color: #475569;
}

.bottom-nav {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 8px;
  background: rgba(239, 238, 252, 0.96);
  border: 1px solid #e4e1fb;
  border-radius: 20px;
  box-shadow: 0 -10px 28px rgba(31, 35, 64, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px 10px calc(3px + env(safe-area-inset-bottom));
  z-index: 1000;
  align-items: end;
}

.bottom-nav button {
  border: 0;
  border-radius: 16px;
  padding: 1px 4px 0;
  color: #5e6278;
  font-weight: 600;
  font-size: 0.76rem;
  background: transparent;
  display: grid;
  gap: 4px;
  justify-items: center;
  align-content: center;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  line-height: 1.2;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #59627a;
  font-size: 0.92rem;
}

.nav-icon--image {
  overflow: visible;
  background: transparent;
}

.nav-icon--image img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.bottom-nav .nav-home {
  color: #8f95aa;
}

.bottom-nav .nav-support {
  color: #8f95aa;
}

.bottom-nav .nav-settings {
  color: #8f95aa;
}

.nav-home--featured {
  transform: translateY(0);
}

.nav-home__orb {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dcd8fb;
  box-shadow: 0 8px 18px rgba(47, 42, 138, 0.10);
}

.nav-icon--home {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  color: #2f2a8a;
  font-size: 1rem;
}

.nav-icon--image-home img {
  width: 30px;
  height: 30px;
}

.app {
  padding-bottom: 94px;
}

.sponsor-panel {
  background: #ffffff;
  border-color: #eceef5;
}

.sponsor-panel--home {
  box-shadow: 0 8px 20px rgba(31, 35, 64, 0.04);
  overflow: hidden;
}

.sponsor-panel--home [data-dashboard-sponsor] {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-height: 0 !important;
  line-height: 0 !important;
}

.sponsor-host {
  min-height: 0 !important;
  line-height: 0 !important;
}

.sponsor-banner-shell {
  display: grid;
  gap: 12px;
}

.sponsor-banner-copy {
  display: grid;
  gap: 4px;
}

.sponsor-banner-copy strong {
  color: #1f2340;
  font-size: 0.95rem;
}

.sponsor-banner-copy span {
  color: #7c8097;
  font-size: 0.84rem;
  line-height: 1.9;
}

.sponsor-card {
  display: grid;
  gap: 8px;
}

.sponsor-title {
  font-weight: 700;
  color: #9a3412;
}

.sponsor-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid #fed7aa;
  border-radius: 10px;
}

.sponsor-link {
  justify-self: start;
  background: #ea580c;
  color: #fff !important;
  border-radius: 8px;
  padding: 6px 10px;
  text-decoration: none !important;
}

/* Hard overrides for the current home screen layout */
.hero-kpi-grid.hero-kpi-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.hero-kpi-grid--compact .hero-kpi {
  padding: 8px 6px !important;
  gap: 4px !important;
  justify-items: center !important;
  text-align: center !important;
}

.hero-kpi-grid--compact .hero-kpi__icon {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.9rem !important;
}

.hero-kpi-grid--compact .hero-kpi__value {
  font-size: 0.95rem !important;
}

.hero-kpi-grid--compact .hero-kpi__label {
  font-size: 0.62rem !important;
}

.sponsor-card--banner-only,
.sponsor-banner-link {
  display: block !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

.sponsor-card--banner-only {
  aspect-ratio: 15 / 7 !important;
  border-radius: 20px 20px 0 0 !important;
}

.sponsor-card--banner-only .sponsor-image {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 20px 20px 0 0 !important;
}

.sponsor-panel--home button[data-open-module="ad-requests"] {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.bottom-nav.bottom-nav--balanced {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: end !important;
  column-gap: 0 !important;
  padding-top: 8px !important;
  padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  border: 1.5px solid #d8d3fb !important;
  box-shadow: 0 18px 44px rgba(92, 72, 182, 0.18) !important;
}

.bottom-nav--balanced .nav-support--balanced,
.bottom-nav--balanced .nav-settings--balanced {
  justify-self: stretch !important;
  width: 78px !important;
  min-width: 78px !important;
  padding-inline: 0 !important;
}

.bottom-nav--balanced .nav-support--edge {
  justify-self: start !important;
  margin-inline-start: 4px !important;
}

.bottom-nav--balanced .nav-settings--edge {
  justify-self: end !important;
  margin-inline-end: 4px !important;
}

.bottom-nav--balanced .nav-home--balanced {
  margin-top: -44px !important;
  min-width: 100px !important;
  justify-self: center !important;
}

.bottom-nav--balanced .nav-home__orb--balanced {
  width: 84px !important;
  height: 84px !important;
  border: 1.5px solid #d9d0ff !important;
  box-shadow: 0 18px 42px rgba(138, 92, 246, 0.24) !important;
}

.store-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 14px;
}

.store-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.store-product {
  border: 1px solid #dbeafe;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #ffffff, #f8fbff);
  padding: 12px;
  display: grid;
  gap: 8px;
  min-height: 100%;
  align-content: start;
}

.store-catalog--featured .store-product,
.store-catalog--regular .store-product {
  grid-template-rows: auto auto minmax(56px, auto) auto;
}

.store-app {
  gap: 16px;
}

.store-announcement {
  border: 1px solid #f3d38c;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8dc, #fff1b8);
  color: #8a5a00;
  padding: 12px 14px;
  text-align: center;
  line-height: 1.9;
  font-weight: 700;
}

.store-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px 18px;
  background: linear-gradient(145deg, #fff7f0 0%, #ffffff 42%, #eef4ff 100%);
  border: 1px solid #f0e6da;
  box-shadow: 0 18px 38px rgba(31, 35, 64, 0.08);
}

.store-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.store-hero__headline {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.store-hero__logo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(31, 35, 64, 0.12);
  background: #fff;
}

.store-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-hero__logo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(31, 35, 64, 0.12);
  background: #fff;
}

.store-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #ecdcc9;
  color: #9a5f27;
  font-size: 0.8rem;
  font-weight: 700;
}

.store-hero__welcome {
  margin: 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.store-hero__status,
.store-hero__description {
  margin: 0;
  color: #576074;
  line-height: 1.75;
  text-align: center;
}

.store-hero__status:empty {
  display: none;
}

.store-hero__status:empty {
  display: none;
}

.store-hero__stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 2px;
  align-items: center;
}

.store-mini-stat {
  border: 1px solid #e7ebf4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 12px 10px;
  text-align: center;
  display: grid;
  gap: 4px;
}

.store-mini-stat__label {
  color: #667085;
  font-size: 0.78rem;
}

.store-mini-stat strong {
  color: #1f2340;
  font-size: 1.05rem;
}

.store-mini-stat--cart {
  min-width: 120px;
}

.store-hero__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.store-hero-actions-panel {
  display: grid;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid #e6ebf5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  box-shadow: 0 12px 28px rgba(31, 35, 64, 0.06);
}

.store-top-action {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 9px 12px;
  cursor: pointer;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  flex-direction: column;
  text-align: center;
  line-height: 1.45;
}

.store-top-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 1rem;
  line-height: 1;
}

.store-top-action span:last-child {
  white-space: normal;
}

.store-top-action--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.store-top-action--warning {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.store-top-action--channel {
  background: linear-gradient(135deg, #10b981, #059669);
}

.store-top-action--support {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.store-top-action--ghost {
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid #dbe5ff;
}

.store-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
}

.store-hero__glow--one {
  inset: auto auto -36px -18px;
  width: 120px;
  height: 120px;
  background: rgba(255, 186, 131, 0.35);
}

.store-hero__glow--two {
  inset: -28px -12px auto auto;
  width: 140px;
  height: 140px;
  background: rgba(125, 176, 255, 0.28);
}

.store-sponsor-shell {
  display: grid;
}

.store-feature-panel,
.store-catalog-panel {
  gap: 12px;
}

.panel.store-feature-panel {
  border-color: #d43757 !important;
  background: linear-gradient(180deg, #e94b6b, #cf3453) !important;
  box-shadow: 0 16px 32px rgba(183, 35, 24, 0.18);
}

.store-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.store-section-head--compact {
  margin-bottom: 10px;
}

.store-section-head__eyebrow {
  display: block;
  color: #8b5cf6;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.store-feature-panel .store-section-head__eyebrow,
.store-feature-panel h2 {
  color: #ffffff;
}

.store-feature-panel .store-section-head {
  margin-bottom: 8px;
}

.store-feature-panel .store-section-head__eyebrow {
  color: #ffffff;
  font-size: 1rem;
}

.store-feature-panel .store-catalog--featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(239, 154, 168, 0.48);
}

.store-catalog--featured {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 48%);
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0.18));
  border-radius: 20px;
  padding: 10px 8px 8px;
}

.store-catalog--featured::-webkit-scrollbar {
  height: 10px;
}

.store-catalog--featured::-webkit-scrollbar-thumb {
  background: #f0a1af;
  border-radius: 999px;
}

.store-catalog--featured .store-product {
  scroll-snap-align: start;
}

.store-catalog--regular {
  grid-template-columns: 1fr;
}

.store-product__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.store-product__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #3154a5;
  font-size: 0.78rem;
  font-weight: 700;
}

.store-product__badge--accent {
  background: #fff1dc;
  color: #b45309;
}

.store-product__image-wrap {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef2ff;
  height: 180px;
}

.store-product__image-wrap--empty {
  position: relative;
}

.store-product__image-wrap--empty::after {
  content: "بدون تصویر";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 0.82rem;
}

.store-product__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-product__price-row .price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-product__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.store-product__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.store-product__link,
.store-product__hint {
  font-size: 0.82rem;
}

.store-product__hint {
  color: #64748b;
}

.store-product h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #1e3a8a;
  line-height: 1.8;
  min-height: 3.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-product .price {
  color: #0f766e;
  font-weight: 700;
}

.store-product .meta {
  color: #64748b;
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.store-product button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

.store-cart-panel {
  position: sticky;
  top: 10px;
  align-self: start;
  border-radius: 24px;
  border: 1px solid #e6ebf5;
  background: linear-gradient(180deg, #ffffff, #fafcff);
  box-shadow: 0 16px 34px rgba(31, 35, 64, 0.06);
}

.store-cart-panel--page h3 {
  margin-top: 0;
}

.store-checkout-page {
  gap: 14px;
}

.store-tracking-page {
  gap: 14px;
}

.store-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  padding-bottom: 94px;
}

.store-checkout-actions {
  margin-top: 12px;
}

.store-checkout-form .form-field,
.store-checkout-form .store-coupon-preview {
  width: 100%;
}

.store-checkout-bottom {
  position: sticky;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid #dbe5ff;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(31, 35, 64, 0.12);
  backdrop-filter: blur(10px);
}

.store-checkout-bottom__price {
  display: grid;
  gap: 4px;
}

.store-checkout-bottom__price span {
  color: #667085;
  font-size: 0.82rem;
}

.store-checkout-bottom__price strong {
  color: #0f172a;
  font-size: 1.05rem;
}

.store-checkout-button--bottom {
  min-width: 200px;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-item {
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  display: grid;
  gap: 4px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.cart-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2ff;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-main {
  min-width: 0;
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cart-item-head strong {
  font-size: 0.9rem;
}

.cart-item-note {
  color: #64748b;
  font-size: 0.78rem;
}

.cart-item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cart-item-actions button {
  background: #475569;
  padding: 5px 10px;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

.cart-item-actions button[data-remove] {
  background: #b91c1c;
}

.cart-summary {
  margin-top: 10px;
  border-top: 1px dashed #bfdbfe;
  padding-top: 10px;
  color: #0f172a;
  font-size: 0.9rem;
  display: grid;
  gap: 8px;
}

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

.store-checkout-form {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.store-checkout-form .form-field {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 12px;
  background: #fff;
}

.store-checkout-form .form-label,
.store-checkout-form .form-hint {
  width: 100%;
  display: block;
}

.store-checkout-form input,
.store-checkout-form select,
.store-checkout-form textarea {
  width: 100%;
  max-width: 100%;
}

.store-checkout-form > button,
.store-order-lookup-form > button,
.store-manual-proof-form > button {
  width: 100%;
}

.store-checkout-button {
  background: linear-gradient(135deg, #0f766e, #0f9b8e) !important;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif !important;
}

.store-coupon-preview {
  margin-top: -2px;
}

.store-manual-payment,
.store-order-lookup {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed #d8e1f2;
}

.store-gateway-preview {
  display: grid;
  gap: 10px;
}

.store-manual-payment__head,
.store-order-lookup__head {
  display: grid;
  gap: 4px;
}

.store-manual-payment__head strong,
.store-order-lookup__head strong {
  color: #1f2340;
  font-size: 1rem;
}

.store-manual-payment__head span,
.store-order-lookup__head span {
  color: #667085;
  line-height: 1.9;
  font-size: 0.85rem;
}

.store-manual-payment__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-lookup-card {
  display: grid;
  gap: 12px;
}

.store-order-proof {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed #d8e1f2;
}

.store-copy-card-btn {
  width: 100%;
  grid-column: 1 / -1;
}

.store-lookup-items {
  display: grid;
  gap: 8px;
}

.store-lookup-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #e4e9f4;
  border-radius: 14px;
  padding: 10px 12px;
  background: #f9fbff;
}

.sponsor-card--storefront {
  border-radius: 22px;
  background: linear-gradient(140deg, #ffffff, #f8fbff);
  border: 1px solid #e5eaf4;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(31, 35, 64, 0.05);
}

.sponsor-card--storefront .sponsor-title {
  margin-bottom: 6px;
}

.sponsor-caption {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.8;
}

.store-app-footer {
  margin-bottom: 28px;
}

.store-powered-by {
  justify-self: center;
  color: #6b7280;
}

.store-powered-by__link {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

[data-store-view][hidden] {
  display: none !important;
}

.required-mark {
  color: #dc2626;
}

.store-checkout-page [data-store-order-result].empty,
.store-checkout-page [data-store-manual-result].empty,
.store-checkout-page [data-store-order-lookup-result].empty {
  margin-top: 12px;
}

.store-footer-note {
  text-align: center;
  color: #6b7280;
  line-height: 1.9;
}

h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 700;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.panel--overview,
.panel--tools {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.panel-head--compact {
  margin-bottom: 12px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-head button {
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif !important;
}

.inline-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}

.settings-header {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-align: center;
}

.settings-header h2 {
  margin: 0;
  text-align: center;
}

.settings-back-button,
.settings-save-button {
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif !important;
}

.settings-card {
  border: 1px solid #e6ebf5;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fafcff);
  box-shadow: 0 12px 28px rgba(31, 35, 64, 0.06);
  padding: 16px 14px;
  display: grid;
  gap: 14px;
}

.settings-card--compact {
  padding: 12px;
  gap: 10px;
}

.section-action-row {
  display: flex;
  justify-content: center;
}

.settings-card__head {
  display: grid;
  gap: 6px;
  text-align: center;
}

.settings-card__head h3 {
  margin: 0;
  color: #202547;
  font-size: 1rem;
}

.settings-card__head p {
  margin: 0;
  color: #667085;
  line-height: 1.9;
  font-size: 0.88rem;
}

.settings-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-card .form-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  align-items: stretch;
}

.settings-card .form-field--full {
  grid-column: 1 / -1;
}

.settings-card .form-label {
  color: #24314f;
  font-size: 0.9rem;
  font-weight: 700;
}

.settings-card .form-hint {
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.8;
}

.form-field--checkbox .checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  line-height: 1.9;
}

.inline-form > * {
  min-width: 0;
}

.inline-form input,
.inline-form select,
.inline-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.9;
  background: #fff;
}

.inline-form input:focus,
.inline-form select:focus,
.inline-form textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.inline-form textarea {
  min-height: 72px;
  resize: vertical;
}

.inline-form button {
  background: var(--ok);
}

.settings-save-button {
  justify-self: center;
  min-width: 180px;
}

.settings-save-button--danger {
  background: #ef4444 !important;
}

.settings-save-button--ghost {
  background: #eef2ff !important;
  color: #3730a3 !important;
}

.settings-save-button--soft {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6) !important;
  color: #be123c !important;
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.12);
}

.detail-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-row {
  border: 1px solid #e7ebf4;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  padding: 14px 12px;
  display: grid;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(31, 35, 64, 0.05);
}

.record-row--toggle {
  cursor: pointer;
}

.record-row--toggle.is-open {
  border-color: #cfdcff;
  box-shadow: 0 12px 24px rgba(74, 88, 217, 0.08);
}

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

.record-row__cover {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef2ff;
}

.record-row--product {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
}

.record-row--product .record-row__cover {
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  aspect-ratio: auto;
  border-radius: 18px;
}

.record-row--product .record-row__head,
.record-row--product .record-row__meta,
.record-row--product .record-row__actions {
  grid-column: 2;
}

.record-row--product .record-row__meta {
  gap: 6px;
  font-size: 0.78rem;
}

.record-row--product .record-row__actions {
  padding-top: 2px;
}

.record-row__cover img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.record-row__head strong {
  color: #1f2340;
  font-size: 0.96rem;
}

.record-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3f3cbb;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.record-row__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: #475467;
  font-size: 0.84rem;
  line-height: 1.8;
}

.record-row__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 6px;
  border-top: 1px dashed #dbe3f1;
}

.detail-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-head strong {
  text-align: center;
  color: #1f2340;
  font-size: 1rem;
}

.detail-cover {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
  background: #eef2ff;
}

.detail-meta,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-meta span,
.detail-box {
  border: 1px solid #e5eaf5;
  border-radius: 14px;
  background: #f9fbff;
  padding: 10px 12px;
  color: #475467;
  line-height: 1.9;
  text-align: center;
}

.detail-box {
  display: grid;
  gap: 4px;
}

.detail-box--full {
  grid-column: 1 / -1;
}

.detail-box strong {
  color: #1f2340;
  word-break: break-word;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
}

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: right;
  padding: 10px 8px;
  white-space: normal;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.8;
  vertical-align: top;
}

thead th {
  background: #faf7fd;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

.tiny-btn {
  border: 0;
  border-radius: 8px;
  background: #4f46e5;
  color: #fff;
  padding: 7px 12px;
  cursor: pointer;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  font-size: 0.83rem;
}

.tiny-btn--danger {
  background: #ef4444;
}

.tiny-btn--ghost {
  background: #eef2ff;
  color: #3730a3;
}

.tiny-btn--plan {
  background: #f4ecff;
  color: #7c3aed;
  border: 1px solid #e6d8ff;
  font-weight: 600;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  color: #64748b;
  background: #f8fafc;
  line-height: 1.9;
  text-align: center;
}

.empty.ok {
  border-style: solid;
  border-color: #86efac;
  background: #ecfdf5;
  color: #065f46;
}

.empty.error {
  border-style: solid;
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.empty::before {
  content: "◌";
  display: block;
  font-size: 1.4rem;
  color: #c5bfd5;
  margin-bottom: 4px;
}

.empty.ok::before,
.empty.error::before {
  display: none;
}

.msg-list {
  display: grid;
  gap: 8px;
}

.msg {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.msg-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 4px;
}

.msg-body {
  white-space: pre-wrap;
}

.app-footer {
  display: grid;
  gap: 10px;
  margin-bottom: 96px;
}

.version-chip {
  justify-self: center;
  border: 1px solid #eadff7;
  border-radius: 999px;
  background: #ffffff;
  color: #6d6880;
  padding: 10px 14px;
  box-shadow: var(--shadow-soft);
}

.version-chip strong {
  font-weight: 700;
}

.version-toast {
  justify-self: center;
  max-width: 420px;
  border: 1px solid #f1d8e7;
  border-radius: 16px;
  background: #fff8fb;
  color: #7a5163;
  padding: 12px 14px;
  text-align: center;
  line-height: 1.9;
  box-shadow: var(--shadow-soft);
}

.interactive-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 4px 18px;
  color: #7c8097;
  font-size: 0.86rem;
}

.footer-link-btn {
  border: 0;
  background: transparent;
  color: #e91e63;
  font: inherit;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

.footer-link-btn:hover {
  color: #be185d;
  background: transparent;
}

/* Interactive pages polish */
.inline-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  line-height: 1.9;
}

.store-checkout-form label.form-field {
  display: grid !important;
}

.inline-form input[type="radio"],
.inline-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.panel a {
  color: #2563eb;
  text-decoration: none;
}

.panel a:hover {
  text-decoration: underline;
}

[data-challenge-post-link],
[data-contest-description],
[data-challenge-description] {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 10px;
  padding: 10px;
}

[data-platform-ad],
[data-tenant-ad] {
  display: grid;
  gap: 8px;
}

[data-platform-ad] img,
[data-tenant-ad] img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  max-width: 100%;
  border-radius: 12px;
}

pre {
  margin: 0;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  max-height: 280px;
  overflow: auto;
  border-right: 4px solid #cbd5e1;
}

img,
svg,
canvas,
iframe {
  max-width: 100%;
}

.panel button[data-jalali-picker] {
  background: #0f766e;
}

.panel button[data-jalali-picker]:hover {
  background: #0d5f59;
}

.jalali-picker-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 16px;
}

.jalali-picker-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.35);
  padding: 14px;
}

.jalali-picker-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #1e3a8a;
}

.jalali-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.jalali-grid label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  color: #334155;
}

.jalali-grid select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  font-family: inherit;
}

.jalali-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.jalali-actions button[data-jp="cancel"] {
  background: #e2e8f0;
  color: #0f172a;
}

.jalali-actions button[data-jp="cancel"]:hover {
  background: #cbd5e1;
}

@media (max-width: 760px) {
  .app {
    padding: 12px;
    gap: 12px;
  }

  .hero {
    border-radius: 14px;
    padding: 18px 14px;
  }

  .hero-checklist {
    grid-template-columns: 1fr 1fr;
  }

  .module-grid--home,
  .module-grid--featured {
    grid-template-columns: 1fr;
  }

  .module-card--store {
    grid-column: auto;
    min-height: auto;
  }

  .stat-card__top {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-action-grid,
  .overview-grid,
  .overview-grid--home-kpis {
    grid-template-columns: 1fr;
  }

  .overview-grid--store-top,
  .store-actions-grid {
    grid-template-columns: 1fr;
  }

  .store-overview-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-fields-grid {
    grid-template-columns: 1fr;
  }

  .store-link-actions {
    flex-wrap: wrap;
  }

  .hero-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-kpi-grid.hero-kpi-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .record-row__meta,
  .detail-meta,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .record-row--product {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 11px;
  }

  .record-row--product .record-row__cover {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .detail-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .section-heading,
  .panel-head,
  .store-link-actions,
  .cart-item-head,
  .cart-item-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }

  td {
    display: grid;
    grid-template-columns: minmax(88px, 108px) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 9px 10px;
    border-bottom: 1px dashed #ebe7f4;
    font-size: 0.84rem;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-title);
    color: #6a7088;
    font-weight: 700;
  }

  .panel {
    border-radius: 12px;
    padding: 12px;
  }

  .home-topbar,
  .home-hero-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-card {
    border-radius: 18px;
    padding: 14px;
  }

  .hero-lead,
  .hero h1 {
    text-align: center !important;
  }

  .hero-inline-status {
    margin: 0 auto;
  }

  .stat-card--mini {
    grid-column: auto;
  }

  .hero h1 {
    font-size: 1.35rem;
  }

  h2 {
    font-size: 1rem;
  }

  .module-card {
    min-height: 132px;
    padding: 12px 10px;
  }

  .module-card strong {
    font-size: 0.94rem;
  }

  .module-card span,
  .stat-meta,
  .store-product .meta,
  .tiny-btn,
  .bottom-nav button {
    font-size: 0.82rem;
  }

  .inline-form input,
  .inline-form select,
  .inline-form textarea,
  .actions button,
  .panel button {
    font-size: 0.9rem;
  }

  .app-footer {
    margin-bottom: 104px;
  }

  .jalali-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .store-cart-panel {
    position: static;
  }

  .store-checkout-layout {
    grid-template-columns: 1fr;
  }

  .store-manual-payment__grid,
  .store-lookup-item {
    grid-template-columns: 1fr;
  }

  .store-hero__stats,
  .store-product__meta-grid,
  .detail-meta,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .store-product__actions,
  .store-section-head,
  .cart-summary__row {
    flex-direction: column;
    align-items: stretch;
  }

  .store-hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-catalog--featured {
    grid-auto-columns: 84%;
  }

  .cart-item-row {
    grid-template-columns: 1fr;
  }

  .store-checkout-bottom {
    flex-direction: column;
    align-items: stretch;
    bottom: 6px;
  }

  .store-checkout-button--bottom {
    min-width: 0;
    width: 100%;
  }
}

.toast-stack {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 10000;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 28px));
}

.toast {
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
  font-size: 0.9rem;
  animation: toast-in 0.2s ease-out;
}

.toast--success { background: var(--ok); }
.toast--error { background: var(--danger); }
.toast--info { background: #2563eb; }
.toast--warn { background: var(--warn); }

@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
