/* ═══════════════════════════════════════════════════════════════════
   POXY — ASSET VIEWER MODAL (Obsidian Protocol)
   Split-panel: Cinematic Stage (left) + Operations Center (right)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Backdrop ──────────────────────────────────────────────────────── */
.avm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998; /* below top-up modal (9999) so they can stack */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: max(16px, env(safe-area-inset-top, 16px)) 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 0.26s ease;
}
.avm-backdrop.avm-open { opacity: 1; }
.avm-backdrop[hidden] { display: none !important; }

/* ── Ambient backdrop glow — Stitch: fixed amber radial behind panel */
.avm-backdrop-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(217,119,6,0.15) 0%, rgba(0,0,0,0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: avmBgBreathe 8s ease-in-out infinite alternate;
}
@keyframes avmBgBreathe {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(1.1); opacity: 1;   }
}

/* ── Panel ─────────────────────────────────────────────────────────── */
.avm-panel {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  max-width: 1200px;
  max-height: calc(90dvh - 32px);
  min-height: 0;
  overflow: hidden;
  margin: auto 0;
  /* Stitch: glass-panel = rgba(20,20,22,0.6) backdrop-blur-24px */
  background: rgba(20,20,22,0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  /* Single premium frame — tier-reactive via --avm-border / --avm-glow */
  border: 1px solid var(--avm-border, rgba(245,158,11,0.22));
  border-radius: 32px;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              opacity 0.3s ease;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6),
              0 0 28px var(--avm-glow, rgba(245,158,11,0.1));
  z-index: 1;
}
.avm-backdrop.avm-open .avm-panel {
  transform: translateY(0) scale(1);
}
/* Stitch: transition-transform duration-500 hover:scale-[1.01] */
.avm-backdrop.avm-open .avm-panel:hover {
  transform: scale(1.01);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Corner accents removed — caused double framing with panel border */

/* ── White ambient glow (gradient only, no border) ───────────────── */
.avm-ambient {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 70%);
}

/* ── Close button — Stitch: top-6 right-6 = 24px ──────────────────── */
.avm-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 20;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.avm-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.avm-close .material-symbols-outlined { font-size: 17px; }

/* ════════════════════════════════════════════════════════════════════
   LEFT — CINEMATIC STAGE
   ════════════════════════════════════════════════════════════════════ */
.avm-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 48px;             /* Stitch: p-12 = 3rem = 48px */
  border-right: 1px solid rgba(255,255,255,0.08); /* Stitch: border-border-glass */
  /* Stitch: bg-gradient-to-b from-transparent to-black/40 */
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
  overflow: hidden;
  min-height: 0;
  max-height: 100%;
  /* Stitch: perspective on the stasis pod container */
  perspective: 1000px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Lower amber aura — Stitch: absolute bottom radial from-orange-500/30 blur-3xl */
.avm-stage-lower-aura {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 50%;
  background: radial-gradient(ellipse at center bottom,
    rgba(249,115,22,0.30) 0%,
    rgba(124,45,18,0.10) 40%,
    transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Rarity ambient backlight */
.avm-stage-backlight {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--avm-glow, rgba(255,255,255,0.3)) 0%, transparent 65%);
  pointer-events: none;
  animation: avmBacklightPulse 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes avmBacklightPulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1);    }
  50%       { opacity: 0.85; transform: translateX(-50%) scale(1.12); }
}

/* Inner rarity ring removed — was second perimeter inside stage */
.avm-stage-ring { display: none; }

/* POXY ID badge row */
.avm-poxy-id-badge {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Stitch: font-headline-md text-xl tracking-widest text-primary font-bold uppercase */
.avm-badge-label {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
}

/* Stitch: px-3 py-1 rounded-full border border-amber-border bg-amber-glow text-amber-500 font-mono text-[10px] */
.avm-badge-tier {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border-radius: 999px;
  padding: 4px 12px;
  text-transform: uppercase;
}

/* ── Central asset frame — Stitch stasis-pod premium ───────────────
   Metallic glass: diagonal gradient sheen + deep inset shadow + float
   Stitch: w-64 h-64 md:w-80 md:h-80 rounded-xl                     */
.avm-asset-frame {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 300px;
  border-radius: 32px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
  transition: transform 0.1s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.3s ease-out;
  will-change: transform;
  transform-style: preserve-3d;
}
/* No frame — diamond floats freely on stage background */
.avm-asset-frame::before,
.avm-asset-frame::after { display: none; }

/* Inner mount: plug-in target for any renderer */
.avm-asset-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fallback icon — only shown when no asset image is loaded */
.avm-asset-icon {
  font-size: 72px;
  font-variation-settings: 'FILL' 1;
  filter: drop-shadow(0 0 28px var(--avm-rarity, rgba(255,255,255,0.5)));
  animation: avmIconFloat 4s ease-in-out infinite;
  transition: filter 0.3s;
  position: relative;
  z-index: 3;
}

/* Amber diamond SVG glyph — Stitch .diamond-glyph exact */
.avm-diamond-glyph {
  position: relative;
  z-index: 3;
  transform: translateZ(50px);       /* Stitch: transform translateZ(50px) */
  transition: filter 0.3s;
}
/* Stitch pulseGlyph animation — exact 1:1 */
@keyframes pulseGlyph {
  0%   { filter: drop-shadow(0 0 10px rgba(245,158,11,0.4));  opacity: 0.8; transform: translateZ(50px) scale(0.95); }
  100% { filter: drop-shadow(0 0 25px rgba(245,158,11,0.8));  opacity: 1;   transform: translateZ(50px) scale(1.05); }
}
/* Amber glow blob behind the glyph — Stitch: bg-amber-500/20 blur-xl */
.avm-glyph-blob {
  position: absolute;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(245,158,11,0.2);
  filter: blur(24px);
  pointer-events: none;
  z-index: 2;
}
/* Keep avmDiamondPulse as alias */
@keyframes avmDiamondPulse {
  0%   { filter: drop-shadow(0 0 10px rgba(245,158,11,0.4)); opacity: 0.8; transform: translateZ(50px) scale(0.95); }
  100% { filter: drop-shadow(0 0 25px rgba(245,158,11,0.8)); opacity: 1;   transform: translateZ(50px) scale(1.05); }
}
/* Hide default icon when a real image/model is loaded */
.avm-asset-inner img ~ .avm-asset-icon,
.avm-asset-inner canvas ~ .avm-asset-icon { display: none; }

@keyframes avmIconFloat {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-8px); }
}
@keyframes avmShimmer {
  0%   { background-position: 200% 200%; }
  100% { background-position: -50% -50%; }
}

/* Holographic diagonal sweep — Stitch 1:1 stasis-pod::before */
.avm-stage-sheen { display: none; } /* frame removed per user request */
@keyframes avmHolographicSheen {
  0%   { transform: translate(-50%,-50%) rotate(45deg) translateY(-100%); }
  100% { transform: translate(-50%,-50%) rotate(45deg) translateY(100%);  }
}

/* Stage metadata (number + owner) */
.avm-stage-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

/* Stitch: font-headline-md text-3xl font-bold tracking-tight */
.avm-asset-number {
  font-family: 'Hanken Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  /* Stitch: drop-shadow-[0_0_10px_rgba(255,255,255,0.3)] */
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.avm-owner-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.avm-owner-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

.avm-owner-hash {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: 0.08em;
}

/* Particle field — Stitch: mix-blend-screen opacity-80 */
.avm-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0.8;
}

.avm-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--avm-rarity, rgba(255,255,255,0.4));
  animation: avmParticleDrift 4s ease-in-out infinite;
}

.avm-particle:nth-child(1) { left:15%; top:70%; animation-delay:0s;    animation-duration:3.8s; }
.avm-particle:nth-child(2) { left:75%; top:60%; animation-delay:0.6s;  animation-duration:4.2s; }
.avm-particle:nth-child(3) { left:35%; top:80%; animation-delay:1.2s;  animation-duration:3.5s; }
.avm-particle:nth-child(4) { left:60%; top:75%; animation-delay:1.8s;  animation-duration:4.6s; }
.avm-particle:nth-child(5) { left:25%; top:55%; animation-delay:0.3s;  animation-duration:5s;   }
.avm-particle:nth-child(6) { left:85%; top:85%; animation-delay:2.1s;  animation-duration:3.2s; }

@keyframes avmParticleDrift {
  0%         { transform: translateY(0)    scale(1);   opacity: 0.6; }
  50%        { transform: translateY(-28px) scale(1.4); opacity: 1;   }
  100%       { transform: translateY(-56px) scale(0.6); opacity: 0;   }
}

/* ════════════════════════════════════════════════════════════════════
   RIGHT — OPERATIONS CENTER
   ════════════════════════════════════════════════════════════════════ */
.avm-ops {
  position: relative;
  z-index: 1;
  padding: 48px;           /* Stitch: p-12 = 48px */
  /* Stitch: bg-surface-container-lowest/80 = rgba(14,14,15,0.8) */
  background: rgba(14,14,15,0.8);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;           /* grid child: allow shrink + internal scroll */
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.avm-ops::-webkit-scrollbar { display: none; }

/* Stitch: text-[10px] font-mono text-on-surface-variant/50 tracking-widest uppercase mb-2 */
.avm-ops-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(196,199,200,0.5); /* text-on-surface-variant/50 */
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Stitch: font-headline-md text-4xl font-bold tracking-tight — text-4xl = 36px */
.avm-ops-title {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em; /* tracking-tight */
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

/* Stitch: bg-white/[0.02] rounded-lg p-4 border border-white/[0.03] mb-4 */
/* rounded-lg = custom 1.5rem = 24px; p-4 = 16px */
.avm-data-group {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 16px;
  background-image: none;
  box-shadow: none;
}
.avm-data-group:last-of-type { margin-bottom: 0; }

/* Legacy — hidden */
.avm-data-table { display: none; }

/* Stitch: .data-row { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05) } */
.avm-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: none;
}
.avm-data-group .avm-data-row:last-child { border-bottom: none; }

.avm-data-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.avm-data-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-align: right;
  word-break: break-all;
}

.avm-val-active { color: #4ade80; letter-spacing: 0.12em; }
.avm-val-mono   { color: rgba(255,255,255,0.65); font-size: 10px; }
.avm-val-dim    { color: rgba(255,255,255,0.35); font-size: 9.5px; }
.avm-val-forge  { color: #f0b429; letter-spacing: 0.1em; font-size: 10px; }

.avm-data-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 4px 0;
}

/* Geometric sans-serif utility (Inter / system stack) */
.font-sans {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Stitch: w-full py-3 rounded-lg bg-white/5 border-white/10 text-on-surface-variant font-mono text-xs tracking-widest hover:bg-white/10 */
.avm-crypto-btn {
  width: 100%;
  margin-top: auto;    /* push actions area to bottom of flex column */
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 24px;  /* rounded-lg = 1.5rem = 24px */
  border: 1px solid rgba(255,255,255,0.1);  /* border-white/10 */
  background: rgba(255,255,255,0.05);       /* bg-white/5 */
  color: rgba(255,255,255,0.45);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.avm-crypto-btn:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.16); }
.avm-crypto-btn .material-symbols-outlined { font-size: 14px; }

/* Primary CTA — translucent ghost, eye draws to left panel
   bg-white/5 border border-white/20 text-white
   hover: bg-white text-black (high-contrast reveal)            */
.avm-cta {
  width: 100%;
  margin-bottom: 16px;   /* gap-4 = 16px */
  padding: 16px 20px;
  border-radius: 24px;   /* Stitch: rounded-lg = 1.5rem */
  background: rgba(255,255,255,0.05);     /* bg-white/5 */
  border: 1px solid rgba(255,255,255,0.1); /* border-white/10 */
  color: rgba(255,255,255,0.9);            /* text-white/90 */
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.25s, color 0.25s, border-color 0.25s,
              transform 0.18s cubic-bezier(0.22,1,0.36,1);
}
/* Stitch: hover:bg-white hover:text-black hover:shadow-[0_0_20px_rgba(255,255,255,0.3)] */
.avm-cta:hover {
  background: #fff;
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.avm-cta:active { transform: translateY(0) scale(0.99); }
.avm-cta .material-symbols-outlined { font-size: 16px; }

/* Secondary actions row */
.avm-secondary-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* Stitch: flex-col gap-1 p-3 rounded-lg bg-white/[0.02] border-white/[0.05] hover:bg-white/[0.08] hover:border-white/20 */
.avm-sec-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 24px;  /* rounded-lg = 1.5rem = 24px */
  border: 1px solid rgba(255,255,255,0.05);  /* border-white/[0.05] */
  background: rgba(255,255,255,0.02);        /* bg-white/[0.02] */
  color: rgba(255,255,255,0.45);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
/* Stitch: hover:bg-white/[0.08] hover:border-white/20 + group-hover:text-amber-400 */
.avm-sec-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fbbf24;  /* amber-400 */
}
.avm-sec-btn .material-symbols-outlined { font-size: 18px; }
/* BURN button: red hover */
.avm-sec-danger:hover {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border-color: rgba(239,68,68,0.35);
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .avm-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(90dvh - 32px);
    overflow: hidden;
    border-radius: 20px;
  }
  .avm-stage {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    min-height: 300px;
    max-height: none;
    padding: 24px 20px;
  }
  .avm-ops {
    padding: 20px;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .avm-asset-frame { width: 130px; height: 130px; }
  .avm-asset-icon { font-size: 56px; }
  .avm-secondary-actions { grid-template-columns: repeat(4, 1fr); }
}

/* ── Complete animation isolation — ZERO background render cost ────── */
/* All CSS animation loops pause when modal is closed (avm-open absent).
   Guarantees no GPU/CPU waste while browsing the primary card grid.  */
.avm-backdrop:not(.avm-open) .avm-stage-backlight,
.avm-backdrop:not(.avm-open) .avm-stage-ring,
.avm-backdrop:not(.avm-open) .avm-asset-icon,
.avm-backdrop:not(.avm-open) .avm-asset-frame::after,
.avm-backdrop:not(.avm-open) .avm-asset-frame::before,
.avm-backdrop:not(.avm-open) .avm-particle,
.avm-backdrop:not(.avm-open) .avm-uplink-dot,
.avm-backdrop:not(.avm-open) .avm-ambient,
.avm-backdrop:not(.avm-open) .avm-stage-sheen {
  animation-play-state: paused !important;
}
/* Also remove from layout entirely when hidden */
.avm-backdrop[hidden] * {
  animation-play-state: paused !important;
}

/* ── Uplink status track — Stitch: w-fit (only as wide as content) ── */
/* Stitch: gap-3 px-4 py-2 rounded-md bg-white/5 border-white/5 mb-8 w-fit backdrop-blur-sm */
/* rounded-md = default 1rem = 16px; mb-8 = 32px */
.avm-uplink-track {
  display: inline-flex;
  align-items: center;
  gap: 12px;           /* gap-3 = 12px */
  margin-bottom: 32px; /* mb-8 = 32px */
  padding: 8px 16px;   /* py-2 px-4 */
  background: rgba(255,255,255,0.05);  /* bg-white/5 */
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;  /* rounded-md = default 1rem = 16px */
  width: fit-content;
  backdrop-filter: blur(4px);
}
/* Stitch: w-2 h-2 rounded-full bg-neon-green animate-pulse */
.avm-uplink-dot {
  width: 8px;   /* w-2 = 8px */
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(74,222,128,0.7);
  animation: avmUplinkPulse 2s ease-in-out infinite;
}
@keyframes avmUplinkPulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.45; }
}
/* Stitch: font-mono text-[10px] tracking-widest text-on-surface-variant uppercase */
.avm-uplink-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4c7c8;  /* text-on-surface-variant */
}

/* ── Ops title row: PX-serial + tier pill ──────────────────────────── */
/* Stitch: flex items-center gap-4 mb-8 */
.avm-ops-title-row {
  display: flex;
  align-items: center;
  gap: 16px;          /* gap-4 = 16px */
  margin-bottom: 32px; /* mb-8 = 32px */
  flex-wrap: wrap;
}
/* Stitch: px-3 py-1 rounded-full border border-amber-border bg-transparent text-amber-500 font-mono text-[10px] tracking-wider uppercase shadow-[0_0_15px_rgba(245,158,11,0.1)] */
.avm-ops-tier-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(245,158,11,0.3); /* border-amber-border */
  background: transparent;
  color: #f59e0b;  /* text-amber-500 */
  border-radius: 9999px;
  padding: 4px 12px;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(245,158,11,0.1);
}

/* ── Ops scroll — DNA / LORE overflow fix (≤420px iOS Safari) ─────── */
@media (max-width: 420px) {
  .avm-panel {
    max-height: calc(88dvh - 24px);
  }
  .avm-ops {
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }
}
