/* ============================================
   CryptoHash — single-page stylesheet (lime theme)
   ============================================ */

:root{
  --bg:           #0a0a0a;
  --bg-soft:      #0d0d0d;
  --card:         #141414;
  --card-2:       #1a1a1a;
  --border:       #2a2a2a;
  --border-2:     #3a3a3a;

  --text:         #fafafa;
  --text-dim:     #a0a0a0;
  --text-mute:    #707070;

  --accent:       #e8ff47;
  --accent-2:     #a3e635;
  --accent-glow:  rgba(232,255,71,0.30);
  --green:        #34d399;
  --success:      #00b67a;
  --red:          #ef4444;
  --yellow:       #fbbf24;
  --warning:      #fbbf24;
  --violet:       #a78bfa;
  --cyan:         #60a5fa;

  --radius:       14px;
  --radius-sm:    10px;

  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  background-image:
    radial-gradient(900px 600px at 70% -10%, rgba(232,255,71,0.05), transparent 70%),
    radial-gradient(800px 500px at -10% 30%, rgba(232,255,71,0.04), transparent 60%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* helpers */
.text-dim  { color: var(--text-dim); }
.text-mute { color: var(--text-mute); }
.accent    { color: var(--accent); }

/* ---------- TOPBAR ---------- */
.topbar{
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
.topbar__inner{
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__icon{
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #0a0d0c;
  border-radius: 10px;
  box-shadow: 0 0 18px var(--accent-glow);
}
.brand__icon svg{ width: 20px; height: 20px; }
.brand__name{
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.topbar__badges{
  display: flex; gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.badge{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 12.5px;
  color: var(--text-dim);
  font-weight: 500;
}
.badge--ok{
  color: var(--accent);
  border-color: rgba(232,255,71,0.45);
  background: rgba(232,255,71,0.05);
}
.badge__check{ color: var(--accent); font-weight: 700; }
.badge__lock,
.badge__bars{ opacity: .7; font-size: 11px; }
.badge--pulse{
  color: var(--text-dim);
  background: transparent;
  border: none;
  padding-left: 4px;
}
.badge--pulse .badge__dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse{
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .55; transform: scale(.85); }
}

/* ---------- STAT SUB-BAR ---------- */
.statbar{
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.statbar__inner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex; align-items: center; justify-content: center;
  gap: 38px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
}
.statbar__item{ white-space: nowrap; flex-shrink: 0; }
.statbar__label{ color: var(--text-mute); }
.statbar__item b{ color: var(--accent); font-weight: 600; transition: color .3s ease; }
.statbar__item b.up   { color: var(--success); }
.statbar__item b.down { color: var(--red); }
.statbar__unit{ color: var(--text-mute); }

/* ---------- HERO ---------- */
.hero{
  text-align: center;
  padding: 64px 22px 40px;
  max-width: 760px;
  margin: 0 auto;
}
.hero__title{
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.5px;
}
.hero__title .accent{
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}
.hero__sub{
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 auto 26px;
  max-width: 620px;
}
.hero__features{
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  padding: 0; margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}
.hero__features li{
  display: inline-flex; align-items: center; gap: 8px;
}
.check{
  color: var(--accent);
  font-weight: 700;
}

/* ---------- CARD ---------- */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card__label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.card__title{
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.card__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

/* ---------- ASSET GRID ---------- */
.asset-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  transition: opacity .2s ease;
}
.asset-grid.is-locked{
  pointer-events: none;
  opacity: 0.55;
}

/* generic disabled-input styling */
.wallet-input:disabled,
.slider:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}
.slider:disabled::-webkit-slider-thumb{ cursor: not-allowed; }
.asset-tile{
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 8px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  transition: border-color .2s ease, color .2s ease, transform .15s ease, background .2s ease;
  font-weight: 600;
}
.asset-tile:hover{
  border-color: var(--border-2);
  color: var(--text);
  transform: translateY(-1px);
}
.asset-tile.is-active{
  border-color: var(--accent);
  background: rgba(232,255,71,0.04);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(232,255,71,0.5), 0 0 18px rgba(232,255,71,0.12);
}
.asset-tile__img,
.asset-tile__icon{
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  display: block;
  object-fit: contain;
}
.asset-tile__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.asset-tile__icon svg{
  width: 22px; height: 22px;
  display: block;
}

/* ---------- WALLET ---------- */
.wallet-status{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
}
.status-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #444;
  transition: background .2s ease, box-shadow .2s ease;
}
.wallet-status.is-empty   .status-dot{ background: var(--red); box-shadow: 0 0 8px rgba(255,94,108,0.5); }
.wallet-status.is-empty            { color: var(--red); }
.wallet-status.is-invalid .status-dot{ background: var(--yellow); box-shadow: 0 0 8px rgba(247,201,72,0.5); }
.wallet-status.is-invalid          { color: var(--yellow); }
.wallet-status.is-valid   .status-dot{ background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.wallet-status.is-valid            { color: var(--accent); }
.wallet-status.is-valid::before    { content: "✓ "; }

.wallet-input{
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wallet-input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,255,71,0.08);
}
.wallet-input::placeholder{ color: var(--text-mute); }

.wallet-memo-wrapper{
  margin-top: 12px;
}
.wallet-memo-label{
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.memo-optional{
  color: var(--text-mute);
}
.wallet-memo{
  font-size: 13px !important;
}
.wallet-hint{
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.wallet-hint code{
  background: var(--card-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 11.5px;
}

/* ---------- SLIDERS ---------- */
.sliders{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.slider-head{
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}
.slider-label{
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.slider-value{
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.slider-unit{
  font-size: 12px;
  color: var(--text-mute);
  margin-left: 4px;
}
.slider-sub{
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
}

.slider{
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--p,35%), #232825 var(--p,35%));
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb{
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 14px var(--accent-glow);
  cursor: pointer;
  transition: transform .15s ease;
}
.slider::-webkit-slider-thumb:hover{ transform: scale(1.1); }
.slider::-moz-range-thumb{
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  cursor: pointer;
}

/* ---------- TERMINAL ---------- */
.terminal{
  background: #06080a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.terminal__bar{
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: #121817;
  border-bottom: 1px solid var(--border);
}
.terminal__dots{ display: inline-flex; gap: 7px; }
.terminal__dot{
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.terminal__dot--red   { background: #ff5f57; }
.terminal__dot--yellow{ background: #ffbd2e; }
.terminal__dot--green { background: #28c940; }
.terminal__title{
  flex: 1; text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
}
.terminal__body{
  padding: 18px 20px;
  min-height: 220px;
  max-height: 420px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #cdd2cf;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.terminal__body::-webkit-scrollbar{ width: 6px; }
.terminal__body::-webkit-scrollbar-thumb{ background: rgba(232,255,71,0.4); border-radius: 999px; }

.t-line{ margin-bottom: 2px; word-break: break-all; }
.t-ready{ color: var(--text-mute); font-style: italic; }
.terminal__log{
  list-style: none;
  margin: 4px 0;
  padding: 0;
}
.terminal__log li{ padding: 0; display: block; word-break: break-all; }
.t-prompt { color: var(--accent); font-weight: 700; }
.t-flag   { color: var(--violet); }
.t-time   { color: var(--text-mute); }
.t-mute   { color: var(--text-mute); }
.t-info   { color: var(--cyan); }
.t-ok     { color: var(--accent); }
.t-warn   { color: var(--yellow); }
.t-err    { color: var(--red); }
.t-num    { color: var(--accent); }
.t-hash   { color: var(--text-dim); font-size: 11.5px; }
.t-data{
  display: block;
  background: #0d1110;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 6px 0;
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.6;
  word-break: break-all;
}
.t-data b{
  color: var(--accent);
  font-weight: 500;
}
.t-data .t-key{ color: var(--violet); }
.cursor-blink{
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink{ 50% { opacity: 0; } }

/* ---------- PROGRESS + STATS ---------- */
.mining-state{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.progress{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.progress__head{
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.progress__title{
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.bolt{ color: var(--accent); }
.progress__dot{
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
  margin-left: 4px;
}
.progress__pct{
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
}
.progress__track{
  height: 8px;
  background: #232825;
  border-radius: 999px;
  overflow: hidden;
}
.progress__bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 14px var(--accent-glow);
  transition: width .4s ease;
}

.stats-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-card__value{
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-card__value small{
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 500;
  margin-left: 2px;
}
.stat-card__label{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 2px;
}

.action-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ---------- BUTTONS ---------- */
.btn-primary,
.btn-ghost,
.cta-btn{
  height: 56px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  border: 1px solid transparent;
}
.btn-primary{
  background: var(--accent);
  color: #0a0d0c;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 32px var(--accent-glow);
  background: #cdfd0c;
}
.btn-ghost{
  background: var(--card-2);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover{
  border-color: var(--accent);
  color: var(--accent);
}

.cta-btn{
  width: 100%;
  font-size: 17px;
}
.cta-btn--disabled{
  background: var(--card-2);
  color: var(--text-mute);
  border-color: var(--border);
  cursor: not-allowed;
  box-shadow: none;
}
.cta-btn--ready{
  background: var(--accent);
  color: #0a0d0c;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.cta-btn--ready:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 32px var(--accent-glow);
}
.cta-btn--running{
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #1a0a00;
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 6px 24px rgba(245,158,11,0.3);
  cursor: not-allowed;
  position: relative;
  overflow: hidden;
}
.cta-btn--running::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: ctaShimmer 2.2s linear infinite;
}
@keyframes ctaShimmer{
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.cta-btn--running:hover{ transform: none; }

/* ---------- PAYOUTS ---------- */
.payouts{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.payouts__head{
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.payouts__title{
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: 15px;
}
.dot{ width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--green{
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
.payouts__meta{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
}
.payouts__meta b{ color: var(--text); font-weight: 600; }

.payouts__list{
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.payout{
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.payout__icon{
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: contain;
}
.payout__addr{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}
.payout__time{
  display: block;
  font-size: 12px;
  color: var(--text-mute);
}
.payout__amt{
  text-align: right;
  font-family: var(--font-mono);
}
.payout__amt b{
  color: var(--accent);
  font-weight: 600;
}
.payout__usd{
  display: block;
  font-size: 12px;
  color: var(--text-mute);
}
.payout__status{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.payout__status::before{
  content: "";
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}
.payout--new{
  animation: payoutSlide .5s ease;
}
@keyframes payoutSlide{
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- INTEGRATIONS ---------- */
.integrations{
  text-align: center;
  padding: 26px 0 10px;
}
.integrations__label{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.integrations__row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px 32px;
  opacity: .65;
}
.integ{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.integ img{
  width: 24px; height: 24px;
  border-radius: 50%;
  filter: grayscale(100%) brightness(1.5);
}

/* ---------- FOOTER ---------- */
.footer{
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 30px 22px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links{
  display: flex; justify-content: center; gap: 28px;
  font-size: 13.5px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.footer__links a:hover{ color: var(--accent); }
.footer__copy{
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer__audit{
  font-size: 12.5px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

/* ---------- MODAL ---------- */
.modal{
  position: fixed; inset: 0;
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal[hidden]{ display: none; }
.modal__backdrop{
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}
.modal__card{
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.modal__card::-webkit-scrollbar{ width: 6px; }
.modal__card::-webkit-scrollbar-thumb{ background: var(--border-2); border-radius: 999px; }
.modal__head{
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.modal__head h3{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.modal__head h3 svg{ color: var(--accent); }
.modal__close{
  background: transparent;
  border: 0;
  width: 32px; height: 32px;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}
.modal__close:hover{ color: var(--accent); background: rgba(232,255,71,0.07); }
.modal__body{
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.modal__body[hidden]{ display: none; }

.balance-display{
  background: var(--card-2);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.balance-label{
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.balance-value{
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}
.balance-usd{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mute);
  margin-top: 4px;
}

.fee-section{
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.20);
  border-radius: 10px;
  padding: 14px 16px;
}
.fee-title{
  font-size: 13px;
  font-weight: 600;
  color: var(--warning);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.fee-text{
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 10px;
}
.fee-amount{
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--warning);
}

.input-label{
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 8px;
}

.pay-options{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.pay-opt{
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: var(--card-2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all .15s ease;
}
.pay-opt:hover{ border-color: var(--text-mute); color: var(--text); }
.pay-opt.selected{
  border-color: var(--accent);
  background: rgba(232,255,71,0.06);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(232,255,71,0.4), 0 0 14px rgba(232,255,71,0.12);
}
.pay-opt img{ width: 28px; height: 28px; border-radius: 50%; }

/* ---------- VERIFY VIEW ---------- */
.modal__body--verify{
  padding: 36px 28px 28px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.verify-icon{
  color: var(--accent);
  margin-bottom: 18px;
  filter: drop-shadow(0 0 12px var(--accent-glow));
  animation: hourglassFlip 3s ease-in-out infinite;
}
@keyframes hourglassFlip{
  0%, 45%   { transform: rotate(0deg); }
  50%, 100% { transform: rotate(180deg); }
}
.verify-title{
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.verify-sub{
  color: var(--text-dim);
  font-size: 13.5px;
  margin: 0 0 24px;
}
.verify-progress{
  width: 100%;
  height: 7px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.verify-progress__bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width .6s ease;
}
.verify-note{
  color: var(--text-mute);
  font-size: 12px;
  margin: 0;
}

/* Confirm button disabled state with countdown */
.btn-primary:disabled{
  background: rgba(232,255,71,0.30);
  color: rgba(10,13,12,0.55);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-primary:disabled:hover{
  transform: none;
  background: rgba(232,255,71,0.30);
}

.network-options{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.network-opt{
  padding: 12px 8px;
  background: var(--card-2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  display: flex; flex-direction: column;
  gap: 3px;
}
.network-opt__name{
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.network-opt__code{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-mute);
}
.network-opt:hover{
  border-color: var(--text-mute);
}
.network-opt.selected{
  border-color: var(--accent);
  background: rgba(232,255,71,0.06);
  box-shadow: 0 0 0 1px rgba(232,255,71,0.4), 0 0 14px rgba(232,255,71,0.12);
}
.network-opt.selected .network-opt__name{ color: var(--accent); }
.section-label{
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
}

.input-row{
  display: flex; gap: 8px;
}
.input-field{
  flex: 1;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  outline: none;
  word-break: break-all;
}
.copy-btn{
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s ease;
}
.copy-btn:hover{ color: var(--accent); border-color: var(--accent); }
.copy-btn.copied{ color: var(--green); border-color: var(--green); }

.modal__actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.hint{
  display: block;
  color: var(--text-mute);
  font-size: 11.5px;
  font-family: var(--font-mono);
  text-align: center;
}

/* ---------- TOAST ---------- */
.toast{
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 22px var(--accent-glow);
  animation: toastIn .3s ease forwards;
}
@keyframes toastIn{
  from { transform: translate(-50%, 14px); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px){
  .asset-grid{ grid-template-columns: repeat(4, 1fr); }
  .sliders{ grid-template-columns: 1fr; }
  .stats-row{ grid-template-columns: repeat(2, 1fr); }
  .action-row{ grid-template-columns: 1fr; }
  .statbar__inner{ gap: 18px; font-size: 12px; }
}

/* Mobile (≤640px) */
@media (max-width: 640px){
  .container{ padding: 0 14px; gap: 14px; }

  /* Topbar */
  .topbar__inner{
    padding: 10px 14px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .brand__name{ font-size: 16px; }
  .brand__icon{ width: 32px; height: 32px; }
  .brand__icon svg{ width: 18px; height: 18px; }
  .topbar__badges{
    flex: 1;
    justify-content: flex-end;
    gap: 6px;
  }
  /* Hide all badges except "Pool Online" on mobile */
  .topbar__badges .badge:not(.badge--pulse){ display: none; }
  .badge--pulse{ font-size: 11px; }

  /* Statbar — horizontal scroll on mobile, no wrap */
  .statbar__inner{
    padding: 9px 14px;
    gap: 22px;
    font-size: 11.5px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
  }
  .statbar__inner::-webkit-scrollbar{ display: none; }

  /* Hero */
  .hero{
    padding: 32px 14px 22px;
  }
  .hero__title{
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .hero__sub{
    font-size: 14px;
    margin-bottom: 18px;
  }
  .hero__features{
    gap: 10px 22px;
    font-size: 13px;
  }

  /* Cards */
  .card{ padding: 14px 16px; }
  .card__label{ font-size: 10px; margin-bottom: 10px; }

  /* Asset grid */
  .asset-grid{
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .asset-tile{
    padding: 9px 6px;
    font-size: 11.5px;
    gap: 6px;
  }
  .asset-tile__img,
  .asset-tile__icon{
    width: 18px; height: 18px;
    min-width: 18px; min-height: 18px;
  }
  .asset-tile__icon svg{ width: 18px; height: 18px; }

  /* Wallet */
  .wallet-input{ padding: 12px 14px; font-size: 12.5px; }
  .wallet-hint{ font-size: 11px; }
  .wallet-hint code{ font-size: 10.5px; padding: 2px 6px; }

  /* Sliders */
  .slider-head{ margin-bottom: 14px; }
  .slider-label{ font-size: 14px; }
  .slider-value{ font-size: 16px; }
  .slider-sub{ font-size: 11px; margin-top: 10px; }

  /* Terminal */
  .terminal__body{
    min-height: 180px;
    max-height: 280px;
    padding: 14px 16px;
    font-size: 11.5px;
    line-height: 1.6;
  }
  .terminal__title{ font-size: 11px; }
  .t-data{ font-size: 10.5px; padding: 8px 10px; }

  /* Stats */
  .stat-card{ padding: 14px 10px; }
  .stat-card__value{ font-size: 20px; }
  .stat-card__value small{ font-size: 11px; }
  .stat-card__label{ font-size: 10px; letter-spacing: 1.5px; }

  /* Progress */
  .progress{ padding: 14px 16px; }
  .progress__title{ font-size: 14px; }

  /* Buttons */
  .btn-primary, .btn-ghost, .cta-btn{
    height: 50px;
    font-size: 15px;
  }

  /* Payouts */
  .payouts{ padding: 16px; }
  .payouts__title{ font-size: 14px; }
  .payouts__meta{ font-size: 12px; }
  .payout{
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .payout__icon{ width: 24px; height: 24px; }
  .payout__addr{ font-size: 12px; }
  .payout__time{ font-size: 11px; }
  .payout__amt{ font-size: 12px; }
  .payout__usd{ font-size: 11px; }
  .payout__status{
    grid-column: 1 / -1;
    justify-content: flex-end;
    font-size: 11px;
    margin-top: -2px;
  }

  /* Integrations */
  .integrations{ padding: 20px 0 6px; }
  .integrations__label{ font-size: 10px; margin-bottom: 14px; }
  .integrations__row{ gap: 14px 18px; }
  .integ{ font-size: 12.5px; }
  .integ img{ width: 18px; height: 18px; }

  /* Footer */
  .footer{ padding: 24px 14px 22px; gap: 8px; }
  .footer__links{ gap: 18px; font-size: 12.5px; }
  .footer__copy, .footer__audit{ font-size: 11.5px; }

  /* Modal */
  .modal__head{ padding: 14px 16px; }
  .modal__head h3{ font-size: 16px; }
  .modal__body{ padding: 14px 16px 16px; gap: 12px; }
  .balance-display{ padding: 14px; }
  .balance-value{ font-size: 20px; }
  .fee-section{ padding: 12px 14px; }
  .fee-amount{ font-size: 16px; }
  .modal__actions{ grid-template-columns: 1fr; }
  .pay-options{ grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pay-opt{ font-size: 11px; padding: 10px 4px; gap: 5px; }
  .pay-opt img{ width: 22px; height: 22px; }
}

/* Very small (≤400px) */
@media (max-width: 400px){
  .asset-grid{ grid-template-columns: repeat(3, 1fr); }
  .statbar__inner{ gap: 10px 14px; font-size: 11px; }
  .hero__title{ font-size: 26px; }
}
