*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #080612;
    --bg2:       #0d0a1c;
    --surface:   rgba(255,255,255,0.04);
    --surface2:  rgba(255,255,255,0.07);
    --glass:     rgba(255,255,255,0.05);
    --glass-b:   rgba(255,255,255,0.08);

    --gold:      #e8b84b;
    --gold-dim:  rgba(232,184,75,0.15);
    --gold-glow: rgba(232,184,75,0.25);

    --teal:      #2ee8c0;
    --teal-dim:  rgba(46,232,192,0.12);

    --pink:      #e84fa0;
    --pink-dim:  rgba(232,79,160,0.1);

    --violet:    #9b6dff;
    --violet-dim:rgba(155,109,255,0.1);

    --red:       #f05050;
    --red-dim:   rgba(240,80,80,0.1);

    --green:     #3dd68c;
    --green-dim: rgba(61,214,140,0.1);

    --blue:      #4fa3e8;
    --orange:    #f07845;

    --text:      #ede9ff;
    --text2:     #7a7096;
    --text3:     #4d4566;
    --border:    rgba(255,255,255,0.06);
    --border2:   rgba(255,255,255,0.10);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── AMBIENT BACKGROUND ──*/
.bg-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-ambient::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(155,109,255,0.07) 0%, transparent 65%);
    border-radius: 50%;
}
.bg-ambient::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46,232,192,0.05) 0%, transparent 65%);
    border-radius: 50%;
}
.bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* ── LIGHT STRING ── */
.light-string {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    height: 30px;
    overflow: hidden;
    padding-top: 8px;
}
.light-string svg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* ── HERO ── */
.hero {
    position: relative;
    z-index: 1;
    padding: 72px 2rem 56px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-dim);
    border: 1px solid rgba(232,184,75,0.2);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold);
}

.hero h1 .teal { color: var(--teal); }

.hero-sub {
    font-size: 1rem;
    color: var(--text2);
    max-width: 480px;
    margin: 0 auto 44px;
    line-height: 1.65;
    font-weight: 400;
}

/* ── STATS ── */
.stats-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 480px;
    margin: 0 auto 64px;
    background: var(--glass);
    border: 1px solid var(--border2);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.stat-item {
    flex: 1;
    padding: 20px;
    text-align: center;
    position: relative;
}
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; height: 60%;
    width: 1px;
    background: var(--border2);
}

.stat-num {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text3);
}

/* ── DISCORD ── */
.discord-section {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto 56px;
    padding: 0 2rem;
}

.discord-card {
    background: var(--glass);
    border: 1px solid var(--border2);
    border-radius: 20px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: center;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.discord-card::before {
    content: '';
    position: absolute;
    left: -60px; top: -60px;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(88,101,242,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.discord-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(88,101,242,0.12);
    border: 1px solid rgba(88,101,242,0.2);
    color: #8b9cf9;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.discord-info h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.discord-info p {
    color: var(--text2);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 400px;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s;
}
.btn-discord:hover {
    background: #6b78f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88,101,242,0.35);
}

.discord-widget iframe {
    width: 100%;
    height: 380px;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .discord-card { grid-template-columns: 1fr; }
    .discord-widget iframe { height: 320px; }
}

/* ── FILTERS ── */
.filters-wrap {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto 40px;
    padding: 0 2rem;
}

.filters-inner {
    background: var(--glass);
    border: 1px solid var(--border2);
    border-radius: 18px;
    padding: 22px 26px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}

.filter-col { flex: 1; min-width: 170px; }
.filter-col.narrow { flex: 0; min-width: 130px; }

.filter-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 10px;
}

.filter-label svg { opacity: 0.6; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }

.pill {
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    color: var(--text2);
    background: transparent;
    transition: all .18s;
    cursor: pointer;
    white-space: nowrap;
}
.pill:hover { border-color: var(--border2); color: var(--text); background: var(--surface2); }

.pill.active { font-weight: 600; }
.pill.active-gold   { border-color: rgba(232,184,75,0.4);  color: var(--gold);   background: var(--gold-dim); }
.pill.active-teal   { border-color: rgba(46,232,192,0.35); color: var(--teal);   background: var(--teal-dim); }
.pill.active-pink   { border-color: rgba(232,79,160,0.35); color: var(--pink);   background: var(--pink-dim); }
.pill.active-violet { border-color: rgba(155,109,255,0.35);color: var(--violet); background: var(--violet-dim); }
.pill.active-green  { border-color: rgba(61,214,140,0.35); color: var(--green);  background: var(--green-dim); }
.pill.active-red    { border-color: rgba(240,80,80,0.35);  color: var(--red);    background: var(--red-dim); }

/* ── MAIN ── */
.main {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem 100px;
}

/* ── CAT BLOCK ── */
.cat-block { margin-bottom: 64px; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .cat-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.section-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text3);
    background: var(--surface2);
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

/* ── GRID ── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 16px;
}

/* ── CARD ── */
.card {
    background: var(--glass);
    border: 1px solid var(--border2);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    animation: fadeUp .4s ease both;
    backdrop-filter: blur(8px);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.14);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card:nth-child(1) { animation-delay: .04s; }
.card:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3) { animation-delay: .12s; }
.card:nth-child(4) { animation-delay: .16s; }
.card:nth-child(5) { animation-delay: .20s; }
.card:nth-child(6) { animation-delay: .24s; }

.card-thumb {
    position: relative;
    height: 175px;
    background: var(--bg2);
    overflow: hidden;
}

.card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.card:hover .card-thumb img { transform: scale(1.06); }

.card-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(8,6,18,0.75) 100%);
}

/* version badge */
.v-badge {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 6px;
}
.v-FS19 { background: rgba(240,120,69,0.2);  color: var(--orange); border: 1px solid rgba(240,120,69,0.35); }
.v-FS22 { background: rgba(61,214,140,0.15); color: var(--green);  border: 1px solid rgba(61,214,140,0.3); }
.v-FS25 { background: rgba(79,163,232,0.15); color: var(--blue);   border: 1px solid rgba(79,163,232,0.3); }

/* price badge on thumb */
.p-badge {
    position: absolute;
    bottom: 10px; left: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.p-free { background: rgba(61,214,140,0.15); color: var(--green); border: 1px solid rgba(61,214,140,0.3); }
.p-paid { background: rgba(232,184,75,0.15); color: var(--gold);  border: 1px solid rgba(232,184,75,0.3); }

/* card body */
.card-body {
    padding: 14px 16px 16px;
}

.card-body h3 {
    font-family: 'Syne', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-author {
    font-size: 0.72rem;
    color: var(--text2);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.avatar-chip {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.cat-chip {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 6px;
}
.cc-forain     { background: var(--gold-dim);   color: var(--gold);   }
.cc-cirque     { background: var(--pink-dim);   color: var(--pink);   }
.cc-decoration { background: var(--teal-dim);   color: var(--teal);   }
.cc-stand      { background: var(--violet-dim); color: var(--violet); }
.cc-creation3d { background: var(--red-dim);    color: var(--red);    }

.card-price-num {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
}
.card-price-free {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green);
}

.btn-see {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text2);
    background: var(--surface);
    border: 1px solid var(--border2);
    padding: 9px 14px;
    border-radius: 10px;
    transition: all .2s;
}
.btn-see:hover {
    background: var(--gold);
    color: #0d0a1a;
    border-color: var(--gold);
}
.btn-see svg { flex-shrink: 0; transition: transform .2s; }
.btn-see:hover svg { transform: translateX(2px); }

/* ── EMPTY ── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text2);
}
.empty-icon {
    width: 56px; height: 56px;
    margin: 0 auto 18px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    opacity: .6;
}
.empty-state h3 { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 0.88rem; max-width: 340px; margin: 0 auto; }

/* ── FOOTER ── */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 28px 2rem;
    text-align: center;
    color: var(--text3);
    font-size: 0.78rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .stats-row { flex-direction: column; }
    .stat-item + .stat-item::before { display: none; }
    .stat-item { border-top: 1px solid var(--border2); }
    .stat-item:first-child { border-top: none; }

    .main, .filters-wrap, .discord-section { padding-left: 1rem; padding-right: 1rem; }
    .filters-inner { gap: 18px; }
    .hero { padding: 48px 1rem 40px; }
}