/* ============================================================
   Network mode -- tab bar + DLC promo modal styles

   lisätty stylesiin, jos ei toimi ni tee oma network.css ja indexoi
   ============================================================ */

/* ---- Tab bar ---- */
.network-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 13px;
  /* Allow horizontal scroll on tight phones if 3 tabs don't fit */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.network-tabs::-webkit-scrollbar { display: none; }

.network-tab {
  background: transparent;
  border: none;
  color: var(--fg-dim);
  padding: 10px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;       /* Aligns the underline with bar border */
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  position: relative;
}
.network-tab:hover {
  color: var(--cyan, #4DE2FF);
}
.network-tab.active {
  color: var(--cyan, #4DE2FF);
  border-bottom-color: var(--cyan, #4DE2FF);
}
.network-tab.locked {
  color: var(--fg-faint, #666);
}
.network-tab.locked:hover {
  color: var(--amber, #FFA500);
}
.network-lock {
  font-size: 0.85em;
  margin-left: 2px;
  vertical-align: middle;
  opacity: 0.7;
}

/* ---- Sub-content container ---- */
.network-subcontent {
  /* No explicit styling needed; sub-modules (scanner, nullcoin, etc)
     render their own panel structures. This is just the mount point. */
}

/* ---- DLC promo modal ---- */
.nb-dlc-promo-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: nb-dlc-fade-in 0.2s ease-out;
}
@keyframes nb-dlc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nb-dlc-promo-modal {
  background: var(--bg, #08080c);
  border: 1px solid var(--cyan, #4DE2FF);
  max-width: 460px;
  width: 100%;
  padding: 24px 22px;
  font-family: var(--font-mono, 'Courier New', monospace);
  box-shadow: 0 0 36px rgba(77, 226, 255, 0.35);
}

.nb-dlc-promo-features {
  background: rgba(77, 226, 255, 0.04);
  border-left: 2px solid var(--cyan, #4DE2FF);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg, #e0e0e0);
  margin-bottom: 16px;
}
.nb-dlc-promo-features > div {
  margin: 2px 0;
}

.nb-dlc-promo-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 14px 0;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.nb-dlc-promo-amt {
  font-size: 20px;
  font-weight: bold;
  color: var(--amber, #FFA500);
  letter-spacing: 1px;
}

/* The .btn classes are reused from the rest of NULLBYTE -- this file
   just adds promo-specific tweaks. If .btn-primary doesn't exist in
   your project, fall back styling: */
.nb-dlc-promo-buy.btn-primary:not([class*="bg-"]) {
  background: var(--cyan, #4DE2FF);
  color: var(--bg, #08080c);
  border: 1px solid var(--cyan, #4DE2FF);
  font-weight: bold;
}

/* ---- Mobile tweaks ---- */
@media (max-width: 768px) {
  .network-tab {
    padding: 12px 10px;
    font-size: 13px;
  }
  .nb-dlc-promo-modal {
    padding: 18px 14px;
  }
  .nb-dlc-promo-features {
    font-size: 11px;
  }
}