/* LOGOS LRB — Wallet Theme (Lux v3, CSP-safe, self-hosted)
   - no inline styles required
   - no external fonts
   - fixes Chrome autofill white background
*/

:root{
  color-scheme: dark;

  --bg0:#05060a;
  --bg1:#070b14;

  --text:#e9eef8;
  --muted:rgba(233,238,248,.72);
  --muted2:rgba(233,238,248,.52);

  --surface0:rgba(13,16,24,.60);
  --surface1:rgba(13,16,24,.78);
  --surface2:rgba(13,16,24,.92);

  --field:rgba(6,8,14,.68);
  --field2:rgba(0,0,0,.30);

  --line:rgba(255,255,255,.08);
  --line2:rgba(255,255,255,.14);

  --accent:#4da3ff;
  --accent2:#7c5cff;

  --good:#2de38a;
  --bad:#ff4d6d;

  --r:20px;
  --r2:14px;

  --shadow:0 24px 90px rgba(0,0,0,.55);
  --shadowSm:0 12px 44px rgba(0,0,0,.48);

  --container:1100px;

  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  --sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}

body.logos-ui{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;

  background-color:var(--bg0);
  background-image:
    radial-gradient(1200px 650px at 12% -10%, rgba(77,163,255,.22) 0%, rgba(77,163,255,0) 60%),
    radial-gradient(900px 600px at 92% -12%, rgba(124,92,255,.18) 0%, rgba(124,92,255,0) 58%),
    radial-gradient(900px 600px at 50% 120%, rgba(45,227,138,.10) 0%, rgba(45,227,138,0) 55%),
    linear-gradient(180deg,var(--bg1) 0%, var(--bg0) 46%, var(--bg0) 100%);
  background-attachment:fixed;
}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.muted{color:var(--muted)}
.muted2{color:var(--muted2)}
.mono{font-family:var(--mono)}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:18px 18px 56px;
}

.stack{
  display:grid;
  gap:18px;
  margin-top:18px;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

@media (max-width:980px){
  .grid-2{grid-template-columns:1fr}
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--line);
  background:rgba(6,8,14,.55);
  backdrop-filter:blur(12px);
}

.topbar__inner{
  max-width:var(--container);
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brand__mark{
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#0b1020;
  font-weight:900;
  letter-spacing:.08em;
  font-size:12px;

  background:
    radial-gradient(18px 18px at 25% 20%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(135deg, rgba(77,163,255,1) 0%, rgba(124,92,255,1) 70%);
  box-shadow:0 14px 40px rgba(77,163,255,.22);
  border:1px solid rgba(255,255,255,.18);
}

.brand__title{
  font-weight:780;
  font-size:14px;
  line-height:1.1;
}

.brand__sub{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:52ch;
}

.topbar__right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.22);
  color:var(--muted);
  font-size:12px;
}

.pill .mono{color:var(--text)}

/* Cards */
.card{
  border-radius:var(--r);
  border:1px solid transparent;
  background:
    linear-gradient(180deg, rgba(18,22,34,.74), rgba(12,15,26,.70)) padding-box,
    linear-gradient(135deg, rgba(77,163,255,.34), rgba(124,92,255,.22), rgba(255,255,255,.10)) border-box;
  box-shadow:var(--shadowSm);
  padding:18px;
}

.card.hero{padding:22px}

.card.hero h1{
  margin:0 0 6px;
  font-size:22px;
  letter-spacing:.2px;
}

.card.hero p{margin:0}

.card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.card__head h2{
  margin:0;
  font-size:16px;
  letter-spacing:.2px;
}

.card__head p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:12px;
  max-width:70ch;
}

.card__body{display:grid;gap:10px}

small{color:var(--muted)}
hr{
  border:0;
  border-top:1px solid var(--line);
  margin:14px 0;
}

/* Form */
label{
  display:block;
  margin:12px 0 6px;
  font-size:12px;
  color:var(--muted);
}

input,textarea{
  width:100%;
  border-radius:var(--r2);
  border:1px solid var(--line2);
  background:var(--field);
  color:var(--text);
  padding:12px 12px;
  font-size:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  transition:border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

textarea{
  min-height:110px;
  resize:vertical;
}

input.mono,textarea.mono{
  font-family:var(--mono);
  letter-spacing:.1px;
}

input::placeholder,textarea::placeholder{
  color:rgba(233,238,248,.38);
}

input:focus,textarea:focus{
  outline:none;
  border-color:rgba(77,163,255,.56);
  box-shadow:
    0 0 0 4px rgba(77,163,255,.18),
    inset 0 1px 0 rgba(255,255,255,.06);
}

input[readonly],textarea[readonly]{
  background:rgba(0,0,0,.22);
  border-color:rgba(255,255,255,.10);
}

/* Chrome autofill fix (prevents white/yellow fields) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill{
  -webkit-text-fill-color:var(--text);
  caret-color:var(--text);
  -webkit-box-shadow:0 0 0 1000px rgba(6,8,14,.92) inset;
  transition:background-color 9999s ease-in-out 0s;
}

/* Outputs */
pre{
  width:100%;
  border-radius:var(--r2);
  border:1px solid var(--line);
  background:rgba(0,0,0,.28);
  color:var(--text);
  padding:12px 12px;
  margin:12px 0 0;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

pre.mono{font-family:var(--mono);font-size:12.5px}

/* Buttons */
button{
  appearance:none;
  border-radius:var(--r2);
  border:1px solid var(--line2);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:11px 14px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.1px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  user-select:none;
  transition:transform .08s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease, filter .12s ease;
}

button.primary{
  background:linear-gradient(135deg, rgba(77,163,255,1) 0%, rgba(124,92,255,1) 100%);
  border-color:rgba(255,255,255,.22);
  box-shadow:0 14px 46px rgba(77,163,255,.20), inset 0 1px 0 rgba(255,255,255,.16);
}

button.secondary{
  background:rgba(0,0,0,.22);
  border-color:rgba(255,255,255,.14);
}

button.danger{
  background:rgba(255,77,109,.18);
  border-color:rgba(255,77,109,.35);
  color:#ffd7df;
}

button:hover{filter:brightness(1.04)}
button:active{transform:translateY(1px)}
button:disabled{opacity:.55;cursor:not-allowed;transform:none;filter:none}

/* Simple helpers */
.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* Scrollbar (WebKit) */
*::-webkit-scrollbar{height:10px;width:10px}
*::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.12);
  border-radius:999px;
  border:2px solid rgba(0,0,0,0);
  background-clip:padding-box;
}
*::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.18)}
*::-webkit-scrollbar-track{background:rgba(0,0,0,.14)}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important}
  button{transition:none}
  body.logos-ui{background-attachment:scroll}
}
