/* TOA loader «المدمج» v1.4 — copy of the loader block in Extension/WebExt/style.css (toa-brand-identity/23_App_Loader). */

/* ---------- TOA loader («المدمج») ---------- */
.toa-loader {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.toa-loader.on { opacity: 1; pointer-events: auto; }
.toa-loader .center { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.toa-loader .icon-box { position: relative; width: 200px; height: 200px; animation: toaBreathe 2.6s ease-in-out infinite; }
.toa-loader .icon-box > img { width: 100%; height: 100%; display: block; }
.toa-loader .icon-box > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.toa-loader .ring { position: absolute; inset: -22%; width: 144%; height: 144%; animation: toaSpin 1.8s linear infinite; overflow: visible; }
.toa-loader .ring.r2 { animation-duration: 2.7s; animation-direction: reverse; opacity: .75; }
.toa-loader .status { color: #fff; text-align: center; font-weight: 600; font-size: 22px; line-height: 1.4; }
.toa-loader .status small { display: block; font-size: 20px; font-weight: 600; color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: light) { .toa-loader .status, .toa-loader .status small { text-shadow: 0 0 6px rgba(0, 0, 0, .6); } }
@keyframes toaBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* Loader colours: TOA gold arcs, gold-200 glow on the points, motion gold-light line
   (as in toa-brand-identity/23_App_Loader/Reference/SwiftUI/AppLoader.swift, owner decision 7 Nov 2026). */
.tl-trace { stroke: var(--toa-video-green-goldL); }
.tl-arc { stroke: var(--toa-brand-gold); }
.tl-point { fill: var(--toa-gold-200); }
@keyframes toaSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .toa-loader .icon-box { animation-duration: 6s; }
  .toa-loader .ring { animation-duration: 6s; }
  .toa-loader .ring.r2 { animation-duration: 9s; }
}
/* Mini size (~24pt) */
.toa-mini { display: inline-flex; align-items: center; gap: 8px; }
.toa-mini .icon-box { position: relative; width: 24px; height: 24px; animation: toaBreathe 2.6s ease-in-out infinite; }
.toa-mini .icon-box > img { width: 100%; height: 100%; display: block; }
.toa-mini .icon-box > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.toa-mini .ring { position: absolute; inset: -22%; width: 144%; height: 144%; animation: toaSpin 1.8s linear infinite; overflow: visible; }
.toa-mini .ring.r2 { animation-duration: 2.7s; animation-direction: reverse; opacity: .75; }
.toa-mini .icon-box{flex:none}
@media (max-width:640px){.toa-loader .icon-box{width:46vw;height:46vw}}
