/* ============================================================
   BOOBOO 2.0 â€” Polished UI
   Spacing + Contrast + Mobile Friendly (MagicEden-ish)
   ============================================================ */

/* ===== Design tokens (kept; with contrast-bumped inks & strokes) ===== */
:root{
  --bg:#0a0b0f;--panel:#0f1118;--surface:#131725;--surface-2:#101424;
  --ink:#f0f4ff;           /* brighter than #e8ecf6 */
  --ink-soft:#c7d2eb;      /* was #b7c0d8 */
  --muted:#9aa6bf;         /* was #8f9bb3 */
  --brand:#ff6ec7; --brand-strong:#ff4eb8; --accent:#ffd166; --minty:#8be3ff; --violet:#b084ff; --carrot:#ff8c42;
  --stroke:rgba(255,255,255,.12);     /* was .08 */
  --stroke-2:rgba(255,255,255,.18);   /* was .12 */
  --shadow-1:0 8px 24px rgba(0,0,0,.35);--shadow-2:0 12px 36px rgba(0,0,0,.45);
  --radius:16px;--radius-lg:20px;--radius-pill:999px;--blur:10px;
  --focus:0 0 0 3px rgba(55,194,255,.35), 0 12px 30px rgba(0,0,0,.35);
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  --sans:Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,sans-serif;
}


/* ===== Base ===== */
html{font-size:16px;text-rendering:optimizeLegibility}
body{
  margin:0;
  color:var(--ink);
  background:var(--bg);
  font-family:var(--sans);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  /* padding-top:64px; */
  background:
    radial-gradient(1000px 600px at 10% 10%, rgba(56,189,248,.12), transparent 70%),
    radial-gradient(900px 600px at 90% 0%, rgba(168,85,247,.10), transparent 70%),
    linear-gradient(180deg,#07080c,#0a0b10 60%,#0a0b0f 100%);
  background-attachment:fixed
}
a{color:var(--brand-strong);text-decoration:none}
a:hover{text-decoration:underline}
.muted{color:var(--muted)}
.container{max-width:1160px;margin:0 auto;padding:0 24px}

/* =======================================================
   FUNKY THEME (18â€“25 vibe) â€” scope: .theme-funky
   Paste AFTER your existing CSS. Toggle by adding 
   <body class="theme-funky"> â€¦ </body>
   ======================================================= */

.theme-funky{
  /* Loud-but-clean neon palette */
  --bg: #070813;
  --panel:#0b0f1f;
  --surface:#101632;
  --surface-2:#0c1228;

  --ink:#f7fbff;
  --ink-soft:#d7e7ff;
  --muted:#a2b2d9;

  /* Vibrant brand colors */
  --brand:#6df0ff;            /* neon cyan */
  --brand-strong:#00d0ff;     /* punchier cyan */
  --accent:#ff6df2;           /* magenta */
  --good:#7dff6b;             /* lime */
  --warn:#ffd166;             /* honey */
  --bad:#ff4577;              /* hot pink/red */

  --stroke:rgba(255,255,255,.16);
  --stroke-2:rgba(255,255,255,.22);

  /* Extra pop on focus */
  --focus:
    0 0 0 3px rgba(0,208,255,.35),
    0 0 0 6px rgba(255,109,242,.20),
    0 16px 40px rgba(0,0,0,.55);
}

/* Background gets a playful gradient mesh */
.theme-funky body{
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(0,208,255,.18), transparent 65%),
    radial-gradient(900px 520px at 90% 5%, rgba(255,109,242,.16), transparent 60%),
    radial-gradient(800px 420px at 40% 120%, rgba(125,255,107,.10), transparent 60%),
    linear-gradient(180deg,#060715,#090b1a 60%,#070813 100%);
}

/* Top bar chip glow */
.theme-funky .chip-mini{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-color: color-mix(in srgb, var(--brand) 40%, var(--stroke-2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 6px 16px rgba(0,208,255,.15);
}

/* Buttons â€” juicy gradients + bounce */
.theme-funky .btn{
  border-radius:16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-color: var(--stroke-2);
}
.theme-funky .btn-primary{
  background:
    linear-gradient(90deg, var(--accent), var(--brand));
  color:#071015;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  box-shadow:
    0 8px 22px rgba(0,208,255,.25),
    0 0 0 1px rgba(255,255,255,.08) inset;
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}
.theme-funky .btn-primary:hover{
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.1);
  box-shadow:
    0 12px 28px rgba(255,109,242,.25),
    0 0 0 1px rgba(255,255,255,.1) inset;
}

/* Phase pills â€” neon edge + subtle gradient shift */
.theme-funky .phase-pill{
  border-color: color-mix(in srgb, var(--brand) 35%, var(--stroke-2));
  background:
    linear-gradient(180deg, #131a3a, #0f1632);
  box-shadow:
    0 10px 26px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.05);
}
.theme-funky .phase-pill.active{
  background: linear-gradient(180deg, #18235a, #121b44);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--brand) 55%, transparent),
    0 18px 40px rgba(0,208,255,.25);
}

/* Chips inside pills â€” brighter */
.theme-funky .chip-gtd{ background: rgba(125,255,107,.12); border-color: rgba(125,255,107,.45); color:#d6ffd1 }
.theme-funky .chip-fcfs{ background: rgba(255,209,102,.12); border-color: rgba(255,209,102,.45); color:#ffefc4 }
.theme-funky .chip-public{ background: rgba(109,240,255,.12); border-color: rgba(109,240,255,.45); color:#d6f8ff }

/* Details card + status badge pop */
.theme-funky .phase-details{
  border-color: var(--stroke-2);
  background: linear-gradient(180deg, #12183b, #0f1734);
}
.theme-funky .badge-status.live{  color:#5bff7c; border-color:#175a29; background:rgba(91,255,124,.10) }
.theme-funky .badge-status.upcoming{ color:#ffd166; border-color:#5b4421; background:rgba(255,209,102,.10) }
.theme-funky .badge-status.ended{ color:#ff5a9a; border-color:#5a1f3b; background:rgba(255,90,154,.10) }

/* Stat row â€” glitter card */
.theme-funky .stat-row{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.12));
  border:1px solid color-mix(in srgb, var(--accent) 25%, var(--stroke-2));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 26px rgba(0,0,0,.38),
    0 0 24px -8px rgba(255,109,242,.25);
  margin-top: 15px;
}
.theme-funky .stat-row b,
.theme-funky #mintednum{ color:#ffffff; }

/* Progress bars â€” neon pulse + sheen */
.theme-funky .phase-progress,
.theme-funky #mintingProgress{
  height: 10px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  border:1px solid color-mix(in srgb, var(--brand) 35%, var(--stroke-2));
}
.theme-funky .phase-progress>i,
.theme-funky #mintingProgress>i{
  background: linear-gradient(90deg, var(--accent), var(--brand));
  box-shadow:
    0 0 22px rgba(255,109,242,.35),
    0 0 14px rgba(0,208,255,.35);
  animation: bar-pulse 1.6s ease-in-out infinite alternate;
}
.theme-funky .phase-progress::after,
.theme-funky #mintingProgress::after{
  opacity:.9;
}
@keyframes bar-pulse{
  from{ filter: saturate(1) brightness(1); }
  to  { filter: saturate(1.25) brightness(1.15); }
}
@media (prefers-reduced-motion: reduce){
  .theme-funky .phase-progress>i,
  .theme-funky #mintingProgress>i{ animation:none }
}

/* Inputs â€” glowing focus */
.theme-funky select,
.theme-funky input[type="text"],
.theme-funky .slider{
  background:#0d1330;
  border-color: color-mix(in srgb, var(--brand) 25%, var(--stroke-2));
}
.theme-funky select:focus-visible,
.theme-funky input:focus-visible{
  box-shadow:
    0 0 0 3px rgba(0,208,255,.25),
    0 0 0 6px rgba(255,109,242,.18);
  border-color: transparent;
}

/* Qty dial â€” arcade feel */
.theme-funky .qty-input{
  background:#0b1030;
  border-color:#000;
  box-shadow: 4px 4px 0 #000, 0 0 0 1px rgba(0,208,255,.15) inset;
  margin: 0;
}
.theme-funky .qty-input button{
  background: #101848;
  margin: 0;
}
.theme-funky .qty-input button:hover{
  background: #142060;
}
.theme-funky .qty-input input{
  background:#0b1133;
  color:#fff;
  margin: 0;
}

/* Panel glow ring */
.theme-funky .panel{
  box-shadow:
    0 18px 44px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 80px -30px rgba(0,208,255,.35);
}

/* Focus rings site-wide */
.theme-funky :focus-visible{
  box-shadow:
    0 0 0 3px rgba(0,208,255,.35),
    0 0 0 6px rgba(255,109,242,.22),
    0 12px 32px rgba(0,0,0,.45);
  border-radius:14px;
  outline:none;
}

/* Mobile polish */
@media (max-width:560px){
  .theme-funky .stat-row{ padding:14px; gap:12px; }
  .theme-funky .btn-primary{ transform:none; }
}


/* ===== App-like top bar & footer ===== */
.top-nav{
  position:sticky; top:0; z-index:100; display:flex; align-items:center; justify-content:space-between;
  height:var(--nav-h); padding:10px 16px; background:rgba(12,14,22,.75);
  border-bottom:1px solid var(--stroke); backdrop-filter:blur(var(--blur)); box-shadow:var(--shadow-1)
}
.top-nav a{color:#fff; font-weight:600; letter-spacing:.2px; font-size:1.02rem}
.top-nav a:hover{color:var(--brand)}
.nav-left{display:flex; align-items:center; gap:10px}
.nav-right{display:flex; align-items:center; gap:10px}
.logo{width:32px; height:32px; border-radius:8px; border:1px solid var(--stroke-2); overflow:hidden}
.logo img{width:100%; height:100%; object-fit:cover}


.brand .logo{width:28px;height:28px;border-radius:8px;overflow:hidden;border:1px solid var(--stroke-2);background:#0b101a}
.brand .title{font-weight:900;letter-spacing:.2px}
.brand .sub{font-weight:600;opacity:.65;margin-left:6px;font-size:.92rem}
.top-actions{display:flex;gap:8px}
.chip-mini{
  font-family:var(--mono);font-size:11px;padding:4px 8px;border-radius:999px;border:1px solid var(--stroke-2);
  background:rgba(255,255,255,.03);color:var(--ink-soft)
}

.site-footer{
  border-top:1px dashed var(--stroke);
  background:linear-gradient(180deg, transparent, rgba(255,255,255,.02));
  padding:22px 0 30px;text-align:center;font-family:var(--mono);letter-spacing:.1px;color:#8a93a6
}

/* ===== Header block ===== */
.collection-header{display:grid;grid-template-columns:120px 1fr auto;gap:26px;align-items:end}
.avatar{width:80px;height:80px;border-radius:14px;overflow:hidden;border:1px solid var(--stroke-2);background:var(--surface);box-shadow:var(--shadow-2)}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.title-block h1{margin:0 0 10px;font-family:var(--sans);font-weight:900;font-size:clamp(22px,4vw,30px);letter-spacing:.3px}
.title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.verified{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:6px 10px;border:1px solid var(--stroke-2);
  border-radius:var(--radius-pill);background:rgba(255,255,255,.04);color:var(--ink-soft)}
.header-cta{display:flex;gap:10px;align-items:center;justify-self:end}

/* ===== Stat row: framed, contrasted, mobile-friendly ===== */
.stat-row{
  display:flex;align-items:center;gap:20px;flex-wrap:wrap;
  padding:14px 18px;border:1px solid var(--stroke-2);border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.10));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 8px 22px rgba(0,0,0,.28);
  font-size:14px;line-height:1.4
}
.stat-row b,#mintednum{color:var(--ink);font-weight:900;font-variant-numeric:tabular-nums}
.stat-row .stat{color:var(--ink)}
.stat-row:hover{
  border-color:color-mix(in srgb, var(--brand-strong) 55%, var(--stroke-2));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 12px 26px rgba(0,0,0,.34)
}

/* ===== Buttons ===== */
.btn{
  appearance:none;cursor:pointer;user-select:none;border-radius:14px;padding:12px 14px;
  border:1px solid var(--stroke-2);background:linear-gradient(180deg,var(--surface),var(--surface-2));color:var(--ink);
  box-shadow:var(--shadow-1);transition:transform .12s,box-shadow .12s,background .2s
}
.btn:hover{transform:translateY(-1.5px);box-shadow:var(--focus)}
.btn:active{transform:translateY(0)}
.btn:focus-visible{outline:none;box-shadow:var(--focus)}
.btn-primary{
  border-color:transparent;background:linear-gradient(90deg,var(--accent),var(--brand));color:#0a0b0f;
  font-weight:900;letter-spacing:.2px;text-shadow:0 1px 0 rgba(255,255,255,.3)
}

/* ===== Main grid ===== */
.launchpad{margin:18px auto 68px;display:grid;grid-template-columns:1fr 1.05fr;gap:28px}
.visual-frame{border-radius:16px;overflow:hidden;border:1px solid var(--stroke);background:var(--panel);box-shadow:var(--shadow-2)}
.visual-media{display:block;width:100%;/* aspect-ratio:4/5; */object-fit:cover}

/* ===== Panel ===== */
.panel{
  position:sticky;top:70px;background:
    linear-gradient(180deg, rgba(15,20,32,.96), rgba(10,14,24,.96)),
    radial-gradient(800px 400px at 20% -10%, rgba(56,189,248,.08), transparent 70%);
  border:1px solid var(--stroke-2);border-radius:16px;padding:20px;box-shadow:0 14px 38px rgba(0,0,0,.5);height:fit-content
}
.panel header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.mint-title{font-family:var(--sans);font-weight:900;font-size:24px;margin:0}
.mint-counter{color:var(--muted);margin:0;font-variant-numeric:tabular-nums}

/* ===== Phase pills + details ===== */
.phase-wrap{display:flex;flex-direction:column;gap:12px}
.phase-pill{
  position:relative;border:1px solid var(--stroke-2);background:linear-gradient(180deg,#111726,#0f1522);
  border-radius:12px;padding:14px;cursor:pointer;transition:transform .12s,border-color .12s,box-shadow .12s
}
.phase-pill:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.22);box-shadow:var(--shadow-1)}
.phase-pill.active{border-color:transparent;box-shadow:var(--focus);background:linear-gradient(180deg,#171c2c,#141927)}
.phase-pill .row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.phase-pill .name{font-weight:800;letter-spacing:.25px;display:flex;gap:8px;align-items:center;color:var(--ink)}
.phase-pill .price{font-size:12px;color:color-mix(in srgb, var(--ink) 70%, #000 30%);font-variant-numeric:tabular-nums;font-family:var(--mono)}
.phase-pill .dot{width:8px;height:8px;border-radius:50%}
.dot-gtd{background:var(--good)} .dot-fcfs{background:var(--warn)} .dot-public{background:#93c5fd}
.chip{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;font-size:11px;line-height:1;border:1px solid transparent}
.chip-gtd{background:rgba(97,226,148,.12);border-color:rgba(97,226,148,.35);color:#c8ffdc}
.chip-fcfs{background:rgba(250,204,21,.10);border-color:rgba(250,204,21,.35);color:#ffe49a}
.chip-public{background:rgba(147,197,253,.10);border-color:rgba(147,197,253,.35);color:#cbe3ff}

/* Details card */
.phase-details{border:1px solid var(--stroke-2);background:linear-gradient(180deg,#111724,#0f1522);
  border-radius:12px;padding:12px 14px;box-shadow:var(--shadow-1)}
#phaseDetails{display:flex;align-items:center;justify-content:space-between;gap:8px}
#phaseDetails .pd-name{font-size:14px;font-weight:900;margin-right:auto;letter-spacing:.2px}
#phaseDetails .badge-status{
  font-family:var(--mono);font-size:11px;padding:4px 10px;border-radius:8px;border:1px solid var(--stroke-2);
  background:rgba(255,255,255,.03);text-transform:uppercase;font-weight:700
}
#phaseDetails .pd-countdown{margin-left:auto;font-size:.95em;font-weight:900;color:var(--brand)}

.badge-status.live     { color:#16a34a;border-color:#214c32;background:rgba(22,163,74,.08) }
.badge-status.upcoming { color:#ca8a04;border-color:#4e3a0e;background:rgba(202,138,4,.08) }
.badge-status.ended    { color:#ef4444;border-color:#5a1f25;background:rgba(239,68,68,.08) }

/* ===== Progress bars (phase + global) ===== */
.phase-progress,
#mintingProgress{
  width:100%;
  height:clamp(8px, 0.9vh, 12px);
  border-radius:999px;
  background:color-mix(in srgb, var(--ink) 12%, transparent);
  overflow:hidden;position:relative;border:1px solid var(--stroke-2)
}
.phase-progress>i,
#mintingProgress>i{
  display:block;height:100%;width:var(--p,0%);
  background:linear-gradient(90deg,var(--brand),var(--accent));
  transition:width .35s ease;will-change:width;
  box-shadow:0 0 10px color-mix(in srgb, var(--brand) 45%, transparent)
}
.phase-progress::after,
#mintingProgress::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.08) 40%,rgba(255,255,255,.14) 50%,rgba(255,255,255,.08) 60%,transparent 100%);
  transform:translateX(-100%);animation:bar-sheen 2.2s linear infinite;pointer-events:none;mix-blend-mode:screen
}
@keyframes bar-sheen{to{transform:translateX(100%)}}
@media (prefers-reduced-motion: reduce){
  .phase-progress>i,#mintingProgress>i{transition:none}
  .phase-progress::after,#mintingProgress::after{animation:none}
}

/* ===== Form controls ===== */
.control-grid{display:grid;gap:14px;grid-template-columns:1fr 1fr;margin-top:16px}
.lb{display:block;margin-bottom:8px;margin-top: 15px;font-weight:700;letter-spacing:.25px}
select,input[type="text"],.slider{
  width:100%;border-radius:14px;border:1px solid var(--stroke-2);background:#0e1422;color:#e3e8f2;
  padding:.8rem 1rem;font-size:1rem;outline:none;transition:border-color .2s,box-shadow .2s,background .2s
}
select:hover,input:hover{border-color:rgba(255,255,255,.28)}
select:focus-visible,input:focus-visible{box-shadow:var(--focus);border-color:transparent}
input.address{font-family:var(--mono);background:#0b101a;border:1px solid var(--stroke-2)}
.fee-row{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px;color:color-mix(in srgb, var(--ink) 70%, #000 30%);font-variant-numeric:tabular-nums}
.slider{accent-color:var(--brand-strong)}
.actions{margin-top:16px;display:flex;gap:12px;flex-wrap:wrap}

/* ===== Quantity dial ===== */
#customer{display:none}
.qty-row{display:flex;align-items:center;gap:12px}
.qty-input{
  display:flex;align-items:center;inline-size:100%;max-inline-size:420px;
  border:1.5px solid #000;border-radius:14px;background:#0d1118;box-shadow:4px 4px 0 #000;overflow:hidden
}
.qty-input button{
  inline-size:52px;block-size:52px;font-weight:900;font-size:22px;line-height:1;
  border:0;background:#0f1420;color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:background .15s ease, opacity .15s ease
}
.qty-input button:hover{background:#151b2a}
.qty-input button:disabled{opacity:.45;cursor:not-allowed}
.qty-input input{
  flex:1 1 auto;min-inline-size:0;inline-size:auto;block-size:52px;text-align:center;border:0;outline:0;
  background:#0b101a;color:#fff;font:900 19px/1 var(--mono);
  -moz-appearance:textfield
}
.qty-input input::-webkit-outer-spin-button,.qty-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-hint{font-size:12.5px;color:var(--muted)}

/* ===== Pay console ===== */
.paybox{
  display:none;margin-top:12px;border:1px solid var(--stroke-2);border-radius:12px;background:linear-gradient(180deg,#0c111b,#0a0f19);padding:14px
}
.paybox .row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.paybox .label{font:700 12px var(--mono);color:var(--muted)}
.paybox .val{font:900 14px var(--mono)}
.paybox .mono{font-family:var(--mono)}

/* ===== Orders consoles ===== */
#ordersConsole,#completedConsole{border-top:1px dashed var(--stroke);padding-top:12px}
#ordersPending .order-row,#ordersCompleted .order-row{
  border:1px solid var(--stroke-2);border-radius:12px;padding:10px 12px;background:rgba(255,255,255,.02)
}


/* Header */
.paybox-head{ 
  font-weight:900; margin-bottom:8px; letter-spacing:.2px;
}

/* Wallet selector — compact, professional */
.wallets.compact{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
  margin-top:8px;
}

.wallet-btn{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border:1px solid var(--stroke-2);
  border-radius:12px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  color:var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform .12s, box-shadow .12s, border-color .15s, filter .15s;
  width:100%;
  text-align:left;
}

.wallet-btn:hover{ transform: translateY(-1px); box-shadow: var(--focus); }
.wallet-btn:active{ transform:none; }
.wallet-btn:focus-visible{ outline:none; box-shadow: var(--focus); }

.wallet-btn .ico{
  width:28px; height:28px; border-radius:8px;
  display:grid; place-items:center;
  font:900 14px/1 var(--sans);
  color:#0a0b0f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

/* Brand tints (swap to real SVGs later if you like) */
.wallet-btn.unisat .ico{
  background: #F6C343; /* warm yellow */
}
.wallet-btn.xverse .ico{
  background: #FFB703; /* vivid orange/yellow */
}
.wallet-btn.me .ico{
  background: linear-gradient(135deg,#ff6df2 0%, #6df0ff 100%); /* magenta → cyan */
  color: #051016;
}

.wallet-btn .label{ display:flex; flex-direction:column; line-height:1.1 }
.wallet-btn .label b{ font-weight:900; letter-spacing:.15px }
.wallet-btn .label small{ color:var(--muted); font-size:11px }

/* Info rows */

.pay-anually {
  margin-top: 1rem;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgb(56 64 87);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
  font-size: 0.95rem;
}

.pay-title {
  margin: 0 0 .6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--stroke);
}

.pay-row:last-of-type {
  border-bottom: none;
}

.pay-row .label {
  color: var(--muted);
}

.val-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.val {
  font-weight: 600;
  color: var(--ink-soft);
}

.val.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.95rem;
}

.copy-btn {
  border: none;
  background: rgba(255,255,255,.08);
  color: var(--ink);
  font-size: 0.85rem;
  border-radius: 6px;
  padding: 2px 6px;
  cursor: pointer;
  transition: background .2s ease;
}

.copy-btn:hover {
  background: rgba(255,255,255,.15);
}

.payment-module {
  margin-top: .6rem;
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
}


.payment-module #payExpires{ opacity:.95; font-weight:800; color:var(--brand-strong) }

/* Mobile */
@media (max-width:560px){
  .wallets.compact{ grid-template-columns:1fr; }
  .payrows .row{ grid-template-columns: 1fr; gap:4px; }
}
/* ===== Console log ===== */
.console{
  margin-top:12px;background:#0c111b;border:1px solid var(--stroke-2);border-radius:12px;padding:12px 14px;
  font-family:var(--mono);font-size:12.5px;color:#d7e1fb;max-height:220px;overflow:auto
}
.console .line{white-space:pre-wrap;line-height:1.45}
.console .ok{color:#86efac}.console .warn{color:#fde68a}.console .err{color:#fca5a5}.console .dim{color:#94a3b8}

/* ===== Accessibility: focus ===== */
:focus-visible{
  outline:none;box-shadow:var(--focus), 0 0 0 1px rgba(255,255,255,.06) inset;border-radius:12px
}

/* Completed Orders tiny styles */
/* ===== Orders Completed — compact / long-list mode ===== */
/* ===== Orders Completed — compact + long-list friendly ===== */
/* Completed orders layout */
#ordersCompleted .order-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--stroke-2);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  font: 12px/1.4 var(--mono);
}

#ordersCompleted .row-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#ordersCompleted .order-id {
  font-size: 10px;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

#ordersCompleted .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#ordersCompleted .btn-tx {
  font-size: 11px;
  padding: 2px 8px;
  line-height: 1.3;
  border-radius: 6px;
  text-decoration: none;
}

#ordersCompleted .row-status {
  align-self: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  color: #5bff7c;
  border: 1px solid #175a29;
  background: rgba(91,255,124,0.1);
  white-space: nowrap;
}
/* --- Clean Pay Manually --- */
.paybox--clean{
  display:block;
  margin-top:12px;
  /* border:1px solid var(--stroke-2); */
  border-radius:12px;
  background: linear-gradient(180deg, #3e4e6e, #0a0f19);
  padding:12px 14px;
  box-shadow:0 8px 22px rgba(0,0,0,.28);
  font-size:0.95rem;
}

.paybox--clean .paybox-head{
  font-weight:900;
  letter-spacing:.2px;
  margin:0 0 8px;
  color:var(--accent);
  text-transform:uppercase;
  font-size:.95rem;
}

.paybox--clean .payline{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:10px 12px;
  padding:6px 0;
  border-top:1px solid var(--stroke);
}
.paybox--clean .payline:first-of-type{ border-top:none; padding-top:2px; }

.paybox--clean .k{
  color:var(--muted);
  font-weight:700;
  font-size:.92rem;
  white-space:nowrap;
}

.paybox--clean .v{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0; /* enable ellipsis */
  justify-content:flex-end;
}

.paybox--clean .mono{
  font-family:var(--mono);
  font-weight:900;
  letter-spacing:.2px;
}

.paybox--clean .ellipsis{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  direction:ltr;
}

/* Tiny icon copy button */
:root{
  --brand: #43e0ff;
  --ok: #22c55e;
  --stroke-2: rgba(255,255,255,.18);
  --focus: 0 0 0 3px rgba(67,224,255,.25);
}

/* Tiny icon copy button */
.icon-btn{
  inline-size:28px;
  block-size:28px;
  display:inline-grid;
  place-items:center;
  cursor:pointer;

  border-radius:10px;
  border:1px solid var(--stroke-2);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);

  transition:
    transform .12s ease,
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    filter .15s ease;
}

.icon-btn:hover{
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow: var(--focus), inset 0 0 0 1px rgba(255,255,255,.05);
}

.icon-btn:active{ transform: translateY(0); }

/* Keyboard focus ring */
.icon-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent);
  border-color: color-mix(in srgb, var(--brand) 60%, var(--stroke-2));
}

/* Clipboard icon via mask (no emoji) */
.icon-btn.copy::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%); /* center it */
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='%23000' d='M16 1H8a2 2 0 0 0-2 2v2H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-2h1a2 2 0 0 0 2-2V7l-4-6Zm-6 2h4v2h-4V3Zm5 17H4V7h2v3h9V7h.17L19 9.76V18h-4Zm-2-11H8V7h5v2Z'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='%23000' d='M16 1H8a2 2 0 0 0-2 2v2H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-2h1a2 2 0 0 0 2-2V7l-4-6Zm-6 2h4v2h-4V3Zm5 17H4V7h2v3h9V7h.17L19 9.76V18h-4Zm-2-11H8V7h5v2Z'/></svg>") center / contain no-repeat;
}


/* Success tick state */
.icon-btn.is-copied{
  border-color: color-mix(in srgb, var(--ok) 65%, var(--stroke-2));
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(34,197,94,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  animation: btn-pop .26s ease;
  color: var(--ok);
}
.icon-btn.is-copied::before{
  mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
}

/* Tooltip (optional) shown via [data-tip] on hover/focus */
.icon-btn[data-tip]{
  position: relative;
}
.icon-btn[data-tip]:hover::after,
.icon-btn[data-tip]:focus-visible::after,
.icon-btn.is-copied::after{
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 8px;
  font: 500 12px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  color: #fff;
  background: rgba(20,20,20,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  pointer-events: none;
  opacity: .95;
}

/* Animations */
@keyframes btn-pop {
  0% { transform: scale(1);    filter: brightness(1); }
  40%{ transform: scale(1.18); filter: brightness(1.1); }
  100%{transform: scale(1);    filter: brightness(1); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .icon-btn{ transition: none; }
  .icon-btn.is-copied{ animation: none; }
}

/* Disabled state (if you ever need it) */
.icon-btn[disabled]{
  opacity:.5; cursor:not-allowed;
  filter: grayscale(.4);
}
/* Toast pill */
.copy-toast {
  position: absolute;
  inset-inline-end: 0;        /* right-align near the button */
  bottom: calc(100% + 8px);   /* above the button */
  transform: translateY(6px);
  padding: 6px 10px;
  border-radius: 999px;
  font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #0f172a;             /* slate-900 */
  background: #a7f3d0;        /* emerald-200 */
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 6px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 20;
  transition: opacity .18s ease, transform .18s ease;
}
.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure the container can anchor absolute toast */
.payline .v,
.icon-btn.copy {
  position: relative;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .copy-toast { transition: none; }
}


/* Meta row */
.paybox--clean .pay-meta{
  margin-top:8px;
  display:flex;
  justify-content:flex-end;
  font-size:.86rem;
}
.paybox--clean .pay-meta #payExpires{
  opacity:.98;
  font-weight:800
}


/* dropdown for extra txs */
#ordersCompleted .tx-menu { position: relative; }
#ordersCompleted .tx-menu > summary { list-style: none; cursor: pointer; }
#ordersCompleted .tx-menu > summary::-webkit-details-marker { display:none; }
#ordersCompleted .tx-menu[open] .tx-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #111;
  border: 1px solid var(--stroke-2);
  border-radius: 6px;
  padding: 6px 8px;
  display: grid;
  gap: 4px;
  max-height: 200px;
  overflow: auto;
  z-index: 30;
}
#ordersCompleted .tx-menu .tx-list a {
  font-size: 11px;
  color: var(--brand-strong);
  text-decoration: none;
  word-break: break-all;
}
#ordersCompleted .tx-menu .tx-list a:hover { text-decoration: underline; }

  .brand{font-family:"Upheaval", system-ui; font-size:22px; letter-spacing:1px; background:linear-gradient(90deg, var(--brand), var(--accent), var(--minty)); -webkit-background-clip:text; -webkit-text-fill-color:transparent}

/* ===== Responsive ===== */
@media (max-width:1100px){
  .launchpad{grid-template-columns:1fr;gap:28px}
  .panel{top:66px}
}
@media (max-width:720px){
  .control-grid{grid-template-columns:1fr;gap:14px}
}
@media (max-width:560px){
  .container{padding:0 16px}
  .panel{padding:16px}
  .collection-header{grid-template-columns:84px 1fr;gap:16px;align-items:center}
  .header-cta{grid-column:1 / -1;justify-self:start}
  .stat-row{flex-direction:column;align-items:flex-start;gap:10px;padding:12px}
  .qty-input{max-inline-size:100%;border-radius:12px;box-shadow:3px 3px 0 #000}
  .qty-input button{inline-size:46px;block-size:46px;font-size:20px}
  .qty-input input{block-size:46px;font-size:18px}
  #phaseDetails .pd-countdown{justify-self:end}
  .phase-details .phase-line{
    display:grid;grid-template-columns:1fr auto;row-gap:6px
  }
}
@media (max-width:380px){
  .qty-input button{inline-size:42px;block-size:42px;font-size:18px}
  .qty-input input{block-size:42px;font-size:17px}
}
