:root {
  --tmset-boot-bg-1: #07131f;
  --tmset-boot-bg-2: #0d2031;
  --tmset-boot-glow: rgba(40, 168, 255, .26);
  --tmset-boot-accent: #36b5ff;
  --tmset-boot-accent-2: #7de2ff;
  --tmset-boot-text: #f7fbff;
  --tmset-boot-muted: rgba(232, 244, 255, .72);
}

.tmset-boot-loader {
  display: none;
}

html.tmset-boot-pending .tmset-boot-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  color: var(--tmset-boot-text);
  background:
    radial-gradient(circle at 50% 38%, var(--tmset-boot-glow), transparent 32%),
    radial-gradient(circle at 15% 10%, rgba(61, 204, 255, .10), transparent 28%),
    linear-gradient(145deg, var(--tmset-boot-bg-1), var(--tmset-boot-bg-2));
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .16s ease, visibility .16s ease;
  isolation: isolate;
}

html.tmset-boot-visible,
html.tmset-boot-visible body {
  overflow: hidden !important;
}

html.tmset-boot-visible .tmset-boot-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.tmset-boot-releasing .tmset-boot-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.tmset-boot-ready .tmset-boot-loader,
html.tmset-boot-released .tmset-boot-loader {
  display: none;
}

.tmset-boot-loader::before,
.tmset-boot-loader::after {
  content: "";
  position: absolute;
  width: min(68vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(125, 226, 255, .08);
  pointer-events: none;
}

.tmset-boot-loader::before {
  animation: tmset-boot-orbit 10s linear infinite;
  box-shadow: 0 0 80px rgba(54, 181, 255, .08) inset;
}

.tmset-boot-loader::after {
  width: min(48vw, 510px);
  border-style: dashed;
  border-color: rgba(125, 226, 255, .12);
  animation: tmset-boot-orbit-reverse 14s linear infinite;
}

html.tmset-boot-pending:not(.tmset-boot-visible) .tmset-boot-loader *,
html.tmset-boot-pending:not(.tmset-boot-visible) .tmset-boot-loader::before,
html.tmset-boot-pending:not(.tmset-boot-visible) .tmset-boot-loader::after {
  animation-play-state: paused !important;
}

.tmset-boot-loader__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 34px 28px 28px;
  text-align: center;
}

.tmset-boot-loader__brand {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0 auto 24px;
}

.tmset-boot-loader__brand::before,
.tmset-boot-loader__brand::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(125, 226, 255, .22);
}

.tmset-boot-loader__brand::before {
  border-top-color: var(--tmset-boot-accent-2);
  border-right-color: rgba(54, 181, 255, .65);
  animation: tmset-boot-spin 1.7s linear infinite;
}

.tmset-boot-loader__brand::after {
  inset: 12px;
  border-bottom-color: rgba(125, 226, 255, .55);
  animation: tmset-boot-spin-reverse 2.4s linear infinite;
}

.tmset-boot-loader__logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .30), 0 0 38px rgba(54, 181, 255, .24);
  animation: tmset-boot-float 2.2s ease-in-out infinite;
}

.tmset-boot-loader__logo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.tmset-boot-loader__eyebrow {
  margin: 0 0 8px;
  font: 700 12px/1.8 Vazirmatn, Tahoma, sans-serif;
  letter-spacing: .08em;
  color: var(--tmset-boot-accent-2);
}

.tmset-boot-loader__title {
  margin: 0;
  font: 800 clamp(20px, 4vw, 27px)/1.6 Vazirmatn, Tahoma, sans-serif;
  color: var(--tmset-boot-text);
}

.tmset-boot-loader__message {
  min-height: 54px;
  margin: 8px 0 22px;
  font: 500 14px/1.9 Vazirmatn, Tahoma, sans-serif;
  color: var(--tmset-boot-muted);
  transition: opacity .15s ease, transform .15s ease;
}

.tmset-boot-loader__message.is-changing {
  opacity: 0;
  transform: translateY(5px);
}

.tmset-boot-loader__track {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}

.tmset-boot-loader__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tmset-boot-accent), var(--tmset-boot-accent-2));
  box-shadow: 0 0 18px rgba(54, 181, 255, .48);
  transition: width .18s ease;
}

.tmset-boot-loader__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  direction: rtl;
  font: 500 11px/1.8 Vazirmatn, Tahoma, sans-serif;
  color: rgba(232, 244, 255, .52);
}

.tmset-boot-loader__dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  direction: ltr;
}

.tmset-boot-loader__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tmset-boot-accent-2);
  opacity: .34;
  animation: tmset-boot-dot 1.15s ease-in-out infinite;
}

.tmset-boot-loader__dots i:nth-child(2) { animation-delay: .15s; }
.tmset-boot-loader__dots i:nth-child(3) { animation-delay: .30s; }

@keyframes tmset-boot-spin { to { transform: rotate(360deg); } }
@keyframes tmset-boot-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes tmset-boot-orbit { to { transform: rotate(360deg); } }
@keyframes tmset-boot-orbit-reverse { to { transform: rotate(-360deg); } }
@keyframes tmset-boot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes tmset-boot-dot { 0%, 100% { opacity: .28; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

@media (max-width: 480px) {
  .tmset-boot-loader__panel { padding-inline: 8px; }
  .tmset-boot-loader__brand { width: 116px; height: 116px; }
  .tmset-boot-loader__logo-wrap { width: 82px; height: 82px; border-radius: 24px; }
  .tmset-boot-loader__logo { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .tmset-boot-loader *,
  .tmset-boot-loader::before,
  .tmset-boot-loader::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

/* TamirSet UX v2: native smooth scrolling, mobile rendering budget, repair modal v6. */
:root {
  --tmset-scroll-offset: 92px;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--tmset-scroll-offset);
}
body {
  -webkit-overflow-scrolling: touch;
}
[id] {
  scroll-margin-top: var(--tmset-scroll-offset);
}
.tmset-ux-scroll-active * {
  scroll-behavior: auto;
}
@supports (content-visibility: auto) {
  @media (max-width: 820px) {
    .tmset-defer-render {
      content-visibility: auto;
      contain-intrinsic-size: auto 760px;
    }
  }
}
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .tmset-mobile-performance [class*="glass"],.tmset-mobile-performance [class*="backdrop"]{
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  
}

/* Repair modal v6 enhancement. The original v5 controller remains the single source of form behavior. */










@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  
}
