/* Shared Hush styles for the app pages (login, dashboard). */
:root {
  --ink: #14111f; --ink-2: #55516a; --ink-3: #8d89a0;
  --paper: #faf7f2; --paper-2: #f3eee6; --white: #fff;
  --line: rgba(20,17,31,.08); --line-2: rgba(20,17,31,.14);
  --shadow: 0 1px 2px rgba(20,17,31,.05), 0 10px 30px -12px rgba(20,17,31,.18);
  --shadow-lg: 0 2px 4px rgba(20,17,31,.04), 0 30px 60px -20px rgba(20,17,31,.25);
  --pink: #ff4d8d; --violet: #7b3bff; --blue: #2e6bff; --lime: #c6f432; --sun: #ffd23f; --mint: #3ee0a1; --red: #d62056;
  --grad: linear-gradient(120deg, var(--pink), var(--violet) 55%, var(--blue));
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 26px/1 var(--display); letter-spacing: -.05em; text-decoration: none; }
.logo svg { width: 34px; height: 34px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font: 700 16px/1 var(--display); letter-spacing: -.01em; border: 1px solid var(--line-2); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn { border-color: transparent; font-weight: 700; }
.btn-primary { background: var(--ink); color: var(--white); box-shadow: 0 1px 2px rgba(20,17,31,.2), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(20,17,31,.45); }
.btn-light { background: var(--white); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(20,17,31,.05); }
.btn-light:hover { transform: translateY(-1px); border-color: rgba(20,17,31,.25); box-shadow: var(--shadow); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field input { width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); padding: 0 16px; font: 500 16px var(--sans); background: var(--white); color: var(--ink); }
.field input:focus { outline: none; box-shadow: 0 0 0 4px rgba(123,59,255,.18); border-color: var(--violet); }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

.alert { display: none; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.alert.show { display: block; }
.alert.err { background: #ffe0ea; }
.alert.ok { background: #eaffc2; }

.wallet-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--white); font-weight: 600; font-size: 16px; text-align: left; transition: transform .15s, box-shadow .15s; box-shadow: var(--shadow); }
.wallet-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.wallet-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.wallet-btn .wi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 800 16px/1 var(--display); color: var(--white); flex-shrink: 0; }
.wallet-btn .tag { margin-left: auto; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.wallet-btn .tag.ready { background: var(--lime); color: var(--ink); }
.wallets { display: flex; flex-direction: column; gap: 12px; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.wallet-btn .wn { flex: 1; }
.wallet-btn .wi img { width: 24px; height: 24px; border-radius: 6px; display: block; }
.wallet-btn .wi.logo { background: none; padding: 0; overflow: hidden; }
.wallet-btn .wi.logo svg { width: 100%; height: 100%; display: block; }
.logo .wm { position: relative; display: inline-block; font: 800 1.08em/1 var(--display); letter-spacing: -.02em; padding-right: .34em; color: #4A1A9E; text-shadow: 1px 1px 0 #3E1691, 2px 2px 0 #2A1270, 0 4px 10px rgba(123,59,255,.35); }
.logo .wm::before { content: attr(data-t); position: absolute; left: 0; top: 0; background: linear-gradient(112deg,#FF5C9A 0%,#E04BB4 30%,#9B4DFF 62%,#4A7BFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.logo .wm::after { content: ""; position: absolute; right: .02em; top: -.2em; width: .42em; height: .42em; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-62 -62 124 124%27%3E%3Cpath d=%27M0-58C6-10 10-6 58 0 10 6 6 10 0 58-6 10-10 6-58 0-10-6-6-10 0-58Z%27 fill=%27%23D6FF4A%27 stroke=%27%237B3BFF%27 stroke-width=%277%27/%3E%3C/svg%3E") center/contain no-repeat; filter: drop-shadow(0 0 4px rgba(198,244,50,.9)); }
.nav.on-dark .logo .wm, .side .logo .wm { color: #FF4D8D; text-shadow: 1px 1px 0 #E04BB4, 2px 2px 0 #7B3BFF, 0 4px 14px rgba(20,10,40,.45); }
.nav.on-dark .logo .wm::before, .side .logo .wm::before { background: linear-gradient(180deg,#fff 0%,#F1E6FF 100%); -webkit-background-clip: text; background-clip: text; }

.logo .mark { width: 34px; height: 34px; flex: none; display: block; filter: drop-shadow(0 3px 8px rgba(240,58,166,.45)); }
.logo .wm { padding-right: 0; }
.logo .wm::after { display: none; }

.x-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.6); transition: transform .15s ease, background .15s ease, color .15s ease; flex: none; }
.x-link svg { width: 17px; height: 17px; }
.x-link:hover { transform: translateY(-2px); background: #000; color: #fff; border-color: #000; }
