/* NeuroLink terminal theme */
:root {
  --bg: #0b0d0a;
  --panel: #10130f;
  --ink: #d8e0d0;
  --dim: #6f7a68;
  --amber: #ffb028;
  --green: #3cff78;
  --red: #ff5252;
  --line: #23281f;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  background-image: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.012) 2px 4px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================================================== */
/*  GLOBAL HEADER & UNIFORM NAVIGATION WITH HAMBURGER MENU                    */
/* ========================================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #090c08;
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 15px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.brand .dim { color: var(--dim); font-weight: 400; }
.brand:hover { text-shadow: 0 0 10px rgba(60, 255, 120, 0.4); }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-menu {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 2px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--green);
  background: rgba(60, 255, 120, 0.08);
}

.header-btn {
  white-space: nowrap;
}

/* Hamburger button (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: #11150f;
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: 3px;
  transition: border-color 0.15s, background 0.15s;
}
.nav-toggle:hover, .nav-toggle.active {
  border-color: var(--green);
  background: rgba(60, 255, 120, 0.1);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--green);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Nav Overlay / Dropdown */
@media (max-width: 768px) {
  header {
    padding: 10px 14px;
  }
  .header-right {
    gap: 8px;
  }
  .nav-toggle {
    display: flex;
  }
  .header-btn {
    font-size: 11px;
    padding: 6px 10px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    background: #0d110b;
    border: 1px solid var(--line);
    border-top: 2px solid var(--green);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 4px;
    display: none;
    z-index: 1001;
  }
  .nav-menu.open {
    display: flex;
    animation: menu-slide-down 0.2s ease-out forwards;
  }
  @keyframes menu-slide-down {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .nav-link {
    font-size: 14px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
  }
  .nav-link::before {
    content: "› ";
    color: var(--green);
    margin-right: 8px;
    font-size: 16px;
    font-weight: 700;
  }
  .nav-link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .brand .dim {
    display: none;
  }
}

/* ========================================================================== */
/*  CORE LAYOUT & COMPONENTS                                                  */
/* ========================================================================== */

main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin: 12px 0 28px;
}
.hero-content {
  flex: 1 1 55%;
  min-width: 0;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 12px 0 12px;
  text-shadow: 0 0 22px rgba(60, 255, 120, 0.18);
}
.hero .specimen {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
}
.hero .specimen img {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hero .specimen {
    align-self: center;
    margin-top: 10px;
  }
}
.lede { max-width: 60ch; color: var(--ink); font-size: 15px; }
.lede b { color: var(--amber); font-weight: 600; }

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}

.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  background: var(--green);
  color: #06210f;
  border: 1px solid var(--green);
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn:hover:not(:disabled) {
  box-shadow: 0 0 16px rgba(60, 255, 120, 0.35);
}
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover:not(:disabled) { background: rgba(60, 255, 120, 0.08); }
.btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn.danger:hover:not(:disabled) { background: rgba(255, 82, 82, 0.08); }
.btn.small { padding: 6px 12px; font-size: 12px; }

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px 22px;
  margin: 22px 0;
  position: relative;
}
.panel h2 {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin: 2px 0 12px;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 20px;
  margin: 14px 0;
}
.grid .k {
  display: block;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.grid .v {
  display: block;
  color: var(--amber);
  font-size: 18px;
  font-weight: 600;
  margin-top: 2px;
  word-break: break-word;
}

.note { color: var(--dim); font-size: 13px; max-width: 74ch; line-height: 1.55; }
.note b { color: var(--ink); }

.specimen { margin: 26px 0 6px; }
.specimen img {
  width: min(420px, 100%);
  image-rendering: pixelated;
  border: 1px solid var(--line);
  display: block;
  background: #000;
}
.specimen figcaption { color: var(--dim); font-size: 12px; margin-top: 6px; letter-spacing: 0.1em; }

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  background: #070906;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; background: #0a0d08; font-size: 11px; }
td { color: var(--ink); }
td:nth-child(2) { color: var(--amber); }

.rules { margin: 0; padding-left: 20px; }
.rules li { margin: 6px 0; color: var(--ink); }

.log {
  background: #070906;
  border: 1px solid var(--line);
  padding: 12px 14px;
  min-height: 90px;
  max-height: 260px;
  overflow: auto;
  font-size: 12px;
  color: #9fd8a8;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.45;
}

.nonce {
  flex: 1;
  min-width: 240px;
  background: #070906;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  padding: 10px 12px;
  font-size: 13px;
}
.nonce:focus { outline: none; border-color: var(--amber); }

/* Guide & documentation styling */
.guide h3 {
  font-size: 14px;
  color: var(--amber);
  margin: 22px 0 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.guide h3:first-of-type { margin-top: 8px; }
.guide p { color: var(--ink); font-size: 13px; line-height: 1.6; margin: 8px 0; }
.guide code {
  background: #070906;
  border: 1px solid var(--line);
  color: var(--green);
  padding: 2px 6px;
  font-size: 12px;
  font-family: var(--mono);
}
.guide pre {
  background: #060805;
  border: 1px solid var(--line);
  padding: 12px 14px;
  overflow-x: auto;
  color: var(--green);
  font-size: 12px;
  line-height: 1.45;
}
.guide-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.guide-table th, .guide-table td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.guide-table th { background: #0a0d08; color: var(--dim); text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; }

.guide-step { margin: 14px 0; padding-left: 14px; border-left: 2px solid var(--amber); }
.guide-step-title { color: var(--amber); font-weight: 600; font-size: 13px; margin-bottom: 4px; }
details.guide-acc { border: 1px solid var(--line); background: #0c0f0a; padding: 10px 14px; margin: 12px 0; }
details.guide-acc summary { cursor: pointer; color: var(--ink); font-weight: 600; letter-spacing: 0.05em; outline: none; }
details.guide-acc summary:hover { color: var(--amber); }
details.guide-acc[open] summary { color: var(--amber); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }

/* Mining Rig Terminal Styling */
.tier-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}
.tier-0 { color: #3cffb0; border-color: rgba(60, 255, 176, 0.35); background: rgba(60, 255, 176, 0.06); }
.tier-1 { color: #3cff78; border-color: rgba(60, 255, 120, 0.35); background: rgba(60, 255, 120, 0.06); }
.tier-2 { color: #c480ff; border-color: rgba(196, 128, 255, 0.35); background: rgba(196, 128, 255, 0.06); }
.tier-3 { color: #ffb028; border-color: rgba(255, 176, 40, 0.35); background: rgba(255, 176, 40, 0.06); }
.tier-4 { color: #ff4769; border-color: rgba(255, 71, 105, 0.35); background: rgba(255, 71, 105, 0.06); }
.tier-5 {
  color: #fff;
  background: linear-gradient(135deg, #ff0077, #7700ff, #00ffff);
  border: 1px solid #ff77bb;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 0, 128, 0.4);
}

.badge-overclock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 80, 0, 0.15);
  border: 1px solid #ff5000;
  color: #ff7733;
  font-size: 10px;
  padding: 2px 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
  animation: pulse-oc 1.5s ease-in-out infinite;
}
@keyframes pulse-oc {
  0%, 100% { box-shadow: 0 0 4px rgba(255, 80, 0, 0.3); }
  50% { box-shadow: 0 0 14px rgba(255, 100, 0, 0.7); }
}

.tab-group {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  overflow-x: auto;
}
.tab-btn {
  background: transparent;
  color: var(--dim);
  border: none;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--green); border-bottom: 2px solid var(--green); }

.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.nft-card {
  background: #090c08;
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
}
.nft-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.nft-card.selected { border-color: var(--green); box-shadow: 0 0 12px rgba(60, 255, 120, 0.25); }
.nft-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  image-rendering: pixelated;
  background: #000;
}
.nft-card .card-head { display: flex; justify-content: space-between; align-items: center; }
.nft-card .token-title { font-weight: 700; color: var(--ink); font-size: 13px; }
.nft-card .stat-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
.nft-card .stat-row .val { color: var(--amber); font-weight: 600; }
.nft-card .card-actions { display: flex; gap: 6px; margin-top: 4px; }
.nft-card .card-actions .btn { flex: 1; text-align: center; padding: 6px 8px; font-size: 11px; }

.empty-notice {
  text-align: center;
  padding: 36px 16px;
  color: var(--dim);
  border: 1px dashed var(--line);
  margin: 16px 0;
  font-size: 13px;
}

select.rig-select {
  background: #070906;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  padding: 10px 12px;
  font-size: 13px;
  width: 100%;
  max-width: 360px;
}
select.rig-select:focus { outline: none; border-color: var(--amber); }

/* Mining Flow Cards */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.flow-step-card {
  background: #090c08;
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color 0.15s;
}
.flow-step-card:hover { border-color: var(--amber); }
.flow-step-num {
  font-size: 11px;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.flow-step-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.flow-step-desc { font-size: 12px; color: var(--dim); line-height: 1.5; }
.flow-step-desc b { color: var(--green); }

/* ========================================================================== */
/*  MARKETPLACE TERMINAL STYLING                                              */
/* ========================================================================== */

.market-stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

/* Label above value, fixed height, value on one line. Without this the two
   spans sit side by side and long values (e.g. "0.0014 BNB ($1.00)") wrap
   unevenly, so the row heights differ and the bar looks ragged. */
.market-stat-bar > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.015);
}
.market-stat-bar .k {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-stat-bar .v {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  min-height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 520px) {
  .market-stat-bar {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 8px;
  }
  .market-stat-bar .v {
    font-size: 12px;
  }
}

.price-input-group {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
  width: 100%;
}
.price-input {
  flex: 1;
  background: #060805;
  border: 1px solid var(--line);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13px;
  padding: 6px 8px;
  min-width: 0;
}
.price-input:focus {
  outline: none;
  border-color: var(--amber);
}
.price-unit {
  font-size: 11px;
  color: var(--dim);
  font-weight: 700;
  padding: 0 4px;
}

.floor-warning {
  padding: 8px 12px;
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid var(--red);
  color: #ff8888;
  font-size: 12px;
  margin: 8px 0;
  line-height: 1.4;
}
.floor-safe {
  padding: 6px 10px;
  background: rgba(60, 255, 120, 0.08);
  border: 1px solid rgba(60, 255, 120, 0.3);
  color: var(--green);
  font-size: 11px;
  margin: 6px 0;
}

.market-card {
  background: #090c08;
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
}
.market-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.market-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  image-rendering: pixelated;
  background: #000;
}
.market-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.market-card .token-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}
.market-card .card-price-tag {
  background: rgba(255, 176, 40, 0.1);
  border: 1px solid rgba(255, 176, 40, 0.3);
  padding: 6px 8px;
  border-radius: 2px;
  text-align: center;
  margin: 4px 0;
}
.market-card .card-price-bnb {
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
}
.market-card .card-price-usd {
  font-size: 11px;
  color: var(--dim);
}
.market-card .seller-line {
  font-size: 11px;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
}
.market-card .seller-addr {
  color: var(--ink);
  text-decoration: none;
}
.market-card .seller-addr:hover {
  color: var(--green);
  text-decoration: underline;
}
.market-card .card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.market-card .card-actions .btn {
  width: 100%;
  text-align: center;
  padding: 8px;
  font-size: 12px;
}

.market-subtabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.market-subtab {
  background: transparent;
  color: var(--dim);
  border: none;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.market-subtab:hover { color: var(--ink); }
.market-subtab.active { color: var(--green); border-bottom: 2px solid var(--green); }

/* ========================================================================== */
/*  WALLETCONNECT & WALLET LOGIN POPUP MODAL                                  */
/* ========================================================================== */

.wallet-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 4, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.wallet-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wallet-modal {
  background: #0d110b;
  border: 1px solid var(--green);
  box-shadow: 0 0 35px rgba(60, 255, 120, 0.22);
  width: 100%;
  max-width: 440px;
  padding: 22px 20px;
  position: relative;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.wallet-modal-overlay.active .wallet-modal {
  transform: translateY(0) scale(1);
}

.wallet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.wallet-modal-title {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wallet-modal-close {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 16px;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.wallet-modal-close:hover {
  color: var(--red);
  border-color: var(--red);
}

.wallet-modal-desc {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 16px;
  line-height: 1.5;
}

.wallet-opt-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #090c08;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 10px;
  text-align: left;
  font-family: var(--mono);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.wallet-opt-btn:hover {
  border-color: var(--green);
  background: rgba(60, 255, 120, 0.06);
  transform: translateY(-1px);
}
.wallet-opt-btn.primary {
  border-color: rgba(60, 255, 120, 0.4);
  background: rgba(60, 255, 120, 0.04);
}
.wallet-opt-icon {
  font-size: 22px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.wallet-opt-info {
  flex: 1;
}
.wallet-opt-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wallet-opt-sub {
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}
.wallet-opt-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(60, 255, 120, 0.15);
  color: var(--green);
  border: 1px solid rgba(60, 255, 120, 0.3);
}

.wallet-divider {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin: 14px 0 10px;
  position: relative;
}
.wallet-divider::before, .wallet-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 25%;
  height: 1px;
  background: var(--line);
}
.wallet-divider::before { left: 0; }
.wallet-divider::after { right: 0; }

.wallet-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.wallet-app-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: #070906;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  border-radius: 2px;
  transition: border-color 0.15s, background 0.15s;
}
.wallet-app-link:hover {
  border-color: var(--amber);
  background: rgba(255, 176, 40, 0.08);
  color: var(--amber);
}
.wallet-app-icon {
  font-size: 16px;
}

.wallet-status-pop {
  font-size: 12px;
  padding: 8px 12px;
  background: rgba(60, 255, 120, 0.08);
  border: 1px solid rgba(60, 255, 120, 0.3);
  color: var(--green);
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-alert-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.wallet-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: var(--green);
  color: #000 !important;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  transition: opacity 0.15s, transform 0.1s;
}
.wallet-action-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.wallet-action-btn.secondary {
  background: #151d14;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.wallet-action-btn.secondary:hover {
  border-color: var(--amber);
  color: var(--amber) !important;
}

/* ========================================================================== */
/*  GLOBAL UNIFORM FOOTER                                                     */
/* ========================================================================== */

footer {
  border-top: 1px solid var(--line);
  padding: 24px 22px;
  color: var(--dim);
  font-size: 13px;
  background: #080a07;
  margin-top: auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.footer-brand .dim { color: var(--dim); font-weight: 400; }
.footer-desc {
  color: var(--dim);
  font-size: 12px;
}
.foot-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.foot-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}
.foot-links a:hover {
  color: var(--amber);
  text-decoration: underline;
}
.footer-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#contractLine { color: var(--amber); font-family: var(--mono); }
.blink { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ========================================================================== */
/*  AI AGENT & LLM COMMAND DIRECTORY (HOME PAGE)                              */
/* ========================================================================== */

.prompt-section-desc {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0 16px;
}
.prompt-section-desc code {
  background: #060805;
  border: 1px solid var(--line);
  color: var(--green);
  padding: 1px 6px;
  font-size: 12px;
}

.prompt-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 20px;
  overflow-x: auto;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.prompt-tab {
  background: #080b07;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border-radius: 2px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.prompt-tab:hover {
  color: var(--ink);
  border-color: var(--amber);
  background: rgba(255, 176, 40, 0.05);
}
.prompt-tab.active {
  color: #000;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(60, 255, 120, 0.35);
}

.prompt-pane {
  display: none;
  animation: promptFadeIn 0.2s ease-out;
}
.prompt-pane.active {
  display: block;
}
@keyframes promptFadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.prompt-card {
  background: #090c08;
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin-bottom: 16px;
  position: relative;
}
.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.prompt-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 8px;
}
.prompt-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid rgba(60, 255, 120, 0.3);
  background: rgba(60, 255, 120, 0.08);
  color: var(--green);
}
.prompt-badge.paid {
  border-color: rgba(255, 176, 40, 0.3);
  background: rgba(255, 176, 40, 0.08);
  color: var(--amber);
}
.prompt-badge.mining {
  border-color: rgba(196, 128, 255, 0.3);
  background: rgba(196, 128, 255, 0.08);
  color: #c480ff;
}
.prompt-badge.market {
  border-color: rgba(60, 210, 255, 0.3);
  background: rgba(60, 210, 255, 0.08);
  color: #3cd2ff;
}

.prompt-block {
  margin: 14px 0;
}
.prompt-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.prompt-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prompt-label .sub {
  color: var(--dim);
  font-weight: 400;
  text-transform: none;
  font-size: 11px;
}

.prompt-copy-btn {
  background: #0f150d;
  border: 1px solid var(--line);
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.prompt-copy-btn:hover {
  border-color: var(--green);
  background: rgba(60, 255, 120, 0.1);
  color: #fff;
}
.prompt-copy-btn.copied {
  background: var(--green);
  border-color: var(--green);
  color: #000;
  font-weight: 700;
}

.prompt-pre {
  background: #050704;
  border: 1px solid var(--line);
  padding: 12px 14px;
  overflow-x: auto;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  border-radius: 2px;
  white-space: pre-wrap;
  word-break: break-all;
}
.prompt-pre.prompt-text {
  color: #d8e0d0;
  background: #060905;
  border-color: #2b3325;
  line-height: 1.6;
}

.prompt-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 14px;
  background: #060805;
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 11px;
}
.prompt-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prompt-spec-k {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.prompt-spec-v {
  color: var(--ink);
  font-weight: 600;
  word-break: break-all;
}
.prompt-spec-v code {
  color: var(--amber);
}

.prompt-docs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
}
.prompt-docs-link {
  color: var(--amber);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.prompt-docs-link:hover {
  color: var(--green);
  text-decoration: underline;
}

/* ========================================================================== */
/*  MOBILE RESPONSIVE BREAKPOINTS (Handphones & Tablets)                      */
/* ========================================================================== */

@media (max-width: 600px) {
  header {
    padding: 12px 16px;
  }
  main {
    padding: 16px 14px 40px;
  }
  .panel {
    padding: 16px 14px;
    margin: 16px 0;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
  }
  .grid .v {
    font-size: 16px;
  }
  .row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .row .btn, .row input, .row select {
    width: 100%;
    text-align: center;
  }
  .flow-steps {
    grid-template-columns: 1fr;
  }
  .nft-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
  .nft-card {
    padding: 8px;
  }
  .nft-card .token-title {
    font-size: 12px;
  }
  .nft-card .stat-row {
    font-size: 11px;
  }
  .nft-card .card-actions {
    flex-direction: column;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
