/* Lumen Depth — extras, orbit UX, 3D helpers, legal */

.security-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  margin-top: 2rem;
}
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1rem;
  border-radius: 14px;
  font-size: .8rem;
  font-weight: 800;
  background: rgba(252, 255, 254, .9);
  border: 1px solid var(--line, rgba(0,0,0,.08));
  color: var(--ink-soft, #3a524b);
  box-shadow: var(--shadow-sm, 0 6px 18px rgba(0,0,0,.06));
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.security-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(13,148,136,.15);
}
.security-badge i { color: var(--teal, #0d9488); }

.parallax-layer { will-change: transform; transform-style: preserve-3d; }

.depth-shadow {
  box-shadow:
    0 2px 4px rgba(6,18,16,.04),
    0 12px 28px rgba(6,18,16,.08),
    0 32px 64px rgba(13,148,136,.1);
}

/* Pointer volumetric glow */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34,211,238,.16) 0%, rgba(13,148,136,.1) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .35s;
  will-change: left, top;
}
@media (hover: hover) and (min-width: 1024px) {
  body.has-pointer .cursor-glow { opacity: 1; }
}

/* 3D mode toggle */
.mode-3d-toggle {
  position: fixed;
  bottom: 5.6rem;
  left: 1.5rem;
  z-index: 880;
  background: rgba(252,255,254,.95);
  border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: 999px;
  padding: .5rem .95rem;
  font-size: .75rem;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(6,18,16,.1);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--teal-deep, #0f5c56);
  backdrop-filter: blur(12px);
  transition: transform .25s, background .25s, color .25s;
}
.mode-3d-toggle:hover { transform: translateY(-3px) scale(1.03); }
.mode-3d-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(13,148,136,.35);
}

/* Flat mode — kill volumetric effects */
body.flat-mode .hero-main-card,
body.flat-mode .tilt-card,
body.flat-mode .brand-mark,
body.flat-mode .brand-logo,
body.flat-mode .pwa-icon,
body.flat-mode .order-summary,
body.flat-mode .auth-card,
body.flat-mode .step-num {
  transform: none !important;
}
body.flat-mode .mesh-orb { animation: none; opacity: .18; }
body.flat-mode .float-field,
body.flat-mode .depth-canvas,
body.flat-mode .hero-orbit-ring,
body.flat-mode .hero-stack {
  display: none !important;
}
body.flat-mode .avatar-3d,
body.flat-mode .stage-chip { animation: none; }

.pricing-glow { position: relative; }
.pricing-glow::after {
  content: "پرداخت امن";
  position: absolute;
  top: -.5rem;
  left: .5rem;
  font-size: .65rem;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  color: #1a1505;
  padding: .18rem .5rem;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(245,158,11,.3);
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info-cards { display: flex; flex-direction: column; gap: .85rem; }
.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: linear-gradient(165deg, #fff, #f3faf8);
  border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: var(--radius-sm, 16px);
  box-shadow: 0 8px 22px rgba(6,18,16,.06);
  transition: transform .3s, box-shadow .3s;
}
.contact-card:hover {
  transform: translateY(-4px) translateZ(8px);
  box-shadow: 0 16px 36px rgba(13,148,136,.12);
}
.contact-card .ci {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(13,148,136,.14), rgba(34,211,238,.12));
  color: var(--teal, #0d9488);
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(13,148,136,.12);
}

@media (max-width: 900px) {
  .nav-main { display: none !important; }
  .menu-btn { display: flex !important; }
  .btn-hide-mobile { display: none !important; }
}

body {
  font-family: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
}

.empty-state {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #6a8178;
}
.empty-state.show { display: block; }

/* Legal */
.legal-wrap { max-width: 900px; }
.legal-doc {
  background: linear-gradient(165deg, #fcfffe, #f0faf7);
  border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: 24px;
  padding: 1.85rem 1.55rem 2.1rem;
  box-shadow: 0 16px 40px rgba(6,18,16,.07);
  line-height: 1.9;
  color: var(--ink, #0f1f1b);
}
.legal-doc h2 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 1.75rem 0 .75rem;
  color: var(--teal-deep, #0f5c56);
  padding-top: .35rem;
  border-top: 1px solid var(--line, rgba(0,0,0,.06));
}
.legal-doc h2:first-of-type { border-top: 0; }
.legal-doc h3 { font-size: 1rem; font-weight: 800; margin: 1rem 0 .45rem; }
.legal-doc p { margin-bottom: .75rem; color: var(--ink-soft, #3a524b); }
.legal-doc ul, .legal-doc ol {
  margin: .4rem 0 1rem 0;
  padding-right: 1.25rem;
  color: var(--ink-soft, #3a524b);
}
.legal-doc li { margin-bottom: .4rem; }
.legal-head { margin-bottom: 1rem; }
.legal-meta {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  color: var(--teal, #0d9488);
  background: rgba(13,148,136,.1);
  padding: .38rem .8rem;
  border-radius: 999px;
  margin-bottom: .85rem;
}
.legal-toc {
  background: linear-gradient(135deg, rgba(13,148,136,.06), rgba(34,211,238,.05));
  border: 1px solid rgba(13,148,136,.14);
  border-radius: 18px;
  padding: 1.05rem 1.2rem;
  margin: 1.25rem 0 1.5rem;
}
.legal-toc strong { display: block; margin-bottom: .5rem; color: var(--teal-deep, #0f5c56); }
.legal-toc ol { margin: 0; padding-right: 1.2rem; columns: 2; column-gap: 1.5rem; }
.legal-toc a { color: var(--ink-soft, #3a524b); font-size: .9rem; }
.legal-toc a:hover { color: var(--teal, #0d9488); }
.legal-sign { margin-top: 1.5rem; font-weight: 900; color: var(--teal-deep, #0f5c56); }
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.legal-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.legal-home-card {
  background: linear-gradient(165deg, #fff, #f0faf7);
  border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: 24px;
  padding: 1.55rem 1.4rem;
  box-shadow: 0 12px 32px rgba(6,18,16,.06);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .35s, box-shadow .35s;
  position: relative;
  overflow: hidden;
}
.legal-home-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #22d3ee, #f59e0b);
  opacity: 0;
  transition: opacity .3s;
}
.legal-home-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 24px 48px rgba(13,148,136,.14);
}
.legal-home-card:hover::before { opacity: 1; }
.legal-home-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(145deg, rgba(13,148,136,.16), rgba(245,158,11,.18));
  color: var(--teal-deep, #0f5c56);
  box-shadow: 0 8px 18px rgba(13,148,136,.12);
}
.legal-home-icon.privacy {
  background: linear-gradient(145deg, rgba(245,158,11,.22), rgba(13,148,136,.12));
}
.legal-home-card h3 { font-size: 1.15rem; font-weight: 900; margin: 0; }
.legal-home-card > p {
  color: var(--muted, #6a8178);
  font-size: .92rem;
  margin: 0;
  flex-grow: 1;
}
.legal-home-points {
  list-style: none;
  padding: 0;
  margin: 0 0 .35rem;
  display: grid;
  gap: .35rem;
}
.legal-home-points li {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-soft, #3a524b);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.legal-home-points i { color: var(--teal, #0d9488); font-size: .75rem; }
.legal-home-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .9rem;
  color: var(--muted, #6a8178);
}
.legal-home-note a {
  color: var(--teal-deep, #0f5c56);
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-home-grid { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
  .legal-doc { padding: 1.25rem 1.05rem 1.55rem; }
}

/* ========== Services Orbit UX ========== */
.svc-orbit {
  background: linear-gradient(165deg, rgba(255,255,255,.92), rgba(236,246,243,.9));
  border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: 24px;
  padding: 1.15rem 1.2rem 1.05rem;
  box-shadow: 0 14px 36px rgba(6,18,16,.07);
  position: sticky;
  top: 78px;
  z-index: 40;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.svc-orbit-head {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: .9rem;
}
.svc-orbit-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  margin-top: .25rem;
}
.svc-orbit-search {
  max-width: 280px;
  flex: 1;
  min-width: 180px;
}
.chip-rail {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.chip-rail::-webkit-scrollbar { height: 6px; }
.chip-rail::-webkit-scrollbar-thumb {
  background: rgba(13,148,136,.35);
  border-radius: 99px;
}
.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .52rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  background: #fff;
  border: 1.5px solid var(--line, rgba(0,0,0,.08));
  color: var(--ink-soft, #3a524b);
  white-space: nowrap;
  transition: .25s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 2px 8px rgba(6,18,16,.04);
}
.chip em {
  font-style: normal;
  background: rgba(13,148,136,.1);
  color: var(--teal-deep, #0f5c56);
  padding: .05rem .45rem;
  border-radius: 999px;
  font-size: .72rem;
}
.chip:hover {
  border-color: var(--teal, #0d9488);
  color: var(--teal-deep, #0f5c56);
  transform: translateY(-2px);
}
.chip.is-active {
  background: linear-gradient(135deg, #14b8a6, #0f5c56);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(13,148,136,.32);
  transform: translateY(-2px);
}
.chip.is-active em {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.soft-tabs { margin-top: .65rem; }

.constellation { margin: 1.5rem 0 2rem; }
.constellation-head { margin-bottom: 1rem; }
.constellation-head h2 { font-size: 1.35rem; font-weight: 900; }
.constellation-head p { color: var(--muted, #6a8178); font-size: .92rem; }
.constellation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: .95rem;
}
.star-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  background: linear-gradient(165deg, #fff, #f3faf8);
  border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: 20px;
  padding: 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: transform .3s, box-shadow .3s;
  transform-style: preserve-3d;
  min-width: 0;
  max-width: 100%;
}
.star-card:hover {
  transform: translateY(-6px) rotateX(3deg);
  box-shadow: 0 20px 44px rgba(13,148,136,.14);
}
.star-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(13,148,136,.14), rgba(245,158,11,.16));
  color: var(--teal-deep, #0f5c56);
  font-size: 1.15rem;
  box-shadow: 0 8px 16px rgba(13,148,136,.1);
}
.star-body h3 { font-size: .98rem; font-weight: 900; margin: 0 0 .25rem; }
.star-body p {
  font-size: .8rem;
  color: var(--muted, #6a8178);
  margin: 0;
  line-height: 1.6;
}
.star-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  font-weight: 800;
  color: var(--teal, #0d9488);
  border-top: 1px solid var(--line, rgba(0,0,0,.06));
  padding-top: .55rem;
  margin-top: auto;
}

.workbench {
  scroll-margin-top: 150px;
  background: linear-gradient(180deg, rgba(13,148,136,.07), transparent 90px);
  border-radius: 26px;
  padding: 1.3rem 1.05rem 1.55rem;
  border: 1px solid rgba(13,148,136,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.workbench-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
.workbench-bar h2 { font-size: 1.35rem; font-weight: 900; margin: .25rem 0; }
.workbench-desc { color: var(--muted, #6a8178); font-size: .9rem; max-width: 36rem; }
.workbench-actions { display: flex; align-items: center; gap: .55rem; }
.empty-panel {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted, #6a8178);
}
.empty-panel i { font-size: 2rem; opacity: .4; margin-bottom: .75rem; }
.empty-panel h3 { color: var(--ink, #0f1f1b); margin-bottom: .5rem; }

@media (max-width: 768px) {
  .svc-orbit {
    position: static; /* sticky orbit eats too much viewport on phones */
    top: auto;
    padding: .85rem .8rem;
    margin-bottom: 1rem;
    border-radius: 18px;
  }
  .svc-orbit-head {
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
  }
  .svc-orbit-search {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
  .chip-rail {
    margin-inline: -.15rem;
    padding-bottom: .55rem;
    /* avoid expanding parent width */
    max-width: 100%;
  }
  .filter-tabs.soft-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding-bottom: .35rem;
  }
  .filter-tab { flex: 0 0 auto; }
  .constellation-grid {
    grid-template-columns: 1fr;
    gap: .7rem;
  }
  .constellation-head h2 { font-size: 1.15rem; }
  .star-card:hover { transform: none; }
  .workbench {
    padding: .85rem .55rem 1.1rem;
    border-radius: 18px;
    scroll-margin-top: 80px;
  }
  .workbench-bar {
    flex-direction: column;
    gap: .65rem;
    margin-bottom: .9rem;
  }
  .workbench-bar h2 { font-size: 1.15rem; word-break: break-word; }
  .workbench-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .workbench-grid.card-grid {
    grid-template-columns: 1fr;
  }
  .mode-3d-toggle { display: none; }
  .security-row { gap: .45rem; }
  .security-badge { font-size: .72rem; padding: .45rem .7rem; }
  .contact-card { padding: 1rem; }
}

@media (max-width: 480px) {
  .chip {
    padding: .45rem .72rem;
    font-size: .78rem;
  }
  .star-card { padding: .95rem; }
  .empty-panel { padding: 1.75rem .75rem; }
}

/* —— Luxury payment receipt —— */
.receipt-page { padding-top: 2rem; }
.lux-receipt {
  position: relative;
  background: linear-gradient(180deg, #fffef8 0%, #fcfffe 55%, #f4f7fb 100%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 18px 40px rgba(15,31,27,.1),
    0 40px 80px rgba(180, 140, 40, .12);
  border: 1px solid rgba(180, 140, 40, .18);
}
.lux-receipt.is-pending {
  box-shadow: 0 18px 40px rgba(15,31,27,.08), 0 30px 60px rgba(245,158,11,.1);
}
.lux-receipt__foil {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background:
    linear-gradient(135deg, #0f5c56 0%, #0d9488 42%, #c9a227 100%);
  color: #fff;
}
.lux-receipt.is-pending .lux-receipt__foil {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #b45309 100%);
}
.lux-receipt__brand { display: flex; align-items: center; gap: .75rem; }
.lux-receipt__mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 900; letter-spacing: .04em;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
}
.lux-receipt__brand small { display: block; opacity: .85; font-size: .78rem; }
.lux-receipt__stamp {
  font-size: .72rem; font-weight: 900; letter-spacing: .18em;
  padding: .4rem .7rem; border-radius: 999px;
  border: 1.5px dashed rgba(255,255,255,.7);
}
.lux-receipt__stamp.ok { background: rgba(16,185,129,.22); }
.lux-receipt__stamp.wait { background: rgba(245,158,11,.22); }
.lux-receipt__body { padding: 1.4rem 1.4rem 1rem; text-align: center; }
.lux-receipt__status h1 {
  font-size: 1.25rem; font-weight: 900; margin: .35rem 0 .2rem;
}
.lux-receipt__status p { color: var(--muted); font-size: .9rem; }
.lux-receipt__icon {
  width: 64px; height: 64px; margin: 0 auto .4rem;
  display: grid; place-items: center; border-radius: 50%;
  font-size: 1.6rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #10b981, #0d9488);
  box-shadow: 0 12px 24px rgba(13,148,136,.28);
}
.lux-receipt.is-pending .lux-receipt__icon {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}
.lux-receipt__amount {
  font-size: 1.7rem; font-weight: 900;
  color: #0f5c56; margin: 1rem 0 1.1rem;
  letter-spacing: .02em;
}
.lux-receipt__rows {
  text-align: right;
  display: grid; gap: .55rem;
  background: rgba(13,148,136,.05);
  border-radius: 18px;
  padding: .9rem 1rem;
}
.lux-receipt__rows > div {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .88rem;
  border-bottom: 1px dashed rgba(15,31,27,.08);
  padding-bottom: .45rem;
}
.lux-receipt__rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.lux-receipt__rows dt { color: var(--muted); font-weight: 600; }
.lux-receipt__rows dd { font-weight: 800; }
.lux-receipt__rows dd.ok { color: var(--success, #059669); }
.lux-receipt__rows dd.warn { color: var(--amber, #d97706); }
.lux-receipt__perforation {
  height: 18px;
  background:
    radial-gradient(circle at 10px 0, transparent 10px, #ecf6f3 10.5px) repeat-x;
  background-size: 20px 18px;
  margin: 0 -1px;
}
.lux-receipt__actions {
  padding: 1rem 1.2rem 1.3rem;
  display: flex; flex-direction: column; gap: .5rem;
}
@media print {
  .site-header, .site-footer, .lux-receipt__actions, .alert { display: none !important; }
  .lux-receipt { box-shadow: none; border: 1px solid #ccc; }
}
