/* Quote dock (see dock.js): floating offer bar, bottom centre; full width on phones. */
.dock {
  position: fixed; z-index: 40; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 4px; padding: 6px;
  max-width: calc(100vw - 24px);
  border-radius: 999px;
  background: color-mix(in srgb, var(--night, #0b0714) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid color-mix(in srgb, var(--accent, #e2bd72) 45%, transparent);
  box-shadow: 0 18px 50px rgba(0,0,0,.35), 0 0 0 6px color-mix(in srgb, var(--accent, #e2bd72) 8%, transparent);
  transform: translate(-50%, calc(100% + 40px)); opacity: 0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
  font-family: "Archivo", system-ui, sans-serif; color: var(--ink, #f4efff);
}
.dock.is-on { transform: translate(-50%, 0); opacity: 1; }
.dock__go { display: flex; align-items: center; gap: 12px; padding: 4px 8px 4px 4px; text-decoration: none; color: inherit; border-radius: 999px; min-height: 48px; }
.dock__ring { position: relative; width: 40px; height: 40px; flex: none; }
.dock__ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.dock__ring circle { fill: none; stroke-width: 3; stroke: color-mix(in srgb, var(--ink, #f4efff) 14%, transparent); }
.dock__ring .dock__arc { stroke: var(--accent, #e2bd72); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke-dashoffset .2s linear; }
.dock__ring i { position: absolute; inset: 13px; border-radius: 50%; background: var(--accent, #e2bd72); animation: dock-pulse 2.4s ease-in-out infinite; }
@keyframes dock-pulse { 0%, 100% { transform: scale(.75); opacity: .8; } 50% { transform: scale(1); opacity: 1; } }
.dock__txt { display: grid; line-height: 1.2; transition: opacity .18s ease, transform .18s ease; min-width: 0; }
.dock__txt small { font: 600 10.5px "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, #e2bd72); white-space: nowrap; }
.dock__txt b { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__pm { display: none; }
.dock__price { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--accent, #e2bd72) 18%, transparent); color: var(--ink, #f4efff); transition: opacity .18s ease; }
.dock__arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent, #e2bd72); color: #1a1208; font-weight: 700; transition: transform .2s ease; }
:root[data-aks="light"] .dock__arrow { color: #fff; }
.dock__go:hover .dock__arrow { transform: translateX(3px); }
.dock.is-swap .dock__txt { opacity: 0; transform: translateY(6px); }
.dock.is-swap .dock__price { opacity: 0; }
.dock__x { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 0; background: transparent; color: var(--mute, #a99bc6); font-size: 20px; cursor: pointer; margin-right: 2px; }
.dock__x:hover { color: var(--ink, #f4efff); background: color-mix(in srgb, var(--ink, #f4efff) 8%, transparent); }
@media (max-width: 560px) {
  .dock { left: 12px; right: 12px; max-width: none; transform: translate(0, calc(100% + 40px)); }
  .dock.is-on { transform: translate(0, 0); }
  .dock__go { flex: 1; min-width: 0; gap: 10px; }
  .dock__price { display: none; }
  .dock__k { display: none; }
  .dock__pm { display: inline; }
  .dock__txt small { letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  .dock, .dock__txt, .dock__price { transition: opacity .2s ease; }
  .dock__ring i { animation: none; }
}

/* back-to-top button (dock.js); sits bottom-right, lifts above the dock on phones */
.totop {
  position: fixed; z-index: 41; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--ink, #f4efff); background: color-mix(in srgb, var(--night, #0b0714) 78%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--ink, #f4efff) 18%, transparent); box-shadow: 0 10px 30px rgba(0,0,0,.3);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1), bottom .3s ease, border-color .2s ease;
}
.totop svg { width: 20px; height: 20px; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: var(--accent, #e2bd72); color: var(--accent, #e2bd72); }
.totop:active { transform: scale(.94); }
@media (max-width: 560px) { body.dock-on .totop { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 760px) and (min-width: 561px) { body.dock-on .totop { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .totop { transition: opacity .2s ease; } }
