/* ── SIDEBAR ── */
.sidebar {
  width: 250px; min-width: 250px;
  background: #0f4fa8;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  border-right: 1px solid rgba(255,255,255,0.12);
  z-index: 40;
}
.sidebar-logo {
  padding: 22px 18px 18px;
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 38px; height: 38px; background: #fff;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; color: #1565c8; flex-shrink: 0;
}
.logo-name { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }

.nav { padding: 14px 10px; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 10px; margin-bottom: 2px;
  cursor: pointer; text-decoration: none; color: rgba(255,255,255,0.72);
  font-size: 14px; font-weight: 500; transition: all 0.15s;
}
.nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.18); color: #fff; font-weight: 700; }
.nav-icon {
  width: 32px; height: 32px; background: rgba(255,255,255,0.1);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.nav-item.active .nav-icon { background: rgba(255,255,255,0.22); }
.nav-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 8px 12px; }

.sidebar-footer {
  padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; color: rgba(255,255,255,0.45); text-align: center; line-height: 1.9;
}
.sidebar-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.sidebar-footer a:hover { color: #fff; }

/* ── MAIN ── */
.main { margin-left: 250px; flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ── TOPBAR ── */
.topbar {
  background: #0f4fa8; border-bottom: 1px solid rgba(255,255,255,0.12);
  height: 50px; display: flex; align-items: center;
  padding: 0 36px; position: sticky; top: 0; z-index: 30; gap: 12px;
}
.topbar-logo {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  margin-right: auto;
}
.topbar-logo-mark {
  width: 30px; height: 30px; background: #fff; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #1565c8;
}
.topbar-logo-name { font-size: 16px; font-weight: 800; color: #fff; }

.topbar-center { display: flex; align-items: center; gap: 8px; margin-right: auto; }

.topbar-link {
  color: #fff; font-size: 13px; font-weight: 600; text-decoration: none;
  padding: 7px 15px; border: 1.5px solid rgba(255,255,255,0.35); border-radius: 18px;
  transition: all 0.15s; display: flex; align-items: center; gap: 5px;
  cursor: pointer; background: none; font-family: 'Inter', sans-serif;
}
.topbar-link:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn-create {
  background: #fff; color: #1565c8; border: none; border-radius: 18px;
  padding: 8px 20px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: 'Inter', sans-serif; transition: opacity 0.15s; white-space: nowrap;
}
.btn-create:hover { opacity: 0.88; }
.btn-wallet {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 18px; padding: 7px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.15s; white-space: nowrap;
}
.btn-wallet:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

/* ── TICKER ── */
.ticker {
  background: rgba(0,0,0,0.16); border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 7px 36px; display: flex; align-items: center; gap: 32px; font-size: 13px;
}
.ticker-label { color: rgba(255,255,255,0.6); }
.ticker-val { color: #fff; font-weight: 700; margin-left: 5px; }
.ticker-up { color: #69f0ae; font-weight: 700; margin-left: 4px; }
.ticker-dn { color: #ff6e6e; font-weight: 700; margin-left: 4px; }
.ticker-pill {
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 11px; font-weight: 700; padding: 2px 10px;
  border-radius: 18px; margin-left: 7px;
}


/* ── WORDMARK (replaces the logo image) ── */
.wm {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}
.sui, .tools {
  -webkit-background-clip: text;
          background-clip: text;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .sui, .tools { -webkit-text-fill-color: transparent; }
  /* "Sui"   — cyan #14e0fc to Sui blue #027dfc, sampled from the banner */
  .sui   { background-image: linear-gradient(180deg, #14e0fc 0%, #027dfc 100%); }
  /* "Tools" — white #f5f9fc to pale blue #c5ddfa */
  .tools { background-image: linear-gradient(180deg, #f5f9fc 0%, #c5ddfa 100%); }
}

/* inline mentions of the brand anywhere in body copy */
.brand { font-weight: 700; white-space: nowrap; }

/* shared logo mark, defined once via --logo-img */
.wm-logo {
  display: block; flex-shrink: 0;
  background-image: var(--logo-img);
  background-size: cover; background-position: center;
  border-radius: 8px;
}
.wm-lockup { display: flex; align-items: center; gap: 11px; }

/* sidebar lockup */
.wm-logo-side { width: 42px; height: 42px; }
.wm-side { font-size: 27px; }
.wm-sub {
  margin-top: 9px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.45;
  color: rgba(255,255,255,0.7);
}
/* topbar lockup */
.wm-logo-top { width: 30px; height: 30px; border-radius: 7px; }
.wm-top { font-size: 19px; }


/* ── WALLET MODAL ── */
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 999; align-items: center; justify-content: center; }
.modal-bg.open { display: flex; }
.modal { background: #0d4598; border: 1px solid rgba(255,255,255,0.22); border-radius: 18px; padding: 28px; width: 380px; max-width: 95vw; }
.modal h2 { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.modal p { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.w-list { display: flex; flex-direction: column; gap: 8px; }
.w-btn {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,0.18); border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 11px; padding: 13px 16px; color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif;
}
.w-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.55); }
.w-ico { width: 32px; height: 32px; background: rgba(255,255,255,0.14); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.modal-cancel { width: 100%; margin-top: 12px; background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 9px; color: rgba(255,255,255,0.55); font-size: 13px; padding: 11px; cursor: pointer; font-family: 'Inter', sans-serif; }
.modal-cancel:hover { color: #fff; }


/* ── VIDEO MODAL ── */
.vid-modal-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.vid-modal-bg.open { display: flex; }
.vid-modal { position: relative; width: 100%; max-width: 880px; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.6); }
.vid-modal-inner { position: relative; width: 100%; padding-top: 56.25%; }
.vid-modal-inner iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.vid-close {
  position: absolute; top: -13px; right: -13px; width: 34px; height: 34px;
  background: #fff; border: none; border-radius: 50%; font-size: 16px; font-weight: 800;
  color: #1565c8; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10;
}

/* ── guide pages topbar (.gbar) — distinct chrome system from the app sidebar ── */
  /* ── bar: identical to the main app (topbar 50px + ticker) ── */
  .gbar{position:sticky; top:0; z-index:50; background:#0f4fa8; color:#fff;}
  .gbar-inner{display:flex; align-items:stretch;}
  .gbar-menu{display:none; background:none; border:1.5px solid rgba(255,255,255,.35); color:#fff; border-radius:9px; width:38px; height:38px; font-size:16px; cursor:pointer; align-self:center; margin-left:14px;}
  .gbar-brand{display:flex; flex-direction:column; justify-content:center; align-items:flex-start; text-decoration:none; width:250px; box-sizing:border-box; padding:0 0 0 14px; flex-shrink:0; border-right:1px solid rgba(255,255,255,0.12);}
  .gbar-brand:hover{text-decoration:none;}
  /* exact copy of the app's brand lockup */
  .wm-logo{ display:block; flex-shrink:0; background-image:var(--logo-img); background-size:cover; background-position:center; border-radius:8px; }
  .wm-lockup{ display:flex; align-items:center; gap:11px; }
  .wm-logo-side{ width:42px; height:42px; }
  .wm{ display:inline-block; font-family:'Inter',sans-serif; font-weight:800; letter-spacing:-0.005em; line-height:1; white-space:nowrap; color:#fff; }
  .wm-side{ font-size:27px; }
  .sui, .tools{ -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
  .sui{ background-image:linear-gradient(180deg, #14e0fc 0%, #027dfc 100%); }
  .tools{ background-image:linear-gradient(180deg, #f5f9fc 0%, #c5ddfa 100%); }
  .wm-sub{ margin-top:7px; font-size:12px; font-weight:500; letter-spacing:0.02em; line-height:1.45; color:rgba(255,255,255,0.8); white-space:nowrap; }
  .gbar-main{flex:1; display:flex; flex-direction:column; min-width:0;}
  .gbar-row1{height:50px; display:flex; align-items:center; gap:12px; padding:0 20px;}
  .gbar-nav{display:flex; gap:12px;}
  .gbar-nav a{display:flex; align-items:center; gap:5px; color:#fff; font-size:13px; font-weight:600; text-decoration:none; padding:6px 13px; border:1.5px solid rgba(255,255,255,.35); border-radius:16px; transition:all .15s; font-family:'Inter',sans-serif;}
  .gbar-nav a:hover{background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.7); text-decoration:none;}
  .gbar-nav a.active{background:#fff; color:#0a3f8f; border-color:#fff;}
  .gbar-sp{flex:1;}
  .gbar-cta{background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.45); border-radius:16px; padding:6px 13px; font-size:13px; font-weight:600; white-space:nowrap; text-decoration:none; font-family:'Inter',sans-serif; transition:all .15s;}
  .gbar-cta:hover{background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.8); text-decoration:none;}
  .gbar-ticker{display:flex; align-items:center; gap:40px; font-size:16px; padding:1px 20px 9px;}
  .gbar-ticker img{width:20px; height:20px; border-radius:50%; display:block; flex-shrink:0;}
  .gbar-ticker .ticker-label{color:rgba(255,255,255,0.82); font-weight:600;}
  .gbar-ticker .ticker-val{color:#fff; font-weight:700; margin-left:7px;}
  .gbar-ticker .ticker-up{color:#69f0ae; font-weight:700; margin-left:4px;}
  .gbar-ticker .ticker-dn{color:#ff6e6e; font-weight:700; margin-left:4px;}
  .gbar-ticker .ticker-pill{background:rgba(255,255,255,0.2); border:1px solid rgba(255,255,255,0.42); color:#fff; font-size:14px; font-weight:700; padding:3px 12px; border-radius:18px; margin-left:9px;}

