/* GCRIG user shell — dark sidebar, light Blocklender dashboard */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bl-side: #070b16;
  --bl-blue: #1d7bff;
  --bl-blue-hot: #2f8bff;
  --bl-canvas: #eef3fb;
  --bl-ink: #0f172a;
  --bl-muted: #8b97ab;
  --bl-green: #22c55e;
  --bl-red: #ef4444;
}

html.bl-app,
body.bl-app {
  margin: 0;
  min-height: 100vh;
  background: var(--bl-canvas) !important;
  color: var(--bl-ink) !important;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

#preloader { display: none !important; }

.bl-app-wrap {
  display: flex;
  min-height: 100vh;
  background: var(--bl-canvas);
}

.bl-sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--bl-side);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  z-index: 40;
  padding: 18px 14px 16px;
}

.bl-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 8px 18px;
  text-decoration: none !important;
}

.bl-brand img { width: 38px; height: 38px; object-fit: contain; }

.bl-side-wallet {
  background: #111827;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin-bottom: 10px;
}

.bl-side-wallet-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9aa6b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bl-side-wallet-lbl .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.bl-side-wallet-val {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.bl-side-wallet-asset { color: #8b97ab; font-size: 11px; }
.bl-side-wallet-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.bl-side-wallet-swap {
  width: 21px; height: 21px; flex: 0 0 21px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.1); border-radius: 50%;
  background: #25334a; color: #b9d6ff; font-size: 9px; cursor: pointer;
  transition: color .16s ease, background .16s ease;
}
.bl-side-wallet-swap:hover:not(:disabled) { background: var(--bl-blue); color: #fff; }
.bl-side-wallet-swap:disabled { cursor: wait; opacity: .55; }
.bl-side-wallet-swap.is-loading i { animation: bl-spin 1s linear infinite; }
.bl-ccy {
  display: flex;
  background: #0b1220;
  border-radius: 999px;
  padding: 4px;
  margin: 0 0 14px;
}

.bl-ccy span {
  flex: 1;
  text-align: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #8b97ab;
}

.bl-ccy span.on { background: var(--bl-blue); color: #fff; }

.bl-nav { list-style: none; margin: 0; padding: 0; flex: 1; }
.bl-nav li { margin: 2px 0; }

.bl-nav a,
.bl-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #c5d0e0 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.bl-nav a i,
.bl-logout i { width: 18px; text-align: center; }

.bl-nav li.active a { color: #fff !important; background: transparent; }
.bl-nav li.active a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--bl-blue);
}
.bl-nav a:hover { color: #fff !important; }
.bl-side-bottom { padding-top: 8px; }
.bl-logout { color: #f87171 !important; padding-left: 12px; }

.bl-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bl-canvas);
}

.bl-topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 28px 0;
  background: transparent;
}

.bl-topbar h1 { margin: 0; font-size: 22px; font-weight: 800; color: var(--bl-ink); }
.bl-topbar-right { margin-left: auto; }
.bl-mobile-brand { display: none; }
.bl-bell { color: #64748b; font-size: 18px; text-decoration: none !important; }
.bl-menu {
  display: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--bl-ink);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
}
.bl-content { padding: 8px 32px 64px; max-width: 1180px; width: 100%; }
.bl-overlay { display: none; }

.bl-greet { margin: 8px 0 18px; }
.bl-greet h1 { margin: 0; font-size: 30px; font-weight: 800; color: var(--bl-ink); letter-spacing: -.02em; }
.bl-greet p { margin: 6px 0 0; color: var(--bl-muted); font-size: 14px; }

.bl-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-bottom: 16px; }

.bl-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #152036 0%, #0d1526 100%);
  border-radius: 22px;
  padding: 22px 22px 16px;
  color: #fff;
  min-height: 360px;
}
.bl-hero::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 24px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(45, 110, 200, .18) 0%, transparent 70%);
  pointer-events: none;
}
.bl-hero-head { display: flex; justify-content: space-between; align-items: center; color: #9eb0c7; font-size: 13px; font-weight: 500; }
.bl-apr-pill { background: #1d4ed8; color: #dbeafe; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.bl-hero-amount { font-size: 36px; font-weight: 800; line-height: 1.1; margin: 0 0 2px; letter-spacing: -.03em; }
.bl-hero-asset { color: #8ea0b8; font-size: 13px; }
.bl-balance-line { display: block; margin-top: 10px; }
.bl-balance-value { min-width: 0; }
.bl-balance-meta { display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.bl-balance-swap {
  width: 24px; height: 24px; flex: 0 0 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.13); border-radius: 50%;
  background: #25334a; color: #dbeafe; cursor: pointer;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}
.bl-balance-swap:hover:not(:disabled) { background: var(--bl-blue); transform: rotate(180deg); }
.bl-balance-swap:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.bl-balance-swap:disabled { cursor: wait; opacity: .55; }
.bl-balance-swap.is-loading i { animation: bl-spin 1s linear infinite; }
@keyframes bl-spin { to { transform: rotate(360deg); } }
.bl-xrp-rate { min-height: 17px; color: #7f91aa; font-size: 11px; margin: 5px 0 12px; }
.bl-profit-wallet {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 13px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px;
  background: rgba(255,255,255,.045);
}
.bl-profit-wallet-copy span, .bl-profit-wallet-copy strong { display: block; }
.bl-profit-wallet-copy span { margin-bottom: 3px; color: #91a0b6; font-size: 10px; font-weight: 600; }
.bl-profit-wallet-copy strong { color: #fff; font-size: 15px; font-weight: 750; }
.bl-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.bl-btn-lend,
.bl-btn-withdraw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
}
.bl-btn-lend { background: var(--bl-blue-hot); color: #fff !important; box-shadow: 0 8px 22px rgba(47, 139, 255, .45); }
.bl-btn-withdraw { background: #2a3548; color: #fff !important; }
.bl-hero-rows { position: relative; z-index: 1; }
.bl-hero-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; color: #9eb0c7; font-size: 13px; }
.bl-hero-row strong { font-size: 13px; font-weight: 700; color: #fff; }
.bl-hero-row strong.up { color: #4ade80; }
.bl-hero-proj { margin-top: 6px; }
.bl-hero-proj span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7b8ba3; }
.bl-proj-bar { height: 6px; background: #1b283c; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.bl-proj-fill { height: 100%; background: linear-gradient(90deg, #1d7bff, #60a5fa); border-radius: 999px; }
.bl-proj-labels { display: flex; justify-content: space-between; color: #7b8ba3; font-size: 11px; margin-top: 6px; }

.bl-sec { background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, .04); }
.bl-sec-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--bl-ink); margin-bottom: 14px; }
.bl-sec-ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bl-blue); background: #eef4ff;
}
.bl-sec-row {
  display: flex; justify-content: space-between; align-items: center;
  background: #f7f9fc; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.bl-sec-left { display: flex; align-items: center; gap: 10px; color: #334155; font-weight: 600; font-size: 14px; }
.bl-sec-left i { color: #64748b; width: 16px; }
.bl-badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.bl-badge.ok { color: #16a34a; background: #ecfdf3; }
.bl-badge.no { color: #ef4444; background: #fef2f2; }
.bl-sec-warn { background: #fff7ed; border: 1px solid #ffedd5; border-radius: 14px; padding: 14px; margin: 12px 0 14px; }
.bl-sec-warn-title { color: #c2410c; font-weight: 700; font-size: 14px; }
.bl-sec-warn p { margin: 4px 0 12px; color: #9a6b3d; font-size: 13px; }
.bl-btn-2fa {
  display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 10px;
  background: linear-gradient(90deg, #fb923c, #f59e0b); color: #fff !important; font-weight: 700; text-decoration: none !important;
}
.bl-sec-link { color: var(--bl-blue) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; }

.bl-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bl-thumb { background: #fff; border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 10px 30px rgba(15, 23, 42, .04); }
.bl-thumb .lbl { color: var(--bl-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bl-thumb .num { color: var(--bl-ink); font-size: 26px; font-weight: 800; margin-top: 10px; letter-spacing: -.02em; }
.bl-thumb .sub { color: var(--bl-muted); font-size: 12px; margin-top: 4px; }
.bl-thumb .sub.ok { color: var(--bl-green); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.bl-thumb .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bl-green); }

.rock-mobile-screen-show { display: none !important; }

@media (max-width: 1100px) {
  .bl-split, .bl-thumbs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .bl-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform .2s ease; }
  body.bl-sidebar-open .bl-sidebar { transform: translateX(0); }
  .bl-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 60px;
    padding: 10px 16px;
    background: #0c1121;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 2px 12px rgba(3, 7, 18, .22);
    backdrop-filter: blur(12px);
  }
  .bl-topbar h1 { display: none; }
  .bl-mobile-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    overflow: hidden;
  }
  .bl-mobile-brand img { width: 32px; height: 32px; display: block; object-fit: contain; }
  .bl-topbar-right { margin-left: auto; }
  .bl-menu,
  .bl-bell {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    color: #fff;
  }
  .bl-menu { display: inline-flex; align-items: center; justify-content: center; }
  .bl-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; opacity: 0; pointer-events: none; }
  body.bl-sidebar-open .bl-overlay { opacity: 1; pointer-events: auto; }
  .bl-split { grid-template-columns: 1fr; }
  .bl-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-content { padding: 8px 16px 72px; }
  .bl-greet h1 { font-size: 24px; }
  .bl-hero-amount { font-size: 32px; }
}

@media (max-width: 480px) {
  .bl-content { padding: 8px 12px 64px; }
  .bl-hero { min-height: 0; padding: 18px 16px 15px; border-radius: 18px; }
  .bl-hero-amount { font-size: 28px; }
  .bl-balance-swap { width: 24px; height: 24px; flex-basis: 24px; font-size: 10px; }
  .bl-thumbs { gap: 8px; }
  .bl-thumb { min-width: 0; border-radius: 14px; padding: 12px 11px; }
  .bl-thumb .lbl { font-size: 9px; letter-spacing: .06em; }
  .bl-thumb .num {
    font-size: clamp(16px, 5vw, 20px); line-height: 1.15; margin-top: 7px;
    overflow-wrap: anywhere;
  }
  .bl-thumb .sub { font-size: 10px; margin-top: 3px; }
  .bl-thumb .sub.ok { gap: 4px; }
  .bl-thumb .dot { width: 6px; height: 6px; flex: 0 0 6px; }
}
