/* File:      batch-sheet.css
 * Layer:     4-features/mydomains
 * Version:   1.1.0
 * Depends:   tokens.css (CSS custom properties --v3-*)
 * Selectors: .v3-batch-*  (plus .v3-mydomains-grid.v3-batch-select-on cascade)
 * Spec:      v3/specs/XRPDomains-Batch-Transfer-Burn-Spec.md (v2.2) §13.3, §13.4
 *
 * Batch Transfer / Burn drawer + Select mode UI on My Domains.
 * Every selector starts with .v3-batch- or extends the mydomains-grid
 * via .v3-batch-select-on cascade.  All colors via tokens.css.
 */


/* ====================================================================
   1. SELECT MODE — lives on the My Domains list (header + sticky bar)
   ==================================================================== */

.v3-batch-select-toggle {
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--v3-line-2);
    color: var(--v3-ink-soft);
    padding: 8px 14px;
    border-radius: var(--v3-radius);
    font-family: var(--v3-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
    min-height: 44px;
    /* Lock width so toggling Select ↔ Clear text doesn't reflow the row. */
    min-width: 110px;
    box-sizing: border-box;
}
.v3-batch-select-toggle:hover {
    background: rgba(93, 200, 240, 0.08);
    border-color: rgba(93, 200, 240, 0.35);
    color: var(--v3-accent);
}
.v3-batch-select-toggle:active { transform: scale(0.97); }
.v3-batch-select-toggle.is-on {
    background: rgba(93, 200, 240, 0.14);
    border-color: rgba(93, 200, 240, 0.50);
    color: var(--v3-accent);
}

/* Sticky action bar.  Mounted once and kept in the DOM while select mode
   is on; intentionally NO mount/unmount animation (jittery on every
   state change).                                                       */
.v3-batch-action-bar {
    position: sticky;
    top: var(--v3-header-h, 64px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;          /* status zone left, actions right */
    flex-wrap: nowrap;
    gap: 16px;
    padding: 12px 16px;
    background: var(--v3-glass-bg-strong);
    border: 1px solid var(--v3-glass-border);
    border-radius: var(--v3-radius-lg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--v3-depth-2);
    margin: 12px 0;
    min-height: 64px;
    box-sizing: border-box;
}

/* Left cluster — selection count + Clear (status + reset, same row) */
.v3-batch-action-bar-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Right cluster — primary actions (Transfer + Burn) */
.v3-batch-action-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Counter */
.v3-batch-action-bar-count {
    font-family: var(--v3-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--v3-ink);
    letter-spacing: 0.04em;
    min-width: 90px;
    flex-shrink: 0;
    white-space: nowrap;
}
/* Empty state — a hint, not a status number.  Lighter weight, muted
   colour, italic so it reads as guidance rather than data.          */
.v3-batch-action-bar-count[data-empty="true"] {
    font-family: var(--v3-sans);
    font-weight: 400;
    color: var(--v3-muted);
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
    min-width: 0;
}
.v3-batch-action-bar-count[data-at-cap="true"]::after {
    content: ' · max reached';
    color: var(--v3-orange, #f78c4d);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* Base button — neutral / ghost */
.v3-batch-action-bar-btn {
    appearance: none;
    border: 1px solid var(--v3-line-2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--v3-ink-soft);
    padding: 8px 14px;
    border-radius: var(--v3-radius);
    font-family: var(--v3-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: filter 140ms ease, border-color 140ms ease, color 140ms ease, background 140ms ease;
    min-height: 44px;
}
.v3-batch-action-bar-btn:hover  { filter: brightness(1.10); border-color: var(--v3-accent); color: var(--v3-accent); }
.v3-batch-action-bar-btn:active { transform: scale(0.97); }
.v3-batch-action-bar-btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

/* Ghost variant — Clear */
.v3-batch-action-bar-btn--ghost {
    background: transparent;
    color: var(--v3-muted);
}
.v3-batch-action-bar-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--v3-ink-soft);
    border-color: var(--v3-line-2);
}

/* Primary variant — Transfer (cyan border/text on hover, subtle bg) */
.v3-batch-action-bar-btn--primary {
    border-color: rgba(93, 200, 240, 0.30);
    color: var(--v3-accent);
    background: rgba(93, 200, 240, 0.06);
}
.v3-batch-action-bar-btn--primary:hover {
    border-color: var(--v3-accent);
    background: rgba(93, 200, 240, 0.14);
    color: var(--v3-accent);
}

/* Danger variant — Burn (red, distinct so it's never confused with Transfer) */
.v3-batch-action-bar-btn--danger {
    border-color: rgba(217, 107, 107, 0.40);
    color: var(--v3-red);
    background: rgba(217, 107, 107, 0.06);
}
.v3-batch-action-bar-btn--danger:hover {
    border-color: var(--v3-red);
    background: rgba(217, 107, 107, 0.15);
    color: var(--v3-red);
}

/* Hide the per-card kebab menu (⋮) while select mode is on.  Reason:
   single-domain actions are confusing when the user is in a multi-select
   workflow.                                                              */
.v3-mydomains-grid.v3-batch-select-on .v3-mydomain-menu {
    display: none !important;
}

/* Checkbox is placed INSIDE .v3-mydomain-card-meta, positioned ABSOLUTE
   at the right edge — opposite the domain name.  Long names overlap it
   harmlessly thanks to the slightly opaque background + raised z-index.
   No layout shift when select mode toggles (name keeps its natural flow). */
.v3-mydomains-grid.v3-batch-select-on .v3-mydomain-card-meta {
    position: relative;
}

/* The checkbox — absolute, right-aligned in the meta row.
   Position is set via top/right (no transform centering) because mixing a
   parent translateY with a child scale transition was causing the whole
   checkbox to re-composite and visibly jitter on hover.
   top = meta padding-top (12px) + (text line-height - checkbox height) / 2 ≈ 10px */
.v3-batch-card-check {
    position: absolute;
    top: 10px;
    right: 14px;                              /* matches meta padding-right */
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.72);          /* opaque enough to hide overlapping text */
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;                               /* above the domain-name text */
    transition: background 80ms ease, border-color 80ms ease, box-shadow 120ms ease;
    line-height: 1;
    color: #0a0a0a;
    font-size: 11px;
}
.v3-batch-card-check:not([aria-disabled="true"]):hover {
    background: rgba(0, 0, 0, 0.88);
    border-color: rgba(93, 200, 240, 0.75);                   /* cyan border on hover */
    box-shadow:
        0 0 0 3px rgba(93, 200, 240, 0.10),                   /* soft outer halo */
        0 0 10px rgba(93, 200, 240, 0.25);                    /* glow */
}

/* List view — card is one wide row with meta center-aligned in a grid.
   Two changes from card view:

   1. Meta in card view gets `position: relative` so the checkbox anchors
      to meta.  In list view that's wrong — meta height is only ~20 px
      (just the name), so `top: 50%` of meta produces ~10 px and the
      checkbox sits near the top of the row instead of its centre.

      We override meta to `position: static` in list view so the checkbox
      anchors to the CARD instead (which is already `position: relative`
      from mydomains.css L760).  Card height = full list-row height, so
      `top: 50%` is the true row centre.

   2. Use `transform: translateY(-50%)` for centering.  Safe because
      list-view cards have `transform: none !important` on hover, so
      there's no parent transform interaction to cause jitter.          */
.v3-mydomains-grid.is-list-view .v3-mydomain-card-meta {
    position: static !important;
}
.v3-mydomains-grid.is-list-view .v3-batch-card-check {
    top: 50% !important;                       /* defeat any future top override */
    transform: translateY(-50%);
}
/* Check icon — child <i>, fade-in only (no scale transform).
   Scale on the child + composite on the parent caused micro-jitter on
   hover; pure opacity transition is cheap and rock-stable.               */
.v3-batch-card-check i {
    opacity: 0;
    transition: opacity 80ms ease;
}
.v3-batch-card-check[data-checked="true"] {
    background: var(--v3-accent);
    border-color: var(--v3-accent);
    box-shadow:
        0 0 0 3px rgba(93, 200, 240, 0.18),                   /* halo around the checked cyan box */
        0 0 14px rgba(93, 200, 240, 0.40);                    /* outer glow */
}
.v3-batch-card-check[data-checked="true"] i {
    opacity: 1;
    color: #0a0a0a;
}
.v3-batch-card-check[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Card-level cap styling — Spec §4.1 AC 3.
   When user reaches the max-items cap, unchecked cards get
   data-batch-disabled="true" from batchRerenderCards().  Visually fade
   them out + set not-allowed cursor so the cap is obvious BEFORE the
   user attempts to click.  JS click handlers already short-circuit on
   this attribute, so no toast spam when clicking a disabled card.       */
.v3-mydomains-grid.v3-batch-select-on [data-token-id][data-batch-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}
.v3-mydomains-grid.v3-batch-select-on [data-token-id][data-batch-disabled="true"]:hover {
    /* Suppress hover lift/glow on disabled cards — they should feel inert. */
    transform: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
}
/* Checkbox inside a disabled card — JS sets aria-disabled="true" on it
   so the :not([aria-disabled]) hover guards already mute the cyan glow.
   This rule is the belt-and-braces fallback for any race condition where
   the card flips disabled before the checkbox attribute is propagated. */
.v3-mydomains-grid.v3-batch-select-on [data-token-id][data-batch-disabled="true"] .v3-batch-card-check:hover {
    background: rgba(0, 0, 0, 0.72);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: none !important;
    transform: none !important;
}
.v3-mydomains-grid.is-list-view.v3-batch-select-on [data-token-id][data-batch-disabled="true"] .v3-batch-card-check:hover {
    /* In list view the un-disabled checkbox composes translateY + scale.
       Disabled state must preserve the centering translateY but drop scale. */
    transform: translateY(-50%) !important;
}

/* List view variant — meta is laid out horizontally there, but our flex
   rule above still places the checkbox first and shrinks the name fine. */
.v3-batch-card-check:not([aria-disabled="true"]):hover { transform: scale(1.06); }

/* List view hover — compose centering + scale into one transform so the
   global hover rule above doesn't strip `translateY(-50%)` and drop the
   checkbox.  Declared AFTER the global hover rule so source order wins. */
.v3-mydomains-grid.is-list-view .v3-batch-card-check:not([aria-disabled="true"]):hover {
    transform: translateY(-50%) scale(1.06);
}

/* Reduced motion — keep centering but drop the scale jiggle.  Color/glow
   feedback still fires; only the transform jump is suppressed.           */
@media (prefers-reduced-motion: reduce) {
    .v3-batch-card-check:not([aria-disabled="true"]):hover {
        transform: none;
    }
    .v3-mydomains-grid.is-list-view .v3-batch-card-check:not([aria-disabled="true"]):hover {
        transform: translateY(-50%);
    }
    .v3-batch-card-check {
        transition: background 0ms, border-color 0ms, box-shadow 0ms;
    }
    .v3-batch-card-check i { transition: opacity 0ms; }
}


/* ====================================================================
   2. DRAWER SHELL — right-side slide (matches V3ProfileEditor pattern)
   ==================================================================== */

.v3-batch-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 8, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 280ms var(--v3-ease);
    pointer-events: none;
}
.v3-batch-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.v3-batch-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(480px, 100vw);
    background: var(--v3-glass-bg-strong);
    border-left: 1px solid var(--v3-glass-border);
    box-shadow: var(--v3-depth-2);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 280ms var(--v3-ease);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.v3-batch-drawer-overlay.is-open .v3-batch-drawer { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
    .v3-batch-drawer-overlay,
    .v3-batch-drawer { transition: none; }
}

.v3-batch-drawer-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--v3-glass-border);
}
.v3-batch-drawer-title {
    flex: 1 1 auto;
    margin: 0;
    font-family: var(--v3-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--v3-ink);
    letter-spacing: -0.01em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v3-batch-drawer-head-sound,
.v3-batch-drawer-head-close {
    appearance: none;
    background: transparent;
    border: 1px solid var(--v3-line-2);
    color: var(--v3-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: filter 140ms ease, color 140ms ease;
}
.v3-batch-drawer-head-sound:hover,
.v3-batch-drawer-head-close:hover { filter: brightness(1.15); color: var(--v3-ink); }
.v3-batch-drawer-head-sound[aria-pressed="true"] {
    color: var(--v3-accent);
    border-color: rgba(93, 200, 240, 0.45);
}

.v3-batch-drawer-body {
    flex: 1 1 auto;
    /* No body scroll — the queue inside scrolls instead, so the user
       always sees the recipient + balance + footer pinned and only the
       item list moves.                                                 */
    overflow: hidden;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Allow the queue slot below to grow and fill remaining height. */
    min-height: 0;
}

/* The queue slot (wrapper div) takes the leftover vertical space in the
   drawer body so the queue list can be as tall as the drawer allows. */
.v3-batch-drawer-body > [data-batch-queue] {
    flex: 1 1 auto;
    min-height: 180px;          /* never collapse below ~5 items visible */
    display: flex;
    flex-direction: column;
}

.v3-batch-drawer-foot {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--v3-glass-border);
    background: rgba(0, 0, 0, 0.18);
}
.v3-batch-drawer-foot-btn {
    flex: 1 1 50%;
    appearance: none;
    border: 1px solid var(--v3-line-2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--v3-ink-soft);
    padding: 12px 16px;
    border-radius: var(--v3-radius);
    font-family: var(--v3-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 140ms ease, border-color 140ms ease;
    min-height: 44px;
    /* Explicit display so the JS fallback `style.display = 'inline-flex'`
       always renders correctly even after a previous run hid the button. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.v3-batch-drawer-foot-btn:hover  { filter: brightness(1.10); }
.v3-batch-drawer-foot-btn:active { transform: scale(0.97); }
.v3-batch-drawer-foot-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.v3-batch-drawer-foot-btn--primary {
    background: linear-gradient(135deg, var(--v3-accent), var(--v3-accent-soft));
    border-color: var(--v3-accent);
    color: #061018;
}


/* ====================================================================
   3. PRIMARY WARNING ROW
   ==================================================================== */

.v3-batch-primary-warn {
    background: rgba(247, 140, 77, 0.08);
    border: 1px solid rgba(247, 140, 77, 0.28);
    border-radius: var(--v3-radius);
    padding: 10px 12px;
    color: var(--v3-orange, #f78c4d);
    font-size: 12px;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.v3-batch-primary-warn i { font-size: 13px; margin-top: 1px; flex-shrink: 0; }


/* ====================================================================
   4. RECIPIENT PANEL (TRANSFER ONLY) — with .xrp resolver
   ==================================================================== */

/* Recipient panel — styled to match the single-transfer flow
   (.v3-send-resolve box in mydomains.css L1679+).                    */
.v3-batch-recipient {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.v3-batch-recipient-label {
    font-family: var(--v3-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--v3-muted);
    text-transform: uppercase;
}
.v3-batch-recipient-input {
    appearance: none;
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid var(--v3-line-2);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--v3-ink);
    font-family: var(--v3-mono);
    font-size: 13px;
    line-height: 1.4;
    transition: border-color 140ms ease, box-shadow 140ms ease;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
}
.v3-batch-recipient-input:focus {
    outline: none;
    border-color: rgba(93, 200, 240, 0.50);
    box-shadow: 0 0 0 3px rgba(93, 200, 240, 0.12);
}

/* Resolve box — same shape as .v3-send-resolve from single transfer.   */
.v3-batch-recipient-state {
    margin-top: 2px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.70);
    min-height: 16px;
}
.v3-batch-recipient-state > i {
    flex: 0 0 14px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}
.v3-batch-recipient-state strong {
    color: #fff;
    font-weight: 600;
}
.v3-batch-recipient-sub {
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--v3-mono);
    font-size: 11px;
    word-break: break-all;
}

/* State variants — match single transfer is-loading / is-ok / is-warn / is-err. */
.v3-batch-recipient-state[data-state="empty"] { display: none; }

.v3-batch-recipient-state[data-state="validating"] {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.70);
}
.v3-batch-recipient-state[data-state="validating"] > i { color: var(--v3-accent, #5dc8f0); }

.v3-batch-recipient-state[data-state="resolved-name"],
.v3-batch-recipient-state[data-state="resolved-address"],
.v3-batch-recipient-state[data-state="valid-anonymous"] {
    background: rgba(95, 227, 168, 0.07);
    border-color: rgba(95, 227, 168, 0.22);
    color: rgba(255, 255, 255, 0.85);
}
.v3-batch-recipient-state[data-state="resolved-name"] > i,
.v3-batch-recipient-state[data-state="resolved-address"] > i,
.v3-batch-recipient-state[data-state="valid-anonymous"] > i { color: #5fe3a8; }

.v3-batch-recipient-state[data-state="self"],
.v3-batch-recipient-state[data-state="invalid-format"],
.v3-batch-recipient-state[data-state="network-error"] {
    background: rgba(255, 184, 77, 0.08);
    border-color: rgba(255, 184, 77, 0.28);
    color: #ffd88a;
}
.v3-batch-recipient-state[data-state="self"] > i,
.v3-batch-recipient-state[data-state="invalid-format"] > i,
.v3-batch-recipient-state[data-state="network-error"] > i { color: #ffb84d; }

.v3-batch-recipient-state[data-state="not-found"] {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.28);
    color: #ff9c97;
}
.v3-batch-recipient-state[data-state="not-found"] > i { color: #ff8a85; }

/* Persistent hint below the resolve box (e.g. "XRPL address (r…) or xrpname") */
.v3-batch-recipient-hint {
    margin-top: 4px;
    font-family: var(--v3-mono);
    font-size: 11px;
    color: var(--v3-muted);
    letter-spacing: 0.02em;
}


/* ====================================================================
   5. PRE-FLIGHT CHECK PANEL
   ==================================================================== */

/* Compact 1-row balance check — replaces the previous 5-row breakdown.
   Per user feedback: surface only "OK / not enough", not the full math. */
.v3-batch-preflight {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--v3-radius);
    font-family: var(--v3-mono);
    font-size: 12px;
    line-height: 1.4;
}
.v3-batch-preflight i { font-size: 13px; flex-shrink: 0; }
.v3-batch-preflight-sub { color: var(--v3-muted); font-weight: 400; }

.v3-batch-preflight--ok {
    background: rgba(95, 227, 168, 0.08);
    border: 1px solid rgba(95, 227, 168, 0.28);
    color: var(--v3-green);
}
.v3-batch-preflight--err {
    background: rgba(217, 107, 107, 0.08);
    border: 1px solid rgba(217, 107, 107, 0.32);
    color: var(--v3-red);
}
.v3-batch-preflight--warn {
    background: rgba(247, 140, 77, 0.08);
    border: 1px solid rgba(247, 140, 77, 0.28);
    color: var(--v3-orange, #f78c4d);
}
.v3-batch-preflight--calc {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--v3-line-2);
    color: var(--v3-muted);
}


/* ====================================================================
   6. QUEUE LIST + status icons + slow-wait pulse
   ==================================================================== */

/* Queue outer container — fills the queue slot height, splits into a
   fixed title row + a scrollable list.  Title stays visible while items
   scroll below.                                                        */
.v3-batch-queue {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--v3-glass-border);
    border-radius: var(--v3-radius);
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;             /* flexbox: allow inner scroll */
    overflow: hidden;          /* clip — inner list owns the scrollbar */
}

/* Title — pinned at top of the queue box (not inside the scroll area). */
.v3-batch-queue-title {
    flex: 0 0 auto;
    font-family: var(--v3-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--v3-muted);
    text-transform: uppercase;
    padding: 0 4px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 6px;
}

/* Inner list — the ONLY scrollable area of the queue.  Items overflow
   here; the title above stays still.                                   */
.v3-batch-queue-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Add a little right padding so scrollbar doesn't sit on item edges */
    padding-right: 2px;
}
.v3-batch-queue-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--v3-glass-border);
    border-radius: 8px;
    transition: background 140ms ease, border-color 140ms ease;
}
.v3-batch-queue-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.v3-batch-queue-item-name {
    font-family: var(--v3-mono);
    font-size: 12.5px;
    color: var(--v3-ink);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v3-batch-queue-item-detail {
    font-family: var(--v3-mono);
    font-size: 11px;
    color: var(--v3-muted);
    text-align: right;
}
.v3-batch-queue-item-detail a { color: var(--v3-accent); text-decoration: none; }
.v3-batch-queue-item-detail a:hover { text-decoration: underline; }
.v3-batch-queue-item-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--v3-mono);
}
.v3-batch-queue-item-link i { font-size: 10.5px; }
.v3-batch-queue-item-remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--v3-muted);
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: color 140ms ease;
}
.v3-batch-queue-item-remove:hover { color: var(--v3-red); }

/* Status colour map via data-status */
.v3-batch-queue-item[data-status="pending"]    .v3-batch-queue-item-icon { background: rgba(255, 255, 255, 0.05); color: var(--v3-muted); }
.v3-batch-queue-item[data-status="signing"]    .v3-batch-queue-item-icon { background: rgba(93, 200, 240, 0.15); color: var(--v3-accent); }
.v3-batch-queue-item[data-status="validating"] .v3-batch-queue-item-icon { background: rgba(93, 200, 240, 0.10); color: var(--v3-accent-soft); }
.v3-batch-queue-item[data-status="success"]    .v3-batch-queue-item-icon { background: rgba(95, 227, 168, 0.15); color: var(--v3-green); }
.v3-batch-queue-item[data-status="failed"]     .v3-batch-queue-item-icon { background: rgba(217, 107, 107, 0.15); color: var(--v3-red); }
.v3-batch-queue-item[data-status="cancelled"]  .v3-batch-queue-item-icon { background: rgba(255, 255, 255, 0.04); color: var(--v3-muted); }
.v3-batch-queue-item[data-status="success"] .v3-batch-queue-item-name { color: var(--v3-green); }
.v3-batch-queue-item[data-status="failed"]  .v3-batch-queue-item-name { color: var(--v3-red); }

/* Spinning icons for signing + validating */
.v3-batch-queue-item[data-status="signing"]    .v3-batch-queue-item-icon i,
.v3-batch-queue-item[data-status="validating"] .v3-batch-queue-item-icon i {
    animation: v3-batch-spin 0.9s linear infinite;
}
@keyframes v3-batch-spin { to { transform: rotate(360deg); } }

/* Slow-wait pulse for mobile wallets (§13.4) */
@keyframes v3-batch-pulse-wait {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 170, 225, 0); }
    50%      { box-shadow: 0 0 0 6px rgba(37, 170, 225, 0.35); }
}
.v3-batch-queue-item.is-slow-wait {
    animation: v3-batch-pulse-wait 1.8s ease-in-out infinite;
    border-color: var(--v3-accent);
}
@media (prefers-reduced-motion: reduce) {
    .v3-batch-queue-item.is-slow-wait,
    .v3-batch-queue-item[data-status="signing"] .v3-batch-queue-item-icon i,
    .v3-batch-queue-item[data-status="validating"] .v3-batch-queue-item-icon i {
        animation: none;
    }
}


/* ====================================================================
   7. BURN CONFIRMATION MODAL (extra friction before sign)
   ==================================================================== */

.v3-batch-burn-confirm {
    background: rgba(217, 107, 107, 0.06);
    border: 1px solid rgba(217, 107, 107, 0.32);
    border-radius: var(--v3-radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.v3-batch-burn-confirm-title {
    font-family: var(--v3-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--v3-red);
    display: flex;
    align-items: center;
    gap: 8px;
}
.v3-batch-burn-confirm-body {
    font-size: 12.5px;
    color: var(--v3-ink-soft);
    line-height: 1.5;
}
.v3-batch-burn-confirm-input {
    appearance: none;
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(217, 107, 107, 0.40);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--v3-ink);
    font-family: var(--v3-mono);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    min-height: 42px;
}
.v3-batch-burn-confirm-input:focus {
    outline: none;
    border-color: rgba(217, 107, 107, 0.70);
    box-shadow: 0 0 0 3px rgba(217, 107, 107, 0.18);
}
.v3-batch-burn-confirm-hint {
    font-size: 11px;
    color: var(--v3-muted);
    font-family: var(--v3-mono);
    text-align: center;
}


/* ====================================================================
   8. SUMMARY ROW (done state)
   ==================================================================== */

.v3-batch-summary {
    display: flex;
    gap: 16px;
    font-family: var(--v3-mono);
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 0;
}
.v3-batch-summary-success { color: var(--v3-green); }
.v3-batch-summary-failed  { color: var(--v3-red); }
.v3-batch-summary i { margin-right: 4px; }


/* ====================================================================
   Responsive — mobile
   ==================================================================== */

@media (max-width: 600px) {
    .v3-batch-drawer { width: 100vw; border-left: 0; }
    .v3-batch-action-bar {
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        top: auto;
        margin: 0;
    }
    /* (.v3-batch-action-bar-select-all removed — Select all feature
        was excluded per user feedback; orphan selector cleaned per
        review.)                                                     */
}

