/* =========================================================
   KAKOFIND — LINK CONVERTER (REDESIGN 2026)
   Prosty, szybki, premium. Czerń #050505 / czerwień #E60000.
   ========================================================= */

:root {
    --bg-dark: #050505;
    --red-primary: #E60000;
    --red-hover: #ff2d2d;
    --red-deep: #8A0000;
    --text-white: #ffffff;
    --muted: #9a9a9a;
    --line: rgba(255, 255, 255, 0.09);
    --card: #0e0e0e;
    --card-2: #141414;
    --glass-panel: rgba(16, 16, 16, 0.78);
    --green: #00E676;
    --pink: #ff4081;
    --ease-pop: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
    background-color: var(--bg-dark);
    font-family: 'Poppins', sans-serif;
    color: var(--text-white);
}

/* Niezawodne ukrywanie (działa też na elementach flex/grid) */
.converter-page [hidden] { display: none !important; }

/* --- KONTENER GŁÓWNY --- */
.converter-page {
    padding-top: 150px;
    padding-bottom: 90px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* --- TŁO --- */
.conv-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.conv-grid-fx {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 12%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 55% at 50% 12%, #000 25%, transparent 75%);
    opacity: 0.7;
}
.conv-glow {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 720px;
    max-width: 120vw;
    background: radial-gradient(circle, rgba(230, 0, 0, 0.22) 0%, transparent 65%);
    filter: blur(70px);
    animation: convPulse 7s ease-in-out infinite;
}
@keyframes convPulse {
    0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
    50%      { opacity: 0.9;  transform: translateX(-50%) scale(1.08); }
}

/* --- HERO --- */
.converter-hero {
    text-align: center;
    margin-bottom: 26px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.floating-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(150deg, var(--red-primary), var(--red-deep));
    box-shadow: 0 12px 34px rgba(230, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: floatIcon 4s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.converter-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.5px;
    margin: 4px 0 2px;
}
.text-gradient {
    background: linear-gradient(90deg, #fff 10%, var(--red-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.converter-hero p {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 540px;
    margin: 0 auto;
}

/* --- PANEL SZKLANY --- */
.converter-interface {
    display: flex;
    justify-content: center;
    padding: 0 18px;
}
.glass-panel {
    background: var(--glass-panel);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 760px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
}
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
}

/* --- KROKI --- */
.conv-step { display: flex; flex-direction: column; gap: 12px; }
.conv-step__head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.conv-step__num {
    flex: none;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(230, 0, 0, 0.14);
    border: 1px solid rgba(230, 0, 0, 0.4);
    color: #ff6b6b;
    font-size: 0.78rem;
    font-weight: 700;
}
.conv-step__label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e6e6e6;
}
.conv-detected {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.32);
    color: #71f7b0;
    font-size: 0.74rem;
    font-weight: 600;
    animation: chipIn 0.3s var(--ease-pop);
}
.conv-detected .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}
@keyframes chipIn {
    from { opacity: 0; transform: translateY(-4px) scale(0.9); }
    to   { opacity: 1; transform: none; }
}

/* --- INPUT --- */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 18px;
    color: #666;
    font-size: 1.05rem;
    pointer-events: none;
    transition: color 0.25s;
}
.input-group input {
    width: 100%;
    background: #060606;
    border: 1px solid #2a2a2a;
    padding: 17px 96px 17px 46px;
    border-radius: 14px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.input-group input::placeholder { color: #5c5c5c; }
.input-group input:focus {
    border-color: var(--red-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.12);
}
.input-group:focus-within .input-icon { color: var(--red-primary); }

.in-btn {
    position: absolute;
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    color: #aaa;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}
.in-btn:hover { color: #fff; border-color: #555; background: #262626; }
.clear-btn { right: 56px; }
.paste-btn { right: 12px; }

/* --- GRID AGENTÓW --- */
.agent-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}
.agent-option {
    position: relative;
    background: var(--card);
    border: 1px solid #262626;
    border-radius: 14px;
    padding: 13px 6px 11px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    transition: transform 0.25s var(--ease-pop), border-color 0.2s, background 0.2s, box-shadow 0.25s;
    /* wejście */
    opacity: 0;
    animation: tileIn 0.45s var(--ease-pop) forwards;
}
@keyframes tileIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.agent-option:nth-child(1)  { animation-delay: 0.02s; }
.agent-option:nth-child(2)  { animation-delay: 0.06s; }
.agent-option:nth-child(3)  { animation-delay: 0.10s; }
.agent-option:nth-child(4)  { animation-delay: 0.14s; }
.agent-option:nth-child(5)  { animation-delay: 0.18s; }
.agent-option:nth-child(6)  { animation-delay: 0.22s; }
.agent-option:nth-child(7)  { animation-delay: 0.26s; }
.agent-option:nth-child(8)  { animation-delay: 0.30s; }
.agent-option:nth-child(9)  { animation-delay: 0.34s; }
.agent-option:nth-child(10) { animation-delay: 0.38s; }
.agent-option:nth-child(11) { animation-delay: 0.42s; }
.agent-option:nth-child(12) { animation-delay: 0.46s; }
.agent-option:nth-child(13) { animation-delay: 0.50s; }

.agent-option:hover {
    border-color: rgba(230, 0, 0, 0.5);
    background: #161616;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.agent-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
    display: grid;
    place-items: center;
    padding: 7px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s var(--ease-pop);
}
.agent-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.agent-logo.raw-logo {
    background: linear-gradient(145deg, #2a2a2a, #131313);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* Logo w jasnym kolorze (białe) — ciemny kafelek dla widoczności */
.agent-logo.dark-logo {
    background: linear-gradient(145deg, #2a2a2a, #131313);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.agent-option:hover .agent-logo { transform: scale(1.06); }

.agent-option span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s;
}

.agent-option.active {
    background: linear-gradient(160deg, rgba(230, 0, 0, 0.18) 0%, #0a0a0a 70%);
    border-color: var(--red-primary);
    box-shadow: 0 0 0 1px var(--red-primary), 0 10px 26px rgba(230, 0, 0, 0.22);
}
.agent-option.active span { color: #fff; }

.check-icon {
    position: absolute;
    top: 6px;
    right: 7px;
    color: var(--red-primary);
    font-size: 0.85rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s var(--ease-pop);
}
.agent-option.active .check-icon { opacity: 1; transform: scale(1); }

.agent-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--red-primary), var(--red-deep));
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.45);
}

/* --- BUTTON KONWERSJI --- */
.convert-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--red-primary), var(--red-hover));
    color: #fff;
    border: none;
    padding: 17px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    transition: transform 0.2s var(--ease-pop), box-shadow 0.25s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 28px rgba(230, 0, 0, 0.32);
}
.convert-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
}
.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(230, 0, 0, 0.45);
}
.convert-btn:hover::after { animation: shine 0.85s ease; }
@keyframes shine { to { left: 130%; } }
.convert-btn:active { transform: scale(0.98); }
.convert-btn i { transition: transform 0.25s; }
.convert-btn:hover i { transform: translateX(4px); }

/* --- WYNIK --- */
.result-container {
    background: #0a0a0a;
    border: 1px solid #242424;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: resultIn 0.4s var(--ease-pop);
}
@keyframes resultIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #ccc;
}
.status-text { display: inline-flex; align-items: center; gap: 7px; }
.text-green { color: var(--green); }
.detected-platform {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: monospace;
    color: #999;
    font-size: 0.78rem;
}
.result-link-box { display: flex; gap: 10px; }
.result-link-box input {
    width: 100%;
    background: #141414;
    border: 1px solid #2c2c2c;
    color: #ddd;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: monospace;
}
.action-icon-btn {
    flex: none;
    background: #1f1f1f;
    border: 1px solid #2e2e2e;
    color: #fff;
    width: 48px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}
.action-icon-btn:hover { background: #2a2a2a; border-color: #555; }
.open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s var(--ease-pop), box-shadow 0.25s, background 0.2s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.open-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.18);
}

/* --- ERROR --- */
.error-msg {
    color: var(--pink);
    background: rgba(255, 64, 129, 0.08);
    border: 1px solid rgba(255, 64, 129, 0.3);
    padding: 13px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: chipIn 0.3s var(--ease-pop);
}

/* ==========================================================================
   HISTORIA KONWERSJI
   ========================================================================== */
.converter-history {
    display: flex;
    justify-content: center;
    padding: 0 18px;
    margin-top: 34px;
}
.history-panel {
    background: rgba(14, 14, 14, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #232323;
    padding-bottom: 15px;
    gap: 12px;
    flex-wrap: wrap;
}
.history-header h2 {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.history-header h2 i { color: var(--red-primary); }
.history-actions { display: flex; gap: 12px; align-items: center; }
.history-select {
    background: #060606;
    color: #fff;
    border: 1px solid #2c2c2c;
    padding: 8px 12px;
    border-radius: 9px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.25s;
}
.history-select:focus { border-color: var(--red-primary); }
.history-clear-btn {
    background: transparent;
    color: #808080;
    border: 1px solid #2c2c2c;
    padding: 8px 14px;
    border-radius: 9px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.history-clear-btn:hover {
    color: var(--pink);
    border-color: var(--pink);
    background: rgba(255, 64, 129, 0.08);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}
.history-list::-webkit-scrollbar { width: 6px; }
.history-list::-webkit-scrollbar-track { background: #060606; border-radius: 4px; }
.history-list::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.history-list::-webkit-scrollbar-thumb:hover { background: var(--red-primary); }

.empty-history {
    text-align: center;
    color: #6f6f6f;
    padding: 34px 0;
    font-size: 0.92rem;
}
.empty-history i { display: block; font-size: 1.8rem; margin-bottom: 10px; color: #3a3a3a; }

.history-item {
    background: #161616;
    border: 1px solid #262626;
    border-radius: 13px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: border-color 0.2s, background 0.2s;
    animation: resultIn 0.3s var(--ease-pop) forwards;
}
.history-item:hover { border-color: #444; background: #1c1c1c; }
.history-item.is-pinned {
    border-color: var(--red-primary);
    background: linear-gradient(90deg, rgba(230, 0, 0, 0.07) 0%, #161616 55%);
}
.history-item-left {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 150px;
}
.history-agent-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    padding: 5px;
    object-fit: contain;
    flex: none;
}
.history-meta { display: flex; flex-direction: column; }
.history-route { font-size: 0.8rem; color: #fff; font-weight: 600; }
.history-route i { color: #777; font-size: 0.7rem; margin: 0 4px; }
.history-date { font-size: 0.7rem; color: #777; margin-top: 2px; }
.history-item-mid { flex: 1; overflow: hidden; }
.history-link-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #9a9a9a;
    font-family: monospace;
    font-size: 0.82rem;
    outline: none;
    text-overflow: ellipsis;
    cursor: text;
}
.history-item-right { display: flex; gap: 8px; }
.hist-btn {
    background: #242424;
    border: 1px solid transparent;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
}
.hist-btn:hover { background: #3a3a3a; }
.hist-btn.pin-btn:hover { color: var(--red-primary); }
.hist-btn.pin-btn.active {
    color: var(--red-primary);
    background: rgba(230, 0, 0, 0.15);
    border-color: var(--red-primary);
}
.hist-btn.del-btn:hover { color: var(--pink); }

/* --- REVEAL ON SCROLL --- */
.scroll-hidden {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-pop);
    will-change: opacity, transform;
}
.scroll-visible {
    opacity: 1;
    transform: none;
}

/* --- RWD --- */
@media (max-width: 768px) {
    .converter-page { padding-top: 120px; }
    .glass-panel { padding: 22px 18px; gap: 20px; }
    .agent-selector-grid { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
    .agent-logo { width: 40px; height: 40px; }
    .history-item { flex-direction: column; align-items: stretch; }
    .history-item-mid { margin: 4px 0; }
    .history-item-right { justify-content: flex-end; }
    .history-header { flex-direction: column; align-items: flex-start; }
    .history-actions { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   REDESIGN 2026 — DODATKI: breadcrumb, trust, QR, wszyscy agenci, SEO, FAQ
   ========================================================================== */

/* --- BREADCRUMB --- */
.conv-breadcrumb {
    max-width: 760px;
    margin: 0 auto 14px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8rem;
    color: var(--muted);
}
.conv-breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.conv-breadcrumb a:hover { color: #fff; }
.conv-breadcrumb i { font-size: 0.62rem; color: #555; }
.conv-breadcrumb span[aria-current] { color: #ff6b6b; font-weight: 600; }

/* --- EYEBROW + TRUST --- */
.conv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(230, 0, 0, 0.1);
    border: 1px solid rgba(230, 0, 0, 0.28);
    color: #ff7a7a;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.conv-eyebrow i { color: var(--red-primary); }

.conv-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
}
.conv-trust__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    color: #cfcfcf;
    font-size: 0.76rem;
    font-weight: 500;
}
.conv-trust__chip i { color: var(--green); font-size: 0.82rem; }

/* --- WYNIK: layout główny (link + QR) --- */
.result-main {
    display: flex;
    gap: 18px;
    align-items: stretch;
}
.result-main__left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}
.result-qr {
    flex: none;
    width: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.qr-canvas {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
}
.qr-canvas img, .qr-canvas canvas { display: block; width: 132px !important; height: 132px !important; }
.result-qr__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #111;
    text-align: center;
}
.result-qr__label i { color: var(--red-primary); }

/* --- TOGGLE „WSZYSCY AGENCI" --- */
.all-agents-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed #333;
    color: #d6d6d6;
    padding: 13px 16px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.all-agents-toggle:hover { border-color: var(--red-primary); color: #fff; background: rgba(230, 0, 0, 0.06); }
.all-agents-toggle > i:first-child { color: var(--red-primary); }
.all-agents-toggle .toggle-arrow { margin-left: auto; transition: transform 0.25s var(--ease-pop); font-size: 0.8rem; }
.all-agents-toggle[aria-expanded="true"] .toggle-arrow { transform: rotate(180deg); }

.all-agents-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: resultIn 0.35s var(--ease-pop);
}
.aa-row {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #0c0c0c;
    border: 1px solid #242424;
    border-radius: 11px;
    padding: 9px 11px;
    transition: border-color 0.2s, background 0.2s;
}
.aa-row:hover { border-color: #3c3c3c; background: #121212; }
.aa-row.is-active { border-color: var(--red-primary); background: linear-gradient(90deg, rgba(230, 0, 0, 0.08), #0c0c0c 60%); }
.aa-logo, .aa-rawlogo {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    object-fit: contain;
    display: grid;
    place-items: center;
}
.aa-rawlogo { background: linear-gradient(145deg, #2a2a2a, #131313); color: #fff; font-size: 0.85rem; }
.aa-name { flex: none; width: 78px; font-size: 0.8rem; font-weight: 600; color: #fff; }
.aa-link {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: #8f8f8f;
    font-family: monospace;
    font-size: 0.76rem;
    outline: none;
    text-overflow: ellipsis;
}
.aa-btn {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border: 1px solid #2e2e2e;
    background: #1c1c1c;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s;
}
.aa-btn:hover { background: #2a2a2a; border-color: #555; color: #fff; }
.aa-open:hover { border-color: var(--red-primary); color: #ff6b6b; }

/* ==========================================================================
   TREŚĆ SEO
   ========================================================================== */
.conv-seo {
    max-width: 880px;
    margin: 56px auto 0;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.seo-block {
    background: rgba(14, 14, 14, 0.55);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px 30px;
}
.seo-block h2 {
    font-size: clamp(1.25rem, 3.4vw, 1.7rem);
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.4px;
}
.seo-block p {
    color: #b9b9b9;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 12px;
}
.seo-block p:last-child { margin-bottom: 0; }
.seo-block strong { color: #fff; font-weight: 600; }
.seo-block a { color: #ff6b6b; text-decoration: none; border-bottom: 1px dashed rgba(255, 107, 107, 0.4); }
.seo-block a:hover { color: #fff; border-color: #fff; }

/* HowTo */
.howto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.howto-card {
    position: relative;
    background: #0c0c0c;
    border: 1px solid #242424;
    border-radius: 15px;
    padding: 22px 18px 18px;
    transition: transform 0.25s var(--ease-pop), border-color 0.2s;
}
.howto-card:hover { transform: translateY(-4px); border-color: rgba(230, 0, 0, 0.45); }
.howto-num {
    position: absolute;
    top: -12px;
    left: 18px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--red-primary), var(--red-deep));
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 6px 16px rgba(230, 0, 0, 0.4);
}
.howto-ico { font-size: 1.5rem; color: var(--red-hover); margin: 6px 0 12px; }
.howto-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 7px; color: #fff; }
.howto-card p { font-size: 0.84rem; color: #a8a8a8; line-height: 1.55; margin: 0; }

/* Platformy */
.plat-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; }
.plat-col h3 {
    font-size: 0.9rem;
    color: #fff;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.plat-col h3 i { color: var(--red-primary); }
.plat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.plat-list li { display: flex; align-items: center; gap: 9px; color: #cfcfcf; font-size: 0.9rem; }
.plat-list li i { color: var(--green); font-size: 0.78rem; }
.plat-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.plat-tag {
    padding: 7px 13px;
    border-radius: 9px;
    background: #141414;
    border: 1px solid #2a2a2a;
    color: #cfcfcf;
    font-size: 0.82rem;
    font-weight: 500;
}
.plat-tag--hot {
    background: linear-gradient(150deg, rgba(230, 0, 0, 0.22), #140606);
    border-color: var(--red-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(230, 0, 0, 0.3);
}

/* FAQ */
.conv-faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: #0c0c0c;
    border: 1px solid #242424;
    border-radius: 13px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(230, 0, 0, 0.45); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.94rem;
    font-weight: 600;
    text-align: left;
    padding: 17px 19px;
    cursor: pointer;
}
.faq-q i { flex: none; color: var(--red-primary); transition: transform 0.25s var(--ease-pop); font-size: 0.85rem; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-item.open .faq-a { max-height: 360px; }
.faq-a p {
    color: #aeaeae;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    padding: 0 19px 18px;
}

/* CTA */
.seo-cta { text-align: center; background: linear-gradient(160deg, rgba(230, 0, 0, 0.1), rgba(14, 14, 14, 0.6) 65%); border-color: rgba(230, 0, 0, 0.25); }
.seo-cta h2 { margin-bottom: 8px; }
.seo-cta p { max-width: 540px; margin: 0 auto 20px; }
.seo-cta__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.seo-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 12px;
    background: #141414;
    border: 1px solid #2c2c2c;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: transform 0.2s var(--ease-pop), border-color 0.2s, background 0.2s;
}
.seo-cta__btn:hover { transform: translateY(-2px); border-color: var(--red-primary); }
.seo-cta__btn i { color: var(--red-hover); }
.seo-cta__btn--hot { background: linear-gradient(90deg, var(--red-primary), var(--red-hover)); border-color: transparent; box-shadow: 0 10px 26px rgba(230, 0, 0, 0.3); }
.seo-cta__btn--hot i { color: #fff; }

/* --- RWD nowych sekcji --- */
@media (max-width: 768px) {
    .result-main { flex-direction: column; }
    .result-qr { width: 100%; flex-direction: row; justify-content: center; gap: 16px; }
    .howto-grid { grid-template-columns: 1fr; gap: 22px; }
    .plat-cols { grid-template-columns: 1fr; gap: 24px; }
    .seo-block { padding: 22px 20px; }
    .aa-name { width: 64px; }
    .aa-link { display: none; }
}

/* --- DOSTĘPNOŚĆ: ograniczony ruch --- */
@media (prefers-reduced-motion: reduce) {
    *, *::after, *::before { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .agent-option { opacity: 1; }
    .scroll-hidden { opacity: 1; transform: none; }
}
