/* ============================================================
   Decred Node — Glassy Monokai
   Frosted translucent panels over drifting colored glow.
   ============================================================ */

/* Self-hosted variable fonts, latin subset (SIL OFL 1.1, see assets/fonts/).
   Other scripts (CJK, Hangul) fall back to system fonts as before. */
@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;

    /* Monokai palette */
    --fg: #f8f8f2;
    --muted: #9b9a90;
    --comment: #938f7a; /* Monokai's #75715e, lifted to 5.7:1 for small text */
    --pink: #f92672;
    --orange: #fd971f;
    --yellow: #e6db74;
    --green: #a6e22e;
    --cyan: #66d9ef;
    --purple: #ae81ff;

    /* Decred brand accents */
    --teal: #2ed6a1;
    --brand-grad: linear-gradient(120deg, #2ed6a1, #66d9ef);

    /* Canvas */
    --bg: #131310;

    /* Glass material */
    --glass: rgba(39, 40, 34, 0.55);
    --glass-soft: rgba(39, 40, 34, 0.5);
    --glass-bar: rgba(0, 0, 0, 0.18);
    --hairline: 1px solid rgba(248, 248, 242, 0.1);
    --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --depth: 0 16px 50px rgba(0, 0, 0, 0.45);
    --depth-sm: 0 8px 30px rgba(0, 0, 0, 0.4);

    /* Type */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Menlo', 'Ubuntu Mono', monospace;

    /* Layout */
    --max-width: 900px;
    --nav-width: 1100px;
}

/* Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scrollbar-gutter: stable;
    /* Keep focused and anchored content clear of the sticky nav; script.js
       measures the bar, whose height depends on width and label lengths */
    scroll-padding-top: calc(var(--header-h, 64px) + 24px);
}

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

/* The UA's display:none for [hidden] loses to any class that sets display */
[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* One consistent keyboard focus ring; mouse clicks don't show it */
:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* ---- Background glow blobs ----
   The falloff is baked into each gradient instead of a filter: blur(), so
   the endlessly animating layer (and every glass panel over it) doesn't
   cost a full-screen blur per frame. */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
}

.blob-teal {
    top: -180px;
    left: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(46, 214, 161, 0.174), rgba(46, 214, 161, 0.141) 20%,
        rgba(46, 214, 161, 0.081) 40%, rgba(46, 214, 161, 0.024) 59%, transparent 75%);
    animation: floatA 20s ease-in-out infinite;
}

.blob-pink {
    top: 280px;
    right: -160px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(249, 38, 114, 0.126), rgba(249, 38, 114, 0.102) 20%,
        rgba(249, 38, 114, 0.059) 40%, rgba(249, 38, 114, 0.018) 59%, transparent 75%);
    animation: floatB 24s ease-in-out infinite;
}

.blob-cyan {
    bottom: -200px;
    left: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 217, 239, 0.111), rgba(102, 217, 239, 0.090) 20%,
        rgba(102, 217, 239, 0.052) 40%, rgba(102, 217, 239, 0.015) 59%, transparent 75%);
    animation: floatC 28s ease-in-out infinite;
}

@keyframes floatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.15); }
}

@keyframes floatB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

@keyframes floatC {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 40px) scale(1.2); }
}

/* ---- Layout shell ---- */
.container {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin-inline: auto;
    padding: 0 24px 90px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 18px 64px;
    }
}

/* ---- Site header: floating glass nav bar ---- */
.site-header {
    position: sticky;
    top: 12px;
    z-index: 50;
    max-width: var(--nav-width);
    margin: 12px auto 0;
    padding-inline: 16px;
}

.nav {
    position: relative;
    isolation: isolate;
    /* Equal side columns keep the links centred whatever the brand and
       actions widths; narrow screens switch to the wrapping flex layout */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px 24px;
    padding: 9px 14px;
    border-radius: 16px;
    border: var(--hairline);
    box-shadow: var(--depth-sm), var(--inset-hi);
}

/* The glass lives on a pseudo-element: a backdrop-filter on .nav itself
   would make it a backdrop root, and the language menu's own blur would
   then see nothing below the bar */
.nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(24, 24, 20, 0.78);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.nav-brand {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
    font-weight: 600;
    letter-spacing: -0.2px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-brand img {
    width: 28px;
    height: 28px;
    display: block;
}

.nav-links {
    order: 2;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 28px;
    list-style: none;
    font-size: 14px;
}

.nav-links a {
    /* Brighter than --muted: bright content can scroll under the glass */
    color: #c4c3b9;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--fg);
}

.nav-actions {
    order: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Narrow: links drop to their own row under the brand and actions */
@media (max-width: 880px) {
    .nav {
        display: flex;
        flex-wrap: wrap;
    }

    .nav-links {
        order: 4;
        flex-basis: 100%;
        justify-content: space-around;
        gap: 6px 16px;
        padding-top: 8px;
        border-top: 1px solid rgba(248, 248, 242, 0.07);
        font-size: 13.5px;
    }

    .nav-actions {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding-inline: 10px;
    }

    .nav {
        column-gap: 12px;
        padding-inline: 10px;
    }

    .nav-links {
        gap: 6px 12px;
        font-size: 13px;
    }
}

/* Short viewports (landscape phones, zoomed desktops): let the bar scroll away */
@media (max-height: 500px) {
    .site-header {
        position: relative;
        top: 0;
    }

    html {
        scroll-padding-top: 0;
    }
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 76px 0 60px;
}

@media (max-width: 560px) {
    .hero {
        padding: 52px 0 40px;
    }
}

.hero-badge {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    margin: 0 auto 22px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--glass-soft);
    border: var(--hairline);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
}

/* Tracked uppercase reads as gaps between CJK glyphs */
:is(:lang(ja), :lang(ko), :lang(zh)) .hero-badge {
    letter-spacing: 1px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    animation: pulse 2.4s ease-out infinite;
}

/* fit-content so the gradient spans the words, not the full column */
h1 {
    width: fit-content;
    margin-inline: auto;
    font-size: clamp(44px, 9vw, 72px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 560px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
    text-wrap: balance;
    word-break: auto-phrase;
}

@media (max-width: 560px) {
    .hero-lead {
        font-size: 16px;
    }
}

/* ---- Language selector ---- */
.lang-selector {
    position: relative;
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(248, 248, 242, 0.04);
    border: var(--hairline);
    color: var(--fg);
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
    border-color: rgba(46, 214, 161, 0.4);
    color: var(--teal);
}

.lang-btn .caret {
    font-size: 0.8em;
    color: var(--comment);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    border-radius: 14px;
    overflow: hidden auto;
    overscroll-behavior: contain;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: var(--hairline);
    box-shadow: var(--depth), var(--inset-hi);
    z-index: 60;
    display: none;
    padding: 6px;
}

.lang-menu.show {
    display: block;
    animation: pop 0.18s ease-out;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 14px;
    text-align: start;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.lang-option:hover,
.lang-option:focus-visible {
    background: rgba(102, 217, 239, 0.1);
    color: var(--cyan);
}

.lang-option[aria-checked="true"] {
    color: var(--teal);
    background: rgba(46, 214, 161, 0.1);
}

/* A drawn tick, so the current language isn't marked by colour alone
   (no text content, so it stays out of the accessible name) */
.lang-option[aria-checked="true"]::after {
    content: "";
    width: 9px;
    height: 5px;
    margin-inline-start: auto;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: translateY(-2px) rotate(-45deg);
}

/* ---- Tabs ---- */
.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

@media (max-width: 480px) {
    .tabs {
        gap: 8px;
    }
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 13px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    color: var(--muted);
    background: var(--glass-soft);
    border: var(--hairline);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
    .tab {
        flex: 1;
        justify-content: center;
        /* min-width + hyphens let long labels (de "Schnellinstallation") wrap at 320px */
        min-width: 0;
        hyphens: auto;
        padding: 11px 14px;
        font-size: 14px;
    }
}

.tab:hover:not(.active) {
    color: var(--fg);
    border-color: rgba(46, 214, 161, 0.3);
}

.tab.active {
    color: #0c1f1a;
    /* border-box: otherwise the gradient tiles into the transparent border as 1px seams */
    background: var(--brand-grad) border-box;
    border: 1px solid transparent;
    box-shadow: 0 8px 26px rgba(46, 214, 161, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tab-icon {
    font-size: 1.05em;
    line-height: 1;
}

/* ---- Tab panels ---- */
.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

/* ---- Section headers ---- */
.section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.section-num {
    font-family: var(--font-mono);
    color: var(--pink);
    font-size: 15px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--fg);
}

@media (max-width: 560px) {
    .section-title {
        font-size: 19px;
    }
}

.lead {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 620px;
}

@media (max-width: 560px) {
    .lead {
        font-size: 14px;
    }
}

.note {
    margin: 18px 2px 0;
    color: var(--comment);
    font-size: 13.5px;
    line-height: 1.6;
    max-width: 640px;
}

.highlight {
    color: var(--purple);
}

.mono {
    font-family: var(--font-mono);
}

.inline-code {
    font-family: var(--font-mono);
    color: var(--fg);
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(248, 248, 242, 0.08);
    font-size: 0.92em;
}

/* ---- Code card (glass terminal/editor) ----
   Panels that only ever sit over the soft glow skip backdrop-filter: it
   was visually identical there, and each one re-blurred every frame. Only
   overlays above real content (nav, language menu, toast) keep it. */
.code-card {
    border-radius: 18px;
    overflow: hidden;
    background: var(--glass);
    border: var(--hairline);
    box-shadow: var(--depth), var(--inset-hi);
}

#installCard {
    cursor: pointer;
}

.code-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(248, 248, 242, 0.07);
    background: var(--glass-bar);
}

.chrome-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-pink { background: var(--pink); }
.dot-orange { background: var(--orange); }
.dot-green { background: var(--green); }

.chrome-label {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--comment);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.code-body {
    padding: 24px 22px;
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: auto;
    color: var(--fg);
}

pre.code-body {
    font-size: 13.5px;
    line-height: 1.75;
    white-space: pre;
}

@media (max-width: 480px) {
    pre.code-body {
        font-size: 12px;
    }
}

/* The card clips overflow, so draw the ring inside the scroller */
pre.code-body:focus-visible {
    outline-offset: -3px;
    border-radius: 0 0 17px 17px;
}

@media (max-width: 480px) {
    .terminal {
        font-size: 13px;
    }
}

.terminal .command {
    user-select: all;
}

.prompt {
    color: var(--green);
    user-select: none;
}

.cursor {
    display: inline-block;
    width: 9px;
    height: 18px;
    background: var(--teal);
    margin-left: 4px;
    vertical-align: -3px;
    animation: blink 1.1s step-end infinite;
}

/* Monokai syntax tokens */
.mk-fg { color: var(--fg); }
.mk-pink { color: var(--pink); }
.mk-orange { color: var(--orange); }
.mk-yellow { color: var(--yellow); }
.mk-green { color: var(--green); }
.mk-cyan { color: var(--cyan); }
.mk-purple { color: var(--purple); }
.mk-comment { color: var(--comment); }

/* ---- Chrome-bar buttons (copy, demo pause/play) ---- */
.copy-btn,
.demo-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 9px;
    background: rgba(46, 214, 161, 0.12);
    border: 1px solid rgba(46, 214, 161, 0.35);
    color: var(--teal);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
    flex-shrink: 0;
}

.copy-btn:hover,
.demo-toggle:hover {
    background: rgba(46, 214, 161, 0.2);
    border-color: rgba(46, 214, 161, 0.55);
}

.copy-btn:active,
.demo-toggle:active {
    transform: translateY(1px);
}

.copy-ico {
    font-size: 1.1em;
    line-height: 1;
}

/* ---- Download row ---- */
.download-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    background: linear-gradient(120deg, #2ed6a1, #1ec9c9);
    color: #0c1f1a;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(46, 214, 161, 0.25);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(46, 214, 161, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.then-run {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--muted);
}

/* ---- Demo ---- */
.demo-section {
    margin-top: 56px;
}

/* The demo recording sits flush in the same faux-terminal shell as the
   install card above. The termtosvg recording carries its own title bar
   (three traffic-light dots up to ~y45 of its 847x571 viewBox), which
   would duplicate our chrome bar — so we crop it. Both the title bar and
   a width-relative margin scale with the SVG's rendered width, so
   margin-top:-5.31% (45/847) hides exactly the title bar at any size
   while the overflow:hidden wrapper keeps the playback controls intact. */
.demo-clip {
    overflow: hidden;
    line-height: 0;
}

/* aspect-ratio reserves the box before the SVG loads, so nothing below jumps */
.demo-image {
    width: 100%;
    height: auto;
    aspect-ratio: 847 / 571;
    display: block;
    margin-top: -5.31%;
}

/* ---- More tools ---- */
.tools-section {
    margin-top: 56px;
}

.section-num-muted {
    color: var(--comment);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 14px;
    margin-top: 18px;
    list-style: none;
}

.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    padding: 18px;
    border-radius: 16px;
    background: var(--glass-soft);
    border: 1px solid rgba(248, 248, 242, 0.09);
    box-shadow: var(--inset-hi);
    color: var(--fg);
    text-decoration: none;
    transition: border-color 0.22s ease, transform 0.22s ease;
}

.tool-card:hover {
    border-color: rgba(46, 214, 161, 0.4);
    transform: translateY(-2px);
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(46, 214, 161, 0.12);
    color: var(--teal);
}

.tool-icon svg {
    width: 20px;
    height: 20px;
}

.tool-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tool-name {
    font-size: 15.5px;
    font-weight: 600;
}

.tool-card:hover .tool-name {
    color: var(--teal);
}

.tool-host {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cyan);
}

.tool-desc {
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
}

/* ---- Footer ---- */
.footer {
    margin-top: 72px;
    padding-top: 36px;
    border-top: 1px solid rgba(248, 248, 242, 0.08);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    background: var(--glass-soft);
    border: 1px solid rgba(248, 248, 242, 0.09);
    color: var(--fg);
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

@media (max-width: 480px) {
    .footer-link {
        flex: 1 1 calc(50% - 12px);
        justify-content: center;
    }
}

.footer-link:hover {
    border-color: rgba(46, 214, 161, 0.4);
    color: var(--teal);
    transform: translateY(-2px);
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--comment);
}

.footer-text a {
    color: var(--teal);
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    top: 26px;
    left: 50%;
    transform: translateX(-50%) translateY(-18px) scale(0.92);
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 14px;
    background: rgba(39, 40, 34, 0.7);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(166, 226, 46, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(166, 226, 46, 0.18);
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--fg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* visibility flips after the fade-out, keeping the idle toast out of the reading order */
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0.3s;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    transition-delay: 0s;
}

.toast-check {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green);
    color: var(--bg);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* ---- Animations ---- */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 214, 161, 0.55); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(46, 214, 161, 0); }
}

@keyframes pop {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- No-JS fallback (class on <html>, removed by inline head script) ---- */
.no-js .copy-btn,
.no-js .lang-selector {
    display: none;
}

.no-js .tabs {
    display: none;
}

.no-js .tab-content {
    display: block;
    margin-bottom: 30px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .cursor { opacity: 1; }
}
