/* 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);
}

/* ---------- Sidebar (dark) ---------- */
.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; }

/* ---------- Main (light) ---------- */
.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 {
  position: relative;
  margin-left: auto;
}

.bl-mobile-brand {
  display: none;
}

.bl-bell {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dde5f0;
  border-radius: 11px;
  background: #fff;
  color: #64748b;
  font-size: 18px;
  text-decoration: none !important;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.bl-bell:hover,
.bl-notifications.is-open .bl-bell {
  color: var(--bl-blue);
  border-color: #bfdbfe;
  background: #f8fbff;
}

.bl-notifications { position: relative; }

.bl-notification-count {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bl-canvas);
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 0 4px;
}

.bl-notification-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #e1e8f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .16);
}

.bl-notification-menu[hidden] { display: none !important; }

.bl-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 13px;
  border-bottom: 1px solid #edf1f6;
}

.bl-notification-head strong {
  display: block;
  color: var(--bl-ink);
  font-size: 15px;
}

.bl-notification-head span {
  display: block;
  color: var(--bl-muted);
  font-size: 10px;
  margin-top: 2px;
}

.bl-notification-head a {
  color: var(--bl-blue) !important;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.bl-notification-list {
  max-height: 340px;
  overflow-y: auto;
}

.bl-notification-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f3f8;
  color: var(--bl-ink) !important;
  text-decoration: none !important;
}

.bl-notification-item:hover { background: #f8fafc; }
.bl-notification-item.is-unread { background: #f3f7ff; }
.bl-notification-item.is-unread:hover { background: #edf4ff; }

.bl-notification-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e8f1ff;
  color: var(--bl-blue);
  font-size: 13px;
}

.bl-notification-copy {
  min-width: 0;
  flex: 1;
}

.bl-notification-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #273449;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bl-notification-copy small {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  margin-top: 4px;
}

.bl-unread-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--bl-blue);
  margin-top: 5px;
}

.bl-notification-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--bl-muted);
  padding: 34px 16px;
  text-align: center;
}

.bl-notification-empty > i {
  color: #a9b7ca;
  font-size: 24px;
  margin-bottom: 10px;
}

.bl-notification-empty strong {
  color: #475569;
  font-size: 13px;
}

.bl-notification-empty span {
  font-size: 11px;
  margin-top: 4px;
}

.bl-notification-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 16px;
  color: var(--bl-blue) !important;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
}

.bl-notification-footer:hover { background: #f8fafc; }

.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; }

/* ---------- Dashboard cards ---------- */
.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);
}

.bl-tools {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 14px;
  margin-top: 14px;
}

.bl-history-card,
.bl-xrp-calc {
  min-width: 0;
  background: #fff;
  border: 1px solid #e8eef7;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.bl-history-card {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--bl-ink) !important;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bl-history-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 14px 34px rgba(29, 123, 255, .10);
}

.bl-tool-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--bl-blue);
  font-size: 17px;
}

.bl-tool-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.bl-tool-copy strong,
.bl-xrp-calc-head strong {
  color: var(--bl-ink);
  font-size: 14px;
  font-weight: 750;
}

.bl-tool-copy span,
.bl-xrp-calc-head span {
  display: block;
  color: var(--bl-muted);
  font-size: 12px;
  margin-top: 3px;
}

.bl-tool-arrow {
  color: #94a3b8;
  font-size: 12px;
  margin-left: auto;
}

.bl-xrp-calc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bl-lending-input-wrap { margin-bottom: 10px; }

.bl-lending-label {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.bl-lending-input {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f9fc;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  padding: 0 13px;
}

.bl-lending-input:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(29, 123, 255, .09);
}

.bl-lending-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bl-ink);
  font-size: 20px;
  font-weight: 800;
}

.bl-lending-input b {
  color: var(--bl-blue);
  font-size: 12px;
  font-weight: 800;
}

.bl-lending-usd {
  min-height: 16px;
  color: var(--bl-muted);
  font-size: 10px;
  margin: 5px 2px 0;
}

.bl-lending-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.bl-lending-presets button {
  height: 30px;
  border: 1px solid #e3eaf4;
  border-radius: 9px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.bl-lending-presets button:hover,
.bl-lending-presets button.is-active {
  border-color: #bfdbfe;
  background: #eaf2ff;
  color: var(--bl-blue);
}

.bl-lending-terms {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #64748b;
  font-size: 10px;
  margin-bottom: 13px;
}

.bl-lending-terms span:first-child {
  color: var(--bl-green);
  font-weight: 700;
}

.bl-term-divider {
  width: 1px;
  height: 13px;
  background: #dbe3ee;
}

.bl-lending-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bl-lending-results > div {
  min-width: 0;
  background: #f7f9fc;
  border-radius: 11px;
  padding: 10px;
}

.bl-lending-results span {
  display: block;
  color: var(--bl-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.bl-lending-results strong {
  display: block;
  color: var(--bl-green);
  font-size: 12px;
  line-height: 1.3;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

/* ---------- Manual deposit review ---------- */
.gcrig-manual-page {
  width: 100%;
  max-width: 720px;
  margin: 18px auto 0;
}

.gcrig-manual-card {
  overflow: hidden;
  border: 1px solid #e1e8f2;
  border-radius: 22px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .07);
  text-align: center;
}

.gcrig-manual-status-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 23px;
  margin-bottom: 14px;
}

.gcrig-manual-status-icon.is-pending { color: #2563eb; background: #eaf2ff; }
.gcrig-manual-status-icon.is-pending i { animation: bl-pulse 1.5s ease-in-out infinite; }
.gcrig-manual-status-icon.is-success { color: #16a34a; background: #ecfdf3; }
.gcrig-manual-status-icon.is-failed { color: #dc2626; background: #fef2f2; }

@keyframes bl-pulse {
  50% { transform: scale(.86); opacity: .65; }
}

.gcrig-manual-badge {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  margin: 0 auto 10px;
}

.gcrig-manual-badge.is-pending { color: #2563eb; background: #eff6ff; }
.gcrig-manual-badge.is-success { color: #15803d; background: #ecfdf3; }
.gcrig-manual-badge.is-failed { color: #dc2626; background: #fef2f2; }

.gcrig-manual-badge > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.gcrig-manual-card h2 {
  color: var(--bl-ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
}

.gcrig-manual-intro {
  max-width: 530px;
  color: #718096;
  font-size: 13px;
  line-height: 1.65;
  margin: 8px auto 22px;
}

.gcrig-review-steps {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: start;
  margin: 4px 8px 24px;
}

.gcrig-review-steps > div {
  width: 78px;
  color: #9aa6b8;
  font-size: 9px;
  font-weight: 700;
}

.gcrig-review-steps > div > span {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
  margin: 0 auto 6px;
}

.gcrig-review-steps > div.is-complete { color: #16a34a; }
.gcrig-review-steps > div.is-current { color: #2563eb; }
.gcrig-review-steps > div.is-complete > span { border-color: #22c55e; background: #ecfdf3; }
.gcrig-review-steps > div.is-current > span { border-color: #60a5fa; background: #eff6ff; }

.gcrig-review-line {
  height: 2px;
  background: #e2e8f0;
  margin-top: 15px;
}

.gcrig-review-line.is-complete { background: #86efac; }

.gcrig-manual-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #e8edf5;
  margin: 0 0 14px;
  text-align: left;
}

.gcrig-manual-details > div {
  min-width: 0;
  background: #f8fafc;
  padding: 12px 14px;
}

.gcrig-manual-details dt {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gcrig-manual-details dd {
  color: #273449;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  margin: 4px 0 0;
}

.gcrig-manual-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f0f7ff;
  color: #52647d;
  font-size: 11px;
  line-height: 1.5;
  padding: 11px 12px;
  text-align: left;
}

.gcrig-manual-note > i { color: #3b82f6; margin-top: 2px; }
.gcrig-manual-note.is-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.gcrig-manual-note.is-error > i { color: #ef4444; }

.gcrig-poll-message {
  color: #94a3b8;
  font-size: 10px;
  margin: 10px 0 0;
}

.gcrig-manual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.panel-layout .side-nav {
  background: var(--bl-side) !important;
  width: 248px;
}

.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-tools { grid-template-columns: 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;
  }
  .bl-history-card,
  .bl-xrp-calc { padding: 14px; }
  .bl-tool-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .bl-lending-input { height: 44px; padding: 0 10px; }
  .bl-lending-input input { font-size: 17px; }
  .bl-lending-presets { gap: 5px; }
  .bl-lending-results { gap: 6px; }
  .bl-lending-results > div { padding: 9px 7px; }
  .bl-lending-results strong { font-size: 10px; }
  .gcrig-manual-page { margin-top: 8px; }
  .gcrig-manual-card { border-radius: 18px; padding: 22px 14px; }
  .gcrig-manual-card h2 { font-size: 19px; }
  .gcrig-review-steps { margin-right: -4px; margin-left: -4px; }
  .gcrig-review-steps > div { width: 62px; font-size: 8px; }
  .gcrig-review-steps > div > span { width: 28px; height: 28px; }
  .gcrig-review-line { margin-top: 13px; }
  .gcrig-manual-details { grid-template-columns: 1fr; }
  .gcrig-manual-actions { grid-template-columns: 1fr; }
}
