/* --- SEO Promo Styles --- */
.byo-promo-wrap {
        position: relative;
        background: linear-gradient(180deg, var(--byo-slate-50) 0%, var(--byo-indigo-50) 55%, var(--byo-slate-50) 100%);
        padding: 5rem 0 5.5rem;
        overflow: hidden;
    }
    .byo-promo-wrap::before {
        content: '';
        position: absolute;
        top: -140px;
        left: -160px;
        width: 480px;
        height: 480px;
        background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, rgba(99,102,241,0) 70%);
        pointer-events: none;
    }
    .byo-promo-wrap::after {
        content: '';
        position: absolute;
        bottom: -180px;
        right: -160px;
        width: 560px;
        height: 560px;
        background: radial-gradient(circle, rgba(236,72,153,0.12) 0%, rgba(236,72,153,0) 70%);
        pointer-events: none;
    }
    .byo-promo-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.3rem 0.8rem;
        background: #fff;
        border: 1px solid var(--byo-indigo-100);
        border-radius: 999px;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--byo-indigo-700);
        box-shadow: var(--byo-shadow-sm);
    }
    .byo-promo-eyebrow .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--byo-emerald-500);
        box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
    }
    .byo-promo-h {
        font-size: 2.6rem;
        line-height: 1.1;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: var(--byo-slate-900);
        margin: 1.25rem 0 1rem;
    }
    .byo-promo-h .grad {
        background: var(--byo-gradient-indigo);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    .byo-promo-sub {
        font-size: 1.075rem;
        line-height: 1.6;
        color: var(--byo-slate-600);
        max-width: 32rem;
        margin-bottom: 1.75rem;
    }
    .byo-promo-cta {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.8rem 1.35rem;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.95rem;
        text-decoration: none !important;
        transition: transform 0.15s, box-shadow 0.15s;
    }
    .byo-promo-cta--primary {
        background: var(--byo-gradient-indigo);
        color: #fff !important;
        box-shadow: var(--byo-shadow-glow-indigo);
    }
    .byo-promo-cta--primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 36px -10px rgba(99,102,241,0.55);
    }
    .byo-promo-cta--ghost {
        background: #fff;
        color: var(--byo-slate-800) !important;
        border: 1px solid var(--byo-slate-200);
        box-shadow: var(--byo-shadow-sm);
    }
    .byo-promo-cta--ghost:hover {
        border-color: var(--byo-indigo-400);
        color: var(--byo-indigo-700) !important;
        transform: translateY(-2px);
    }
    .byo-promo-cta svg { width: 16px; height: 16px; }

    /* Hero preview card (right side of Section 1) */
    .byo-promo-preview {
        position: relative;
        background: #fff;
        border-radius: 22px;
        border: 1px solid var(--byo-slate-200);
        box-shadow: 0 28px 60px -20px rgba(15,23,42,0.18);
        padding: 1.25rem 1.35rem 1.4rem;
    }
    .byo-promo-preview::before {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: 22px;
        padding: 1px;
        background: linear-gradient(140deg, rgba(99,102,241,0.45), rgba(139,92,246,0.05) 50%, rgba(236,72,153,0.4));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
                mask-composite: exclude;
        pointer-events: none;
    }
    .byo-preview-head {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding-bottom: 0.85rem;
        border-bottom: 1px dashed var(--byo-slate-200);
    }
    .byo-preview-fav {
        width: 34px; height: 34px;
        border-radius: 9px;
        background: var(--byo-gradient-indigo);
        display: flex; align-items: center; justify-content: center;
        color: #fff;
        font-weight: 700;
        font-size: 0.95rem;
    }
    .byo-preview-title {
        font-weight: 700;
        color: var(--byo-slate-900);
        font-size: 0.98rem;
        line-height: 1.1;
    }
    .byo-preview-url {
        font-size: 0.78rem;
        color: var(--byo-slate-500);
        font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    }
    .byo-score-wrap {
        margin: 1rem 0 0.9rem;
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 1rem;
        align-items: center;
    }
    .byo-score-ring {
        position: relative;
        width: 110px; height: 110px;
    }
    .byo-score-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
    .byo-score-ring .ring-bg  { stroke: var(--byo-slate-100); }
    .byo-score-ring .ring-fg  { stroke: url(#byo-grad-ring); stroke-linecap: round; }
    .byo-score-ring .val {
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        display: flex; align-items: center; justify-content: center;
        font-weight: 800; font-size: 1.7rem; color: var(--byo-slate-900);
        letter-spacing: -0.02em;
    }
    .byo-score-meta { font-size: 0.85rem; color: var(--byo-slate-600); }
    .byo-score-meta strong { color: var(--byo-slate-900); font-weight: 700; }
    .byo-test-list { display: flex; flex-direction: column; gap: 0.55rem; }
    .byo-test-row {
        display: grid;
        grid-template-columns: 24px 1fr auto;
        align-items: center;
        gap: 0.7rem;
        padding: 0.55rem 0.8rem;
        background: var(--byo-slate-50);
        border: 1px solid var(--byo-slate-100);
        border-radius: 10px;
        font-size: 0.85rem;
    }
    .byo-test-dot {
        width: 18px; height: 18px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        color: #fff; font-size: 11px;
    }
    .byo-test-dot.is-good { background: var(--byo-emerald-500); }
    .byo-test-dot.is-mid  { background: var(--byo-amber-500); }
    .byo-test-dot.is-bad  { background: var(--byo-rose-500); }
    .byo-test-name { color: var(--byo-slate-700); font-weight: 500; }
    .byo-test-badge {
        font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 0.18rem 0.45rem;
        border-radius: 6px;
    }
    .byo-test-badge.is-good { background: var(--byo-emerald-50); color: var(--byo-emerald-600); }
    .byo-test-badge.is-mid  { background: var(--byo-amber-50);   color: var(--byo-amber-600);   }
    .byo-test-badge.is-bad  { background: var(--byo-rose-50);    color: var(--byo-rose-600);    }

    /* Section 2 — Complete solution */
    .byo-solution-card {
        position: relative;
        padding: 1.4rem 1.4rem 1.5rem;
        background: #fff;
        border-radius: 18px;
        border: 1px solid var(--byo-slate-200);
        box-shadow: var(--byo-shadow-sm);
        height: 100%;
        transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    }
    .byo-solution-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--byo-shadow-lg);
        border-color: var(--byo-indigo-100);
    }
    .byo-solution-card .ico {
        width: 44px; height: 44px;
        border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
        color: #fff;
        margin-bottom: 0.9rem;
        box-shadow: 0 6px 16px -6px rgba(15,23,42,0.18);
    }
    .byo-solution-card .ico svg { width: 22px; height: 22px; }
    .byo-solution-card.is-indigo  .ico { background: var(--byo-gradient-indigo); }
    .byo-solution-card.is-emerald .ico { background: var(--byo-gradient-emerald); }
    .byo-solution-card.is-amber   .ico { background: var(--byo-gradient-amber); }
    .byo-solution-card h4 {
        font-weight: 700; color: var(--byo-slate-900);
        font-size: 1.1rem; margin: 0 0 0.4rem;
    }
    .byo-solution-card p {
        color: var(--byo-slate-600); font-size: 0.93rem;
        line-height: 1.55; margin: 0;
    }

    /* Section 2 right: stacked recent reports mockup */
    .byo-recent-stack {
        position: relative;
        padding: 1.25rem;
        background: #fff;
        border-radius: 22px;
        border: 1px solid var(--byo-slate-200);
        box-shadow: var(--byo-shadow-lg);
    }
    .byo-recent-head {
        display: flex; justify-content: space-between; align-items: center;
        padding-bottom: 0.9rem;
        border-bottom: 1px solid var(--byo-slate-100);
    }
    .byo-recent-head .title {
        font-weight: 700; color: var(--byo-slate-900); font-size: 0.98rem;
    }
    .byo-recent-head .count {
        font-size: 0.75rem; color: var(--byo-slate-500);
        font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    }
    .byo-recent-row {
        display: grid;
        grid-template-columns: 34px 1fr auto auto;
        gap: 0.8rem;
        align-items: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--byo-slate-100);
    }
    .byo-recent-row:last-child { border-bottom: 0; }
    .byo-recent-row .fav {
        width: 34px; height: 34px; border-radius: 9px;
        background: var(--byo-slate-100);
        display: flex; align-items: center; justify-content: center;
        font-weight: 700; color: var(--byo-slate-700);
        font-size: 0.82rem;
    }
    .byo-recent-row .dom {
        font-weight: 600; color: var(--byo-slate-900);
        font-size: 0.9rem; line-height: 1.2;
        font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    }
    .byo-recent-row .ago {
        font-size: 0.73rem; color: var(--byo-slate-500);
    }
    .byo-pill {
        display: inline-flex; align-items: center; gap: 0.35rem;
        padding: 0.25rem 0.6rem;
        border-radius: 999px;
        font-size: 0.72rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.05em;
    }
    .byo-pill.is-good { background: var(--byo-emerald-50); color: var(--byo-emerald-600); }
    .byo-pill.is-mid  { background: var(--byo-amber-50);   color: var(--byo-amber-600);   }
    .byo-pill.is-bad  { background: var(--byo-rose-50);    color: var(--byo-rose-600);    }
    .byo-recent-row .score {
        font-weight: 800; color: var(--byo-slate-900);
        font-size: 0.95rem; font-variant-numeric: tabular-nums;
    }

    /* Section 3 — Advanced reports / test chips + category cards */
    .byo-chip-col { display: flex; flex-direction: column; gap: 0.55rem; }
    .byo-test-chip {
        display: grid;
        grid-template-columns: 28px 1fr auto;
        align-items: center;
        gap: 0.7rem;
        padding: 0.7rem 0.95rem;
        background: #fff;
        border: 1px solid var(--byo-slate-200);
        border-radius: 12px;
        box-shadow: var(--byo-shadow-sm);
        font-size: 0.9rem;
    }
    .byo-test-chip .ico {
        width: 28px; height: 28px; border-radius: 8px;
        display: flex; align-items: center; justify-content: center;
        color: #fff;
    }
    .byo-test-chip .ico svg { width: 14px; height: 14px; }
    .byo-test-chip .label { color: var(--byo-slate-800); font-weight: 600; }
    .byo-test-chip .note  { color: var(--byo-slate-500); font-size: 0.75rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
    .byo-test-chip.is-good .ico { background: var(--byo-gradient-emerald); }
    .byo-test-chip.is-mid  .ico { background: var(--byo-gradient-amber);   }
    .byo-test-chip.is-bad  .ico { background: var(--byo-gradient-rose);    }
    .byo-test-chip.is-info .ico { background: var(--byo-gradient-sky);     }

    .byo-cat-card {
        position: relative;
        padding: 1.35rem 1.35rem 1.4rem;
        background: #fff;
        border-radius: 18px;
        border: 1px solid var(--byo-slate-200);
        box-shadow: var(--byo-shadow-sm);
        height: 100%;
        transition: transform 0.15s, box-shadow 0.15s;
    }
    .byo-cat-card:hover { transform: translateY(-3px); box-shadow: var(--byo-shadow-lg); }
    .byo-cat-card .accent {
        position: absolute; top: 0; left: 1.35rem; right: 1.35rem; height: 4px;
        border-radius: 0 0 4px 4px;
    }
    .byo-cat-card.is-indigo  .accent { background: var(--byo-gradient-indigo); }
    .byo-cat-card.is-emerald .accent { background: var(--byo-gradient-emerald); }
    .byo-cat-card.is-rose    .accent { background: var(--byo-gradient-rose); }
    .byo-cat-card.is-sky     .accent { background: var(--byo-gradient-sky); }
    .byo-cat-card h5 {
        font-weight: 700; color: var(--byo-slate-900); font-size: 1.02rem;
        margin: 0.5rem 0 0.35rem;
        display: flex; justify-content: space-between; align-items: baseline;
    }
    .byo-cat-card h5 .count {
        font-size: 0.72rem; color: var(--byo-slate-500);
        font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    }
    .byo-cat-card p {
        color: var(--byo-slate-600); font-size: 0.88rem; line-height: 1.5;
        margin: 0 0 0.7rem;
    }
    .byo-cat-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
    .byo-cat-tags span {
        font-size: 0.68rem; font-weight: 600;
        padding: 0.18rem 0.45rem;
        border-radius: 6px;
        background: var(--byo-slate-100);
        color: var(--byo-slate-700);
    }

    /* Section 4 — Tools grid */
    .byo-tools-wrap {
        position: relative;
        padding: 1.5rem;
        background: #fff;
        border-radius: 22px;
        border: 1px solid var(--byo-slate-200);
        box-shadow: var(--byo-shadow-lg);
    }
    .byo-tools-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 0.7rem;
    }
    @media (max-width: 991px) { .byo-tools-grid { grid-template-columns: repeat(4, 1fr); } }
    @media (max-width: 575px) { .byo-tools-grid { grid-template-columns: repeat(3, 1fr); } }
    .byo-tool-tile {
        position: relative;
        padding: 0.85rem 0.55rem 0.75rem;
        text-align: center;
        background: var(--byo-slate-50);
        border: 1px solid var(--byo-slate-100);
        border-radius: 12px;
        text-decoration: none !important;
        transition: transform 0.15s, border-color 0.15s, background 0.15s;
    }
    .byo-tool-tile:hover {
        transform: translateY(-2px);
        background: #fff;
        border-color: var(--byo-indigo-100);
        box-shadow: var(--byo-shadow-md);
    }
    .byo-tool-tile .ico {
        width: 34px; height: 34px; margin: 0 auto 0.45rem;
        border-radius: 10px;
        background: var(--byo-gradient-indigo);
        display: flex; align-items: center; justify-content: center;
        color: #fff;
    }
    .byo-tool-tile .ico svg { width: 16px; height: 16px; fill: #fff; }
    .byo-tool-tile.is-emerald .ico { background: var(--byo-gradient-emerald); }
    .byo-tool-tile.is-amber   .ico { background: var(--byo-gradient-amber); }
    .byo-tool-tile.is-rose    .ico { background: var(--byo-gradient-rose); }
    .byo-tool-tile.is-sky     .ico { background: var(--byo-gradient-sky); }
    .byo-tool-tile .name {
        font-size: 0.75rem; font-weight: 600; color: var(--byo-slate-700);
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .byo-tools-foot {
        display: flex; justify-content: space-between; align-items: center;
        margin-top: 1.1rem;
        padding-top: 1rem;
        border-top: 1px dashed var(--byo-slate-200);
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    .byo-tools-foot .hint {
        font-size: 0.85rem; color: var(--byo-slate-600);
    }

    .byo-section-title {
        font-size: 2rem;
        line-height: 1.15;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: var(--byo-slate-900);
        margin: 0 0 0.6rem;
    }
    .byo-section-lead {
        font-size: 1.02rem; color: var(--byo-slate-600);
        line-height: 1.55; max-width: 38rem;
    }

    @media (max-width: 767px) {
        .byo-promo-wrap { padding: 3.25rem 0 3.75rem; }
        .byo-promo-h { font-size: 2rem; }
        .byo-section-title { font-size: 1.6rem; }
        .byo-tools-grid { gap: 0.5rem; }
    }

    /* Dark-theme adjustments — design-system.blade.php defines dark tokens; mirror them here */
    html[data-theme="dark"] .byo-promo-wrap,
    body.bg-dark .byo-promo-wrap {
        background: linear-gradient(180deg, #0b1120 0%, #0f172a 55%, #0b1120 100%);
    }
    html[data-theme="dark"] .byo-promo-eyebrow,
    html[data-theme="dark"] .byo-promo-preview,
    html[data-theme="dark"] .byo-solution-card,
    html[data-theme="dark"] .byo-recent-stack,
    html[data-theme="dark"] .byo-test-chip,
    html[data-theme="dark"] .byo-cat-card,
    html[data-theme="dark"] .byo-tools-wrap {
        background: #111827;
        border-color: #1f2937;
        color: #e5e7eb;
    }
    html[data-theme="dark"] .byo-promo-h,
    html[data-theme="dark"] .byo-section-title,
    html[data-theme="dark"] .byo-preview-title,
    html[data-theme="dark"] .byo-recent-head .title,
    html[data-theme="dark"] .byo-recent-row .dom,
    html[data-theme="dark"] .byo-solution-card h4,
    html[data-theme="dark"] .byo-cat-card h5,
    html[data-theme="dark"] .byo-test-chip .label,
    html[data-theme="dark"] .byo-score-ring .val,
    html[data-theme="dark"] .byo-recent-row .score { color: #f3f4f6; }
    html[data-theme="dark"] .byo-promo-sub,
    html[data-theme="dark"] .byo-section-lead,
    html[data-theme="dark"] .byo-solution-card p,
    html[data-theme="dark"] .byo-cat-card p,
    html[data-theme="dark"] .byo-tools-foot .hint,
    html[data-theme="dark"] .byo-recent-row .ago,
    html[data-theme="dark"] .byo-score-meta { color: #9ca3af; }
    html[data-theme="dark"] .byo-tool-tile { background: #0f172a; border-color: #1f2937; }
    html[data-theme="dark"] .byo-tool-tile:hover { background: #111827; }
    html[data-theme="dark"] .byo-tool-tile .name { color: #d1d5db; }
    html[data-theme="dark"] .byo-cat-tags span { background: #1f2937; color: #d1d5db; }
    html[data-theme="dark"] .byo-test-row { background: #0f172a; border-color: #1f2937; }
    html[data-theme="dark"] .byo-promo-cta--ghost { background: #111827; color: #e5e7eb !important; border-color: #1f2937; }

/* --- Top Sites Styles --- */
.byo-hts-wrap { margin-top: 2.5rem; }
    .byo-hts-card {
        max-width: 960px;
        margin: 0 auto;
        background: #ffffff;
        border: 1px solid #e3ebf4;
        border-radius: 12px;
        box-shadow: 0 1px 2px rgba(15, 35, 61, .04), 0 1px 3px rgba(15, 35, 61, .06);
        overflow: hidden;
    }
    .byo-hts-head {
        padding: 1.3rem 1.6rem 1rem;
        background: linear-gradient(135deg, #1e2a4a 0%, #2c3e7b 55%, #4b6bd0 100%);
        color: #fff;
        position: relative;
    }
    .byo-hts-head::after {
        content: "";
        position: absolute; inset: 0;
        background: radial-gradient(circle at 18% 18%, rgba(255,255,255,.12), transparent 45%);
        pointer-events: none;
    }
    .byo-hts-livepill {
        display: inline-flex; align-items: center; gap: .45rem;
        background: rgba(255,255,255,.18);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255,255,255,.3);
        color: #fff;
        padding: .3rem .75rem;
        border-radius: 999px;
        font-size: .72rem;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
    }
    .byo-hts-livedot {
        width: 8px; height: 8px; border-radius: 50%;
        background: #10b981;
        box-shadow: 0 0 0 0 rgba(16,185,129,.7);
        animation: byo-hts-pulse 1.8s infinite;
    }
    @keyframes byo-hts-pulse {
        0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.7); }
        70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
        100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
    }
    .byo-hts-title {
        font-size: 1.55rem;
        font-weight: 700;
        letter-spacing: -0.012em;
        margin: .55rem 0 .15rem;
        color: #fff;
    }
    .byo-hts-sub {
        margin: 0;
        color: rgba(255,255,255,.85);
        font-size: .85rem;
    }

    /* ---- Row-based listing (new clean look) ---- */
    .byo-hts-list { padding: .5rem 0; }
    .byo-hts-row {
        display: grid;
        grid-template-columns: 64px 1fr auto;
        align-items: center;
        gap: 1rem;
        padding: .9rem 1.6rem;
        border-bottom: 1px solid #f1f5f9;
        transition: background-color .15s ease;
    }
    .byo-hts-row:last-child { border-bottom: 0; }
    .byo-hts-row:hover { background: #eef2ff; }

    .byo-hts-pill {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 52px;
        padding: .32rem .55rem;
        border-radius: 999px;
        font-weight: 800;
        font-size: .85rem;
        font-variant-numeric: tabular-nums;
        background: #f1f5f9;
        color: #64748b;
        box-shadow: inset 0 0 0 1px #e2e8f0;
        letter-spacing: .02em;
    }
    .byo-hts-pill.is-gold {
        background: linear-gradient(135deg,#f59e0b,#fbbf24);
        color:#fff;
        box-shadow: 0 6px 14px -4px rgba(245,158,11,.45);
    }
    .byo-hts-pill.is-silver {
        background: linear-gradient(135deg,#94a3b8,#cbd5e1);
        color:#fff;
        box-shadow: 0 6px 14px -4px rgba(100,116,139,.4);
    }
    .byo-hts-pill.is-bronze {
        background: linear-gradient(135deg,#b45309,#f59e0b);
        color:#fff;
        box-shadow: 0 6px 14px -4px rgba(180,83,9,.4);
    }

    .byo-hts-domwrap {
        display: flex; align-items: center; gap: .7rem;
        min-width: 0;
    }
    .byo-hts-trophy {
        font-size: 1.15rem;
        line-height: 1;
        flex-shrink: 0;
        filter: drop-shadow(0 2px 4px rgba(245,158,11,.3));
    }
    .byo-hts-fav {
        width: 22px; height: 22px; border-radius: 6px;
        box-shadow: inset 0 0 0 1px #e2e8f0;
        flex-shrink: 0;
    }
    .byo-hts-domain {
        min-width: 0;
        display: flex; flex-direction: column;
        line-height: 1.25;
    }
    .byo-hts-domain a {
        color: #0f172a;
        font-weight: 700;
        font-size: 1.02rem;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .byo-hts-domain a:hover { color: #4f46e5; }
    .byo-hts-domain-url {
        font-size: .78rem;
        color: #62748b; /* calm-refresh muted token, lifted from #94a3b8 for readability */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    }
    .byo-hts-cat {
        display: inline-block;
        font-size: .62rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        padding: .15rem .5rem;
        border-radius: 999px;
        background: #eef2ff;
        color: #4338ca;
        box-shadow: inset 0 0 0 1px #c7d2fe;
        margin-left: .45rem;
        vertical-align: 2px;
    }

    .byo-hts-metric {
        text-align: right;
        line-height: 1.1;
        white-space: nowrap;
    }
    .byo-hts-metric-num {
        font-size: 1.35rem;
        font-weight: 800;
        color: #0f172a;
        font-variant-numeric: tabular-nums;
        letter-spacing: -0.01em;
    }
    .byo-hts-metric-label {
        font-size: .7rem;
        color: #62748b; /* calm-refresh muted token, lifted from #94a3b8 for readability */
        text-transform: uppercase;
        letter-spacing: .08em;
        font-weight: 600;
        margin-top: .1rem;
    }

    .byo-hts-empty-dom {
        color: #94a3b8;
        font-style: italic;
        font-size: .92rem;
    }

    .byo-hts-foot {
        padding: 1.2rem 1.6rem;
        text-align: center;
        background: #f8fafc;
        border-top: 1px solid #e2e8f0;
    }
    .byo-hts-foot .btn { margin: .2rem .3rem; }

    @media (max-width: 575px) {
        .byo-hts-title { font-size: 1.35rem; }
        .byo-hts-card { border-radius: 12px; } /* aligned to calm-refresh card radius (was 16px) */
        .byo-hts-head { padding: 1.1rem 1.1rem .9rem; }
        .byo-hts-row { padding: .75rem 1rem; grid-template-columns: 54px 1fr auto; gap: .7rem; }
        .byo-hts-pill { min-width: 46px; font-size: .8rem; }
        .byo-hts-metric-num { font-size: 1.15rem; }
        .byo-hts-domain a { font-size: .95rem; }
        .byo-hts-cat { display: none; }
        .byo-hts-domain-url { display: none; }
    }

    /* ==========================================================
       Dark-mode parity for Top Sites partial
       Maps onto the same surfaces / borders / muted text the calm
       refresh layer defines globally. Local fallbacks for safety.
       ========================================================== */
    html.dark .byo-hts-card {
        background: #0f172a;
        border-color: #1e293b;
        box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.25);
    }
    html.dark .byo-hts-head {
        background: linear-gradient(135deg, #0c1530 0%, #1c2755 55%, #2c4099 100%);
    }
    html.dark .byo-hts-head::after {
        background: radial-gradient(circle at 18% 18%, rgba(255,255,255,.07), transparent 45%);
    }
    html.dark .byo-hts-row { border-bottom-color: #1e293b; }
    html.dark .byo-hts-row:hover { background: rgba(99,102,241,.10); }
    html.dark .byo-hts-domain a { color: #e2e8f0; }
    html.dark .byo-hts-domain a:hover { color: #a5b4fc; }
    html.dark .byo-hts-domain-url { color: #94a3b8; }
    html.dark .byo-hts-metric-num { color: #e2e8f0; }
    html.dark .byo-hts-metric-label { color: #94a3b8; }
    html.dark .byo-hts-cat {
        background: rgba(99,102,241,.12);
        color: #a5b4fc;
        box-shadow: inset 0 0 0 1px rgba(99,102,241,.28);
    }
    html.dark .byo-hts-pill {
        background: #1e293b;
        color: #94a3b8;
        box-shadow: inset 0 0 0 1px #334155;
    }
    /* Keep gold/silver/bronze medals colored in dark mode but darken backplate edges */
    html.dark .byo-hts-pill.is-gold,
    html.dark .byo-hts-pill.is-silver,
    html.dark .byo-hts-pill.is-bronze { box-shadow: none; }
    html.dark .byo-hts-empty-dom { color: #64748b; }
    html.dark .byo-hts-foot {
        background: #0a1023;
        border-top-color: #1e293b;
    }
    html.dark .byo-hts-fav {
        /* keep the favicon tile readable on dark surfaces */
        background: rgba(255,255,255,.04);
    }

/* --- Demo Dashboard Styles --- */
.demo-dashboard-wrapper {
            width: 100%;
            max-width: 100%;
            background: #0f1419;
            color: #e0e6ed;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
            display: flex;
            height: 500px;
        }

        .demo-dashboard-wrapper[data-theme="light"] {
            background: #f8f9fa;
            color: #1a1d21;
        }

        .demo-sidebar {
            width: 80px;
            background: #1a1f2e;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px 0;
            gap: 12px;
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-sidebar {
            background: #f0f2f5;
            border-right-color: rgba(0, 0, 0, 0.08);
        }

        .demo-nav-icon {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            color: #8a92a6;
            cursor: pointer;
            transition: all 0.2s ease;
            font-weight: 600;
            font-size: 12px;
        }

        .demo-nav-icon:first-child {
            color: #4589ff;
            background: rgba(69, 137, 255, 0.15);
        }

        .demo-nav-icon:hover {
            color: #4589ff;
            background: rgba(69, 137, 255, 0.15);
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-nav-icon {
            color: #8a92a6;
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-nav-icon:first-child {
            color: #4589ff;
            background: rgba(69, 137, 255, 0.1);
        }

        .demo-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            background: #0f1419;
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-content {
            background: #ffffff;
        }

        .demo-header {
            padding: 20px 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-header {
            border-bottom-color: rgba(0, 0, 0, 0.08);
        }

        .demo-title {
            font-size: 18px;
            font-weight: 600;
            margin: 0;
        }

        .demo-daterange {
            font-size: 13px;
            color: #8a92a6;
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-daterange {
            color: #6c7280;
        }

        .demo-body {
            flex: 1;
            padding: 20px 24px;
            overflow-y: auto;
        }

        .demo-kpi-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }

        @media (max-width: 768px) {
            .demo-kpi-row {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .demo-kpi-card {
            background: #1a1f2e;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 16px;
            display: flex;
            flex-direction: column;
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-kpi-card {
            background: #f8f9fa;
            border-color: rgba(0, 0, 0, 0.08);
        }

        .demo-kpi-label {
            font-size: 12px;
            color: #8a92a6;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-kpi-label {
            color: #6c7280;
        }

        .demo-kpi-value {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 8px;
            display: flex;
            align-items: baseline;
            gap: 8px;
        }

        .demo-kpi-badge {
            background: rgba(52, 168, 83, 0.2);
            color: #34a853;
            font-size: 11px;
            font-weight: 600;
            padding: 3px 8px;
            border-radius: 4px;
            white-space: nowrap;
        }

        .demo-chart-section {
            margin-bottom: 24px;
        }

        .demo-chart-container {
            background: #1a1f2e;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 16px;
            height: 200px;
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-chart-container {
            background: #f8f9fa;
            border-color: rgba(0, 0, 0, 0.08);
        }

        .demo-table-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-top: 24px;
        }

        @media (max-width: 768px) {
            .demo-table-section {
                grid-template-columns: 1fr;
            }
        }

        .demo-table {
            background: #1a1f2e;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            overflow: hidden;
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-table {
            background: #f8f9fa;
            border-color: rgba(0, 0, 0, 0.08);
        }

        .demo-table-header {
            padding: 12px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-weight: 600;
            font-size: 13px;
            color: #8a92a6;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-table-header {
            border-bottom-color: rgba(0, 0, 0, 0.08);
            color: #6c7280;
        }

        .demo-table-row {
            padding: 12px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 13px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .demo-table-row:last-child {
            border-bottom: none;
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-table-row {
            border-bottom-color: rgba(0, 0, 0, 0.04);
        }

        .demo-table-row-name {
            font-weight: 500;
            color: #e0e6ed;
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-table-row-name {
            color: #1a1d21;
        }

        .demo-table-row-value {
            font-weight: 600;
            color: #4589ff;
            text-align: right;
            min-width: 60px;
        }

        .demo-legend {
            display: flex;
            gap: 24px;
            margin-bottom: 16px;
            font-size: 12px;
        }

        .demo-legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .demo-legend-dot {
            width: 8px;
            height: 8px;
            border-radius: 2px;
        }

        .demo-legend-dot.visitors {
            background: #4589ff;
        }

        .demo-legend-dot.pageviews {
            background: #34a853;
        }

        /* Scrollbar styling */
        .demo-body::-webkit-scrollbar {
            width: 6px;
        }

        .demo-body::-webkit-scrollbar-track {
            background: transparent;
        }

        .demo-body::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
        }

        .demo-body::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-body::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.15);
        }

        .demo-dashboard-wrapper[data-theme="light"] .demo-body::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.25);
        }

/* --- Home Section Style --- */
.byo-home-gs-preview h2{font-size:1.8rem;font-weight:800;letter-spacing:-.02em;margin-bottom:.5rem;color:#0f172a;text-align:center}
                    .byo-home-gs-preview .byo-gs-sub{text-align:center;color:#64748b;font-size:1rem;margin-bottom:2rem;max-width:680px;margin-left:auto;margin-right:auto}
                    .byo-home-gs-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1.5rem}
                    @media (max-width:991px){.byo-home-gs-grid{grid-template-columns:repeat(2,1fr)}}
                    .byo-home-gs-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:1.5rem 1.25rem;text-align:center;box-shadow:0 4px 6px -1px rgba(15,23,42,.05);transition:transform .15s,box-shadow .15s;display:block;text-decoration:none;color:inherit}
                    .byo-home-gs-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px -5px rgba(15,23,42,.10);text-decoration:none;border-color:rgba(99,102,241,.3)}
                    .byo-home-gs-card .label{font-size:.7rem;font-weight:700;letter-spacing:.08em;color:#64748b;text-transform:uppercase;margin-bottom:.4rem}
                    .byo-home-gs-card .value{font-size:1.35rem;font-weight:800;color:#0f172a;letter-spacing:-.02em;margin-bottom:.25rem}
                    .byo-home-gs-card .sub{font-size:.78rem;color:#64748b}
                    .byo-home-gs-cta{text-align:center;margin-top:1.5rem}
                    .byo-home-gs-cta a{display:inline-block;padding:.85rem 2rem;border-radius:999px;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;font-weight:700;text-decoration:none;box-shadow:0 10px 25px -10px rgba(99,102,241,.5)}
                    .byo-home-gs-cta a:hover{transform:translateY(-2px);text-decoration:none;color:#fff}

/* --- Home Section Style --- */
.byo-clusters-hub{padding:3rem 0;background:linear-gradient(180deg,transparent 0,#f6f9fc 35%,#f6f9fc 100%)}
        .byo-clusters-hub h2{font-size:1.6rem;font-weight:700;color:#10233d;letter-spacing:-.012em;margin:0 0 .5rem 0;text-align:center}
        .byo-clusters-hub .byo-clusters-sub{font-size:1rem;color:#62748b;text-align:center;margin:0 0 2rem 0}
        .byo-clusters-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;max-width:1100px;margin:0 auto}
        @media (max-width:991px){.byo-clusters-grid{grid-template-columns:1fr}}
        .byo-cluster-card{background:#fff;border:1px solid #e3ebf4;border-radius:14px;padding:1.4rem;box-shadow:0 1px 2px rgba(15,35,61,.04)}
        .byo-cluster-card h3{font-size:1.05rem;font-weight:600;color:#10233d;margin:0 0 .25rem 0}
        .byo-cluster-card .byo-cc-sub{font-size:.82rem;color:#62748b;margin:0 0 .9rem 0;line-height:1.45}
        .byo-cluster-card ul{list-style:none;padding:0;margin:0}
        .byo-cluster-card li{margin-bottom:.45rem;font-size:.92rem}
        .byo-cluster-card a{color:#4b73ff;text-decoration:none;display:inline-flex;align-items:center;gap:.3rem}
        .byo-cluster-card a:hover{color:#2c54e0}
        .byo-cluster-card strong{color:#10233d}
        html.dark .byo-clusters-hub{background:linear-gradient(180deg,transparent 0,#0b1426 35%,#0b1426 100%)}
        html.dark .byo-cluster-card{background:#0f172a;border-color:#1e293b;box-shadow:0 1px 2px rgba(0,0,0,.35)}
        html.dark .byo-cluster-card h3{color:#e2e8f0}
        html.dark .byo-cluster-card .byo-cc-sub{color:#94a3b8}
        html.dark .byo-cluster-card a{color:#a5b4fc}
        html.dark .byo-cluster-card a:hover{color:#c4b5fd}
        html.dark .byo-cluster-card strong{color:#e2e8f0}
        html.dark .byo-clusters-hub h2{color:#e2e8f0}
        html.dark .byo-clusters-hub .byo-clusters-sub{color:#94a3b8}

/* --- Home Section Style --- */
.byo-feat3-section {
                background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);
                padding: 4rem 0 5rem;
                position: relative;
                overflow: hidden;
            }
            .byo-feat3-section::before {
                content: "";
                position: absolute;
                top: -100px; right: -100px;
                width: 360px; height: 360px;
                background: radial-gradient(circle, rgba(139, 92, 246, .12), transparent 60%);
                pointer-events: none;
            }
            .byo-feat3-section::after {
                content: "";
                position: absolute;
                bottom: -120px; left: -120px;
                width: 400px; height: 400px;
                background: radial-gradient(circle, rgba(16, 185, 129, .1), transparent 60%);
                pointer-events: none;
            }
            .byo-feat3-head {
                text-align: center;
                margin-bottom: 3rem;
                position: relative;
                z-index: 2;
            }
            .byo-feat3-eyebrow {
                display: inline-flex;
                align-items: center;
                gap: .4rem;
                padding: .35rem .85rem;
                background: rgba(99, 102, 241, .1);
                color: #4338ca;
                border: 1px solid rgba(99, 102, 241, .2);
                border-radius: 999px;
                font-size: .72rem;
                font-weight: 700;
                letter-spacing: .08em;
                text-transform: uppercase;
                margin-bottom: 1rem;
            }
            .byo-feat3-title {
                font-size: 2.5rem;
                font-weight: 800;
                letter-spacing: -0.02em;
                margin-bottom: .75rem;
                color: #0f172a;
                line-height: 1.15;
            }
            .byo-feat3-title .byo-grad-word {
                background: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef);
                -webkit-background-clip: text;
                background-clip: text;
                -webkit-text-fill-color: transparent;
            }
            .byo-feat3-sub {
                font-size: 1.1rem;
                color: #64748b;
                max-width: 640px;
                margin: 0 auto;
                line-height: 1.5;
            }
            .byo-feat3-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 1.75rem;
                position: relative;
                z-index: 2;
            }
            .byo-feat3-card {
                background: #ffffff;
                border: 1px solid #e2e8f0;
                border-radius: 20px;
                padding: 2rem 1.75rem 1.75rem;
                box-shadow: 0 4px 14px -4px rgba(15, 23, 42, .08);
                transition: transform .25s ease, box-shadow .25s ease;
                position: relative;
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }
            .byo-feat3-card::before {
                content: "";
                position: absolute;
                top: 0; left: 0; right: 0;
                height: 4px;
                border-radius: 20px 20px 0 0;
            }
            .byo-feat3-card.byo-fc-indigo::before  { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
            .byo-feat3-card.byo-fc-emerald::before { background: linear-gradient(90deg, #10b981, #34d399); }
            .byo-feat3-card.byo-fc-amber::before   { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
            .byo-feat3-card.byo-fc-teal::before    { background: linear-gradient(90deg, #14b8a6, #22d3ee); }
            .byo-feat3-card:hover {
                transform: translateY(-4px);
                box-shadow: 0 16px 40px -12px rgba(99, 102, 241, .25), 0 4px 14px -4px rgba(15, 23, 42, .08);
            }
            .byo-feat3-icon {
                width: 54px; height: 54px;
                border-radius: 14px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                margin-bottom: 1.1rem;
                color: #fff;
                box-shadow: 0 8px 20px -6px rgba(15, 23, 42, .25);
            }
            .byo-fc-indigo  .byo-feat3-icon { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
            .byo-fc-emerald .byo-feat3-icon { background: linear-gradient(135deg, #10b981, #34d399); }
            .byo-fc-amber   .byo-feat3-icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
            .byo-fc-teal    .byo-feat3-icon { background: linear-gradient(135deg, #14b8a6, #22d3ee); }
            .byo-feat3-icon svg { width: 26px; height: 26px; fill: currentColor; }
            .byo-feat3-card h3 {
                font-size: 1.35rem;
                font-weight: 800;
                color: #0f172a;
                letter-spacing: -0.01em;
                margin: 0 0 .55rem;
            }
            .byo-feat3-desc {
                font-size: .95rem;
                color: #64748b;
                margin: 0 0 1.25rem;
                line-height: 1.5;
            }
            .byo-feat3-bullets {
                list-style: none;
                padding: 0;
                margin: 0 0 1.5rem;
                flex: 1;
            }
            .byo-feat3-bullets li {
                display: flex;
                align-items: flex-start;
                gap: .55rem;
                padding: .3rem 0;
                font-size: .92rem;
                color: #334155;
                line-height: 1.4;
            }
            .byo-feat3-check {
                flex-shrink: 0;
                width: 18px; height: 18px;
                border-radius: 50%;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                margin-top: 2px;
            }
            .byo-fc-indigo  .byo-feat3-check { background: rgba(99, 102, 241, .12); color: #6366f1; }
            .byo-fc-emerald .byo-feat3-check { background: rgba(16, 185, 129, .12); color: #10b981; }
            .byo-fc-amber   .byo-feat3-check { background: rgba(245, 158, 11, .14); color: #f59e0b; }
            .byo-fc-teal    .byo-feat3-check { background: rgba(20, 184, 166, .12); color: #0f766e; }
            .byo-feat3-check svg { width: 11px; height: 11px; fill: currentColor; }
            .byo-feat3-cta {
                display: inline-flex;
                align-items: center;
                gap: .35rem;
                font-weight: 700;
                font-size: .92rem;
                text-decoration: none !important;
                padding: .55rem 0;
                position: relative;
                align-self: flex-start;
                transition: gap .2s ease;
            }
            .byo-feat3-cta:hover { gap: .55rem; }
            .byo-fc-indigo  .byo-feat3-cta { color: #6366f1; }
            .byo-fc-emerald .byo-feat3-cta { color: #10b981; }
            .byo-fc-amber   .byo-feat3-cta { color: #d97706; }
            .byo-fc-teal    .byo-feat3-cta { color: #0f766e; }
            .byo-fc-indigo  .byo-feat3-cta:hover { color: #4338ca; }
            .byo-fc-emerald .byo-feat3-cta:hover { color: #047857; }
            .byo-fc-amber   .byo-feat3-cta:hover { color: #b45309; }
            .byo-fc-teal    .byo-feat3-cta:hover { color: #115e59; }

            @media (max-width: 1199px) {
                .byo-feat3-grid { grid-template-columns: repeat(2, 1fr); }
            }
            @media (max-width: 991px) {
                .byo-feat3-grid { grid-template-columns: 1fr; gap: 1.25rem; }
                .byo-feat3-title { font-size: 2rem; }
                .byo-feat3-section { padding: 3rem 0 3.5rem; }
            }
            @media (max-width: 575px) {
                .byo-feat3-card { padding: 1.5rem 1.25rem 1.25rem; border-radius: 16px; }
                .byo-feat3-title { font-size: 1.75rem; }
                .byo-feat3-sub { font-size: 1rem; }
            }
