/*
  ClariTicos - hoja de estilo compartida de las paginas publicas.
  Extraida de publicBots.html para que /medios se vea igual que /detecciones.

  Va como CSS real y no como include de Qute a proposito: Qute interpreta
  las llaves { } como expresiones, asi que meter CSS en una plantilla lo
  rompe. Como archivo estatico ademas lo cachea el navegador.
*/
-->
        :root {
            --cr-blue: #002B7F;
            --cr-blue-dark: #002068;
            --cr-red: #CE1126;
            --fb-blue: #1877f2;
            --ig-pink: #e4405f;
            --prob-orange: #ff9500;
            --prob-yellow: #ffdd57;
            --ink: #10243e;
            --ink-soft: #5b6b85;
            --blue-soft: #e8f0ff;
            --header-min-h: 56px;
            --header-v-pad: 0.5rem;
            --header-h: calc(var(--header-min-h) + var(--header-v-pad) * 2 + env(safe-area-inset-top));
        }

        html {
            -webkit-overflow-scrolling: touch;
        }

        * {
            touch-action: manipulation;
        }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background: #f4f8ff;
            color: var(--ink);
            -webkit-tap-highlight-color: transparent;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
            -webkit-overflow-scrolling: touch;
            text-rendering: optimizeLegibility;
        }

        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        select:focus-visible {
            outline: 3px solid rgba(0, 43, 127, 0.35);
            outline-offset: 2px;
        }

        .app-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 60;
            padding-top: env(safe-area-inset-top);
            background: transparent;
            transition: background-color .25s ease, box-shadow .25s ease, -webkit-backdrop-filter .25s ease, backdrop-filter .25s ease;
        }

        .app-header.is-scrolled {
            background: rgba(255, 255, 255, 0.82);
            -webkit-backdrop-filter: blur(14px) saturate(1.5);
            backdrop-filter: blur(14px) saturate(1.5);
            box-shadow: 0 1px 0 rgba(0, 43, 127, 0.08), 0 10px 28px rgba(0, 43, 127, 0.08);
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            min-height: var(--header-min-h);
            padding: var(--header-v-pad) 1.25rem;
        }

        .header-nav {
            display: flex;
            align-items: center;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            min-height: 44px;
            padding: 0.5rem 0.25rem;
            font-size: 1.125rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: #fff;
            text-shadow: 0 1px 3px rgba(16, 36, 62, 0.45);
            text-decoration: none;
            transition: color .2s ease, text-shadow .2s ease;
        }

        .app-header.is-scrolled .brand {
            color: var(--cr-blue);
            text-shadow: none;
        }

        .nav-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            min-height: 44px;
            padding: 0.5rem 0.9rem;
            border-radius: 999px;
            font-size: 0.9375rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.92);
            background: rgba(255, 255, 255, 0.14);
            border: 1px solid rgba(255, 255, 255, 0.28);
            text-decoration: none;
            transition: background-color .2s ease, color .2s ease, border-color .2s ease;
        }

        .nav-link.is-active {
            background: var(--cr-blue);
            border-color: var(--cr-blue);
            color: #fff;
        }

        .app-header.is-scrolled .nav-link {
            color: var(--cr-blue);
            background: rgba(255, 255, 255, 0.6);
            border-color: rgba(0, 43, 127, 0.12);
        }

        .app-header.is-scrolled .nav-link.is-active {
            background: var(--cr-blue);
            border-color: var(--cr-blue);
            color: #fff;
        }

        .hero {
            position: relative;
            z-index: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            min-height: 100svh;
            min-height: 100dvh;
            padding: calc(var(--header-h) + 2rem) 1.25rem calc(2rem + env(safe-area-inset-bottom));
            background: linear-gradient(180deg, var(--cr-blue) 0 16.666%, #ffffff 16.666% 33.333%, var(--cr-red) 33.333% 66.666%, #ffffff 66.666% 83.333%, var(--cr-blue) 83.333% 100%);
            text-align: center;
        }

        .flag-bg {
            position: absolute;
            z-index: 0;
            top: -4%;
            left: -4%;
            width: 108%;
            height: 108%;
            pointer-events: none;
        }

        .flag-wave {
            display: block;
            width: 100%;
            height: 100%;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 720px;
            margin: 0 auto;
        }

        .hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.45rem 1rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.72);
            border: 1px solid rgba(255, 255, 255, 0.5);
            box-shadow: 0 4px 16px rgba(16, 36, 62, 0.18);
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--ink);
        }

        .hero-title {
            margin: 1rem 0 0;
            font-size: clamp(2.75rem, 9vw, 4.25rem);
            font-weight: 800;
            letter-spacing: -0.035em;
            line-height: 1.02;
            color: rgba(255, 255, 255, 0.88);
            text-shadow: 0 1px 2px rgba(16, 36, 62, 0.55), 0 3px 14px rgba(16, 36, 62, 0.35);
        }

        .hero-title .cr-red {
            color: var(--cr-red);
        }

        .hero-subtitle {
            margin: 1.1rem auto 0;
            max-width: 600px;
            font-size: clamp(1.0625rem, 3.6vw, 1.375rem);
            line-height: 1.5;
            color: #fff;
            font-weight: 500;
            text-shadow: 0 1px 2px rgba(16, 36, 62, 0.55), 0 2px 10px rgba(16, 36, 62, 0.3);
        }

        [x-cloak] {
            display: none !important;
        }

        .search-wrap {
            position: relative;
            z-index: 2;
            max-width: 560px;
            margin: 2.25rem auto 0;
            text-align: left;
            transition: transform .7s ease-out;
        }

        .search-wrap.search-lifted {
            transform: translateY(calc(-1 * clamp(64px, 19svh, 128px)));
            z-index: 40;
        }

        .search-wrap.search-lifted-high {
            transform: translateY(calc(-1 * clamp(140px, 32svh, 230px)));
            z-index: 40;
        }

        .hero-title,
        .hero-subtitle,
        .hero-eyebrow {
            transition: opacity .5s ease;
        }

        .hero-content:has(.search-lifted) .hero-title,
        .hero-content:has(.search-lifted) .hero-subtitle,
        .hero-content:has(.search-lifted) .hero-eyebrow {
            opacity: 0;
        }

        @media (prefers-reduced-motion: reduce) {
            .search-wrap {
                transition: none;
            }
            .hero-title,
            .hero-subtitle,
            .hero-eyebrow {
                transition: none;
            }
        }

        .search-form {
            position: relative;
            z-index: 2;
            display: flex;
            gap: 0.625rem;
            max-width: 560px;
            margin: 2.25rem auto 0;
        }

        .search-wrap .search-form {
            margin: 0;
            max-width: none;
        }

        .search-input {
            flex: 1 1 auto;
            min-width: 0;
            height: 56px;
            padding: 0 1.25rem;
            font-size: 1.0625rem;
            color: var(--ink);
            background: rgba(255, 255, 255, 0.72);
            border: 1px solid rgba(255, 255, 255, 0.55);
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(16, 36, 62, 0.16);
            transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
        }

        .search-input::placeholder {
            color: #8a96ab;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--cr-blue);
            background: rgba(255, 255, 255, 0.92);
            box-shadow: 0 0 0 3px rgba(0, 43, 127, 0.18), 0 8px 24px rgba(0, 43, 127, 0.12);
        }

        .search-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-width: 118px;
            height: 56px;
            padding: 0 1.25rem;
            border: 0;
            border-radius: 16px;
            background: rgba(0, 43, 127, 0.78);
            color: #fff;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 8px 24px rgba(0, 43, 127, 0.28);
            transition: background-color .2s ease, transform .2s ease;
        }

        .search-btn:active {
            transform: scale(0.98);
        }

        .search-results,
        .search-empty {
            position: absolute;
            top: calc(100% + 0.625rem);
            left: 0;
            right: 0;
            z-index: 30;
            padding: 0.75rem;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid rgba(0, 43, 127, 0.14);
            box-shadow: 0 18px 44px rgba(16, 36, 62, 0.24);
            -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
        }

        .search-results {
            max-height: 320px;
            overflow-y: auto;
        }

        .search-results-title {
            margin: 0 0 0.625rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--ink-soft);
        }

        .result-list {
            display: flex;
            flex-direction: column;
            gap: 0.375rem;
        }

        .result-item {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 0.5rem;
            width: 100%;
            min-height: 44px;
            padding: 0.5rem 0.75rem;
            border-radius: 12px;
            font-weight: 600;
            color: var(--ink);
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(0, 43, 127, 0.1);
            text-decoration: none;
            transition: border-color .2s ease, background-color .2s ease;
        }

        .result-item .platform-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.3rem 0.625rem;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.75rem;
            letter-spacing: 0.02em;
        }

        .result-item .platform-tag.is-primary {
            background: rgba(24, 119, 242, 0.12);
            color: var(--fb-blue);
        }

        .result-item .platform-tag.is-info {
            background: rgba(228, 64, 95, 0.12);
            color: var(--ig-pink);
        }

        .result-username {
            flex: 1 1 auto;
            min-width: 0;
            font-weight: 700;
            overflow-wrap: anywhere;
        }

        .result-item .prob-tag {
            flex: none;
            padding: 0.3rem 0.625rem;
            border-radius: 999px;
            font-weight: 800;
            font-size: 0.75rem;
        }

        .result-item .prob-tag.is-red {
            background: rgba(206, 17, 38, 0.12);
            color: var(--cr-red);
        }

        .result-item .prob-tag.is-orange {
            background: rgba(255, 149, 0, 0.14);
            color: #9a3b00;
        }

        .result-item .prob-tag.is-yellow {
            background: rgba(255, 221, 87, 0.28);
            color: #8a6d00;
        }

        .search-empty {
            padding: 1rem;
            text-align: left;
        }

        .search-empty-text {
            margin: 0;
            color: var(--ink);
            font-size: 0.9375rem;
            line-height: 1.5;
        }

        .search-empty-text strong {
            color: #10243e;
        }

        .search-empty-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            width: 100%;
            min-height: 44px;
            margin-top: 0.875rem;
            padding: 0.625rem 1rem;
            border: 0;
            border-radius: 12px;
            background: var(--cr-blue);
            color: #fff;
            font-size: 0.9375rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 8px 20px rgba(0, 43, 127, 0.28);
            transition: background-color .2s ease, transform .2s ease;
        }

        .search-empty-btn:active {
            transform: scale(0.98);
        }

        .request-form {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin-top: 0.875rem;
        }

        .request-input {
            width: 100%;
            min-height: 44px;
            padding: 0 1rem;
            border-radius: 12px;
            font-size: 0.9375rem;
            color: var(--ink);
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(0, 43, 127, 0.14);
            transition: border-color .2s ease, box-shadow .2s ease;
        }

        .request-input:focus {
            outline: none;
            border-color: var(--cr-blue);
            box-shadow: 0 0 0 3px rgba(0, 43, 127, 0.14);
        }

        .request-input[readonly] {
            background: var(--blue-soft);
            color: var(--cr-blue);
            font-weight: 700;
        }

        .request-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 44px;
            padding: 0.625rem 1rem;
            border: 0;
            border-radius: 12px;
            background: var(--cr-red);
            color: #fff;
            font-size: 0.9375rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 8px 20px rgba(206, 17, 38, 0.25);
            transition: background-color .2s ease, transform .2s ease;
        }

        .request-btn:disabled {
            opacity: 0.65;
            cursor: wait;
        }

        .request-btn:active:not(:disabled) {
            transform: scale(0.98);
        }

        .request-result {
            margin: 0.75rem 0 0;
            padding: 0.625rem 0.875rem;
            border-radius: 10px;
            font-size: 0.875rem;
            font-weight: 600;
            line-height: 1.45;
        }

        .request-result.is-ok {
            background: rgba(0, 43, 127, 0.08);
            color: var(--cr-blue);
            border: 1px solid rgba(0, 43, 127, 0.18);
        }

        .request-result.is-error {
            background: rgba(206, 17, 38, 0.08);
            color: var(--cr-red);
            border: 1px solid rgba(206, 17, 38, 0.18);
        }

        .request-qr {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.625rem;
            margin-top: 0.75rem;
            padding-top: 0.75rem;
            border-top: 1px solid rgba(0, 43, 127, 0.14);
        }

        .request-ref {
            margin: 0;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--ink);
        }

        .request-ref strong {
            color: var(--cr-blue);
        }

        .request-qr-img {
            display: block;
            width: 180px;
            height: 180px;
            border-radius: 12px;
            border: 1px solid rgba(0, 43, 127, 0.18);
            background: #fff;
        }

        .request-download {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 44px;
            padding: 0.625rem 1rem;
            border-radius: 12px;
            font-size: 0.9375rem;
            font-weight: 700;
            color: #fff;
            background: var(--cr-blue);
            text-decoration: none;
            box-shadow: 0 8px 20px rgba(0, 43, 127, 0.28);
            transition: background-color .2s ease, transform .2s ease;
        }

        .request-download:active {
            transform: scale(0.98);
        }

        .request-link-row {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.625rem;
            width: 100%;
            margin-top: 0.25rem;
        }

        .request-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 0.5rem 0.75rem;
            border-radius: 12px;
            font-size: 0.8125rem;
            font-weight: 600;
            color: var(--cr-blue);
            text-decoration: underline;
            text-underline-offset: 3px;
            overflow-wrap: anywhere;
            word-break: break-all;
        }

        .request-copy-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 44px;
            padding: 0.625rem 1rem;
            border-radius: 12px;
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--cr-blue);
            background: rgba(0, 43, 127, 0.06);
            border: 1px solid rgba(0, 43, 127, 0.18);
            cursor: pointer;
            transition: background-color .2s ease, color .2s ease, border-color .2s ease;
        }

        .request-copy-btn.is-copied {
            background: var(--cr-blue);
            border-color: var(--cr-blue);
            color: #fff;
        }

        .request-ticket {
            position: relative;
            z-index: 3;
            margin-top: 0.75rem;
            margin-bottom: 2.5rem;
            padding: 1rem;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.98);
            border: 1px solid rgba(0, 43, 127, 0.14);
            box-shadow: 0 18px 44px rgba(16, 36, 62, 0.24);
            text-align: center;
            color: var(--ink);
        }

        .request-ticket p {
            margin: 0 0 0.5rem;
            font-size: 0.9375rem;
            line-height: 1.5;
        }

        .request-ticket-close {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            border-radius: 999px;
            border: 1px solid rgba(0, 43, 127, 0.18);
            background: #fff;
            color: var(--ink);
            cursor: pointer;
        }

        .hero-hint {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            z-index: 2;
            margin: 0;
            transform: translateX(-50%);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.625rem 1.25rem;
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: 999px;
            background: rgba(16, 36, 62, 0.85);
            -webkit-appearance: none;
            appearance: none;
            font: inherit;
            font-size: 0.875rem;
            color: #fff;
            cursor: pointer;
            transition: color .2s ease, background-color .2s ease, border-color .2s ease;
        }

        .hero-hint:focus-visible {
            color: var(--cr-blue);
            background: #fff;
            border-color: #fff;
            outline-color: rgba(0, 43, 127, 0.55);
        }

        @media (prefers-reduced-motion: no-preference) {
            .hero-hint {
                animation: hero-hint-bounce 2s ease-in-out infinite;
            }

            @keyframes hero-hint-bounce {
                0%, 100% {
                    transform: translateX(-50%) translateY(0);
                }
                50% {
                    transform: translateX(-50%) translateY(4px);
                }
            }
        }

        .cards-section {
            position: relative;
            z-index: 5;
            padding: 1.5rem 1.25rem 3rem;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            max-width: 1120px;
            margin: 0 auto 1.5rem;
        }

        .stat-card {
            padding: 1.25rem 1rem;
            border-radius: 18px;
            background: #fff;
            border: 1px solid rgba(0, 43, 127, 0.08);
            box-shadow: 0 6px 20px rgba(0, 43, 127, 0.06);
            text-align: center;
        }

        .stat-num {
            margin: 0;
            font-size: clamp(1.5rem, 4vw, 2.125rem);
            font-weight: 800;
            letter-spacing: -0.03em;
            line-height: 1;
        }

        .stat-num.is-blue {
            color: var(--cr-blue);
        }

        .stat-num.is-red {
            color: var(--cr-red);
        }

        .stat-num.is-orange {
            color: var(--prob-orange);
        }

        /* Estado vacio de las listas publicas. Aditivo: /detecciones no usa
           esta clase, asi que no le cambia nada. */
        .stat-num.is-success {
            color: #1e825a;
        }
        .empty {
            grid-column: 1 / -1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
            padding: 3rem 1.5rem;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.6);
            border: 1px dashed rgba(0, 43, 127, 0.2);
            color: var(--ink-soft);
            font-size: 0.9rem;
            font-weight: 600;
            text-align: center;
        }
        .empty i {
            font-size: 1.75rem;
            opacity: 0.5;
        }

        .stat-label {
            margin: 0.5rem 0 0;
            font-size: 0.8125rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--ink-soft);
        }

        .filters-panel {
            max-width: 1120px;
            margin: 0 auto 1.75rem;
            padding: 1.25rem;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.75);
            -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(0, 43, 127, 0.1);
            box-shadow: 0 10px 28px rgba(0, 43, 127, 0.08);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .filters-title {
            margin: 0;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.25rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--ink);
        }

        .filters-title i {
            color: var(--cr-blue);
        }

        .filters-controls {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.625rem;
        }

        .filters-panel .select select {
            height: 44px;
            padding: 0 2.5em 0 1rem;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(0, 43, 127, 0.18);
            color: var(--ink);
            font-weight: 600;
            font-size: 0.9375rem;
            box-shadow: 0 2px 8px rgba(0, 43, 127, 0.05);
            cursor: pointer;
        }

        .button.foreign-toggle {
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.9375rem;
            border: 1px solid rgba(0, 43, 127, 0.18);
            color: var(--cr-blue);
            background: rgba(255, 255, 255, 0.8);
            transition: background-color .2s ease, color .2s ease, border-color .2s ease;
        }

        .button.foreign-toggle.is-active {
            background: var(--cr-blue);
            border-color: var(--cr-blue);
            color: #fff;
        }

        .category-tabs {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .category-tab {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            min-height: 44px;
            padding: 0.5rem 1rem;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.875rem;
            border: 1px solid rgba(0, 43, 127, 0.18);
            color: var(--ink-soft);
            background: rgba(255, 255, 255, 0.8);
            cursor: pointer;
            text-decoration: none;
            transition: background-color .2s ease, color .2s ease, border-color .2s ease;
        }

        .category-tab:hover {
            border-color: var(--cr-blue);
            color: var(--cr-blue);
            background: #fff;
        }

        .category-tab.is-active {
            background: var(--cr-blue);
            border-color: var(--cr-blue);
            color: #fff;
        }

        .category-tab.is-active.is-bot {
            background: var(--fb-blue);
            border-color: var(--fb-blue);
        }

        .category-tab.is-active.is-foreign {
            background: var(--prob-orange);
            border-color: var(--prob-orange);
            color: #fff;
        }

        .category-tab.is-active.is-troll {
            background: var(--cr-red);
            border-color: var(--cr-red);
        }

        .button.filter-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 44px;
            padding: 0.625rem 1.25rem;
            border: 0;
            border-radius: 14px;
            background: var(--cr-red);
            color: #fff;
            font-size: 0.9375rem;
            font-weight: 700;
            box-shadow: 0 8px 20px rgba(206, 17, 38, 0.22);
            transition: background-color .2s ease, transform .2s ease;
        }

        .button.filter-btn:active {
            transform: scale(0.98);
        }

        .bots-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.25rem;
            max-width: 1120px;
            margin: 0 auto;
        }

        .bots-grid > * {
            min-width: 0;
        }

        .bot-card {
            position: relative;
            display: flex;
            flex-direction: column;
            padding: 1.5rem;
            border-radius: 20px;
            background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.6));
            -webkit-backdrop-filter: blur(16px) saturate(1.5);
            backdrop-filter: blur(16px) saturate(1.5);
            border: 1px solid rgba(255, 255, 255, 0.85);
            box-shadow: 0 10px 28px rgba(0, 43, 127, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
            transition: transform .25s ease, box-shadow .25s ease;
        }

        .bot-card:active {
            transform: translateY(-2px);
        }

        .risk-badge {
            position: absolute;
            top: 1.25rem;
            right: 1.25rem;
            z-index: 2;
        }

        .bot-card .tag {
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.75rem;
            letter-spacing: 0.02em;
        }

        .bot-card .tag:not(.loc-chip-foreign):not(.loc-chip-cr) {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }

        .bot-card .tag.is-light {
            background: rgba(0, 43, 127, 0.06);
            color: var(--ink-soft);
        }

        .bot-card .tag.is-light.is-primary {
            background: rgba(24, 119, 242, 0.12);
            color: var(--fb-blue);
        }

        .bot-card .tag.is-light.is-info {
            background: rgba(228, 64, 95, 0.12);
            color: var(--ig-pink);
        }

        .bot-card .tag.is-primary {
            background: rgba(24, 119, 242, 0.12);
            color: var(--fb-blue);
        }

        .bot-card .tag.is-info {
            background: rgba(228, 64, 95, 0.12);
            color: var(--ig-pink);
        }

        .bot-card .tag.is-is-warning {
            background: rgba(255, 149, 0, 0.14);
            color: #9a3b00;
        }

        .bot-card .media {
            align-items: center;
        }

        .bot-card .media-left {
            margin-right: 0.875rem;
        }

        .bot-card .image.is-48x48 {
            border-radius: 14px;
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.9);
            box-shadow: 0 4px 12px rgba(0, 43, 127, 0.14);
        }

        .bot-avatar-fallback {
            display: none;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: linear-gradient(135deg, rgba(0, 43, 127, 0.12), rgba(0, 43, 127, 0.06));
            color: var(--cr-blue);
            font-weight: 800;
            font-size: 1.25rem;
            text-transform: uppercase;
        }

        .bot-card {
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }

        .filter-error {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            padding: 0.75rem 1rem;
            border-radius: 12px;
            background: rgba(206, 17, 38, 0.08);
            border: 1px solid rgba(206, 17, 38, 0.2);
            color: #9a1c2a;
            font-size: 0.8125rem;
            font-weight: 600;
        }

        .bot-card .title {
            margin-bottom: 0.15rem;
            padding-right: 6.5rem;
            font-size: 1.125rem;
            font-weight: 800;
            letter-spacing: -0.015em;
            color: var(--ink);
            line-height: 1.3;
            overflow-wrap: anywhere;
        }

        .bot-card .media-content {
            min-width: 0;
        }

        .bot-card .prob-label {
            margin-left: 0.5rem;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--ink-soft);
        }

        .bot-card .subtitle {
            margin-top: 0.25rem;
            margin-bottom: 0;
            font-size: 0.75rem;
            font-weight: 600;
            line-height: 1.5;
            color: var(--ink-soft);
        }

        .text-primary {
            color: var(--fb-blue);
        }

        .text-danger {
            color: var(--ig-pink);
        }

        .text-success {
            color: #188038;
        }

        .bot-card .tags {
            margin-top: 0.875rem;
            margin-bottom: 0;
        }

        .category-tag {
            margin-right: 0.25rem;
            margin-bottom: 0.25rem;
        }

        .threat-cat-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.75rem;
            letter-spacing: 0.02em;
        }

        .threat-cat-badge.is-bot {
            background: rgba(24, 119, 242, 0.12);
            color: var(--fb-blue);
        }

        .threat-cat-badge.is-foreign {
            background: rgba(255, 149, 0, 0.14);
            color: #9a3b00;
        }

        .threat-cat-badge.is-troll {
            background: rgba(206, 17, 38, 0.12);
            color: var(--cr-red);
        }

        .loc-chip-foreign {
            color: #9a3b00;
            background: rgba(255, 149, 0, 0.14);
            border: 1px solid rgba(255, 149, 0, 0.38);
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }

        .loc-chip-cr {
            color: var(--cr-blue);
            background: rgba(0, 43, 127, 0.08);
            border: 1px solid rgba(0, 43, 127, 0.16);
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }

        .evidence-list {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(0, 43, 127, 0.08);
            font-size: 0.875rem;
        }

        .evidence-list p {
            margin-bottom: 0.35rem;
        }

        .evidence-list p.has-text-grey {
            color: var(--ink-soft);
            font-weight: 700;
            font-size: 0.8125rem;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .evidence-list p.has-text-grey-light {
            color: #57647a;
        }

        .loading-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9999;
            align-items: center;
            justify-content: center;
            background: rgba(244, 248, 255, 0.8);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
        }

        .loading-overlay.active {
            display: flex;
        }

        .loading-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            padding: 2rem 2.5rem;
            border-radius: 20px;
            background: #fff;
            border: 1px solid rgba(0, 43, 127, 0.1);
            box-shadow: 0 18px 44px rgba(0, 43, 127, 0.16);
        }

        .loading-box p {
            margin: 0;
            font-weight: 700;
            color: var(--ink);
        }

        .cr-spinner {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 4px solid rgba(0, 43, 127, 0.15);
            border-top-color: var(--cr-red);
            animation: cr-spin .8s linear infinite;
        }

        @keyframes cr-spin {
            to {
                transform: rotate(360deg);
            }
        }

        .cr-footer {
            position: relative;
            margin-top: 3.5rem;
            padding: 2.75rem 1.25rem calc(2.75rem + env(safe-area-inset-bottom));
            background: var(--cr-blue);
            color: rgba(255, 255, 255, 0.88);
            text-align: center;
        }

        .cr-footer::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, var(--cr-blue) 0 16.67%, #ffffff 16.67% 33.33%, var(--cr-red) 33.33% 66.67%, #ffffff 66.67% 83.33%, var(--cr-blue) 83.33% 100%);
        }

        .footer-brand {
            font-size: 1.25rem;
            font-weight: 800;
            color: #fff;
            letter-spacing: -0.02em;
        }

        .footer-motto {
            margin: 0.625rem 0 0;
            font-weight: 600;
        }

        .footer-update {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin: 0.75rem 0 0;
            font-size: 0.875rem;
            opacity: 0.8;
        }

        .footer-links {
            margin: 1rem 0 0;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;
            font-size: 0.9375rem;
        }

        .footer-links a {
            display: inline-flex;
            align-items: center;
            min-height: 44px;
            padding: 0.5rem 0.75rem;
            color: rgba(255, 255, 255, 0.88);
            text-decoration: none;
            font-weight: 600;
        }

        @media (min-width: 700px) {
            .bots-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .stats-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .bots-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (hover: hover) {
            .nav-link:hover {
                background: #fff;
                color: var(--cr-red);
            }

            .nav-link.is-active:hover,
            .app-header.is-scrolled .nav-link.is-active:hover {
                background: var(--cr-blue-dark);
                border-color: var(--cr-blue-dark);
                color: #fff;
            }

            .search-btn:hover {
                background: var(--cr-blue-dark);
            }

            .bot-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 26px 52px rgba(0, 43, 127, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
            }

            .button.foreign-toggle:hover {
                border-color: var(--cr-blue);
                background: #fff;
            }

            .button.foreign-toggle.is-active:hover {
                background: var(--cr-blue-dark);
                border-color: var(--cr-blue-dark);
                color: #fff;
            }

            .button.filter-btn:hover {
                background: #b30e20;
            }

            .footer-links a:hover {
                color: #fff;
                text-decoration: underline;
            }
        }

        /* Watch-eye emblem (ported from index.html hero) */
        .watch-eye-wrap {
            position: relative;
            z-index: 2;
            width: clamp(52px, 8vw, 64px);
            margin: 0 auto 0.75rem;
        }

        .watch-eye-emblem {
            display: block;
            width: 100%;
            height: auto;
        }

        .watch-eye-glow {
            position: absolute;
            inset: -5% -15% -25% -15%;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(0, 43, 127, 0.22) 0%, transparent 70%);
            pointer-events: none;
        }

        .watch-eye-rays {
            transform-origin: 100px 120px;
        }

        .watch-eye-blink {
            transform-origin: 100px 120px;
        }

        @media (prefers-reduced-motion: no-preference) {
            .watch-eye-glow {
                animation: watch-eye-pulse 4s ease-in-out infinite;
            }

            .watch-eye-rays {
                animation: watch-eye-spin 55s linear infinite;
            }

            .watch-eye-iris {
                animation: watch-eye-scan 6s ease-in-out infinite;
            }

            .watch-eye-blink {
                animation: watch-eye-blink 5s ease-in-out infinite;
            }
        }

        @keyframes watch-eye-pulse {
            0%, 100% {
                opacity: 0.5;
                transform: scale(1);
            }
            50% {
                opacity: 1;
                transform: scale(1.12);
            }
        }

        @keyframes watch-eye-spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        @keyframes watch-eye-scan {
            0%, 100% { transform: translate(0, 0); }
            25% { transform: translate(-4px, 1px); }
            50% { transform: translate(0, -1px); }
            75% { transform: translate(4px, 1px); }
        }

        @keyframes watch-eye-blink {
            0%, 40%, 60%, 100% { transform: scaleY(1); }
            48%, 52% { transform: scaleY(0.08); }
        }

        /* Light-beam cone pivoting at the eye center (searchlight).
           Subtler than the homepage hero: smaller footprint and lower peak
           opacity so it washes over listing content without hurting
           readability; z-index stays below the cards section (z-index 5). */
        .watch-eye-beam {
            position: absolute;
            top: 60%;
            left: 50%;
            width: clamp(90px, 20vw, 180px);
            height: clamp(220px, 44vh, 380px);
            transform: translate(-50%, -50%);
            transform-origin: 50% 50%;
            clip-path: polygon(49% 50%, 51% 50%, 100% 100%, 0% 100%);
            background: linear-gradient(
                to bottom,
                transparent 0%,
                transparent 52%,
                rgba(255, 255, 255, 0.14) 62%,
                rgba(200, 215, 255, 0.09) 78%,
                transparent 100%
            );
                filter: blur(8px);
                opacity: 0.85;
                pointer-events: none;
                z-index: 1;
        }

        @media (prefers-reduced-motion: no-preference) {
            .watch-eye-beam {
                animation:
                    watch-eye-beam-breathe 4s ease-in-out infinite,
                    watch-eye-beam-sway 8s ease-in-out infinite;
            }

                @keyframes watch-eye-beam-breathe {
                    0%, 100% { opacity: 0.70; }
                    50%      { opacity: 0.95; }
                }

            @keyframes watch-eye-beam-sway {
                0%, 100% { transform: translate(-50%, -50%) skewX(0deg); }
                33%      { transform: translate(calc(-50% + 10px), -50%) skewX(3deg); }
                66%      { transform: translate(calc(-50% - 10px), -50%) skewX(-3deg); }
            }
        }

        /* JS handover: disable CSS keyframes when JS animations are active */
        .watch-eye--js .watch-eye-glow,
        .watch-eye--js .watch-eye-rays,
        .watch-eye--js .watch-eye-iris,
        .watch-eye--js .watch-eye-blink,
        .watch-eye--js .watch-eye-beam {
            animation: none !important;
        }

        /* Pagination bar — neighbor (‹ 1 2 [3] 4 5 ›) */
        .pagination-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.375rem;
            max-width: 1120px;
            margin: 1.75rem auto 0;
            padding: 0.75rem 1rem;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.75);
            -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(0, 43, 127, 0.1);
            box-shadow: 0 10px 28px rgba(0, 43, 127, 0.06);
        }

        .pagination-bar[hidden] {
            display: none;
        }

        .pagination-info {
            margin: 0 0.5rem 0 0;
            font-size: 0.8125rem;
            font-weight: 700;
            color: var(--ink-soft);
            letter-spacing: 0.02em;
        }

        .pagination-pages {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.25rem;
        }

        .page-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            min-height: 40px;
            padding: 0 0.75rem;
            border: 1px solid rgba(0, 43, 127, 0.18);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.9);
            color: var(--ink);
            font-size: 0.9375rem;
            font-weight: 700;
            cursor: pointer;
            text-decoration: none;
            transition: background-color .2s ease, color .2s ease, border-color .2s ease;
        }

        .page-btn:hover:not(:disabled):not(.is-active) {
            border-color: var(--cr-blue);
            color: var(--cr-blue);
            background: #fff;
        }

        .page-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .page-btn.is-active {
            background: var(--cr-blue);
            border-color: var(--cr-blue);
            color: #fff;
            cursor: default;
        }

        .page-btn.is-ellipsis {
            border-color: transparent;
            background: transparent;
            cursor: default;
            color: var(--ink-soft);
        }

        .page-btn.is-nav {
            min-width: 44px;
        }

        @media (max-width: 480px) {
            .pagination-bar {
                padding: 0.625rem 0.75rem;
            }
            .pagination-info {
                width: 100%;
                margin: 0 0 0.5rem;
                text-align: center;
            }
            .page-btn {
                min-width: 36px;
                min-height: 36px;
                padding: 0 0.5rem;
                font-size: 0.875rem;
            }
        }
