        /* =====================================================================
           SMS ActiveR homepage — mobile-first redesign
           - Base styles target mobile; min-width queries scale up.
           - All copy in Sentence case.
           ===================================================================== */

        /* --- 1. DESIGN TOKENS --- */
        :root {
            /* Brand */
            --primary: #EA580C;          /* AA-contrast orange on white */
            --primary-hover: #C2410C;
            --primary-soft: #FFF1E8;     /* tint for icon chips / highlights */
            --secondary: #F59E0B;

            /* Surfaces */
            --bg-body: #F8FAFC;
            --surface: #FFFFFF;
            --surface-muted: #F1F5F9;

            /* Text */
            --ink: #0F172A;
            --ink-soft: #475569;   /* darker than muted — readable for body paragraphs */
            --muted: #64748B;
            --on-primary: #FFFFFF;

            /* Lines */
            --border: #E2E8F0;

            /* Status */
            --success: #047857;
            --success-bg: #ECFDF5;
            --danger: #DC2626;
            --danger-bg: #FEF2F2;
            --info: #2563EB;
            --info-bg: #EFF6FF;

            /* Radius */
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;

            /* Shadow */
            --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.06);
            --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.10), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
            --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 10px -4px rgba(15, 23, 42, 0.08);

            /* Layout */
            --container: 1200px;
            --header-h: 64px;

            /* Spacing rhythm */
            --space-section: 72px;       /* vertical section padding (mobile) */

            /* Focus */
            --focus-ring: 0 0 0 3px rgba(234, 88, 12, 0.35);
        }

        /* --- 2. RESET / BASE --- */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
            background-color: var(--bg-body);
            color: var(--ink);
            line-height: 1.6;
            font-size: 16px;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 800; color: var(--ink); }

        a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
        ul { list-style: none; }
        img { max-width: 100%; display: block; }

        /* Catalog filter hides non-matching rows/cards (JS toggles .is-hidden). */
        .is-hidden { display: none !important; }
        [hidden] { display: none !important; }

        button {
            cursor: pointer;
            border: none;
            font-family: inherit;
            font-size: inherit;
            background: none;
        }

        /* Visible keyboard focus everywhere */
        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        select:focus-visible,
        .faq-question:focus-visible {
            outline: none;
            box-shadow: var(--focus-ring);
            border-radius: var(--radius-sm);
        }

        .container {
            width: 100%;
            max-width: var(--container);
            margin: 0 auto;
            padding: 0 16px;
        }

        /* .container sets horizontal padding; this adds vertical without resetting it */
        section.section-padding { padding-top: var(--space-section); padding-bottom: var(--space-section); }

        /* Shared section heading */
        .section-head { margin-bottom: 24px; }
        .section-head h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-bottom: 8px; }
        .section-head p { color: var(--muted); max-width: 65ch; }

        /* --- 3. BUTTONS --- */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 44px;            /* touch target */
            padding: 11px 20px;
            border-radius: var(--radius-sm);
            font-weight: 700;
            font-size: 0.95rem;
            transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
            white-space: nowrap;
        }
        .btn-primary { background: var(--primary); color: var(--on-primary); }
        .btn-primary:hover { background: var(--primary-hover); }
        .btn-secondary {
            background: var(--surface);
            color: var(--ink);
            border: 1px solid var(--border);
        }
        .btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
        .btn-ghost {
            background: transparent;
            color: var(--muted);
            border: 1px solid var(--border);
        }
        .btn-ghost:hover { background: var(--surface-muted); color: var(--ink); }

        /* --- 4. HEADER --- */
        header {
            min-height: var(--header-h);
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .header-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            min-height: var(--header-h);
            gap: 12px;
        }
        .logo {
            font-weight: 800;
            font-size: 1.15rem;
            color: var(--ink);
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 46px;
        }
        .logo .icon { color: var(--primary); }
        .logo .tagline {
            font-size: 0.78rem;
            font-weight: 400;
            color: var(--muted);
            margin-left: 6px;
            display: none;
        }

        .nav-menu { display: none; align-items: center; }
        .nav-menu .nav-list { display: flex; gap: 8px; align-items: center; list-style: none; margin: 0; padding: 0; }
        .nav-link {
            display: inline-flex;
            align-items: center;
            min-height: 46px;
            padding: 0 12px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            color: var(--ink);
            font-size: 0.95rem;
        }
        .nav-link:hover { color: var(--primary); background: var(--primary-soft); }
        /* Visually-hidden helper for screen-reader-only headings (a11y). */
        .visuallyhidden {
            position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
            overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
        }

        .header-actions { display: flex; align-items: center; gap: 8px; }

        .lang-switch {
            display: inline-flex;
            align-items: center;
            min-height: 40px;
            font-weight: 600;
            font-size: 0.88rem;
            color: var(--muted);
            border: 1px solid var(--border);
            padding: 0 12px;
            border-radius: var(--radius-sm);
        }
        .lang-switch:hover { border-color: var(--primary); color: var(--primary); }

        /* Mobile nav toggle */
        .nav-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 46px;
            height: 46px;
            border-radius: var(--radius-sm);
            color: var(--ink);
            font-size: 1.2rem;
        }
        .nav-toggle:hover { background: var(--surface-muted); }

        .mobile-nav {
            display: none;
            padding: 8px 16px 16px;
            background: var(--surface);
            border-bottom: 1px solid var(--border);
        }
        .mobile-nav.open { display: block; }
        .mobile-nav .mobile-nav-list { display: flex; flex-direction: column; gap: 4px; list-style: none; margin: 0; padding: 0; }
        .mobile-nav a {
            display: flex;
            align-items: center;
            min-height: 44px;
            padding: 0 12px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            color: var(--ink);
        }
        .mobile-nav a:hover { background: var(--primary-soft); color: var(--primary); }

        /* --- 5. HERO --- */
        .hero {
            background: linear-gradient(135deg, #EA580C 0%, #F59E0B 100%);
            padding: 104px 0 112px;
            text-align: center;
            color: #fff;
        }
        .hero h1 {
            color: #fff;
            font-size: clamp(2.2rem, 6vw, 3.4rem);
            margin: 0 auto 36px;
            max-width: 22ch;
            line-height: 1.18;
        }
        .hero p {
            font-size: clamp(1rem, 2vw, 1.15rem);
            line-height: 1.8;
            max-width: 68ch;
            margin: 0 auto 44px;
            color: rgba(255,255,255,0.92);
            font-weight: 400;
        }
        .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
        .hero .btn-primary { background: #fff; color: var(--primary); }
        .hero .btn-primary:hover { background: #FFF1E8; }
        .hero .btn-secondary {
            background: transparent;
            color: #fff;
            border-color: rgba(255, 255, 255, 0.6);
        }
        .hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
        .hero-sub {
            font-size: .95rem !important;
            color: rgba(255,255,255,.85);
            font-weight: 400;
            line-height: 1.6;
            margin: 0 0 48px !important;
            max-width: none !important;
        }

        /* --- 5b. TRUST BAR --- */
        .trust-bar {
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
        }
        .trust-bar-inner {
            max-width: var(--container);
            margin: 0 auto;
            padding: 0 16px;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
        }
        .trust-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px 24px;
            border-right: 1px solid var(--border);
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--ink-soft);
        }
        .trust-item:last-child { border-right: none; }
        .trust-item strong { color: var(--ink); }
        .trust-icon { font-size: 1.1rem; flex-shrink: 0; }
        .trust-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #22c55e;
            flex-shrink: 0;
        }
        @media (max-width: 700px) {
            .trust-item { padding: 10px 14px; font-size: 0.8rem; }
            .trust-icon { font-size: .95rem; }
        }
        @media (max-width: 480px) {
            .trust-bar-inner { justify-content: flex-start; }
            .trust-item { padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--border); width: 50%; }
            .trust-item:nth-child(odd) { border-right: 1px solid var(--border); }
            .trust-item:last-child { border-bottom: none; }
        }

        /* --- 6. INFO CARDS --- */
        .info-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 24px;
            box-shadow: var(--shadow-md);
        }
        .info-card h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); margin-bottom: 12px; }
        .info-card .subtitle { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 20px; max-width: 65ch; }

        .bullet-list li {
            position: relative;
            padding-left: 28px;
            margin-bottom: 14px;
            line-height: 1.6;
            color: var(--ink);
            max-width: 70ch;
        }
        .bullet-list li::before {
            content: "\2713";              /* check mark */
            position: absolute;
            left: 0;
            top: 1px;
            color: var(--primary);
            font-weight: 700;
        }

        .card-grid-3 {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
            margin: 24px 0;
        }
        .category-box {
            background: var(--surface-muted);
            padding: 20px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
        }
        .category-box h3 { margin-bottom: 8px; font-size: 1.1rem; }
        .category-box p { font-size: 0.95rem; color: var(--muted); }

        .final-note {
            margin-top: 20px;
            font-size: 0.95rem;
            line-height: 1.65;
            color: var(--ink-soft);
            border-top: 1px solid var(--border);
            padding-top: 16px;
            max-width: 70ch;
        }
        .final-note a { color: var(--primary); font-weight: 600; text-decoration: underline; }

        /* --- 6b. SPLIT BLOCK (use cases + categories) --- */
        .split-block {
            display: grid;
            grid-template-columns: 1fr;
            gap: 48px;
        }
        .split-left h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); margin-bottom: 20px; }
        .split-left .subtitle { font-size: .95rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 32px; }
        .use-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
        .use-list li {
            display: flex; align-items: flex-start; gap: 12px;
            font-size: .9rem; color: var(--ink-soft); line-height: 1.6;
        }
        .use-check {
            width: 22px; height: 22px; border-radius: 50%;
            background: var(--primary-soft);
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; margin-top: 1px;
            color: var(--primary);
        }
        .use-check svg { width: 11px; height: 11px; }

        .cats-label {
            font-size: .7rem; font-weight: 700; color: var(--muted);
            text-transform: uppercase; letter-spacing: .08em;
            margin-bottom: 20px;
        }
        .cat-box {
            border: 1.5px solid var(--border);
            border-radius: var(--radius-md);
            padding: 26px 28px;
            margin-bottom: 16px;
            transition: border-color .15s, box-shadow .15s;
        }
        .cat-box:last-of-type { margin-bottom: 0; }
        .cat-box:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(234,88,12,.08); }
        .cat-box-head {
            display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
        }
        .cat-box-icon {
            width: 32px; height: 32px; border-radius: 8px;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .cat-box-icon.ot { background: var(--primary-soft); color: var(--primary); }
        .cat-box-icon.rt { background: var(--info-bg); color: var(--info); }
        .cat-box-icon.fr { background: var(--success-bg); color: var(--success); }
        .cat-box-icon svg { width: 15px; height: 15px; }
        .cat-box-title { font-weight: 800; font-size: .9rem; color: var(--ink); flex: 1; }
        .cat-box-price { font-weight: 700; font-size: .82rem; color: var(--success); }
        .cat-box-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; }

        @media (min-width: 768px) {
            .split-block {
                grid-template-columns: 1fr 1fr;
                gap: 56px;
                align-items: start;
            }
        }

        /* --- 7. CATALOG: FILTERS --- */
        .filters-bar {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            background: var(--surface);
            padding: 16px;
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            margin-bottom: 20px;
        }
        .filter-group label {
            display: block;
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--muted);
            margin-bottom: 6px;
        }
        .form-control {
            width: 100%;
            min-height: 44px;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 0.95rem;
            font-family: inherit;
            color: var(--ink);
            background: #fff;
        }
        .form-control:focus { outline: none; box-shadow: var(--focus-ring); border-color: var(--primary); }
        .form-control:hover { border-color: #CBD5E1; }
        /* Custom-styled select: remove native chrome, add our own caret */
        select.form-control {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            padding-right: 38px;
            cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
        }
        select.form-control:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23EA580C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
        select.form-control option { color: var(--ink); }
        .filter-actions { display: flex; align-items: flex-end; }
        .filter-actions .btn { width: 100%; }

        /* --- 8. CATALOG: TABLE (desktop) --- */
        .table-wrapper {
            display: none;                /* mobile shows cards instead */
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            overflow-x: auto;
        }
        table { width: 100%; border-collapse: collapse; min-width: 980px; }
        th {
            text-align: left;
            padding: 14px 16px;
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--muted);
            border-bottom: 1px solid var(--border);
            background: var(--surface-muted);
        }
        td {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
            font-size: 0.95rem;
        }
        tbody tr:last-child td { border-bottom: none; }
        tbody tr:hover { background: #FCFCFD; }

        /* Highlighted top pick row */
        tbody tr.is-top { background: var(--primary-soft); }
        tbody tr.is-top:hover { background: #FFE8D6; }

        .provider-name {
            font-weight: 700;
            color: var(--ink);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .provider-name .icon { color: var(--primary); }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 9px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 700;
            line-height: 1.4;
        }
        .badge-yes { background: var(--success-bg); color: var(--success); }
        .badge-no { background: var(--danger-bg); color: var(--danger); }
        .badge-free { background: var(--info-bg); color: var(--info); }
        .badge-neutral { background: var(--surface-muted); color: #334155; }
        .badge-top { background: var(--primary); color: #fff; }

        .btn-visit {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 46px;
            background: var(--primary);
            color: #fff;
            padding: 0 16px;
            border-radius: var(--radius-sm);
            font-weight: 700;
            font-size: 0.9rem;
        }
        .btn-visit:hover { background: var(--primary-hover); }

        .tooltip-icon { cursor: help; color: var(--muted); margin-left: 4px; }

        /* --- 9. CATALOG: MOBILE CARDS --- */
        .mobile-cards { display: grid; gap: 14px; }
        .mobile-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 18px;
            box-shadow: var(--shadow-sm);
        }
        .mobile-card.is-top { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm); }
        .mc-toprow {
            display: inline-flex;
            margin-bottom: 10px;
        }
        .mc-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border);
        }
        .mc-row {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 8px;
            font-size: 0.9rem;
        }
        .mc-label { color: var(--muted); }
        .mc-value { font-weight: 600; text-align: right; }
        .mc-btn { display: flex; width: 100%; margin-top: 12px; }

        /* --- 10. ADVANTAGES --- */
        .advantages-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }
        .adv-item { display: flex; gap: 14px; }
        .adv-icon {
            width: 44px;
            height: 44px;
            background: var(--primary-soft);
            color: var(--primary);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            flex-shrink: 0;
        }
        .adv-content h4 { margin-bottom: 6px; font-size: 1.05rem; }
        .adv-content p { font-size: 0.95rem; color: var(--muted); }

        /* --- 11. FAQ --- */
        .faq-list {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            padding: 4px 20px;
        }
        .faq-item { border-bottom: 1px solid var(--border); }
        .faq-item:last-child { border-bottom: none; }
        .faq-question {
            width: 100%;
            text-align: left;
            padding: 18px 0;
            font-size: 1.02rem;
            font-weight: 700;
            color: var(--ink);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            min-height: 44px;
        }
        .faq-question .icon { transition: transform 0.3s ease; color: var(--muted); flex-shrink: 0; }
        .faq-question.active .icon { transform: rotate(180deg); color: var(--primary); }
        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            color: var(--muted);
        }
        .faq-answer.open { padding-bottom: 18px; }
        .faq-answer p { margin-bottom: 12px; }
        .faq-answer ul { list-style: disc; margin-left: 20px; margin-bottom: 12px; }
        .faq-answer li { margin-bottom: 6px; }

        /* --- 12. FOOTER --- */
        footer {
            background: var(--surface);
            border-top: 1px solid var(--border);
            padding: 36px 0;
            margin-top: 40px;
            font-size: 0.9rem;
            color: var(--muted);
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 28px;
        }
        .footer-col h5 { color: var(--ink); margin-bottom: 14px; font-weight: 700; font-size: 0.95rem; }
        .footer-col a { display: inline-flex; min-height: 46px; align-items: center; }
        .footer-col a:hover { color: var(--primary); }

        /* =====================================================================
           RESPONSIVE — mobile-first, scale up with min-width
           ===================================================================== */

        @media (min-width: 480px) {
            .container { padding: 0 20px; }
            .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
            .footer-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (min-width: 768px) {
            :root { --space-section: 104px; }
            .logo .tagline { display: inline; }
            .nav-menu { display: flex; }
            .nav-toggle { display: none; }
            .mobile-nav { display: none !important; }
            .info-card { padding: 36px; }
            .filters-bar {
                grid-template-columns: repeat(3, 1fr);
            }
            .filters-bar .filter-search { grid-column: 1 / -1; }
            .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
            .advantages-grid { grid-template-columns: repeat(2, 1fr); }
            .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
        }

        @media (min-width: 960px) {
            .table-wrapper { display: block; }
            .mobile-cards { display: none; }
            .advantages-grid { grid-template-columns: repeat(3, 1fr); }
            .hero { padding: 88px 0 96px; }
        }

        @media (min-width: 1024px) {
            .filters-bar { grid-template-columns: repeat(4, 1fr); align-items: end; }
            .filters-bar .filter-search { grid-column: span 2; }
        }

        /* --- Sortable header buttons --- */
        .th-sort {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font: inherit;
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--muted);
            cursor: pointer;
            padding: 4px 0;
        }
        .th-sort:hover { color: var(--primary); }
        .th-sort .icon { font-size: 0.72rem; opacity: 0.6; }
        .th-sort.active .icon { opacity: 1; color: var(--primary); }

        /* --- Rating --- */
        .rating { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-weight: 700; }
        .rating .stars { color: var(--secondary); font-size: 0.78rem; letter-spacing: 1px; }
        .rating .score { color: var(--ink); font-size: 0.9rem; }

        /* --- Best for --- */
        .best-for { font-size: 0.88rem; color: var(--ink); margin-bottom: 6px; }

        /* --- Popular services icons --- */
        .pop-services { display: inline-flex; gap: 8px; font-size: 0.95rem; color: var(--muted); }
        .pop-services .icon { transition: color 0.15s ease; }
        .pop-services .icon-whatsapp:hover { color: #25D366; }
        .pop-services .icon-telegram:hover { color: #229ED9; }
        .pop-services .icon-google:hover { color: #4285F4; }
        .pop-services .icon-tiktok:hover { color: #000; }

        /* --- Payment cell with hover tooltip (desktop) --- */
        .pay-cell { position: relative; cursor: default; display: inline-flex; align-items: center; gap: 6px; }
        .pay-more { font-size: 0.72rem; font-weight: 700; color: var(--primary); }
        .pay-tip {
            position: absolute;
            bottom: calc(100% + 8px);
            left: 0;
            z-index: 50;
            min-width: 160px;
            max-width: 240px;
            background: var(--ink);
            color: #fff;
            font-size: 0.78rem;
            font-weight: 500;
            line-height: 1.5;
            padding: 8px 10px;
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-md);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.15s ease;
            white-space: normal;
        }
        .pay-cell:hover .pay-tip,
        .pay-cell:focus-within .pay-tip { opacity: 1; visibility: visible; }

        /* --- Full country list button --- */
        .country-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 6px;
            padding: 0;
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--primary);
            cursor: pointer;
            white-space: nowrap;          /* keep "202 countries →" on one line */
        }
        .country-link:hover { text-decoration: underline; }
        .country-link .icon { font-size: 0.7rem; transition: transform 0.15s ease; }
        .country-link:hover .icon { transform: translateX(2px); }

        /* --- Modal --- */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.55);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            z-index: 1000;
        }
        .modal-overlay[hidden] { display: none; }
        .modal {
            background: var(--surface);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            width: 100%;
            max-width: 680px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            padding: 20px;
        }
        .modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
        .modal-head h3 { font-size: 1.2rem; }
        .modal-close {
            width: 40px; height: 40px;
            display: inline-flex; align-items: center; justify-content: center;
            border-radius: var(--radius-sm);
            color: var(--muted); font-size: 1.1rem;
        }
        .modal-close:hover { background: var(--surface-muted); color: var(--ink); }
        .modal #countrySearch { margin-bottom: 14px; }
        .country-grid {
            list-style: none;
            margin: 0;
            overflow-y: auto;
            display: grid;
            grid-template-columns: 1fr;
            gap: 6px 16px;
        }
        .country-grid li { font-size: 0.9rem; color: var(--ink); padding: 3px 0; }
        .country-grid .empty { color: var(--muted); grid-column: 1 / -1; }
        @media (min-width: 480px) { .country-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (min-width: 768px) { .country-grid { grid-template-columns: repeat(3, 1fr); } }
        @media (max-width: 479px) { .modal { max-height: 92vh; } }

        /* Reduced motion */
        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            * { transition: none !important; }
        }

        /* =====================================================================
           COMPARISON TABLE v7 (Ф0) — approved mockup ported into the theme.
           Light styling; type-aware columns ([data-view]); expandable "More
           details"; sort on headers + Reset (desktop) / dropdown (mobile).
           Appended last so it overrides the former filter-table rules.
           ===================================================================== */

        /* toolbar */
        .cmp-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
        .seg { display: inline-flex; background: var(--surface-muted); border-radius: 999px; padding: 4px; gap: 2px; }
        .seg button { min-height: 46px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-soft); background: none; border: none; cursor: pointer; font-family: inherit; }
        .seg button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
        .cmp-hint { color: var(--muted); font-size: 13px; margin-left: auto; font-weight: 500; }

        /* DESKTOP: sort lives on headers; Reset returns to the curated "Featured" order */
        .sort-reset { display: inline-flex; align-items: center; gap: 5px; min-height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
        .sort-reset:hover { border-color: var(--primary); color: var(--primary); }
        .sort-reset[hidden] { display: none; }

        /* MOBILE: cards have no headers → a single custom sort dropdown */
        .m-sort { display: none; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
        .dd { position: relative; display: inline-block; }
        .dd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 150px; min-height: 46px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
        .dd-btn:hover { border-color: #CBD5E1; }
        .dd-caret { width: 12px; height: 8px; flex: 0 0 auto; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transition: transform 0.15s ease; }
        .dd.open .dd-caret { transform: rotate(180deg); }
        .dd-list { position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 6px; margin: 0; list-style: none; z-index: 60; }
        .dd-list li { padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
        .dd-list li:hover { background: var(--primary-soft); color: var(--primary); }
        .dd-list li[aria-selected="true"] { background: var(--primary-soft); color: var(--primary); }

        /* fixed-size shell */
        .cmp-shell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); min-height: 440px; }
        .cmp-shell .table-wrapper { display: block; background: none; border: 0; border-radius: 0; box-shadow: none; overflow-x: auto; }
        table.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 0; }
        .cmp caption { text-align: left; }

        /* headers — light, top-aligned so single/double-line headers share a baseline */
        .cmp thead th { text-align: left; padding: 13px 16px; font-size: 0.8rem; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--surface-muted); vertical-align: top; }
        .cmp thead th:first-child { border-top-left-radius: var(--radius-md); width: 27%; }
        .cmp thead th:last-child { border-top-right-radius: var(--radius-md); width: 148px; text-align: right; }
        .cmp tbody td { text-align: left; padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 0.92rem; color: var(--ink-soft); font-weight: 400; }
        .cmp tbody tr.prow:hover { background: #FCFCFD; }
        .cmp tbody tr.prow.is-top { background: var(--primary-soft); }
        .cmp tbody tr.prow.is-top:hover { background: #FFE8D6; }

        /* provider cell */
        .prov-row { display: flex; gap: 10px; align-items: flex-start; }
        /* .icon.prov-ico beats the base .icon size and applies in both the table and the mobile cards */
        .icon.prov-ico { width: 15px; height: 20px; color: var(--primary); fill: currentColor; flex: 0 0 auto; margin-top: 1px; }
        .prov-name { font-weight: 700; line-height: 1.25; color: var(--ink); }
        .prov-sub { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 1px; }
        .top-tag { display: inline-block; background: var(--primary); color: #fff; font-size: 9.5px; font-weight: 800; border-radius: 5px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; letter-spacing: .02em; }

        /* metric values */
        .metric { font-weight: 600; color: var(--ink); }
        .metric--empty { color: #CBD5E1; font-weight: 600; }
        .nt { font-size: 0.9rem; color: var(--ink-soft); }
        .yn-yes { color: var(--ink); font-weight: 600; }
        .yn-no { color: var(--muted); font-weight: 600; }

        /* sortable header — inline label keeps (i) + arrow attached to the text */
        .th-label { display: inline; }
        .nw { white-space: nowrap; }
        .cmp thead th.th-sort { display: table-cell; cursor: pointer; user-select: none; }
        .arrow { font-size: 9px; opacity: .4; margin-left: 2px; vertical-align: middle; }
        .cmp th.th-sort[aria-sort="ascending"] .arrow::after { content: "\25B2"; opacity: 1; color: var(--primary); }
        .cmp th.th-sort[aria-sort="descending"] .arrow::after { content: "\25BC"; opacity: 1; color: var(--primary); }
        .arrow::after { content: "\2195"; }
        .cmp th.th-sort:hover .th-label { color: var(--primary); }

        /* header tooltip (i) — drops down so it is never clipped at the top edge */
        .cmp .tip { position: relative; display: inline-flex; width: 14px; height: 14px; margin-left: 5px; border-radius: 50%; background: #CBD5E1; color: #fff; font-size: 9px; font-weight: 800; align-items: center; justify-content: center; cursor: help; font-style: normal; vertical-align: middle; }
        .cmp .tip:focus { outline: none; box-shadow: var(--focus-ring); }
        .cmp .tip::after { content: attr(data-tip); position: absolute; top: 160%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; line-height: 1.4; width: 190px; text-align: left; opacity: 0; visibility: hidden; transition: .15s; z-index: 40; box-shadow: var(--shadow-md); white-space: normal; }
        .cmp .tip:hover::after, .cmp .tip:focus::after { opacity: 1; visibility: visible; }
        .cmp th:first-child .tip::after { left: 0; transform: none; }
        .cmp th:nth-last-child(-n+2) .tip::after { left: auto; right: 0; transform: none; }

        /* action cell — Visit + equal-width "More details", right-aligned 16px gutter */
        .cmp .act { display: flex; flex-direction: column; gap: 8px; width: 116px; margin-left: auto; }
        .cmp .act .btn-visit { width: 100%; padding: 0 12px; }
        .more-toggle { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
        .more-toggle:hover { border-color: var(--primary); color: var(--primary); }
        .more-toggle::after { content: "\25B8"; font-size: 9px; }
        .more-toggle[aria-expanded="true"]::after { content: "\25BE"; }

        /* expandable detail row */
        tr.drow > td { padding: 0 20px 0 41px; background: #FBFCFE; border-bottom: 1px solid var(--border); }
        tr.drow.is-top > td { background: #FFF8F2; }
        .detail { padding: 16px 0; }
        .dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
        .dk { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
        .dv { font-weight: 600; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; }
        .detail .review-link { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--primary); text-decoration: none; }
        .detail .review-link:hover { text-decoration: underline; }

        /* "+N" / "?" pill reveals full text on hover/focus (display:none avoids mobile scroll) */
        .more-pill { position: relative; cursor: help; color: var(--primary); font-weight: 700; border-bottom: 1px dotted currentColor; }
        .more-pill:focus { outline: none; box-shadow: var(--focus-ring); border-radius: 3px; }
        .more-pill::after { content: attr(data-tip); position: absolute; bottom: 150%; right: 0; left: auto; background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; line-height: 1.5; width: max-content; max-width: 240px; text-align: left; display: none; z-index: 50; box-shadow: var(--shadow-md); white-space: normal; }
        .more-pill:hover::after, .more-pill:focus::after { display: block; }

        /* reused payment tooltip (smsactiver_payment_cell): display:none when hidden so it
           never adds horizontal scroll on mobile; right-anchored so it stays in viewport */
        .cmp .pay-tip, .cards .pay-tip { display: none; visibility: visible; opacity: 1; left: auto; right: 0; }
        .cmp .pay-cell:hover .pay-tip, .cmp .pay-cell:focus-within .pay-tip,
        .cards .pay-cell:hover .pay-tip, .cards .pay-cell:focus-within .pay-tip { display: block; }

        /* type-aware column visibility */
        .cmp[data-view="paid"] .col-free { display: none; }
        .cmp[data-view="free"] .col-paid { display: none; }

        /* collapsed columns — hidden by default, shown when user expands */
        .col-secondary { display: none; }
        .cmp.expanded .col-secondary { display: table-cell; }

        /* expand toggle */
        .cmp-expand-wrap {
            text-align: right;
            padding: 8px 0 4px;
        }
        .cmp-expand-btn {
            background: none;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--muted);
            font-size: 0.8rem;
            font-weight: 600;
            padding: 5px 12px;
            cursor: pointer;
            font-family: inherit;
            transition: border-color .2s, color .2s;
        }
        .cmp-expand-btn:hover { border-color: var(--primary); color: var(--primary); }

        /* mobile cards */
        .cards { display: none; padding: 12px; gap: 12px; flex-direction: column; min-height: 440px; }
        .cards .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-sm); }
        .cards .card.is-top { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm); }
        .card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
        .card-head .ttl { display: flex; gap: 10px; align-items: flex-start; min-width: 0; flex: 1 1 auto; }
        .card-head .ttl > div { min-width: 0; }
        .card-head .prov-name { font-size: 15px; overflow-wrap: break-word; }
        .card-head .rating { flex: 0 0 auto; }
        .core3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
        .core3 .cell { background: var(--surface-muted); border-radius: var(--radius-sm); padding: 9px 6px; text-align: center; }
        .core3 .cell .k { font-size: 10px; color: var(--muted); }
        .core3 .cell .v { font-weight: 600; font-size: 15px; margin-top: 1px; color: var(--ink); }
        .card-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
        .cards .more { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
        .cards .more summary { min-height: 40px; display: flex; align-items: center; font-weight: 700; font-size: 13px; color: var(--primary); cursor: pointer; list-style: none; }
        .cards .more summary::-webkit-details-marker { display: none; }
        .cards .more summary::before { content: "\25B8 "; margin-right: 4px; }
        .cards .more[open] summary::before { content: "\25BE "; }
        .cards .more dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin-top: 8px; font-size: 13px; }
        .cards .more dt { color: var(--muted); }
        .cards .more dd { text-align: right; color: var(--ink-soft); margin: 0; }
        .cards .more .review-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--primary); }

        /* free-numbers hook */
        .cmp-tail .tail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
        .tail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-sm); }
        .tail-card .prov-name { font-size: 15px; margin-bottom: 4px; }
        .tail-card .tmeta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
        .tail-card--hidden { display: none; }
        .btn-visit--free { width: 100%; justify-content: center; font-size: 0.88rem; }
        .tail-more-wrap { text-align: center; margin-top: 20px; }
        .tail-more-btn {
            display: inline-flex; align-items: center; gap: 6px;
            min-height: 46px; padding: 0 20px;
            border: 1px solid var(--border); border-radius: var(--radius-sm);
            background: var(--surface); font: inherit; font-size: 0.9rem;
            font-weight: 600; color: var(--ink-soft); cursor: pointer;
        }
        .tail-more-btn:hover { border-color: var(--primary); color: var(--primary); }

        @media (max-width: 820px) {
            .cmp-shell .table-wrapper { display: none; }
            .cards { display: flex; }
            .cmp-hint { display: none; }
            .sort-reset { display: none; }
            .m-sort { display: inline-flex; }
            .cmp-expand-wrap { display: none; }
        }
