/* ── RESET & VARS ──────────────────────────────────────────────────────── */
:root {
    --bg: #0a0a0a; --surface: #111; --border: #1e1e1e;
    --accent: #00ff87; --text: #f0f0f0; --muted: #d8d8d8; --muted2: #d8d8d8;
    --font-display: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    color-scheme: dark;
}
/* ── LIGHT THEME ───────────────────────────────────────────────────────── */
[data-theme="light"] {
    --bg: #f7f7f5; --surface: #ffffff; --border: #dde0dc;
    --accent: #008a47; --text: #0f0f0f; --muted: #555; --muted2: #888;
    color-scheme: light;
}
[data-theme="light"] #nav.scrolled { background: rgba(247,247,245,0.94) !important; }
[data-theme="light"] .job-card { background: rgba(255,255,255,0.85); }
[data-theme="light"] .job-card:hover { background: rgba(255,255,255,1); }
[data-theme="light"] .stats-bar { background: rgba(255,255,255,0.8); }
[data-theme="light"] .search-form input { background: rgba(255,255,255,0.95); }
[data-theme="light"] .nl-inner input { background: rgba(255,255,255,0.95); }
[data-theme="light"] .close-btn { background: rgba(247,247,245,0.95); }
[data-theme="light"] .newsletter { background: transparent; }
[data-theme="light"] .nl-glow { background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,138,71,0.06), transparent); }

/* ── THEME TOGGLE ──────────────────────────────────────────────────────── */
.theme-btn {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: var(--muted); background: none; border: 1px solid var(--border);
    padding: 6px 12px; cursor: pointer; letter-spacing: 0.06em;
    transition: color 0.2s, border-color 0.2s;
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ── SMOOTH THEME TRANSITION ───────────────────────────────────────────── */
html.theme-fx, html.theme-fx *, html.theme-fx *::before, html.theme-fx *::after {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior-x: none; }
/* overscroll-behavior-x wyłącza natywny gest przeglądarki mobilnej "przesuń od krawędzi = wstecz/dalej"
   (Chrome na Androidzie) — bez tego kolidował z przeciąganiem karty w trybie kart (swipe w prawo/lewo
   animował całą stronę razem ze sztywnym paskiem nawigacji, user zgłosił: "swipe w prawo przesuwa menu") */
body { background: var(--bg); color: var(--text); font-family: 'Manrope', sans-serif; overflow-x: hidden; overscroll-behavior-x: none; line-height: 1.8; }

/* ── CANVAS ────────────────────────────────────────────────────────────── */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
nav, section, footer, .page, .oferta-wrap { position: relative; z-index: 1; }

/* ── NAV ───────────────────────────────────────────────────────────────── */
#nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 22px 5vw;
    padding-top: max(22px, calc(22px + env(safe-area-inset-top)));
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.4s, padding 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}
#nav.scrolled { background: rgba(10,10,10,0.92); backdrop-filter: blur(16px); padding: 15px 5vw; border-color: var(--border); }
.logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.05em; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* ── NAV SEARCH BUTTON (desktop) ───────────────────────────────────────── */
.nav-search-btn {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: var(--muted); background: none; border: 1px solid var(--border);
    padding: 6px 12px; cursor: pointer; letter-spacing: 0.06em;
    transition: color 0.2s, border-color 0.2s;
}
.nav-search-btn:hover { color: var(--accent); border-color: var(--accent); }
.nav-map-btn { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.05em; transition: color 0.2s; }
.nav-map-btn:hover { color: var(--accent); }
.nav-search-hint { opacity: 0.45; font-size: 11px; margin-left: 5px; letter-spacing: 0; }

/* ── NAV ICONS (mobile only) ────────────────────────────────────────────── */
.nav-icons { display: none; gap: 4px; align-items: center; }
.nav-icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; background: none; border: none;
    color: var(--muted); cursor: pointer; border-radius: 4px;
    transition: color 0.2s, background 0.2s; text-decoration: none;
}
.nav-icon-btn:hover, .nav-icon-btn.has-favs { color: var(--accent); }
.nav-fav-badge {
    position: absolute; top: 2px; right: 2px;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--accent); color: #000;
    font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
    border-radius: 8px; display: none; align-items: center; justify-content: center;
    line-height: 1;
}
.nav-fav-badge.visible { display: flex; }

/* ── SEARCH OVERLAY ─────────────────────────────────────────────────────── */
.search-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(10,10,10,0.92); backdrop-filter: blur(20px);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 30vh;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-overlay-inner {
    width: 100%; max-width: 640px; padding: 0 6vw;
    transform: translateY(12px);
    transition: transform 0.25s ease;
}
.search-overlay.active .search-overlay-inner { transform: translateY(0); }
.search-overlay-label {
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 24px;
}
.search-overlay-form {
    display: flex; align-items: stretch;
    border: 1px solid rgba(0,255,135,0.4);
    background: rgba(17,17,17,0.9);
    overflow: hidden; margin-bottom: 20px;
    transition: border-color 0.2s; min-height: 60px;
}
.search-overlay-form:focus-within { border-color: var(--accent); }
.search-overlay-form input {
    flex: 1; min-width: 0; background: none; border: none; outline: none;
    font-family: 'Manrope', sans-serif; font-size: clamp(16px, 4vw, 22px); font-weight: 300;
    color: var(--text); padding: 16px 12px; caret-color: var(--accent);
}
.search-overlay-form input::placeholder { color: var(--muted); }
.search-overlay-submit {
    flex-shrink: 0; background: none; border: none;
    border-left: 1px solid rgba(0,255,135,0.2);
    width: 52px; color: var(--muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.2s;
}
.search-overlay-submit:hover { color: var(--accent); }
.search-overlay-voice {
    flex-shrink: 0; background: none !important; border: none !important;
    border-left: 1px solid rgba(0,255,135,0.2) !important;
    width: 52px; padding: 0 !important;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); cursor: pointer; transition: color 0.2s;
}
.search-overlay-voice:hover { color: var(--accent); }
.search-overlay-voice.listening { color: #ff4444; animation: voicePulse 1s ease-in-out infinite; }
.search-overlay-voice.voice-done { color: var(--accent); }
[data-theme="light"] .search-overlay-form { background: rgba(255,255,255,0.95); }
.search-overlay-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.search-overlay-hints span {
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    color: var(--muted); border: 1px solid var(--border);
    padding: 5px 12px; cursor: pointer; letter-spacing: 0.04em;
    transition: color 0.2s, border-color 0.2s;
}
.search-overlay-hints span:hover { color: var(--accent); border-color: rgba(0,255,135,0.4); }
.search-overlay-close {
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    color: var(--muted); background: none; border: none; cursor: pointer;
    letter-spacing: 0.08em; transition: color 0.2s; padding: 0;
}
.search-overlay-close:hover { color: var(--accent); }
[data-theme="light"] .search-overlay { background: rgba(247,247,245,0.93); }
[data-theme="light"] .search-overlay-form { background: rgba(255,255,255,0.95); }

/* ── HERO ──────────────────────────────────────────────────────────────── */
.hero { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 5vw 70px; }
.eyebrow {
    font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent);
    letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 28px;
    display: flex; align-items: center; gap: 12px;
    opacity: 0; animation: fadeUp 0.6s 0.1s ease forwards;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); flex-shrink: 0; }
.hero-bydevs {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: var(--muted); letter-spacing: 0.08em;
    margin-top: 5px;
    opacity: 0; animation: fadeUp 0.6s 0.55s ease forwards;
    margin-bottom: 10px;
}
.hero-bydevs span { color: var(--accent); }
.hero h1 {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: clamp(44px, 7.5vw, 108px); line-height: 0.92; letter-spacing: -0.04em; max-width: 14ch;
    opacity: 0; animation: fadeUp 0.6s 0.25s ease forwards;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc {
    margin-top: 32px; font-size: clamp(16px, 1.8vw, 18px); font-weight: 300;
    color: var(--muted); max-width: 500px; line-height: 1.8;
    opacity: 0; animation: fadeUp 0.6s 0.4s ease forwards;
}

/* ── SEARCH ────────────────────────────────────────────────────────────── */
.search-wrap { margin-top: 36px; opacity: 0; animation: fadeUp 0.6s 0.52s ease forwards; }
.search-form { display: flex; max-width: 640px; border: 1px solid var(--border); transition: border-color 0.2s; }
.search-form:focus-within { border-color: var(--accent); }
.search-form input {
    flex: 1; min-width: 0; background: rgba(17,17,17,0.85); border: none; outline: none;
    padding: 14px 18px; color: var(--text); font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 300;
}
.search-form input::placeholder { color: var(--muted2); }
.search-loc { border-left: 1px solid var(--border) !important; flex: 0 0 180px !important; }
.search-form button {
    flex-shrink: 0; background: #00ff87; background: var(--accent); color: #000; border: none;
    padding: 14px 22px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
    cursor: pointer; white-space: nowrap; transition: background 0.2s;
}
.search-form button:hover { background: #fff; }
.voice-btn {
    flex-shrink: 0; background: #151515; border: none;
    border-left: 1px solid var(--border);
    color: #777; padding: 14px 16px; cursor: pointer; line-height: 1;
    transition: background 0.2s, color 0.2s;
}
.voice-btn:hover                { background: #1e1e1e; color: #888; }
.voice-btn.listening            { background: #2a0000; color: #ff4444; animation: voicePulse 1s ease-in-out infinite; }
.voice-btn.voice-done           { background: #001a0a; color: var(--accent); }
.voice-btn.error                { background: #1f0f00; color: #ff8c00; }
@keyframes voicePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
[data-theme="light"] .voice-btn           { background: #e8e8e8; color: #888; }
[data-theme="light"] .voice-btn:hover     { background: #ddd; color: #555; }
[data-theme="light"] .voice-btn.listening { background: #fde8e8; color: #cc0000; }
[data-theme="light"] .voice-btn.voice-done{ background: #e6f9f0; color: #008a47; }
.search-meta { margin-top: 12px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.search-info { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.search-clear { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s; }
.search-clear:hover { color: #fff; }

/* ── STATS BAR ─────────────────────────────────────────────────────────── */
.stats-bar {
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 12px 5vw; background: rgba(17,17,17,0.8);
    display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
}
.stat { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; display: flex; align-items: center; gap: 7px; }
.stat strong { color: var(--text); font-weight: 500; }
.stat-sep { width: 1px; height: 14px; background: var(--border); }

/* ── JOBS ──────────────────────────────────────────────────────────────── */
.jobs-meta-bar { padding: 20px 5vw 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; scroll-margin-top: 80px; }
.jobs-section { padding: 0 5vw 48px; scroll-margin-top: 72px; }
.view-toggle-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 8px; }
.view-toggle-sep { width: 1px; height: 16px; background: var(--border); margin: 0 2px; }
.view-btn { background: none; border: 1px solid transparent; cursor: pointer; font-size: 20px; color: var(--muted2); padding: 4px 8px; line-height: 1; transition: color 0.2s, border-color 0.2s; }
.view-btn:hover { color: var(--accent); }
.view-btn.active { color: var(--accent); border-color: var(--border); }

/* Tryb kart — tylko mobile (swipe ma sens jako gest dotykowy; na desktopie ukryty, patrz media query) */
.view-btn-swipe, .view-toggle-sep-swipe { display: none; }

/* ikona "kart" — dwa nachodzące na siebie prostokąty, rysowane wektorowo (bez emoji/fontu) */
.view-btn-swipe { position: relative; width: 34px; height: 24px; padding: 0; box-sizing: border-box; }
.view-btn-swipe::before, .view-btn-swipe::after { content: ''; position: absolute; top: 50%; left: 50%; width: 13px; height: 17px; border: 1.6px solid currentColor; border-radius: 2px; }
.view-btn-swipe::before { transform: translate(-72%, -58%) rotate(-9deg); }
.view-btn-swipe::after  { transform: translate(-28%, -42%) rotate(9deg); background: var(--bg); }

/* liczba ofert na stronę (20/50/100) */
.per-page-group { display: flex; align-items: center; gap: 6px; }
.per-page-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.05em; color: var(--muted2); }
.per-page-btn { background: none; border: 1px solid transparent; color: var(--muted2); font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 3px 7px; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.per-page-btn:hover { color: var(--accent); }
.per-page-btn.active { color: var(--accent); border-color: var(--border); }

/* ── TRYB KART (swipe) ─────────────────────────────────────────────────── */
.swipe-deck { display: none; flex-direction: column; align-items: center; gap: 16px; padding: 8px 0 40px; scroll-margin-top: 72px; }
.swipe-deck.active { display: flex; }
.swipe-deck-top { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 460px; }
.swipe-deck-progress { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted2); letter-spacing: 0.06em; }
.swipe-deck-close { background: none; border: 1px solid var(--border); color: var(--muted2); font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.swipe-deck-close:hover { color: var(--accent); border-color: var(--accent); }
/* dvh (dynamic viewport height) po vh — na mobile dokładniej dostosowuje się do realnie widocznego
   obszaru (bez paska adresu), starsze przeglądarki po prostu ignorują linię z dvh i zostają przy vh */
.swipe-deck-stage { position: relative; width: 100%; max-width: 460px; min-height: min(58vh, 520px); min-height: min(60dvh, 520px); }
/* background-color (opaque) pod ewentualnym gradientem promowanej/2hr karty — te warianty mają celowo
   półprzezroczyste tło (dobre w zwykłej liście, na jednolitym tle strony), ale w stosie kart bez tego
   karta pod spodem prześwitywała przez kartę na wierzchu. Wygrywa dzięki wyższej specyficzności
   (.swipe-deck-stage .job-card = 2 klasy) nad .job-card-promoted/.job-card-2hr (1 klasa) — sam gradient
   (background-image) zostaje bez zmian, rysuje się już na nieprzezroczystej bazie. */
.swipe-deck-stage .job-card { position: absolute; inset: 0; margin: 0; width: 100%; box-sizing: border-box; max-height: min(58vh, 520px); max-height: min(60dvh, 520px); overflow-y: auto; cursor: grab; user-select: none; -webkit-user-drag: none; touch-action: pan-y; transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease; will-change: transform; }
/* specyficzność podniesiona do 3 klas (4 z [data-theme]) celowo — musi wygrywać z .job-card-2hr:hover
   (2 klasy) i [data-theme="light"] .job-card-2hr:hover (3), inaczej stan hover na wierzchniej karcie
   z powrotem odsłaniał półprzezroczyste tło i kartę pod spodem prześwitywało (patrz komentarz wyżej) */
.swipe-deck .swipe-deck-stage .job-card { background-color: #131313; }
[data-theme="light"] .swipe-deck .swipe-deck-stage .job-card { background-color: #fff; }
.swipe-deck-stage .job-card.dragging { transition: none; cursor: grabbing; }
.swipe-deck-stage .job-card:nth-child(n+2) { pointer-events: none; }
.swipe-deck-stage .job-card:nth-child(1) { z-index: 3; }
.swipe-deck-stage .job-card:nth-child(2) { z-index: 2; transform: scale(0.96) translateY(10px); opacity: 0.7; }
.swipe-deck-stage .job-card:nth-child(3) { z-index: 1; transform: scale(0.92) translateY(20px); opacity: 0.4; }
.swipe-deck-stage .job-card:nth-child(n+4) { z-index: 0; opacity: 0; }
.swipe-deck-stage .job-card.swipe-fly-left  { transform: translate(-140%, -8px) rotate(-16deg) !important; opacity: 0 !important; }
.swipe-deck-stage .job-card.swipe-fly-right { transform: translate(140%, -8px) rotate(16deg) !important; opacity: 0 !important; }
.swipe-stamp { position: absolute; top: 16px; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; padding: 4px 10px; border: 2px solid; border-radius: 4px; opacity: 0; pointer-events: none; }
.swipe-stamp-skip { left: 16px; color: #ff5c5c; border-color: #ff5c5c; transform: rotate(-10deg); }
.swipe-stamp-save { right: 16px; color: var(--accent); border-color: var(--accent); transform: rotate(10deg); }
/* duże serduszko w tle karty, jak w Tinderze — pojawia się przy przeciąganiu w prawo (dodaj do ulubionych) */
.swipe-heart-bg { position: absolute; top: 45%; left: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%) scale(0.6); opacity: 0; color: var(--accent); pointer-events: none; z-index: 5; filter: drop-shadow(0 0 24px rgba(0,255,135,0.55)); }
.swipe-heart-bg svg { width: 100%; height: 100%; }
[data-theme="light"] .swipe-heart-bg { filter: drop-shadow(0 0 24px rgba(0,138,71,0.45)); }
.swipe-deck-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.swipe-ctrl-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: none; color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: color 0.2s, border-color 0.2s, transform 0.15s; }
.swipe-ctrl-btn:hover { transform: translateY(-1px); }
.swipe-ctrl-btn:active { transform: translateY(0); }
.swipe-ctrl-skip:hover { color: #ff5c5c; border-color: #ff5c5c; }
.swipe-ctrl-save:hover { color: var(--accent); border-color: var(--accent); }
.swipe-ctrl-arrow { font-size: 16px; }
.swipe-ctrl-heart { width: 13px; height: 13px; vertical-align: -1px; }
.swipe-ctrl-save .swipe-ctrl-heart { color: var(--accent); }
.swipe-deck-hint { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted2); letter-spacing: 0.03em; text-align: center; }
.swipe-deck-end { display: none; flex-direction: column; align-items: center; gap: 14px; padding: 50px 20px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); }
.swipe-deck-end.active { display: flex; }

/* compact switch — pill toggle */
.compact-switch { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 4px 2px; }
.compact-switch-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.07em; color: var(--muted2); transition: color 0.2s; }
.compact-switch-track { position: relative; width: 30px; height: 16px; border-radius: 999px; background: var(--border); border: 1px solid var(--border); flex-shrink: 0; transition: background 0.25s ease, border-color 0.25s ease; }
.compact-switch-thumb { position: absolute; top: 1px; left: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted2); transition: transform 0.25s cubic-bezier(.4,0,.2,1), background 0.25s ease, box-shadow 0.25s ease; }
.compact-switch:hover .compact-switch-label { color: var(--accent); }
.compact-switch:hover .compact-switch-track { border-color: var(--accent); }
.compact-switch.active .compact-switch-label { color: var(--accent); }
.compact-switch.active .compact-switch-track { background: rgba(0,255,135,0.16); border-color: var(--accent); }
.compact-switch.active .compact-switch-thumb { transform: translateX(14px); background: var(--accent); box-shadow: 0 0 8px rgba(0,255,135,0.65); }
[data-theme="light"] .compact-switch.active .compact-switch-track { background: rgba(0,138,71,0.12); }
[data-theme="light"] .compact-switch.active .compact-switch-thumb { box-shadow: 0 0 8px rgba(0,138,71,0.5); }

.jobs-count { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.jobs-count strong { color: var(--text); }
.jobs-count-sep { margin: 0 6px; color: var(--muted2); }
.jobs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; transition: grid-template-columns 0.25s ease; }
.jobs-list--single { grid-template-columns: 1fr; }

/* compact view — denser grid + collapsed card details, driven by html.compact-view */
html.compact-view .jobs-list:not(.jobs-list--single) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.job-card { border: 1px solid #454545; background: #131313; padding: 22px 24px; transition: border-color 0.25s, padding 0.3s ease; text-decoration: none; display: block; }
[data-theme="light"] .job-card { border-color: #c7cbc5; }
html.compact-view .job-card { padding: 13px 18px; }
.job-card:hover { border-color: rgba(0,255,135,0.45); background: #161616; }
.job-card-promoted { border-color: rgba(0,255,135,0.5); background: rgba(0,255,135,0.02); }
.job-card-promoted:hover { border-color: var(--accent); background: rgba(0,255,135,0.05); }
.job-promoted-badge { display: none; }
.job-new-badge { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); padding: 1px 7px; letter-spacing: 0.08em; opacity: 0.9; }
.job-type-badge { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; color: #f5c518; border: 1px solid #f5c518; padding: 1px 6px; letter-spacing: 0.06em; opacity: 0.9; }
[data-theme="light"] .job-type-badge { color: #b8930a; border-color: #b8930a; }
/* wiersz nad tytułem: NOWE + Pełny etat po lewej, data zawsze do prawej (margin-left:auto — działa nawet gdy nie ma badge'y) */
.job-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; transition: margin 0.3s ease; }
html.compact-view .job-meta-row { margin-bottom: 6px; }
.job-meta-row .job-date { margin-left: auto; }
.oferta-promoted-badge { display: none; }
.oferta-new-badge { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); padding: 3px 12px; letter-spacing: 0.06em; margin-bottom: 16px; margin-left: 8px; }
[data-theme="light"] .job-card-promoted { background: rgba(0,180,90,0.03); border-color: rgba(0,180,90,0.4); }
[data-theme="light"] .job-card-promoted:hover { background: rgba(0,180,90,0.07); }

/* ─── promoted = 2 — oferta ekskluzywna 2hr.pl, wyróżniona mocniej niż zwykłe "Promowane" ─── */
.job-card-2hr { border: 1px solid var(--accent); background: linear-gradient(135deg, rgba(0,255,135,0.08), rgba(0,255,135,0.015) 65%); box-shadow: 0 0 0 1px rgba(0,255,135,0.18), 0 4px 22px rgba(0,255,135,0.1); }
.job-card-2hr:hover { border-color: var(--accent); background: linear-gradient(135deg, rgba(0,255,135,0.13), rgba(0,255,135,0.03) 65%); box-shadow: 0 0 0 1px rgba(0,255,135,0.32), 0 6px 30px rgba(0,255,135,0.18); }
[data-theme="light"] .job-card-2hr { background: linear-gradient(135deg, rgba(0,138,71,0.07), rgba(0,138,71,0.01) 65%); box-shadow: 0 0 0 1px rgba(0,138,71,0.16), 0 4px 22px rgba(0,138,71,0.1); }
[data-theme="light"] .job-card-2hr:hover { background: linear-gradient(135deg, rgba(0,138,71,0.11), rgba(0,138,71,0.02) 65%); }

.job-badge-2hr {
    display: flex; align-items: center; gap: 6px; width: fit-content;
    font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
    color: #0a0a0a; background: var(--accent); padding: 5px 10px; margin-bottom: 10px; border-radius: 3px;
    box-shadow: 0 0 12px rgba(0,255,135,0.45); transition: padding 0.3s ease, font-size 0.3s ease, margin 0.3s ease;
}
.job-badge-2hr-bolt { font-size: 12px; line-height: 1; }
html.compact-view .job-badge-2hr { font-size: 9px; padding: 2px 7px; margin-bottom: 5px; gap: 4px; box-shadow: 0 0 8px rgba(0,255,135,0.35); }

/* --- reklama (2sh.pl) w slocie pod ofertami poziomu 2 - celowo odrębna od karty oferty: przerywana ramka, brak poświaty accentu --- */
.job-card-ad { border: 1px dashed #5a5a5a; background: #101010; }
[data-theme="light"] .job-card-ad { border-color: #9aa39a; background: rgba(255,255,255,0.6); }
.job-card-ad:hover { border-color: var(--muted2); background: #141414; }
[data-theme="light"] .job-card-ad:hover { background: rgba(255,255,255,0.9); }
.job-badge-ad {
    display: flex; align-items: center; gap: 6px; width: fit-content;
    font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
    color: var(--muted2); background: transparent; border: 1px solid #5a5a5a; padding: 4px 9px; margin-bottom: 10px; border-radius: 3px;
}
.ad-2sh-cta { display: inline-block; margin-top: 4px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); }
.doc a.ad-2sh-outbound-cta { display: inline-block; font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #0a0a0a; background: var(--accent); padding: 8px 16px; border-radius: 4px; text-decoration: none; margin-top: 4px; }
.doc a.ad-2sh-outbound-cta:hover { background: var(--text); text-decoration: none; }

.oferta-badge-2hr {
    display: flex; align-items: center; gap: 8px; width: fit-content;
    font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
    color: #0a0a0a; background: var(--accent); padding: 7px 16px; margin-bottom: 16px; border-radius: 4px;
    box-shadow: 0 0 18px rgba(0,255,135,0.5);
}
.job-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 6px; transition: margin 0.3s ease; }
html.compact-view .job-top { margin-bottom: 3px; }
.job-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; color: var(--text); line-height: 1.3; transition: font-size 0.3s ease; }
html.compact-view .job-title { font-size: 15px; }
.job-card:hover .job-title { color: var(--accent); }
.job-salary { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); white-space: nowrap; flex-shrink: 0; padding-top: 2px; }
/* compact + widok siatki (desktop) — widełki pod tytułem zamiast obok, żeby tytuł miał całą szerokość karty i się nie zawijał */
@media (min-width: 701px) {
    html.compact-view .jobs-list:not(.jobs-list--single) .job-top { flex-direction: column; align-items: flex-start; gap: 2px; }
    html.compact-view .jobs-list:not(.jobs-list--single) .job-salary { padding-top: 0; }
}
.job-company { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.03em; margin-bottom: 10px; transition: margin 0.3s ease; }
.job-company span { color: var(--muted2); }
html.compact-view .job-company { margin-bottom: 0; }
/* wiele lokalizacji na karcie (np. "Warszawa, Kraków, Wrocław, ...") — w kompakcie ucinamy do 1 linii */
.job-locs { transition: max-width 0.3s ease; }
html.compact-view .job-locs {
    display: inline-block; vertical-align: bottom; max-width: 200px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.job-snippet {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
    font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.7; margin-bottom: 14px; max-height: 220px; opacity: 1;
}
.job-multiloc { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); opacity: 0.7; margin-bottom: 8px; letter-spacing: 0.04em; }
/* pełny opis oferty w trybie kart (odsłonięty z ukrytego .job-snippet-src przez loadFullDescription
   w app.js) — bez limitu wysokości; przewija się razem z całą kartą (.job-card ma overflow-y:auto).
   !important celowe: na mobile domyślnie włączony jest compact-view, którego
   `html.compact-view .job-snippet { max-height:0; opacity:0; ... }` ma wyższą specyficzność (2 klasy +
   typ `html`) niż zwykłe podniesienie klas tutaj by dawało — bez !important pełny opis w trybie kart
   renderował się w DOM, ale był całkowicie niewidoczny (max-height:0, opacity:0) */
.job-snippet-full {
    max-height: none !important; overflow: visible !important;
    opacity: 1 !important; margin-bottom: 14px !important; pointer-events: auto !important;
    line-height: 1.75;
}
html.compact-view .job-snippet { max-height: 0; opacity: 0; margin-bottom: 0; pointer-events: none; }

/* tagi technologii — normalnie własny wiersz nad stopką (pełna nazwa); w kompakcie wjeżdżają do stopki
   jako ikonki (logo technologii z Simple Icons, np. Java, Python, React…), na wysokości ♥ —
   dev od razu rozpozna stack po logo, bez czytania. Brak logo dla danej technologii → skrót tekstowy. */
.job-tech-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; flex-basis: 100%; margin-bottom: 10px; transition: margin 0.3s ease; }
html.compact-view .job-tech-tags {
    flex: 1 1 auto; flex-basis: auto; min-width: 0; margin-bottom: 0;
    flex-wrap: nowrap; overflow: hidden;
}
html.compact-view .job-tech-tags .job-tech-tag:nth-child(n+7) { display: none; }
.job-tech-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.67rem; padding: 2px 7px; border-radius: 3px; background: rgba(0,255,135,.07); color: var(--accent); border: 1px solid rgba(0,255,135,.18); white-space: nowrap; letter-spacing: .03em; flex-shrink: 0; transition: padding 0.25s ease, font-size 0.25s ease; display: flex; align-items: center; gap: 4px; }
.job-tech-tag-abbr, .job-tech-icon { display: none; }
html.compact-view .job-tech-tag {
    padding: 3px 6px; min-width: 22px; justify-content: center; font-weight: 700; font-size: 0.63rem; letter-spacing: 0;
    border-radius: 5px; background: rgba(0,255,135,.1);
}
html.compact-view .job-tech-tag-full { display: none; }
html.compact-view .job-tech-tag-abbr { display: inline; }
/* gdy jest prawdziwa ikonka technologii — pokazujemy tylko ją, bez tekstu, węższy „chip" */
html.compact-view .job-tech-tag.has-icon { padding: 3px 5px; min-width: 0; background: rgba(0,255,135,.06); border-color: rgba(0,255,135,.14); }
html.compact-view .job-tech-tag.has-icon .job-tech-tag-abbr { display: none; }
html.compact-view .job-tech-tag.has-icon .job-tech-icon { display: block; width: 14px; height: 14px; filter: opacity(0.9); }
/* ikony ładowane z CDN jako gotowo-zielone SVG (?color=00ff87) — w jasnym motywie nie pasują, więc przemalowujemy na czarno */
html.compact-view[data-theme="light"] .job-tech-tag.has-icon .job-tech-icon { filter: brightness(0) opacity(0.85); }
.job-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.job-date { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted2); letter-spacing: 0.03em; }
.job-source { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted2); }

/* ── NO RESULTS ────────────────────────────────────────────────────────── */
.fav-loading { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 72px 0; }
.fav-loading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.3; animation: fav-pulse 1.2s ease-in-out infinite; }
.fav-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.fav-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes fav-pulse { 0%, 80%, 100% { opacity: 0.3; transform: scale(1); } 40% { opacity: 1; transform: scale(1.4); } }
.no-results { padding: 72px 0; text-align: center; }
.no-results h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 10px; }
.no-results p { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

/* ── PAGINATION ────────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 3px; padding: 32px 0 0; flex-wrap: wrap; }
.pagination-top { padding: 12px 0 24px; }
.pag-link {
    font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted);
    text-decoration: none; padding: 8px 13px; border: 1px solid var(--border);
    transition: border-color 0.2s, color 0.2s; letter-spacing: 0.03em;
}
.pag-link:hover { border-color: var(--accent); color: var(--accent); }
.pag-link.active { border-color: var(--accent); color: var(--accent); }
.pag-link.disabled { opacity: 0.3; pointer-events: none; }

/* ── NEWSLETTER ────────────────────────────────────────────────────────── */
.newsletter { padding: 96px 5vw; border-top: 1px solid var(--border); position: relative; text-align: center; }
.nl-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,255,135,0.035), transparent); pointer-events: none; }
.newsletter .sec-label { justify-content: center; margin-bottom: 20px; }
.newsletter h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 54px); letter-spacing: -0.03em; line-height: 0.95; margin-bottom: 16px; }
.newsletter h2 em { font-style: normal; color: var(--accent); }
.newsletter > p { color: var(--muted); font-size: 17px; font-weight: 300; margin-bottom: 36px; max-width: 400px; margin-left: auto; margin-right: auto; }
.nl-row { display: flex; justify-content: center; }
.nl-inner { display: flex; border: 1px solid var(--border); transition: border-color 0.2s; width: 100%; max-width: 400px; }
.nl-inner:focus-within { border-color: var(--accent); }
.nl-inner input { flex: 1; min-width: 0; background: rgba(17,17,17,0.85); border: none; outline: none; padding: 14px 18px; color: var(--text); font-family: 'Manrope', sans-serif; font-size: 15px; }
.nl-inner input::placeholder { color: var(--muted2); }
.nl-inner button { flex-shrink: 0; background: var(--accent); color: #000; border: none; padding: 14px 22px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.nl-inner button:hover { background: #fff; }
.nl-ok { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); letter-spacing: 0.04em; padding: 15px 0; }
.nl-err { margin-top: 10px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #ff5555; letter-spacing: 0.03em; }
p.nl-note { margin-top: 11px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; opacity: 0.5; }
.nl-note a { color: var(--muted); transition: color 0.2s; }
.nl-note a:hover { color: var(--accent); }
.nl-keyword { display: block; width: 100%; max-width: 400px; margin-top: 10px; background: rgba(17,17,17,0.6); border: 1px solid var(--border); outline: none; padding: 11px 18px; color: var(--text); font-family: 'Manrope', sans-serif; font-size: 14px; transition: border-color 0.2s; }
.nl-keyword:focus { border-color: var(--accent); }
.nl-keyword::placeholder { color: var(--muted2); }
.nl-keyword-hint { margin-top: 7px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; opacity: 0.45; }

/* ── SEC LABEL (shared) ────────────────────────────────────────────────── */
.sec-label { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.sec-label::before { content: ''; width: 20px; height: 1px; background: var(--accent); flex-shrink: 0; }

/* ── OFERTA EXPIRED ─────────────────────────────────────────────────────── */
.oferta-expired {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: #f0c040; border: 1px solid rgba(240,192,64,0.3);
    background: rgba(240,192,64,0.05);
    padding: 12px 18px; margin-bottom: 32px; line-height: 1.6;
}
.oferta-expired a { color: #f0c040; text-decoration: underline; margin-left: 8px; }
.oferta-expired a:hover { color: #fff; }

/* ── OFERTA PAGE ───────────────────────────────────────────────────────── */
.oferta-wrap { max-width: 950px; margin: 0 auto; padding: 108px 5vw 80px; overflow-wrap: break-word; word-break: break-word; }
.oferta-back { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.06em; margin-bottom: 44px; transition: color 0.2s; }
.oferta-back:hover { color: var(--accent); }
.oferta-back::before { content: '←'; }
.oferta-label { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.oferta-label::before { content: ''; width: 20px; height: 1px; background: var(--accent); flex-shrink: 0; }
.oferta-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(28px, 4.5vw, 56px); letter-spacing: -0.03em; line-height: 1; margin-bottom: 16px; }
.oferta-company { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.oferta-company-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #111; flex-shrink: 0; }
.oferta-company-info { display: flex; flex-direction: column; gap: 4px; }
.oferta-firma-link { font-size: 11px; color: var(--accent); text-decoration: none; letter-spacing: 0.06em; opacity: 0.8; transition: opacity 0.2s; }
.oferta-firma-link:hover { opacity: 1; }
.firma-header { display: flex; align-items: center; gap: 18px; margin: 12px 0 8px; }
.firma-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #111; border: 1px solid #2d2d2d; flex-shrink: 0; }
.firma-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 4px; }
.firma-count { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); margin: 0; }
.firma-cta-box { max-width: 800px; margin: 40px auto 0; padding: 0 5vw; }
.firma-cta-inner { border: 1px solid #2d2d2d; padding: 28px 32px; }
.firma-cta-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); letter-spacing: 0.14em; margin-bottom: 10px; }
.firma-cta-text { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.firma-cta-btn { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); border: 1px solid var(--accent); padding: 8px 20px; text-decoration: none; letter-spacing: 0.06em; transition: background 0.2s, color 0.2s; }
.firma-cta-btn:hover { background: var(--accent); color: #000; }
.oferta-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.oferta-tag { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); border: 1px solid var(--border); padding: 5px 11px; letter-spacing: 0.04em; }
.oferta-tag-multiloc { color: var(--accent); border-color: var(--accent); opacity: 0.8; }
.oferta-adzuna-badge { display: inline-flex; align-items: center; gap: 5px; min-width: 116px; height: 23px; margin: 8px 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); text-decoration: none; }
.oferta-adzuna-badge:hover { color: var(--text); }
.oferta-adzuna-logo { height: 23px; width: auto; display: block; }
.oferta-source-badge { display: inline-block; margin: 8px 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); text-decoration: none; border: 1px solid var(--border); padding: 5px 11px; letter-spacing: 0.04em; }
.oferta-source-badge:hover { color: var(--accent); border-color: var(--accent); }
.oferta-salary { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(22px, 3.5vw, 38px); color: var(--accent); letter-spacing: -0.02em; margin-bottom: 16px; }
.oferta-salary-none { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted2); margin-bottom: 16px; }
.oferta-tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.oferta-tech-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.73rem; padding: 4px 11px; border-radius: 3px; background: rgba(0,255,135,.07); color: var(--accent); border: 1px solid rgba(0,255,135,.2); text-decoration: none; transition: background .15s, border-color .15s; letter-spacing: .03em; }
.oferta-tech-tag:hover { background: rgba(0,255,135,.15); border-color: rgba(0,255,135,.45); }
.oferta-benefits-section { margin-bottom: 28px; }
.oferta-benefits-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 12px; }
.oferta-benefits { display: flex; flex-wrap: wrap; gap: 8px; }
.oferta-benefit {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--muted2); border: 1px solid var(--border);
    padding: 7px 13px; border-radius: 2px;
    background: rgba(255,255,255,0.025);
    letter-spacing: 0.01em; white-space: nowrap;
    transition: border-color .15s, color .15s;
}
.oferta-benefit:hover { border-color: rgba(0,255,135,.3); color: var(--text); }
.benefit-icon { font-size: 16px; line-height: 1; flex-shrink: 0; }
.oferta-divider { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.oferta-desc-label { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 18px; }
.oferta-desc { font-size: 16px; color: var(--muted); font-weight: 300; line-height: 1.9; }
.oferta-desc b { color: var(--text); font-weight: 500; }
.oferta-cta { margin-top: 48px; }
.oferta-apply-btn {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--accent); color: #000;
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px;
    padding: 16px 14px; text-decoration: none; transition: background 0.2s; white-space: nowrap;
}
.oferta-apply-btn:hover { background: #fff; }
.oferta-apply-reveal { cursor: pointer; border: none; font-family: 'Syne', sans-serif; }
.oferta-apply-reveal:disabled { opacity: 0.6; cursor: default; }
.oferta-apply-note { margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted2); letter-spacing: 0.04em; }
.oferta-rodo-note { margin-top: 20px; font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 560px; }
.oferta-rodo-note em { font-style: normal; color: var(--muted2); }
.share-btn {
    font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.06em;
    color: var(--muted); background: none; border: 1px solid var(--border);
    padding: 10px 16px; cursor: pointer; transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.share-btn:hover { color: var(--accent); border-color: var(--accent); }
.share-btn.copied { color: var(--accent); border-color: var(--accent); }

/* ── MAPA OFERT ─────────────────────────────────────────────────────────── */
.map-wrap { display: flex; flex-direction: column; min-height: calc(100vh - 80px); }
.map-header { padding: 108px 5vw 32px; }
.map-header-inner { max-width: 720px; }
.map-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.map-subtitle { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
#map { flex: 1; min-height: 480px; width: 100%; background: #111; z-index: 1; }
.map-marker {
    background: rgba(0,255,135,0.12); border: 1.5px solid var(--accent);
    border-radius: 50%; color: var(--accent);
    font-family: 'JetBrains Mono', monospace; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 0 14px rgba(0,255,135,0.25);
    transition: background 0.2s, box-shadow 0.2s;
}
.map-marker:hover { background: rgba(0,255,135,0.25); box-shadow: 0 0 24px rgba(0,255,135,0.45); }
.map-tooltip { background: #0f0f0f !important; border: 1px solid var(--accent) !important; color: var(--text) !important; font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 6px 12px; box-shadow: none !important; border-radius: 0 !important; }
.map-tooltip::before { display: none !important; }
.leaflet-container { background: #0a0a0a; }
#map .leaflet-tile-pane { filter: brightness(3.2); }
[data-theme="light"] #map .leaflet-tile-pane { filter: brightness(1.0); }
.leaflet-control-zoom a { background: #111 !important; color: var(--text) !important; border-color: var(--border) !important; }
.leaflet-control-zoom a:hover { background: #1a1a1a !important; color: var(--accent) !important; }
.leaflet-control-attribution { background: rgba(10,10,10,0.7) !important; color: var(--muted2) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 5vw 32px; border-top: 1px solid var(--border); }
.map-legend-item { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); text-decoration: none; border: 1px solid var(--border); padding: 5px 12px; transition: color 0.15s, border-color 0.15s; }
.map-legend-item:hover { color: var(--accent); border-color: var(--accent); }
.map-legend-count { color: var(--accent); font-weight: 700; }

/* ── MAP SEO ───────────────────────────────────────────────────────────── */
.map-seo { padding: 48px 5vw 64px; border-top: 1px solid var(--border); }
.map-seo-inner { max-width: 1100px; margin: 0 auto; }
.map-seo-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(20px, 2.5vw, 28px); letter-spacing: -0.02em; margin-bottom: 32px; }
.map-seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.map-seo-text h3 { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.map-seo-text p { font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.75; color: var(--muted); margin-bottom: 10px; }
.map-seo-text p strong { color: var(--text); font-weight: 600; }
.map-seo-cities { list-style: none; padding: 0; margin: 0; }
.map-seo-cities li { display: flex; align-items: center; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 12px; border-bottom: 1px solid var(--border); padding: 6px 0; }
.map-seo-cities a { color: var(--text); text-decoration: none; transition: color 0.15s; }
.map-seo-cities a:hover { color: var(--accent); }
.map-seo-cities .cnt { color: var(--muted); }
.map-seo-steps { list-style: none; padding: 0; margin: 0; counter-reset: seo-steps; display: flex; flex-direction: column; gap: 12px; }
.map-seo-steps li { font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.65; color: var(--muted); padding-left: 28px; position: relative; counter-increment: seo-steps; }
.map-seo-steps li::before { content: counter(seo-steps) '.'; position: absolute; left: 0; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; top: 2px; }
.map-seo-steps strong { color: var(--text); font-weight: 600; }
.map-seo-steps a { color: var(--accent); text-decoration: none; }
@media (max-width: 700px) {
    .map-seo-grid { grid-template-columns: 1fr; gap: 28px; }
    .map-seo { padding: 36px 5vw 48px; }
}

/* ── FOOTER ────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 32px 5vw; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.f-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; }
.f-logo span { color: var(--accent); }
.f-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.f-made { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted2); letter-spacing: 0.05em; }
.f-made span { color: var(--accent); }
.f-social { display: inline-flex; align-items: center; gap: 4px; color: var(--muted2); text-decoration: none; vertical-align: middle; transition: color 0.2s; }
.f-social:hover { color: var(--accent); }
.f-links a, .f-links span { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.05em; transition: color 0.2s; }
.f-links a:hover { color: var(--accent); }

/* ── DOC PAGES ─────────────────────────────────────────────────────────── */
.page { max-width: 870px; margin: 0 auto; padding: 108px 5vw 100px; overflow-wrap: break-word; word-break: break-word; }
.page-label { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.page-label::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.page h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; }
.page-updated { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.05em; margin-bottom: 56px; }
.doc h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 20px; margin-top: 44px; margin-bottom: 12px; }
.doc p { color: var(--muted); font-size: 16px; font-weight: 300; margin-bottom: 12px; }
.doc ul { color: var(--muted); font-size: 16px; font-weight: 300; padding-left: 20px; margin-bottom: 12px; }
.doc ul li { margin-bottom: 6px; }
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }
.doc-highlight { border: 1px solid rgba(0,255,135,0.2); background: rgba(0,255,135,0.03); padding: 18px 22px; margin-bottom: 8px; }
.doc-highlight p { margin-bottom: 0; font-size: 14px; }
.doc ol { color: var(--muted); font-size: 16px; font-weight: 300; padding-left: 20px; margin-bottom: 12px; }
.doc ol li { margin-bottom: 8px; }
.doc pre { overflow-x: auto; background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 16px 20px; margin: 8px 0 20px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; color: var(--text); }
.doc code { font-family: 'JetBrains Mono', monospace; font-size: 13px; background: rgba(255,255,255,0.06); padding: 1px 5px; }
.doc pre code { background: none; padding: 0; font-size: inherit; }
.btn-primary { display: inline-block; background: var(--accent); color: #000 !important; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; padding: 12px 24px; text-decoration: none; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.85; text-decoration: none !important; color: #000 !important; }
.btn-secondary { display: inline-block; border: 1px solid var(--border); color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 12px 22px; text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.btn-secondary:hover { color: var(--accent) !important; border-color: var(--accent); text-decoration: none !important; }
.close-btn {
    position: fixed; top: 76px; right: 5vw; z-index: 200;
    width: 40px; height: 40px; border: 1px solid var(--border);
    background: rgba(17,17,17,0.9); backdrop-filter: blur(12px);
    color: var(--muted); font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: border-color 0.2s, color 0.2s; line-height: 1;
}
.close-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── ANIMATIONS ────────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes jobFlash {
    0%   { border-color: var(--accent); background: rgba(0,255,135,0.07); box-shadow: 0 0 0 2px rgba(0,255,135,0.2); }
    70%  { border-color: var(--accent); background: rgba(0,255,135,0.04); box-shadow: none; }
    100% { border-color: var(--border); background: rgba(17,17,17,0.5); }
}
[data-theme="light"] @keyframes jobFlash {
    0%   { border-color: var(--accent); background: rgba(0,138,71,0.08); }
    100% { border-color: var(--border); background: rgba(255,255,255,0.85); }
}
.job-card.flash { animation: jobFlash 1.6s ease forwards; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── BLOG LISTING ───────────────────────────────────────────────────────── */
.blog-header { padding: 108px 5vw 48px; }
.blog-hero-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.04em; line-height: 0.92; margin-top: 20px; }
.blog-hero-title em { font-style: normal; color: var(--accent); }
.blog-hero-desc { margin-top: 24px; font-size: clamp(15px, 1.6vw, 17px); color: var(--muted); font-weight: 300; max-width: 540px; line-height: 1.8; }
.blog-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.blog-topic { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); border: 1px solid var(--border); padding: 5px 12px; text-decoration: none; transition: color .2s, border-color .2s; white-space: nowrap; }
.blog-topic:hover { color: var(--accent); border-color: rgba(0,255,135,.4); }
.blog-topic.active { color: var(--accent); border-color: rgba(0,255,135,.6); }
.blog-mission { margin-top: 28px; padding: 18px 22px; border-left: 2px solid var(--accent); background: rgba(0,255,135,.04); font-size: .88rem; line-height: 1.7; color: var(--muted); max-width: 540px; }
.blog-mission-name { color: var(--accent); font-family: var(--font-mono); font-weight: 500; }
.blog-mission-cta { color: var(--accent); text-decoration: none; margin-left: 8px; font-size: .8rem; white-space: nowrap; }
.blog-mission-cta:hover { text-decoration: underline; }
.blog-list { padding: 0 5vw 80px; display: flex; flex-direction: column; gap: 16px; }
.blog-card { border: 1px solid var(--border); background: rgba(17,17,17,0.5); text-decoration: none; display: flex; flex-direction: row; transition: border-color 0.25s, background 0.25s; overflow: hidden; min-height: 160px; }
.blog-card:hover { border-color: rgba(0,255,135,0.35); background: rgba(17,17,17,0.8); }
.blog-card-img { flex: 0 0 260px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { flex: 1; padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.blog-card-meta { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted2); letter-spacing: 0.04em; margin-bottom: 10px; display: flex; gap: 20px; }
.blog-card-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 20px; color: var(--text); line-height: 1.3; margin-bottom: 8px; transition: color 0.2s; }
.blog-card:hover .blog-card-title { color: var(--accent); }
.blog-card-excerpt { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.7; }
[data-theme="light"] .blog-card { background: rgba(255,255,255,0.85); }
[data-theme="light"] .blog-card:hover { background: rgba(255,255,255,1); }
@media (max-width: 700px) { .blog-card { flex-direction: column; } .blog-card-img { flex: 0 0 auto; height: 180px; } }

/* ── BLOG PREVIEW (home) ─────────────────────────────────────────────────── */
.home-blog-section { padding: 0 5vw 80px; }
.home-blog-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 24px; }
.home-blog-label { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.home-blog-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(20px, 2.5vw, 28px); color: var(--text); margin: 0; }
.home-blog-section .blog-list { padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-blog-more { margin-top: 16px; }
.home-blog-more a { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted2); text-decoration: none; letter-spacing: 0.06em; transition: color 0.2s; }
.home-blog-more a:hover { color: var(--accent); }

/* ── READING PROGRESS ───────────────────────────────────────────────────── */
.reading-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--accent); z-index: 9999; transition: width 0.08s linear; pointer-events: none; }

/* ── BLOG WPIS ───────────────────────────────────────────────────────────── */
.post-outer { display: block; }
.post-wrap { max-width: 910px; margin: 0 auto; padding: 108px 5vw 100px; }
.post-toc { display: none; }
.post-back { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: 0.06em; margin-bottom: 44px; transition: color 0.2s; }
.post-back::before { content: '←'; }
.post-back:hover { color: var(--accent); }
.post-label { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.post-label::before { content: ''; width: 20px; height: 1px; background: var(--accent); flex-shrink: 0; }
.post-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 16px; overflow-wrap: break-word; word-break: break-word; }
.post-meta { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted2); letter-spacing: 0.04em; margin-bottom: 36px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.post-share-btn { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--muted2); background: none; border: 1px solid var(--border); padding: 3px 10px; cursor: pointer; transition: color 0.2s, border-color 0.2s; margin-left: auto; }
@media (max-width: 700px) { .post-share-btn { margin-left: 0; } .post-meta { gap: 12px; } }
.post-share-btn:hover { color: var(--accent); border-color: var(--accent); }
.post-share-btn.copied { color: var(--accent); border-color: var(--accent); }
.post-hero-img { margin: 0 0 48px; border: 1px solid var(--border); overflow: hidden; }
.post-hero-img img { width: 100%; height: auto; display: block; }
.post-content { font-size: 16px; color: var(--muted); font-weight: 300; line-height: 1.9; }
.post-content h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 22px; color: var(--text); margin: 48px 0 14px; scroll-margin-top: 90px; }
.post-content h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; color: var(--text); margin: 28px 0 10px; }
.post-content p { margin-bottom: 18px; }
.post-content ul { padding-left: 22px; margin-bottom: 18px; }
.post-content li { margin-bottom: 8px; }
.post-content strong { color: var(--text); font-weight: 500; }
.post-content a { color: var(--accent); text-decoration: none; }
.post-content a:hover { text-decoration: underline; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }
.post-content pre { overflow-x: auto; background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 16px 20px; margin-bottom: 18px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; color: var(--text); }
.post-content code { font-family: 'JetBrains Mono', monospace; font-size: 13px; background: rgba(255,255,255,0.06); padding: 1px 5px; }
.post-content pre code { background: none; padding: 0; font-size: inherit; }
.post-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 24px; }
.post-content table thead th { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted2); text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.post-content table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.15s; }
.post-content table tbody tr:hover { background: rgba(255,255,255,0.03); }
.post-content table tbody td { padding: 10px 14px; vertical-align: middle; font-size: 13px; color: var(--muted); }
.blog-cta table { margin-top: 18px; }
.blog-cta table thead th { color: var(--accent); border-bottom-color: rgba(0,255,135,0.3); }
.blog-cta table a { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 12px; text-decoration: none; letter-spacing: 0.04em; }
.blog-cta table a:hover { text-decoration: underline; }
.blog-cta table td { font-size: 13px; }
.blog-cta table .cta-all { text-align: center; padding-top: 16px; border-bottom: none; }
.blog-cta table .cta-all a { font-size: 13px; border: 1px solid rgba(0,255,135,0.4); padding: 6px 18px; }
.blog-disclaimer { margin: 28px 0; border-left: 3px solid rgba(255,200,0,0.6); background: rgba(255,200,0,0.04); padding: 16px 20px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.blog-disclaimer strong { color: #f0c040; }
.blog-sources { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07); }
.blog-sources h3 { font-size: 13px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.blog-sources ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.blog-sources li { font-size: 13px; }
.blog-sources a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.blog-sources a:hover { color: var(--text); }

.chart-block { margin: 32px 0 36px; border: 1px solid var(--border); background: rgba(255,255,255,0.02); padding: 24px 28px; }
.chart-title { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 20px; }
.chart-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.chart-row:last-of-type { margin-bottom: 0; }
.chart-label { flex: 0 0 168px; font-size: 13px; color: var(--text); font-family: 'JetBrains Mono', monospace; }
.chart-track { flex: 1; height: 10px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.chart-fill { height: 100%; background: linear-gradient(90deg, rgba(0,255,135,0.5), var(--accent)); border-radius: 2px; }
.chart-value { flex: 0 0 42px; text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); }
.chart-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 700px) { .chart-label { flex-basis: 92px; font-size: 12px; } .chart-value { flex-basis: 32px; font-size: 12px; } .chart-block { padding: 20px 18px; } }

.blog-cta { margin-top: 56px; border: 1px solid rgba(0,255,135,0.3); background: rgba(0,255,135,0.03); padding: 28px 32px; }
.blog-cta-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
.blog-cta p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.blog-cta-links { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-cta-links a { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); border: 1px solid rgba(0,255,135,0.4); padding: 6px 14px; text-decoration: none; transition: background 0.2s; }
.blog-cta-links a:hover { background: rgba(0,255,135,0.1); }
.blog-github-box { margin-top: 48px; border: 1px solid rgba(0,255,135,0.25); background: rgba(0,255,135,0.03); padding: 28px 32px; }
.blog-github-box h3 { font-family: 'Syne', sans-serif; font-size: 18px; color: var(--text); margin: 0 0 10px; }
.blog-github-box > p { color: var(--muted); font-size: 15px; margin: 0 0 20px; line-height: 1.7; }
.blog-github-link { display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 16px 20px; border: 1px solid rgba(0,255,135,0.3); background: rgba(0,255,135,0.05); transition: background 0.2s, border-color 0.2s; }
.blog-github-link:hover { background: rgba(0,255,135,0.1); border-color: rgba(0,255,135,0.5); }
.blog-github-icon { color: var(--accent); flex-shrink: 0; }
.blog-github-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.blog-github-text strong { font-family: 'JetBrains Mono', monospace; font-size: 15px; color: var(--accent); }
.blog-github-text span { font-size: 13px; color: var(--muted); }
.blog-github-arrow { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 18px; flex-shrink: 0; }
@media (max-width: 700px) { .blog-github-link { flex-wrap: wrap; } .blog-github-arrow { display: none; } }

/* ── FAVORITES ─────────────────────────────────────────────────────────── */
.fav-btn {
    background: none; border: none; color: var(--muted2);
    cursor: pointer; padding: 6px 8px; line-height: 1;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color 0.2s, transform 0.15s; flex-shrink: 0;
}
.fav-icon { flex-shrink: 0; transition: fill 0.2s ease; }
.fav-btn:hover { color: var(--accent); transform: scale(1.2); }
.fav-btn.active { color: var(--accent); }
.fav-btn.active .fav-icon { fill: currentColor; }
.fav-btn-oferta .fav-icon { width: 16px; height: 16px; }

.job-foot-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.oferta-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.fav-btn-oferta { flex: 0 0 auto; white-space: nowrap; }
.cta-mobile-sep { display: none; }

.fav-btn-oferta {
    font-family: 'JetBrains Mono', monospace; font-size: 15px;
    color: var(--muted); border: 1px solid var(--border);
    padding: 10px 20px; letter-spacing: 0.04em;
    transition: color 0.2s, border-color 0.2s;
}
.fav-btn-oferta:hover, .fav-btn-oferta.active { color: var(--accent); border-color: var(--accent); transform: none; }
@media (max-width: 700px) {
    .oferta-cta-row { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
    .oferta-apply-btn, .fav-btn-oferta { width: 100%; box-sizing: border-box; }
    .fav-btn-oferta { text-align: center; }
    .cta-mobile-sep { display: block; width: 100%; border: none; border-top: 1px solid var(--border); margin: 16px 0; }
    .home-blog-section .blog-list { grid-template-columns: 1fr; }
    .share-btn { width: 100%; box-sizing: border-box; margin-bottom: 12px; }
}

/* ── TOC SIDEBAR (desktop wide) ─────────────────────────────────────────── */
@media (min-width: 1200px) {
    .post-outer { display: flex; align-items: flex-start; max-width: 1510px; margin: 0 auto; padding: 0 5vw; gap: 40px; }
    .post-wrap { margin: 0; padding: 108px 0 100px; max-width: 910px; flex: 1; min-width: 0; }
    .post-toc {
        display: block; width: 196px; flex-shrink: 0;
        position: sticky; top: 100px; order: -1;
        padding-top: 108px;
        max-height: calc(100vh - 110px); overflow-y: auto;
    }
    .post-toc-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 14px; }
    .post-toc-list { list-style: none; padding: 0; margin: 0; }
    .post-toc-list li { margin-bottom: 2px; }
    .post-toc-link { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted2); text-decoration: none; letter-spacing: 0.03em; line-height: 1.5; display: block; padding: 4px 0 4px 10px; border-left: 2px solid var(--border); transition: color 0.15s, border-color 0.15s; }
    .post-toc-link:hover, .post-toc-link.active { color: var(--accent); border-left-color: var(--accent); }
}

/* ── OFFERS SIDEBAR — oferty ekskluzywne 2hr.pl, kolumna przy treści (blog/wpis/oferta/polityka/regulamin/o-nas/pracodawcy/statystyki/api) ── */
.side-layout { display: block; }
.side-layout-main { min-width: 0; }
.offers-sidebar { padding: 0 5vw 56px; }
.offers-sidebar-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.side-offer-card { display: block; border: 1px solid #454545; background: #131313; padding: 14px 16px; margin-bottom: 10px; text-decoration: none; transition: border-color 0.25s, background 0.25s; }
[data-theme="light"] .side-offer-card { border-color: #c7cbc5; }
.side-offer-card:hover { border-color: rgba(0,255,135,0.45); background: #161616; }
.side-offer-2hr { border-color: var(--accent); background: linear-gradient(135deg, rgba(0,255,135,0.08), rgba(0,255,135,0.015) 65%); box-shadow: 0 0 0 1px rgba(0,255,135,0.18); }
.side-offer-2hr:hover { background: linear-gradient(135deg, rgba(0,255,135,0.13), rgba(0,255,135,0.03) 65%); box-shadow: 0 0 0 1px rgba(0,255,135,0.32); }
[data-theme="light"] .side-offer-2hr { background: linear-gradient(135deg, rgba(0,138,71,0.07), rgba(0,138,71,0.01) 65%); box-shadow: 0 0 0 1px rgba(0,138,71,0.16); }
.side-offer-badge { display: inline-flex; align-items: center; gap: 4px; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; color: #0a0a0a; background: var(--accent); padding: 2px 6px; border-radius: 3px; margin-bottom: 8px; box-shadow: 0 0 10px rgba(0,255,135,0.4); }
.side-offer-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; color: var(--text); line-height: 1.35; margin-bottom: 6px; }
.side-offer-card:hover .side-offer-title { color: var(--accent); }
.side-offer-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); line-height: 1.5; }
.side-offer-meta span { color: var(--muted2); }
.side-offer-salary { color: var(--accent); }

/* reklama (2sh.pl) na końcu sidebara — przerywana ramka, brak poświaty accentu, żeby nie udawać oferty pracy */
.side-offer-ad { border: 1px dashed #5a5a5a; background: #101010; }
[data-theme="light"] .side-offer-ad { border-color: #9aa39a; background: rgba(255,255,255,0.6); }
.side-offer-ad:hover { border-color: var(--muted2); background: #141414; }
[data-theme="light"] .side-offer-ad:hover { background: rgba(255,255,255,0.9); }
.side-offer-badge-ad { color: var(--muted2); background: transparent; border: 1px solid #5a5a5a; box-shadow: none; }

@media (min-width: 1200px) {
    .side-layout { display: flex; align-items: flex-start; gap: 40px; max-width: 1350px; margin: 0 auto; }
    .side-layout-main { flex: 1 1 auto; }
    .offers-sidebar { width: 280px; flex-shrink: 0; padding: 108px 0 0; position: sticky; top: 100px; }
}

.nav-fav {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: var(--muted); text-decoration: none;
    letter-spacing: 0.05em; transition: color 0.2s;
}
.nav-fav:hover, .nav-fav.has-favs { color: var(--accent); }

/* ── TRACKER ────────────────────────────────────────────────────────────── */
.oferta-tracker { margin-top: 8px; }
.oferta-tracker-label {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: var(--muted2); letter-spacing: 0.05em; margin-bottom: 14px;
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.tracker-privacy { font-size: 13px; color: var(--muted2); opacity: 0.7; font-style: italic; letter-spacing: 0; }
.tracker-status-row { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.tracker-status-btn {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: var(--muted2); background: none; cursor: pointer;
    border: 1px solid var(--border); padding: 6px 16px;
    letter-spacing: 0.04em; transition: color 0.15s, border-color 0.15s;
}
.tracker-status-btn:hover { color: var(--accent); border-color: var(--accent); }
.tracker-status-btn[data-status="aplikowałem"].active { color: var(--accent); border-color: var(--accent); }
.tracker-status-btn[data-status="czekam"].active { color: #f0c040; border-color: #f0c040; }
.tracker-status-btn[data-status="odrzucono"].active { color: #ff5555; border-color: #ff5555; }
.tracker-status-clear {
    background: none; border: none; color: var(--muted); cursor: pointer;
    font-size: 13px; padding: 4px 6px; line-height: 1;
    transition: color 0.15s; display: none;
}
.tracker-status-clear:hover { color: var(--text); }
.tracker-notes {
    width: 100%; box-sizing: border-box;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    color: var(--muted2); font-family: 'Manrope', sans-serif; font-size: 15px;
    padding: 14px 16px; resize: vertical; line-height: 1.7;
    transition: border-color 0.15s; outline: none;
}
.tracker-notes:focus { border-color: rgba(0,255,135,0.4); }
.tracker-notes::placeholder { color: var(--muted2); opacity: 0.6; }
[data-theme="light"] .tracker-notes { background: rgba(0,0,0,0.03); }

/* ── PODOBNE OFERTY ─────────────────────────────────────────────────────── */
.similar-section { padding: 0 5vw 80px; border-top: 1px solid var(--border); margin-top: 0; }
.similar-section .sec-label { padding: 40px 0 24px; }

/* ── RECENTLY VIEWED BAR ────────────────────────────────────────────────── */
.recent-bar { display: flex; align-items: center; gap: 12px; padding: 10px 5vw; margin: 0 0 4px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.recent-bar-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted2); letter-spacing: 0.1em; white-space: nowrap; flex-shrink: 0; }
.recent-bar-items { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.recent-item { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); text-decoration: none; border: 1px solid var(--border); padding: 3px 10px; letter-spacing: 0.03em; transition: color 0.15s, border-color 0.15s; white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.recent-item:hover { color: var(--accent); border-color: var(--accent); }

/* ── BURGER MENU ────────────────────────────────────────────────────────── */
.burger-btn .burger-close { display: none; }
.burger-btn.open .burger-icon { display: none; }
.burger-btn.open .burger-close { display: block; }
.burger-btn.open { color: var(--accent); }

.burger-menu {
    display: none;
    position: fixed;
    top: 54px;
    right: 5vw;
    left: auto;
    width: 220px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
    padding: 6px 0 8px;
    z-index: 999;
    flex-direction: column;
}
.burger-menu.open { display: flex; }

.burger-link {
    display: block;
    padding: 11px 18px;
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .04em;
    transition: color .15s, background .15s;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.burger-link:hover, .burger-link:active { color: var(--accent); background: rgba(0,255,135,.06); }
.burger-link.active { color: var(--accent); }
.burger-sep { height: 1px; background: var(--border); margin: 5px 12px; }
[data-theme="light"] .burger-menu { background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.15); }
[data-theme="light"] .burger-link:hover { background: rgba(0,138,71,.06); }

/* ── LISTING TOGGLE (oferty ↔ zlecenia) ─────────────────────────────────── */
.listing-toggle {
    display: flex;
    gap: 6px;
    padding: 0 5vw 20px;
}
.listing-toggle-btn {
    padding: 7px 18px;
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--muted);
    border: 1px solid var(--border);
    text-decoration: none;
    border-radius: 2px;
    transition: color .15s, border-color .15s, background .15s;
    letter-spacing: .02em;
}
.listing-toggle-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(0,255,135,.06);
}
.listing-toggle-btn:hover:not(.active) {
    color: var(--text);
    border-color: #444;
}
[data-theme="light"] .listing-toggle-btn.active { background: rgba(0,138,71,.06); }

/* ── TAG BAR ────────────────────────────────────────────────────────────── */
.filters-toggle-row { padding: 0 5vw; margin: 0 0 10px; display: flex; justify-content: flex-end; }
.filters-toggle {
    background: none; border: none; cursor: pointer; padding: 2px 0;
    font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em;
    color: var(--muted2); transition: color 0.2s;
}
.filters-toggle:hover { color: var(--accent); }
.filters-toggle-show { display: none; }
html.filters-hidden .filters-toggle-hide { display: none; }
html.filters-hidden .filters-toggle-show { display: inline; }
.tag-bar, .recent-bar { overflow: hidden; max-height: 900px; opacity: 1; transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.35s ease, padding 0.35s ease; }
html.filters-hidden .tag-bar,
html.filters-hidden .recent-bar {
    max-height: 0 !important; opacity: 0; margin: 0 !important; padding-top: 0; padding-bottom: 0; border: none; pointer-events: none;
}
.tag-bar { display: flex; flex-direction: column; gap: 10px; padding: 0 5vw; margin: 0 0 24px; }
.tag-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag-label {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: var(--muted); letter-spacing: 0.05em; margin-right: 4px; flex-shrink: 0;
}
.tag {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: var(--muted2); text-decoration: none;
    border: 1px solid var(--border); padding: 3px 10px;
    letter-spacing: 0.03em; transition: color 0.15s, border-color 0.15s;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.tag:hover { color: var(--accent); border-color: var(--accent); }
.tag.active { color: var(--accent); border-color: var(--accent); }
.tag-count { color: var(--muted); font-size: 13px; }
.tag.active .tag-count { color: var(--accent); opacity: 0.7; }

/* ── COOKIE BAR ─────────────────────────────────────────────────────────── */
.cookie-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: rgba(10,10,10,0.97); border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-bar.cookie-bar-visible { transform: translateY(0); }
.cookie-bar.cookie-bar-hide    { transform: translateY(110%); }
.cookie-bar-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 14px 5vw;
    padding-bottom: max(14px, calc(14px + env(safe-area-inset-bottom)));
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-bar-label {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: var(--accent); letter-spacing: 0.1em; margin-right: 10px;
}
.cookie-bar-text {
    font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; flex: 1;
}
.cookie-bar-text a { color: var(--muted2); text-decoration: none; }
.cookie-bar-text a:hover { color: var(--accent); }
.cookie-bar-btn {
    font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.06em;
    background: none; border: 1px solid var(--accent); color: var(--accent);
    padding: 8px 20px; cursor: pointer; white-space: nowrap;
    transition: background 0.2s, color 0.2s; flex-shrink: 0;
}
.cookie-bar-btn:hover { background: var(--accent); color: #000; }
[data-theme="light"] .cookie-bar { background: rgba(247,247,245,0.97); }

/* ── 404 / OFERTA NIE ISTNIEJE ─────────────────────────────────────────── */
.not-found-box {
    max-width: 560px;
    margin: 80px auto 0;
    text-align: center;
    padding: 60px 40px;
    border: 1px solid var(--border);
}
.not-found-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}
.not-found-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
}
.not-found-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 36px;
}
.not-found-cta {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    padding: 14px 32px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: opacity 0.2s;
}
.not-found-cta:hover { opacity: 0.85; }

/* ── STATYSTYKI ─────────────────────────────────────────────────────────── */
.stats-page h2 { font-family: 'Syne', sans-serif; font-size: 18px; color: var(--accent); margin: 40px 0 16px; letter-spacing: 0.04em; }
.stats-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 24px 0 36px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); }
.stats-meta strong { color: var(--text); }
.stats-table-wrap { overflow-x: auto; margin-bottom: 8px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table thead th { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); letter-spacing: 0.06em; text-transform: uppercase; }
.stats-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.stats-table tbody tr:hover { background: var(--surface); }
.stats-table tbody td { padding: 10px 12px; vertical-align: middle; }
.stats-name { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text); white-space: nowrap; }
.stats-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }

/* ── KALKULATOR WYNAGRODZEŃ ─────────────────────────────────────────────── */
.kalk-form { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 28px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; max-width: 100%; overflow: hidden; }
.kalk-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); min-width: 0; }
.kalk-form input[type="number"] { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 12px 14px; font-family: var(--font-mono); font-size: 1.1rem; border-radius: 8px; width: 100%; max-width: 320px; }
.kalk-form input[type="number"]:focus { outline: none; border-color: var(--accent); }
.kalk-form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; min-width: 0; }
.kalk-form button { background: var(--accent); color: var(--bg); border: none; padding: 13px 26px; font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; border-radius: 8px; cursor: pointer; transition: opacity 0.15s; white-space: nowrap; }
.kalk-form button:hover { opacity: 0.85; }
[data-theme="light"] .kalk-form button { color: #fff; }

.kalk-tryb, .kalk-rmode, .kalk-period { display: flex; flex-wrap: wrap; gap: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px; width: fit-content; max-width: 100%; }
.kalk-tryb-opt, .kalk-rmode-opt, .kalk-period-opt { position: relative; margin: 0; cursor: pointer; min-width: 0; }
.kalk-tryb-opt input, .kalk-rmode-opt input, .kalk-period-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kalk-tryb-opt span, .kalk-rmode-opt span, .kalk-period-opt span { display: block; padding: 8px 14px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap; transition: background 0.15s, color 0.15s; }
.kalk-tryb-opt:has(input:checked) span, .kalk-rmode-opt:has(input:checked) span, .kalk-period-opt:has(input:checked) span { background: var(--accent); color: var(--bg); font-weight: 700; }
[data-theme="light"] .kalk-tryb-opt:has(input:checked) span, [data-theme="light"] .kalk-rmode-opt:has(input:checked) span, [data-theme="light"] .kalk-period-opt:has(input:checked) span { color: #fff; }
.kalk-tryb-opt:has(input:focus-visible) span, .kalk-rmode-opt:has(input:focus-visible) span, .kalk-period-opt:has(input:focus-visible) span { outline: 2px solid var(--accent); outline-offset: 2px; }
.kalk-rmode { margin-top: 2px; }
.kalk-rmode.hidden, .kalk-kwota-field.hidden, .kalk-rate-calc.hidden, .kalk-opt-select.hidden { display: none; }

.kalk-rate-calc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -6px; padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.kalk-rate-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); min-width: 0; }
.kalk-rate-field input[type="number"] { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 10px 12px; font-family: var(--font-mono); font-size: 1rem; border-radius: 8px; width: 110px; max-width: 100%; }
.kalk-rate-field input[type="number"]:focus { outline: none; border-color: var(--accent); }
.kalk-rate-op { font-family: var(--font-mono); font-size: 1.1rem; color: var(--muted); align-self: center; margin-top: 20px; }
.kalk-rate-result { display: flex; flex-direction: column; gap: 4px; padding-left: 4px; }
.kalk-rate-result strong { font-family: var(--font-mono); font-size: 1.05rem; color: var(--text); white-space: nowrap; }
@media (max-width: 480px) {
    .kalk-rate-calc { flex-direction: column; align-items: stretch; gap: 10px; }
    .kalk-rate-field { width: 100%; }
    .kalk-rate-field input[type="number"] { width: 100%; }
    .kalk-rate-op { display: none; }
    .kalk-rate-result { padding-left: 0; padding-top: 4px; border-top: 1px solid var(--border); }
}
.kalk-rate-hint { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); font-weight: normal; text-transform: none; letter-spacing: 0; white-space: nowrap; }

.kalk-options { display: flex; gap: 14px 18px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); min-width: 0; }
.kalk-opt-check { display: flex; flex-direction: row !important; align-items: flex-start; gap: 7px; cursor: pointer; font-size: 0.78rem; color: var(--text) !important; max-width: 100%; }
.kalk-opt-check input { width: 15px; height: 15px; margin-top: 3px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.kalk-opt-check em { color: var(--muted); font-style: normal; }
.kalk-opt-select { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text) !important; min-width: 0; }
.kalk-opt-select select { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 6px 10px; font-family: var(--font-mono); font-size: 0.72rem; border-radius: 6px; cursor: pointer; max-width: 100%; }
.kalk-opt-select select:focus { outline: none; border-color: var(--accent); }
.kalk-opt-select input[type="number"] { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 6px 10px; font-family: var(--font-mono); font-size: 0.72rem; border-radius: 6px; width: 130px; max-width: 100%; }
.kalk-opt-select input[type="number"]:focus { outline: none; border-color: var(--accent); }
.kalk-opt-select em { color: var(--muted); font-style: normal; }

#kalkShareBtn { background: transparent; color: var(--text); border: 1px solid var(--border); }
#kalkShareBtn:hover { opacity: 1; border-color: var(--accent); color: var(--accent); }
.kalk-share-msg { font-size: 0.75rem; color: var(--accent); font-family: var(--font-mono); margin: -6px 0 6px; }
.kalk-share-msg.hidden { display: none; }

.kalk-live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 4px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; transition: border-color 0.2s, box-shadow 0.2s; }
.kalk-live-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.kalk-live strong { font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.kalk-live span#kalkLiveWariant { font-size: 0.78rem; color: var(--text); }
@keyframes kalkLiveFlash {
    0%   { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
    100% { border-color: var(--border); box-shadow: none; }
}
.kalk-live.flash { animation: kalkLiveFlash 0.7s ease-out; }

.kalk-wspolny-note { font-size: 0.78rem; color: var(--accent); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: -16px 0 24px; line-height: 1.5; }
.kalk-wspolny-note.hidden { display: none; }

.kalk-formula { margin-top: 14px; }
.kalk-formula summary { cursor: pointer; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.02em; list-style: none; }
.kalk-formula summary::-webkit-details-marker { display: none; }
.kalk-formula summary:hover { color: var(--accent); }
.kalk-formula[open] summary { color: var(--accent); }
.kalk-formula ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.kalk-formula li { font-size: 0.68rem; color: var(--muted); line-height: 1.5; padding-left: 12px; position: relative; }
.kalk-formula li::before { content: '·'; position: absolute; left: 0; color: var(--accent); }
.kalk-formula.hidden { display: none; }

.kalk-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 20px 0 32px; max-width: 420px; }
@media (min-width: 640px) { .kalk-cards { grid-template-columns: repeat(2, 1fr); max-width: none; } }
.kalk-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 16px; min-width: 0; transition: border-color 0.2s, box-shadow 0.2s; }
.kalk-card-best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 28px rgba(0,255,135,0.10); }
.kalk-card-badge { position: absolute; top: -11px; right: 12px; background: var(--accent); color: var(--bg); font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; }
[data-theme="light"] .kalk-card-badge { color: #fff; }
.kalk-card-label { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text); margin-bottom: 2px; white-space: nowrap; }
.kalk-card-sub { font-size: 0.7rem; color: var(--muted); margin-bottom: 16px; min-height: 2.6em; line-height: 1.35; }
.kalk-card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 0.78rem; color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--border); }
.kalk-card-row.hidden { display: none; }
.kalk-card-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kalk-card-row span:last-child { font-family: var(--font-mono); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 0.82rem; flex-shrink: 0; }
.kalk-card-netto { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.kalk-card-netto span { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kalk-card-netto strong { font-family: var(--font-mono); font-size: 1.35rem; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kalk-card-best .kalk-card-netto strong { color: var(--accent); }
.stats-pct { min-width: 120px; }
.stats-pct-wrap { display: flex; align-items: center; gap: 8px; }
.stats-pct-wrap span { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 36px; }
.stats-pct-bar { height: 4px; background: var(--accent); opacity: 0.7; border-radius: 2px; min-width: 2px; transition: width 0.3s; }
.stats-link { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); text-decoration: none; white-space: nowrap; opacity: 0.7; transition: opacity 0.2s; }
.stats-link:hover { opacity: 1; }
.stats-row-remote .stats-name { color: var(--muted); }
.stats-subtitle { font-size: 13px; color: var(--muted); margin: -8px 0 16px; }
.stats-sal { min-width: 220px; }
.stats-sal-wrap { display: flex; align-items: center; gap: 6px; }
.stats-sal-low { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); white-space: nowrap; }
.stats-sal-sep { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted2); }
.stats-sal-high { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--text); font-weight: 600; white-space: nowrap; }
.stats-sal-pln { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted2); }
.stats-sal-bar { flex: 1; height: 3px; background: var(--border); border-radius: 2px; min-width: 40px; overflow: hidden; }
.stats-sal-bar-fill { height: 100%; background: var(--accent); opacity: 0.6; border-radius: 2px; }
.stats-note { font-size: 13px; color: var(--muted); margin-top: 32px; line-height: 1.6; }

/* ── STATS HISTORY (trendy) ─────────────────────────────────────────────── */
.stats-history { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.stats-history h2 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.stats-history-collecting { opacity: 0.6; }
.stats-charts-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 28px 0 40px; }
.stats-chart-box { background: #0f0f0f; border: 1px solid var(--border); padding: 20px 20px 14px; }
.stats-chart-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.stats-chart-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0; }
.stats-chart-expand { background: none; border: 1px solid var(--border); color: var(--muted); cursor: pointer; font-size: 16px; padding: 2px 8px; line-height: 1; transition: color 0.15s, border-color 0.15s; }
.stats-chart-expand:hover { color: var(--accent); border-color: var(--accent); }

/* modal */
.chart-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.chart-modal[hidden] { display: none; }
.chart-modal-inner { background: #0f0f0f; border: 1px solid var(--border); width: 100%; max-width: 1400px; height: 90vh; display: flex; flex-direction: column; padding: 24px; }
.chart-modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-shrink: 0; }
.chart-modal-close { background: none; border: 1px solid var(--border); color: var(--muted); cursor: pointer; font-size: 18px; padding: 4px 10px; line-height: 1; transition: color 0.15s, border-color 0.15s; }
.chart-modal-close:hover { color: var(--accent); border-color: var(--accent); }
#chartModalCanvas { flex: 1; min-height: 0; }
.stats-trends-title { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 16px; letter-spacing: 0.02em; }
.stats-trends { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); }
.stats-trend-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.stats-trend-row:last-child { border-bottom: none; }
.stats-trend-row:hover { background: rgba(255,255,255,0.02); }
.stats-trend-name { font-weight: 500; font-size: 14px; }
.stats-trend-vals { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }
.stats-trend-diff { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; white-space: nowrap; }
.stats-trend-diff.up   { color: #00ff87; }
.stats-trend-diff.down { color: #ff6b6b; }
@media (max-width: 700px) {
    .stats-charts-grid { grid-template-columns: 1fr; }
    .stats-trend-row { grid-template-columns: 1fr auto; }
    .stats-trend-vals { display: none; }
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .nav-links { display: none; }
    .nav-search-btn { display: none; }
    .nav-map-btn { display: none; }
    .nav-fav { display: none; }
    .theme-btn { display: none; }
    .nav-icons { display: flex; }
    .hero { min-height: 70vh; padding: 100px 5vw 60px; }
    .hero h1 { font-size: clamp(38px, 11vw, 64px); }
    .search-form { flex-wrap: wrap; }
    .search-loc { flex: 1 1 100% !important; border-left: none !important; border-top: 1px solid var(--border) !important; }
    .jobs-list, html.compact-view .jobs-list { grid-template-columns: 1fr; }
    .view-toggle-bar { justify-content: flex-end; }
    .view-btn-grid, .view-btn-list, .view-toggle-bar .view-toggle-sep:first-of-type { display: none; }
    .view-btn-swipe, .view-toggle-sep-swipe { display: inline-block; }
    .swipe-ctrl-btn { padding: 11px 16px; font-size: 12px; }
    .job-top { flex-direction: column; gap: 6px; }
    .job-salary { align-self: flex-start; }
    .stats-bar { gap: 14px; }
    .stat-sep { display: none; }
    .oferta-wrap { padding: 90px 5vw 60px; }
    footer { flex-direction: column; align-items: flex-start; }
}

/* ── CAT-ABOUT (SEO content block na stronach kategorii) ────────────────── */
.cat-about {
    background: color-mix(in srgb, var(--accent) 4%, var(--bg));
    border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    padding: 56px 5vw;
    margin-top: 48px;
}
.cat-about-inner {
    max-width: 860px;
    margin: 0 auto;
}
.cat-about-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: .06em;
    margin-bottom: 10px;
}
.cat-about-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 18px;
    line-height: 1.3;
}
.cat-about-desc {
    color: var(--muted-text, #bbb);
    font-size: .97rem;
    line-height: 1.75;
    margin: 0 0 32px;
    max-width: 780px;
}
.cat-about-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}
.cat-about-fact {
    background: var(--surface, #111);
    padding: 14px 18px;
}
.cat-about-fact dt {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 5px;
}
.cat-about-fact dd {
    font-size: .93rem;
    color: var(--text);
    font-weight: 500;
    margin: 0;
}
.cat-about-note {
    font-size: .82rem;
    color: var(--muted);
    margin: 0;
    font-style: italic;
}
[data-theme="light"] .cat-about-desc { color: #444; }
[data-theme="light"] .cat-about-fact { background: #fafafa; }

.search-alias-hint {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    opacity: 0.75;
    margin-top: 3px;
}

/* ── ZLECENIA ───────────────────────────────────────────────────────────── */
.zlecenia-hero {
    padding: 108px 5vw 32px;
    max-width: 860px;
}
.zlecenia-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin: 12px 0 20px;
}
.zlecenia-hero h1 em { color: var(--accent); font-style: normal; }
.zlecenia-desc {
    color: var(--muted);
    font-size: 1rem;
    margin: 0 0 28px;
    max-width: 560px;
}
.zlecenia-search { margin-bottom: 8px; }

.zlecenia-source-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    opacity: 0.7;
    letter-spacing: 0.04em;
}

.zlecenia-seo {
    padding: 48px 5vw 64px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
.zlecenia-seo-inner { max-width: 100%; }
.zlecenia-seo h2 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    margin: 0 0 16px;
}
.zlecenia-seo h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 32px 0 12px;
}
.zlecenia-seo p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 20px;
    font-size: .95rem;
}
.zlecenia-seo p a { color: var(--accent); text-decoration: none; }
.zlecenia-seo p a:hover { text-decoration: underline; }

.zlecenia-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 0 0 32px;
}
.zlecenia-seo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 16px 18px;
}
.zlecenia-seo-card strong { font-size: .95rem; }
.zlecenia-seo-card strong a { color: var(--text); text-decoration: none; }
.zlecenia-seo-card strong a:hover { color: var(--accent); }
.zlecenia-seo-card p {
    font-size: .82rem;
    color: var(--muted);
    margin: 8px 0 0;
    line-height: 1.5;
}

.zlecenia-seo-tips {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.zlecenia-seo-tips li {
    padding-left: 20px;
    position: relative;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
}
.zlecenia-seo-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
}

.zlecenia-seo-footer {
    font-size: .85rem;
    color: var(--muted);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

[data-theme="light"] .zlecenia-seo-card { background: #fafafa; }

.zlecenia-seo-rates {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 28px;
}
.zlecenia-rate-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}
.zlecenia-rate-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.08em;
}
.zlecenia-rate-val {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.zlecenia-seo-tip-box {
    background: rgba(0,255,135,0.04);
    border: 1px solid rgba(0,255,135,0.2);
    border-radius: 4px;
    padding: 16px 20px;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.zlecenia-tip-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.08em;
}
.zlecenia-seo-tip-box p {
    margin: 0;
    color: var(--text);
    font-size: .9rem;
    line-height: 1.6;
}

[data-theme="light"] .zlecenia-rate-item { background: #fafafa; }
[data-theme="light"] .zlecenia-seo-tip-box { background: rgba(0,138,71,0.04); border-color: rgba(0,138,71,0.2); }

/* ── PWA INSTALL BANNER ─────────────────────────────────────────────────── */
#pwa-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: #111;
    border-top: 1px solid #1e1e1e;
    padding: 12px 16px 16px;
    padding-bottom: max(16px, calc(16px + env(safe-area-inset-bottom)));
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}
#pwa-banner.pwa-visible { transform: translateY(0); }
#pwa-banner-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}
#pwa-banner-body { flex: 1; min-width: 0; }
#pwa-banner-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 2px;
}
#pwa-banner-sub {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}
#pwa-banner-sub svg { vertical-align: -3px; margin: 0 2px; }
#pwa-banner-install {
    flex-shrink: 0;
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}
#pwa-banner-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #555;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
#pwa-banner-close:hover { color: var(--text); }
[data-theme="light"] #pwa-banner { background: #fff; border-top-color: #e5e5e5; }
[data-theme="light"] #pwa-banner-title { color: #111; }
[data-theme="light"] #pwa-banner-close { color: #aaa; }

/* ── Push Notification banner ─────────────────────────────────────── */
#notif-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9998;
    background: #111;
    border-top: 1px solid #1e1e1e;
    padding: 12px 16px 16px;
    padding-bottom: max(16px, calc(16px + env(safe-area-inset-bottom)));
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}
#notif-banner.notif-visible { transform: translateY(0); }
#notif-banner-icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
#notif-banner-body { flex: 1; min-width: 0; }
#notif-banner-title { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--text); line-height: 1.2; margin-bottom: 2px; }
#notif-banner-sub   { font-size: 0.75rem; color: #666; line-height: 1.4; }
#notif-banner-allow {
    flex-shrink: 0;
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}
#notif-banner-allow:disabled { opacity: 0.6; cursor: default; }
#notif-banner-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #555;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
#notif-banner-close:hover { color: var(--text); }
[data-theme="light"] #notif-banner { background: #fff; border-top-color: #e5e5e5; }
[data-theme="light"] #notif-banner-title { color: #111; }
[data-theme="light"] #notif-banner-close { color: #aaa; }

/* ── QUIZ (testy wiedzy) ───────────────────────────────────────────────── */
.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.quiz-tech-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 20px; border: 1px solid var(--border); background: var(--surface); text-decoration: none !important; transition: border-color .2s, transform .15s; }
.quiz-tech-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.quiz-tech-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--text); }
.quiz-tech-cta { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); letter-spacing: .04em; }

#quizApp { margin-top: 28px; border: 1px solid var(--border); background: var(--surface); padding: 28px; max-width: 640px; }
.quiz-intro p { color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.quiz-intro-tagline { color: var(--text) !important; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.5 !important; padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(0, 255, 135, 0.06); }

.quiz-play { scroll-margin-top: 90px; }
.quiz-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.quiz-timer { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; font-size: 1rem; }
.quiz-timer.quiz-timer-warn { color: #ff4d4d; animation: quizPulse 1s infinite; }
@keyframes quizPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.quiz-progress-bar { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 24px; }
.quiz-progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width .3s ease; }

.quiz-question-box { margin-bottom: 24px; }
.quiz-question-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.quiz-question-hint { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); margin-bottom: 18px; }

.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); cursor: pointer; transition: border-color .15s, background .15s; user-select: none; }
@media (hover: hover) and (pointer: fine) {
    .quiz-option:hover { border-color: var(--accent); }
}
.quiz-option.selected { border-color: var(--accent); background: rgba(0, 255, 135, 0.08); }
.quiz-option-letter { flex-shrink: 0; width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.quiz-option.selected .quiz-option-letter { border-color: var(--accent); color: var(--accent); }
.quiz-option-text { line-height: 1.5; font-size: .95rem; }

.quiz-nav-buttons { display: flex; gap: 10px; }
.quiz-next-btn { flex: 1; text-align: center; }
.quiz-prev-btn { flex: 0 0 auto; white-space: nowrap; }
.quiz-prev-btn[hidden] { display: none; }

.quiz-summary { text-align: center; }
.quiz-score-badge { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--accent); margin-bottom: 6px; }
.quiz-tier { font-family: var(--font-mono); color: var(--muted); margin-bottom: 24px; }

.quiz-review { text-align: left; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.quiz-review-item { border: 1px solid var(--border); padding: 14px 16px; font-size: .9rem; }
.quiz-review-item.correct { border-left: 3px solid var(--accent); }
.quiz-review-item.wrong { border-left: 3px solid #ff4d4d; }
.quiz-review-q { font-weight: 700; margin-bottom: 6px; }
.quiz-review-answer { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.quiz-review-answer strong { color: var(--text); }
.quiz-review-explanation { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); color: var(--muted); font-size: .85rem; line-height: 1.6; }

.quiz-actions { margin-bottom: 28px; }
.quiz-cert-box { border-top: 1px dashed var(--border); padding-top: 24px; }
.quiz-cert-threshold-note { color: var(--muted); font-size: .85rem; margin-bottom: 4px; }
.quiz-cert-locked { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.quiz-linkedin-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; text-decoration: none !important; }
.quiz-linkedin-btn svg { flex-shrink: 0; }
.quiz-cert-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.quiz-cert-form input[type=text] { flex: 1; min-width: 200px; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 12px 14px; font-family: var(--font-mono); font-size: .9rem; }
.quiz-cert-form input[type=text]:focus { outline: none; border-color: var(--accent); }

#quizApp button.btn-primary, #quizApp button.btn-secondary { cursor: pointer; font-family: var(--font-display); }
#quizApp button.btn-primary { border: none; background: var(--accent); }
#quizApp button.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--muted); font-family: var(--font-mono); }
#quizApp button.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 700px) {
    #quizApp { padding: 18px; }
    .quiz-score-badge { font-size: 2rem; }
    .quiz-cert-form { flex-direction: column; }
}

