/* ============================================================
   NEXREY — style.css v10
   Theme: Purple + Lime Studio
   + Terminal log lebih rapi (word-break fix)
   + Tombol Contact Owner & Donasi di header (label SELALU tampil)
   + Bulk button cooldown mode
   + Bulk result cards + action bar
   + Toast notification
   + Tombol Donasi dengan spinner + tombol Batalkan
   ============================================================ */

:root {
  --bg:        #FDFBF0;
  --bg-2:      #F7F3DF;
  --surface:   #FFFFFF;
  --surface-2: #FAFAF5;

  --purple:    #A855F7;
  --purple-dk: #7E22CE;
  --purple-soft: #F3E8FF;
  --lime:      #A8FF3E;
  --lime-dk:   #6FBF1C;
  --lime-soft: #ECFFD6;
  --yellow:    #F5D400;
  --cyan:      #00BCD4;
  --green:     #16A34A;
  --red:       #DC2626;

  --ink:       #0A0A0A;
  --ink-2:     #4A4A4A;
  --ink-3:     #8A8A8A;

  --line:      #0A0A0A;
  --line-soft: #E5E2D3;

  --r:      12px;
  --r-sm:   8px;
  --r-lg:   16px;
  --r-pill: 100px;
  --bw:     2px;

  --max-w: 640px;

  --font-display: 'Archivo Black', -apple-system, 'Segoe UI', sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --nav-h: 68px;
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;
  font-weight: 400;
}

h1, h2, h3, h4 { font-weight: 900; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }

/* ═══════════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════════ */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease; overflow: hidden;
}
.loading-screen.hide { opacity: 0; pointer-events: none; }
.loading-screen::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(168, 85, 247, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 45%, rgba(168, 255, 62, 0.12) 0%, transparent 60%);
  pointer-events: none;
  animation: bgBreathe 4s ease-in-out infinite;
}
@keyframes bgBreathe { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.loading-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 24px; width: 100%; max-width: 320px;
}

.logo-stage {
  position: relative; width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
}
.logo-beam {
  position: absolute; inset: -30px; border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(168, 85, 247, 0.55) 40deg, transparent 80deg,
    transparent 180deg, rgba(168, 255, 62, 0.5) 220deg, transparent 260deg, transparent 360deg);
  animation: beamSpin 3.5s linear infinite;
  filter: blur(6px); z-index: 1;
}
@keyframes beamSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.logo-halo {
  position: absolute; inset: -15px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(168, 85, 247, 0.15) 40%, transparent 70%);
  animation: haloPulse 2.4s ease-in-out infinite;
  z-index: 1; pointer-events: none;
}
@keyframes haloPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.logo-ripple {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--purple);
  pointer-events: none; opacity: 0; z-index: 1;
}
.logo-ripple--1 { animation: rippleExpand 3s ease-out infinite; }
.logo-ripple--2 { border-color: var(--lime); animation: rippleExpand 3s ease-out infinite 1s; }
.logo-ripple--3 { border-color: var(--cyan); animation: rippleExpand 3s ease-out infinite 2s; }
@keyframes rippleExpand {
  0% { transform: scale(0.7); opacity: 0.7; border-width: 3px; }
  60% { opacity: 0.4; }
  100% { transform: scale(1.9); opacity: 0; border-width: 1px; }
}

.logo-circle {
  position: relative; width: 96px; height: 96px;
  border-radius: 50%; overflow: hidden;
  background: #0A0A0A; border: 3px solid var(--line);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18), 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; animation: logoBreath 2.8s ease-in-out infinite;
}
@keyframes logoBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}
.logo-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

.loading-title {
  font-family: var(--font-display);
  font-size: 32px; letter-spacing: 2px; margin-bottom: 8px;
  position: relative;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, var(--purple) 50%, var(--ink) 60%, var(--ink) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: titleShimmer 3s linear infinite;
}
@keyframes titleShimmer {
  0% { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}
.loading-title::after {
  content: ''; position: absolute; left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 40px; height: 3px; background: var(--purple);
  border-radius: 3px; animation: titleLine 2s ease-in-out infinite;
}
@keyframes titleLine {
  0%, 100% { width: 40px; opacity: 1; }
  50% { width: 70px; opacity: 0.7; }
}

.loading-tagline {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; color: var(--ink-2);
  text-transform: uppercase; margin-bottom: 24px;
  min-height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 2px;
}
.tagline-text { display: inline-block; white-space: nowrap; min-height: 1em; }
.tagline-cursor {
  display: inline-block; width: 8px; height: 13px;
  background: var(--ink); margin-left: 1px; border-radius: 1px;
  animation: cursorBlink 0.9s step-end infinite; flex-shrink: 0;
}
@keyframes cursorBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.loading-progress {
  width: 180px; height: 3px;
  background: rgba(10, 10, 10, 0.08);
  border-radius: 3px; overflow: hidden; position: relative;
}
.loading-progress-bar {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--purple), var(--lime), var(--purple));
  background-size: 200% 100%; border-radius: 3px;
  animation: progressSlide 1.8s ease-in-out infinite, progressShine 1.2s linear infinite;
}
@keyframes progressSlide { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes progressShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (max-width: 480px) {
  .logo-stage { width: 120px; height: 120px; margin-bottom: 26px; }
  .logo-circle { width: 84px; height: 84px; }
  .loading-title { font-size: 28px; }
  .loading-tagline { font-size: 10px; letter-spacing: 2px; margin-bottom: 20px; }
  .tagline-cursor { width: 7px; height: 12px; }
  .loading-progress { width: 150px; }
}

/* ═══════════════════════════════════════════════════════════
   APP
   ═══════════════════════════════════════════════════════════ */
.app {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  padding-bottom: var(--nav-h);
}

/* HEADER */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: var(--bw) solid var(--line);
}
.hdr-top {
  max-width: var(--max-w); margin: 0 auto;
  padding: 12px 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.hdr-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hdr-logo { width: 40px; height: 40px; flex-shrink: 0; }
.hdr-logo svg { width: 100%; height: 100%; display: block; }
.hdr-name {
  font-family: var(--font-display);
  font-size: 17px; letter-spacing: -0.02em; color: var(--ink);
}
.hdr-tag {
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 8px; background: var(--purple); color: #fff;
  border-radius: var(--r-sm); flex-shrink: 0;
}
.hdr-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

.hdr-action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #FFFFFF;
  box-shadow: 3px 3px 0 0 var(--line);
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.hdr-action-btn svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: #FFFFFF;
}
.hdr-action-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--line);
}
.hdr-action-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 var(--line);
}
.hdr-action-btn--wa { background: #25D366; }
.hdr-action-btn--donate { background: var(--red); }
.hdr-action-btn span { display: inline-block; line-height: 1; }

.hdr-status {
  max-width: var(--max-w); margin: 0 auto;
  padding: 8px 16px;
  border-top: 1px dashed var(--line-soft);
  display: flex; gap: 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; font-size: 11.5px;
}
.hdr-status::-webkit-scrollbar { display: none; }
.hdr-stat { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex-shrink: 0; }
.hdr-stat-lbl { color: var(--ink-2); font-weight: 500; }
.hdr-stat-val { color: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 700; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; }
.dot--ok   { background: var(--green); }
.dot--warn { background: #EAB308; }
.dot--fail { background: var(--red); }

/* FEED */
.feed {
  flex: 1; max-width: var(--max-w); width: 100%;
  margin: 0 auto; padding: 20px 16px 40px;
}

/* HERO */
.hero { position: relative; padding: 4px 0 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow);
  border: 3px solid var(--line); border-radius: 10px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink);
  box-shadow: 5px 5px 0 0 var(--line);
  margin-bottom: 26px; transform: rotate(-1.5deg);
  position: relative; z-index: 2;
}
.hero-badge-icon { font-size: 18px; line-height: 1; }
.hero-title {
  font-family: var(--font-display);
  font-size: 40px; line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink); margin-bottom: 22px;
  display: flex; flex-direction: column;
  text-transform: none;
  position: relative; z-index: 2;
}
.hero-title span { display: block; }
.hero-sub {
  font-size: 15.5px; color: var(--ink-2);
  line-height: 1.65; font-weight: 500;
  max-width: 520px; margin: 0;
  position: relative; z-index: 2;
}
.hero-deco {
  position: absolute; pointer-events: none; user-select: none;
  line-height: 1; z-index: 1;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.08));
}
.hero-deco--rocket { top: -18px; right: 10px; font-size: 52px; animation: decoRocket 3.6s ease-in-out infinite; }
@keyframes decoRocket { 0%, 100% { transform: translateY(0) rotate(-15deg); } 50% { transform: translateY(-12px) rotate(-8deg); } }
.hero-deco--astro { top: 60px; right: 70px; font-size: 42px; animation: decoAstro 4.2s ease-in-out infinite 0.4s; }
@keyframes decoAstro { 0%, 100% { transform: translateY(0) rotate(12deg) scale(1); } 50% { transform: translateY(-10px) rotate(20deg) scale(1.05); } }
.hero-deco--spark1 { top: 148px; left: -12px; font-size: 26px; animation: decoPulse 2.8s ease-in-out infinite; opacity: 0.75; }
.hero-deco--spark2 { bottom: 10px; left: -18px; font-size: 22px; animation: decoPulse 3.2s ease-in-out infinite 1s; opacity: 0.65; }
@keyframes decoPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.25) rotate(20deg); opacity: 1; }
}

/* STATS */
.stats-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 20px;
}
.stat-big {
  border: var(--bw) solid var(--line);
  border-radius: var(--r); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 3px 3px 0 0 var(--line);
}
.stat-big--purple { background: var(--purple-soft); }
.stat-big--lime   { background: var(--lime-soft); }
.stat-big-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-big-lbl {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.2px; color: var(--ink-2);
  text-transform: uppercase;
}
.stat-big-ic { font-size: 18px; line-height: 1; opacity: 0.65; }
.stat-big-val {
  font-family: var(--font-display);
  font-size: 32px; line-height: 1;
  color: var(--ink); letter-spacing: -0.02em;
}

/* SECTION */
.section { margin-bottom: 28px; }
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.sec-title {
  font-family: var(--font-body);
  font-size: 17px; font-weight: 700; color: var(--ink);
}
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: var(--bw) solid var(--line);
  background: var(--surface);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:active { transform: scale(0.9) rotate(30deg); }

/* TABS */
.tabs {
  display: inline-flex;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px; gap: 2px;
}
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700;
  color: var(--ink-2);
  transition: all 0.15s;
  white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tab svg { flex-shrink: 0; }
.tab--active { background: var(--lime); color: var(--ink); }

.panel { display: none; }
.panel--active { display: block; animation: fade 0.25s ease; }
@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CARD */
.card {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r); padding: 18px;
  box-shadow: 3px 3px 0 0 var(--line);
}
.card--flat { padding: 6px 0; }

/* FORM */
.lbl {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--ink); margin-bottom: 8px;
}
.lbl-hint { font-size: 10.5px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.inp {
  width: 100%; padding: 12px 14px;
  background: var(--surface-2);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--ink);
  outline: none;
}
.inp:focus { background: #fff; border-color: var(--purple); }
.inp::placeholder { color: var(--ink-3); }

/* BUTTON */
.btn-main {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--lime); color: var(--ink);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  font-size: 14px; font-weight: 800;
  margin-top: 14px;
  box-shadow: 3px 3px 0 0 var(--line);
  transition: all 0.15s;
}
.btn-main:active:not(:disabled):not(.btn-main--cooldown):not(.btn-main--loading) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--line);
}
.btn-main:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-main-icon { font-size: 15px; line-height: 1; }

.btn-main--cooldown {
  background: #FFFBEB !important;
  border: var(--bw) dashed var(--line) !important;
  color: #92400E !important;
  cursor: wait !important;
  opacity: 1 !important;
  box-shadow: 3px 3px 0 0 var(--line) !important;
  font-family: 'Space Mono', var(--font-mono) !important;
  letter-spacing: 1px;
}
.btn-main--cooldown .btn-main-icon {
  animation: cooldownSpin 2s ease-in-out infinite;
}
@keyframes cooldownSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-15deg); }
}
.btn-main--cooldown .btn-main-text {
  font-weight: 900;
  font-size: 13px;
}

.btn-sm {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600; color: var(--ink);
  box-shadow: 2px 2px 0 0 var(--line);
}
.btn-sm:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 var(--line); }

/* QTY */
.qty {
  display: inline-flex; align-items: stretch;
  background: var(--surface-2);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm); overflow: hidden;
  box-shadow: 2px 2px 0 0 var(--line);
}
.qty-btn {
  width: 44px; height: 44px;
  background: var(--surface);
  font-size: 18px; font-weight: 700;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:first-child { border-right: var(--bw) solid var(--line); }
.qty-btn:last-child { border-left: var(--bw) solid var(--line); }
.qty-btn:active { background: var(--purple-soft); }
.qty-val {
  min-width: 60px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 700;
}

/* RESULT BOX */
.result-box {
  margin-top: 14px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r); overflow: hidden;
  box-shadow: 3px 3px 0 0 var(--line);
}
.result-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: var(--bw) solid var(--line);
  font-size: 12.5px; font-weight: 700;
  background: var(--purple-soft);
}
.result-count {
  font-family: var(--font-mono);
  font-size: 11px; padding: 2px 8px;
  background: var(--purple); color: #fff;
  border-radius: var(--r-pill); font-weight: 700;
}
.result-list {
  padding: 8px;
  display: flex; flex-direction: column; gap: 8px;
  max-height: 480px; overflow-y: auto;
}

/* BULK ACC CARD */
.bulk-acc-card {
  padding: 14px 16px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 10px;
  box-shadow: 3px 3px 0 0 var(--line);
  transition: all 0.15s;
}
.bulk-acc-card--success {
  background: linear-gradient(135deg, #F4FFE0 0%, #ECFFD6 100%);
  border-color: var(--lime-dk);
}
.bulk-acc-card--error {
  background: #FEF2F2;
  border-color: #FECACA;
}
.bulk-acc-card--loading {
  background: #FFFBEB;
  border-color: #FDE68A;
}
.bulk-acc-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.bulk-acc-check,
.bulk-acc-cross {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-weight: 900; font-size: 13px;
  flex-shrink: 0;
  border: 2px solid var(--line);
}
.bulk-acc-check { background: var(--green); color: #FFF; }
.bulk-acc-cross { background: var(--red); color: #FFF; }
.bulk-acc-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(245, 212, 0, 0.2);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bulk-acc-label {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
}
.bulk-acc-email {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  word-break: break-all;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  border-left: 3px solid var(--purple);
}
.bulk-acc-card--success .bulk-acc-email { border-left-color: var(--lime-dk); }
.bulk-acc-card--error .bulk-acc-email { border-left-color: var(--red); }
.bulk-acc-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.bulk-acc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 2px 2px 0 0 var(--line);
  flex: 1;
  min-width: 100px;
}
.bulk-acc-btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--line);
}
.bulk-acc-btn:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 var(--line);
}
.bulk-acc-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.bulk-acc-btn-icon { font-size: 14px; line-height: 1; }
.bulk-acc-btn--copy { background: var(--cyan); color: var(--ink); }
.bulk-acc-btn--inbox { background: var(--lime); color: var(--ink); }
.bulk-acc-msg {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--ink-2);
  line-height: 1.5;
  word-break: break-word;
}
.bulk-acc-msg code {
  background: var(--card);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10.5px;
}

/* BULK ACTION BAR */
.bulk-action-bar {
  display: flex;
  gap: 10px;
  padding: 12px 12px 12px;
  border-top: 1px dashed var(--line-soft);
  margin-top: 4px;
  flex-wrap: wrap;
  background: var(--surface-2);
}
.bulk-action-btn {
  flex: 1;
  min-width: 120px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 3px 3px 0 0 var(--line);
}
.bulk-action-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--line);
}
.bulk-action-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 var(--line);
}
.bulk-action-btn--copy { background: var(--cyan); color: var(--ink); }
.bulk-action-btn--download { background: var(--ink); color: var(--lime); }
.bulk-action-icon { font-size: 15px; line-height: 1; }

/* TOAST */
.nexrey-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--lime);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 700;
  box-shadow: 4px 4px 0 0 rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
  word-break: break-word;
}
.nexrey-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   TERMINAL
   ═══════════════════════════════════════════════════════════ */
.terminal {
  background: #0A0A0A;
  border: var(--bw) solid var(--line);
  border-radius: var(--r); overflow: hidden;
  box-shadow: 3px 3px 0 0 var(--line);
}
.terminal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #1A1A1A;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.terminal-dots { display: flex; gap: 5px; }
.td { width: 10px; height: 10px; border-radius: 50%; }
.td--r { background: #FF5F56; }
.td--y { background: #FFBD2E; }
.td--g { background: #27C93F; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.terminal-copy {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  cursor: pointer;
}
.terminal-copy:hover { background: rgba(255,255,255,0.15); }

.terminal-body {
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: #A8FF3E;
  max-height: 280px;
  overflow-y: auto;
  background: #0A0A0A;
  scroll-behavior: smooth;
}
.terminal-body::-webkit-scrollbar { width: 5px; }
.terminal-body::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.terminal-body::-webkit-scrollbar-thumb { background: #A8FF3E; border-radius: 999px; }

.tl {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  line-height: 1.7;
  animation: tlFadeIn 0.25s ease;
}
@keyframes tlFadeIn {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

.tl-tag {
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.7;
}
.tl-tag--info    { color: #00E5FF; }
.tl-tag--ready   { color: #A8FF3E; }
.tl-tag--success { color: #A8FF3E; }
.tl-tag--error   { color: #FF6B6B; }
.tl-tag--warn    { color: #FFD600; }

.tl-msg {
  color: #C6FFC6;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.7;
}

.tl--typing .tl-msg::after {
  content: '▌';
  display: inline-block;
  color: #A8FF3E;
  margin-left: 2px;
  animation: tlCursorBlink 0.7s step-end infinite;
}
@keyframes tlCursorBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.tl-msg code,
.tl-msg .mono {
  font-family: var(--font-mono);
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* ═══════════════════════════════════════════════════════════
   ACTIVITY
   ═══════════════════════════════════════════════════════════ */
.activity-list { display: flex; flex-direction: column; }
.act-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 12.5px;
}
.act-item:last-child { border-bottom: none; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.act-dot--ok { background: var(--green); }
.act-dot--fail { background: var(--red); }
.act-email {
  flex: 1; min-width: 0;
  font-family: var(--font-mono);
  font-size: 11.5px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.act-time {
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--ink-3);
  flex-shrink: 0;
}
.empty { padding: 32px 16px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* GUIDE */
.guide-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r) var(--r) 0 0;
  border-bottom: none;
  box-shadow: 3px 3px 0 0 var(--line);
}
.guide-head-ic {
  width: 32px; height: 32px;
  background: var(--purple);
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.guide-head-title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 900;
  letter-spacing: 1px; color: var(--ink);
  text-transform: uppercase; line-height: 1.3;
}
.guide-list {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: 0 0 var(--r) var(--r);
  border-top: 1px dashed var(--line-soft);
  box-shadow: 3px 3px 0 0 var(--line);
}
.guide-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  background: var(--surface-2);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
}
.guide-num {
  width: 32px; height: 32px;
  background: var(--lime);
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 900;
  color: var(--ink); flex-shrink: 0;
  box-shadow: 2px 2px 0 0 var(--line);
}
.guide-body { flex: 1; min-width: 0; }
.guide-body b {
  display: block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 900;
  color: var(--ink); letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 4px;
}
.guide-body p { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; font-weight: 500; margin: 0; }
.guide-foot {
  margin-top: 12px; padding: 12px 16px;
  background: var(--ink); color: var(--lime);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  box-shadow: 3px 3px 0 0 var(--line);
}

/* STEPS */
.steps {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 0 var(--line);
}
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-num {
  width: 28px; height: 28px;
  background: var(--lime); color: var(--ink);
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 0 var(--line);
}
.step-body b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 2px; }
.step-body p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: 3px 3px 0 0 var(--line);
}
.faq[open] { background: var(--surface-2); }
.faq summary {
  padding: 14px 16px;
  font-size: 13.5px; font-weight: 700;
  color: var(--ink); cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.faq summary::after {
  content: '+'; font-size: 18px; font-weight: 400;
  color: var(--purple); flex-shrink: 0;
}
.faq[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p {
  padding: 0 16px 16px;
  font-size: 13px; line-height: 1.6;
  color: var(--ink-2);
  border-top: 1px dashed var(--line-soft);
  padding-top: 12px;
}
.faq p b { color: var(--ink); font-weight: 700; background: var(--lime-soft); padding: 1px 5px; border-radius: 4px; }

/* FOOTER */
.foot { margin-top: 24px; padding: 24px 0 8px; border-top: 1px dashed var(--line-soft); text-align: center; }
.foot-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; font-weight: 700;
  color: var(--ink); letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.foot-logo { display: flex; align-items: center; }
.foot-sub {
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--ink-2);
  letter-spacing: 0.03em;
}

/* BOTTOM NAV */
.bnav {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 200; height: var(--nav-h);
  background: var(--surface);
  border-top: var(--bw) solid var(--line);
  display: flex; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bnav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  font-size: 10.5px; font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  border: none; background: none;
  text-decoration: none; font-family: inherit;
  position: relative;
}
.bnav-item svg { width: 22px; height: 22px; stroke: currentColor; flex-shrink: 0; }
.bnav-item:active { background: var(--surface-2); }
.bnav-item--active { color: var(--ink); }
.bnav-item--active::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: var(--purple);
  border-radius: 0 0 3px 3px;
}

/* DRAWER */
.drawer-bd {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 600;
  display: none; align-items: flex-end; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.drawer-bd.show { display: flex; opacity: 1; }
.drawer {
  width: 100%; max-width: 640px;
  background: var(--bg);
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  border-top: var(--bw) solid var(--line);
  border-left: var(--bw) solid var(--line);
  border-right: var(--bw) solid var(--line);
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0));
  max-height: 85dvh; overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.drawer-bd.show .drawer { transform: translateY(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px dashed var(--line-soft);
}
.drawer-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.drawer-x {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  box-shadow: 2px 2px 0 0 var(--line);
}
.drawer-body { display: flex; flex-direction: column; gap: 8px; }
.drawer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  text-align: left; color: var(--ink); font-family: inherit;
  cursor: pointer;
  box-shadow: 2px 2px 0 0 var(--line);
}
.drawer-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: var(--bw) solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.drawer-txt { flex: 1; min-width: 0; }
.drawer-txt b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 1px; }
.drawer-txt span { display: block; font-size: 11.5px; color: var(--ink-2); line-height: 1.4; }
.drawer-arrow { font-size: 16px; color: var(--ink-3); flex-shrink: 0; }
.drawer-sep { height: 1px; background: var(--line-soft); margin: 6px 0; }
.drawer-foot {
  padding-top: 16px; margin-top: 16px;
  border-top: 1px dashed var(--line-soft);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--ink-3);
}

/* MODAL */
.modal-bd {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none; align-items: center; justify-content: center;
  padding: 16px; z-index: 500; opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-bd.show { display: flex; opacity: 1; }
.modal {
  background: var(--bg);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px 20px;
  width: 100%; max-width: 400px;
  max-height: 90dvh; overflow-y: auto;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  box-shadow: 4px 4px 0 0 var(--line);
}
.modal--wide { max-width: 520px; }
.modal-bd.show .modal { transform: scale(1); }
.modal-x {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 0 var(--line);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 20px; margin-bottom: 6px;
  color: var(--ink); text-transform: uppercase;
}
.modal-sub { font-size: 13px; color: var(--ink-2); margin-bottom: 20px; line-height: 1.5; }
.modal-note {
  padding: 12px;
  background: var(--surface-2);
  border: 1px dashed var(--line-soft);
  border-radius: var(--r-sm);
  font-size: 12px; color: var(--ink-2);
  margin-top: 16px; text-align: center;
}

/* INBOX */
.inbox-tool {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
}
.inbox-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--ink-3);
  text-transform: uppercase;
}
.inbox-body { max-height: 55vh; overflow-y: auto; }
.inbox-msg {
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden; margin-bottom: 10px;
  background: var(--surface);
  box-shadow: 2px 2px 0 0 var(--line);
}
.inbox-msg-head {
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px dashed var(--line-soft);
}
.inbox-subject { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 3px; word-break: break-word; }
.inbox-from { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); word-break: break-all; }
.inbox-date { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.inbox-content {
  padding: 14px;
  font-size: 12.5px; line-height: 1.55;
  color: var(--ink);
  max-height: 240px; overflow-y: auto;
  word-break: break-word;
}
.inbox-content a { color: var(--purple-dk); text-decoration: underline; }
.inbox-content img { max-width: 100%; height: auto; }
.inbox-actions {
  padding: 10px 12px;
  display: flex; gap: 6px;
  border-top: 1px dashed var(--line-soft);
  flex-wrap: wrap;
}
.inbox-btn {
  flex: 1; min-width: 110px;
  padding: 10px 12px;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  text-align: center; text-decoration: none;
  box-shadow: 2px 2px 0 0 var(--line);
}
.inbox-btn--primary { background: var(--lime); color: var(--ink); }

/* PAYMENT */
.pay-amt {
  padding: 16px;
  background: var(--purple-soft);
  border: var(--bw) dashed var(--line);
  border-radius: var(--r-sm);
  text-align: center; margin-bottom: 14px;
}
.pay-amt-lbl { display: block; font-size: 10.5px; color: var(--ink-2); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.pay-amt-val { display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.pay-timer {
  display: inline-block;
  padding: 3px 10px;
  background: var(--lime);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
}
.pay-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 0; font-size: 12.5px;
  border-bottom: 1px dashed var(--line-soft);
}
.pay-row:last-of-type { border-bottom: none; }
.pay-row span { color: var(--ink-2); }
.pay-row b { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); word-break: break-all; text-align: right; }
.pay-row b.ok {
  padding: 2px 10px;
  background: var(--lime-soft);
  color: #065F46;
  border-radius: var(--r-pill);
  border: 1px solid var(--lime-dk);
}
.pay-qr {
  margin: 14px 0; padding: 16px;
  background: #fff;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.pay-qr img { width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: contain; }
.pay-status {
  padding: 10px 14px;
  background: var(--surface-2);
  border: var(--bw) dashed var(--line);
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600;
  text-align: center;
  color: var(--ink-2);
}
.pay-status.expired { background: #FEF2F2; color: #991B1B; border-color: #991B1B; }

/* MESSAGES */
.msg {
  display: none;
  align-items: flex-start; gap: 8px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 500;
  margin: 12px 0;
  border: 1px solid transparent;
  line-height: 1.5;
}
.msg.show { display: flex; }
.msg.success { background: var(--lime-soft); color: #065F46; border-color: var(--lime-dk); }
.msg.error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.msg.info { background: var(--purple-soft); color: var(--purple-dk); border-color: var(--purple); }

/* FORM TERMINAL */
.term-box {
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r); padding: 18px;
  color: var(--ink);
  font-family: var(--font-body);
  box-shadow: 3px 3px 0 0 var(--line);
}
.term-info {
  padding: 12px 14px;
  background: var(--lime-soft);
  border-left: 3px solid var(--lime-dk);
  border-radius: var(--r-sm);
  font-size: 12.5px; line-height: 1.6;
  margin-bottom: 16px;
  color: var(--ink-2); font-weight: 600;
}
.term-info b { color: var(--ink); font-weight: 900; }
.term-label {
  display: block;
  font-size: 11.5px; font-weight: 900;
  margin-bottom: 8px; color: var(--ink);
  letter-spacing: 1.5px; text-transform: uppercase;
  font-family: var(--font-mono);
}
.term-input {
  width: 100%; padding: 12px 14px;
  background: var(--surface-2);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  outline: none; margin-bottom: 14px;
  transition: all 0.15s;
}
.term-input:focus { background: #fff; box-shadow: 2px 2px 0 0 var(--purple); }
.term-input::placeholder { color: var(--ink-3); font-weight: 500; }
.term-btn {
  width: 100%; padding: 14px;
  background: var(--lime);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 900;
  letter-spacing: 0.5px; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0 0 var(--line);
  transition: all 0.1s ease;
}
.term-btn:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--line);
}
.term-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.term-status-card {
  padding: 16px 14px;
  background: var(--surface-2);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  text-align: center; margin-top: 14px;
}
.term-spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(168, 85, 247, 0.15);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 6px auto 12px;
}
.term-loading-text { font-size: 13px; color: var(--ink); font-weight: 800; margin-bottom: 4px; }
.term-loading-sub { font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); font-weight: 600; }
.term-success-line {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: var(--ink-2);
  line-height: 1.6; margin-bottom: 5px;
  text-align: left;
  font-family: var(--font-mono);
}
.term-success-line .k { color: var(--ink); font-weight: 900; min-width: 65px; flex-shrink: 0; }
.term-success-line .v { color: var(--ink-2); word-break: break-all; font-weight: 600; }
.term-console {
  margin-top: 14px;
  background: #0A0A0A;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  max-height: 160px; overflow-y: auto;
  font-size: 10.5px; line-height: 1.6;
  font-family: var(--font-mono);
  color: #A8FF3E;
}
.term-console::-webkit-scrollbar { width: 5px; }
.term-console::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.term-console::-webkit-scrollbar-thumb { background: #A8FF3E; border-radius: 999px; }
.term-line { display: flex; gap: 5px; margin-bottom: 3px; word-break: break-word; }
.term-line .t { color: rgba(168, 255, 62, 0.5); flex-shrink: 0; }
.term-line .m { color: #C6FFC6; word-break: break-word; overflow-wrap: break-word; }
.term-line--success .m { color: #A8FF3E; }
.term-line--error .m { color: #FF6B6B; }
.term-line--warn .m { color: #FFD600; }

/* TURNSTILE */
.turnstile-wrap {
  position: relative;
  margin: 16px 0 4px;
  padding: 20px 14px 14px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
}
.turnstile-wrap::before {
  content: 'VERIFIKASI KEAMANAN';
  position: absolute; top: -10px; left: 14px;
  background: var(--lime); color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 900;
  letter-spacing: 1.3px;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1.5px solid var(--line);
}
.turnstile-wrap #cfTurnstileInline,
.turnstile-wrap #bulkTurnstile {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 65px;
  position: relative; z-index: 1;
}
.turnstile-wrap #cfTurnstileInline iframe,
.turnstile-wrap #bulkTurnstile iframe {
  border-radius: 4px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.turnstile-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: #FFFBEB;
  border: 1.5px solid #EAB308;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 900;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #92400E;
  transition: all 0.3s ease;
}
.turnstile-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #EAB308;
  animation: tsDotPulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.turnstile-status--ok {
  background: var(--lime-soft);
  border-color: var(--lime-dk);
  color: #065F46;
  animation: verifiedPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes verifiedPop {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.turnstile-status--ok .turnstile-status-dot {
  background: var(--green);
  animation: none;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.turnstile-status--fail {
  background: #FEF2F2;
  border-color: #DC2626;
  color: #991B1B;
}
.turnstile-status--fail .turnstile-status-dot {
  background: #DC2626;
  animation: none;
}
@keyframes tsDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.term-btn.turnstile-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--surface-2) !important;
  border: var(--bw) dashed var(--line) !important;
  color: var(--ink-3) !important;
  box-shadow: none !important;
  position: relative;
  padding-bottom: 28px;
}
.term-btn.turnstile-disabled::after {
  content: '⚠ SELESAIKAN VERIFIKASI DULU';
  position: absolute; bottom: 8px;
  left: 0; right: 0;
  font-size: 9px;
  color: #92400E; font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
}
.term-btn:not(.turnstile-disabled) {
  padding-bottom: 14px;
  background: var(--lime) !important;
  border: var(--bw) solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: 3px 3px 0 0 var(--line) !important;
}
.term-btn:not(.turnstile-disabled):hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--line) !important;
}
.term-btn:not(.turnstile-disabled):active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--line) !important;
}
.term-btn:not(.turnstile-disabled)::after { content: none; }

/* BACK */
.back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 2px 2px 0 0 var(--line);
}

/* ═══════════════════════════════════════════════════════════
   TOMBOL SPINNER + CANCEL (untuk tombol Donasi)
   ═══════════════════════════════════════════════════════════ */

/* ─── Spinner di dalam tombol ─── */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(10, 10, 10, 0.25);
  border-top-color: #0A0A0A;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ─── Tombol dalam mode loading ─── */
.btn-main--loading {
  background: var(--yellow) !important;
  color: var(--ink) !important;
  cursor: wait !important;
  opacity: 1 !important;
  box-shadow: 3px 3px 0 0 var(--line) !important;
  position: relative;
  overflow: hidden;
}

.btn-main--loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  animation: btnShine 1.4s ease-in-out infinite;
}

@keyframes btnShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.btn-main--loading .btn-main-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-main--loading .btn-main-text {
  font-weight: 900;
  letter-spacing: 1px;
}

/* ─── Tombol Batalkan ─── */
.btn-cancel {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  margin-top: 10px;
  background: #FEF2F2;
  color: #991B1B;
  border: var(--bw) solid #DC2626;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 3px 3px 0 0 #DC2626;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-cancel:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 #DC2626;
  background: #FEE2E2;
}

.btn-cancel:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 #DC2626;
}

.btn-cancel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #DC2626;
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

/* RESPONSIVE */
@media (min-width: 720px) {
  .hero-title { font-size: 52px; }
  .hero-sub { font-size: 16.5px; }
  .feed { padding: 28px 24px 60px; }
  .stat-big-val { font-size: 38px; }
}

/* ⚠️ MOBILE — Tombol header TETAP menampilkan tulisan */
@media (max-width: 640px) {
  .hdr-action-btn {
    padding: 8px 10px;
    font-size: 10px;
    gap: 4px;
  }
  .hdr-action-btn svg {
    width: 14px; height: 14px;
  }
  .hdr-action-btn span {
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 14px; }
  .hero-badge { font-size: 12px; padding: 8px 14px; letter-spacing: 1.5px; }
  .hero-badge-icon { font-size: 16px; }
  .hero-deco--rocket { font-size: 40px; top: -12px; right: 4px; }
  .hero-deco--astro { font-size: 32px; top: 54px; right: 30px; }
  .hero-deco--spark1 { font-size: 20px; top: 118px; left: -8px; }
  .hero-deco--spark2 { font-size: 18px; bottom: 6px; left: -10px; }

  .hdr-name { font-size: 15px; }
  .hdr-tag { font-size: 9px; padding: 3px 6px; }
  .hdr-stat-lbl { font-size: 10.5px; }
  .modal { padding: 20px 16px 18px; }
  .bnav-item { font-size: 10px; }
  .bnav-item svg { width: 20px; height: 20px; }

  .hdr-action-btn {
    padding: 7px 8px;
    font-size: 9px;
    gap: 3px;
    letter-spacing: 0.2px;
  }
  .hdr-action-btn svg {
    width: 13px; height: 13px;
  }

  .stat-big { padding: 12px 14px; }
  .stat-big-val { font-size: 26px; }
  .stat-big-lbl { font-size: 9.5px; }
  .stat-big-ic { font-size: 16px; }

  .tab { padding: 7px 12px; font-size: 11.5px; }
  .tab svg { width: 12px; height: 12px; }

  .guide-head-title { font-size: 11.5px; letter-spacing: 0.5px; }
  .guide-body b { font-size: 11px; }
  .guide-body p { font-size: 12px; }
  .guide-num { width: 28px; height: 28px; font-size: 13px; }

  .terminal-body {
    font-size: 11px;
    padding: 14px 14px;
    max-height: 260px;
    line-height: 1.7;
  }
  .tl {
    gap: 8px;
    margin-bottom: 8px;
  }
  .tl-tag { font-size: 10.5px; }
  .tl-msg { font-size: 11px; }

  .turnstile-wrap { padding: 18px 10px 12px; }
  .turnstile-wrap::before { font-size: 9px; padding: 2px 8px; }

  .bulk-acc-card { padding: 12px 14px; }
  .bulk-acc-email { font-size: 12px; padding: 7px 9px; }
  .bulk-acc-btn { font-size: 10.5px; padding: 8px 10px; min-width: 80px; }
  .bulk-action-btn { font-size: 11.5px; padding: 11px 12px; }

  .nexrey-toast {
    font-size: 11.5px;
    padding: 10px 16px;
    bottom: 80px;
  }

  .btn-cancel {
    padding: 11px 16px;
    font-size: 12px;
  }
  .btn-spinner {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .logo-beam, .logo-halo, .logo-ripple,
  .logo-circle, .loading-title, .loading-progress-bar,
  .tagline-cursor, .hero-deco, .turnstile-status-dot,
  .turnstile-status--ok, .btn-main--cooldown .btn-main-icon,
  .btn-spinner, .btn-main--loading::after {
    animation: none !important;
  }
}