:root {
  --bg: #05080f;
  --bg-elevated: #0a1018;
  --card: #0e1520;
  --border: #1a2433;
  --text: #eef3f9;
  --muted: #8a9bb0;
  --accent: #2dd4bf;
  --accent-hover: #14b8a6;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --danger: #ef4444;
  --success: #22c55e;
  --warn: #f59e0b;
  --glow: rgba(45, 212, 191, 0.22);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --max: 1320px;
  font-family: var(--font-body);
}

html[lang="fa"] {
  --font-display: "Vazirmatn", Tahoma, sans-serif;
  --font-body: "Vazirmatn", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.landing-mode {
  background: var(--bg);
}

.app {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 2rem 4rem;
}
.app.narrow { max-width: 960px; }

@media (max-width: 640px) {
  .app { padding: 1rem 1.1rem 3rem; }
}

.header { text-align: center; margin-bottom: 2rem; }
.header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.subtitle { color: var(--muted); margin: 0.5rem 0 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  animation: riseIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

label { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.5rem; }
input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #080d15;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.985); }
.btn.is-loading { gap: 0.55rem; }
.btn-primary {
  background: var(--accent);
  color: #042f2e;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 8px 28px var(--glow);
}
.spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(4, 47, 46, 0.28);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
  flex: 0 0 auto;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
  border-color: #334155;
  background: rgba(255, 255, 255, 0.03);
}
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }

.row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-active { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-revoked { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-expired { background: rgba(245,158,11,0.15); color: var(--warn); }
.badge-pending { background: rgba(245,158,11,0.15); color: var(--warn); }
.badge-approved { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-rejected { background: rgba(239,68,68,0.15); color: var(--danger); }

.error { color: var(--danger); font-size: 0.875rem; margin-top: 0.75rem; }
.success { color: var(--success); font-size: 0.875rem; margin-top: 0.75rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th, .table td { padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; }
.nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 0.875rem; }
.key-display {
  font-family: ui-monospace, monospace;
  background: #080d15;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed var(--accent);
  word-break: break-all;
  margin: 1rem 0;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.text-danger { color: var(--danger); }
.text-warn { color: var(--warn); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: flex-start; justify-content: center; z-index: 100;
  padding: 1rem;
  overflow-y: auto;
  animation: fadeIn 0.22s ease;
  backdrop-filter: blur(6px);
}
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.5rem; max-width: 440px; width: 100%;
  margin: auto;
  max-height: min(92vh, 900px);
  overflow-y: auto;
  animation: slideUp 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.modal-lg { max-width: 640px; }

.pricing-plan-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  background: rgba(10, 16, 24, 0.45);
}
.pricing-plan-card:last-child { margin-bottom: 0; }
.pricing-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.pricing-plan-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}
.pricing-plan-head .muted { font-size: 0.75rem; }
.pricing-grid-labels {
  display: grid;
  grid-template-columns: 72px repeat(3, 1fr);
  gap: 0.5rem;
  align-items: end;
  margin-bottom: 0.35rem;
}
.pricing-grid-labels span {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
}
.pricing-grid-labels span:first-child { text-align: start; }
.pricing-row {
  display: grid;
  grid-template-columns: 72px repeat(3, 1fr);
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
}
.pricing-row label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.pricing-row input { margin: 0; }
.pricing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
@media (max-width: 640px) {
  .pricing-grid-labels,
  .pricing-row {
    grid-template-columns: 56px repeat(3, minmax(0, 1fr));
  }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.55; }
}

.action-menu { position: relative; display: inline-block; }
.action-dropdown {
  position: absolute; right: 0; top: 100%; margin-top: 0.25rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  min-width: 160px; z-index: 10; box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  transform-origin: top right;
}
.action-dropdown:not([hidden]) {
  animation: riseIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.action-dropdown button {
  display: block; width: 100%; text-align: left; padding: 0.6rem 1rem;
  background: none; border: none; color: var(--text); cursor: pointer; font-size: 0.875rem;
  font-family: inherit;
}
.action-dropdown button:hover { background: var(--accent-soft); }
.action-dropdown button.danger { color: var(--danger); }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.875rem;
  font-family: inherit; transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.tab-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.tab-panel.tab-in { animation: riseIn 0.48s cubic-bezier(0.22, 1, 0.36, 1); }

body.dash-mode {
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(45, 212, 191, 0.14), transparent 55%),
    var(--bg);
}
.dash {
  max-width: 1120px;
  margin: 0 auto;
  animation: dashIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes dashIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.dash-tabs {
  position: sticky;
  top: 0.75rem;
  z-index: 30;
  display: flex;
  gap: 0.3rem;
  padding: 0.35rem;
  margin-bottom: 1.35rem;
  background: rgba(8, 13, 21, 0.78);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.dash-tabs .tab-btn {
  flex: 1 1 auto;
  border: none;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
}
.dash-tabs .tab-btn.active {
  background: var(--accent);
  color: #042f2e;
  box-shadow: 0 8px 22px rgba(45, 212, 191, 0.28);
}
.dash .card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 26, 40, 0.98), rgba(8, 14, 22, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.dash .tab-panel.tab-in .card {
  animation: riseIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dash .tab-panel.tab-in .card:nth-child(2) { animation-delay: 0.1s; }
.dash .tab-panel.tab-in .card:nth-child(3) { animation-delay: 0.18s; }
@media (max-width: 800px) {
  .dash-tabs { position: static; }
  .dash-tabs .tab-btn { flex: 1 1 30%; }
}
.table tbody tr { transition: background 0.2s ease; }
.table tbody tr:hover { background: rgba(45, 212, 191, 0.045); }

.chip {
  display: inline-block; padding: 0.15rem 0.5rem; margin: 0.1rem;
  border-radius: 6px; background: var(--accent-soft); color: #5eead4; font-size: 0.7rem;
}
.chip-muted { background: rgba(139,147,167,0.15); color: var(--muted); }
.chip-ok { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.module-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem; max-height: 220px; overflow: auto; padding: 0.5rem;
  border: 1px solid var(--border); border-radius: 12px; background: #080d15;
}
.module-grid label { display: flex; gap: 0.4rem; align-items: center; margin: 0; color: var(--text); font-size: 0.8rem; }
.module-grid input { width: auto; }
.plan-group { margin-bottom: 1.25rem; }
.plan-group h4 {
  margin: 0 0 0.5rem; color: var(--muted); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* —— Landing shell —— */
body.landing-mode .app {
  max-width: none;
  padding: 0;
}

.landing-wrap {
  width: 100%;
}

.landing-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 640px) {
  .landing-inner { padding: 0 1.15rem; }
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  position: relative;
  z-index: 20;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }
.brand .brand-sub { color: var(--muted); font-size: 0.72em; font-weight: 500; margin-inline-start: 0.15rem; }
.nav-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(8, 13, 21, 0.6);
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
}
.lang-toggle button.active {
  background: var(--accent-soft);
  color: var(--text);
}

/* —— Full-bleed Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(45, 212, 191, 0.16), transparent 58%),
    radial-gradient(ellipse 45% 40% at 85% 60%, rgba(56, 189, 248, 0.07), transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 70%, rgba(45, 212, 191, 0.05), transparent 50%),
    linear-gradient(180deg, #05080f 0%, #070b12 55%, #05080f 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 20%, transparent 75%);
  animation: gridPulse 8s ease-in-out infinite;
}

.hero-bg::after {
  content: "";
  position: absolute;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: 12%;
  left: 50%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2), transparent 68%);
  filter: blur(40px);
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-top {
  position: relative;
  z-index: 2;
}

.hero-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem 0 4rem;
}

.hero-inner {
  width: 100%;
  max-width: 920px;
  animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 1.35rem;
}
html[lang="fa"] .hero-brand {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-brand span { color: var(--accent); }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 1rem;
  max-width: 28ch;
}

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}

/* —— Pricing —— */
.pricing-section {
  position: relative;
  padding: 4rem 0 5rem;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}
.section-head-center {
  max-width: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-head-center .section-lead {
  max-width: 36rem;
}

.duration-toggle {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border);
  gap: 0.2rem;
}
.duration-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.duration-btn:hover:not(.active) { color: var(--text); }
.duration-btn.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
html[lang="fa"] .duration-btn.active {
  color: #0f172a;
}

.price-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.price-tagline {
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.price-compare {
  display: block;
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}
.feature-heading {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}
.feature-list li.mod-off {
  color: var(--muted);
  opacity: 0.55;
}
.feature-list li.mod-off span {
  text-decoration: line-through;
  text-decoration-color: rgba(148, 163, 184, 0.35);
}
.feature-check {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--accent);
}
.feature-x {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: rgba(148, 163, 184, 0.55);
}

.price-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.18);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.price-card {
  position: relative;
  overflow: hidden;
}
.price-card-featured {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.12), 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}
.price-card-featured .featured-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%, rgba(45, 212, 191, 0.22), transparent 70%);
  pointer-events: none;
}
.price-card-featured h3 {
  color: #ecfeff;
}
.price-buy.btn-ghost {
  border-color: rgba(148, 163, 184, 0.35);
}

.hero-kicker,
.hero-headline,
.hero-lead,
.hero-cta {
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-headline { animation-delay: 0.08s; }
.hero-lead { animation-delay: 0.16s; }
.hero-cta { animation-delay: 0.26s; }
.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
html[lang="fa"] .hero-kicker {
  letter-spacing: 0.08em;
  text-transform: none;
}

.how-section {
  padding: 4.5rem 0 2rem;
  position: relative;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.how-step {
  padding: 1.35rem 1.4rem;
  background: linear-gradient(180deg, rgba(16, 26, 40, 0.92), rgba(8, 14, 22, 0.96));
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  animation: riseIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.how-step:nth-child(2) { animation-delay: 0.08s; }
.how-step:nth-child(3) { animation-delay: 0.16s; }
.how-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.how-step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.how-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
@media (max-width: 800px) {
  .how-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1.75rem 0 2.25rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-brand span { color: var(--accent); }
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text); }
.footer-sep {
  color: rgba(148, 163, 184, 0.4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.section-lead {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}

.price-card {
  background: linear-gradient(180deg, rgba(14, 21, 32, 0.95), rgba(10, 16, 24, 0.98));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  animation: riseIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.price-card:nth-child(2) { animation-delay: 0.05s; }
.price-card:nth-child(3) { animation-delay: 0.1s; }
.price-card:nth-child(4) { animation-delay: 0.15s; }
.price-card:hover {
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.1), 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}
.price-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  font-weight: 600;
}
.price-card .muted {
  margin: 0;
  line-height: 1.55;
}
.price-amounts { margin: 1.35rem 0 1.5rem; }
.price-main {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}
.price-card .btn { margin-top: auto; width: 100%; }

.gate-card, .checkout-card {
  max-width: 540px;
  margin: 2rem auto;
  animation: slideUp 0.3s ease;
}

.pay-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
.pay-option {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  cursor: pointer;
  background: #080d15;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pay-option.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.pay-option strong { display: block; margin-bottom: 0.25rem; }
.checkout-topbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.25rem;
}
.checkout-back {
  padding-inline: 0.65rem;
}
.license-status-card {
  background: rgba(8, 13, 21, 0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 0.85rem 0 1rem;
}
.license-status-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.proof-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 13, 21, 0.55);
  margin-bottom: 0.75rem;
}
.proof-box {
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 16px;
  background: rgba(45, 212, 191, 0.05);
}
.pay-details {
  margin: 0.5rem 0 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  background: rgba(8, 13, 21, 0.4);
}
.pay-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.pay-details[open] summary { margin-bottom: 0.65rem; }
.tx-hash-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}
.checkout-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 1.35rem;
  padding: 0;
}
.checkout-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
.checkout-steps .step-dot {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
}
.checkout-steps li.active { color: var(--text); }
.checkout-steps li.active .step-dot {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.checkout-steps li.done .step-dot {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.checkout-plan-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.checkout-amount {
  text-align: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.checkout-amount strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}
[dir="rtl"] .checkout-amount { text-align: start; align-items: flex-start; }

.pay-visual-stack { margin: 1rem 0; }
.pay-actions-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.pay-copy-block {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #080d15;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem;
}
.pay-mono {
  word-break: break-all;
  color: var(--accent);
  font-size: 0.9rem;
}
.pay-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: #080d15;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem;
}
.pay-qr img {
  border-radius: 8px;
  background: #fff;
  width: 132px;
  height: 132px;
}
.pay-hint { margin: 0.75rem 0 0; font-size: 0.85rem; }

.bank-card {
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.18), transparent 45%),
    linear-gradient(160deg, #0f172a 0%, #111827 55%, #0b1220 100%);
  border: 1px solid rgba(45, 212, 191, 0.28);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.bank-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bank-card-chip {
  width: 2.2rem;
  height: 1.55rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 40%, #d97706);
  opacity: 0.9;
}
.bank-card-bank {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
}
.bank-card-number {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  letter-spacing: 0.12em;
  font-weight: 650;
  margin: 1.1rem 0;
}
.bank-card-bottom {
  display: flex;
  justify-content: space-between;
}
.bank-card-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.crypto-wallet {
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    linear-gradient(160deg, #0b1220, #0a1018);
  border: 1px solid rgba(56, 189, 248, 0.28);
}
.crypto-wallet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.crypto-badge {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 700;
}
.crypto-address {
  display: block;
  word-break: break-all;
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.5;
}
.crypto-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.crypto-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: start;
  transition: border-color 0.15s, background 0.15s;
}
.crypto-pill strong { font-size: 0.9rem; }
.crypto-pill span { font-size: 0.75rem; color: var(--muted); }
.crypto-pill.active {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.1);
}
.crypto-wallets-admin {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.crypto-wallet-row {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.crypto-wallet-row-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.license-table td { vertical-align: middle; }
.license-table .nowrap { white-space: nowrap; }
.license-table .lic-key { min-width: 12rem; max-width: 22rem; }
.license-table .lic-ips {
  white-space: normal;
  min-width: 8rem;
}
.license-table .ip-inline {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}
.ip-chip-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.35rem 0;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.portal-ips { margin-top: 0.5rem; }

.ad-product-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.35rem 0 0.75rem;
}
.ad-product-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}
.ads-slug {
  font-size: 0.72rem;
  opacity: 0.75;
  direction: ltr;
}
.ads-hero-card .ads-api-hint {
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 13, 21, 0.7);
}
.ads-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0.25rem;
}
@media (max-width: 800px) {
  .ads-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ads-kpi-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.08), rgba(10, 16, 24, 0.4));
}
.ads-kpi-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 0.25rem;
}
.ads-kpi-item strong {
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--text);
}
.ads-kpi-modal { margin-bottom: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#ads-list { min-height: 1.5rem; margin-top: 0.85rem; }
.ads-campaign-list { display: flex; flex-direction: column; gap: 0.85rem; }
.ads-campaign {
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: #0a1420;
}
.ads-campaign-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.85rem 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .ads-campaign-top { grid-template-columns: 1fr; }
}
.ads-campaign-title {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.ads-campaign-body {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: pre-wrap;
}
.ads-campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.ads-campaign-stats {
  display: flex;
  gap: 0.75rem;
  min-width: 140px;
}
.ads-campaign-stats > div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  min-width: 64px;
  text-align: center;
}
.ads-campaign-stats strong { display: block; font-size: 1.05rem; }
.ads-campaign-actions { margin: 0; }
.ads-campaign-edit {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}
.ads-placement-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}
.ads-placement-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 13, 21, 0.55);
}
.ads-placement-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: center;
}
.ads-stats-overlay .ads-stats-modal {
  max-width: min(960px, 96vw);
  width: 100%;
}
.ads-stats-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.ads-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.ads-range-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.ads-range-btn.active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}
.ads-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 800px) {
  .ads-stats-grid { grid-template-columns: 1fr; }
}
.ads-stats-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  background: rgba(8, 13, 21, 0.55);
}
.ads-stats-panel h4 {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}
.ads-stats-panel-wide { grid-column: 1 / -1; }
.ads-chart-svg { width: 100%; height: auto; display: block; }
.ads-chart-axis { stroke: var(--border); stroke-width: 1; }
.ads-chart-line { stroke-width: 2.2; }
.ads-chart-line-impr { stroke: #2dd4bf; }
.ads-chart-line-click { stroke: #7dd3fc; stroke-dasharray: 4 3; }
.ads-chart-label { fill: var(--muted); font-size: 10px; }
.ads-chart-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.ads-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-inline-end: 0.35rem;
}
.ads-dot-impr { background: #2dd4bf; }
.ads-dot-click { background: #7dd3fc; }
.ads-bars { display: flex; flex-direction: column; gap: 0.65rem; }
.ads-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}
.ads-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.ads-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
}
.ad-badge-pill {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}
.license-table .lic-key code { white-space: nowrap; }
.license-table .lic-notes {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: start;
}
.expiry-detail {
  display: block;
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.license-list-tools {
  margin: 0 0 1rem;
}
.license-list-tools input {
  width: 100%;
  max-width: 28rem;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.checkout-pending {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}
.pending-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  font-size: 1.35rem;
  font-weight: 700;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.order-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: rgba(8, 13, 21, 0.55);
}
.order-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.order-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
[dir="rtl"] .order-item-meta { align-items: flex-start; }

.receipt-preview {
  max-width: 100%;
  max-height: 240px;
  border-radius: 10px;
  margin-top: 0.75rem;
  border: 1px solid var(--border);
}

[dir="rtl"] .table th,
[dir="rtl"] .table td { text-align: right; }
[dir="rtl"] .action-dropdown { right: auto; left: 0; }
[dir="rtl"] .action-dropdown button { text-align: right; }

html[lang="fa"] body {
  font-feature-settings: "ss01";
}

/* ═══════════ Telegram shop (ui/shop.js) ═══════════ */
.shop { --shop-line: var(--border); --shop-pending: var(--warn); font-variant-numeric: tabular-nums; }
.shop h4, .shop-analytics h4 { margin: 1.5rem 0 0.75rem; font-size: 0.95rem; }
.shop-mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.85em; direction: ltr; unicode-bidi: isolate; }
.shop-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shop-nav { display: flex; gap: 0.25rem; overflow-x: auto; padding-bottom: 0.75rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.shop-nav-btn { flex: none; display: inline-flex; align-items: center; gap: 0.45rem; background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.9rem; padding: 0.5rem 0.85rem; border-radius: 10px; cursor: pointer; }
.shop-nav-btn:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.shop-nav-btn.active { color: var(--text); background: var(--accent-soft); }
.shop-nav-btn:focus-visible, .shop-seg button:focus-visible, .shop-stat:focus-visible, .shop-link:focus-visible, .shop-receipt-img:focus-visible, .shop-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-count { min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem; border-radius: 99px; background: var(--warn); color: #1a1205; font-size: 0.72rem; font-weight: 700; display: inline-grid; place-items: center; }

.shop-count[hidden] { display: none; }

.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.shop-toolbar input[type=search] { flex: 1 1 260px; max-width: 420px; }
.shop-toolbar select { width: auto; }
.shop-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 10px; padding: 2px; background: var(--bg-elevated); }
.shop-seg button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.85rem; padding: 0.4rem 0.8rem; border-radius: 8px; cursor: pointer; }
.shop-seg button.active { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }

/* overview */
.shop-headline { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.shop-headline p { margin: 0; }
.shop-headline .shop-revenue { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.1; margin: 0.15rem 0 0.35rem; font-variant-numeric: tabular-nums; }
.shop-revenue small { font-size: 0.9rem; font-weight: 500; color: var(--muted); margin-inline-start: 0.5rem; }
.shop-chart { width: 100%; height: auto; display: block; margin: 1rem 0 1.25rem; }
.shop-bar { fill: var(--accent); opacity: 0.85; }
.shop-bar:hover { opacity: 1; }
.shop-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; }
.shop-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-stat { text-align: start; font: inherit; color: inherit; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
button.shop-stat { cursor: pointer; }
button.shop-stat:hover { border-color: rgba(45, 212, 191, 0.4); }
.shop-stat span { color: var(--muted); font-size: 0.82rem; }
.shop-stat b { font-size: 1.5rem; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.shop-stat small { color: var(--muted); font-size: 0.75rem; }
.shop-stat.is-hot { border-color: rgba(245, 158, 11, 0.55); }
.shop-stat.is-hot b { color: var(--warn); }
.shop-split { margin-top: 0.5rem; column-gap: 2rem; }
.shop-share { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.shop-share-meta { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.875rem; }
.shop-share-track { height: 6px; background: var(--bg-elevated); border-radius: 99px; margin-top: 0.3rem; overflow: hidden; }
.shop-share-track i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

/* review desk: the receipt is the object being judged, so it gets the space */
.shop-desk { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 1rem; }
.shop-receipt { display: grid; grid-template-columns: minmax(150px, 42%) 1fr; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-elevated); transition: opacity 0.3s ease, transform 0.3s ease; }
.shop-receipt.is-done { opacity: 0; transform: scale(0.98); }
.shop-receipt-img { border: 0; padding: 0; margin: 0; cursor: zoom-in; background: #e9e6df; display: grid; place-items: center; min-height: 240px; max-height: 360px; overflow: hidden; }
.shop-receipt-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shop-receipt-facts { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.shop-receipt-amount { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.shop-receipt-amount small { font-size: 0.8rem; color: var(--muted); font-weight: 500; margin-inline-start: 0.35rem; }
.shop-receipt-plan { margin: 0; font-size: 0.9rem; }
.shop-receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; margin: 0.4rem 0 0; font-size: 0.85rem; }
.shop-receipt dt { color: var(--muted); }
.shop-receipt dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.shop-receipt-id { margin: auto 0 0; font-size: 0.75rem; }
.shop-receipt-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.shop-receipt-actions .btn-primary { flex: 1; }
.shop-tag { display: inline-block; font-size: 0.72rem; padding: 0.1rem 0.5rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin: 0; }
.shop-tag-ad { background: rgba(125, 211, 252, 0.12); color: #7dd3fc; }
.shop-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-align: start; }
.shop-link:hover { text-decoration: underline; }

/* tables */
.shop-table tbody tr[data-order], .shop-table tbody tr[data-customer] { cursor: pointer; }
html[dir="rtl"] .shop-table th, html[dir="rtl"] .shop-table td { text-align: right; }
.shop-table tr.is-off td { opacity: 0.5; }
.shop-table tr.is-off td:first-child { opacity: 1; }
.shop-row-actions { white-space: nowrap; }
.shop-row-actions .btn + .btn { margin-inline-start: 0.35rem; }
.shop-pager { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.shop-empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 12px; }
.shop-empty p { max-width: 52ch; margin: 0 auto 0.75rem; }

/* catalog */
.shop-cat { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.shop-cat.is-off { border-style: dashed; }
.shop-cat > header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.shop-cat-title { display: flex; align-items: center; gap: 0.75rem; }
.shop .shop-cat-title h4 { margin: 0; }
.shop-cat-title p { margin: 0.1rem 0 0; }
.shop-cat-emoji { font-size: 1.6rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px; background: var(--bg-elevated); }
.shop-cat-actions { display: flex; gap: 0.4rem; }
.shop-cat-empty { margin: 0.5rem 0 0; }

/* switches + forms */
.shop-switch { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-size: 0.9rem; cursor: pointer; margin: 0.4rem 0; position: relative; }
.shop-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shop-switch i { direction: ltr; flex: none; width: 2.3rem; height: 1.3rem; border-radius: 99px; background: var(--border); position: relative; transition: background 0.18s ease; }
.shop-switch i::after { content: ""; position: absolute; top: 0.15rem; left: 0.15rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; transition: transform 0.18s ease; }
.shop-switch input:checked + i { background: var(--accent); }
.shop-switch input:checked + i::after { transform: translateX(1rem); }
.shop-switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-switch-only { margin: 0; }
.modal.shop-modal { max-width: 560px; padding: 0; }
.modal.shop-modal-wide { max-width: 760px; }
.shop-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--card); z-index: 1; }
.shop-modal-head h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.shop-modal-body { padding: 1.1rem 1.4rem; }
.shop-modal-body h4 { margin: 1.25rem 0 0.5rem; font-size: 0.9rem; }
.shop-modal-error { margin: 0 1.4rem 1rem; }
.shop-modal-foot { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 1rem 1.4rem; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--card); }
.shop-modal-body .shop-modal-foot { margin: 1rem -1.4rem -1.1rem; }
.shop-icon-btn { background: none; border: 0; color: var(--muted); font-size: 1rem; width: 2rem; height: 2rem; border-radius: 8px; cursor: pointer; }
.shop-icon-btn:hover { background: var(--bg-elevated); color: var(--text); }
.shop-field { display: block; margin: 0 0 0.9rem; }
.shop-field > span { display: block; margin-bottom: 0.35rem; }
.shop-field small { display: block; margin-top: 0.3rem; }
.shop-fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem 0.9rem 0.1rem; margin: 0 0 0.9rem; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.45rem 0 0.75rem; }
.shop-chip { font: inherit; font-size: 0.78rem; color: var(--muted); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 99px; padding: 0.2rem 0.65rem; cursor: pointer; }
.shop-chip:hover { color: var(--text); border-color: var(--accent); }
.shop-checks { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.shop-checks label { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text); margin: 0; }
.shop-checks input { width: auto; }
.btn.shop-delete { color: var(--danger); margin-top: 0.25rem; }
.shop-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; margin: 0 0 0.5rem; font-size: 0.9rem; }
.shop-dl dt { color: var(--muted); }
.shop-dl dd { margin: 0; overflow-wrap: anywhere; }
.shop-dl a, .shop-list a { color: var(--accent); }
.shop-list { list-style: none; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.45rem; font-size: 0.875rem; }
.shop-order-detail { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 1.25rem; align-items: start; }
.shop-order-detail:not(:has(.shop-receipt-full)) { grid-template-columns: 1fr; }
.shop-receipt-full img { width: 100%; border-radius: 10px; display: block; background: #e9e6df; }

/* bank cards + bot */
.shop-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.shop-bankcard { border-radius: 16px; padding: 1.1rem 1.2rem; background: linear-gradient(140deg, #12312e, #0d1b26); border: 1px solid var(--border); }
.shop-bankcard.is-off { filter: grayscale(1); opacity: 0.6; }
.shop-bankcard p { margin: 0.2rem 0; }
.shop-bankcard-top { display: flex; justify-content: space-between; align-items: center; }
.shop-bankcard .shop-bankcard-number { font-family: ui-monospace, Consolas, monospace; font-size: 1.25rem; letter-spacing: 0.06em; margin: 1rem 0 0.4rem; text-align: left; }
.shop-bankcard-actions { margin-top: 0.6rem; }
.shop-settings textarea { resize: vertical; }
.shop .shop-settings h4:first-child, .shop .shop-botcard h4:first-child { margin-top: 0; }
.shop-botcard { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; align-self: start; }
.shop-botcard p { margin: 0.35rem 0; }

/* ads analytics */
#ads-analytics { font-variant-numeric: tabular-nums; }
#ads-analytics h4 { margin: 1.5rem 0 0.6rem; font-size: 0.95rem; }
.shop-delta { font-size: 0.75rem; color: var(--muted); }
.shop-delta.up { color: var(--success); }
.shop-delta.down { color: var(--danger); }
.shop-compare { margin: 0.4rem 0 0.75rem; font-size: 0.75rem; }
.shop-breakdown { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.shop-breakdown th, .shop-breakdown td { padding: 0.4rem 0.35rem; border-bottom: 1px solid var(--border); text-align: start; font-weight: 400; }
.shop-breakdown thead th { color: var(--muted); font-size: 0.75rem; }
.shop-breakdown tbody th { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-breakdown-bar { width: 30%; }
.shop-breakdown-bar i { display: block; height: 6px; border-radius: 99px; background: var(--accent); }
.shop-heat { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 3px; }
.shop-heat-cell { height: 40px; border-radius: 6px; background: rgba(45, 212, 191, calc(var(--a) * 0.85 + 0.05)); display: grid; place-items: end center; padding-bottom: 2px; }
.shop-heat-cell span { font-size: 0.62rem; color: var(--text); opacity: 0.75; }
.shop-heat[style*="--cols:7"] .shop-heat-cell { height: 44px; place-items: center; padding: 0; }
.shop-heat[style*="--cols:7"] .shop-heat-cell span { font-size: 0.72rem; opacity: 1; }

.shop-toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--card); color: var(--text); border: 1px solid var(--accent); padding: 0.65rem 1.1rem; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.45); animation: fadeIn 0.25s ease; max-width: calc(100vw - 2rem); }
.shop-toast-err { border-color: var(--danger); }

@media (max-width: 720px) {
  .shop-receipt { grid-template-columns: 1fr; }
  .shop-receipt-img { min-height: 180px; max-height: 260px; }
  .shop-order-detail { grid-template-columns: 1fr; }
  .shop-stats-3 { grid-template-columns: 1fr; }
  .shop-heat { gap: 2px; }
  .shop-heat-cell span { display: none; }
  .shop-heat[style*="--cols:7"] .shop-heat-cell span { display: block; font-size: 0.6rem; }
}

/* ═══════════ Landing: product tabs ═══════════ */
a.btn { text-decoration: none; }
.product-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin: 0 auto 1.75rem; max-width: 900px; }
.product-tab { display: inline-flex; align-items: center; gap: 0.5rem; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--muted); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 999px; padding: 0.6rem 1.15rem; cursor: pointer; transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.product-tab:hover { color: var(--text); border-color: rgba(45, 212, 191, 0.4); }
.product-tab.active { color: var(--text); background: var(--accent-soft); border-color: var(--accent); }
.product-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-tab-emoji { font-size: 1.15rem; line-height: 1; }
.product-panel { animation: fadeIn 0.25s ease; }
.product-desc { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 1.5rem; }
.product-closed { text-align: center; color: var(--warn); margin: 0 auto 1.25rem; }
.product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.product-plan { display: flex; flex-direction: column; }
.product-plan .price-buy { margin-top: auto; text-align: center; text-decoration: none; }
.product-plan-duration { margin: 0.15rem 0 0.75rem; color: var(--muted); font-size: 0.9rem; }
.product-plan .price-main { font-variant-numeric: tabular-nums; }
.product-trial { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 1.5rem 0 0; }
.product-trial a { color: var(--accent); }
@media (max-width: 640px) {
  .product-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: none; }
  .product-tab { flex: none; }
}
