/* =============================================================
   $MEMES on Shido — design tokens
   Palette:
     --ink        #12081F  near-black plum (base background)
     --panel      #1B0F2E  raised surface
     --violet     #8B5CF6  Shido-nod accent, links/borders
     --hotpink    #FF3D8A  primary CTA / energy
     --toast      #FFC93C  secondary accent / highlights
     --mint       #34F5C5  success / balance-verified state
     --paper      #F4EFFF  near-white text on dark
   Type:
     display -> 'Bricolage Grotesque' (bouncy, geometric, meme-native)
     body/mono -> 'Space Grotesk' (crypto-native, doubles as data/mono feel)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --ink: #12081F;
    --panel: #1B0F2E;
    --panel-2: #241640;
    --violet: #8B5CF6;
    --hotpink: #FF3D8A;
    --toast: #FFC93C;
    --mint: #34F5C5;
    --paper: #F4EFFF;
    --paper-dim: #B9A9DA;
    --border: rgba(244, 239, 255, 0.12);
    --radius: 18px;
    --shadow-pop: 6px 6px 0 rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ink);
    background-image:
        radial-gradient(circle at 15% 10%, rgba(139,92,246,0.20), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(255,61,138,0.14), transparent 45%);
    color: var(--paper);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

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

img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translate(-2px, -2px); }
.btn:active { transform: translate(0, 0); }

.btn-primary {
    background: var(--hotpink);
    color: var(--ink);
    box-shadow: var(--shadow-pop);
}
.btn-primary:hover { box-shadow: 8px 8px 0 rgba(0,0,0,0.35); }

.btn-outline {
    background: transparent;
    color: var(--paper);
    border-color: var(--border);
}
.btn-outline:hover { border-color: var(--paper); }

.btn-ghost {
    background: var(--panel-2);
    color: var(--paper);
    border-color: var(--border);
}

.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- Top nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(18, 8, 31, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--paper);
}
.brand-dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: conic-gradient(from 90deg, var(--hotpink), var(--toast), var(--violet), var(--hotpink));
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--paper-dim); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--paper); text-decoration: none; }

/* ---------- Ticker ---------- */
.ticker {
    background: var(--hotpink);
    color: var(--ink);
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid var(--ink);
}
.ticker-track {
    display: inline-block;
    padding: 8px 0;
    animation: ticker 22s linear infinite;
    font-weight: 700;
    font-size: 0.85rem;
}
.ticker-track span { margin: 0 28px; }
@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 96px 0 72px;
    text-align: center;
    position: relative;
}
.hero-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--mint);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    color: var(--paper);
}
.hero h1 .accent {
    background: linear-gradient(100deg, var(--hotpink), var(--toast) 60%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lede {
    max-width: 640px;
    margin: 18px auto 34px;
    font-size: 1.15rem;
    color: var(--paper-dim);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-token {
    margin: 56px auto 0;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--violet), var(--hotpink), var(--toast), var(--violet));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 10px rgba(139,92,246,0.12), 0 30px 60px rgba(255,61,138,0.25);
    animation: float 5s ease-in-out infinite;
}
.hero-token span {
    width: 168px; height: 168px; border-radius: 50%;
    background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 2.6rem;
    color: var(--paper);
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-token { animation: none; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--paper); }
.section-head p { color: var(--paper-dim); font-size: 1.05rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.card h3 { color: var(--paper); font-size: 1.2rem; }
.card p { color: var(--paper-dim); margin: 0; }
.card .num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--toast);
    margin-bottom: 6px;
}

.step { display: flex; gap: 18px; align-items: flex-start; }
.step-mark {
    flex: 0 0 auto;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--panel-2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--mint);
}

.mono {
    font-family: 'Space Grotesk', monospace;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--mint);
    word-break: break-all;
    display: inline-block;
}

/* ---------- Wall of holders ---------- */
.holder-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: center;
    transition: border-color 0.15s ease;
}
.holder-card:hover { border-color: var(--violet); }
.holder-avatar {
    width: 52px; height: 52px; border-radius: 14px;
    flex: 0 0 auto;
}
.holder-name { color: var(--paper); font-weight: 700; }
.holder-slug { color: var(--paper-dim); font-size: 0.85rem; }

/* ---------- Forms ---------- */
.form-card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}
.form-card h1 { font-size: 1.8rem; color: var(--paper); }
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--paper-dim);
    margin-bottom: 6px;
}
.field input, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--paper);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
}
.field input:focus, .field textarea:focus {
    outline: 2px solid var(--violet);
    outline-offset: 1px;
}
.field small { color: var(--paper-dim); font-size: 0.8rem; }
.help-row { display: flex; justify-content: space-between; align-items: center; }

.status-box {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 18px;
    display: none;
}
.status-box.show { display: block; }
.status-box.info { background: rgba(139,92,246,0.15); border: 1px solid var(--violet); color: var(--paper); }
.status-box.success { background: rgba(52,245,197,0.12); border: 1px solid var(--mint); color: var(--mint); }
.status-box.error { background: rgba(255,61,138,0.12); border: 1px solid var(--hotpink); color: #ffb8d4; }

.wallet-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.85rem;
}
.wallet-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
@media (max-width: 860px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-side {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    height: fit-content;
}
.dash-side .slug-url { color: var(--mint); font-size: 0.85rem; word-break: break-all; }
.token-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}
@media (max-width: 640px) { .token-row { grid-template-columns: 1fr; } }
.token-row input { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--paper); font-family: 'Space Grotesk', sans-serif; }
.remove-token { background: transparent; border: none; color: var(--hotpink); cursor: pointer; font-weight: 700; }

/* ---------- Public profile page ---------- */
.profile-hero {
    border-radius: 24px;
    padding: 52px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}
.profile-avatar {
    width: 96px; height: 96px; border-radius: 26px;
    margin: 0 auto 18px;
    border: 3px solid rgba(255,255,255,0.25);
}
.profile-hero h1 { font-size: 2.2rem; color: var(--paper); }
.profile-addr { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-top: 6px; }
.profile-bio { max-width: 560px; margin: 16px auto 0; color: rgba(255,255,255,0.92); }
.profile-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.profile-link {
    background: rgba(18,8,31,0.35);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}
.profile-link:hover { background: rgba(18,8,31,0.55); text-decoration: none; }

.token-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}
.token-card .sym { color: var(--toast); font-weight: 700; font-family: 'Bricolage Grotesque', sans-serif; }
.token-card .addr { font-size: 0.78rem; color: var(--paper-dim); word-break: break-all; margin-top: 6px; }

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    color: var(--paper-dim);
    font-size: 0.9rem;
}
footer .foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.disclaimer { max-width: 760px; font-size: 0.78rem; color: rgba(185,169,218,0.7); margin-top: 18px; }
