:root {
    --acid: #bcff2f;
    --acid-ink: #0d1206;
    --bg: #070707;
    --bg-soft: #0e0e0e;
    --card: #101010;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f5f5f3;
    --muted: #8d8d88;
    --danger: #ff6b6b;
    --warn: #f0c14b;
    --radius: 20px;
}

::selection {
    background: rgba(188, 255, 47, 0.28);
    color: #fff;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--acid);
    outline-offset: 3px;
}

html, body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", system-ui, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(900px 420px at 8% -8%, rgba(188, 255, 47, 0.09), transparent 55%),
        radial-gradient(700px 300px at 100% 0%, rgba(188, 255, 47, 0.04), transparent 40%),
        linear-gradient(180deg, #0b0b0b 0%, var(--bg) 220px);
}

body::before {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    z-index: 0;
}

.site-header,
.site-body,
.site-footer { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; }

a { color: var(--acid); text-decoration: none; }
a:hover { color: #d8ff6a; }

h1, h2, h3, h4 {
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.site-body { flex: 1 0 auto; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 7, 7, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.site-header .navbar { padding: 0.85rem 0; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff !important;
}

.brand-logo {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
}

.brand-mark { color: var(--acid); }

.navbar-toggler {
    border: 1px solid var(--line);
    padding: 0.2rem 0.45rem;
}

.navbar-toggler:focus { box-shadow: none; }

.site-nav { gap: 0.2rem; }

.site-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted) !important;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.75rem !important;
    position: relative;
}

.site-nav .nav-link i {
    font-size: 1rem;
    line-height: 1;
}

.site-nav .nav-link:hover { color: #fff !important; }

.site-nav .nav-link.active {
    color: #fff !important;
}

.site-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.1rem;
    height: 2px;
    background: var(--acid);
    box-shadow: 0 0 12px rgba(188, 255, 47, 0.7);
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.lang-switch button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.32rem 0.6rem;
}

.lang-switch button.active {
    background: var(--acid);
    color: var(--acid-ink);
}

/* Hero */
.page-hero {
    padding: 2.8rem 0 2.2rem;
    border-bottom: 1px solid var(--line);
}

.page-hero--home { padding: 3.4rem 0 2.6rem; }

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--acid);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.hero-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 10px var(--acid);
}

.hero-title,
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.02;
    max-width: 18ch;
    margin-bottom: 1rem;
}

.hero-text,
.page-hero .hero-text {
    max-width: 38rem;
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.6rem;
    margin-top: 1.6rem;
}

.hero-stat {
    min-width: 7rem;
}

.hero-stat b {
    display: block;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 1.35rem;
    color: #fff;
}

.hero-stat span {
    color: var(--muted);
    font-size: 0.8rem;
}

.ad-rail,
.ad-banner {
    display: flex;
    justify-content: center;
    padding: 0.9rem 0;
}

.ad-rail {
    border-bottom: 1px solid var(--line);
}

.ad-banner {
    margin: 0 0 2rem;
}

.ad-unit {
    width: min(100%, 728px);
    margin: 0 auto;
}

.ad-unit iframe {
    display: block;
    width: 100%;
    min-height: 100px;
    border: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

/* Content */
.site-main { padding: 2.3rem 0 4rem; }

.block { margin-bottom: 3rem; }

.block-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
}

.block-head h2 {
    font-size: 1.45rem;
    margin: 0 0 0.25rem;
}

.block-head p { color: var(--muted); margin: 0; max-width: 38rem; }

.cta-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.4rem;
    align-items: center;
    padding: 1.4rem 1.5rem;
    margin-bottom: 2.4rem;
    border-radius: var(--radius);
    border: 1px solid rgba(188, 255, 47, 0.22);
    background:
        linear-gradient(90deg, rgba(188, 255, 47, 0.08), transparent 45%),
        #0f0f0f;
}

.cta-panel h2 { font-size: 1.35rem; margin: 0 0 0.35rem; }
.cta-panel p { color: var(--muted); margin: 0; max-width: 40rem; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.step {
    padding: 1rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
}

.step b {
    font-family: "Manrope", system-ui, sans-serif;
    color: var(--acid);
    font-size: 1.1rem;
}

.step p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }

.btn-acid,
.btn-ghost,
.resource-card__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
}

.btn-acid {
    background: var(--acid);
    color: var(--acid-ink) !important;
    padding: 0.78rem 1.2rem;
    box-shadow: 0 0 24px rgba(188, 255, 47, 0.18);
}

.btn-acid:hover { background: #d4ff63; color: var(--acid-ink) !important; }

.btn-ghost {
    border-color: var(--line);
    color: var(--text) !important;
    padding: 0.62rem 1rem;
}

.btn-ghost:hover { border-color: var(--acid); color: var(--acid) !important; }

.block-more { display: flex; justify-content: flex-end; margin-top: 1rem; }

/* Cards */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.resource-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.15rem 1.15rem 1.05rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
    border-color: rgba(188, 255, 47, 0.32);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.resource-card.is-verified { border-left: 3px solid var(--acid); }

.resource-card.is-closed { opacity: 0.55; }

.resource-card.is-empty {
    border-color: rgba(240, 193, 75, 0.45);
}

.resource-card__empty {
    margin: 0 0 0.85rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: rgba(240, 193, 75, 0.12);
    color: var(--warn);
    font-size: 0.88rem;
    font-weight: 700;
}

.resource-card__top {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.95rem;
}

.resource-card__icon,
.resource-card__mono {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #141414;
    border: 1px solid rgba(188, 255, 47, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.resource-card__icon {
    object-fit: contain;
    padding: 5px;
}

.resource-card__mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--acid);
    background: linear-gradient(160deg, #1b2210, #101010);
}

.resource-card__title {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.resource-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.resource-card__flags {
    display: flex;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.resource-card__slogan,
.resource-card__closed {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}

.resource-card__closed {
    color: var(--danger);
    font-weight: 700;
}

.resource-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.75rem;
    margin: 0 0 0.9rem;
    padding: 0.75rem 0.8rem;
    background: #0a0a0a;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.resource-card__stats div { min-width: 0; }

.resource-card__stats dt {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.28rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.resource-card__stats dd {
    margin: 0.12rem 0 0;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-card__facts {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
}

.resource-card__facts li {
    font-size: 0.84rem;
    color: #d2d2cc;
    margin-bottom: 0.28rem;
}

.resource-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.resource-card__coins {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.resource-card__coins img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.resource-card__go {
    width: auto;
    min-width: 108px;
    padding: 0.52rem 0.9rem;
    border-color: rgba(188, 255, 47, 0.4);
    background: transparent;
    color: var(--acid) !important;
    font-size: 0.84rem;
}

.resource-card:hover .resource-card__go,
.resource-card__go:hover {
    background: var(--acid);
    color: var(--acid-ink) !important;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 2.8rem 1rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.coin-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.coin-strip a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--card);
    transition: border-color 0.15s ease;
}

.coin-strip a:hover { border-color: var(--acid); }

.coin-strip img { width: 100%; height: 100%; object-fit: cover; }

.pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.article-card {
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.4rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.article-card__date,
.article-meta {
    margin: 0 0 0.55rem;
    color: #6a6a64;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-card h2,
.article-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.article-card h2 a,
.article-card h3 a { color: var(--text); }
.article-card h2 a:hover,
.article-card h3 a:hover { color: var(--acid); }
.article-card p { color: var(--muted); margin: 0 0 1rem; flex: 1; }
.article-card__more { font-weight: 700; }

.article-body {
    max-width: 44rem;
    margin: 0 auto;
    color: #d7d7d2;
    font-size: 1.06rem;
    line-height: 1.75;
}

.article-body .lead {
    font-size: 1.18rem;
    color: #ecece8;
    line-height: 1.65;
}

.article-body h2 {
    margin: 2.2rem 0 0.75rem;
    font-size: 1.4rem;
    color: #fff;
}

.article-body h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.12rem;
    color: #fff;
}

.article-body p { margin: 0 0 1.05rem; }

.article-body ul,
.article-body ol {
    margin: 0 0 1.2rem;
    padding-left: 1.25rem;
}

.article-body li { margin: 0 0 0.4rem; }

.article-body a { font-weight: 600; }

.article-back { margin: 2rem 0 0; }

.article-related {
    max-width: 54rem;
    margin: 3rem auto 0;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.article-related h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.site-footer {
    margin-top: auto;
    padding: 2rem 0 1.2rem;
    border-top: 1px solid var(--line);
    background: #050505;
}

.site-footer p, .site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--acid); }

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-copy {
    display: flex;
    justify-content: space-between;
    margin-top: 1.2rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: #666;
}

.text-light-green { color: var(--acid); }
.text-version { color: #555; font-size: 0.7rem; }

@media (max-width: 991.98px) {
    .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-panel, .steps { grid-template-columns: 1fr; }
    .hero-title, .page-hero h1 { max-width: none; }
    .site-nav .nav-link.active::after { display: none; }
    .site-nav .nav-link.active { color: var(--acid) !important; }
    .footer-nav { justify-content: flex-start; margin-top: 1rem; }
    .block-head { display: block; }
}

@media (max-width: 575.98px) {
    .resource-grid, .article-grid { grid-template-columns: 1fr; }
}
