/* Service quick-jump: pill + arc (desktop) / rotating half-dial (phones). */
.tnz-arc {
  --navy: #10142a; --ink: #f3f4fa; --muted: #a3a8c3; --red: #cb2026; --red-hi: #ff6b70; --blue: #566eb1;
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 990;
  transform: translateX(-50%); font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}
body:has(.tnz-arc) .xs_service_nav { display: none; }

/* pill */
.tnz-arc-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(16, 20, 42, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(16, 20, 42, .35), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.tnz-arc-step, .tnz-arc-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; color: var(--ink); text-decoration: none; transition: background .2s; }
.tnz-arc-step { width: 44px; }
.tnz-arc-step svg, .tnz-arc-grid { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tnz-arc-grid { fill: currentColor; stroke: none; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.tnz-arc-toggle { gap: 10px; padding: 0 18px 0 14px; border: 0; background: rgba(255, 255, 255, .08); cursor: pointer; font: inherit; }
.tnz-arc-step:hover, .tnz-arc-toggle:hover, .tnz-arc[data-open] .tnz-arc-toggle { background: rgba(255, 255, 255, .16); }
.tnz-arc[data-open] .tnz-arc-grid { transform: rotate(45deg); }
.tnz-arc-toggle-text { display: grid; text-align: left; line-height: 1.1; }
.tnz-arc-kicker { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hi); font-weight: 600; }
.tnz-arc-current { font-size: 14px; font-weight: 500; white-space: nowrap; }
.tnz-arc :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* panel (shared) */
.tnz-arc-panel { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); pointer-events: none; }
.tnz-arc[data-open] .tnz-arc-panel { pointer-events: auto; }
.tnz-arc-list { list-style: none; margin: 0; padding: 0; }
.tnz-arc-item a { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--navy); }
.tnz-arc-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #fff; color: var(--navy); box-shadow: 0 10px 28px rgba(16, 20, 42, .22), inset 0 0 0 1px rgba(16, 20, 42, .08);
  transition: transform .25s, background .25s, color .25s; }
.tnz-arc-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tnz-arc-item a:hover .tnz-arc-icon, .tnz-arc-item a:focus-visible .tnz-arc-icon { transform: scale(1.12); background: var(--blue); color: #fff; }
.tnz-arc-item a[aria-current] .tnz-arc-icon { background: var(--red); color: #fff; }
.tnz-arc-name { font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; max-width: 96px; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .95); }
.tnz-arc-dial-label { display: none; }

/* backdrop */
.tnz-arc::before { content: ""; position: fixed; left: -100vw; right: -100vw; top: -100vh; bottom: -100vh; z-index: 0;
  background: radial-gradient(70% 70% at 50% 100%, rgba(16, 20, 42, .82), rgba(16, 20, 42, .6)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s; }
.tnz-arc[data-open]::before { opacity: 1; pointer-events: auto; }

/* Desktop / tablet: half-circle arc above the pill */
@media (min-width: 768px) {
  .tnz-arc { --r: clamp(240px, 30vw, 340px); }
  .tnz-arc-panel { width: calc(var(--r) * 2 + 120px); height: calc(var(--r) + 110px); }
  .tnz-arc-item { position: absolute; left: 50%; bottom: 30px; width: 96px; margin-left: -48px;
    --a: calc(180deg - var(--i) * 180deg / (var(--n) - 1));
    transform: translate(0, 0) scale(.3); opacity: 0;
    transition: transform .45s cubic-bezier(.2, .9, .25, 1.15), opacity .25s; transition-delay: calc((var(--n) - var(--i)) * 18ms); }
  .tnz-arc[data-open] .tnz-arc-item { opacity: 1; transform: translate(calc(cos(var(--a)) * var(--r)), calc(sin(var(--a)) * var(--r) * -1)) scale(1); transition-delay: calc(var(--i) * 28ms); }
}

/* Phones: rotating half-dial in a bottom sheet */
@media (max-width: 767.98px) {
  .tnz-arc { --r: min(38vw, 165px); left: 0; right: 0; transform: none; display: flex; justify-content: center; }
  .tnz-arc-bar { max-width: calc(100vw - 24px); }
  .tnz-arc-current { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
  .tnz-arc-panel { left: 0; right: 0; transform: translateY(24px); width: 100vw; height: calc(var(--r) + 240px); overflow: hidden;
    bottom: -18px; padding-bottom: 0; border-radius: 28px 28px 0 0; background: var(--navy); opacity: 0;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .25s; touch-action: none; }
  .tnz-arc[data-open] .tnz-arc-panel { opacity: 1; transform: none; }
  .tnz-arc-dial-label { display: block; position: absolute; top: 22px; left: 0; right: 0; margin: 0; text-align: center; color: #fff;
    font: 300 22px/1.2 Outfit, Roboto, sans-serif; }
  .tnz-arc-dial-label small { display: block; margin-top: 4px; font: 12px Roboto, sans-serif; color: var(--muted); }
  .tnz-arc-list { position: absolute; left: 50%; bottom: 128px; width: 0; height: 0; transform: rotate(var(--rot, 0deg)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
  .tnz-arc-list.is-dragging { transition: none; }
  .tnz-arc-item { position: absolute; left: 0; top: 0; --a: calc(var(--i) * 360deg / var(--n) - 90deg);
    transform: translate(calc(cos(var(--a)) * var(--r) - 29px), calc(sin(var(--a)) * var(--r) - 29px)); }
  .tnz-arc-item a { transform: rotate(calc(var(--rot, 0deg) * -1)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
  .tnz-arc-list.is-dragging .tnz-arc-item a { transition: none; }
  .tnz-arc-name { display: none; }
  .tnz-arc-item.is-sel .tnz-arc-icon { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(255, 107, 112, .55), 0 10px 28px rgba(0, 0, 0, .4); }
}

@media (prefers-reduced-motion: reduce) {
  .tnz-arc *, .tnz-arc::before { transition: none !important; }
}
