/* ═══════════════════════════════════════════════════════════
   LUNAR TEAM — SHOWROOM STYLES
   ═══════════════════════════════════════════════════════════ */

:root {
    /* brand */
    --accent:        #7c4ddd;
    --accent-bright: #a78bfa;
    --accent-glow:   rgba(124, 77, 221, 0.38);
    --silver:        #c4bcdc;
    --silver-dim:    #8a82a8;
    --bg:            #05020d;
    --border:        rgba(124, 77, 221, 0.22);
    --border-hover:  rgba(167, 139, 250, 0.55);
    --text:          #ede8f8;
    --muted:         #7d7499;

    /* status */
    --ok:     #4ade80;
    --warn:   #facc15;
    --unstable: #fb923c;
    --info:   #60a5fa;
    --danger: #f87171;

    /* type */
    --font-display: 'Fraunces', serif;
    --font-ui:      'Space Grotesk', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'Space Mono', monospace;

    /* shape / rhythm */
    --radius:    16px;
    --radius-sm: 9px;
    --header-h:  80px;

    /* spacing scale */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;

    /* motion */
    --ease-out:   cubic-bezier(0.34, 1.1, 0.64, 1);
    --ease-pop:   cubic-bezier(0.34, 1.3, 0.64, 1);
    --dur-fast:   0.2s;
    --dur-base:   0.35s;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: rgba(124, 77, 221, 0.35);
    border-radius: 99px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, 0.55); }
* { scrollbar-color: rgba(124, 77, 221, 0.35) var(--bg); scrollbar-width: thin; }

/* ── FOCUS STATES (accessibility) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ── PROGRESS BAR ── */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #4a1fa8, #7c4ddd, #a78bfa, #c4bcdc);
    z-index: 9999;
    transition: width 0.3s ease, opacity 0.5s ease;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.7);
}
#progress-bar.done { opacity: 0; }

/* ── CANVAS ── */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── GRAIN ── */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.35;
}

/* ── CURSOR ── */
.cursor {
    position: fixed; width: 10px; height: 10px;
    background: var(--accent-bright);
    border-radius: 50%; pointer-events: none; z-index: 99999;
    transform: translate(-50%, -50%); mix-blend-mode: screen;
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor.hover { width: 16px; height: 16px; opacity: 0.6; }
.cursor-ring {
    position: fixed; width: 34px; height: 34px;
    border: 1.5px solid rgba(167, 139, 250, 0.55);
    border-radius: 50%; pointer-events: none; z-index: 99998;
    transform: translate(-50%, -50%);
    transition: left 0.12s ease-out, top 0.12s ease-out, width 0.25s, height 0.25s, border-color 0.2s;
}
.cursor-ring.hover { width: 44px; height: 44px; border-color: rgba(167, 139, 250, 0.9); }
@media (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ── STICKY NAV ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: transparent;
    transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
    background: rgba(5, 2, 13, 0.88);
    box-shadow: 0 1px 0 rgba(124, 77, 221, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.nav-logo img {
    width: 30px; height: 30px; object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(124, 77, 221, 0.6));
}
.nav-logo span {
    font-family: var(--font-ui);
    font-size: 0.92rem; font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--text);
}
.nav-right { display: flex; align-items: center; gap: 10px; }

/* ── SOCIAL FAB ── */
.fab-social {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(8, 4, 26, 0.88); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--silver-dim); font-size: 0.9rem; cursor: pointer;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, color 0.25s;
}
.fab-social:hover {
    border-color: var(--accent-bright); box-shadow: 0 0 20px var(--accent-glow);
    background: rgba(124, 77, 221, 0.15); color: var(--accent-bright);
}

/* ── MEMBERS NAV BUTTON ── */
.nav-members-btn {
    display: flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 99px;
    background: rgba(8, 4, 26, 0.88); border: 1px solid var(--border);
    color: var(--silver-dim); font-family: var(--font-ui);
    font-size: 0.78rem; font-weight: 600; text-decoration: none;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, color 0.25s;
}
.nav-members-btn:hover {
    border-color: var(--accent-bright); box-shadow: 0 0 20px var(--accent-glow);
    background: rgba(124, 77, 221, 0.15); color: var(--accent-bright);
}
.nav-members-btn i { font-size: 0.85rem; }
@media (max-width: 600px) {
    .nav-members-btn span { display: none; }
    .nav-members-btn { padding: 0; width: 40px; justify-content: center; }
}

/* ── WRAPPER ── */
.wrapper { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; min-height: 100dvh; }

/* ── HERO HEADER ── */
header {
    width: 100%; max-width: 1160px; margin: 0 auto;
    padding: 128px 24px 56px;
}

.hero-grid {
    display: flex; align-items: flex-start; gap: 44px;
    margin-bottom: 40px;
}

.hero-mark { flex-shrink: 0; padding-top: 6px; }

.hero-orbit {
    position: relative;
    width: 96px; height: 96px;
    display: flex; align-items: center; justify-content: center;
}
.orbit-ring {
    position: absolute; border-radius: 50%; pointer-events: none;
}
.orbit-ring-1 {
    inset: -16px;
    border: 1px dashed rgba(167, 139, 250, 0.28);
    animation: orbit-spin 16s linear infinite;
}
.orbit-ring-2 {
    inset: -34px;
    border: 1px solid rgba(124, 77, 221, 0.16);
    animation: orbit-spin 26s linear infinite reverse;
}
.orbit-ring-1::after {
    content: ''; position: absolute; top: -2px; left: 50%;
    width: 5px; height: 5px; border-radius: 50%; transform: translateX(-50%);
    background: var(--accent-bright);
    box-shadow: 0 0 8px var(--accent-bright), 0 0 18px var(--accent-glow);
}
.orbit-ring-2::after {
    content: ''; position: absolute; bottom: -1px; left: 50%;
    width: 4px; height: 4px; border-radius: 50%; transform: translateX(-50%);
    background: var(--silver);
    box-shadow: 0 0 6px rgba(196, 188, 220, 0.8);
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.logo-mark {
    width: 96px; height: 96px;
    animation: logo-float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 24px rgba(107, 53, 212, 0.75)) drop-shadow(0 0 8px rgba(167, 139, 250, 0.4));
    cursor: pointer;
    transition: transform 0.2s;
}
.logo-mark:active { transform: scale(0.93); }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

@keyframes logo-float {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 24px rgba(107, 53, 212, 0.75)) drop-shadow(0 0 8px rgba(167, 139, 250, 0.4)); }
    50%      { transform: translateY(-7px); filter: drop-shadow(0 0 38px rgba(107, 53, 212, 0.95)) drop-shadow(0 0 16px rgba(196, 188, 220, 0.55)); }
}

.hero-copy { min-width: 0; }

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem; color: var(--accent-bright);
    letter-spacing: 0.3px; margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
    content: ''; width: 20px; height: 1px; background: var(--accent-bright); opacity: 0.6;
}

header h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.6rem);
    font-weight: 450; font-optical-sizing: auto;
    letter-spacing: -0.01em; line-height: 0.94;
    color: var(--text);
    margin-bottom: 20px;
}
header h1 em {
    font-style: italic;
    font-weight: 450;
    background: linear-gradient(135deg, var(--silver) 5%, var(--accent-bright) 55%, #c084fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header-tagline {
    font-family: var(--font-body);
    font-size: 1rem; color: var(--silver-dim); font-weight: 400;
    max-width: 440px; line-height: 1.65; margin-bottom: 22px;
}
.hero-status {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(124, 77, 221, 0.08); border: 1px solid var(--border);
    padding: 7px 16px; border-radius: 99px;
    font-family: var(--font-mono);
    font-size: 0.68rem; color: var(--silver-dim); font-weight: 400;
    font-variant-numeric: tabular-nums;
}
.hero-status-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
    background: var(--ok); box-shadow: 0 0 8px var(--ok);
    animation: blink 1.6s ease-in-out infinite;
}

/* ── STATS BAR ── */
.stats-bar {
    display: flex; align-items: stretch; gap: 0;
    border-top: 1px solid rgba(124, 77, 221, 0.16);
    padding-top: 22px;
}
.stat-item {
    display: flex; flex-direction: column; gap: 4px;
    padding-right: 32px; margin-right: 32px;
    border-right: 1px solid rgba(124, 77, 221, 0.16);
    opacity: 0; transform: translateY(12px);
    animation: fade-up 0.5s ease forwards;
}
.stat-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

.stat-num {
    font-family: var(--font-mono);
    font-size: 1.6rem; font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-family: var(--font-ui);
    font-size: 0.68rem; color: var(--muted); letter-spacing: 0.3px;
}

/* ── MAIN ── */
main { width: 100%; max-width: 1160px; padding: 0 20px 70px; flex: 1; }

/* ── CONTROL BAR (search + filter) ── */
.control-bar {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 28px; flex-wrap: wrap;
    background: rgba(124, 77, 221, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
}
.search-wrap {
    flex: 1; min-width: 200px;
    position: relative;
}
.search-wrap i.fa-search {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 0.78rem; pointer-events: none;
}
#search-input {
    width: 100%; background: rgba(124, 77, 221, 0.05);
    border: 1px solid var(--border); border-radius: 12px;
    padding: 10px 36px 10px 36px;
    color: var(--text); font-size: 0.85rem; font-family: var(--font-ui);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
#search-input::placeholder { color: var(--muted); }
#search-input:focus { border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(124, 77, 221, 0.12); }
#search-input::-webkit-search-cancel-button { display: none; }

.search-clear {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(124, 77, 221, 0.12); border: none;
    color: var(--muted); font-size: 0.62rem; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.search-clear:hover { background: rgba(124, 77, 221, 0.25); color: var(--silver); }
.search-clear.show { display: flex; }

.filter-tabs {
    position: relative;
    display: flex; gap: 2px; flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.18); border-radius: 99px; padding: 3px;
}
.filter-indicator {
    position: absolute; top: 3px; left: 0;
    width: 0; height: 0; border-radius: 99px;
    background: rgba(124, 77, 221, 0.22);
    border: 1px solid var(--accent-bright);
    box-shadow: 0 0 14px rgba(124, 77, 221, 0.25);
    transition: transform 0.32s var(--ease-pop), width 0.32s var(--ease-pop);
    pointer-events: none; z-index: 0;
}
.filter-tab {
    position: relative; z-index: 1;
    padding: 8px 16px; border-radius: 99px;
    background: transparent; border: 1px solid transparent;
    color: var(--muted); font-size: 0.72rem; font-weight: 600;
    cursor: pointer; font-family: var(--font-ui);
    transition: color 0.2s; white-space: nowrap;
}
.filter-tab:hover:not(.active) { color: var(--silver); }
.filter-tab.active { color: var(--accent-bright); }

@media (prefers-reduced-motion: reduce) {
    .filter-indicator { transition: none; }
}

/* ── SECTION LABEL ── */
.section-label { margin-bottom: 28px; }
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem; color: var(--accent-bright);
    letter-spacing: 0.3px; margin-bottom: 10px;
}
.section-label h2 {
    font-family: var(--font-display); font-size: 1.9rem; font-weight: 450;
    font-style: italic;
    color: var(--text); margin-bottom: 8px; letter-spacing: 0;
}
.section-label p { font-family: var(--font-body); font-size: 0.86rem; color: var(--muted); max-width: 460px; line-height: 1.7; }

/* ── GRID ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

/* ── NO RESULTS ── */
.no-results {
    grid-column: 1 / -1; text-align: center; padding: 60px 0;
    color: var(--muted); font-size: 0.85rem;
    display: none; flex-direction: column; align-items: center; gap: 12px;
}
.no-results i { font-size: 2rem; color: rgba(124, 77, 221, 0.3); }
.no-results.show { display: flex; }

/* ── CARD ── */
.card {
    --card-accent: var(--accent-bright);
    --card-glow: rgba(124, 77, 221, 0.12);
    background: linear-gradient(160deg, rgba(124, 77, 221, 0.07) 0%, rgba(196, 188, 220, 0.02) 50%, rgba(0, 0, 0, 0.25) 100%);
    border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer; display: flex; flex-direction: column;
    transition: border-color 0.35s, box-shadow 0.35s, transform 0.3s;
    position: relative; overflow: hidden;
    opacity: 0; transform: translateY(22px);
    animation: card-in 0.52s var(--ease-out) forwards;
}
.card-accent-bar {
    position: absolute; left: 0; top: 20px; bottom: 20px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--card-accent); opacity: 0.8;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--silver), var(--card-accent), var(--silver), transparent);
    opacity: 0; transition: opacity 0.4s;
}
.card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--card-glow) 0%, transparent 65%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover, .card:focus-within {
    border-color: var(--card-accent);
    box-shadow: 0 0 0 1px rgba(124, 77, 221, 0.1), 0 14px 44px rgba(0, 0, 0, 0.65), 0 0 36px var(--card-glow);
    transform: translateY(-3px);
}
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card:hover::after, .card:focus-within::after { opacity: 1; }
@keyframes card-in { to { opacity: 1; transform: translateY(0); } }

/* ── CARD INNER ── */
.card-body-wrap { padding: 24px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.card-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, rgba(61, 31, 122, 0.5), rgba(124, 77, 221, 0.25));
    border: 1px solid rgba(167, 139, 250, 0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: var(--card-accent, var(--silver)); flex-shrink: 0;
    transition: color 0.2s;
}
.card-title {
    font-family: var(--font-ui);
    font-size: 1.05rem; font-weight: 600; color: var(--text); transition: color 0.2s; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card:hover .card-title, .card:focus-within .card-title { color: var(--card-accent); }

/* status-colored badges */
.badge {
    font-family: var(--font-mono);
    font-size: 0.6rem; font-weight: 400; padding: 4px 10px; border-radius: 6px;
    letter-spacing: 0.3px; white-space: nowrap; flex-shrink: 0;
}
.badge-active  { background: rgba(34, 197, 94, 0.1);  border: 1px solid rgba(34, 197, 94, 0.25);  color: var(--ok); }
.badge-unstable { background: rgba(251, 146, 60, 0.1); border: 1px solid rgba(251, 146, 60, 0.25); color: var(--unstable); }
.badge-beta    { background: rgba(234, 179, 8, 0.1);  border: 1px solid rgba(234, 179, 8, 0.25);  color: var(--warn); }
.badge-dev     { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.25); color: var(--info); }
.badge-inactive { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.22); color: var(--danger); }
.badge-default { background: rgba(124, 77, 221, 0.1); border: 1px solid rgba(167, 139, 250, 0.22); color: var(--silver-dim); }

.card-desc { font-size: 0.81rem; color: var(--muted); line-height: 1.72; margin-bottom: 16px; }
.card-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(196, 188, 220, 0.12), transparent); margin: 0 0 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tag {
    display: flex; align-items: center; gap: 6px;
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(196, 188, 220, 0.07);
    padding: 5px 11px; border-radius: 7px;
    font-family: var(--font-mono);
    font-size: 0.66rem; font-weight: 400; color: var(--silver-dim);
}
.tag i {
    font-size: 0.7rem;
    background: linear-gradient(135deg, var(--accent-bright), var(--silver));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── EXPAND BTN + LIKE BTN ROW ── */
.card-footer-row { display: flex; align-items: stretch; gap: 8px; margin-top: auto; }
.expand-btn {
    flex: 1; display: flex; align-items: center; justify-content: space-between;
    background: rgba(124, 77, 221, 0.05); border: 1px solid rgba(124, 77, 221, 0.14); border-radius: 11px;
    padding: 10px 14px; color: var(--silver-dim); font-size: 0.74rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; font-family: var(--font-ui);
}
.card.open .expand-btn { background: rgba(124, 77, 221, 0.14); border-color: rgba(167, 139, 250, 0.32); color: var(--silver); }
.chevron { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; transition: transform 0.38s var(--ease-pop); }
.card.open .chevron { transform: rotate(180deg); }

.like-btn {
    display: flex; align-items: center; gap: 7px; flex-shrink: 0;
    background: rgba(124, 77, 221, 0.05); border: 1px solid rgba(124, 77, 221, 0.14); border-radius: 11px;
    padding: 10px 14px; color: var(--silver-dim); font-size: 0.74rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    font-family: var(--font-mono);
}
.like-btn i { font-size: 0.82rem; transition: transform 0.25s var(--ease-pop); }
.like-btn:hover { border-color: rgba(248, 113, 113, 0.4); color: #f87171; }
.like-btn:active { transform: scale(0.94); }
.like-btn.liked { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.32); color: #f87171; cursor: default; }
.like-btn.liked i { transform: scale(1.1); }
.like-btn.liked:hover { border-color: rgba(248, 113, 113, 0.32); }
.like-btn.pending { opacity: 0.6; pointer-events: none; }

/* ── PANEL ── */
.panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1); }
.card.open .panel { grid-template-rows: 1fr; }
.panel-inner { overflow: hidden; }
.panel-body { padding-top: 18px; border-top: 1px dashed rgba(167, 139, 250, 0.2); margin-top: 14px; }
.panel-text { font-size: 0.79rem; color: var(--muted); line-height: 1.68; margin-bottom: 16px; }

.btn-row { display: flex; flex-direction: column; gap: 10px; }
.btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    text-decoration: none; padding: 11px 16px; border-radius: 12px;
    font-size: 0.8rem; font-weight: 600; font-family: var(--font-ui);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    position: relative; overflow: hidden;
    border: none; cursor: pointer;
}
.btn:active { transform: scale(0.97) !important; }
.btn-primary {
    background: linear-gradient(135deg, #4a1fa8, #7c4ddd);
    color: #fff; border: 1px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 4px 20px rgba(74, 31, 168, 0.4);
}
.btn-primary:hover { filter: brightness(1.18); box-shadow: 0 6px 28px rgba(124, 77, 221, 0.55); }
.btn-ghost { background: rgba(196, 188, 220, 0.04); color: var(--silver-dim); border: 1px solid rgba(196, 188, 220, 0.1); }
.btn-ghost:hover { background: rgba(196, 188, 220, 0.08); color: var(--silver); }
.btn-dark { background: #0e0a1c; color: var(--silver-dim); border: 1px solid rgba(196, 188, 220, 0.09); }
.btn-dark:hover { background: #16102a; border-color: rgba(167, 139, 250, 0.35); color: var(--silver); }

/* copy link btn */
.btn-copy {
    background: rgba(124, 77, 221, 0.08); color: var(--muted); border: 1px solid rgba(124, 77, 221, 0.15);
    font-size: 0.72rem; padding: 8px 14px; border-radius: 9px;
}
.btn-copy:hover { background: rgba(124, 77, 221, 0.15); color: var(--accent-bright); }
.btn-copy.copied { color: var(--ok); border-color: rgba(34, 197, 94, 0.25); }

/* ── SKELETON ── */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(196, 188, 220, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%; animation: shimmer 1.7s infinite; border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card {
    background: rgba(124, 77, 221, 0.03); border: 1px solid rgba(124, 77, 221, 0.07);
    border-radius: var(--radius); padding: 26px 22px;
    display: flex; flex-direction: column; gap: 12px;
}

/* ── TOAST ── */
#toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: #0e0a1c; border: 1px solid rgba(167, 139, 250, 0.35);
    color: var(--silver); font-size: 0.78rem; font-weight: 600; font-family: var(--font-ui);
    padding: 10px 20px; border-radius: 99px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); z-index: 9000;
    transition: transform 0.35s var(--ease-pop), opacity 0.35s;
    opacity: 0; pointer-events: none; white-space: nowrap;
    display: flex; align-items: center; gap: 8px;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
#toast i { color: var(--ok); }

/* ── MODAL ── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(5, 2, 13, 0.85);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    z-index: 800; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
    padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
    background: #0b0719; border: 1px solid rgba(167, 139, 250, 0.45); border-radius: var(--radius);
    padding: 32px 22px 24px; width: 100%; max-width: 370px; text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 50px rgba(124, 77, 221, 0.18);
    transform: translateY(18px) scale(0.95); transition: transform 0.4s var(--ease-pop);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-logo { width: 40px; height: 40px; margin: 0 auto 14px; filter: drop-shadow(0 0 10px rgba(124, 77, 221, 0.7)); }
.modal-logo img { width: 100%; height: 100%; object-fit: contain; }
.modal h3 {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 450; font-style: italic;
    color: var(--silver); margin-bottom: 22px;
}
.social-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px; border-radius: 12px; text-decoration: none; color: #fff;
    font-size: 0.84rem; font-weight: 600; margin-bottom: 10px;
    transition: filter 0.2s, transform 0.2s; font-family: var(--font-ui);
}
.social-btn:hover { filter: brightness(1.14); transform: translateY(-2px); }
.social-btn:active { transform: scale(0.98); }
.s-discord  { background: #5865F2; }
.s-twitter  { background: #1A8CD8; }
.s-telegram { background: #0088cc; }
.s-github   { background: #12101e; border: 1px solid rgba(196, 188, 220, 0.12); }
.s-generic  { background: rgba(124, 77, 221, 0.22); border: 1px solid rgba(167, 139, 250, 0.35); }
.modal-close {
    background: transparent; border: 1px solid rgba(196, 188, 220, 0.1); color: var(--muted);
    padding: 8px 24px; border-radius: 10px; font-size: 0.74rem; font-weight: 600;
    cursor: pointer; margin-top: 8px; transition: background 0.2s, color 0.2s, border-color 0.2s; font-family: var(--font-ui);
}
.modal-close:hover { background: rgba(239, 68, 68, 0.08); color: var(--danger); border-color: rgba(239, 68, 68, 0.22); }

/* ── RADIO PILL ── */
.radio-pill {
    position: relative; display: flex; align-items: center; gap: 10px;
    background: rgba(8, 4, 26, 0.9); border: 1px solid var(--border); border-radius: 99px;
    padding: 7px 13px 7px 10px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s; overflow: hidden; max-width: 200px;
}
.radio-pill.mini { max-width: 42px; padding: 8px; border-color: rgba(167, 139, 250, 0.55); }
.radio-pill.mini .radio-label { opacity: 0; width: 0; }
.radio-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); flex-shrink: 0; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.radio-pill.paused .radio-dot { animation: none; background: var(--muted); }
.radio-label { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 400; color: var(--silver-dim); white-space: nowrap; transition: opacity 0.3s, width 0.35s; overflow: hidden; }
.radio-toggle {
    width: 25px; height: 25px; background: rgba(124, 77, 221, 0.15); border: 1px solid rgba(124, 77, 221, 0.25);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--accent-bright); font-size: 0.6rem;
    transition: background 0.2s, box-shadow 0.2s; flex-shrink: 0;
}
.radio-toggle:hover { background: rgba(124, 77, 221, 0.3); box-shadow: 0 0 12px rgba(124, 77, 221, 0.5); }

/* ── SCROLL TO TOP ── */
#scroll-top {
    position: fixed; bottom: 28px; right: 22px; z-index: 500;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(8, 4, 26, 0.9); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--silver-dim); font-size: 0.8rem; cursor: pointer;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s, border-color 0.25s, box-shadow 0.25s, color 0.25s, transform 0.25s;
}
#scroll-top.show { opacity: 1; pointer-events: auto; }
#scroll-top:hover { border-color: var(--accent-bright); box-shadow: 0 0 16px var(--accent-glow); color: var(--accent-bright); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
    width: 100%; text-align: center; padding: 22px;
    font-family: var(--font-mono);
    color: rgba(124, 116, 153, 0.4); font-size: 0.66rem; letter-spacing: 0.4px;
    border-top: 1px solid rgba(124, 77, 221, 0.07); position: relative; z-index: 2;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .logo-mark,
    .stat-item,
    .card,
    .radio-dot,
    .hero-status-dot,
    .orbit-ring,
    .skeleton {
        animation: none !important;
    }
    .card { opacity: 1; transform: none; }
    .stat-item { opacity: 1; transform: none; }
    * {
        transition-duration: 0.001ms !important;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
    header { padding: 100px 18px 40px; }
    .hero-grid { flex-direction: column; gap: 24px; }
    .hero-orbit { width: 76px; height: 76px; }
    .logo-mark { width: 76px; height: 76px; }
    header h1 { font-size: clamp(2.4rem, 13vw, 3.4rem); }
    .stats-bar { flex-wrap: wrap; gap: 20px 0; }
    .stat-item { padding-right: 24px; margin-right: 24px; }
}

@media (max-width: 600px) {
    main { padding: 0 14px 48px; }
    .grid { gap: 14px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .filter-tabs { justify-content: center; }
}
