/* ============================================================
   Shore — shared design tokens + Shore Connect modal styles
   Loaded by index.html and test.html. Page-specific layout CSS
   stays inline in each page; only the genuinely shared pieces
   (design tokens + the wallet modal) live here.
   ============================================================ */

:root {
  --bg: #05060f;
  --bg-soft: #090b1a;
  --panel: #0c1023;
  --panel-2: #11162e;
  --line: #1f2750;
  --line-soft: #161c3a;
  --text: #eaf0ff;
  --muted: #8b93c2;
  --muted-2: #6c74a6;
  --cyan: #2af5ff;        /* neon aqua — Shore / water, primary */
  --cyan-dim: #15c8e6;
  --violet: #b14bff;      /* electric violet — crypto */
  --magenta: #ff3df0;     /* hot pink pop */
  --lime: #c7ff3c;        /* neon lime — yield / income / success */
  --amber: #ffb020;
  --red: #ff5470;
  --grad: linear-gradient(100deg, #2af5ff 0%, #8a5bff 52%, #ff3df0 100%);
  --grad-cv: linear-gradient(100deg, #2af5ff, #b14bff);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --disp: "Space Grotesk", "Inter", system-ui, sans-serif;
}

/* ============ Shore Connect wallet modal ============ */
.sc-overlay { position: fixed; inset: 0; background: rgba(3,4,12,0.78); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.sc-overlay.open { display: flex; animation: scfade .22s ease; }
@keyframes scfade { from { opacity: 0; } to { opacity: 1; } }
.sc-modal { width: 420px; max-width: 100%; background: linear-gradient(180deg, #0c1024, #080a18); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.6); display: flex; flex-direction: column; min-height: 540px; max-height: 94vh; position: relative; animation: scrise .26s cubic-bezier(.2,.8,.2,1); }
.sc-modal::before { content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1px; background: linear-gradient(140deg, rgba(42,245,255,0.55), transparent 35%, transparent 65%, rgba(177,75,255,0.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 3; }
@keyframes scrise { from { transform: translateY(18px) scale(.98); opacity: .4; } to { transform: none; opacity: 1; } }
.sc-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); position: relative; z-index: 4; }
.sc-brand { display: flex; align-items: center; gap: 9px; font-family: var(--disp); font-weight: 700; font-size: 15px; }
.sc-brand .mark svg { width: 20px; height: 20px; filter: drop-shadow(0 0 6px rgba(42,245,255,0.7)); }
.sc-top .x { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; line-height: 1; }
.sc-top .x:hover { background: var(--panel-2); color: var(--text); }
.sc-prog { height: 2px; background: var(--line-soft); position: relative; z-index: 4; }
.sc-prog > i { display: block; height: 100%; background: var(--grad-cv); box-shadow: 0 0 10px rgba(42,245,255,0.6); transition: width .4s ease; width: 18%; }
.sc-body { flex: 1; overflow-y: auto; padding: 22px 22px 24px; position: relative; z-index: 4; }
.sc-hand { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 10px 0 20px; }
.sc-hand .node { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-family: var(--disp); font-weight: 700; font-size: 22px; }
.sc-hand .node.shore { background: var(--grad-cv); color: #04121b; box-shadow: 0 0 22px rgba(42,245,255,0.4); }
.sc-hand .node.wallet { background: var(--panel-2); border: 1px solid var(--line); }
.sc-hand .dots { color: var(--cyan); letter-spacing: 3px; font-size: 14px; }
.sc-h { font-family: var(--disp); font-size: 20px; font-weight: 600; text-align: center; margin-bottom: 8px; }
.sc-p { color: var(--muted); font-size: 14px; text-align: center; margin: 0 auto 18px; max-width: 320px; }
.sc-feat { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.sc-feat:first-of-type { border-top: 0; }
.sc-feat .fi { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(42,245,255,0.08); border: 1px solid var(--line-soft); flex-shrink: 0; }
.sc-feat .fi i { width: 16px; height: 16px; color: var(--cyan); }
.sc-feat .ft { font-size: 13px; color: var(--muted); } .sc-feat .ft b { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; }
.sc-btn { width: 100%; border: 0; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; background: var(--grad-cv); color: #04121b; box-shadow: 0 6px 24px rgba(42,245,255,0.28); transition: 0.16s; margin-top: 8px; }
.sc-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sc-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.sc-btn.danger { background: transparent; color: var(--red); border: 1px solid rgba(255,84,112,0.4); box-shadow: none; }
.sc-fine { font-size: 11.5px; color: var(--muted-2); text-align: center; margin-top: 14px; }
.sc-secured { font-family: var(--mono); font-size: 11px; color: var(--muted-2); text-align: center; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sc-wallet { display: flex; align-items: center; gap: 13px; padding: 13px 12px; border-radius: 12px; cursor: pointer; border: 1px solid var(--line-soft); margin-bottom: 9px; background: var(--panel); transition: 0.14s; }
.sc-wallet:hover { border-color: var(--cyan-dim); background: var(--panel-2); transform: translateX(2px); }
.sc-wallet .wa { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.sc-wallet .wn { font-weight: 600; font-size: 14.5px; } .sc-wallet .ws { font-size: 12px; color: var(--muted-2); }
.sc-wallet .arr { margin-left: auto; color: var(--muted-2); }
.sc-addr { font-family: var(--mono); font-size: 13px; color: var(--cyan); background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 14px; text-align: center; margin-bottom: 16px; word-break: break-all; }
.sc-sigbox { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.sc-sigbox .sig-h { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 8px; }
.sc-sigbox b { color: var(--text); }
.sc-scan-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); opacity: 0.35; transition: 0.3s; }
.sc-scan-item.done { opacity: 1; }
.sc-scan-item .si { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; color: #fff; }
.sc-scan-item .sn { font-size: 13.5px; font-weight: 600; } .sc-scan-item .sc-sub { font-size: 12px; color: var(--muted-2); }
.sc-scan-item .schk { margin-left: auto; color: var(--lime); display: none; } .sc-scan-item.done .schk { display: block; }
.sc-scan-item .spin { margin-left: auto; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--cyan); border-radius: 50%; animation: spin .7s linear infinite; }
.sc-scan-item.done .spin { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.sc-result-head { text-align: center; margin-bottom: 18px; }
.sc-check { width: 56px; height: 56px; border-radius: 50%; background: rgba(199,255,60,0.12); border: 1px solid rgba(199,255,60,0.4); display: grid; place-items: center; margin: 0 auto 12px; color: var(--lime); box-shadow: 0 0 26px rgba(199,255,60,0.25); }
.sc-err { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,84,112,0.1); border: 1px solid rgba(255,84,112,0.4); display: grid; place-items: center; margin: 0 auto 12px; color: var(--red); }
.sc-income { text-align: center; background: linear-gradient(160deg, rgba(199,255,60,0.08), rgba(42,245,255,0.05)); border: 1px solid rgba(199,255,60,0.25); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.sc-income .lbl { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.sc-income .big { font-family: var(--disp); font-size: 38px; font-weight: 700; color: var(--lime); line-height: 1; text-shadow: 0 0 24px rgba(199,255,60,0.3); }
.sc-income .sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.sc-pos { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.sc-pos .ph { display: grid; grid-template-columns: 1.5fr 1fr 0.9fr; gap: 8px; padding: 9px 14px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); border-bottom: 1px solid var(--line-soft); }
.sc-pos .pr { display: grid; grid-template-columns: 1.5fr 1fr 0.9fr; gap: 8px; padding: 11px 14px; font-size: 13px; align-items: center; border-bottom: 1px solid var(--line-soft); }
.sc-pos .pr:last-child { border-bottom: 0; }
.sc-pos .pr .pp { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sc-pos .pr .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sc-pos .pr .apy { color: var(--lime); font-family: var(--mono); font-size: 12px; }
.sc-pos .pr .usd { text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.sc-cert { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 13px; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.sc-cert .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.sc-cert .hash { color: var(--cyan); word-break: break-all; }
.sc-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sc-tag { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 11px; }
.sc-tag b { color: var(--cyan); }
