/* ════════════════════════════════════════════════════════════════════════════
   Quantum Field Wallet · v2.5 · HOLOGRAPHIC PLEXIGLASS ENHANCEMENT
   ────────────────────────────────────────────────────────────────────────────
   This stylesheet sits between final-polish.css and the load order's end,
   adding professional-grade material depth on top of the existing plexi
   surfaces without replacing them. The goal is to make every panel feel
   like polished plexiglass under studio lighting — with true 3D depth,
   chromatic edge refraction, and caustic light patterns that drift across
   surfaces as if light were moving through them.

   Layered effects (in z-stack order):

     1. Substrate          — extends the existing .plexi base (no override)
     2. Holographic sheen  — diagonal conic gradient that drifts across face
     3. Edge refraction    — chromatic aberration ring at the inner border
     4. Caustic patterns   — radial light spots that orbit the panel
     5. Specular accent    — enhanced corner reflection with depth gradient
     6. Hover parallax     — JS-driven 3D tilt via --mx / --my custom props
     7. Content            — sits on top via z-index in the existing .plexi rule

   Performance: every animated property is GPU-accelerated (transform,
   opacity, filter). The conic gradients use CSS @property registration
   so the browser can interpolate them instead of repainting from scratch.
   ════════════════════════════════════════════════════════════════════════════ */

/* ─── REGISTERED CUSTOM PROPERTIES ────────────────────────────────────────
   Without @property registration, browsers cannot interpolate values like
   angles, percentages, or colors in animations — they fall back to
   discrete jumps. These registrations let the GPU smoothly interpolate. */

@property --holo-shift {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@property --holo-shimmer {
  syntax: '<percentage>';
  initial-value: -120%;
  inherits: false;
}
@property --refract-rotate {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ─── ENHANCED PLEXI BASE ─────────────────────────────────────────────────
   Layer the holographic effects onto the existing .plexi base. We do this
   via a new wrapper class `.holo-enhance` that can be applied alongside
   `.plexi`, OR we extend .plexi itself with the new visual layers. We
   choose to extend .plexi so every existing plexi card gets the upgrade
   for free — the existing isolation: isolate and z-index 0 base layer
   continue to work. */

.plexi {
  /* Stack a sharper inner top-edge highlight (1px white at 90% alpha)
     plus a deeper inner bottom shadow for visual weight. Adds depth
     without changing radius or fill. */
  box-shadow:
    /* inner top highlight — catches studio light */
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    /* inner top-edge ultra-thin chroma boost */
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.08),
    /* inner bottom shadow — gives the panel an edge to sit on */
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    /* drop shadow — two-layer for soft falloff */
    0 1px 1px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.28),
    0 24px 60px rgba(0, 0, 0, 0.22);
  /* GPU-accelerated transform context for the parallax tilt */
  transform: translate3d(0, 0, 0);
  transform-style: preserve-3d;
  /* Smooth state transitions for hover */
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease;
}

/* Extend the iridescent gradient overlay (::before) with a holographic
   diagonal sheen — the kind of sweep you see on a hologram sticker when
   you tilt it. We layer the sheen on top of the existing iris stops via
   a second gradient. */
.plexi::before {
  background:
    /* Layer 1: existing iris stops (preserved verbatim from base) */
    linear-gradient(
      var(--iris-angle, 135deg),
      var(--tint-cyan) 0%,
      transparent 18%,
      var(--tint-iris) 36%,
      transparent 54%,
      var(--tint-mint) 72%,
      transparent 90%,
      var(--tint-blue) 100%
    ),
    /* Layer 2: holographic shimmer band — a narrow diagonal stripe that
       drifts from off-screen left to off-screen right and back, giving
       the impression of a light source moving past */
    linear-gradient(
      125deg,
      transparent 30%,
      rgba(255, 255, 255, 0.04) 45%,
      rgba(139, 224, 255, 0.06) 50%,
      rgba(183, 140, 255, 0.05) 53%,
      rgba(255, 255, 255, 0.04) 56%,
      transparent 70%
    );
  background-size: 100% 100%, 250% 100%;
  background-position: 0 0, var(--holo-shimmer, -120%) 0;
  animation:
    iris-drift var(--dur-iris, 6s) ease-in-out infinite alternate,
    holo-sweep 14s linear infinite;
}

/* Enhanced specular corner reflection. The original was a 40% × 40%
   ellipse at top-left; we sharpen the focal point, soften the falloff,
   and add a secondary highlight at bottom-right for cross-light. */
.plexi::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Primary specular highlight, sharper */
    radial-gradient(
      ellipse 60% 50% at 18% 12%,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.06) 22%,
      transparent 55%
    ),
    /* Secondary cross-light from opposite corner */
    radial-gradient(
      ellipse 70% 60% at 88% 110%,
      rgba(139, 224, 255, 0.05) 0%,
      transparent 55%
    );
  pointer-events: none;
  z-index: 0;
  /* The specular shouldn't move with the parallax (it's a "light source")
     while the substrate does — but for simplicity we let it move with
     the parent. */
}

/* ─── HOLO-EDGE: chromatic refraction at the border ──────────────────────
   A thin animated conic gradient running just inside the border catches
   light like the edge of a polished plexiglass sheet. Implemented as a
   pseudo-element on the panel's first child, but since we can't add a
   third pseudo without restructuring, we apply it to a wrapper class
   that opt-in panels can add: `.plexi.holo-edge`. */

.plexi-strong,
.holo-edge {
  /* Edge refraction is more pronounced on emphasized surfaces */
  border-color: rgba(255, 255, 255, 0.18);
}

/* ─── HOLOGRAPHIC SHEEN ANIMATION ─────────────────────────────────────────
   The shimmer band drifts from far-left across the surface and exits
   far-right, then loops. Slow (14s) so it never feels busy. */

@keyframes holo-sweep {
  0%   { --holo-shimmer: -120%; }
  60%  { --holo-shimmer: 220%; }
  100% { --holo-shimmer: 220%; }
}

/* ─── 3D PARALLAX TILT ───────────────────────────────────────────────────
   Applied via JS on .plexi-tilt elements. The wallet sets --mx and --my
   custom properties on mouse move, ranging -1..1 across the element.
   We translate that into a small rotateX / rotateY for a subtle 3D feel.

   Magnitude kept gentle (4 degrees max) so it reads as material depth,
   not a gimmick. Only triggers on hover, so resting panels stay flat. */

.plexi-tilt {
  perspective: 1200px;
  transform-style: preserve-3d;
}
.plexi-tilt:hover {
  transform:
    perspective(1200px)
    rotateX(calc(var(--my, 0) * -4deg))
    rotateY(calc(var(--mx, 0) * 4deg))
    translateZ(8px);
}
/* The specular highlight inside a tilting panel should follow the cursor
   to maintain the illusion of a fixed light source. */
.plexi-tilt::after {
  background:
    radial-gradient(
      ellipse 60% 50% at calc(50% + var(--mx, 0) * 30%) calc(50% + var(--my, 0) * 30%),
      rgba(255, 255, 255, 0.20) 0%,
      rgba(255, 255, 255, 0.08) 18%,
      transparent 48%
    );
  transition: background 80ms linear;
}

/* ─── PANEL HOVER LIFT ───────────────────────────────────────────────────
   For non-tilting panels (the default), a subtle lift on hover signals
   interactivity without overcommitting. */

.plexi-hover:hover,
.plexi.interactive:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    0 2px 2px rgba(0, 0, 0, 0.18),
    0 14px 32px rgba(0, 0, 0, 0.36),
    0 36px 80px rgba(0, 0, 0, 0.28),
    /* Brand-tinted glow on hover for emphasis */
    0 0 24px rgba(91, 141, 239, 0.10);
}

/* ─── HOLO BUTTON ENHANCEMENT ─────────────────────────────────────────────
   The .qf-btn primary buttons get a holographic gradient sweep on hover,
   plus a sharper inner top highlight and an underglow. These changes
   compose with the existing .qf-btn rules from final-polish.css. */

.qf-btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(74, 222, 128, 0.22),
    0 12px 32px rgba(74, 222, 128, 0.18);
}
.qf-btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(255, 255, 255, 0.40) 50%,
    rgba(255, 255, 255, 0.28) 52%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.qf-btn-primary:hover:not(:disabled)::before {
  transform: translateX(120%);
}
.qf-btn-primary:hover:not(:disabled) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 6px 18px rgba(74, 222, 128, 0.36),
    0 20px 48px rgba(74, 222, 128, 0.32);
  transform: translateY(-1px);
}
.qf-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    inset 0 2px 6px rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(74, 222, 128, 0.22),
    0 2px 6px rgba(74, 222, 128, 0.18);
}

/* Secondary buttons get a quieter version of the sheen sweep */
.qf-btn-secondary {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(13, 28, 20, 0.72);
}
.qf-btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(110, 240, 151, 0.14) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.qf-btn-secondary:hover:not(:disabled)::before {
  transform: translateX(100%);
}
.qf-btn-secondary:hover:not(:disabled) {
  border-color: rgba(110, 240, 151, 0.42);
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.10) 0%, rgba(110, 240, 151, 0.02) 100%),
    rgba(18, 38, 26, 0.82);
}

/* Danger buttons get a red underglow */
.qf-btn-danger {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(252, 100, 100, 0.28),
    0 12px 32px rgba(252, 100, 100, 0.22);
}
.qf-btn-danger:hover:not(:disabled) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 6px 18px rgba(252, 100, 100, 0.42),
    0 20px 48px rgba(252, 100, 100, 0.36);
}

/* ─── INPUT FIELD GLASS REFINEMENT ────────────────────────────────────────
   Inputs adopt the same plexi treatment — backdrop blur, inner edge
   highlight, focus ring that mirrors the primary button glow. */

.qf-field input,
.qf-field textarea,
.qf-field select,
.compose-amount-input {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 19, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.04);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}
.qf-field input:focus,
.qf-field textarea:focus,
.qf-field select:focus,
.compose-amount-input:focus {
  border-color: rgba(110, 240, 151, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    inset 0 0 0 0.5px rgba(110, 240, 151, 0.18),
    0 0 0 3px rgba(110, 240, 151, 0.14),
    0 0 24px rgba(110, 240, 151, 0.10);
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.04) 0%, rgba(110, 240, 151, 0.01) 100%),
    rgba(10, 22, 16, 0.82);
}

/* ─── BADGE REFINEMENT ────────────────────────────────────────────────────
   Tighten the badge layout, add inner edge for material feel. */

.qf-badge {
  padding: 3px 8px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.qf-badge-dot {
  width: 5px;
  height: 5px;
  filter: drop-shadow(0 0 4px currentColor);
}

/* ─── ADDRESS CHIP MATERIAL REFINEMENT ────────────────────────────────────
   The click-to-copy chip becomes a small plexi pill. */

.qf-addr {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 19, 13, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.04);
  letter-spacing: 0.02em;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.qf-addr:hover:not(:disabled) {
  transform: translateY(-0.5px);
  border-color: rgba(110, 240, 151, 0.32);
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.08) 0%, rgba(110, 240, 151, 0.02) 100%),
    rgba(12, 28, 20, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(110, 240, 151, 0.12);
}
.qf-addr.copied {
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.20) 0%, rgba(110, 240, 151, 0.08) 100%),
    rgba(14, 38, 24, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(110, 240, 151, 0.42),
    0 0 16px rgba(110, 240, 151, 0.32);
}

/* ─── WALLET PILL HOLOGRAPHIC REFINEMENT ─────────────────────────────────
   The chrome's wallet pill is the most-glanced element. Give it the
   full holographic treatment. */

.wallet-pill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 19, 13, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 4px 16px rgba(0, 0, 0, 0.28);
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.wallet-pill:hover {
  border-color: rgba(110, 240, 151, 0.32);
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.06) 0%, rgba(110, 240, 151, 0.01) 100%),
    rgba(10, 24, 16, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 6px 20px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(110, 240, 151, 0.14);
}
.wallet-pill[data-state="connected"] {
  border-color: rgba(110, 240, 151, 0.32);
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.06) 0%, rgba(110, 240, 151, 0.01) 100%),
    rgba(8, 22, 14, 0.72);
}
.wallet-pill .wallet-status {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-4, #5a6797);
  transition: all 220ms ease;
}
.wallet-pill[data-state="connected"] .wallet-status {
  background: var(--slime, #6ef097);
  box-shadow:
    0 0 0 2px rgba(110, 240, 151, 0.18),
    0 0 12px rgba(110, 240, 151, 0.62);
}
.wallet-pill[data-state="connected"] .wallet-status::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(110, 240, 151, 0.42);
  animation: pulse-ring 2.2s ease-out infinite;
}
.wallet-pill[data-state="connecting"] .wallet-status {
  background: #f4b350;
  box-shadow: 0 0 12px rgba(244, 179, 80, 0.62);
  animation: pulse-soft 1.4s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.62; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.42; }
}

/* ─── NETWORK PILL REFINEMENT ─────────────────────────────────────────────
   Match the wallet pill treatment for visual consistency in the chrome. */

.network-pill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 19, 13, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 4px 16px rgba(0, 0, 0, 0.28);
}
.network-pill:hover {
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.06) 0%, rgba(110, 240, 151, 0.01) 100%),
    rgba(10, 24, 16, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(110, 240, 151, 0.10);
}
.network-pill[data-mainnet="true"] {
  border-color: rgba(110, 240, 151, 0.32);
}
.network-pill[data-mainnet="false"] {
  border-color: rgba(244, 179, 80, 0.32);
}
.network-pill-dot {
  filter: drop-shadow(0 0 4px currentColor);
}

/* ─── TIGHTER STAT STRIP ──────────────────────────────────────────────────
   The stat cells get a denser, more deliberate layout. */

.qf-stat {
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 19, 13, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.qf-stat:hover {
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(10, 22, 16, 0.52);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.22);
}
.qf-stat-value {
  font-feature-settings: "tnum" 1, "ss01" 1;
  letter-spacing: -0.012em;
}

/* ─── STAKING BALANCE CELLS — holographic depth ───────────────────────────
   The four balance cells in the staking hero get an extra layer of
   chromatic depth that matches the cell tone. */

.staking-balance {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 19, 13, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 1px 2px rgba(0, 0, 0, 0.18);
  transition: all 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.staking-balance::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    currentColor 0%,
    transparent 60%
  );
  opacity: 0.08;
  pointer-events: none;
}
.staking-balance-live  { color: var(--slime, #6ef097); }
.staking-balance-comp  { color: #22e8f6; }
.staking-balance-warn  { color: #f4b350; }
.staking-balance-pqc   { color: #a882ff; }
.staking-balance:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 6px 18px rgba(0, 0, 0, 0.32),
    0 0 24px color-mix(in srgb, currentColor 20%, transparent);
}

/* ─── BAKER ROW REFINEMENT ────────────────────────────────────────────────
   Tighter padding, sharper hover, refined typography. */

.baker-row {
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 19, 13, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20);
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.baker-row:hover {
  border-color: rgba(110, 240, 151, 0.32);
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(10, 22, 16, 0.52);
  transform: translateX(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    -2px 0 0 var(--slime-hot, #6ef097),
    0 4px 12px rgba(0, 0, 0, 0.22);
}

.baker-cap-bar {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.32) 100%);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.baker-cap-fill {
  background: linear-gradient(180deg, currentColor 0%, color-mix(in srgb, currentColor 70%, black) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 8px currentColor;
}

/* ─── TOAST HOLOGRAPHIC LAYER ─────────────────────────────────────────────
   Already polished in v2.3 — add a subtle inner refraction edge so the
   toast feels like a piece of glass rather than a card. */

.qf-toast {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 18, 12, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.22),
    0 12px 32px rgba(0, 0, 0, 0.42),
    0 32px 64px rgba(0, 0, 0, 0.32);
}
.qf-toast-icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 0 12px currentColor;
}

/* ─── MODAL HOLOGRAPHIC LAYER ─────────────────────────────────────────────
   The connect modal and confirm dialog are signature surfaces. They
   deserve the full studio-glass treatment. */

.qf-modal,
.qf-confirm {
  background:
    /* Top chromatic refraction band */
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 28%),
    /* Brand glow from top-right */
    radial-gradient(ellipse 720px 360px at 88% -8%, rgba(110, 240, 151, 0.12) 0%, transparent 56%),
    rgba(8, 18, 12, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.62),
    0 8px 16px rgba(0, 0, 0, 0.42);
}
.qf-modal-head-icon,
.qf-confirm-icon {
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.18) 0%, rgba(110, 240, 151, 0.04) 100%),
    rgba(10, 22, 16, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 0 16px rgba(110, 240, 151, 0.22);
}
.qf-confirm-danger .qf-confirm-icon {
  background:
    linear-gradient(180deg, rgba(252, 100, 100, 0.18) 0%, rgba(252, 100, 100, 0.04) 100%),
    rgba(28, 12, 12, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 0 16px rgba(252, 100, 100, 0.22);
}

/* Adapter rows in the connect modal get a subtle interactive sheen */
.qf-adapter-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 19, 13, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20);
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.qf-adapter-row:hover:not(:disabled) {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.08) 0%, rgba(110, 240, 151, 0.01) 100%),
    rgba(10, 22, 16, 0.62);
  border-color: rgba(110, 240, 151, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(110, 240, 151, 0.14);
}

/* ─── NETWORK POPOVER REFINEMENT ──────────────────────────────────────────
   The dropdown panel itself, plus each row. */

.network-popover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(ellipse 480px 220px at 80% 0%, rgba(110, 240, 151, 0.10) 0%, transparent 60%),
    rgba(5, 12, 8, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.06),
    0 28px 68px rgba(0, 0, 0, 0.62),
    0 8px 16px rgba(0, 0, 0, 0.42);
}
.network-row {
  transition: all 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.network-row:hover {
  background:
    linear-gradient(90deg, rgba(110, 240, 151, 0.08) 0%, rgba(110, 240, 151, 0.02) 100%);
}
.network-row.active {
  background:
    linear-gradient(90deg, rgba(110, 240, 151, 0.14) 0%, rgba(110, 240, 151, 0.04) 100%);
  box-shadow: inset 2px 0 0 var(--slime-hot, #6ef097);
}

/* ─── COMPOSE TABS HOLOGRAPHIC FRAME ──────────────────────────────────────
   The Stake / Unstake / Finalize tabs become a 3D bezel. */

.compose-tabs {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.18) 100%),
    rgba(8, 19, 13, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.compose-tab.active {
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.18) 0%, rgba(110, 240, 151, 0.06) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 1px 4px rgba(110, 240, 151, 0.22);
}

/* ─── CYCLE PROGRESS BAR REFINEMENT ───────────────────────────────────────
   The Tezos cycle progress becomes a glowing capsule. */

.cycle-bar {
  height: 8px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.32) 100%);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.cycle-bar-fill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 50%),
    linear-gradient(90deg, var(--slime-deep, #34c66b) 0%, var(--slime-hot, #6ef097) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 12px rgba(110, 240, 151, 0.42);
}

/* ─── DIAGNOSTICS DRAWER POOL CARDS ───────────────────────────────────────
   Each endpoint row becomes a sleek glass tile. */

.qfw-diag-pool-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 19, 13, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.qfw-diag-pool-dot {
  filter: drop-shadow(0 0 4px currentColor);
}

/* ─── TIGHTER VERTICAL RHYTHM ─────────────────────────────────────────────
   Reduce surface header bottom margins for denser composition. */

.qf-panel-head {
  margin-bottom: 14px;
  padding-bottom: 10px;
}

/* ─── HAIRLINE DIVIDER REFINEMENT ─────────────────────────────────────────
   Make hairlines crisper — single-pixel with subtle gradient. */

.qf-divider {
  margin: 14px 0;
}
.qf-divider::before {
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.18) 18%,
      rgba(255, 255, 255, 0.18) 82%,
      transparent 100%
    );
  height: 1px;
}

/* ─── BACKDROP / AMBIENT LATTICE ENHANCEMENT ──────────────────────────────
   Subtle vignette around the viewport to anchor the floating panels. */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    /* Top brand glow */
    radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(91, 141, 239, 0.06) 0%, transparent 56%),
    /* Bottom mint glow */
    radial-gradient(ellipse 1000px 500px at 50% 110%, rgba(110, 240, 151, 0.04) 0%, transparent 56%),
    /* Edge vignette */
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.32) 100%);
}

/* ─── NUMERIC EMPHASIS ────────────────────────────────────────────────────
   Tabular numerics for every monospace context where alignment matters.
   This catches balance displays, cycle numbers, latencies, etc. */

.qf-stat-value,
.staking-hero-total strong,
.staking-balance-val,
.cycle-num strong,
.compose-amount-input,
.requests-table td,
.baker-stat strong,
.qfw-diag-pool-text strong {
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums;
}

/* ─── REDUCED MOTION OVERRIDES ────────────────────────────────────────────
   Disable parallax tilt, shimmer sweep, and pulse rings when the user
   prefers reduced motion. The visual depth (shadows, gradients, glow)
   stays intact. */

@media (prefers-reduced-motion: reduce) {
  .plexi {
    transition: none;
  }
  .plexi-tilt:hover {
    transform: none;
  }
  .qf-btn-primary::before,
  .qf-btn-secondary::before {
    transition: none;
    transform: translateX(-100%);
  }
  .wallet-pill[data-state="connected"] .wallet-status::before {
    animation: none;
    opacity: 0.32;
  }
  .wallet-pill[data-state="connecting"] .wallet-status {
    animation: none;
  }
  .plexi::before {
    animation: iris-drift var(--dur-iris, 6s) ease-in-out infinite alternate;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   v2.6 · LIVE TELEMETRY VISUAL LAYER
   ════════════════════════════════════════════════════════════════════════════ */

/* ─── LIVE TELEMETRY PANEL ────────────────────────────────────────────── */

.live-telemetry-panel {
  padding: 18px 20px;
}
.live-telemetry-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.live-telemetry-cell {
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.live-telemetry-cell:hover {
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(10, 22, 16, 0.52);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.22);
}
.live-telemetry-cell-spark {
  min-height: 76px;
}

/* ─── BLOCK HEIGHT INDICATOR ─────────────────────────────────────────── */

.qf-block-height {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
}
.qf-block-height-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-block-height-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text, #e6fff0);
  font-feature-settings: "tnum" 1, "zero" 1;
  letter-spacing: -0.005em;
  transition: color 240ms ease;
}
.qf-block-height-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slime, #6ef097);
  box-shadow: 0 0 8px var(--slime, #6ef097);
  opacity: 0.62;
  transition: all 240ms ease;
}
.qf-block-height.flashing .qf-block-height-value {
  color: var(--slime-hot, #6ef097);
}
.qf-block-height.flashing .qf-block-height-dot {
  opacity: 1;
  box-shadow: 0 0 16px var(--slime, #6ef097), 0 0 0 3px rgba(110, 240, 151, 0.18);
  animation: block-flash 600ms ease-out;
}
@keyframes block-flash {
  0%   { transform: scale(1);    opacity: 0.6; }
  30%  { transform: scale(1.6);  opacity: 1; }
  100% { transform: scale(1);    opacity: 0.62; }
}

/* ─── INDEXER LAG INDICATOR ──────────────────────────────────────────── */

.qf-indexer-lag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
}
.qf-indexer-lag-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-indexer-lag-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #e6fff0);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.005em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(8, 19, 13, 0.62);
  border: 1px solid;
  transition: all 240ms ease;
}
.qf-indexer-lag[data-tone="live"] .qf-indexer-lag-value {
  color: var(--slime-hot, #6ef097);
  border-color: rgba(110, 240, 151, 0.32);
  background: rgba(8, 22, 14, 0.62);
}
.qf-indexer-lag[data-tone="warn"] .qf-indexer-lag-value {
  color: #f4b350;
  border-color: rgba(244, 179, 80, 0.42);
  background: rgba(22, 16, 8, 0.62);
}
.qf-indexer-lag[data-tone="fail"] .qf-indexer-lag-value {
  color: #fc6464;
  border-color: rgba(252, 100, 100, 0.42);
  background: rgba(22, 8, 8, 0.62);
}

/* ─── CONNECTION STATUS DOT ──────────────────────────────────────────── */

.qf-conn-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 19, 13, 0.62);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  font-family: var(--mono);
}
.qf-conn-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: all 240ms ease;
}
.qf-conn-status-label {
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
  transition: color 240ms ease;
}
.qf-conn-status[data-state="open"] .qf-conn-status-dot {
  background: var(--slime-hot, #6ef097);
  box-shadow: 0 0 8px var(--slime-hot, #6ef097);
}
.qf-conn-status[data-state="open"] .qf-conn-status-label {
  color: var(--slime-hot, #6ef097);
}
.qf-conn-status[data-state="reconnecting"] .qf-conn-status-dot {
  background: #f4b350;
  box-shadow: 0 0 8px #f4b350;
  animation: pulse-soft 1.4s ease-in-out infinite;
}
.qf-conn-status[data-state="reconnecting"] .qf-conn-status-label {
  color: #f4b350;
}
.qf-conn-status[data-state="closed"] .qf-conn-status-dot,
.qf-conn-status[data-state="connecting"] .qf-conn-status-dot {
  background: var(--ink-4, #5a6797);
}

/* ─── LATENCY GAUGE ──────────────────────────────────────────────────── */

.qf-latency-gauge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
}
.qf-latency-gauge-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
  flex-shrink: 0;
}
.qf-latency-gauge-bar {
  flex: 1;
  height: 5px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.28));
  border-radius: 2.5px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  min-width: 40px;
}
.qf-latency-gauge-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2.5px;
  background: linear-gradient(90deg, var(--slime-deep, #34c66b) 0%, var(--slime-hot, #6ef097) 100%);
  box-shadow: 0 0 8px currentColor;
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1), background 400ms ease;
}
.qf-latency-gauge[data-tone="warn"] .qf-latency-gauge-fill {
  background: linear-gradient(90deg, #a87324 0%, #f4b350 100%);
}
.qf-latency-gauge[data-tone="fail"] .qf-latency-gauge-fill {
  background: linear-gradient(90deg, #7a3434 0%, #fc6464 100%);
}
.qf-latency-gauge-value {
  font-size: 11px;
  color: var(--text, #e6fff0);
  font-feature-settings: "tnum" 1;
  flex-shrink: 0;
  min-width: 56px;
  text-align: right;
}

/* ─── SPARKLINE ──────────────────────────────────────────────────────── */

.qf-sparkline,
.qf-live-sparkline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qf-live-sparkline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.qf-live-sparkline-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-live-sparkline-current {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text, #e6fff0);
  font-feature-settings: "tnum" 1;
}
.qf-sparkline-svg {
  display: block;
  width: 100%;
}
.qf-sparkline-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  color: var(--text-muted, rgba(220, 255, 235, 0.45));
}

@media (prefers-reduced-motion: reduce) {
  .qf-block-height.flashing .qf-block-height-dot {
    animation: none;
  }
  .qf-conn-status[data-state="reconnecting"] .qf-conn-status-dot {
    animation: none;
  }
  .qf-latency-gauge-fill {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   v2.7 · INSTITUTIONAL MODAL SYSTEM
   Wizard, send/receive/trade/stake flows, policy gate, QR, address book chips.
   ════════════════════════════════════════════════════════════════════════════ */

/* ─── QUICK-ACTION GRID (dashboard hero) ────────────────────────────── */

.qf-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}
@media (min-width: 960px) {
  .qf-quick-actions { grid-template-columns: repeat(4, 1fr); }
}
.qf-quick-action {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 19, 13, 0.52);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--text, #e6fff0);
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}
.qf-quick-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(110, 240, 151, 0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.qf-quick-action:hover {
  border-color: rgba(110, 240, 151, 0.32);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(110, 240, 151, 0.12);
}
.qf-quick-action:hover::before { transform: translateX(100%); }
.qf-quick-action-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(110, 240, 151, 0.10);
  color: var(--slime-hot, #6ef097);
  border: 1px solid rgba(110, 240, 151, 0.22);
}
.qf-quick-action-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qf-quick-action-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.qf-quick-action-description {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-quick-action-chevron {
  flex-shrink: 0;
  color: var(--text-muted, rgba(220, 255, 235, 0.35));
  transition: transform 180ms ease, color 180ms ease;
}
.qf-quick-action:hover .qf-quick-action-chevron {
  color: var(--slime-hot, #6ef097);
  transform: translateX(2px);
}

/* ─── WIZARD SHELL ──────────────────────────────────────────────────── */

.qf-wizard {
  width: 100%;
  max-width: 560px;
}
@media (min-width: 720px) {
  .qf-wizard { max-width: 620px; }
}
.qf-wizard-head {
  align-items: flex-start;
}
.qf-wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px 0;
  margin: 0;
}
.qf-wizard-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  color: var(--text-muted, rgba(220, 255, 235, 0.42));
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.qf-wizard-progress-step.active {
  color: var(--slime-hot, #6ef097);
}
.qf-wizard-progress-step.done {
  color: var(--text-2, rgba(220, 255, 235, 0.65));
}
.qf-wizard-progress-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  background: rgba(8, 19, 13, 0.62);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  flex-shrink: 0;
}
.qf-wizard-progress-step.active .qf-wizard-progress-num {
  background: rgba(110, 240, 151, 0.14);
  border-color: rgba(110, 240, 151, 0.42);
  box-shadow: 0 0 12px rgba(110, 240, 151, 0.32);
}
.qf-wizard-progress-step.done .qf-wizard-progress-num {
  background: rgba(110, 240, 151, 0.08);
  border-color: rgba(110, 240, 151, 0.28);
}
.qf-wizard-progress-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qf-wizard-progress-bar {
  flex: 1;
  height: 1px;
  background: var(--edge, rgba(255, 255, 255, 0.10));
  min-width: 8px;
}
.qf-wizard-progress-step.done .qf-wizard-progress-bar {
  background: rgba(110, 240, 151, 0.32);
}
.qf-wizard-body {
  padding: 18px 24px;
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.qf-wizard-body::-webkit-scrollbar { width: 8px; }
.qf-wizard-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.18); }
.qf-wizard-body::-webkit-scrollbar-thumb {
  background: rgba(110, 240, 151, 0.18);
  border-radius: 4px;
}
.qf-wizard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.qf-wizard-step-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(252, 100, 100, 0.10);
  border: 1px solid rgba(252, 100, 100, 0.32);
  border-radius: 8px;
  color: #fc6464;
  font-size: 12px;
  line-height: 1.45;
}
.qf-wizard-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
  font-size: 12px;
}

/* ─── FORM SECTIONS ─────────────────────────────────────────────────── */

.qf-form-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qf-form-section-title {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
  display: flex;
  align-items: center;
  gap: 8px;
}
.qf-form-section-count {
  font-size: 10px;
  color: var(--slime-hot, #6ef097);
  letter-spacing: 0.06em;
}
.qf-form-section-hint {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}

/* ─── ASSET PICKER ──────────────────────────────────────────────────── */

.qf-asset-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.qf-asset-option {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--text, #e6fff0);
  transition: all 180ms ease;
}
.qf-asset-option:hover {
  border-color: var(--edge-hi, rgba(255, 255, 255, 0.18));
}
.qf-asset-option.active {
  background: rgba(110, 240, 151, 0.08);
  border-color: rgba(110, 240, 151, 0.42);
  box-shadow: inset 0 0 0 1px rgba(110, 240, 151, 0.18);
}
.qf-asset-option-symbol {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.qf-asset-option-balance {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}

/* ─── ADDRESS BOOK CHIPS ────────────────────────────────────────────── */

.qf-address-book-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.qf-address-book-strip-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.45));
  margin-right: 4px;
}
.qf-address-book-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(8, 19, 13, 0.62);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-2, rgba(220, 255, 235, 0.82));
  cursor: pointer;
  transition: all 180ms ease;
}
.qf-address-book-chip:hover {
  background: rgba(110, 240, 151, 0.06);
  border-color: rgba(110, 240, 151, 0.32);
  color: var(--text, #e6fff0);
}
.qf-address-book-chip.whitelisted {
  background: rgba(110, 240, 151, 0.10);
  border-color: rgba(110, 240, 151, 0.32);
  color: var(--slime-hot, #6ef097);
}

/* ─── AMOUNT INPUT ──────────────────────────────────────────────────── */

.qf-amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qf-amount-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(8, 19, 13, 0.72);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 10px;
  padding: 0 14px;
  transition: all 180ms ease;
}
.qf-amount-input-wrap:focus-within {
  border-color: rgba(110, 240, 151, 0.56);
  box-shadow: 0 0 0 3px rgba(110, 240, 151, 0.14);
}
.qf-amount-input {
  flex: 1;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--text, #e6fff0);
  outline: none;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
  min-width: 0;
}
.qf-amount-input::placeholder {
  color: var(--text-muted, rgba(220, 255, 235, 0.32));
}
.qf-amount-unit {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.qf-amount-usd {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
  white-space: nowrap;
}
.qf-amount-shortcuts {
  display: flex;
  gap: 6px;
}
.qf-amount-shortcut {
  appearance: none;
  padding: 5px 10px;
  background: rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-2, rgba(220, 255, 235, 0.65));
  cursor: pointer;
  transition: all 180ms ease;
}
.qf-amount-shortcut:hover {
  background: rgba(110, 240, 151, 0.08);
  border-color: rgba(110, 240, 151, 0.32);
  color: var(--slime-hot, #6ef097);
}
.qf-balance-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
  flex-wrap: wrap;
}
.qf-balance-amount {
  margin-left: auto;
  color: var(--text-2, rgba(220, 255, 235, 0.78));
}

/* ─── REVIEW SUMMARY ────────────────────────────────────────────────── */

.qf-review-summary {
  background: rgba(8, 19, 13, 0.52);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}
.qf-review-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
}
.qf-review-summary-row > span:first-child {
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.qf-review-summary-row > strong,
.qf-review-summary-row > em {
  color: var(--text, #e6fff0);
  font-style: normal;
  font-weight: 500;
  text-align: right;
  font-feature-settings: "tnum" 1;
}
.qf-review-summary-amount strong {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--slime-hot, #6ef097);
}

/* ─── FEE TIER PICKER ───────────────────────────────────────────────── */

.qf-fee-tier-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.qf-fee-tier {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--text, #e6fff0);
  transition: all 180ms ease;
  text-align: left;
}
.qf-fee-tier:hover {
  border-color: var(--edge-hi, rgba(255, 255, 255, 0.18));
}
.qf-fee-tier.active {
  background: rgba(110, 240, 151, 0.08);
  border-color: rgba(110, 240, 151, 0.42);
}
.qf-fee-tier-name {
  font-size: 11.5px;
  font-weight: 500;
  text-transform: capitalize;
}
.qf-fee-tier-eta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-fee-tier-amount {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slime-hot, #6ef097);
  font-feature-settings: "tnum" 1;
  margin-top: 2px;
}
.qf-fee-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 8px;
  margin-top: 8px;
}
.qf-fee-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
}
.qf-fee-breakdown-row > span {
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-fee-breakdown-row > strong {
  color: var(--text-2, rgba(220, 255, 235, 0.82));
  font-weight: 500;
  font-feature-settings: "tnum" 1;
}
.qf-fee-breakdown-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
}
.qf-fee-breakdown-total strong {
  color: var(--slime-hot, #6ef097);
  font-size: 12px;
}
.qf-fee-breakdown-note {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--text-muted, rgba(220, 255, 235, 0.45));
  font-family: var(--sans);
}

/* ─── POLICY GATE ───────────────────────────────────────────────────── */

.qf-policy-gate-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qf-policy-gate-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 8px;
}
.qf-policy-gate-pass { border-color: rgba(110, 240, 151, 0.22); }
.qf-policy-gate-warn { border-color: rgba(244, 179, 80, 0.32); background: rgba(244, 179, 80, 0.04); }
.qf-policy-gate-fail { border-color: rgba(252, 100, 100, 0.42); background: rgba(252, 100, 100, 0.04); }
.qf-policy-gate-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.qf-policy-gate-icon.pass { background: rgba(110, 240, 151, 0.14); color: var(--slime-hot, #6ef097); }
.qf-policy-gate-icon.warn { background: rgba(244, 179, 80, 0.14); color: #f4b350; }
.qf-policy-gate-icon.fail { background: rgba(252, 100, 100, 0.14); color: #fc6464; }
.qf-policy-gate-content {
  flex: 1;
  min-width: 0;
}
.qf-policy-gate-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text, #e6fff0);
  letter-spacing: -0.005em;
}
.qf-policy-gate-detail {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
  margin-top: 2px;
}

/* ─── SIGN STEP ─────────────────────────────────────────────────────── */

.qf-wizard-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 20px;
  text-align: center;
}
.qf-wizard-sign-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(110, 240, 151, 0.10);
  border: 1px solid rgba(110, 240, 151, 0.32);
  color: var(--slime-hot, #6ef097);
}
.qf-wizard-sign-title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text, #e6fff0);
}
.qf-wizard-sign-body {
  margin: 0;
  max-width: 420px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted, rgba(220, 255, 235, 0.65));
}
.qf-wizard-sign-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2, rgba(220, 255, 235, 0.78));
}
.qf-wizard-sign-meta strong {
  color: var(--slime-hot, #6ef097);
  font-feature-settings: "tnum" 1;
}

/* ─── CONFIRM STEP ──────────────────────────────────────────────────── */

.qf-wizard-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 8px 8px;
  text-align: center;
}
.qf-wizard-confirm-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(110, 240, 151, 0.12);
  border: 1px solid rgba(110, 240, 151, 0.42);
  color: var(--slime-hot, #6ef097);
  box-shadow: 0 0 32px rgba(110, 240, 151, 0.22);
}
.qf-wizard-confirm-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text, #e6fff0);
}
.qf-wizard-confirm-body {
  margin: 0;
  max-width: 460px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2, rgba(220, 255, 235, 0.72));
}
.qf-wizard-confirm-op {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.qf-wizard-confirm-op-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-wizard-confirm-progress {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.qf-wizard-confirm-progress-bar {
  height: 6px;
  background: rgba(8, 19, 13, 0.72);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
}
.qf-wizard-confirm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--slime-deep, #34c66b), var(--slime-hot, #6ef097));
  box-shadow: 0 0 12px rgba(110, 240, 151, 0.42);
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.qf-wizard-confirm-progress-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-wizard-confirm-cta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── RECEIVE MODAL ─────────────────────────────────────────────────── */

.qf-receive-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.qf-iface-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.qf-iface-toggle-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--text, #e6fff0);
  transition: all 180ms ease;
}
.qf-iface-toggle-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.qf-iface-toggle-btn.active {
  background: rgba(110, 240, 151, 0.08);
  border-color: rgba(110, 240, 151, 0.42);
}
.qf-iface-toggle-symbol {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--slime-hot, #6ef097);
}
.qf-iface-toggle-label {
  font-size: 12px;
}
.qf-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.qf-qr-frame {
  position: relative;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(8, 19, 13, 0.62);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.12));
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.32);
}
.qf-qr-svg {
  display: block;
  color: var(--text, #e6fff0);
}
.qf-qr-center-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(110, 240, 151, 0.18) 0%, rgba(110, 240, 151, 0.04) 100%),
    rgba(8, 19, 13, 0.95);
  border: 1px solid rgba(110, 240, 151, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--slime-hot, #6ef097);
  letter-spacing: 0.04em;
  box-shadow: 0 0 12px rgba(110, 240, 151, 0.22);
}
.qf-qr-caption {
  margin: 0;
  max-width: 360px;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-receive-address-row,
.qf-receive-uri-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(8, 19, 13, 0.62);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 8px;
}
.qf-receive-address-code,
.qf-receive-uri-code {
  flex: 1;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2, rgba(220, 255, 235, 0.78));
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  letter-spacing: 0.01em;
}
.qf-receive-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-receive-no-wallet {
  padding: 32px 20px;
  text-align: center;
}
.qf-receive-no-wallet h3 { color: var(--text, #e6fff0); margin: 0 0 8px; }
.qf-receive-no-wallet p { color: var(--text-muted, rgba(220, 255, 235, 0.55)); font-size: 12px; line-height: 1.55; max-width: 360px; margin: 0 auto; }

/* ─── STAKE MODAL ───────────────────────────────────────────────────── */

.qf-stake-baker-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qf-stake-existing-delegate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  background:
    radial-gradient(ellipse 320px 160px at 50% 0%, rgba(110, 240, 151, 0.10), transparent 60%),
    rgba(8, 19, 13, 0.52);
  border: 1px solid rgba(110, 240, 151, 0.32);
  border-radius: 12px;
  text-align: center;
}
.qf-stake-existing-delegate h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text, #e6fff0);
}
.qf-stake-existing-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
  max-width: 420px;
}
.qf-stake-baker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.qf-stake-baker-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--text, #e6fff0);
  text-align: left;
  transition: all 180ms ease;
}
.qf-stake-baker-card:hover {
  border-color: var(--edge-hi, rgba(255, 255, 255, 0.18));
  transform: translateY(-1px);
}
.qf-stake-baker-card.selected {
  background: rgba(110, 240, 151, 0.08);
  border-color: rgba(110, 240, 151, 0.42);
  box-shadow: 0 0 16px rgba(110, 240, 151, 0.14);
}
.qf-stake-baker-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.qf-stake-baker-card-head strong {
  font-size: 13px;
  font-weight: 500;
}
.qf-stake-baker-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.qf-stake-baker-card-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qf-stake-baker-card-stat > span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.45));
}
.qf-stake-baker-card-stat > strong {
  font-family: var(--mono);
  font-size: 11px;
  font-feature-settings: "tnum" 1;
}
.qf-stake-baker-card-util {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qf-stake-baker-card-util-bar {
  flex: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 2px;
  overflow: hidden;
}
.qf-stake-baker-card-util-fill {
  height: 100%;
  border-radius: 2px;
}
.qf-stake-baker-card-util-live .qf-stake-baker-card-util-fill { background: var(--slime-hot, #6ef097); }
.qf-stake-baker-card-util-warn .qf-stake-baker-card-util-fill { background: #f4b350; }
.qf-stake-baker-card-util-fail .qf-stake-baker-card-util-fill { background: #fc6464; }
.qf-stake-baker-card-util > span {
  font-family: var(--mono);
  font-size: 10px;
  font-feature-settings: "tnum" 1;
}

.qf-stake-position {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qf-stake-position-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.qf-stake-position-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 8px;
}
.qf-stake-position-cell-live { border-color: rgba(110, 240, 151, 0.32); }
.qf-stake-position-cell-comp { border-color: rgba(34, 232, 246, 0.32); }
.qf-stake-position-cell-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-stake-position-cell-value {
  font-family: var(--mono);
  font-size: 14px;
  font-feature-settings: "tnum" 1;
  color: var(--text, #e6fff0);
}
.qf-stake-position-cell-live .qf-stake-position-cell-value { color: var(--slime-hot, #6ef097); }
.qf-stake-position-cell-comp .qf-stake-position-cell-value { color: #22e8f6; }

.qf-stake-projection {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qf-stake-disclosure-callout {
  padding: 12px 14px;
  background: rgba(244, 179, 80, 0.06);
  border: 1px solid rgba(244, 179, 80, 0.32);
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-2, rgba(220, 255, 235, 0.85));
}
.qf-stake-disclosure-callout strong {
  color: #f4b350;
}
.qf-stake-disclosure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.qf-stake-disclosure-cell {
  padding: 10px 12px;
  background: rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 8px;
}
.qf-stake-disclosure-cell-warn { border-color: rgba(244, 179, 80, 0.32); }
.qf-stake-disclosure-cell-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
  margin-bottom: 4px;
}
.qf-stake-disclosure-cell-value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text, #e6fff0);
  font-feature-settings: "tnum" 1;
}
.qf-stake-disclosure-cell-warn .qf-stake-disclosure-cell-value { color: #f4b350; }
.qf-stake-disclosure-body {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-muted, rgba(220, 255, 235, 0.65));
}

/* ─── TRADE MODAL ───────────────────────────────────────────────────── */

.qf-trade-pair-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qf-trade-leg {
  padding: 14px 16px;
  background: rgba(8, 19, 13, 0.52);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 10px;
}
.qf-trade-leg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.qf-trade-leg-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-trade-flip-row {
  display: flex;
  justify-content: center;
  margin: -10px 0;
  position: relative;
  z-index: 1;
}
.qf-trade-flip-btn {
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(8, 19, 13, 0.95);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.16));
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.qf-trade-flip-btn:hover {
  color: var(--slime-hot, #6ef097);
  border-color: rgba(110, 240, 151, 0.42);
  transform: rotate(180deg);
}
.qf-trade-asset-picker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.qf-trade-asset-select {
  appearance: none;
  background: rgba(8, 19, 13, 0.62);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text, #e6fff0);
  cursor: pointer;
}
.qf-trade-asset-name {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-muted, rgba(220, 255, 235, 0.45));
}
.qf-trade-quote-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 8px;
  margin-top: 8px;
}
.qf-trade-quote-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
}
.qf-trade-quote-row > span {
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-trade-quote-row > strong {
  color: var(--text-2, rgba(220, 255, 235, 0.82));
  font-feature-settings: "tnum" 1;
}
.qf-trade-quote-row-warn > strong { color: #f4b350; }
.qf-trade-quote-row-fail > strong { color: #fc6464; }
.qf-trade-quote-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-trade-route {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qf-trade-route-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  background:
    radial-gradient(ellipse 480px 200px at 50% 50%, rgba(110, 240, 151, 0.05), transparent 60%),
    rgba(8, 19, 13, 0.52);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 10px;
}
.qf-trade-route-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  background: rgba(8, 19, 13, 0.72);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 8px;
  min-width: 64px;
}
.qf-trade-route-node-live { border-color: rgba(110, 240, 151, 0.32); }
.qf-trade-route-node-comp { border-color: rgba(34, 232, 246, 0.42); }
.qf-trade-route-node strong {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text, #e6fff0);
}
.qf-trade-route-node-live strong { color: var(--slime-hot, #6ef097); }
.qf-trade-route-node-comp strong { color: #22e8f6; }
.qf-trade-route-node span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(220, 255, 235, 0.45));
}
.qf-trade-route-arrow {
  color: var(--text-muted, rgba(220, 255, 235, 0.42));
  display: flex;
  align-items: center;
}
.qf-trade-route-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}
.qf-trade-impact-warn { color: #f4b350 !important; }
.qf-trade-impact-fail { color: #fc6464 !important; }
.qf-trade-slippage-picker {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.qf-trade-slippage-btn {
  appearance: none;
  padding: 6px 12px;
  background: rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2, rgba(220, 255, 235, 0.65));
  cursor: pointer;
  transition: all 180ms ease;
}
.qf-trade-slippage-btn:hover {
  background: rgba(110, 240, 151, 0.06);
  color: var(--slime-hot, #6ef097);
}
.qf-trade-slippage-btn.active {
  background: rgba(110, 240, 151, 0.10);
  border-color: rgba(110, 240, 151, 0.42);
  color: var(--slime-hot, #6ef097);
}
.qf-trade-slippage-custom {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(8, 19, 13, 0.42);
  border: 1px solid var(--edge, rgba(255, 255, 255, 0.10));
  border-radius: 6px;
}
.qf-trade-slippage-custom input {
  appearance: none;
  background: transparent;
  border: 0;
  width: 48px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text, #e6fff0);
  outline: none;
  font-feature-settings: "tnum" 1;
}
.qf-trade-slippage-custom span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted, rgba(220, 255, 235, 0.55));
}

/* ─── REDUCED MOTION ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .qf-quick-action::before,
  .qf-trade-flip-btn {
    transition: none !important;
  }
  .qf-wizard-confirm-progress-fill {
    transition: none !important;
  }
}
