/* SolHouse Tools — stesso linguaggio visivo di solhousesignal.com */
:root {
    --primary: #8B5CF6; --primary-light: #A78BFA; --primary-dark: #5B21B6;
    --accent: #06B6D4; --accent-light: #22D3EE;
    --gold: #F59E0B; --gold-light: #FBBF24;
    --green: #10B981; --green-light: #34D399;
    --red: #EF4444; --pink: #EC4899;
    --bg: #07070A; --bg-elevated: #111114;
    --bg-card: rgba(20,20,24,0.6); --bg-card-solid: #141418;
    --border: rgba(255,255,255,0.06); --border-strong: rgba(255,255,255,0.12);
    --border-hover: rgba(255,255,255,0.18);
    --text: #FAFAFA; --text-secondary: #A1A1AA; --text-muted: #6B6B74;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg); color: var(--text-secondary);
    overflow-x: hidden; -webkit-font-smoothing: antialiased; line-height: 1.6;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', monospace; }
.display { font-family: 'Space Grotesk', 'Inter', sans-serif; }
::selection { background: rgba(139,92,246,0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; border-radius: 4px; }
body::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(0,0,0,0.9), transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(0,0,0,0.9), transparent 70%);
}
body::after {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 15% 10%, rgba(139,92,246,0.12), transparent 60%),
                radial-gradient(ellipse 50% 40% at 85% 80%, rgba(6,182,212,0.08), transparent 60%);
}
header, main, footer { position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* header */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(7,7,10,0.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700;
        font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 17px; white-space: nowrap; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.logo .tag { font-size: 11px; font-weight: 600; color: var(--primary-light);
             border: 1px solid rgba(139,92,246,0.35); border-radius: 999px; padding: 1px 8px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       height: 42px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
       border: 1px solid var(--border-strong); background: var(--bg-elevated); color: var(--text);
       cursor: pointer; transition: transform .15s, background .2s, border-color .2s, opacity .2s;
       font-family: inherit; white-space: nowrap; }
.btn:hover { border-color: var(--border-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark));
               border-color: rgba(167,139,250,0.4); box-shadow: 0 6px 24px rgba(139,92,246,0.25); }
.btn-primary:hover { box-shadow: 0 8px 32px rgba(139,92,246,0.4); }
.btn-green { background: linear-gradient(135deg, #10B981, #047857); border-color: rgba(52,211,153,0.4);
             box-shadow: 0 6px 24px rgba(16,185,129,0.25); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }

/* layout bits */
.hero { padding: 64px 0 28px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
           letter-spacing: .06em; text-transform: uppercase; color: var(--accent-light);
           border: 1px solid rgba(34,211,238,0.25); background: rgba(6,182,212,0.07);
           padding: 5px 12px; border-radius: 999px; }
h1 { font-family: 'Space Grotesk', 'Inter', sans-serif; color: var(--text); font-weight: 700;
     font-size: clamp(32px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 18px 0 14px; }
h1 .grad, .grad { background: linear-gradient(90deg, #A78BFA, #22D3EE 60%, #34D399);
                  -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-family: 'Space Grotesk', 'Inter', sans-serif; color: var(--text); font-size: 26px; margin-bottom: 10px; }
h3 { color: var(--text); font-size: 17px; margin-bottom: 6px; }
.lead { font-size: 17px; max-width: 640px; margin: 0 auto; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
        padding: 22px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card:hover { border-color: var(--border-strong); }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.center { text-align: center; }
section { padding: 26px 0; }

/* inputs */
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.input { flex: 1 1 320px; height: 52px; border-radius: 12px; border: 1px solid var(--border-strong);
         background: rgba(0,0,0,0.35); color: var(--text); padding: 0 16px; font-size: 15px;
         font-family: 'JetBrains Mono', monospace; min-width: 0; }
.input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(139,92,246,0.2); }

/* stats */
.stat { padding: 18px; border-radius: 14px; background: rgba(255,255,255,0.025); border: 1px solid var(--border); }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.stat .v { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; color: var(--text); margin-top: 4px; }
.stat .v.green { color: var(--green-light); }
.stat .v.gold { color: var(--gold-light); }

/* account rows */
.rows { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; padding-right: 4px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
       background: rgba(255,255,255,0.02); border: 1px solid var(--border); font-size: 14px; }
.row input { width: 18px; height: 18px; accent-color: var(--primary); flex: 0 0 auto; }
.row img { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; background: #222; }
.row .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.row .sub { color: var(--text-muted); font-size: 12px; }
.row .amt { font-family: 'JetBrains Mono', monospace; font-size: 13px; text-align: right; white-space: nowrap; }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); }
.pill.red { color: #FCA5A5; border-color: rgba(239,68,68,0.35); }
.pill.gold { color: var(--gold-light); border-color: rgba(245,158,11,0.35); }

.notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; border: 1px solid; }
.notice.warn { background: rgba(245,158,11,0.07); border-color: rgba(245,158,11,0.3); color: #FCD34D; }
.notice.ok { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.3); color: #6EE7B7; }
.notice.err { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); color: #FCA5A5; }
.hidden { display: none !important; }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.65);
            backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; background: var(--bg-card-solid); border: 1px solid var(--border-strong);
         border-radius: 18px; padding: 22px; max-height: 90vh; overflow: auto; }
.wallet-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 12px;
              border: 1px solid var(--border); background: rgba(255,255,255,0.02); color: var(--text);
              cursor: pointer; font-size: 15px; font-weight: 600; margin-bottom: 8px; font-family: inherit; text-align: left; }
.wallet-btn:hover { border-color: var(--primary-light); background: rgba(139,92,246,0.08); }
.wallet-btn img { width: 30px; height: 30px; border-radius: 8px; }
.wallet-btn .det { margin-left: auto; font-size: 11px; color: var(--green-light); font-weight: 600; }

details.faq { border-bottom: 1px solid var(--border); padding: 14px 0; }
details.faq summary { cursor: pointer; color: var(--text); font-weight: 600; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: '+'; color: var(--primary-light); margin-right: 10px; font-weight: 700; }
details.faq[open] summary::before { content: '−'; }
details.faq p { margin-top: 8px; font-size: 15px; }

footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 26px 0 40px; font-size: 13px; }
footer .row-f { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25);
           border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
    .hero { padding-top: 40px; }
    .card { padding: 16px; }
    .stat .v { font-size: 18px; }
    .stat { padding: 14px; }
    .logo .tag { display: none; }
}

/* menu del wallet collegato (10/10) */
.wmenu { position: relative; }
.wmenu .btn img { width: 20px; height: 20px; border-radius: 5px; }
.wmenu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 150;
             background: var(--bg-card-solid); border: 1px solid var(--border-strong); border-radius: 14px;
             padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.wmenu-pop .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.wmenu-pop .who b { color: var(--text); display: block; font-size: 14px; }
.wmenu-pop .who span { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); }
.wmenu-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px; border: 0;
                    background: transparent; color: var(--text); border-radius: 10px; cursor: pointer;
                    font-size: 14px; font-family: inherit; text-align: left; }
.wmenu-pop button:hover { background: rgba(139,92,246,0.10); }
.wmenu-pop button.danger { color: #FCA5A5; }
.connected-line { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
                  font-size: 13px; margin-bottom: 12px; }
.connected-line img { width: 18px; height: 18px; border-radius: 5px; }
.link-btn { background: none; border: 0; color: var(--primary-light); cursor: pointer; font: inherit;
            text-decoration: underline; padding: 0; }
