/**
 * V2 Alternatives Pages — Styles (Pro UI/UX)
 * Covers: single alternatives page + index/archive page.
 * CSS custom properties set by ALC_V2_Alternatives_Page::enqueue_assets().
 */

/* ── BASE ── */
.alc-alt-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 60px;
    background: #f8fafc;
    overflow-x: hidden;
    max-width: 100vw;
}
.alc-alt-page *,
.alc-alt-page *::before,
.alc-alt-page *::after { box-sizing: border-box; }

.alc-alt-container {
    max-width: var(--alc-alt-max-width, 1100px);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── BREADCRUMBS ── */
.alc-alt-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    padding: 24px 0 12px;
    flex-wrap: wrap;
}
.alc-alt-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}
.alc-alt-breadcrumbs a:hover { color: #3b82f6; }
.alc-alt-breadcrumbs svg { color: #cbd5e1; flex-shrink: 0; }
.alc-alt-bc-current { color: #64748b; font-weight: 500; }

.alc-alt-breadcrumbs--hero {
    padding: 0 0 14px;
    justify-content: center;
}
.alc-alt-breadcrumbs--hero a { color: var(--alc-alt-hero-muted, rgba(255,255,255,0.85)); }
.alc-alt-breadcrumbs--hero svg { color: var(--alc-alt-hero-muted, rgba(255,255,255,0.5)); }
.alc-alt-breadcrumbs--hero .alc-alt-bc-current {
    color: var(--alc-alt-hero-muted, rgba(255,255,255,0.85));
}

/* ── HERO ── */
.alc-alt-hero {
    border-radius: var(--alc-alt-radius, 16px);
    padding: 36px 32px;
    margin-bottom: var(--alc-alt-spacing, 32px);
    position: relative;
    overflow: hidden;
}
.alc-alt-hero--gradient {
    background: linear-gradient(135deg, var(--alc-alt-hero-from, #0f172a) 0%, var(--alc-alt-hero-to, #1e293b) 100%);
    color: var(--alc-alt-hero-text, #ffffff);
}
.alc-alt-hero--minimal {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.alc-alt-hero--banner {
    background: var(--alc-alt-hero-from, #0f172a);
    color: var(--alc-alt-hero-text, #ffffff);
}
/* Force hero text colors — override theme h1/h2/h3/p/span resets */
.alc-alt-hero--gradient h1,
.alc-alt-hero--gradient h2,
.alc-alt-hero--gradient h3,
.alc-alt-hero--gradient p,
.alc-alt-hero--gradient span,
.alc-alt-hero--banner h1,
.alc-alt-hero--banner h2,
.alc-alt-hero--banner h3,
.alc-alt-hero--banner p,
.alc-alt-hero--banner span { color: var(--alc-alt-hero-text, #ffffff); }

.alc-alt-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.alc-alt-hero__inner--center { align-items: center; text-align: center; }

.alc-alt-hero__top { display: flex; align-items: center; gap: 16px; }
.alc-alt-hero__logo {
    width: 56px; height: 56px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.alc-alt-hero--minimal .alc-alt-hero__logo {
    border-color: #e2e8f0;
    background: #f8fafc;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.alc-alt-hero__logo-ph {
    width: 56px; height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.alc-alt-hero__text { flex: 1; min-width: 0; }
.alc-alt-hero__title {
    font-size: 26px; font-weight: 800;
    margin: 0; line-height: 1.2;
    letter-spacing: -0.025em;
    color: inherit;
}
.alc-alt-hero__title--center { font-size: 30px; }
.alc-alt-hero__tagline {
    font-size: 14px; margin: 4px 0 0; opacity: 0.85; line-height: 1.5;
    color: var(--alc-alt-hero-text, #ffffff);
}
.alc-alt-hero__subtitle {
    font-size: 15px; opacity: 0.8; margin: 0 0 8px; max-width: 560px; line-height: 1.55;
    color: var(--alc-alt-hero-text, #ffffff);
}
.alc-alt-hero--minimal .alc-alt-hero__tagline { color: #64748b; opacity: 1; }
.alc-alt-hero--minimal .alc-alt-hero__subtitle { color: #64748b; opacity: 1; }

.alc-alt-hero__pills {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.alc-alt-hero__glance {
    font-size: 13.5px; opacity: 0.85; margin: 0; line-height: 1.55; max-width: 700px;
    color: var(--alc-alt-hero-text, #ffffff);
}
.alc-alt-hero--minimal .alc-alt-hero__glance { color: #475569; opacity: 1; }

.alc-alt-hero__actions {
    display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px;
}

/* ── PILLS / CHIPS ── */
.alc-alt-pill {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11.5px; font-weight: 600;
    padding: 4px 10px; border-radius: 20px;
    white-space: nowrap; line-height: 1.3;
    transition: opacity 0.15s;
}
.alc-alt-pill--tier { background: rgba(5,150,105,0.15); color: #047857; }
.alc-alt-pill--price { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.alc-alt-pill--rating {
    background: rgba(245,158,11,0.12); color: #92400e;
    display: inline-flex; align-items: center; gap: 3px;
}
.alc-alt-pill--cat {
    background: rgba(99,102,241,0.1); color: #4f46e5;
    text-decoration: none;
}
.alc-alt-pill--cat:hover { opacity: 0.8; text-decoration: none; color: #6366f1; }
.alc-alt-pill--plat { background: rgba(148,163,184,0.15); color: #64748b; }

/* Dark hero overrides */
.alc-alt-hero--gradient .alc-alt-pill--tier,
.alc-alt-hero--banner .alc-alt-pill--tier { background: rgba(5,150,105,0.25); color: #6ee7b7; }
.alc-alt-hero--gradient .alc-alt-pill--price,
.alc-alt-hero--banner .alc-alt-pill--price { background: rgba(96,165,250,0.2); color: #93c5fd; }
.alc-alt-hero--gradient .alc-alt-pill--rating,
.alc-alt-hero--banner .alc-alt-pill--rating { background: rgba(251,191,36,0.2); color: #fcd34d; }
.alc-alt-hero--gradient .alc-alt-pill--cat,
.alc-alt-hero--banner .alc-alt-pill--cat { background: rgba(165,180,252,0.2); color: #c7d2fe; }
.alc-alt-hero--gradient .alc-alt-pill--plat,
.alc-alt-hero--banner .alc-alt-pill--plat { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

.alc-alt-chip {
    display: inline-flex; align-items: center;
    font-size: 11.5px; padding: 3px 10px; border-radius: 6px;
    background: #f1f5f9; color: #475569;
    text-decoration: none; border: 1px solid #e2e8f0;
    transition: all 0.15s; white-space: nowrap;
}
.alc-alt-chip:hover { background: #e2e8f0; text-decoration: none; color: #334155; }

/* ── BUTTONS ── */
.alc-alt-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    padding: 9px 18px; border-radius: 8px;
    text-decoration: none; cursor: pointer; border: none;
    transition: all 0.2s ease; white-space: nowrap; line-height: 1.4;
}
.alc-alt-btn--primary {
    background: #3b82f6; color: #fff;
    box-shadow: 0 1px 3px rgba(59,130,246,0.3);
}
.alc-alt-btn--primary:hover {
    background: #2563eb; color: #fff; text-decoration: none;
    box-shadow: 0 2px 8px rgba(59,130,246,0.35);
    transform: translateY(-1px);
}
.alc-alt-btn--outline {
    background: #ffffff; color: #334155;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.alc-alt-btn--outline:hover {
    background: #f8fafc; color: #1e293b; text-decoration: none;
    border-color: #cbd5e1;
}
.alc-alt-btn--ghost {
    background: transparent; color: #64748b; padding: 9px 14px;
}
.alc-alt-btn--ghost:hover { color: #3b82f6; text-decoration: none; }

/* Dark hero button overrides */
.alc-alt-hero--gradient .alc-alt-btn--outline,
.alc-alt-hero--banner .alc-alt-btn--outline {
    background: rgba(255,255,255,0.08); color: #fff;
    border-color: rgba(255,255,255,0.18);
    box-shadow: none;
}
.alc-alt-hero--gradient .alc-alt-btn--outline:hover,
.alc-alt-hero--banner .alc-alt-btn--outline:hover {
    background: rgba(255,255,255,0.15); color: #fff;
}

/* ── STATS BAR ── */
.alc-alt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: var(--alc-alt-spacing, 32px);
}
.alc-alt-stat {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 4px;
    padding: 18px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--alc-alt-radius, 12px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s;
}
.alc-alt-stat:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.alc-alt-stat svg { flex-shrink: 0; }
.alc-alt-stat__num {
    font-size: 17px; font-weight: 800; color: #0f172a;
    letter-spacing: -0.01em;
}
.alc-alt-stat__label {
    font-size: 11.5px; color: #64748b; font-weight: 500;
}

/* ── SECTION TITLES ── */
.alc-alt-section-title {
    font-size: 21px; font-weight: 800; color: #0f172a;
    margin: 0 0 6px; letter-spacing: -0.02em;
}
.alc-alt-section-sub {
    font-size: 13.5px; color: #64748b; margin: 0 0 24px; font-weight: 400;
}

/* ── DETAILED CARDS (TOP N) ── */
.alc-alt-detailed { margin-bottom: var(--alc-alt-spacing, 32px); }

.alc-alt-detail-card {
    background: var(--alc-alt-detail-bg, #ffffff);
    border: 1px solid var(--alc-alt-detail-border, #e2e8f0);
    border-radius: var(--alc-alt-radius, 14px);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s, border-color 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.alc-alt-detail-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    border-color: #cbd5e1;
}

.alc-alt-detail-card__rank-stripe {
    padding: 14px 24px 0;
}
.alc-alt-rank-badge {
    display: inline-flex; align-items: center;
    font-size: 12px; font-weight: 800;
    padding: 4px 14px; border-radius: 20px;
    background: var(--alc-alt-rank-bg, #059669);
    color: var(--alc-alt-rank-text, #ffffff);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.alc-alt-detail-card__header {
    display: flex; align-items: flex-start;
    justify-content: space-between;
    gap: 16px; padding: 16px 24px 0;
}
.alc-alt-detail-card__id { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.alc-alt-detail-card__logo {
    width: 48px; height: 48px;
    border-radius: 12px; object-fit: cover;
    flex-shrink: 0; background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.alc-alt-detail-card__logo-ph {
    width: 48px; height: 48px; border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
}
.alc-alt-detail-card__name {
    font-size: 17px; font-weight: 700; margin: 0; line-height: 1.3;
}
.alc-alt-detail-card__name a {
    color: #0f172a; text-decoration: none; transition: color 0.15s;
}
.alc-alt-detail-card__name a:hover { color: #3b82f6; }
.alc-alt-detail-card__tagline {
    font-size: 13px; color: var(--alc-alt-tagline-color, #64748b); margin: 2px 0 0; line-height: 1.45;
}
.alc-alt-detail-card__badges {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap;
    justify-content: flex-end;
}
.alc-alt-detail-card__rating {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12.5px; font-weight: 600; color: #b45309;
}

.alc-alt-detail-card__body { padding: 16px 24px; }
.alc-alt-detail-card__glance {
    font-size: 13.5px; color: #475569; margin: 0 0 16px; line-height: 1.6;
}

.alc-alt-detail-card__cols {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px; margin-bottom: 16px;
}
.alc-alt-detail-card__col h4 {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.05em; color: #64748b;
    margin: 0 0 10px; font-weight: 700;
}
.alc-alt-detail-card__col h4 svg { flex-shrink: 0; }

.alc-alt-pros-list, .alc-alt-features-list {
    list-style: none; margin: 0; padding: 0;
}
.alc-alt-pros-list li, .alc-alt-features-list li {
    position: relative;
    font-size: 13px; color: #334155;
    padding: 4px 0 4px 18px; line-height: 1.5;
}
.alc-alt-pros-list li::before {
    content: '';
    position: absolute; left: 0; top: 10px;
    width: 6px; height: 6px; border-radius: 50%;
    background: #059669;
}
.alc-alt-features-list li::before {
    content: '';
    position: absolute; left: 0; top: 10px;
    width: 6px; height: 6px; border-radius: 50%;
    background: #6366f1;
}

.alc-alt-detail-card__cats { display: flex; flex-wrap: wrap; gap: 6px; }

.alc-alt-detail-card__footer {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 24px; border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

/* ── COMPACT CARDS (GRID) ── */
.alc-alt-cards-section { margin-bottom: var(--alc-alt-spacing, 32px); }

.alc-alt-cards-grid {
    display: grid;
    grid-template-columns: repeat(var(--alc-alt-cols, 3), 1fr);
    gap: 12px;
}

.alc-alt-card {
    display: flex; flex-direction: column;
    background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: var(--alc-alt-radius, 12px);
    padding: 16px; text-decoration: none; color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.alc-alt-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    text-decoration: none; color: inherit;
    transform: translateY(-2px);
}

.alc-alt-card__head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.alc-alt-card__logo {
    width: 40px; height: 40px; border-radius: 10px;
    object-fit: cover; flex-shrink: 0;
    background: #f8fafc; border: 1px solid #f1f5f9;
}
.alc-alt-card__logo-ph {
    width: 40px; height: 40px; border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
}
.alc-alt-card__title-wrap { flex: 1; min-width: 0; }
.alc-alt-card__name {
    font-size: 13.5px; font-weight: 700; color: #0f172a;
    line-height: 1.3; margin-bottom: 2px;
}
.alc-alt-card__tagline {
    display: block; font-size: 11.5px; color: var(--alc-alt-tagline-color, #64748b); line-height: 1.4;
}
.alc-alt-rank {
    font-size: 10.5px; font-weight: 700; color: #64748b;
    background: #f1f5f9; padding: 2px 8px; border-radius: 12px;
    flex-shrink: 0; white-space: nowrap;
}

.alc-alt-card__meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.alc-alt-card__meta .alc-alt-pill { font-size: 10.5px; padding: 2px 8px; }

.alc-alt-card__cats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.alc-alt-card__cats .alc-alt-chip { font-size: 10.5px; padding: 2px 7px; border-radius: 4px; }

/* ── LOAD MORE ── */
.alc-alt-load-more-wrap { text-align: center; padding-top: 24px; }
.alc-alt-load-more { min-width: 220px; }
.alc-alt-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid #e2e8f0; border-top-color: #3b82f6;
    border-radius: 50%; animation: alc-alt-spin 0.6s linear infinite;
}
@keyframes alc-alt-spin { to { transform: rotate(360deg); } }

/* ── FAQ ── */
.alc-alt-faq { margin-bottom: var(--alc-alt-spacing, 32px); }
.alc-alt-faq-list { display: flex; flex-direction: column; gap: 8px; }
.alc-alt-faq-item {
    background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: var(--alc-alt-radius, 12px);
    overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.alc-alt-faq-item[open] { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.alc-alt-faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; font-size: 14px; font-weight: 600; color: #0f172a;
    cursor: pointer; user-select: none; list-style: none;
    transition: background 0.15s; gap: 12px;
}
.alc-alt-faq-q:hover { background: #f8fafc; }
.alc-alt-faq-q::-webkit-details-marker { display: none; }
.alc-alt-faq-chevron {
    flex-shrink: 0; color: #94a3b8; transition: transform 0.25s ease;
}
.alc-alt-faq-item[open] .alc-alt-faq-chevron { transform: rotate(180deg); }
.alc-alt-faq-a {
    padding: 0 20px 18px; font-size: 13.5px; color: #475569; line-height: 1.7;
}

/* ── SINGLE PAGE SEARCH BAR ── */
.alc-alt-single-search {
    display: flex; align-items: center; gap: 0;
    background: #ffffff; border: 1px solid #e2e8f0;
    border-radius: 14px; padding: 6px 6px 6px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: var(--alc-alt-spacing, 32px);
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.alc-alt-single-search:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.08), 0 2px 8px rgba(0,0,0,0.04);
}
.alc-alt-single-search__icon {
    color: #94a3b8; flex-shrink: 0; pointer-events: none;
}
.alc-alt-single-search__input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 15px; color: #1e293b; padding: 10px 12px;
    min-width: 0; font-family: inherit;
}
.alc-alt-single-search__input::placeholder { color: #94a3b8; }
.alc-alt-single-search__voice {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: none; background: transparent;
    color: #94a3b8; cursor: pointer; border-radius: 8px;
    transition: color 0.15s, background 0.15s; flex-shrink: 0;
}
.alc-alt-single-search__voice:hover { color: #64748b; background: #f1f5f9; }
.alc-alt-single-search__voice--active { color: #ef4444; }
.alc-alt-single-search__slash {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px;
    background: #f1f5f9; border: 1px solid #e2e8f0;
    font-size: 12px; font-weight: 600; color: #94a3b8;
    flex-shrink: 0; margin-right: 6px;
}
.alc-alt-single-search__find {
    display: flex; align-items: center; justify-content: center;
    padding: 10px 24px; border: none; border-radius: 10px;
    background: #334155; color: #ffffff;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background 0.2s; flex-shrink: 0; font-family: inherit;
}
.alc-alt-single-search__find:hover { background: #1e293b; }

/* ── CTA BAR ── */
.alc-alt-cta-bar {
    display: flex; flex-direction: column; align-items: center;
    gap: 14px; padding: 32px 0; text-align: center;
    border-top: 1px solid #e2e8f0;
}
.alc-alt-cta-text {
    font-size: 15px; color: #64748b; margin: 0; font-weight: 500;
}
.alc-alt-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ── INDEX: SEARCH ── */
.alc-alt-idx-search { position: relative; width: 100%; max-width: 480px; }
.alc-alt-idx-search__icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--alc-alt-hero-muted, rgba(255,255,255,0.85)); pointer-events: none;
}
.alc-alt-idx-search__input {
    width: 100%; padding: 12px 52px 12px 42px;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: var(--alc-alt-hero-text, #ffffff);
    font-size: 14px; outline: none;
    transition: all 0.2s; box-sizing: border-box;
}
.alc-alt-idx-search__input::placeholder { color: var(--alc-alt-hero-muted, rgba(255,255,255,0.85)); opacity: 1; }
.alc-alt-idx-search__input:focus { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); }

.alc-alt-hero--minimal .alc-alt-idx-search__input {
    background: #f8fafc; border-color: #e2e8f0; color: #1e293b;
}
.alc-alt-hero--minimal .alc-alt-idx-search__input::placeholder { color: #94a3b8; }
.alc-alt-hero--minimal .alc-alt-idx-search__input:focus {
    border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
    background: #fff;
}
.alc-alt-hero--minimal .alc-alt-idx-search__icon { color: #94a3b8; }
.alc-alt-idx-search__spinner { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); }

/* ── INDEX: GRID ── */
.alc-alt-idx-grid-section { margin-bottom: var(--alc-alt-spacing, 32px); }
.alc-alt-idx-grid {
    display: grid;
    grid-template-columns: repeat(var(--alc-alt-idx-cols, 4), 1fr);
    gap: 12px;
}

.alc-alt-idx-card {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--alc-alt-radius, 12px);
    padding: 20px 16px 16px; text-decoration: none; color: inherit;
    transition: all 0.2s ease; gap: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.alc-alt-idx-card:hover {
    border-color: #cbd5e1; box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    transform: translateY(-2px); text-decoration: none; color: inherit;
}

.alc-alt-idx-card__logo {
    width: 48px; height: 48px; border-radius: 12px;
    object-fit: cover; background: #f8fafc; border: 1px solid #f1f5f9;
}
.alc-alt-idx-card__logo-ph {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
}
.alc-alt-idx-card__name { font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.3; }
.alc-alt-idx-card__tagline { display: block; font-size: 12px; color: var(--alc-alt-tagline-color, #64748b); line-height: 1.35; }
.alc-alt-idx-card__footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.alc-alt-idx-card__count { font-size: 11.5px; font-weight: 600; color: #64748b; }
.alc-alt-idx-card__cats { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 6px; }
.alc-alt-idx-card__cats .alc-alt-chip { font-size: 10.5px; padding: 2px 7px; border-radius: 4px; }

/* ── INDEX: EMPTY ── */
.alc-alt-idx-empty {
    grid-column: 1 / -1; display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    text-align: center; padding: 60px 20px; color: #94a3b8;
}
.alc-alt-idx-empty p { font-size: 15px; font-weight: 600; color: #64748b; margin: 0; }
.alc-alt-idx-empty span { font-size: 13px; }

/* ── INDEX: FUZZY BANNER ── */
.alc-alt-idx-fuzzy-banner {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px; margin-bottom: 4px;
    background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 10px;
    font-size: 13.5px; color: #4338ca; font-weight: 500; line-height: 1.4;
}
.alc-alt-idx-fuzzy-banner svg { flex-shrink: 0; }
.alc-alt-idx-fuzzy-banner strong { font-weight: 700; }

/* ── PAGINATION ── */
.alc-alt-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 24px 0;
}
.alc-alt-pagination__nums { display: flex; align-items: center; gap: 4px; }
.alc-alt-page-num {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    font-size: 13px; font-weight: 600; color: #64748b;
    border-radius: 8px; text-decoration: none; transition: all 0.15s;
}
.alc-alt-page-num:hover { background: #f1f5f9; color: #334155; text-decoration: none; }
.alc-alt-page-num--active { background: #3b82f6; color: #fff; pointer-events: none; }
.alc-alt-page-dots { font-size: 14px; color: #cbd5e1; padding: 0 2px; }
.alc-alt-page-btn { font-size: 13px; }

/* ── RESPONSIVE ── */
/* ── CATEGORY FILTER ── */
.alc-alt-cat-filter {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-bottom: var(--alc-alt-spacing, 24px); padding: 0 4px;
}
.alc-alt-cat-filter__btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
    border: 1px solid #e2e8f0; background: #fff; color: #64748b;
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.alc-alt-cat-filter__btn:hover { border-color: #cbd5e1; color: #334155; }
.alc-alt-cat-filter__btn--active {
    background: #3b82f6; color: #fff; border-color: #3b82f6;
}
.alc-alt-cat-filter__count {
    font-size: 10px; background: rgba(0,0,0,0.08); border-radius: 10px;
    padding: 1px 6px; font-weight: 700;
}
.alc-alt-cat-filter__btn--active .alc-alt-cat-filter__count {
    background: rgba(255,255,255,0.25);
}

/* ── RELATED ALTERNATIVES (internal linking) ── */
.alc-alt-related {
    margin-top: var(--alc-alt-spacing, 32px);
    padding: 24px; background: #fff; border-radius: var(--alc-alt-radius, 12px);
    border: 1px solid #e2e8f0;
}
.alc-alt-related__title {
    font-size: 16px; font-weight: 700; color: #1e293b; margin: 0 0 16px;
}
.alc-alt-related__grid {
    display: grid; grid-template-columns: repeat(var(--alc-rel-cols, 4), 1fr); gap: 10px;
}
.alc-alt-related__link {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-radius: 10px; border: 1px solid #f1f5f9; background: #f8fafc;
    text-decoration: none; color: #1e293b; font-size: 13px; font-weight: 600;
    transition: all 0.15s;
}
.alc-alt-related__link:hover {
    border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none; color: #1e293b;
}
.alc-alt-related__link img {
    width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex-shrink: 0;
}
.alc-alt-related__link-ph {
    width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}

/* ── PRICING COMPARISON MINI TABLE ── */
.alc-alt-price-compare {
    margin-top: 12px; border-top: 1px solid #f1f5f9; padding-top: 12px;
}
.alc-alt-price-compare__title {
    font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 8px;
}
.alc-alt-price-compare__table {
    width: 100%; border-collapse: collapse; font-size: 12.5px;
}
.alc-alt-price-compare__table th {
    text-align: left; font-weight: 600; color: #64748b; padding: 4px 8px;
    border-bottom: 1px solid #f1f5f9; font-size: 11px;
}
.alc-alt-price-compare__table td {
    padding: 4px 8px; color: #334155;
}
.alc-alt-price-compare__table tr:nth-child(even) td {
    background: #f8fafc;
}

/* ── SEARCH BAR ROTATING PLACEHOLDER ── */
.alc-alt-idx-search { position: relative; }
.alc-alt-idx-search__rotating {
    position: absolute; left: 42px; top: 50%; transform: translateY(-50%);
    pointer-events: none; font-size: 14px; color: #94a3b8;
    white-space: nowrap; overflow: hidden;
    transition: opacity 0.3s;
}
.alc-alt-idx-search__input:focus ~ .alc-alt-idx-search__rotating,
.alc-alt-idx-search__input:not(:placeholder-shown) ~ .alc-alt-idx-search__rotating {
    opacity: 0;
}
.alc-alt-idx-search__voice {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    cursor: pointer; background: none; border: none; padding: 4px;
    color: #94a3b8; transition: color 0.15s;
}
.alc-alt-idx-search__voice:hover { color: #3b82f6; }
.alc-alt-idx-search__voice--active { color: #ef4444; }

/* ── CROSS-LINKS ── */
.alc-alt-cross-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #3b82f6; text-decoration: none;
    padding: 6px 12px; border-radius: 8px; background: #eff6ff;
    border: 1px solid #bfdbfe; transition: all 0.15s; margin-top: 8px;
}
.alc-alt-cross-link:hover { background: #dbeafe; text-decoration: none; color: #2563eb; }

@media (max-width: 768px) {
    .alc-alt-hero { padding: 28px 22px; }
    .alc-alt-hero__title { font-size: 22px; }
    .alc-alt-hero__title--center { font-size: 24px; }
    .alc-alt-hero__top { flex-direction: column; align-items: center; text-align: center; }
    .alc-alt-hero__pills { justify-content: center; flex-wrap: wrap; }
    .alc-alt-hero__actions { justify-content: center; flex-wrap: wrap; }
    .alc-alt-detail-card__header { flex-direction: column; }
    .alc-alt-detail-card__badges { justify-content: flex-start; flex-wrap: wrap; }
    .alc-alt-detail-card__cols { grid-template-columns: 1fr; gap: 16px; }
    .alc-alt-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .alc-alt-idx-grid { grid-template-columns: repeat(2, 1fr); }
    .alc-alt-stats { grid-template-columns: repeat(2, 1fr); }
    .alc-alt-detail-card__header,
    .alc-alt-detail-card__body { padding-left: 20px; padding-right: 20px; }
    .alc-alt-detail-card__rank-stripe { padding-left: 20px; }
    .alc-alt-detail-card__footer { padding-left: 20px; padding-right: 20px; flex-wrap: wrap; }
    .alc-alt-cat-filter { gap: 6px; }
    .alc-alt-related__grid { grid-template-columns: repeat(var(--alc-rel-cols-m, 2), 1fr); }
    .alc-alt-container { overflow-x: hidden; }
    .alc-alt-idx-search { max-width: 100%; }
    .alc-alt-idx-search__input { width: 100%; }
}

/* ── LOGO WATERMARK (toggle via .alc-alt-page--logo-glow) ── */
/* Large faded ghost of the logo on the right side of each card */
.alc-alt-page--logo-glow .alc-alt-card,
.alc-alt-page--logo-glow .alc-alt-idx-card,
.alc-alt-page--logo-glow .alc-alt-detail-card {
    position: relative; overflow: hidden;
}
.alc-alt-page--logo-glow .alc-alt-card__watermark,
.alc-alt-page--logo-glow .alc-alt-idx-card__watermark,
.alc-alt-page--logo-glow .alc-alt-detail-card__watermark {
    position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
    width: 100px; height: 100px; object-fit: contain;
    opacity: 0.06; pointer-events: none; z-index: 0;
    filter: grayscale(30%);
}
.alc-alt-page--logo-glow .alc-alt-detail-card__watermark {
    width: 140px; height: 140px; right: 16px; opacity: 0.05;
}
/* Hide watermarks when toggle is off */
.alc-alt-card__watermark,
.alc-alt-idx-card__watermark,
.alc-alt-detail-card__watermark {
    display: none;
}
.alc-alt-page--logo-glow .alc-alt-card__watermark,
.alc-alt-page--logo-glow .alc-alt-idx-card__watermark,
.alc-alt-page--logo-glow .alc-alt-detail-card__watermark {
    display: block;
}

@media (max-width: 480px) {
    .alc-alt-container { padding: 0 12px; }
    .alc-alt-hero { padding: 22px 16px; border-radius: 12px; }
    .alc-alt-hero__title { font-size: 18px; word-break: break-word; }
    .alc-alt-hero__title--center { font-size: 19px; }
    .alc-alt-hero__logo,
    .alc-alt-hero__logo-ph { width: 44px; height: 44px; }
    .alc-alt-cards-grid { grid-template-columns: 1fr; }
    .alc-alt-idx-grid { grid-template-columns: 1fr; }
    .alc-alt-detail-card__footer { flex-direction: column; align-items: stretch; }
    .alc-alt-detail-card__footer .alc-alt-btn { justify-content: center; }
    .alc-alt-cta-actions { flex-direction: column; align-items: stretch; }
    .alc-alt-cta-actions .alc-alt-btn { justify-content: center; }
    .alc-alt-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .alc-alt-stat { padding: 14px 10px; }
    .alc-alt-hero__pills { gap: 6px; }
    .alc-alt-pill { font-size: 11px; padding: 3px 8px; }
    .alc-alt-related__grid { grid-template-columns: 1fr; }
    .alc-alt-pagination { flex-wrap: wrap; gap: 6px; }
    .alc-alt-idx-search__rotating { display: none; }
}
