    :root{
      --itza-blue:#0c7ffb;
      --itza-gold:#d4af37;
      --itza-black:#0e0e0e;
      --muted:#f4f6f8;
      --card:#ffffff;
      --border:#e6e6e6;
      --ok:#18a957;
      --warn:#f0a202;
      --bad:#e5534b;
      --shadow:0 10px 30px rgba(0,0,0,.08);
      --radius:16px;
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{margin:0;background:#fff;font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;color:#222}

    /* ===== Header ===== */
    .header{
      position:relative;
      background:#fff;
      padding:24px 18px 28px;
      border-bottom:1px solid var(--border);
      overflow:hidden;
    }
    .header .stripe{
      position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);
      height:50%;
      background:var(--itza-blue);
      z-index:0;
    }
    .header-inner{position:relative;z-index:1;
        display:flex;align-items:center;gap:16px}
    .logo{
       display:flex;align-items:center; 
        justify-content:center;width:78px;
        height:78px;
        
          flex: 0 0 78px; 
          
        /* background:linear-gradient(180deg,#fff,rgba(255,255,255,.6));
        box-shadow:var(--shadow) */
      }
    /* Golden triangle placeholder */
    .logo svg{display:block}

    
    .validator{
        flex: 1;              /* TAKE ALL REMAINING SPACE */
      text-align:center;color:#fff;font-weight:800;letter-spacing:.06em;
      text-shadow:0 2px 10px rgba(0,0,0,.25);
      padding:4px 10px;border-radius:10px
    }
    .validator small{display:block;font-weight:600;opacity:.9}

    .header-right{margin-left:auto;display:flex;
        flex: 0 0 auto;       /* shrink to content */
      align-items:center;gap:10px; }
    .pill{background:rgba(255,255,255,.9);color:#000;padding:6px 10px;border-radius:999px;font-size:12px;border:1px solid rgba(0,0,0,.08)}

    /* ===== Egyptian-ish Section Headers ===== */
    .section{margin:24px auto;max-width:1200px;padding:0 16px}
    .collapsible{width:100%;background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
    .collapsible summary{
      list-style:none;cursor:pointer;padding:18px 18px;position:relative;
      text-transform:uppercase;letter-spacing:.12em;font-weight:900;color:var(--itza-black);
      display:flex;align-items:center;gap:12px
    }
    .collapsible summary::-webkit-details-marker{display:none}

    /* Decorative Egyptian border motif */
    .collapsible summary:before, .collapsible summary:after{
      content:"";position:absolute;left:0;right:0;height:6px;
      background:repeating-linear-gradient(90deg,var(--itza-gold) 0 16px,transparent 16px 20px);
      opacity:.35;transition:opacity .2s ease
    }
    .collapsible summary:before{top:0}
    .collapsible summary:after{bottom:0}
    .collapsible[open] summary:after{opacity:.6}
    .collapsible summary .caret{margin-left:auto;transition:transform .25s ease}
    .collapsible[open] summary .caret{transform:rotate(90deg)}
    .collapsible summary:hover{background:linear-gradient(0deg,rgba(12,127,251,.06),transparent)}

    .content{padding:16px 16px 20px;background:#fff}

    /* ===== Cards / Panels ===== */
    .grid{display:grid;gap:14px}
    @media (min-width:720px){.grid{grid-template-columns:repeat(2,1fr)}}
    @media (min-width:1024px){.grid{grid-template-columns:repeat(3,1fr)}}

    /* ===== Cards / Panels ===== */
    .gridhalf{display:grid;gap:14px}
    @media (min-width:720px){.gridhalf{grid-template-columns:repeat(2,1fr)}}
    @media (min-width:1024px){.gridhalf{grid-template-columns:repeat(2,1fr)}}

    .card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px;min-height:110px}
    .card h4{margin:0 0 2px 0;font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:#444}
    .card.wide {  grid-column: span 2;}
    .metric{display:flex;align-items:center;gap:10px}
    .metric .value{font-size:22px;font-weight:800}
    .muted{color:#667085;font-size:13px}
    .actions{margin-top:auto;display:flex;flex-wrap:wrap;gap:8px}
    button, .btn{cursor:pointer;border:1px solid var(--border);background:#fff;padding:8px 10px;border-radius:12px;font-weight:600}
    button.primary{background:var(--itza-blue);border-color:var(--itza-blue);color:white}
    button.ghost{background:#fff}
    .privatecluster   {
      padding-left: 20px;
      overflow:hidden;
      background:
       linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),
        url("/privatebg.webp") !important;
      background-size: contain !important;
      background-position: 5px center !important;
      background-repeat: no-repeat !important;
      color: #000000 !important;

    }


    .big-buttons{display:flex;gap:10px;flex-wrap:wrap}
    .big-buttons .btn-big{flex:1 1 260px;padding:16px;border-radius:16px;font-size:16px;font-weight:900;text-transform:uppercase;border:2px solid var(--itza-blue);background:#fff}

    /* Scroll list for leaders */
    .leader-list{max-height:180px;overflow:auto;border:1px dashed var(--border);border-radius:10px;padding:8px}
    .leader{display:flex;align-items:center;justify-content:space-between;padding:6px 8px;border-radius:8px}
    .leader.current{background:rgba(12,127,251,.08);border:1px solid rgba(12,127,251,.35)}

    /* App tiles */
    .apps{display:grid;gap:12px}
    @media (min-width:720px){.apps{grid-template-columns:repeat(2,1fr)}}
    @media (min-width:1024px){.apps{grid-template-columns:repeat(5,1fr)}}
    .app-tile{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid var(--border);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
    .app-tile img{width:100%;aspect-ratio:16/10;object-fit:cover}
    .app-tile .title{padding:10px;font-weight:700}

    .kv{display:grid;grid-template-columns:160px 1fr;gap:8px;font-size:14px}
    .kvdisk{display:grid;grid-template-columns:1fr;gap:8px;font-size:14px}

    .stakekv {
        display: grid;
        grid-template-columns: 1fr auto;  /* long address | short balance */
        column-gap: 20px;
        row-gap: 8px;

    }
    .stakebalance {
      text-align: right;
      white-space: nowrap;
    }
    .tag{display:inline-block;background:var(--muted);padding:2px 8px;border-radius:999px;font-size:12px;border:1px solid var(--border)}

    .row{display:flex;gap:8px;align-items:center}
    textarea, input[type="text"], input[type="number"], input[type="search"], input[type="password"], input[type="amount"]{
      width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:#fff
    }

    .helper{font-size:12px;color:#667085}
    .note{font-size:13px;color:#333;background:#fff6df;border:1px solid #f1e0b6;border-radius:10px;padding:10px}

    /* SVG icons size */
    .icon{width:28px;height:28px}


    /* style for a span to split a long string or truncate */
    .split {
      word-break: break-all;
      overflow-wrap: break-word;
    }

    /* Progress bars for disk usage */
.progress {
  position: relative;
  width: 100%;
  height: 10px;
  background: #f1f4f8;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress > .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--itza-blue), #66aefe);
  width: 0%;
  transition: width .4s ease;
}

/* Chart */
.chart-wrap { width: 100%; height: 240px; }
#bwDailyChart { width: 100%; height: 100%; }
.axis { stroke: #d9d9d9; stroke-width: 1; }
.tick { stroke: #e6e6e6; stroke-width: 1; }
.label { fill: #6b7280; font-size: 11px; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.bar-in  { fill: rgba(12,127,251,.65); }
.bar-out { fill: rgba(212,175,55,.65); } /* gold-tinted for 'out' */
.legend { display:flex; gap:12px; align-items:center; margin:2px 0 8px 0; }
.legend-item { display:flex; gap:6px; align-items:center; font-size:12px; color:#444; }
.swatch { display:inline-block; width:12px; height:12px; border-radius:3px; border:1px solid var(--border); }
.swatch-in { background: rgba(12,127,251,.65); }
.swatch-out { background: rgba(212,175,55,.65); }

/* Disk item row embellishments */
.disk-row { display:grid; grid-template-columns:80px 1fr; gap:8px; align-items:center; }
.disk-label { display:flex; gap:8px; align-items:center; }
.disk-badge { font-size:12px; padding:2px 6px; border:1px solid var(--border); border-radius:8px; background:#fff; color:#333; }
.disk-stats { display:flex; justify-content:space-between; font-size:12px; color:#667085; }

/* popup for wallet */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#popupContent {
  max-height: 60vh;
  overflow-y: auto;
}

.popup.hidden { display: none; }
.popup-inner {
  background: white;
  border-radius: 12px;
  padding: 20px;
  max-width: 70vw;  
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.popup-inner h3 {
  margin-top: 0;
}
.popup .actions {
  margin-top: 18px;
  text-align: right;
}




.walletContentBox {
    display: flex;
    flex-direction: column;
    gap: 8px;

    background: #ffffff;
    border-radius: 14px;

    padding: 16px 18px;

    /* subtle separation between items */
    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 6px 18px rgba(12,127,251,0.08);

    border-left: 4px solid #0c7ffb; /* Itza blue accent */

    transition: 
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

/* hover polish */
.walletContentBox:hover {
    transform: translateY(-1px);
    box-shadow:
        0 3px 6px rgba(0,0,0,0.06),
        0 10px 24px rgba(12,127,251,0.12);
}
.walletItemHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.walletItemTitle {
    font-size: 15px;
    font-weight: 600;
    color: #1b1f24;
}

/* pill-style type badge */
.walletItemBadge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;

    background: rgba(12,127,251,0.12);
    color: #0c7ffb;
    white-space: nowrap;
}

/* ---------- Body ---------- */

.walletItemBody {
    font-size: 13px;
    color: #2b2f36;
}

/* ---------- JSON ---------- */

.walletJson {
    margin: 0;
    padding: 10px 12px;

    background: #f4f6fb;
    border-radius: 8px;

    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.4;

    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.walletBalanceRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.walletStack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Label + value rows ---------- */

.walletRow {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.walletLabel {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    opacity: 0.65;
}

.walletValue {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    word-break: break-word;
}

/* ---------- Emphasis ---------- */

.walletValueStrong {
    font-size: 17px;
    font-weight: 700;
    color: #000;
}

.walletContext {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    line-height: 1.4;
}
.walletMono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.walletList {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.walletListItem {
    font-size: 13px;
    color: #000;
    word-break: break-word;
}
.walletLink {
    color: #0c7ffb;
    text-decoration: none;
    font-weight: 500;
}

.walletLink:hover {
    text-decoration: underline;
}

.walletMediaRow {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.walletMedia {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #f0f2f6;
    flex-shrink: 0;
}




/* Fullscreen overlay */
.load-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Visible state */
.load-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Center content */
.load-content {
  text-align: center;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Modern gradient spinner */
.spinner {
  width: 60px;
  height: 60px;
  border-radius: 50%;

  background: conic-gradient(
    from 0deg,
    #4f8cff,
    #7c4dff,
    #00d4ff,
    #4f8cff
  );

  mask: radial-gradient(farthest-side, transparent 60%, black 61%);
  -webkit-mask: radial-gradient(farthest-side, transparent 60%, black 61%);

  animation: spin 1s linear infinite;
  margin: 0 auto 18px auto;
}

/* Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Text */
.load-text {
  font-size: 16px;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* MAP */
.node-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

.node-label {
  font-size: 13px;
  font-weight: 500;
}


.tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tx-table th,
.tx-table td {
    border-bottom: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
}

.tx-table th {
    background: #f5f5f5;
}

.tx-table tr:hover {
    background: #fafafa;
}
.owners-table {
    width: 100%;
    border-collapse: collapse;
}

.owners-table th,
.owners-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #ddd;
}

.owners-table th {
    background: #f5f5f5;
}

/* Mobile tweak */
@media (max-width: 480px) {
  .spinner {
    width: 48px;
    height: 48px;
  }
  .load-text {
    font-size: 14px;
  }
}

