/* =====================================================
   TebinoNet — Landing 3D (مشترک: لندینگ + صفحهٔ ورود)
   صحنهٔ تزئینی CSS 3D: مکعب، مدارها، کارت‌های شناور و واکنش
   ملایم به موس. بدون WebGL و بدون کتابخانهٔ خارجی.
   در landing.html و login.html بارگذاری می‌شود (بعد از auth.css).
   ===================================================== */

/* ---------- چیدمان دوستونهٔ صفحهٔ ورود ---------- */
.authx.authx--3d {
  width: min(100%, 1440px);
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
  /* ستون‌ها تمام‌قد هستند؛ padding به ستون فرم منتقل شده است. */
  padding: 0;
  margin: 0 auto;
}

.authx--3d .authx__form {
  min-width: 0;
  padding-inline: clamp(1rem, 2.4vw, 2.5rem);
  scroll-margin-top: 24px;
}

.authx--3d .authx__card {
  width: 100%;
  max-width: 380px;
  padding: 1.35rem;
  border-radius: 24px;
}

/* ---------- پایهٔ صحنه (هر دو صفحه) ---------- */
.tn-landing {
  --tn-bg: #091322;
  --tn-text: #edf5ff;
  --tn-muted: #a6b8d1;
  --tn-line: rgba(161, 192, 233, .2);
  --tn-glass: rgba(20, 39, 65, .94);
  --tn-accent: #6eaeff;
  --tn-mint: #5ee7ce;
  --tn-shadow: rgba(0, 5, 18, .36);

  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 48px clamp(20px, 4vw, 64px);
  overflow: hidden;
  isolation: isolate;
  color: var(--tn-text);
  border: 1px solid var(--tn-line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 80% 22%, #173360 0, transparent 48%),
    radial-gradient(ellipse at 15% 78%, #123c40 0, transparent 46%),
    var(--tn-bg);
}

:root[data-theme="light"] .tn-landing {
  --tn-bg: #f3f8ff;
  --tn-text: #142c49;
  --tn-muted: #526780;
  --tn-line: rgba(43, 83, 139, .18);
  --tn-glass: rgba(255, 255, 255, .96);
  --tn-accent: #245fc5;
  --tn-mint: #087c72;
  --tn-shadow: rgba(43, 83, 139, .14);

  background:
    radial-gradient(ellipse at 80% 22%, #dceaff 0, transparent 48%),
    radial-gradient(ellipse at 15% 78%, #d9f4ee 0, transparent 46%),
    var(--tn-bg);
}

/* ستون صحنه در صفحهٔ ورود (دسکتاپ): تمام‌قد و بدون شعاع */
.authx--3d .tn-landing {
  min-height: 100svh;
  border: 0;
  border-inline-start: 1px solid var(--tn-line);
  border-radius: 0;
}

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

.tn-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .45;
  background-image: radial-gradient(var(--tn-line) 1px, transparent 1px);
  background-size: 26px 26px;
}

.tn-content {
  width: min(100%, 660px);
  margin-inline: auto;
}

.tn-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  min-height: 44px;
}

.tn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--tn-mint);
  font-size: .78rem;
  font-weight: 700;
}

.tn-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.tn-motion {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--tn-line);
  border-radius: 14px;
  background: var(--tn-glass);
  color: var(--tn-text);
  cursor: pointer;
}

.tn-motion[hidden] { display: none; }
.tn-motion:disabled { opacity: .5; cursor: default; }

.tn-heading h1,
.tn-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.6vw, 2.65rem);
  font-weight: 900;
  line-height: 1.65;
  letter-spacing: -.035em;
  color: var(--tn-text);
}

.tn-heading h1 span,
.tn-heading h2 span {
  display: block;
  color: var(--tn-accent);
}

.tn-heading p {
  max-width: 48ch;
  margin: 14px 0 0;
  color: var(--tn-muted);
  font-size: .95rem;
  line-height: 1.95;
}

/* ---------- صحنهٔ سه‌بعدی ----------
   perspective روی صحنه است؛ به دنیای ۳بعدی overflow/filter ندهید. */
.tn-scene {
  position: relative;
  width: min(100%, 560px);
  height: 370px;
  margin: 10px auto 6px;
  perspective: 1050px;
  perspective-origin: 50% 45%;
  user-select: none;
  touch-action: pan-y;
}

.tn-world {
  --rx: 0deg;
  --ry: 0deg;

  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .22s ease-out;
}

/* کف صحنه */
.tn-floor {
  position: absolute;
  left: 15%;
  top: 55%;
  width: 70%;
  height: 50%;
  border: 1px solid var(--tn-line);
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(47, 151, 215, .18), transparent 67%);
  transform: translateZ(-70px) rotateX(72deg);
}

/* مکعب مرکزی شش‌وجهی */
.tn-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  transform-style: preserve-3d;
  transform: translateZ(35px);
}

.tn-cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(28deg);
  animation: tn-cube-turn 18s ease-in-out infinite;
}

.tn-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(180, 244, 255, .65);
  border-radius: 15px;
  background: linear-gradient(145deg, #66e1d5, #2779cb 70%, #3555a6);
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, .25),
    inset 0 1px 0 rgba(255, 255, 255, .7);
  color: white;
  font-size: 42px;
  backface-visibility: hidden;
}

.tn-face--front  { transform: translateZ(50px); }
.tn-face--back   { transform: rotateY(180deg) translateZ(50px); }
.tn-face--right  { transform: rotateY(90deg) translateZ(50px); }
.tn-face--left   { transform: rotateY(-90deg) translateZ(50px); }
.tn-face--top    { transform: rotateX(90deg) translateZ(50px); }
.tn-face--bottom { transform: rotateX(-90deg) translateZ(50px); }

/* مدارهای چرخان */
.tn-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border: 1px solid var(--tn-line);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.tn-orbit--one {
  transform: rotateX(66deg) rotateZ(-20deg);
}

.tn-orbit--two {
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  transform: rotateY(64deg) rotateX(20deg);
}

.tn-orbit__spin {
  position: absolute;
  inset: 0;
  animation: tn-orbit-turn 14s linear infinite;
}

.tn-orbit--two .tn-orbit__spin {
  animation-duration: 19s;
  animation-direction: reverse;
}

.tn-orbit__spin span {
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tn-mint);
  box-shadow: 0 0 18px var(--tn-mint);
}

/* عمق ثابت روی پوشش؛ حرکت روی کارت داخلی —
   تا transformها همدیگر را بازنویسی نکنند. */
.tn-float {
  position: absolute;
  transform-style: preserve-3d;
}

.tn-float--appointments {
  top: 30px;
  right: 0;
  transform: translateZ(75px) rotateY(-9deg);
}

.tn-float--record {
  bottom: 24px;
  right: 8px;
  transform: translateZ(55px) rotateY(-7deg);
}

.tn-float--finance {
  top: 110px;
  left: 0;
  transform: translateZ(90px) rotateY(10deg);
}

.tn-glass {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--tn-line);
  border-radius: 18px;
  background: var(--tn-glass);
  box-shadow:
    0 20px 40px -16px var(--tn-shadow),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: tn-card-float 6s ease-in-out infinite;
}

.tn-float--record .tn-glass { animation-delay: -2s; }
.tn-float--finance .tn-glass { animation-delay: -4s; }

.tn-glass strong {
  display: block;
  color: var(--tn-text);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.7;
}

.tn-glass small {
  display: block;
  margin-top: 3px;
  color: var(--tn-muted);
  font-size: .62rem;
  line-height: 1.7;
}

.tn-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
}

.tn-card-icon--blue {
  background: rgba(75, 142, 248, .15);
  color: var(--tn-accent);
}

.tn-card-icon--mint {
  background: rgba(45, 200, 174, .13);
  color: var(--tn-mint);
}

.tn-mini-check {
  color: var(--tn-mint);
  font-size: 12px;
}

.tn-glass--chart {
  display: block;
  width: 174px;
}

.tn-chart-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tn-chart-title > i { color: var(--tn-accent); }

.tn-bars {
  height: 64px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: 13px;
  direction: ltr;
}

.tn-bars span {
  flex: 1;
  height: var(--bar);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(#64dfcc, #3d83d9);
  transform-origin: bottom;
  animation: tn-bar-breathe 3.5s ease-in-out var(--delay) infinite;
}

.tn-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tn-accent);
  box-shadow: 0 0 16px var(--tn-accent);
  animation: tn-spark-pulse 4s ease-in-out infinite;
}

.tn-spark--one {
  top: 18%;
  left: 23%;
  transform: translateZ(20px);
}

.tn-spark--two {
  bottom: 17%;
  left: 32%;
  transform: translateZ(60px);
  animation-delay: -1.5s;
}

.tn-spark--three {
  top: 46%;
  right: 11%;
  transform: translateZ(30px);
  animation-delay: -2.5s;
}

/* فهرست امکانات و کنش */
.tn-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tn-features li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--tn-line);
  border-radius: 999px;
  color: var(--tn-muted);
  font-size: .73rem;
}

.tn-features i { color: var(--tn-accent); }

/* رنگ‌بندی چرخشی chipهای امکانات (بدون تغییر مارک‌آپ) */
.tn-features li:nth-child(4n+1) i { color: #5b9bff; }
.tn-features li:nth-child(4n+2) i { color: #4fdcbe; }
.tn-features li:nth-child(4n+3) i { color: #ffc85c; }
.tn-features li:nth-child(4n+4) i { color: #b39bff; }

.tn-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 25px;
}

.tn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: linear-gradient(120deg, #2666d9, #164eae);
  box-shadow: 0 12px 28px -12px rgba(37, 99, 235, .7);
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tn-cta:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 17px 32px -12px rgba(37, 99, 235, .8);
}

.tn-cta:active { transform: none; }

.tn-cta:focus-visible,
.tn-motion:focus-visible {
  outline: 3px solid var(--tn-accent);
  outline-offset: 5px;
}

.tn-note {
  color: var(--tn-muted);
  font-size: .73rem;
}

/* ---------- انیمیشن‌ها ---------- */
@keyframes tn-cube-turn {
  0%, 100% { transform: rotateX(-18deg) rotateY(28deg); }
  50% { transform: rotateX(-10deg) rotateY(118deg); }
}

@keyframes tn-orbit-turn {
  to { transform: rotateZ(360deg); }
}

@keyframes tn-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes tn-bar-breathe {
  0%, 100% { transform: scaleY(.8); }
  50% { transform: scaleY(1); }
}

@keyframes tn-spark-pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

/* توقف وقتی صحنه خارج از دید، تب مخفی یا کاربر خواسته است. */
.tn-landing.is-paused *,
.tn-landing.is-idle * {
  animation-play-state: paused !important;
}

/* ---------- تبلت / موبایل ---------- */
@media (max-width: 1023.98px) {
  .authx.authx--3d {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .authx--3d .tn-landing {
    order: -1;
    min-height: 0;
    border: 0;
    border-bottom: 1px solid var(--tn-line);
    border-radius: 0;
  }

  .authx--3d .authx__form {
    min-height: 0;
    padding: 28px 18px max(100px, env(safe-area-inset-bottom));
  }

  .tn-heading { text-align: center; }
  .tn-heading p { margin-inline: auto; }
}

@media (max-width: 599.98px) {
  .tn-landing {
    padding: 24px 16px 28px;
  }

  .tn-heading h1,
  .tn-heading h2 {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
  }

  .tn-heading p { font-size: .84rem; }

  .tn-scene {
    width: min(100%, 370px);
    height: 320px;
    perspective: 900px;
  }

  .tn-core {
    transform: translateZ(0) scale(.8);
  }

  .tn-orbit {
    width: 230px;
    height: 230px;
    margin: -115px 0 0 -115px;
  }

  .tn-orbit--two {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
  }

  .tn-float--appointments {
    top: 18px;
    right: 0;
    transform: translateZ(15px);
  }

  .tn-float--record {
    bottom: 12px;
    right: 0;
    transform: translateZ(20px);
  }

  .tn-float--finance {
    top: 116px;
    left: 0;
    transform: translateZ(10px);
  }

  .tn-glass {
    gap: 7px;
    padding: 10px;
    border-radius: 14px;
  }

  .tn-glass--chart { width: 128px; }

  .tn-glass strong { font-size: .65rem; }
  .tn-glass small { font-size: .58rem; }

  .tn-card-icon {
    flex-basis: 30px;
    width: 30px;
    height: 34px;
    font-size: 15px;
  }

  .tn-chart-title { gap: 5px; }

  .tn-bars {
    height: 46px;
    gap: 5px;
  }

  .tn-actions { flex-direction: column; }

  .tn-cta { width: min(100%, 320px); }
}

/* ---------- احترام به تنظیم سیستم ---------- */
@media (prefers-reduced-motion: reduce) {
  .tn-landing *,
  .tn-landing *::before,
  .tn-landing *::after {
    animation: none !important;
    transition: none !important;
  }

  .tn-world {
    transform: none !important;
  }
}

/* =====================================================
   Capability badges — بج‌های رنگی قابلیت‌های کلینیک
   (شناور در لایه‌های عمق مختلف؛ برچسب‌دار تا قابلیت‌ها را
   توضیح دهند. رنگ‌ها فقط accent آیکن‌اند و تم صفحه را عوض
   نمی‌کنند.)
   ===================================================== */

.tn-halo {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.tn-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--tn-line);
  border-radius: 14px;
  background: var(--tn-glass);
  box-shadow:
    0 16px 34px -18px var(--tn-shadow),
    inset 0 1px 0 rgba(255, 255, 255, .10);
  transform-style: preserve-3d;
  white-space: nowrap;
  animation: tn-badge-float 7s ease-in-out infinite;
}

.tn-badge__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

.tn-badge__text {
  color: var(--tn-text);
  font-size: .68rem;
  font-weight: 700;
}

/* پالت قابلیت‌ها (accent آیکن) */
.tn-badge--blue   .tn-badge__icon { background: linear-gradient(145deg, #5b9bff, #2f6fe0); }
.tn-badge--mint   .tn-badge__icon { background: linear-gradient(145deg, #4fdcbe, #17a793); }
.tn-badge--amber  .tn-badge__icon { background: linear-gradient(145deg, #ffc85c, #e0932a); }
.tn-badge--rose   .tn-badge__icon { background: linear-gradient(145deg, #f98aa5, #e0526f); }
.tn-badge--violet .tn-badge__icon { background: linear-gradient(145deg, #b39bff, #7c5cf0); }
.tn-badge--cyan   .tn-badge__icon { background: linear-gradient(145deg, #67dcf2, #28b6d1); }
.tn-badge--green  .tn-badge__icon { background: linear-gradient(145deg, #79e29a, #3dbd5f); }

@keyframes tn-badge-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}

/* ---------- جایگاه بج‌ها روی صحنهٔ لندینگ ----------
   کارت‌های شیشه‌ای در راست/چپ میانی هستند؛ بج‌ها در نواحی آزاد
   (بالا-چپ، پایین-چپ، بالا-مرکز، پایین-مرکز) و در عمق بیشتر. */
.tn-badge--ai {
  top: 3%;
  left: 2%;
  transform: translateZ(85px) rotateY(9deg);
}

.tn-badge--sms {
  bottom: 8%;
  left: 1%;
  transform: translateZ(70px) rotateY(7deg);
  animation-delay: -1.4s;
}

.tn-badge--plan {
  top: 1%;
  left: 33%;
  transform: translateZ(52px) rotateY(-5deg);
  animation-delay: -2.6s;
}

.tn-badge--shield {
  bottom: 1%;
  left: 35%;
  transform: translateZ(42px);
  animation-delay: -3.8s;
}

/* =====================================================
   Emblem — ترکیب اختصاصی صفحهٔ ورود (ورود امن)
   به‌جای تکرار هیروی لندینگ: پلاک قفل + دو حلقهٔ چرخان +
   بج‌های رنگی خدمات + CTA انیمیت‌شده به فرم.
   ===================================================== */

.tn-emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 148px;
  height: 148px;
  margin: -74px 0 0 -74px;
  transform-style: preserve-3d;
  transform: translateZ(55px);
  animation: tn-emblem-hover 7s ease-in-out infinite;
}

.tn-emblem__plate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(178, 224, 255, .5);
  border-radius: 36px;
  color: #fff;
  font-size: 58px;
  background: linear-gradient(150deg, #3f86ea, #2a5cc4 55%, #1d4694);
  box-shadow:
    inset 0 0 26px rgba(255, 255, 255, .22),
    inset 0 1px 0 rgba(255, 255, 255, .6),
    0 30px 55px -24px rgba(16, 52, 120, .8);
}

.tn-emblem__keyhole {
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #dff0ff;
  font-size: 12px;
}

.tn-emblem__ring {
  position: absolute;
  inset: -26px;
  border: 1px dashed var(--tn-line);
  border-radius: 50%;
  animation: tn-orbit-turn 26s linear infinite;
}

.tn-emblem__ring--two {
  inset: -46px;
  animation-duration: 40s;
  animation-direction: reverse;
}

@keyframes tn-emblem-hover {
  0%, 100% { transform: translateZ(55px) translateY(0); }
  50% { transform: translateZ(55px) translateY(-9px); }
}

/* بج‌های خدمات حول امبلم ورود */
.tn-badge--appointments {
  top: 5%;
  right: 4%;
  transform: translateZ(80px) rotateY(-8deg);
}

.tn-badge--record {
  top: 38%;
  left: 0;
  transform: translateZ(65px) rotateY(8deg);
  animation-delay: -1.8s;
}

.tn-badge--finance {
  bottom: 10%;
  right: 3%;
  transform: translateZ(55px) rotateY(-6deg);
  animation-delay: -3.2s;
}

.tn-badge--secure {
  bottom: 12%;
  left: 2%;
  transform: translateZ(45px) rotateY(6deg);
  animation-delay: -4.6s;
}

/* =====================================================
   CTA انیمیت‌شده به فرم ورود (فقط وقتی صحنه بالای فرم است)
   ===================================================== */

.tn-login-cta {
  display: none;
}

.tn-cta--pulse {
  animation: tn-cta-pulse 2.8s ease-in-out infinite;
}

@keyframes tn-cta-pulse {
  0%, 100% { box-shadow: 0 12px 28px -12px rgba(37, 99, 235, .7); }
  50% { box-shadow: 0 20px 46px -14px rgba(37, 99, 235, 1); }
}

.tn-cta__arrow {
  animation: tn-arrow-bob 1.6s ease-in-out infinite;
}

@keyframes tn-arrow-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

/* ---------- دکمهٔ توقف حرکت: گوشهٔ صحنه، کم‌وبیش برجسته ---------- */
.tn-motion--corner {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

/* =====================================================
   برند و دکمه‌های دسترسی داخل هیرو
   (هدر بالای صفحه حذف شد؛ برند در تاپ‌لاین و دکمه‌ها کنار متن)
   ===================================================== */

.tn-brand {
  color: var(--tn-text);
}

.tn-brand .lp-top__name {
  font-weight: 800;
}

.tn-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.tn-hero-row .tn-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.tn-hero-nav {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* دکمه‌ها با پالت صحنه (نه توکن‌های روشن app.css) هماهنگ شوند */
.tn-landing .lp-btn--ghost {
  border-color: var(--tn-line);
  color: var(--tn-text);
}

.tn-landing .lp-btn--ghost:hover {
  background: rgba(255, 255, 255, .07);
  filter: none;
}

:root[data-theme="light"] .tn-landing .lp-btn--ghost:hover {
  background: rgba(20, 44, 73, .07);
}

.tn-landing .lp-top__theme {
  border: 1px solid var(--tn-line);
  background: var(--tn-glass);
  color: var(--tn-text);
}

.tn-landing .lp-top__theme:hover {
  color: var(--tn-accent);
  background: var(--tn-glass);
  box-shadow: none;
}

@media (max-width: 1023.98px) {
  /* موبایل/تبلت: دکمه‌ها زیر متن، وسط‌چین */
  .tn-hero-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tn-hero-nav {
    justify-content: center;
    margin-top: 4px;
  }
}

/* ---------- واکنش لندینگ: CTA در تاپ‌لاین (موبایل) + گوشهٔ pause ---------- */
@media (max-width: 1023.98px) {
  .tn-login-cta {
    display: inline-flex;
    min-height: 42px;
    padding: 8px 16px;
    font-size: .82rem;
  }

  /* دکمهٔ تم fixed در گوشهٔ بالاست؛ تاپ‌لاین نباید زیر آن برود. */
  .authx--3d .tn-landing {
    padding-top: 68px;
  }
}

/* ---------- جمع‌وجورتر شدن صحنه در موبایل ---------- */
@media (max-width: 599.98px) {
  .tn-badge {
    gap: 6px;
    padding: 6px 9px;
    border-radius: 12px;
  }

  .tn-badge__icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 12px;
  }

  .tn-badge__text { font-size: .6rem; }

  /* فقط دو بج پراهمیت روی صحنهٔ لندینگ بماند */
  .tn-badge--plan,
  .tn-badge--shield { display: none; }

  .tn-badge--ai { top: 4%; left: 0; }
  .tn-badge--sms { bottom: 15%; left: 0; }

  .tn-emblem {
    width: 116px;
    height: 116px;
    margin: -58px 0 0 -58px;
  }

  .tn-emblem__plate {
    border-radius: 28px;
    font-size: 44px;
  }

  .tn-emblem__ring { inset: -18px; }
  .tn-emblem__ring--two { inset: -32px; }

  .tn-badge--appointments { top: 3%; right: 0; }
  .tn-badge--record { top: 40%; left: 0; }
  .tn-badge--finance { display: none; }
  .tn-badge--secure { bottom: 8%; left: 0; }

  .tn-motion--corner {
    bottom: 10px;
    inset-inline-start: 10px;
  }
}

