/* =======================
   SEO PAGE
======================= */

/* Hero visual */
.seo-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.seo-rank-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    padding: 28px 32px;
    width: 100%;
    /*max-width: 440px;*/
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 350px;
    justify-content: center;
}

.seo-rank-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seo-rank-pos {
    font-size: 13px;
    font-weight: 700;
    color: var(--var-muted);
    width: 20px;
    text-align: right;
    flex-shrink: 0;
}

.seo-rank-bar {
    height: 12px;
    border-radius: 6px;
    flex: 1;
    transition: width 0.6s ease;
}

.seo-rank-1 .seo-rank-bar { background: var(--var-blue-primary); }
.seo-rank-2 .seo-rank-bar { background: var(--var-blue-secondary); opacity: 0.85; }
.seo-rank-3 .seo-rank-bar { background: var(--var-blue-secondary); opacity: 0.55; }
.seo-rank-rest .seo-rank-bar { background: var(--var-border-color); }

.seo-rank-pct {
    font-size: 12px;
    font-weight: 600;
    color: var(--var-muted);
    width: 36px;
    flex-shrink: 0;
    text-align: right;
}

.seo-rank-1 .seo-rank-pct { color: var(--var-blue-secondary); }

.seo-rank-caption {
    font-size: 11px;
    color: var(--var-muted);
    text-align: center;
    margin: 4px 0 0;
}

/* Pillar cards (Vad är SEO) */
.seo-pillar-card {
    background: var(--var-blue-lighter-dark-tech);
    border: 1px solid var(--var-border-color);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px var(--var-shadow);
}

.seo-pillar-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: var(--var-blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F2F6FF;
}

.seo-pillar-title {
    font-size: 20px !important;
    font-weight: 600;
    color: var(--var-text-headers);
}

.seo-pillar-text {
    font-size: 15px;
    color: var(--var-text-soft);
    line-height: 1.6;
    margin: 0;
}

/* Benefit list */
.seo-benefit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 8px 0 0;
}

.seo-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--var-text-soft);
    line-height: 1.5;
}

.seo-check {
    color: var(--var-blue-secondary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Stats grid */
.seo-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.seo-stat-card {
    background: var(--var-blue-lighter-dark-tech);
    border: 1px solid var(--var-border-color);
    border-radius: 14px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.seo-stat-card:hover {
    transform: translateY(-3px);
}

.seo-stat-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--var-blue-secondary);
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.seo-stat-label {
    font-size: 13px;
    color: var(--var-text-soft);
    line-height: 1.4;
}

/* Pricing */
.seo-pricing-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.seo-pricing-card {
    background: var(--var-blue-lighter-dark-tech);
    border: 1px solid var(--var-border-color);
    border-radius: 20px;
    padding: 32px 28px;
    flex: 1 1 340px;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.seo-pricing-card.seo-pricing-featured {
    border-color: var(--var-blue-primary);
    box-shadow: 0 0 0 1px var(--var-blue-primary), 0 8px 40px rgba(31, 75, 153, 0.18);
}

.seo-pricing-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--var-blue-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.seo-pricing-header {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seo-pricing-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--var-blue-secondary);
    text-transform: uppercase;
}

.seo-pricing-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
}

.seo-price-num {
    font-size: 42px;
    font-weight: 700;
    color: var(--var-text-headers);
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.seo-price-unit {
    font-size: 16px;
    color: var(--var-muted);
    font-weight: 500;
}

.seo-pricing-tagline {
    font-size: 14px;
    color: var(--var-text-soft);
    line-height: 1.5;
    margin: 0;
}

.seo-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    border-top: 1px solid var(--var-border-color);
    padding-top: 20px;
}

.seo-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    color: var(--var-text-soft);
    line-height: 1.4;
}

.seo-feat-check {
    color: var(--var-blue-secondary);
    font-weight: 700;
    flex-shrink: 0;
}

.seo-feat-missing {
    opacity: 0.4;
}

.seo-feat-missing span {
    color: var(--var-muted);
    flex-shrink: 0;
}

.seo-pricing-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: auto;
}

/* Process steps */
.seo-process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.seo-process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(10% + 20px);
    right: calc(10% + 20px);
    height: 1px;
    background: var(--var-border-color);
    z-index: 0;
}

.seo-process-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.seo-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--var-blue-lighter-dark-tech);
    border: 2px solid var(--var-blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--var-blue-secondary);
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

.seo-step-title {
    font-size: 16px !important;
    font-weight: 600;
    color: var(--var-text-headers);
    margin: 0;
}

.seo-step-text {
    font-size: 13px !important;
    color: var(--var-text-soft);
    line-height: 1.55;
    margin: 0;
}

/* FAQ */
.seo-faq {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--var-border-color);
    border-radius: 16px;
    overflow: hidden;
}

.seo-faq-item {
    border-bottom: 1px solid var(--var-border-color);
}

.seo-faq-item:last-child {
    border-bottom: none;
}

.seo-faq-q {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--var-text-headers);
    text-align: left;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.seo-faq-q:hover {
    background: var(--var-hover-bg);
    color: var(--var-blue-secondary);
}

.seo-faq-chevron {
    font-size: 18px;
    color: var(--var-muted);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    line-height: 1;
}

.seo-faq-item.open .seo-faq-chevron {
    transform: rotate(180deg);
}

.seo-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease, padding 0.2s ease;
    padding: 0 24px;
}

.seo-faq-item.open .seo-faq-a {
    max-height: 300px;
    padding: 0 24px 20px;
}

.seo-faq-a p {
    font-size: 14px;
    color: var(--var-text-soft);
    line-height: 1.65;
    margin: 0;
}

/* Light mode adjustments */
html[data-theme="light"] .seo-rank-card,
html[data-theme="light"] .seo-pillar-card,
html[data-theme="light"] .seo-stat-card,
html[data-theme="light"] .seo-pricing-card,
html[data-theme="light"] .seo-faq {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Responsive */
@media (max-width: 1100px) {
    .seo-process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .seo-process-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .seo-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .seo-process-steps {
        grid-template-columns: 1fr 1fr;
    }

    .seo-rank-card {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .seo-process-steps {
        grid-template-columns: 1fr;
    }

    .seo-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .seo-pricing-card {
        max-width: 100%;
    }
}

/* =======================
   SERP MOCKUP (hero)
======================= */
.seo-serp-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
}

.seo-serp-mock {
    border: 1px solid #dadce0;
    border-radius: 14px;
    overflow: hidden;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14);
}

.seo-serp-browser-bar {
    border-bottom: 1px solid var(--var-border-color);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--var-blue-lighter-dark-tech);
}

.seo-serp-dot-r,
.seo-serp-dot-y,
.seo-serp-dot-g {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.seo-serp-dot-r { background: #ff5f57; }
.seo-serp-dot-y { background: #febc2e; }
.seo-serp-dot-g { background: #28c840; }

.seo-serp-url-bar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seo-serp-body {
    background-color: white;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seo-serp-result {
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid transparent;
}

.seo-serp-top {
    background: rgba(31, 75, 153, 0.07);
    border-color: rgba(31, 75, 153, 0.2);
}

.seo-serp-dim {
    opacity: 0.45;
}

.seo-serp-crumb {
    font-size: 10px;
    color: #235e17;
}

.seo-serp-title-link {
    font-size: 14px;
    font-weight: 600;
    color: #1a0dab;
}

.seo-serp-grey {
    color: #1a0dab !important;
}

.seo-serp-snippet {
    font-size: 11px;
    color: black;
    line-height: 1.5;
}

.seo-serp-grey-text {
    color: #4d5156 !important;
}

.seo-serp-stars {
    font-size: 11px;
    color: #f5a623;
    margin-top: 1px;
}

.seo-serp-stars span {
    color: black;
    font-size: 10px;
}

/* =======================
   TECH SEO VISUAL COL + MINI GRID
======================= */
.seo-tech-visual-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.seo-cwv-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.seo-tech-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.seo-tech-mini-card {
    background: var(--var-blue-lighter-dark-tech);
    border: 1px solid var(--var-border-color);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: transform 0.18s ease;
}

.seo-tech-mini-card:hover {
    transform: translateY(-2px);
}

.seo-tech-mini-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.seo-tech-mini-icon {
    font-size: 16px;
    line-height: 1;
}

.seo-tech-mini-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

.seo-tech-badge-green {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.25);
}

.seo-tech-badge-blue {
    background: rgba(74, 144, 226, 0.14);
    color: var(--var-blue-secondary);
    border: 1px solid rgba(74, 144, 226, 0.22);
}

.seo-tech-mini-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--var-text-headers);
    font-family: 'Inter', sans-serif;
    line-height: 1.1;
}

.seo-tech-green {
    color: #27ae60 !important;
}

.seo-tech-mini-label {
    font-size: 11px;
    color: var(--var-muted);
    line-height: 1.35;
}

.seo-tech-mini-bar-wrap {
    height: 4px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

html[data-theme="light"] .seo-tech-mini-bar-wrap {
    background: rgba(0, 0, 0, 0.07);
}

.seo-tech-mini-bar {
    height: 100%;
    border-radius: 2px;
}

.seo-tech-bar-blue {
    background: var(--var-blue-secondary);
}

/* =======================
   LOCAL SEO VISUAL
======================= */
.seo-local-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.seo-map-mock {
    background: #0e2040;
    border: 1px solid var(--var-border-color);
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    height: 240px;
    position: relative;
}

.seo-map-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #152d4a 0%, #0e1f38 60%, #172f4e 100%);
}

.seo-map-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(74, 144, 226, 0.07) 30px),
        repeating-linear-gradient(90deg, transparent, transparent 29px, rgba(74, 144, 226, 0.07) 30px);
}

.seo-map-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(148deg, transparent 28%, rgba(74, 144, 226, 0.11) 28%, rgba(74, 144, 226, 0.11) 29%, transparent 29%),
        linear-gradient(218deg, transparent 38%, rgba(74, 144, 226, 0.09) 38%, rgba(74, 144, 226, 0.09) 39%, transparent 39%),
        linear-gradient(90deg, transparent 18%, rgba(74, 144, 226, 0.09) 18%, rgba(74, 144, 226, 0.09) 20%, transparent 20%);
}

.seo-map-pin {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.seo-map-pin > span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    position: relative;
}

.seo-map-pin > span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.seo-pin-1 { top: 28%; left: 40%; }
.seo-pin-2 { top: 52%; left: 60%; }
.seo-pin-3 { top: 62%; left: 24%; }

.seo-pin-1 > span { background: var(--var-blue-primary); }
.seo-pin-1 > span::after { border-top: 7px solid var(--var-blue-primary); }

.seo-pin-2 > span,
.seo-pin-3 > span { background: rgba(90, 110, 140, 0.85); }
.seo-pin-2 > span::after,
.seo-pin-3 > span::after { border-top: 7px solid rgba(90, 110, 140, 0.85); }

.seo-pin-card {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--var-blue-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.seo-pin-card::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--var-blue-primary);
}

.seo-gmb-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px 18px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seo-gmb-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--var-text-headers);
}

.seo-gmb-stars {
    font-size: 13px;
    color: #8a5800;
}

.seo-gmb-cat {
    font-size: 12px;
    color: var(--var-muted);
}

.seo-gmb-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.seo-gmb-btn {
    background: rgba(31, 75, 153, 0.15);
    border: 1px solid rgba(74, 144, 226, 0.25);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--var-blue-secondary);
    cursor: default;
}

/* =======================
   CORE WEB VITALS CARD
======================= */
.seo-cwv-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.seo-cwv-card {
    background: var(--var-blue-lighter-dark-tech);
    border: 1px solid var(--var-border-color);
    border-radius: 16px;
    padding: 28px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.seo-cwv-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--var-text-headers);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid var(--var-border-color);
    padding-bottom: 14px;
}

.seo-cwv-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seo-cwv-label {
    font-size: 13px;
    color: var(--var-text-soft);
    font-weight: 500;
}

.seo-cwv-bar-wrap {
    height: 8px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    overflow: hidden;
}

html[data-theme="light"] .seo-cwv-bar-wrap {
    background: rgba(0, 0, 0, 0.07);
}

.seo-cwv-bar {
    height: 100%;
    border-radius: 4px;
}

.seo-cwv-val {
    font-size: 12px;
    font-weight: 600;
    color: #27ae60;
    align-self: flex-end;
}

.seo-cwv-score {
    display: flex;
    align-items: baseline;
    gap: 10px;
    border-top: 1px solid var(--var-border-color);
    padding-top: 16px;
}

.seo-cwv-score-num {
    font-size: 40px;
    font-weight: 700;
    color: #27ae60;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.seo-cwv-score-label {
    font-size: 14px;
    color: var(--var-muted);
    font-weight: 500;
}

/* =======================
   KEYWORD TABLE
======================= */
.seo-content-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.seo-kw-card {
    background: var(--var-blue-lighter-dark-tech);
    border: 1px solid var(--var-border-color);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.seo-kw-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--var-text-headers);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--var-border-color);
}

.seo-kw-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(74, 144, 226, 0.07);
}

.seo-kw-row:last-child {
    border-bottom: none;
}

.seo-kw-term {
    flex: 1;
    font-size: 13px;
    color: var(--var-text-soft);
    font-weight: 500;
}

.seo-kw-vol {
    font-size: 11px;
    color: var(--var-muted);
    width: 56px;
    text-align: right;
    flex-shrink: 0;
}

.seo-kw-pos {
    font-size: 12px;
    font-weight: 700;
    min-width: 42px;
    text-align: center;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.seo-pos-1 {
    background: rgba(39, 174, 96, 0.14);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.28);
}

.seo-pos-2 {
    background: rgba(74, 144, 226, 0.14);
    color: var(--var-blue-secondary);
    border: 1px solid rgba(74, 144, 226, 0.25);
}

.seo-pos-3 {
    background: rgba(74, 144, 226, 0.09);
    color: var(--var-blue-secondary);
    border: 1px solid rgba(74, 144, 226, 0.18);
    opacity: 0.85;
}

.seo-pos-up {
    background: rgba(245, 166, 35, 0.12);
    color: #f5a623;
    border: 1px solid rgba(245, 166, 35, 0.25);
}

/* =======================
   GROWTH CHART
======================= */
.seo-growth-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.seo-growth-card {
    background: var(--var-blue-lighter-dark-tech);
    border: 1px solid var(--var-border-color);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.seo-growth-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--var-text-headers);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.seo-growth-chart {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seo-growth-line {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 110px;
    border-bottom: 1px solid var(--var-border-color);
    border-left: 1px solid var(--var-border-color);
    padding: 6px 4px 0 4px;
}

.seo-growth-bar {
    flex: 1;
    background: var(--var-blue-primary);
    opacity: 0.55;
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    transition: opacity 0.2s ease;
}

.seo-growth-bar:hover {
    opacity: 0.85;
}

.seo-growth-peak {
    background: var(--var-blue-secondary) !important;
    opacity: 1 !important;
}

.seo-growth-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--var-muted);
    padding: 0 4px;
}

.seo-growth-note {
    font-size: 11px;
    color: var(--var-muted);
    font-style: italic;
    text-align: center;
}

/* =======================
   SEO VS ADS COMPARE TABLE
======================= */
.seo-compare-table {
    display: flex;
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--var-border-color);
    border-radius: 16px;
    overflow: hidden;
}

.seo-compare-col {
    flex: 1;
    padding: 28px 24px;
}

.seo-compare-ads {
    border-right: 1px solid var(--var-border-color);
    background: var(--var-blue-lighter-dark-tech);
}

.seo-compare-seo {
    background: rgba(31, 75, 153, 0.07);
}

.seo-compare-head {
    font-size: 16px;
    font-weight: 700;
    color: var(--var-text-headers);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--var-border-color);
}

.seo-compare-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.seo-compare-item {
    font-size: 13px;
    line-height: 1.45;
    padding: 2px 0;
}

.seo-compare-ok {
    color: var(--var-text-soft);
}

.seo-compare-bad {
    color: var(--var-muted);
    opacity: 0.7;
}

/* =======================
   MISTAKES GRID
======================= */
.seo-mistakes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.seo-mistake-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-mistake-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px var(--var-shadow);
}

.seo-mistake-num {
    font-size: 28px;
    font-weight: 700;
    color: rgba(74, 144, 226);
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.seo-mistake-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--var-text-headers);
    margin: 0;
    line-height: 1.35;
}

.seo-mistake-text {
    font-size: 14px;
    color: var(--var-text-soft);
    line-height: 1.6;
    margin: 0;
}

/* =======================
   SERP CYCLING ANIMATION
======================= */
#serp-body {
    transition: opacity 0.34s ease, transform 0.34s ease;
}

.serp-fade-out {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
}

#serp-query {
    display: inline;
}

#serp-query.typing::after {
    content: '|';
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    animation: serp-cursor 0.6s steps(1) infinite;
    margin-left: 1px;
}

@keyframes serp-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =======================
   LIGHT MODE ADDITIONS
======================= */
html[data-theme="light"] .seo-serp-url-bar {
    color: rgba(0, 0, 0, 0.75);
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .seo-serp-mock,
html[data-theme="light"] .seo-gmb-card,
html[data-theme="light"] .seo-cwv-card,
html[data-theme="light"] .seo-kw-card,
html[data-theme="light"] .seo-growth-card,
html[data-theme="light"] .seo-mistake-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] .seo-map-mock {
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .seo-compare-ads {
    background: #f4f7fb;
}

html[data-theme="light"] .seo-compare-seo {
    background: rgba(31, 75, 153, 0.04);
}

/* Competitor SERP results: replace opacity dimming with grey text (opacity kills contrast) */
html[data-theme="light"] .seo-serp-dim { opacity: 1; }
html[data-theme="light"] .seo-serp-dim .seo-serp-crumb { color: #4d5e7a; }
html[data-theme="light"] .seo-serp-dim .seo-serp-title-link { color: #4d5e7a !important; }
html[data-theme="light"] .seo-serp-dim .seo-serp-snippet { color: #4a5467 !important; }

/* Green values on light card backgrounds (#eff3fa) */
html[data-theme="light"] .seo-cwv-val { color: #146e38; }
html[data-theme="light"] .seo-cwv-score-num { color: #146e38; }
html[data-theme="light"] .seo-cwv-score-label { color: #3d4455; }
html[data-theme="light"] .seo-tech-green { color: #146e38 !important; }

/* Badge and label text on light card backgrounds */
html[data-theme="light"] .seo-tech-badge-green { color: #146e38; }
html[data-theme="light"] .seo-tech-badge-blue { color: #1a4d96; }
html[data-theme="light"] .seo-tech-mini-label { color: #404c64; }

/* Step numbers on light card backgrounds */
html[data-theme="light"] .seo-step-num { color: #1F4B99; }

/* SERP star row on white background */
html[data-theme="light"] .seo-serp-stars span { color: black; }

/* =======================
   WHITE CARD TEXT OVERRIDES
   (all cards with bg:#fff need dark text regardless of theme)
======================= */

/* Rank card */
.seo-rank-card .seo-rank-pos,
.seo-rank-card .seo-rank-pct,
.seo-rank-card .seo-rank-caption {
    color: #4d5e7a;
}
.seo-rank-card .seo-rank-1 .seo-rank-pct { color: var(--var-blue-primary); }
.seo-rank-card .seo-rank-rest .seo-rank-bar { background: #d4dcea; }

/* GMB card */
.seo-gmb-card .seo-gmb-name { color: #1a2740; }
.seo-gmb-card .seo-gmb-cat  { color: #4d5e7a; }
.seo-gmb-card .seo-gmb-btn  {
    background: rgba(31, 75, 153, 0.08);
    color: #1a4799;
    border-color: rgba(31, 75, 153, 0.18);
}

/* Mistake cards */
.seo-mistake-card .seo-mistake-title { color: #1a2740; }
.seo-mistake-card .seo-mistake-text  { color: #3a4a5e; }

/* =======================
   RESPONSIVE ADDITIONS
======================= */
@media (max-width: 1100px) {
    .seo-mistakes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .seo-compare-table {
        flex-direction: column;
    }

    .seo-compare-ads {
        border-right: none;
        border-bottom: 1px solid var(--var-border-color);
    }

    .seo-mistakes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .seo-serp-mock,
    .seo-gmb-card,
    .seo-kw-card,
    .seo-cwv-card,
    .seo-growth-card {
        max-width: 100%;
    }

    .seo-local-visual,
    .seo-content-visual,
    .seo-cwv-visual,
    .seo-growth-visual,
    .seo-serp-wrap {
        padding: 8px 0;
    }
}

@media (max-width: 520px) {
    .seo-mistakes-grid {
        grid-template-columns: 1fr;
    }

    .seo-compare-col {
        padding: 20px 16px;
    }
}
