/* ═══════════════════════════════════════════════
   radii — App Shell + Design System
   home, more, shop, mine, refer-&-earn, deposit, settings, fiat-deposit, withdraw
   Split-panel on desktop, mobile-first below 900px
   ═══════════════════════════════════════════════ 
*/

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "Space Mono", monospace;
  --font-display:
    "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}

html {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--background);
  min-height: 100vh;
}

/* ══════════════ APP SHELL ══════════════ */
.app-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── LEFT BRAND PANEL ── */
.app-left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.app-left::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(
    circle,
    rgba(216, 31, 39, 0.08) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.app-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.brand-content {
  position: relative;
  z-index: 1;
}

.brand-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--red);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.brand-eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--red);
}

.brand-headline {
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -2px;
  margin-bottom: 28px;
}
.brand-headline .accent {
  color: var(--red);
}

.brand-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 340px;
  font-weight: 300;
  margin-bottom: 36px;
}

.brand-stats {
  display: flex;
  gap: 32px;
}

.brand-stat-num {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
}
.brand-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.brand-footer {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── RIGHT APP PANEL ── */
.app-right {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.app-body {
  background: linear-gradient(135deg, var(--background), var(--lightblue), var(--background));
  flex: 1;
  padding-bottom: 24px;
}

/* ══════════════ TOPBAR ══════════════ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  margin: 1px 0;
}

.top-sub {
  display: flex;
  align-items: center;
  gap: 5px;
}

.top-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  border: none;
}

.top-button img {
  width: 26px;
  height: 26px;
}


.logo-lockup {
  background: var(--white);
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.topbar-sub {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.8px;
}

.ID-box {
  border: none;
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.topbar svg {
  height: 18px;
  width: 18px;
  color: var(--muted);
  font-weight: 700;
}

.ID-box img{
  height: 14px;
  width: 14px;
}

.top-bar svg {
  height: 18px;
  width: 18px;
  color: var(--muted);
  font-weight: 700;
}

.topbar-sub span {
  color: var(--red);
  font-weight: 700;
}

.topbar-back {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  padding: 4px;
  transition: color 0.2s;
}
.topbar-back:hover {
  color: var(--white);
}

.topbar-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  border-radius: 6px;
}

.topbar-btn:hover {
  opacity: 0.85;
}
.topbar-btn.ghost {
  background: none;
  border-color: var(--border);
  color: var(--muted);
}
.topbar-btn.ghost:hover {
  color: var(--white);
  border-color: var(--border-hover);
}

/* Mobile-only logo in topbar */
.topbar-logo {
  display: none;
  align-items: center;
  gap: 8px;
}
.topbar-logo img {
  width: 22px;
  height: 22px;
}
.topbar-logo span {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 2px;
}
.topbar-logo strong {
  font-weight: 700;
}

/* ══════════════ SECTION LABEL ══════════════ */
.section-label {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 15px 20px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ══════════════ BALANCE HERO ══════════════ */
.balance-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 40px;
}

.balance-label {
  color: var(--white);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-label span {
  font-size: 13px;
}

.eye-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.hideable {
  transition:
    filter 0.1s ease,
    opacity 0.1s ease;
}

/* ── MASKED STATE — shows ✱✱✱✱ ── */
html[data-balance-hidden="1"] .hideable {
  position: relative;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

html[data-balance-hidden="1"] .hideable * {
  color: transparent;
}

html[data-balance-hidden="1"] .hideable::after {
  content: "✱✱✱✱✱";
  position: absolute;
  margin-top: 1px;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 2px;
}

.balance-amount {
  display: flex;
  align-items: center;
  border: none;
  background-color: transparent;
  color: var(--white);
  font-family: var(--font-mono);
  gap: 3px;
  letter-spacing: -1px;
  line-height: 1;
}

.balance-amount svg {
  color: var(--white);
  width: 15px;
  height: 15px;
}

.balance {
  display: flex;
  gap: 2px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.stat-grid {
  /*withdraw*/
  display: grid;
  gap: 6px;
  border-radius: 10px;
  padding: 1px 2px 1px;
  margin: 12px 12px 0 12px;
}

.stat-grid.cols-2 {
  /*withdraw*/
  grid-template-columns: 1fr 1fr;
}
.stat-grid.cols-3 {
  /*withdraw*/
  grid-template-columns: repeat(3, 1fr);
}
.stat-grid.cols-4 {
  /*withdraw*/
  grid-template-columns: repeat(4, 1fr);
}
.stat-grid.inset {
  /*withdraw*/
  margin: 0 20px 20px;
}

.tat-grid {
  display: grid;
  gap: 10px;
  border-radius: 10px;
  padding: 1px 2px 1px;
}

.tat-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.tat-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.tat-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.stat-cell {
  /*withdraw*/
  background: var(--border);
  border: none;
  padding: 10px;
  border-radius: 10px;
}

.stat-label {
  /*withdraw*/
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.stat-val {
  /*withdraw*/
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
}

.stat-val.accent {
  color: var(--red);
}

.stat-val.green {
  color: var(--green);
}

.stat-val.red { 
  color: var(--red); 
}

.stat-val.amber {
  color: var(--amber);
}
.stat-val.sm {
  font-size: 12px;
}

.stat {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}

.stat svg {
  color: var(--lightblue);
  width: 25px;
  height: 25px;
}

/* ══════════════ QUICK ACTIONS ══════════════ */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--border);
  border-radius: 10px;
  margin: 0 12px;
  gap: 2px;
}

.action-btn {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.action-btn:active {
  background: var(--surface2);
}

.action-icon svg {
  background: transparent;
  color: var(--red);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.action-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--white);
  text-align: center;
}

/* ══════════════ LIVE MARKET ══════════════ */
.market-card {
  margin: 0 12px 16px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.market-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.market-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.market-live {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 15px 20px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.market-live::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--section);
}

.market-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--background);
}

.market-col-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.market-col-label:last-child {
  text-align: right;
}

.coin-row {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.coin-row:last-child {
  border-bottom: none;
}
.coin-row:active {
  background: var(--surface);
}

.coin-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.coin-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}
.coin-change {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}
.coin-change.pos {
  color: var(--green);
}
.coin-change.neg {
  color: var(--red);
}

.market-loading {
  padding: 24px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-align: center;
}

/* ══════════════ TABS ══════════════ */
.tabs {
  display: grid;
  border-bottom: 1px solid var(--border);
}
.tabs.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.tab {
  padding: 13px;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.tab.active {
  color: var(--white);
}
.tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}
.tab-count {
  font-size: 9px;
  opacity: 0.5;
  margin-left: 4px;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* ══════════════ CARD LISTS ══════════════ */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.list-card {
  background: var(--surface);
  padding: 16px 20px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid;
}
.badge.active,
.badge.approved,
.badge.sent,
.badge.confirmed {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
  background: var(--green-dim);
}
.badge.pending {
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.3);
}
.badge.rejected,
.badge.failed {
  color: var(--red);
  border-color: var(--red-border);
}
.badge.done,
.badge.expired {
  color: var(--muted);
  border-color: var(--border);
}

/* ══════════════ PROGRESS ══════════════ */
.progress-wrap {
  margin-bottom: 10px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--red);
  transition: width 0.5s;
}
.progress-fill.done {
  background: var(--green);
}

/* ══════════════ COUNTDOWN ROW ══════════════ */
.countdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--black);
  border: 1px solid var(--border);
}
.countdown-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.countdown-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin-left: auto;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.5px;
  line-height: 1.8;
}

/* ══════════════ MENU LIST ══════════════ */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 12px;
  border-radius: 10px;
  background: var(--border);
}

.menu-item {
  background: transparent;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  width: 100%;
  text-align: left;
}
.menu-item:active {
  background: var(--surface2);
}
.menu-item-left {
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-item-icon svg {
  color: var(--red);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: transparent;
  flex-shrink: 0;
}

.menu-item-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}

.menu-item-sub {
  font-size: 11px;
  color: var(--text);
  font-weight: 300;
  margin-top: 1px;
}

.menu-arrow {
  color: var(--text);
  font-size: 14px;
}

/* ══════════════ SPLIT ACTION BUTTONS ══════════════ */
.split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 0 20px 20px;
}

.split-btn {
  background: var(--surface);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  text-decoration: none;
}
.split-btn:active {
  background: var(--surface2);
}
.split-btn-icon {
  font-size: 20px;
}
.split-btn-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}
.split-btn-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ══════════════ EMPTY STATE ══════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  text-align: center;
}
.empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.empty-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.empty-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
}
.empty-btn {
  margin-top: 20px;
  padding: 12px 28px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* ══════════════ MODAL ══════════════ */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--black);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  padding: 24px;
}
.overlay.active {
  display: flex;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
}
.modal-icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--amber);
}
.modal-icon p {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-top: 8px;
}
.modal-box > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.amount {
  color: var(--red);
  font-weight: 700;
}
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.modal-btn {
  padding: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.modal-btn.confirm {
  background: var(--red);
  color: var(--white);
}
.modal-btn.deny {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ══════════════ BOTTOM NAV ══════════════ */
.bottom-nav {
  position: sticky;
  bottom: 0;
  background: var(--black);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 100;
  width: 100%;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 0px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item.active #homeIcon,
.nav-item.active #shopIcon,
.nav-item.active #dashboardIcon,
.nav-item.active #mineIcon {
  color: var(--lightblue);
}

#homeIcon,
#shopIcon,
#dashboardIcon,
#mineIcon {
  color: var(--white);
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-left: 2px;
}

.nav-item.active .nav-label {
  color: var(--lightblue);
}

.notice-badge {
  position: absolute;
  top: 8px;
  right: 50%;
  margin-right: -20px;
  background: var(--red);
  color: var(--white);
  font-size: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.notice-badge.show {
  display: flex;
}

/* ══════════════ MOBILE ══════════════ */
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .app-left {
    display: none;
  }
  .app-right {
    max-width: 100%;
  }
  .topbar-logo {
    display: flex;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
  }
  .app-body {
    padding-bottom: 80px;
  }
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.overlay.active {
  display: flex;
}

.modal-box {
  gap: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  background: var(--black);
  border: 1px solid var(--red);
  border-radius: 20px;
  padding: 24px 20px 28px;
  width: 100%;
  max-width: 360px;
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-icon {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 0;
  color: var(--red);
}

.modal-actions {
  display: flex;
  gap: 20px;
}

.modal-btn {
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.modal-btn.deny {
  background: var(--red);
  color: var(--black);
}

.modal-btn.deny:hover {
  background: red;
  box-shadow: 0 5px 15px #ff3a3a;
}

.modal-btn.confirm {
  background: var(--green);
  color: black;
}

.modal-btn.confirm:hover {
  background: rgb(100, 215, 255);
  box-shadow: 0 5px 15px lightblue;
}

.amount {
  color: var(--white);
  font-weight: 500;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.signin-popup {
  background: var(--black);
  border: 1px solid var(--red);
  border-radius: 20px;
  padding: 24px 20px 28px;
  width: 100%;
  max-width: 360px;
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.signin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.signin-title {
  font-size: 17px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

.signin-close {
  background: var(--red);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.signin-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.signin-sub {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 18px;
}

/* ── Day Grid ── */
.signin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* Last 3 days centered on second row */
.signin-grid .day-box:nth-child(5) {
  grid-column: 1;
}
.signin-grid .day-box:nth-child(6) {
  grid-column: 2;
}
.signin-grid .day-box:nth-child(7) {
  grid-column: 3;
}

.day-box {
  background: rgba(0, 180, 80, 0.08);
  border: 1px solid rgba(0, 200, 80, 0.2);
  border-radius: 12px;
  padding: 10px 6px 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.day-box:hover:not(.done):not(.missed):not(.future) {
  background: rgba(0, 200, 80, 0.18);
  border-color: rgba(0, 255, 100, 0.5);
  transform: translateY(-2px);
}

.day-box.today {
  border-color: rgba(0, 255, 100, 0.6);
  background: rgba(0, 200, 80, 0.15);
  box-shadow: 0 0 12px rgba(0, 255, 100, 0.2);
}

.day-box.done {
  border-color: rgba(0, 255, 100, 0.5);
  background: rgba(0, 180, 80, 0.2);
  cursor: default;
}

.day-box.missed {
  border-color: rgba(255, 60, 60, 0.4);
  background: rgba(180, 20, 20, 0.15);
  cursor: default;
  opacity: 0.8;
}

.day-box.future {
  opacity: 0.45;
  cursor: default;
}

.day-coin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe066, #f5a623 60%, #c47d0a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #7a4a00;
  font-weight: 900;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 200, 0.5);
}

.day-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.day-pts {
  font-size: 10px;
  color: #4dff99;
}

/* Status icons */
.day-status {
  font-size: 16px;
  height: 18px;
  line-height: 18px;
}

.day-box.done .day-status::after {
  content: "✓";
  color: #00ff77;
}
.day-box.missed .day-status::after {
  content: "✗";
  color: #ff4444;
}

.signin-claim {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.signin-claim:hover:not(:disabled) {
  opacity: 0.85;
}
.signin-claim:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.signin-msg {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
  min-height: 16px;
  color: var(--green);
}
.signin-msg.error {
  color: #ff6b6b;
}

/* ======= Shop ======== */
.topbar-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-balance {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  color: var(--muted);
}

.topbar-balance span {
  color: var(--white);
  font-weight: 700;
}

.daniel {
  text-transform: uppercase;
  background: var(--lightblue);
  color: var(--black);
  padding: 10px;
  margin: 0 12px 12px 12px;
  border-radius: 10px;
  font-family: var(--font-display);
}

.income-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--black);
  padding: 12px 20px;
  background: transparent;
}

.income-label {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.income-val {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Mono", monospace;
  font-size: 13px;
  color: var(--white);
}

.income-val input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--red);
  cursor: pointer;
}

.tier-tabs {
  background: transparent;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 10px;
}

.tier-tab {
  padding: 13px;
  text-align: center;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  border: none;
  background: none;
  transition: color 0.2s;
}

.tier-tab.active {
  color: var(--red);
}

/* MINER CARDS */
.js-miners-grid {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 10px;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0;
}

/* ── INDIVIDUAL MINER CARD ── */
.miners {
  background: var(--black);
  border-left: 1.5px solid var(--lightblue);
  border-radius: 10px;
  padding: 15px;
  transition: background 0.2s;
}

/* Spec rows — "Computing Power: 110TH/s" */
.specs p {
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  padding: 7px 0;
  letter-spacing: 0.2px;
  padding: 5px;
  border-radius: 5px;
}

.specs span {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0;
}

/* Highlight daily income + total revenue in red */
.miners > p:nth-of-type(3) span,
.miners > p:nth-of-type(4) span {
  color: var(--red);
}

/* ── PRICE FOOTER ── */
.miners .price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--white);
}

.miners .price > span {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.5px;
}

/* ── RENT BUTTON ── */
.rent-btn {
  background: var(--lightblue);
  color: var(--black);
  border: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 11px 28px;
  cursor: pointer;
  transition: opacity 0.2s;
  min-width: 90px;
  border-radius: 7px;
}

.rent-btn:hover:not(:disabled) {
  opacity: 0.85;
}

.rent-btn:disabled {
  background: var(--red);
  color: var(--black);
  border: 1px solid var(--border);
  cursor: default;
}

/* ====== mine ====== */
/* SUMMARY */
.summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: transparent;
  border-radius: 10px;
  margin: 0 12px 5px 12px;
}
.summary-cell {
  background: var(--border);
  padding: 14px 12px;
  border-radius: 10px;
}
.summary-label {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.summary-val {
  font-family: "Space Mono", monospace;
  font-size: 16px;
  font-weight: 700;
}
.summary-val.green {
  color: var(--green);
}
.summary-val.accent {
  color: var(--red);
}

/* TABS */
.miner-tabs {
  background-color: var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 10px;
  margin: 0 12px 5px 12px;
}

.miner-tab {
  padding: 13px;
  text-align: center;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  transition: color 0.2s;
  position: relative;
}

.miner-tab.active {
  color: var(--red);
}

.miner-tab-count {
  font-size: 9px;
  opacity: 0.5;
  margin-left: 4px;
}

.tab-panel {
  display: none;
  margin: 0 12px;
}
.tab-panel.active {
  display: block;
}

/* MINER CARDS */
.miners-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
}

.miner-card {
  background: var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}

.miner-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.miner-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.miner-status {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid;
}
.miner-status.active {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
  background: var(--green-dim);
}
.miner-status.done {
  color: var(--muted);
  border-color: var(--black);
}

.miner-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--black);
  border: 1px solid var(--black);
  margin-bottom: 12px;
}
.miner-stat {
  background: var(--border);
  padding: 10px;
}
.miner-stat-label {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.miner-stat-val {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}
.miner-stat-val.accent {
  color: var(--red);
}
.miner-stat-val.green {
  color: var(--green);
}

.progress-wraps {
  margin-bottom: 10px;
}
.progress-metas {
  display: flex;
  justify-content: space-between;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.progress-tracks {
  height: 3px;
  background: var(--black);
  overflow: hidden;
}
.progress-fills {
  height: 100%;
  background: var(--green);
  transition: width 0.5s;
}
.progress-fills.done {
  background: var(--red);
}

/* Countdown */
.countdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--border);
  border: 1px solid var(--black);
}
.countdown-label {
  font-family: "Space Mono", monospace;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.countdown-val {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin-left: auto;
}

.miner-meta {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.5px;
  line-height: 1.8;
}

/*======== Invite =========*/
.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  padding: 12px 17px;
  top: 0;
  backdrop-filter: blur(16px);
  z-index: 50;
}

.reward-rules {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 10px;
  margin: 0 12px;
  padding: 15px;
  gap: 18px;
}

.reward-card {
  display: flex;
  flex-direction: column;
}

.reward-title {
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.reward-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}
.reward-highlight {
  color: var(--white);
  font-weight: 600;
}
.level-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.level-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
}
.level-item span:last-child {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: var(--white);
  font-weight: 600;
}

.cta-note {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  line-height: 1.6;
}

.share-card {
  margin: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--black);
  border-radius: 10px;
}

.share-row {
  background: transparent;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-label {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.share-val {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}
.copy-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.copy-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}
.copy-btn.copied {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
}

.team {
  background: linear-gradient(180deg, var(--black), var(--red-dim));
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 10px 12px 0 12px;
  padding: 20px 0 10px 0;
  border-radius: 10px;
  gap: 35px;
}

.team-invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.team svg {
  height: 75px;
  width: 75px;
  color: var(--muted);
}

.level-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  cursor: pointer;
  background: transparent;
  user-select: none;
}

.level-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.level-title {
  font-size: 14px;
  font-weight: 600;
}
.level-rebate {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--red);
}
.level-count {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.level-chevron {
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.2s;
}
.level-chevron.open {
  transform: rotate(90deg);
}
.member-list {
  display: none;
  flex-direction: column;
  gap: 1px;
  background: transparent;
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.member-list.open {
  display: flex;
}
.member-card {
  background: transparent;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.member-id {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: var(--white);
}
.member-email {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.member-badge {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid;
}
.member-badge.active {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
}
.member-badge.inactive {
  color: var(--muted);
  border-color: var(--border);
}
.empty-members {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
}

/*======== DEPOSIT =========*/
/* Coin selector */
.coin-grid {
  display: grid;
  gap: 4px;
  border-radius: 10px;
  padding: 1px 2px 1px;
  margin: 0 10px 0px;
}

.coin-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.coin-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.coin-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.coin-grid.inset {
  margin: 0 20px 20px;
}

.coin-btn {
  background: var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
  border-left: 2px solid transparent;
}

.coin-btn:has(input:checked) {
  background: var(--darkgreen);
}

.coin-btn img {
  height: 33px;
  width: 33px;
}

.coin-name {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.coin-network {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 2px;
}

.minimum {
  order: 3;  /* push it after the line */
}

.minimum svg {
  height: 15px;
  width: 15px;
}

.amount-head {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 0 12px 30px 12px;
}

.amount-section {
  width: 100%;
}

.amount-wrap {
  /*withdraw*/
  display: flex;
  align-items: center;
  background: var(--border);
  border-radius: 10px;
}

.amount-prefix {
  /*withdraw*/
  padding: 0 15px;
  font-size: 18px;
  color: var(--surface);
  border-right: 1px solid var(--surface);
}

.amount-input {
  /*withdraw*/
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 20px;
  color: var(--white);
  font-weight: 600;
  font-family: "Space Mono", monospace;
}

.amount-input::placeholder {
  /*withdraw*/
  color: var(--surface);
}

.rate-preview {
  /*--deposit and fiat deposit--*/
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 12px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--border);
  font-size: 12px;
}

.rate-label {
  /*--deposit and fiat deposit__*/
  color: var(--muted);
}

.rate-value {
  /*--deposit and fiat deposit--*/
  color: var(--green);
  font-weight: 700;
  font-family: "Space Mono", monospace;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--red);
  color: var(--white);
  border-radius: 10px;
  border: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.85;
}

.submit-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.error-msg {
  margin: 8px 12px 0 12px;
  border-radius: 5px;
  padding: 12px 16px;
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  font-size: 13px;
  color: var(--red);
}

.alt-option {
  margin: 0 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--border);
  border-radius: 10px;
  border-left: 2px solid var(--green);
  padding: 16px;
  text-decoration: none;
  color: var(--white);
}

.alt-icon {
  font-size: 20px;
}

.alt-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.alt-desc {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}
.alt-arrow {
  margin-left: auto;
  color: var(--muted);
  flex-shrink: 0;
}

/* Payment panel */
.payment-panel {
  margin: 0 12px;
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  position: relative;
}

.qr-container {
  background: var(--white);
  padding: 15px;
  display: inline-block;
  position: relative;
  border-radius: 5px;
}

.qr-head {
  background: var(--white);
  padding: 2px;
  display: inline-block;
  position: relative;
  border-radius: 5px;
}

.qr-box {
  height: 225px;
  width: 225px;
}

.qr-coin-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  border: 1px solid var(--green);
  padding: 3px 12px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  letter-spacing: 1px;
}

.countdown-bar {
  margin: 24px 0 16px;
}
.countdown-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.countdown-label {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.countdown-time {
  font-size: 15px;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  color: var(--green);
}
.countdown-time.warning {
  color: var(--amber);
}
.countdown-time.urgent {
  color: var(--red);
}
.progress-track {
  width: 100%;
  height: 3px;
  background: var(--border);
}
.progress-fill {
  height: 100%;
  background: var(--green);
  transition:
    width 1s linear,
    background 1s;
}

.detail-card {
  background: var(--black);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  border-radius: 10px;
}

.detail-row {
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-key {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.detail-val {
  font-size: 13px;
  color: var(--white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Mono", monospace;
  max-width: 200px;
  word-break: break-all;
  text-align: right;
}
.detail-val.big {
  font-size: 18px;
  color: var(--green);
}
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}
.copy-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}
.copy-btn.copied {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
}

.network-badge {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border: 1px solid;
}
.badge-trc20 {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.3);
}
.badge-erc20 {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}
.badge-bep20 {
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.3);
}
.badge-btc {
  color: #f7931a;
  border-color: rgba(247, 147, 26, 0.3);
}

.warning-box p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 6px;
  font-weight: 300;
}

.warning-box p:last-child {
  margin-bottom: 0;
}

.warning-box strong {
  color: var(--amber);
}

.status-checking {
  background: var(--black);
  text-align: center;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 20px;
}

.pulse-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.status-text {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}

.success-panel {
  text-align: center;
  padding: 60px 20px;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--green);
}
.success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.success-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
  font-weight: 300;
}
.home-btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 40px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.home-btn:hover {
  opacity: 0.85;
}

.expired-panel {
  text-align: center;
  padding: 60px 20px;
}
.expired-icon {
  font-size: 44px;
  margin-bottom: 16px;
}
.expired-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 8px;
}
.expired-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 300;
}
.retry-btn {
  display: inline-block;
  background: var(--surface);
  color: var(--white);
  padding: 12px 32px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.retry-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.cancel-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--red-border);
  border-radius: 10px;
  color: var(--red);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "Space Grotesk", sans-serif;
}

.cancel-btn:hover {
  background: var(--red-dim);
}

.alt-icon {
  font-size: 20px;
}

.alt-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}
.alt-desc {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}
.alt-arrow {
  margin-left: auto;
  color: var(--muted);
  flex-shrink: 0;
}

/*======== Deposit ========*/
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 17px;
  top: 0;
  backdrop-filter: blur(16px);
  z-index: 50;
}

.top svg {
  height: 22px;
  width: 22px;
  color: var(--muted);
  font-weight: 700;
}

.top-head {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/*========SETTINGS==========*/
.settings {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 12px;
  gap: 7px;
}

.menu-pin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  width: 100%;
  padding: 16px 20px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.option {
  display: flex;
  align-items: center;
  width: 100%;
}

.option-btn {
  height: 45px;
  width: 100%;
  background: var(--red);
  border: none;
  border-radius: 10px;
}

.option-label {
  color: var(--black);
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
}

/*============FIAT-DEPOSIT============*/
.amount-field {
  background-color: var(--border);
  border-radius: 10px;
}

input[type="text"],
input[type="number"]:not(.amount-input) {
  width: 100%;
  background: var(--border);
  color: var(--white);
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  padding: 17px;
  border-radius: 10px;
  border: none;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

input::placeholder {
  color: var(--text);
}

input:focus {
  border-color: rgba(255, 255, 255, 0.18);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.naira-preview {
  background: transparent;
  padding: 11px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  display: none;
}

.naira-preview.show {
  display: flex;
}

.naira-label {
  color: var(--muted);
  font-weight: 300;
}

.naira-val {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

.field-note {
  padding: 0 10px;
  font-size: 11px;
  color: var(--amber);
  line-height: 1.6;
  margin: 10px 0;
  font-weight: 300;
}

/* Alerts */
.alert {
  margin: 16px 20px 0;
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.alert.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--green);
}
.alert.error {
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  color: #ff8080;
}
.alert.error::before {
  content: "✕";
  font-size: 10px;
  color: var(--red);
  flex-shrink: 0;
}

/* ── DISABLED STATE ── */
.disabled-box {
  margin: 40px 20px;
  border-radius: 10px;
  border: 1px solid var(--red-border);
  background: var(--red-dim);
  padding: 32px 24px;
  text-align: center;
}
.disabled-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.disabled-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.disabled-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 22px;
  font-weight: 300;
}
.disabled-link {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid var(--red-border);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.disabled-link:hover {
  background: var(--red-dim);
}

/* ── ACTIVE TICKET ── */
.amount-hero {
  padding: 28px 20px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.amount-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.06) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.amount-eyebrow {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.amount-naira {
  font-family: "Space Mono", monospace;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--green);
  margin-bottom: 6px;
}
.amount-usd {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}

.detail-key {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.detail-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}
.detail-val.mono {
  font-family: "Space Mono", monospace;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}
.copy-btn.copied {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
}

.instruction-box {
  margin: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  font-weight: 300;
}
.instruction-box strong {
  color: var(--green);
  font-weight: 600;
}

.warning-box strong {
  color: var(--amber);
}

/* Polling status */
.pulse-ring {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(34, 197, 94, 0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.status-text {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

.status-approved {
  margin: 0 20px 16px;
  padding: 28px 20px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: var(--green-dim);
  text-align: center;
  display: none;
}
.approved-icon {
  width: 52px;
  height: 52px;
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--green);
  margin: 0 auto 14px;
}
.approved-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}
.approved-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}


.cancel-btn:hover {
  background: var(--red-dim);
}

.field-note {
  padding: 0 20px;
  font-size: 11px;
  color: var(--amber);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 300;
}

.rate-strip {
  margin: 0 20px 20px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rate-label {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.rate-val {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

/*========= SETTINGS =========*/
.theme-dropdown {
  position: relative;
  width: 100%;
  border-radius: 10px;
  background: var(--black);
}

.theme-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-chevron {
  color: rgba(255,255,255,0.2);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.theme-dropdown.open .dropdown-chevron { transform: rotate(180deg); }

.theme-options {
  max-height: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: 0  0 10px 10px;
  transition: max-height 0.25s ease;
}

.theme-dropdown.open .theme-options {
  max-height: 200px;
}

.theme-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px 15px 25px;
  background: none;
  border: none;
  color: var(--red);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.check-icon {
  margin-left: auto;
  color: var(--green);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.15s;
  flex-shrink: 0;
}

.theme-option.active .check-icon {
  opacity: 1;
  transform: scale(1);
}

/*========== WITHDRAW ==========*/
.stat-val.network {
  font-size: 13px;
  color: var(--amber);
}

.success-item {
  background: transparent;
  border: 1.5px solid var(--green-dim);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--green);
  margin: 6px 12px;
}

.error-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: #ff8080;
  margin-bottom: 6px;
}

.error-item::before {
  content: "✕";
  font-size: 10px;
  color: var(--red);
}

.field-wrap {
  display: flex;
  flex-direction: column;
}

select {
  margin: 0 12px;
  width: calc(100% - 24px);
  background: var(--surface);
  color: var(--white);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  outline: none;
  -webkit-appearance: none;
}

select option {
  background: #111;
}

.no-wallet-note {
  margin: 0 12px; 
  padding: 12px 16px;
  background: transparent;
  font-size: 12px;
  color: var(--amber);
  line-height: 1.6;
}

.fee-preview {
  margin: 6px 0 3px 0;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: none;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.fee-row:last-child {
  border-bottom: none;
}
.fee-row span:last-child {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  color: var(--white);
  font-weight: 700;
}
.fee-row.net span:last-child {
  color: var(--green);
  font-size: 15px;
}

.warning-box {
  margin: 12px;
  padding: 14px 16px;
  background: var(--orange);
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 12px;
  color: var(--text);
  line-height: 1.8;
}

.warning-box strong {
  color: var(--amber);
}
.alt-icon {
  font-size: 20px;
}
.alt-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}
.alt-desc {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}
.alt-arrow {
  margin-left: auto;
  color: var(--muted);
  flex-shrink: 0;
}
.blocked-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}
.blocked-box {
  background: var(--surface);
  border: 1px solid var(--red-border);
  padding: 32px 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
}
.blocked-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.blocked-title {
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.blocked-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
}
.blocked-support {
  display: block;
  background: var(--green);
  color: #000;
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 10px;
}
.blocked-back {
  display: block;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  padding: 8px;
}

.milestone-card {
  position: relative;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.limited-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--amber);
  color: #000;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
}

.milestone-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 8px 0;
  margin: 4px 0;
}
.milestone-status.live     { color: var(--green); }
.milestone-status.sold-out { color: var(--red); }
.milestone-status.not-live { color: var(--muted); }

.milestone-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 6px 0 10px;
}
.milestone-progress-fill {
  height: 100%;
  background: var(--amber);
  transition: width 0.4s ease;
}

.milestone-loading {
  padding: 24px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 13px;
}

.info-cell {
  background: var(--border);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  padding: 15px;
  border-radius: 10px;
  text-decoration: none;
  gap: 10px;
}

.top-tab{
  display: flex;
  flex-direction: column;
  margin: 0 13px;
  padding: 10px;
  background: var(--lightblue);
  border-radius: 10px;
}

.miner-name {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  gap: 10px;
}

.miner-name img {
  height: 45px;
  width: 45px;
}

.miner-name span {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 20px;
  color: var(--white);
  font-weight: 600;
}

.specs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
} 

.top-tab-panel {
  background: var(--lightblue);
  border-radius: 10px;
  padding: 0 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 10px;
  margin: 0 12px;
}