﻿/* ==========================================================================
   TOPIC COMPETITION STATUS & STANDARD SCORE Premium Styles
   ========================================================================== */
.word-status-TD {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 4px;
    line-height: 1.3;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.easy-td {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12) !important;
}

.normal-td {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12) !important;
}

.hard-td {
    background: rgba(249, 115, 22, 0.12) !important;
    color: #f97316 !important;
    border: 1px solid rgba(249, 115, 22, 0.35) !important;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.12) !important;
}

.veryhard-td {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15) !important;
}

.staue-SC-TD {
    margin-top: -45px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.staue-SC-TD .pop-text {
    background: linear-gradient(135deg, #45b1ff 0%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 16px;
}

/* ==========================================================================
   QUANTUM TOPIC COMPETITION (TC) CYBER-GAUGE COMPONENT
   ========================================================================== */
.tc-quantum-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.tc-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tc-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid currentColor;
}

.tc-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
    animation: pulseDot 2s infinite ease-in-out;
}

.tc-tier-very-easy {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}

.tc-tier-easy {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
}

.tc-tier-normal {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}

.tc-tier-hard {
    color: #f97316;
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.35);
}

.tc-tier-very-hard {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.4);
}

.tc-quantum-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 18px;
    gap: 12px;
    height: 100%;
}

/* Gauge Arc Viewport */
.tc-gauge-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 195px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-svg-meter {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.tc-outer-guide {
    stroke: var(--border-color);
    stroke-width: 1.5;
    opacity: 0.6;
}

.tc-track-bg {
    opacity: 0.85;
}

.tc-tick-dot {
    fill: var(--text-muted);
    opacity: 0.45;
    transition: all 0.3s ease;
}

.tc-tick-dot.center-tick {
    fill: var(--text-muted);
    opacity: 0.75;
}

.tc-progress-arc {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.6s ease;
}

.tc-orb-outer, .tc-orb-inner {
    transition: cx 1.2s cubic-bezier(0.16, 1, 0.3, 1), cy 1.2s cubic-bezier(0.16, 1, 0.3, 1), fill 0.6s ease;
}

.tc-orb-outer {
    animation: orbPulse 2.5s infinite ease-in-out;
}

@keyframes orbPulse {
    0%, 100% { r: 8; opacity: 0.4; }
    50% { r: 11; opacity: 0.8; }
}

/* Central Hologram Matrix */
.tc-center-hologram {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    z-index: 5;
}

.tc-score-ambient-glow {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    filter: blur(34px);
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
    transition: background 0.6s ease;
}

.tc-score-caption {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.85;
    margin-bottom: 2px;
}

.tc-score-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.tc-score-number {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    text-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: color 0.4s ease;
}

.tc-score-max {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.55;
    margin-left: 3px;
}

.tc-score-tier-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 2px 10px;
    border-radius: 100px;
    margin-top: 4px;
    border: 1px solid currentColor;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* 5-Stage Segmented LED Indicator Strip */
.tc-led-segments-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    max-width: 300px;
    margin: 2px auto 6px;
    padding: 5px 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.tc-led-seg {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    opacity: 0.35;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tc-led-seg.is-passed {
    opacity: 0.7;
}

.tc-led-seg.is-active {
    opacity: 1;
    transform: scale(1.08);
}

.tc-seg-bar {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: var(--border-color);
    transition: all 0.3s;
}

.tc-led-seg.is-active .tc-seg-bar {
    height: 5px;
    box-shadow: 0 0 8px currentColor;
}

.tc-seg-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.tc-led-seg.is-active .tc-seg-label {
    color: var(--text-main);
}

.c-bg-very-easy { background: #10b981 !important; color: #10b981; }
.c-bg-easy { background: #22c55e !important; color: #22c55e; }
.c-bg-normal { background: #f59e0b !important; color: #f59e0b; }
.c-bg-hard { background: #f97316 !important; color: #f97316; }
.c-bg-very-hard { background: #ef4444 !important; color: #ef4444; }

/* Actionable SEO Advice Box */
.tc-action-advice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.tc-advice-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tc-advice-icon i, .tc-advice-icon svg {
    width: 15px;
    height: 15px;
}

.tc-advice-text {
    flex: 1;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
}

/* ==========================================================================
   QUANTUM STANDARD SCORE (SS) TARGET CORRIDOR COMPONENT
   ========================================================================== */
.ss-quantum-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.ss-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ss-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.ss-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 6px #3b82f6;
    animation: pulseDot 2s infinite ease-in-out;
}

.ss-quantum-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 18px;
    gap: 12px;
    height: 100%;
}

/* Gauge Dual-Arc Viewport */
.ss-gauge-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 195px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-svg-meter {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ss-outer-guide {
    stroke: var(--border-color);
    stroke-width: 1.5;
    opacity: 0.6;
}

.ss-track-bg, .ss-track-bg-inner {
    opacity: 0.85;
}

.ss-progress-arc-max, .ss-progress-arc-min {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ss-orb-max-outer, .ss-orb-max-inner, .ss-orb-min-outer, .ss-orb-min-inner {
    transition: cx 1.2s cubic-bezier(0.16, 1, 0.3, 1), cy 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ss-orb-max-outer {
    animation: orbPulse 2.5s infinite ease-in-out;
}

.ss-orb-min-outer {
    animation: orbPulse 2.5s infinite ease-in-out 0.5s;
}

/* Central Hologram Target Counter */
.ss-center-hologram {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    z-index: 5;
}

.ss-score-ambient-glow {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    filter: blur(34px);
    opacity: 0.18;
    background: #3b82f6;
    pointer-events: none;
    z-index: -1;
}

.ss-score-caption {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.85;
    margin-bottom: 2px;
}

.ss-score-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.ss-score-number {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #3b82f6;
    text-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.ss-score-max {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.55;
    margin-left: 3px;
}

.ss-score-range-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 100px;
    margin-top: 4px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ss-arrow {
    color: var(--primary-color);
    font-weight: 900;
}

/* Dual Benchmark Capsule Bar */
.ss-benchmark-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin: 2px auto 6px;
    padding: 6px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.ss-capsule {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ss-capsule-badge {
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 6px;
    border-radius: 6px;
    line-height: 1;
}

.amber-badge {
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.blue-badge {
    background: rgba(59, 130, 246, 0.14);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.ss-capsule-info {
    display: flex;
    flex-direction: column;
}

.ss-capsule-val {
    font-size: 15px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.1;
}

.ss-capsule-lbl {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ss-capsule-divider {
    color: var(--text-muted);
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-capsule-divider i, .ss-capsule-divider svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

/* Actionable Target Advice Box */
.ss-action-advice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ss-advice-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ss-advice-icon i, .ss-advice-icon svg {
    width: 15px;
    height: 15px;
}

.ss-advice-text {
    flex: 1;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
}

/* ==========================================================================
   QUANTUM SERP HYBRID INTELLIGENCE MATRIX COMPONENT
   ========================================================================== */
.serp-quantum-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.serp-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.serp-view-mode-tabs {
    display: inline-flex;
    align-items: center;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2px;
    gap: 2px;
}

.serp-mode-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.serp-mode-tab i, .serp-mode-tab svg {
    width: 12px;
    height: 12px;
}

.serp-mode-tab.active {
    background: var(--card-bg);
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-weight: 800;
}

.serp-ribbon-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
}

.serp-ribbon-pill.green-pill {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.35);
}

.serp-ribbon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
    animation: pulseDot 2s infinite ease-in-out;
}

.serp-ribbon-pill .lbl {
    opacity: 0.8;
}

.serp-ribbon-pill .val {
    font-weight: 900;
}

.serp-quantum-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.serp-apex-container {
    width: 100%;
}

.serp-apex-container .apexcharts-legend {
    padding: 0 4px 6px !important;
}

.serp-apex-container .apexcharts-legend-text,
.apexcharts-legend-text {
    color: var(--text-main) !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    transition: color 0.3s ease !important;
}

.serp-apex-container .apexcharts-legend-series {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
}

/* Top 5 Competitors Mini Radar Snapshot Ribbon */
.serp-radar-ribbon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.serp-radar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    position: relative;
    transition: all 0.2s ease;
}

.serp-radar-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sri-rank-badge {
    font-size: 10.5px;
    font-weight: 900;
    color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px 5px;
    line-height: 1;
}

.sri-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.sri-domain-line {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.sri-favicon {
    width: 13px;
    height: 13px;
    border-radius: 2px;
    flex-shrink: 0;
}

.sri-domain {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sri-metrics {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
}

.sri-score {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 800;
}

.sri-score i, .sri-score svg {
    width: 10px;
    height: 10px;
}

.sri-words {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
}

.sri-words i, .sri-words svg {
    width: 10px;
    height: 10px;
}

.sri-meta-signals {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sri-meta-tag {
    font-size: 8.5px;
    font-weight: 900;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: var(--text-muted);
    opacity: 0.4;
    line-height: 1;
}

.sri-meta-tag.on {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
    opacity: 1;
    font-weight: 900;
}

/* Bottom SERP Intelligence Strip */
.serp-bottom-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    flex-wrap: wrap;
}

.serp-target-corridor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.serp-zone-icon {
    display: inline-flex;
    align-items: center;
    color: #10b981;
}

.serp-zone-icon i, .serp-zone-icon svg {
    width: 15px;
    height: 15px;
}

.corridor-range {
    color: #10b981;
    font-weight: 900;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.serp-insights-group {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.serp-micro-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.serp-micro-chip .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.theme-dot { background: var(--primary-color); box-shadow: 0 0 6px var(--primary-color); }
.blue-dot { background: #6366f1; box-shadow: 0 0 6px rgba(99, 102, 241, 0.6); }
.green-dot { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }
.orange-dot { background: #f97316; box-shadow: 0 0 6px rgba(249, 115, 22, 0.6); }

/* Rich SERP Custom Quantum Tooltip */
.serp-tooltip-quantum {
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    min-width: 190px;
}

.stq-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.stq-rank {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-main);
}

.stq-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 1px 6px;
    border-radius: 4px;
}

.stq-domain-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.stq-fav {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.stq-domain {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--primary-color);
    word-break: break-all;
}

.stq-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: var(--bg-body);
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 6px;
}

.stq-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stq-cell .lbl {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.stq-cell .val {
    font-size: 12px;
    font-weight: 900;
}

.stq-meta-badges {
    display: flex;
    gap: 2px;
    margin-top: 1px;
}

.stq-meta {
    font-size: 8px;
    font-weight: 900;
    padding: 1px 3px;
    border-radius: 2px;
    background: var(--card-bg);
    color: var(--text-muted);
    opacity: 0.4;
}

.stq-meta.on {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    opacity: 1;
}

.stq-density-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 700;
    padding-top: 4px;
    border-top: 1px solid var(--border-color);
}

.density-chip.good { color: #10b981; }
.density-chip.low { color: #f59e0b; }
.density-chip.over { color: #ef4444; }

/* ApexCharts Global Tooltip Glassmorphic Reset (Prevents default white box) */
.serp-apex-container .apexcharts-tooltip,
.serp-apex-container .apexcharts-tooltip.apexcharts-theme-light,
.serp-apex-container .apexcharts-tooltip.apexcharts-theme-dark,
.apexcharts-tooltip,
.apexcharts-tooltip.apexcharts-theme-light,
.apexcharts-tooltip.apexcharts-theme-dark {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

.serp-apex-container,
.serp-apex-container svg {
    width: 100% !important;
}

.serp-quantum-card,
.serp-quantum-body {
    width: 100% !important;
    min-width: 0 !important;
}

 /* ==========================================================================
    FETCH LOADER PREMIUM STYLES
    ========================================================================== */
 .passing { border: none; outline: none; background: none; color: #a5a4a4; }
 .container_passing {
     outline: none; border: none; color: white; padding: 7.5px 8px 8px; position: relative; background: transparent; overflow: hidden; border-radius: 6px; display: flex; justify-content: center; align-items: center; width: 570px; height: 177px; backdrop-filter: blur(8.1px); -webkit-backdrop-filter: blur(8.1px);
 }
 .container_passing:before, .container_passing:after { content: ""; position: absolute; }
 .container_passing:before {
     z-index: -2; width: 600px; height: 600px; background-color: var(--border-color); background-repeat: no-repeat; background-size: 50% 50%, 50% 50%; background-position: 0 0, 100% 0, 100% 100%, 0 100%;
     background-image: linear-gradient(transparent, transparent), linear-gradient(transparent, transparent), linear-gradient(transparent, transparent), linear-gradient(var(--primary-color), var(--primary-color));
     animation: rotate 1.5s linear infinite;
 }
 .container_passing:after {
     --container_passing_after_size: 3px; z-index: -1; top: var(--container_passing_after_size); right: var(--container_passing_after_size); bottom: var(--container_passing_after_size); left: var(--container_passing_after_size); background: var(--bg-body); border-radius: 4px;
 }
 @keyframes rotate { 100% { transform: rotate(1turn); filter: blur(5); } }
 .wrap { text-align: center; vertical-align: middle; margin-bottom: 100px; background: var(--card-bg); padding-bottom: 100px; box-shadow: 0px 40px 60px -20px rgba(0, 0, 0, 0.2); }
 .spinsender {
     width: 100px; height: 100px; background: var(--card-bg); border-radius: 50%; position: relative; display: inline-block; float: right; margin-right: -50px; margin-top: 25px; right: 0; border: 5px solid var(--border-color);
 }
 .spinsender:after, .spinsender:before { content: ""; display: block; width: 100px; height: 100px; border-radius: 50%; box-sizing: content-box; }
 .spinsender-1:after { position: absolute; top: -9px; left: -9px; border: 4px solid transparent; border-top-color: var(--primary-color); border-bottom-color: var(--primary-color); animation: spinny 1s linear infinite; }
 @keyframes spinny { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(45deg) scale(1.2); } 100% { transform: rotate(360deg) scale(1); } }
 .spinsender-2 { animation: spin 2s linear infinite; }
 .spinsender-2:before, .spinsender-2:after { height: 20px; width: 20px; background: var(--border-color); position: absolute; top: -10px; left: 50%; margin-left: -10px; }
 .spinsender-2:after { top: auto; bottom: -10px; }
 @keyframes bouncy { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(30px); } }
 @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
 .spinsender-3:before, .spinsender-3:after { position: absolute; top: 50%; left: 50%; margin-top: -50px; margin-left: -50px; background: #5ad1cd; animation: pulse 3s linear infinite; opacity: 0; }
 .spinsender-3:after { animation: pulse 2s linear 2.3s infinite; }
 .barsender { min-width: 300px; min-height: 5px; border-radius: 5px; position: relative; overflow: hidden;    margin-top: 5px; }
 .barsender::after { content: ""; min-height: 5px; position: absolute; background: var(--border-color); transform: translateX(-100%); animation: animate 3s infinite;    left: 0; }
 .barsender::before { content: ""; min-height: 5px; position: absolute; background: var(--primary-color); transform: translateX(-100%); animation: animate 3s ease-out infinite; animation-delay: 1s; z-index: 5; }
 @keyframes animate { 0% { transform: translateX(-100%); min-width: 10px; } 100% { transform: translateX(300%); min-width: 400px; } }
 .guin-recever { background-image: url(https://media.guinrank.com/Pic/Logo/Dark/GuinRank.webp); width: 50px; height: 50px; background-size: 80% 80%; width: 100px; height: 100px; border-radius: 50%; position: relative; display: inline-block; float: left; margin-left: -50px; margin-top: 25px; background-color: var(--card-bg); background-repeat: no-repeat; background-position: center; border: 5px solid var(--border-color); }
 .site-sender { background-size: 90% 90%; width: 90px; height: 90px; border-radius: 50%; background-color: var(--card-bg); background-repeat: no-repeat; background-position: center; position: absolute; top: 0px; left: 0px; padding: 5px; }
 .box-fetch-loader { width: 485px; }
 .animi-box-fetch { display: flex; flex-wrap: wrap; justify-content: center; }
 .guin-side-fetch { width: 50%; position: absolute; right: initial; z-index: 1; }
 .site-box-fetch { width: 50%; position: absolute; right: 0; z-index: 1; }
 .counter-box-fetch { margin-top: -40px; }
 .info-counter-fetch { display: flex; }
 .num-counter-fetch { font-size: 60px; font-family: "jersey-m54"; color: var(--text-main); cursor: default; }
 .pres-counter-fetch { font-size: 22px; color: var(--text-main); cursor: default; }
 .fotter-box-fetch { width: calc(100% - 50px); margin: auto; background: var(--card-bg); border-radius: 20px; position: absolute; bottom: 8px; left: 25px; height: 40px; }
 .barsender-box-fetch { display: flex; width: calc(100% - 10px); text-align: left; }
 .statu-barsender-fetch { width: 100px; line-height: 35px; }
 .info-box-fetch { display: flex; width: calc(100% - 80px); }
 .icon-barsender-fetch { font-size: 25px; width: 50px; height: 48px; color: #47cf73; line-height: 40px; text-align: center; }
 .info-barsender-fetch { height: 35px; line-height: 40px; padding-right: 10px; width: calc(100% - 45px); overflow: hidden; color: var(--text-main); word-break: break-all; }
 .word-barsender-fetch { background: var(--bg-body); padding-left: 10px; padding-right: 10px; margin-left: 5px; border-radius: 25px; margin-top: 5px; color: var(--text-muted); height: 30px; line-height: 30px; }
 .barsender-move-fetch { width: 95%; margin: auto; margin-top: -5px; margin-bottom: 2px; }
 .main-fetch-loader { position: relative; text-align: center; margin-top: calc(50vh - 300px); }
 .container-fetch-loader { position: relative; height: 177px; width: 570px; margin: auto; }
 .bg-back { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; opacity: 0.1; background-size: cover; border-radius: 20px; }
     .dropdown-search-box { position: relative; margin-bottom: 12px; }
 .dropdown-search-box i, .dropdown-search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }
 .dropdown-search-box input { width: 100%; background: var(--bg-body); border: 1px solid var(--border-color); padding: 10px 10px 10px 36px; border-radius: 10px; font-size: 13px; color: var(--text-main); outline: none; }

 .fade-out-loader { opacity: 0 !important; transition: opacity 0.5s ease; pointer-events: none; }
 /* ==========================================================================
        UNIFIED SEARCH BAR PREMIUM STYLES & MODAL
        ========================================================================== */

 .analyzer-container {
    padding: 40px 0;
    animation: fadeIn 0.4s ease-out;
    max-width: 920px;
    margin: 0 auto;
    transition: max-width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.3s ease;
    width: 100%;
}

.analyzer-container.has-data {
    max-width: 1720px;
    width: 100%;
    padding: 15px 16px 40px;
}

.analyzer-container.has-data .unified-search-container {
    max-width: 920px;
    margin: 0 auto 30px;
}

.analyzer-container.has-data .analyzer-header,
.analyzer-container.has-data .console-features {
    height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

 /* ══════════════════════════════════════════════════════════════════════════
    HERO HEADER & BENTO FEATURES CLUSTERS (Creation-Style Hero - Ask Radar Style)
    ══════════════════════════════════════════════════════════════════════════ */
 .console-hero,
 .analyzer-hero {
     position: relative;
     z-index: 1;
     text-align: center;
     margin: 20px auto 28px;
     transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
     display: flex;
     flex-direction: column;
     align-items: center;
     width: 100%;
     max-width: 920px;
     animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
 }

 .hero-ambient-glow {
     position: absolute;
     top: -40px;
     left: 50%;
     transform: translateX(-50%);
     width: 650px;
     height: 240px;
     background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 22%, transparent) 0%, var(--primary-glow) 45%, transparent 70%);
     filter: blur(55px);
     pointer-events: none;
     z-index: 0;
     border-radius: 50%;
     transition: all 0.6s ease;
 }

 .hero-badge,
 .analyzer-hero-badge {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     font-size: 11.5px;
     font-weight: 800;
     letter-spacing: 0.8px;
     text-transform: uppercase;
     color: var(--primary-color);
     background: var(--primary-light);
     padding: 7px 18px;
     border-radius: 100px;
     margin-bottom: 16px;
     border: 1px solid color-mix(in srgb, var(--primary-color) 28%, transparent);
     box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 12%, transparent);
     backdrop-filter: blur(8px);
     -webkit-backdrop-filter: blur(8px);
     position: relative;
     z-index: 2;
 }

 .hero-badge-icon {
     width: 14px;
     height: 14px;
     color: var(--primary-color);
 }

 .badge-dot {
     width: 7px;
     height: 7px;
     border-radius: 50%;
     background: var(--primary-color);
     box-shadow: 0 0 10px var(--primary-color);
     animation: pulseDot 2s infinite ease-in-out;
 }

 @keyframes pulseDot {
     0%, 100% { transform: scale(1); opacity: 1; }
     50% { transform: scale(1.4); opacity: 0.6; }
 }

 .hero-title,
 .analyzer-hero-title {
     font-size: clamp(28px, 4vw, 44px);
     font-weight: 900;
     line-height: 1.18;
     letter-spacing: -0.035em;
     color: var(--text-main);
     margin: 0 0 14px;
     text-align: center;
     position: relative;
     z-index: 2;
 }

 .hero-title em,
 .analyzer-hero-title em {
     font-style: normal;
     background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end));
     -webkit-background-clip: text;
     background-clip: text;
     color: transparent;
 }

 .hero-desc,
 .analyzer-hero-desc {
     font-size: 15px;
     color: var(--text-muted);
     max-width: 680px;
     line-height: 1.6;
     margin: 0 auto 20px;
     position: relative;
     z-index: 2;
     font-weight: 500;
 }

 .hero-features-belt {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     gap: 10px;
     margin-top: 4px;
     position: relative;
     z-index: 2;
 }

 .hfb-item {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     font-size: 12px;
     font-weight: 700;
     color: var(--text-main);
     background: var(--card-bg);
     padding: 6px 14px;
     border-radius: 20px;
     border: 1px solid var(--border-color);
     box-shadow: 0 2px 8px rgba(0,0,0,0.03);
 }

 .hfb-icon {
     width: 14px;
     height: 14px;
     color: var(--primary-color);
 }

 /* ---------- BENTO BOX FEATURES CLUSTER (.console-features) ---------- */
 .console-features {
     margin-top: 45px;
     width: 100%;
     animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
 }

 .bento-features-cluster {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     grid-auto-flow: dense;
     grid-auto-rows: minmax(130px, auto);
     gap: 20px;
     width: 100%;
     position: relative;
     z-index: 2;
 }

 .bento-card {
     background: rgba(255, 255, 255, 0.015);
     backdrop-filter: blur(16px);
     -webkit-backdrop-filter: blur(16px);
     border: 1px solid var(--border-color);
     border-radius: 24px;
     padding: 28px;
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     position: relative;
     overflow: hidden;
     transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
     box-shadow: 0 4px 20px rgba(0,0,0,0.02);
 }

 .bento-card::after {
     content: '';
     position: absolute;
     inset: 0;
     border-radius: 24px;
     background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
     pointer-events: none;
 }

 .bento-card:hover {
     transform: translateY(-4px) scale(1.01);
     border-color: var(--primary-color);
     box-shadow: 0 12px 30px rgba(0,0,0,0.06);
 }

 .bento-card-content {
     position: relative;
     z-index: 1;
     display: flex;
     flex-direction: column;
     height: 100%;
     gap: 12px;
 }

 .dashed-ring-wrapper {
     position: relative;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     margin-bottom: 8px;
     width: 44px;
     height: 44px;
 }

 .dashed-ring-wrapper::before {
     content: '';
     position: absolute;
     top: -5px;
     left: -5px;
     right: -5px;
     bottom: -5px;
     border: 1px dashed var(--border-color);
     border-radius: 16px;
     opacity: 0.5;
     transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
     z-index: 0;
     transform-origin: center center;
 }

 .bento-card:hover .dashed-ring-wrapper::before {
     opacity: 1;
     transform: scale(1.1) rotate(180deg);
     border-color: var(--primary-color);
 }

 .bc-icon-wrapper {
     width: 44px;
     height: 44px;
     border-radius: 12px;
     background: var(--bg-body);
     border: 1px solid var(--border-color);
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--text-muted);
     transition: all 0.4s ease;
     margin-bottom: 0;
     position: relative;
     z-index: 1;
 }

 .bento-card:hover .bc-icon-wrapper {
     background: linear-gradient(135deg, var(--primary-color), var(--primary-gradient-end));
     color: white;
     border-color: transparent;
     transform: scale(1.1) rotate(4deg);
 }

 .bc-icon-wrapper i, .bc-icon-wrapper svg {
     width: 20px;
     height: 20px;
 }

 .bc-title {
     font-size: 16.5px;
     font-weight: 800;
     color: var(--text-main);
     margin: 0;
     letter-spacing: -0.2px;
 }

 .bc-desc {
     font-size: 13.5px;
     color: var(--text-muted);
     line-height: 1.6;
     margin: 0;
     font-weight: 500;
 }

 .bc-wide-top { grid-column: span 2; }
 .bc-tall { grid-row: span 2; }
 .bc-wide-mid { grid-column: span 2; }
 .bc-wide-bottom { grid-column: span 2; }
 .bc-wide-top .bento-card-content, .bc-wide-mid .bento-card-content, .bc-wide-bottom .bento-card-content { justify-content: center; }
 .bc-wide-top .bc-desc, .bc-wide-mid .bc-desc, .bc-wide-bottom .bc-desc { max-width: 88%; }

 @media (max-width: 900px) {
     .hero-title, .analyzer-hero-title { font-size: 28px; }
     .bento-features-cluster { grid-template-columns: repeat(2, 1fr); }
     .bc-wide-top, .bc-wide-mid, .bc-wide-bottom { grid-column: span 2; }
     .bc-tall { grid-row: span 1; grid-column: span 1; }
 }

 @media (max-width: 600px) {
     .hero-title, .analyzer-hero-title { font-size: 24px; }
     .bento-features-cluster { grid-template-columns: 1fr; }
     .bc-wide-top, .bc-wide-mid, .bc-wide-bottom, .bc-tall { grid-column: span 1; }
     .bc-wide-top .bc-desc, .bc-wide-mid .bc-desc, .bc-wide-bottom .bc-desc { max-width: 100%; }
 }

 /* Unified Search Container */
 .unified-search-container {
     position: relative;
     z-index: 50;
     width: 100%;
     transition: all 0.3s ease;
 }

     .unified-search-container.is-focused {
         z-index: 100;
     }

 .unified-search-bar {
     display: flex;
     align-items: center;
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     border-radius: 40px;
     padding: 6px 6px 6px 7px;
     box-shadow: 0 10px 30px rgba(0,0,0,0.05);
     transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
     position: relative;
     z-index: 2;
 }

 .unified-search-container.is-focused .unified-search-bar {
     border-color: var(--primary-color);
     box-shadow: 0 15px 40px var(--primary-shadow);
     transform: translateY(-2px);
 }

 .search-divider {
     width: 1px;
     height: 24px;
     background: var(--border-color);
     margin: 0 8px;
     flex-shrink: 0;
 }

 .search-segment {
     display: flex;
     align-items: center;
     height: 100%;
 }

 /* Segments */
 .dropdown-segment {
     position: relative;
     cursor: pointer;
     padding: 8px;
     border-radius: 20px;
     transition: background 0.2s;
     min-width: 70px;
     justify-content: center;
 }

     .dropdown-segment:hover {
         background: var(--bg-body);
     }

 .segment-content {
     display: flex;
     align-items: center;
     gap: 6px;
 }

 .segment-text {
     font-size: 14px;
     font-weight: 700;
     color: var(--text-main);
 }

 .flag-icon-wrapper.sm {
     width: 20px;
     height: 20px;
     border-radius: 50%;
     overflow: hidden;
     border: 1px solid var(--border-color);
     display: flex;
 }

     .flag-icon-wrapper.sm img {
         width: 100%;
         height: 100%;
         object-fit: cover;
     }

 .chevron-icon {
     width: 14px;
     height: 14px;
     color: var(--text-muted);
 }

 .input-segment {
     flex: 1;
     position: relative;
 }

 .input-search-icon {
     width: 20px;
     height: 20px;
     color: var(--primary-color);
     margin-right: 12px;
 }

 .main-keyword-input {
     width: 100%;
     background: transparent;
     border: none;
     font-size: 16px;
     font-weight: 500;
     color: var(--text-main);
     outline: none;
     padding: 10px 0;
 }

     .main-keyword-input::placeholder {
         color: var(--text-muted);
         opacity: 0.7;
     }

/* Device Selector (Seamless Pill Switcher) */
.seamless-device-segment, .mini-device-segment {
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.seamless-device-tabs, .mini-device-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.seamless-device-tab, .mini-device-tab {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 0;
    margin: 0;
    line-height: 1;
    box-sizing: border-box;
    position: relative;
}

    .seamless-device-tab span[v-pre], .seamless-device-tab span,
    .mini-device-tab span[v-pre], .mini-device-tab span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        line-height: 1;
        pointer-events: none;
    }

    .seamless-device-tab:hover, .mini-device-tab:hover {
        color: var(--text-main);
        background: rgba(125, 125, 125, 0.08);
        transform: translateY(-1px);
    }

    .seamless-device-tab.active, .mini-device-tab.active {
        background: var(--card-bg);
        color: var(--primary-color);
        border-color: var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        font-weight: 800;
        transform: translateY(-1px);
    }

    .seamless-device-tab i, .seamless-device-tab svg,
    .mini-device-tab i, .mini-device-tab svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.1;
        transition: all 0.2s ease;
        display: block;
        margin: auto;
    }

    .seamless-device-tab.active i, .seamless-device-tab.active svg,
    .mini-device-tab.active i, .mini-device-tab.active svg {
        stroke-width: 2.4;
        color: var(--primary-color);
    }

 .round-search-btn {
     width: 48px;
     height: 48px;
     border-radius: 50%;
     background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
     color: white;
     border: none;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: all 0.3s;
     box-shadow: 0 4px 12px var(--primary-shadow);
     flex-shrink: 0;
     margin-left: 4px;
 }

     .round-search-btn i {
         width: 20px;
         height: 20px;
         transition: transform 0.3s;
     }

     .round-search-btn:hover {
         transform: scale(1.05);
         box-shadow: 0 8px 20px var(--primary-shadow);
     }

         .round-search-btn:hover i {
             transform: translateX(2px);
         }

 /* Overlay */
 .results-overlay-panel {
     position: absolute;
     top: calc(100% + 10px);
     left: 0;
     right: 0;
     background: var(--card-bg);
     backdrop-filter: blur(25px);
     -webkit-backdrop-filter: blur(25px);
     border: 1px solid var(--border-color);
     border-radius: 20px;
     box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.05);
     padding: 16px;
     z-index: 100;
     max-height: 520px;
     display: flex;
     flex-direction: column;
     gap: 10px;
 }

 .results-header-inline {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0 2px 10px;
     border-bottom: 1px solid var(--border-color);
 }

 .results-header-title {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     font-size: 12.5px;
     font-weight: 800;
     color: var(--text-main);
     letter-spacing: 0.3px;
 }

 .pulse-indicator {
     width: 7px;
     height: 7px;
     border-radius: 50%;
     background: var(--primary-color);
     box-shadow: 0 0 8px var(--primary-color);
     animation: pulseDot 2s infinite ease-in-out;
 }

 .close-overlay-btn {
     background: var(--bg-body);
     border: 1px solid var(--border-color);
     width: 28px;
     height: 28px;
     border-radius: 8px;
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--text-muted);
     cursor: pointer;
     transition: all 0.2s;
 }

     .close-overlay-btn:hover {
         background: var(--icon-danger-bg);
         color: var(--danger);
         border-color: var(--danger);
     }

     .close-overlay-btn i, .close-overlay-btn svg {
         width: 14px;
         height: 14px;
     }

 .results-content-inline {
     overflow-y: auto;
     flex: 1;
     padding: 0;
 }

 /* Split Pane */
 .split-search-overlay {
     display: flex;
     gap: 0;
     min-height: 240px;
 }

 .pane-suggestions {
     width: 42%;
     border-right: 1px solid var(--border-color);
     padding: 6px 14px 6px 2px;
     display: flex;
     flex-direction: column;
 }

 .pane-history {
     width: 58%;
     padding: 6px 2px 6px 14px;
     display: flex;
     flex-direction: column;
 }

     .pane-history.full-width {
         width: 100%;
         border-left: none;
         padding: 6px 2px;
     }

 .pane-title {
     font-size: 12px;
     font-weight: 800;
     color: var(--text-muted);
     text-transform: uppercase;
     margin-bottom: 10px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     letter-spacing: 0.5px;
 }

 .pane-title-icon {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 22px;
     height: 22px;
     border-radius: 6px;
     background: var(--bg-body);
     border: 1px solid var(--border-color);
 }

     .pane-title-icon i, .pane-title-icon svg {
         width: 13px;
         height: 13px;
     }

 .pane-count-badge {
     font-size: 10px;
     font-weight: 800;
     padding: 2px 8px;
     border-radius: 100px;
     background: var(--bg-body);
     color: var(--text-muted);
     border: 1px solid var(--border-color);
 }

 .empty-pane-modern {
     padding: 36px 10px;
     text-align: center;
     color: var(--text-muted);
     font-size: 12.5px;
     font-weight: 600;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 8px;
 }

     .empty-pane-modern i, .empty-pane-modern svg {
         width: 24px;
         height: 24px;
         opacity: 0.5;
     }

 /* Modernized Suggestions List */
 .clean-sugg-list {
     list-style: none;
     padding: 0;
     margin: 0;
     display: flex;
     flex-direction: column;
     gap: 6px;
 }

 .clean-sugg-item {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 10px;
     padding: 8px 10px;
     border-radius: 10px;
     background: var(--bg-body);
     border: 1px solid var(--border-color);
     cursor: pointer;
     transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
     position: relative;
     overflow: hidden;
 }

     .clean-sugg-item:hover, .clean-sugg-item.keyboard-selected {
         background: var(--card-bg);
         border-color: var(--primary-color);
         box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
         transform: translateX(3px);
     }

 .sugg-left-col {
     display: flex;
     align-items: center;
     gap: 10px;
     flex: 1;
     min-width: 0;
 }

 .sugg-icon-box {
     width: 26px;
     height: 26px;
     border-radius: 8px;
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     color: var(--text-muted);
     transition: all 0.2s;
 }

     .clean-sugg-item:hover .sugg-icon-box, .clean-sugg-item.keyboard-selected .sugg-icon-box {
         color: var(--primary-color);
         border-color: var(--primary-color);
     }

     .sugg-icon-box i, .sugg-icon-box svg {
         width: 13px;
         height: 13px;
     }

 .sugg-keyword-text {
     font-size: 13px;
     font-weight: 700;
     color: var(--text-main);
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     flex: 1;
 }

 .sugg-match-highlight {
     background: transparent;
     color: var(--primary-color);
     font-weight: 900;
     padding: 0;
 }

 .sugg-actions {
     display: inline-flex;
     align-items: center;
     gap: 4px;
     opacity: 0.5;
     transition: opacity 0.2s;
 }

     .clean-sugg-item:hover .sugg-actions, .clean-sugg-item.keyboard-selected .sugg-actions {
         opacity: 1;
     }

 .sugg-action-btn {
     width: 24px;
     height: 24px;
     border-radius: 6px;
     border: 1px solid var(--border-color);
     background: var(--card-bg);
     color: var(--text-muted);
     display: inline-flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: all 0.2s;
     padding: 0;
 }

     .sugg-action-btn:hover {
         color: var(--primary-color);
         border-color: var(--primary-color);
         background: var(--bg-body);
         transform: scale(1.1);
     }

     .sugg-action-btn i, .sugg-action-btn svg {
         width: 12px;
         height: 12px;
     }

 .sugg-action-chip {
     width: 22px;
     height: 22px;
     border-radius: 6px;
     background: transparent;
     color: var(--text-muted);
     display: inline-flex;
     align-items: center;
     justify-content: center;
     transition: all 0.2s;
 }

     .clean-sugg-item:hover .sugg-action-chip, .clean-sugg-item.keyboard-selected .sugg-action-chip {
         color: var(--primary-color);
         transform: translateX(2px);
     }

     .sugg-action-chip i, .sugg-action-chip svg {
         width: 12px;
         height: 12px;
     }

 /* Overlay Keyboard Shortcuts Footer */
 .results-overlay-footer {
     display: flex;
     align-items: center;
     justify-content: flex-end;
     gap: 12px;
     padding-top: 10px;
     border-top: 1px solid var(--border-color);
     font-size: 11px;
     color: var(--text-muted);
     flex-wrap: wrap;
 }

 .overlay-shortcut-pill {
     display: inline-flex;
     align-items: center;
     gap: 5px;
     font-size: 11px;
     font-weight: 600;
 }

     .overlay-shortcut-pill kbd {
         font-family: inherit;
         font-size: 10px;
         font-weight: 800;
         padding: 2px 6px;
         border-radius: 4px;
         background: var(--bg-body);
         border: 1px solid var(--border-color);
         color: var(--text-main);
         line-height: 1;
     }

 .empty-state-inline {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     padding: 40px 20px;
     text-align: center;
     gap: 8px;
 }

 .empty-icon-circle {
     width: 48px;
     height: 48px;
     border-radius: 14px;
     background: var(--bg-body);
     border: 1px solid var(--border-color);
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--text-muted);
     margin-bottom: 4px;
 }

     .empty-icon-circle i, .empty-icon-circle svg {
         width: 22px;
         height: 22px;
     }

 .empty-state-inline h4 {
     margin: 0;
     font-size: 14px;
     font-weight: 800;
     color: var(--text-main);
 }

 .empty-state-inline p {
     margin: 0;
     font-size: 12px;
     color: var(--text-muted);
 }

 .pane-clear-btn {
     background: transparent;
     border: 1px solid transparent;
     color: var(--text-muted);
     cursor: pointer;
     padding: 2px 6px;
     border-radius: 6px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     font-size: 11px;
     transition: all 0.2s;
 }

     .pane-clear-btn:hover {
         color: var(--danger);
         background: var(--icon-danger-bg);
         border-color: var(--danger);
     }

     .pane-clear-btn i, .pane-clear-btn svg {
         width: 12px;
         height: 12px;
     }

 .rich-hist-list {
     display: flex;
     flex-direction: column;
     gap: 6px;
     padding-right: 2px;
 }

 .rich-hist-item {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
     padding: 8px 12px;
     border-radius: 12px;
     background: var(--bg-body);
     border: 1px solid var(--border-color);
     cursor: pointer;
     transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
     position: relative;
     overflow: hidden;
 }

     .rich-hist-item:hover, .rich-hist-item.keyboard-selected {
         background: var(--card-bg);
         border-color: var(--primary-color);
         box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
         transform: translateX(3px);
     }

 .hist-avatar-composite {
     position: relative;
     width: 34px;
     height: 34px;
     flex-shrink: 0;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .res-flag-box {
     width: 32px;
     height: 32px;
     border-radius: 50%;
     overflow: hidden;
     background: var(--card-bg);
     border: 1.5px solid var(--border-color);
     box-shadow: 0 2px 6px rgba(0,0,0,0.08);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
 }

 .res-flag-img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
 }

 .res-flag-fallback {
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--text-muted);
 }

     .res-flag-fallback i, .res-flag-fallback svg {
         width: 15px;
         height: 15px;
     }

 .hist-device-mini-badge {
     position: absolute;
     right: -2px;
     bottom: -2px;
     width: 15px;
     height: 15px;
     border-radius: 50%;
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--text-muted);
     box-shadow: 0 1px 3px rgba(0,0,0,0.1);
     z-index: 2;
 }

     .hist-device-mini-badge i, .hist-device-mini-badge svg {
         width: 9px;
         height: 9px;
     }

 .hist-content {
     flex: 1;
     display: flex;
     flex-direction: column;
     justify-content: center;
     gap: 6px;
     min-width: 0;
 }

 .res-keyword {
     font-size: 13.5px;
     font-weight: 800;
     color: var(--text-main);
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     line-height: 1.2;
 }

 .hist-tags {
     display: flex;
     align-items: center;
     gap: 6px;
     flex-wrap: wrap;
     margin-top: 1px;
 }

 .h-tag {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 5px;
     padding: 0 8px;
     height: 21px;
     box-sizing: border-box;
     border-radius: 6px;
     font-size: 10.5px;
     font-weight: 700;
     background: var(--bg-body);
     color: var(--text-muted);
     border: 1px solid var(--border-color);
     line-height: 1;
 }

     .h-tag span[v-pre], .h-tag span {
         display: inline-flex;
         align-items: center;
         justify-content: center;
         line-height: 1;
     }

     .h-tag i, .h-tag svg {
         width: 11px;
         height: 11px;
         display: block;
         margin: 0;
         padding: 0;
     }

 .h-tag.lang-tag {
     color: #3b82f6;
     background: rgba(59, 130, 246, 0.08);
     border-color: rgba(59, 130, 246, 0.25);
 }

 .h-tag.vol-tag {
     color: #10b981;
     background: rgba(16, 185, 129, 0.08);
     border-color: rgba(16, 185, 129, 0.25);
 }

 .hist-metrics {
     display: flex;
     align-items: center;
     gap: 10px;
     flex-shrink: 0;
 }

 /* Sleek Micro Trend Sparkline */
 .mini-trend-box {
     display: inline-flex;
     align-items: flex-end;
     justify-content: space-between;
     width: 52px;
     height: 18px;
     padding: 2px 3px;
     box-sizing: border-box;
     border-radius: 4px;
     background: rgba(59, 130, 246, 0.04);
     gap: 1.5px;
     position: relative;
     overflow: hidden;
 }

 .trend-spark-bar {
     flex: 1;
     min-width: 2px;
     max-width: 3.5px;
     background: linear-gradient(180deg, #38bdf8 0%, #3b82f6 100%);
     border-radius: 2px 2px 0 0;
     transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
     opacity: 0.75;
 }

 .rich-hist-item:hover .trend-spark-bar {
     opacity: 1;
 }

 .trend-spark-bar:last-child {
     background: linear-gradient(180deg, #06b6d4 0%, #0284c7 100%);
     opacity: 0.95;
 }

 .trend-spark-bar.empty {
     height: 2px !important;
     min-height: 2px;
     background: var(--text-muted);
     border-radius: 1px;
     opacity: 0.2;
 }

 /* Modern Topic Competition (TC) Difficulty Capsule */
 .word-status-TD {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     height: 22px;
     padding: 0 8px;
     border-radius: 6px;
     font-size: 11px;
     font-weight: 800;
     min-width: 34px;
     font-variant-numeric: tabular-nums;
     box-sizing: border-box;
     line-height: 1;
     transition: all 0.2s ease;
 }

     .word-status-TD.kd-easy, .word-status-TD.bg-green {
         color: #10b981;
         background: rgba(16, 185, 129, 0.12);
         border: 1px solid rgba(16, 185, 129, 0.28);
     }

     .word-status-TD.kd-medium, .word-status-TD.bg-orange, .word-status-TD.bg-yellow {
         color: #f59e0b;
         background: rgba(245, 158, 11, 0.12);
         border: 1px solid rgba(245, 158, 11, 0.28);
     }

     .word-status-TD.kd-hard, .word-status-TD.bg-red {
         color: #ef4444;
         background: rgba(239, 68, 68, 0.12);
         border: 1px solid rgba(239, 68, 68, 0.28);
     }

     .word-status-TD.kd-unknown {
         color: var(--text-muted);
         background: var(--bg-body);
         border: 1px solid var(--border-color);
         opacity: 0.6;
     }

 .hist-actions-group {
     display: inline-flex;
     align-items: center;
     gap: 4px;
     opacity: 0.5;
     transition: opacity 0.2s;
 }

     .rich-hist-item:hover .hist-actions-group, .rich-hist-item.keyboard-selected .hist-actions-group {
         opacity: 1;
     }

 .hist-tool-btn {
     width: 24px;
     height: 24px;
     border-radius: 6px;
     border: 1px solid var(--border-color);
     background: var(--card-bg);
     color: var(--text-muted);
     display: inline-flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: all 0.2s;
     padding: 0;
 }

     .hist-tool-btn:hover {
         color: var(--primary-color);
         border-color: var(--primary-color);
         background: var(--bg-body);
         transform: scale(1.1);
     }

     .hist-tool-btn i, .hist-tool-btn svg {
         width: 12px;
         height: 12px;
     }

 .hist-open-arrow {
     width: 22px;
     height: 22px;
     border-radius: 6px;
     background: transparent;
     color: var(--text-muted);
     display: inline-flex;
     align-items: center;
     justify-content: center;
     transition: all 0.2s;
 }

     .rich-hist-item:hover .hist-open-arrow, .rich-hist-item.keyboard-selected .hist-open-arrow {
         color: var(--primary-color);
         transform: translateX(2px);
     }

     .hist-open-arrow i, .hist-open-arrow svg {
         width: 12px;
         height: 12px;
     }

 .word-status-TD.kd-easy { background: rgba(16, 185, 129, 0.12) !important; color: #10b981 !important; border: 1px solid rgba(16, 185, 129, 0.35) !important; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12) !important; }
 .word-status-TD.kd-medium { background: rgba(245, 158, 11, 0.12) !important; color: #f59e0b !important; border: 1px solid rgba(245, 158, 11, 0.35) !important; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12) !important; }
 .word-status-TD.kd-hard { background: rgba(249, 115, 22, 0.12) !important; color: #f97316 !important; border: 1px solid rgba(249, 115, 22, 0.35) !important; box-shadow: 0 2px 8px rgba(249, 115, 22, 0.12) !important; }
 .word-status-TD.kd-veryhard { background: rgba(239, 68, 68, 0.14) !important; color: #ef4444 !important; border: 1px solid rgba(239, 68, 68, 0.4) !important; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15) !important; }
 .word-status-TD.kd-unknown { background: var(--bg-body) !important; color: var(--text-muted) !important; border: 1px solid var(--border-color) !important; box-shadow: none !important; }

 /* Dropdowns */
 .segment-dropdown {
     position: absolute;
     top: calc(100% + 16px);
     left: -10px;
     min-width: 240px;
 }

 .glass-menu {
     background: var(--card-bg);
     backdrop-filter: blur(20px);
     border: 1px solid var(--border-color);
     border-radius: 16px;
     box-shadow: 0 12px 40px rgba(0,0,0,0.1);
     z-index: 100;
     padding: 12px;
 }

 .dropdown-search-box {
     position: relative;
     margin-bottom: 12px;
 }

     .dropdown-search-box i {
         position: absolute;
         left: 12px;
         top: 50%;
         transform: translateY(-50%);
         width: 16px;
         height: 16px;
         color: var(--text-muted);
     }

     .dropdown-search-box input {
         width: 100%;
         background: var(--bg-body);
         border: 1px solid var(--border-color);
         padding: 10px 10px 10px 36px;
         border-radius: 10px;
         font-size: 13px;
         color: var(--text-main);
         outline: none;
     }

 .dropdown-list {
     list-style: none;
     max-height: 220px;
     overflow-y: auto;
 }

 .dropdown-item {
     display: flex;
     align-items: center;
     gap: 12px;
     padding: 10px 12px;
     border-radius: 10px;
     cursor: pointer;
     margin-bottom: 2px;
 }

     .dropdown-item:hover {
         background: var(--bg-body);
     }

     .dropdown-item.selected {
         background: var(--primary-light);
     }

     .dropdown-item .item-text {
         font-size: 14px;
         font-weight: 500;
         color: var(--text-main);
         flex: 1;
     }

     .dropdown-item.selected .item-text {
         font-weight: 700;
         color: var(--primary-color);
     }

 .check-icon {
     width: 16px;
     height: 16px;
     color: var(--primary-color);
 }

 /* DASHBOARD */
 .dashboard-wrapper {
     margin-top: 20px;
     display: flex;
     flex-direction: column;
     gap: 24px;
     padding-bottom: 60px;
     width: 100%;
     max-width: 1700px;
     margin-left: auto;
     margin-right: auto;
 }

 .dash-block {
     display: flex;
     flex-direction: column;
     gap: 16px;
 }

 /* ══════════════════════════════════════════════════════════════════════════
    DASHBOARD HEADER ACTION STRIP (Clean & Ultra-Professional)
    ══════════════════════════════════════════════════════════════════════════ */
 .header-block {
     display: flex;
     align-items: center;
     justify-content: space-between;
     flex-wrap: wrap;
     gap: 16px;
     padding: 6px 0 14px;
     margin-bottom: 6px;
     background: transparent;
     border: none;
     border-radius: 0;
     box-shadow: none;
     position: relative;
 }

 .hb-left-section {
     display: flex;
     align-items: center;
     gap: 16px;
     flex-wrap: wrap;
 }

 .hb-keyword-badge {
     display: inline-flex;
     align-items: center;
     gap: 10px;
 }

 .hb-keyword-icon {
     width: 38px;
     height: 38px;
     border-radius: 12px;
     background: var(--primary-light);
     border: 1px solid color-mix(in srgb, var(--primary-color) 28%, transparent);
     color: var(--primary-color);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
 }

 .hb-keyword-icon i, .hb-keyword-icon svg {
     width: 18px;
     height: 18px;
 }

 .hb-keyword-text {
     font-size: 22px;
     font-weight: 800;
     color: var(--text-main);
     margin: 0;
     letter-spacing: -0.02em;
     line-height: 1.2;
 }

 .hb-copy-btn {
     width: 30px;
     height: 30px;
     border-radius: 8px;
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     color: var(--text-muted);
     display: inline-flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
     padding: 0;
 }

 .hb-copy-btn:hover {
     color: var(--primary-color);
     border-color: var(--primary-color);
     background: rgba(var(--primary-rgb), 0.08);
     transform: translateY(-1px);
 }

 .hb-copy-btn i, .hb-copy-btn svg {
     width: 14px;
     height: 14px;
 }

 /* Parameters Bar */
 .hb-params-bar {
     display: inline-flex;
     align-items: center;
     gap: 12px;
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     padding: 6px 16px;
     border-radius: 100px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.02);
 }

 .hb-param-item {
     display: flex;
     align-items: center;
     gap: 6px;
     font-size: 12.5px;
     font-weight: 700;
     color: var(--text-main);
 }

 .hb-param-item i, .hb-param-item svg {
     width: 14px;
     height: 14px;
 }

 .hb-param-flag {
     width: 16px;
     height: 12px;
     display: inline-flex;
     align-items: center;
     border-radius: 2px;
     overflow: hidden;
     box-shadow: 0 1px 3px rgba(0,0,0,0.1);
 }

 .hb-param-flag img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .hb-param-divider {
     width: 1px;
     height: 14px;
     background: var(--border-color);
 }

 .hb-diff-dot {
     width: 7px;
     height: 7px;
     border-radius: 50%;
     display: inline-block;
 }

 .kd-easy { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }
 .kd-medium { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }
 .kd-hard { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.6); }
 .kd-unknown { background: var(--text-muted); }

 /* Inline Update Button in Params Bar */
 .hb-param-update-btn {
     display: inline-flex;
     align-items: center;
     gap: 5px;
     padding: 3px 8px;
     border-radius: 6px;
     font-size: 12px;
     font-weight: 700;
     background: transparent;
     border: 1px solid transparent;
     color: var(--text-muted);
     cursor: pointer;
     transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
 }

 .hb-param-update-btn:hover:not(:disabled) {
     color: var(--text-main);
     background: var(--bg-body);
     border-color: var(--border-color);
 }

 .hb-param-update-btn:disabled {
     opacity: 0.6;
     cursor: not-allowed;
 }

 .hb-param-update-btn i, .hb-param-update-btn svg {
     width: 13px;
     height: 13px;
     color: var(--text-muted);
 }

 .hb-param-update-btn:hover i, .hb-param-update-btn:hover svg {
     color: var(--primary-color);
 }

 .hb-param-update-btn .spin-icon i, .hb-param-update-btn .spin-icon svg {
     animation: spin 1s linear infinite;
     color: var(--primary-color);
 }

 @media (max-width: 900px) {
     .header-block {
         flex-direction: column;
         align-items: stretch;
         gap: 12px;
     }
     .hb-left-section {
         flex-direction: column;
         align-items: flex-start;
         gap: 10px;
     }
     .hb-params-bar {
         width: 100%;
         overflow-x: auto;
         justify-content: flex-start;
         border-radius: 12px;
     }
 }

 /* Small/Clean Charts Grid */
 .block-charts-3 {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 20px;
 }

 .span-2-cols {
     grid-column: span 2;
 }

 @media (max-width: 1024px) {
     .block-charts-3 {
         grid-template-columns: 1fr;
     }

     .span-2-cols {
         grid-column: span 1;
     }
 }

 .d-card {
     background: var(--card-bg);
     border: 1px dashed var(--border-color);
     border-radius: 16px;
     display: flex;
     flex-direction: column;
     overflow: hidden;
 }

 .d-card-header {
     padding: 12px 16px;
     border-bottom: 1px dashed var(--border-color);
     background: rgba(0,0,0,0.01);
 }

     .d-card-header h3 {
         margin: 0;
         font-size: 14px;
         font-weight: 800;
         color: var(--text-main);
     }

 .d-card-body {
     padding: 16px;
     flex: 1;
     text-align: center;
 }

 .chart-body-sm {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     min-height: 120px;
     padding: 10px;
 }

 .mini-chart-container-sm {
     width: 100%;
     height: 120px;
 }

 .tc-status-text {
     font-size: 15px;
     font-weight: 800;
     margin-top: -10px;
     z-index: 2;
     text-transform: capitalize;
     text-align: center;
 }

 .snapshot-mini-sub {
     font-size: 12px;
     font-weight: 700;
     color: var(--text-muted);
     margin-top: -5px;
 }

 /* Metric Badges for Cards */
 .card-metric-badge {
     padding: 4px 12px;
     border-radius: 8px;
     border: 1px solid transparent;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-bottom: -15px;
     margin-top: 15px;
 }

     .card-metric-badge .cm-val {
         font-size: 45px;
         font-weight: 900;
         font-family: monospace;
         letter-spacing: -0.5px;
     }

 .bg-orange-light {
     background: rgba(255, 152, 0, 0.1);
     border-color: rgba(255, 152, 0, 0.2);
     color: #ff9800;
 }

 .bg-blue-light {
     background: rgba(69, 177, 255, 0.1);
     border-color: rgba(69, 177, 255, 0.2);
     color: #45b1ff;
 }

 /* Compact SERP / Related Table */
 .compact-table th {
     font-size: 10px;
     padding: 8px;
     border-bottom: 0px solid var(--border-color);
 }

 .compact-table td {
     padding: 8px;
     font-size: 12px;
     background: transparent;
     border-top: 1px solid var(--border-color);
     border-bottom: none;
 }

 .compact-table tr:hover td {
     background: var(--bg-body);
 }

 .spark-chart-cell-sm {
     width: 80px;
     height: 26px;
 }

 /* Button Utilities */
 .btn-outline-sm {
     background: transparent;
     border: 1px solid var(--border-color);
     color: var(--text-main);
     padding: 4px 10px;
     border-radius: 6px;
     font-weight: 600;
     font-size: 12px;
     display: inline-flex;
     align-items: center;
     gap: 5px;
     cursor: pointer;
     transition: all 0.2s;
 }

 .btn-outline-sm i, .btn-outline-sm svg {
     width: 12px !important;
     height: 12px !important;
 }

     .btn-outline-sm:hover {
         background: var(--bg-body);
         border-color: var(--primary-color);
         color: var(--primary-color);
     }

     .btn-outline-sm.btn-green {
         border-color: var(--success);
         color: var(--success);
     }

         .btn-outline-sm.btn-green:hover {
             background: var(--success);
             color: white;
         }

 /* Words Filter Area (Professional design for Title/Desc words) */
 .section-header-with-filter {
     display: flex;
     align-items: center;
     justify-content: space-between;
     border-bottom: 1px solid var(--border-color);
     padding: 15px;
     padding-bottom: 8px;
     flex-wrap: wrap;
     gap: 10px;
 }

 .word-count-filter {
     display: flex;
     align-items: center;
     gap: 6px;
     flex-wrap: wrap;
 }

 .filter-label {
     font-size: 11px;
     font-weight: 700;
     color: var(--text-muted);
     text-transform: uppercase;
     margin-right: 4px;
 }

 .filter-pill {
     background: var(--bg-body);
     border: 1px solid var(--border-color);
     color: var(--text-muted);
     padding: 3px 10px;
     border-radius: 12px;
     font-size: 11px;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.2s;
 }

     .filter-pill:hover {
         background: var(--card-bg);
         border-color: var(--primary-color);
         color: var(--primary-color);
     }

     .filter-pill.active {
         background: var(--primary-color);
         color: white;
         border-color: var(--primary-color);
     }

 /* New Professional Words Table */
 .words-table-container {
     overflow-x: auto;
     max-height: 400px;
     overflow-y: auto;
     border: 1px solid var(--border-color);
     border-radius: 12px;
     background: var(--bg-body);
 }

 .professional-words-table {
     border-collapse: collapse;
     width: 100%;
     min-width: 500px;
 }

     .professional-words-table th {
         position: sticky;
         top: 0;
         background: var(--card-bg);
         text-align: left;
         padding: 12px 16px;
         color: var(--text-muted);
         font-size: 11px;
         text-transform: uppercase;
         border-bottom: 1px solid var(--border-color);
         z-index: 10;
         font-weight: 800;
         letter-spacing: 0.5px;
     }

     .professional-words-table td {
         padding: 12px 16px;
         border-bottom: 1px solid var(--border-color);
         vertical-align: middle;
     }

     .professional-words-table tbody tr:hover {
         background: var(--card-bg);
     }

     .professional-words-table tbody tr:last-child td {
         border-bottom: none;
     }

 .freq-bar-wrapper {
     display: flex;
     align-items: center;
     gap: 12px;
     width: 100%;
 }

 .freq-bar-bg {
     flex: 1;
     height: 8px;
     background: rgba(0,0,0,0.06);
     border-radius: 6px;
     overflow: hidden;
     display: flex;
 }

 .freq-bar-fill {
     height: 100%;
     background: linear-gradient(90deg, var(--primary-color), var(--blue));
     border-radius: 6px;
     transition: width 0.5s ease-out;
 }

     .freq-bar-fill.progress-green {
         background: linear-gradient(90deg, #47CF73, #2bcbba);
     }

 .freq-val {
     font-size: 12px;
     font-weight: 800;
     color: var(--text-muted);
     width: 40px;
     text-align: right;
     font-family: monospace;
 }

 /* Words lists (reusing) */
.w-term {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.w-metrics {
    display: flex;
    gap: 6px;
    align-items: center;
}

.w-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.2;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.w-badge i, .w-badge svg {
    width: 12px;
    height: 12px;
}

.bg-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.28);
}

.bg-orange {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.28);
}

.bg-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.28);
}

.bg-yellow {
    background: rgba(251, 192, 45, 0.14);
    color: #d97706;
    border-color: rgba(251, 192, 45, 0.3);
}

.bg-green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.08);
}

.w-badge.bg-green:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.bg-red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.28);
}

 .c-text-yellow {
     color: #ffc107;
 }

 .c-text-pink {
     color: #e91e63;
 }

 .c-text-purple {
     color: #9c27b0;
 }

 .c-text-green {
     color: #47CF73;
 }

 .c-text-blue {
     color: #45b1ff;
 }

 .c-text-orange {
     color: #ff9800;
 }

 .c-text-muted {
     color: var(--text-muted);
 }

 .c-text-main {
     color: var(--text-main);
 }

 .font-weight-bold {
     font-weight: 800;
 }

 /* ==========================================================================
   SERP DETAILED TABLE - ADVANCED DATA TABLE ARCHITECTURE (GUINRANK V7)
   ========================================================================== */
.serp-main-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    overflow: visible;
}

/* Header Action Strip */
.serp-analysis-header {
    background: var(--card-bg);
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 22px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.serp-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.serp-header-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.serp-header-title-group .header-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.serp-header-title-group .header-icon-box i,
.serp-header-title-group .header-icon-box svg {
    width: 18px;
    height: 18px;
}

.serp-main-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.serp-sub-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.serp-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-body);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.serp-stat-pill i, .serp-stat-pill svg {
    width: 12px;
    height: 12px;
}

.serp-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Toolbar (Filter Pills + In-Table Search) */
.serp-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

.serp-filter-pills-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.serp-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
}

.serp-filter-pill:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
    background: var(--card-bg);
}

.serp-filter-pill.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px var(--primary-shadow);
}

.serp-filter-pill .pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}

.serp-filter-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.serp-filter-pill .pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.serp-filter-pill .pill-dot.green { background: #10b981; }
.serp-filter-pill .pill-dot.orange { background: #f59e0b; }
.serp-filter-pill .pill-dot.purple { background: #a855f7; }

/* In-Table Search Input */
.serp-in-table-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 240px;
    max-width: 320px;
    flex: 1;
}

.serp-in-table-search .search-ico-wrap {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1;
    z-index: 2;
}

.serp-in-table-search .search-ico-wrap i,
.serp-in-table-search .search-ico-wrap svg,
.serp-in-table-search .search-ico {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    display: block;
}

.serp-in-table-search input {
    width: 100%;
    height: 34px;
    padding: 0 28px 0 32px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.serp-in-table-search input:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px var(--primary-shadow);
}

.serp-in-table-search .clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
}

.serp-in-table-search .clear-search-btn:hover {
    color: var(--text-main);
    background: var(--border-color);
}

/* GuinRank Custom Checkbox Design */
.gr-checkbox {
    display: inline-flex;
    position: relative;
    cursor: pointer;
    user-select: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0;
    vertical-align: middle;
}

.gr-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    margin: 0;
}

.gr-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--bg-body);
    border: 1.5px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gr-checkbox:hover input ~ .checkmark {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-shadow);
    transform: scale(1.05);
}

.gr-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-shadow);
}

.gr-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5.5px;
    top: 2.5px;
    width: 4.5px;
    height: 8.5px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: all 0.2s ease;
}

.gr-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Isolated Scroll Container */
.kw-table-wrap.serp-table-wrap {
    width: 100%;
    overflow-x: auto;
    max-height: 750px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

/* Rich SERP Table */
.serp-table-rich {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.serp-table-rich thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-body);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    white-space: nowrap;
}

.serp-table-rich thead th.th-sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
}

.serp-table-rich thead th.th-sortable:hover {
    background: var(--card-bg);
    color: var(--primary-color);
}

.serp-table-rich .th-sort-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.serp-table-rich .th-sort-wrapper.justify-center {
    width: 100%;
    justify-content: center;
}

.serp-table-rich .sort-icon-box {
    display: inline-flex;
    align-items: center;
}

.serp-table-rich .sort-icon-box i,
.serp-table-rich .sort-icon-box svg {
    width: 12px;
    height: 12px;
}

.serp-table-rich tbody tr {
    transition: background 0.18s ease;
    border-bottom: 1px solid var(--border-color);
}

.serp-table-rich tbody tr:hover {
    background: rgba(59, 130, 246, 0.03);
}

.serp-table-rich tbody tr.is-selected {
    background: rgba(var(--primary-rgb, 59, 130, 246), 0.07) !important;
}

.serp-table-rich tbody tr.is-injected-row {
    border-left: 3px solid #9333ea;
    background: rgba(147, 51, 234, 0.03);
}

.serp-table-rich tbody td {
    padding: 14px 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* Col 1: Podium Rank Badge */
.st-rank-podium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 38px;
    height: 28px;
    padding: 0 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-sizing: border-box;
}

.st-rank-podium.rank-1 {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.4);
    color: #ca8a04;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.15);
}

.st-rank-podium.rank-2 {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.4);
    color: #475569;
}

.st-rank-podium.rank-3 {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.4);
    color: #b45309;
}

.st-rank-podium .rank-medal {
    font-size: 13px;
    line-height: 1;
}

/* Col 2: Competitor Snippet Details */
.st-thumbnail-wrap {
    flex-shrink: 0;
}

.st-thumbnail {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.st-thumbnail:hover {
    transform: scale(1.06);
}

.st-thumbnail .thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.6;
}

.st-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.st-url-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    flex-wrap: wrap;
}

.st-favicon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.st-domain-badge {
    font-weight: 700;
    color: var(--text-main);
    background: var(--bg-body);
    padding: 1px 6px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    font-size: 11px;
}

.st-url-text {
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
    opacity: 0.8;
}

.st-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: all 0.15s;
}

.st-copy-btn:hover {
    color: var(--primary-color);
    background: var(--border-color);
}

.st-copy-btn i, .st-copy-btn svg {
    width: 11px;
    height: 11px;
}

.st-injected-badge {
    font-size: 10.5px;
    font-weight: 800;
    color: #9333ea;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.25);
    padding: 1px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.st-injected-badge i, .st-injected-badge svg {
    width: 10px;
    height: 10px;
}

.st-title-link {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
    word-break: break-word;
}

.st-title-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.st-title-link .external-icon {
    width: 13px;
    height: 13px;
    opacity: 0.6;
    flex-shrink: 0;
}

.st-desc {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
}

/* SEO Meta Signals Corridor */
.st-meta-chips-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.st-signal-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--bg-body);
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.st-signal-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    color: var(--text-muted);
}

.st-signal-pill.on {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

.st-signal-pill:not(.on) {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.st-signal-pill .sig-val {
    font-weight: 900;
}

.st-divider-mini {
    width: 1px;
    height: 14px;
    background: var(--border-color);
}

.st-focus-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
    font-size: 10.5px;
    font-weight: 600;
}

.st-focus-chip i, .st-focus-chip svg {
    width: 11px;
    height: 11px;
}

/* Col 3: Holographic Cyber Score Gauge */
.st-score-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-score-gauge {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: default;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.cyber-score-gauge:hover {
    transform: scale(1.12);
}

.cyber-score-gauge .csg-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cyber-score-gauge .csg-orbital-track {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 0.85;
    stroke-dasharray: 2, 4;
    opacity: 0.45;
}

.cyber-score-gauge .csg-ambient-bg {
    opacity: 0.08;
    transition: opacity 0.25s ease;
}

.cyber-score-gauge:hover .csg-ambient-bg {
    opacity: 0.18;
}

.cyber-score-gauge .csg-track {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 3.2;
    opacity: 0.25;
}

[data-theme="dark"] .cyber-score-gauge .csg-track,
[data-bs-theme="dark"] .cyber-score-gauge .csg-track,
.dark .cyber-score-gauge .csg-track,
body.dark .cyber-score-gauge .csg-track {
    stroke: rgba(255, 255, 255, 0.12);
}

.cyber-score-gauge .csg-bar {
    fill: none;
    stroke-width: 3.4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cyber-score-gauge .csg-center-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cyber-score-gauge .csg-number {
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .cyber-score-gauge .csg-number,
[data-bs-theme="dark"] .cyber-score-gauge .csg-number,
.dark .cyber-score-gauge .csg-number,
body.dark .cyber-score-gauge .csg-number {
    text-shadow: 0 0 12px currentColor;
}

/* Tier Specific Subtle Glow Halos */
.cyber-score-gauge.tier-optimized:hover {
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.cyber-score-gauge.tier-moderate:hover {
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.cyber-score-gauge.tier-low:hover {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

/* Col 4: Word Count & Meter */
.st-words-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.st-words-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    font-family: monospace;
    letter-spacing: -0.3px;
}

.st-words-meter {
    width: 64px;
    height: 5px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.st-words-meter-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    box-shadow: 0 0 6px var(--primary-shadow);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Col 5: Row Quick Actions */
.st-actions-corridor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.st-act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 0;
    text-decoration: none;
}

.st-act-btn:hover {
    transform: translateY(-1px);
}

.st-act-btn.is-scanning {
    background: var(--primary-light) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    cursor: wait;
}

.spin-svg {
    animation: spinLoader 0.9s linear infinite;
}

@keyframes spinLoader {
    100% { transform: rotate(360deg); }
}

.st-act-btn.btn-scan:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 3px 10px var(--primary-shadow);
}

.st-act-btn.btn-open:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.st-act-btn.btn-refresh:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
}

.st-act-btn.btn-delete:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.st-act-btn i, .st-act-btn svg {
    width: 14px;
    height: 14px;
}

/* Empty State */
.serp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    color: var(--text-muted);
}

/* Sticky Floating Bulk Actions Bar */
.sticky-bulk-bar {
    position: sticky;
    bottom: 20px;
    left: 50%;
    margin: 10px auto;
    width: fit-content;
    max-width: 90%;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 18px;
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 15px var(--primary-shadow);
    animation: slideUpBulk 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUpBulk {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.sticky-bulk-bar .bulk-info {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.sticky-bulk-bar .bulk-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

.sticky-bulk-bar .bulk-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-bulk-bar .bulk-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    height: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-body);
    color: var(--text-main);
}

.sticky-bulk-bar .bulk-btn.btn-copy:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.sticky-bulk-bar .bulk-btn.btn-csv:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.sticky-bulk-bar .bulk-btn.btn-clear:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.sticky-bulk-bar .bulk-btn i, .sticky-bulk-bar .bulk-btn svg {
    width: 13px;
    height: 13px;
}

/* Table Footer (Pagination) */
.serp-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: var(--card-bg);
    border-radius: 0 0 18px 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.serp-table-footer .table-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.serp-table-footer .entries-info {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Rows Per Page Toggle Group (10 / 20) */
.serp-perpage-toggle-group {
    display: inline-flex;
    align-items: center;
    background: var(--bg-body);
    padding: 2px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    gap: 2px;
}

.serp-pp-btn {
    padding: 3px 9px;
    height: 24px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    line-height: 1;
}

.serp-pp-btn:hover {
    color: var(--text-main);
}

.serp-pp-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 1px 4px var(--primary-shadow);
}

.pagination-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-body);
    padding: 3px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
}

.pagination-btn-group .pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}

.pagination-btn-group .pag-btn:hover:not(:disabled) {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.pagination-btn-group .pag-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-btn-group .pag-btn i,
.pagination-btn-group .pag-btn svg {
    width: 14px;
    height: 14px;
}

.pagination-btn-group .pag-page-indicator {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    padding: 0 8px;
    white-space: nowrap;
}

/* ==========================================================================
   CUSTOM DROPDOWN & SELECT SYSTEM (GUINRANK STANDARD)
   ========================================================================== */
.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.cs-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
    white-space: nowrap;
}

.cs-trigger:hover {
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.cs-trigger.sm {
    height: 30px;
    padding: 0 10px;
    font-size: 11.5px;
    border-radius: 8px;
}

.cs-arrow {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.custom-select-wrapper.open .cs-arrow {
    transform: rotate(180deg);
}

.cs-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 140px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--border-color);
    padding: 6px;
    z-index: 1000;
    backdrop-filter: blur(16px);
    animation: fadeInDrop 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.cs-dropdown.bottom-up {
    top: auto;
    bottom: calc(100% + 6px);
    animation: fadeInDropUp 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInDropUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.cs-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cs-option:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.cs-option.selected {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
}

/* ==========================================================================
   CUSTOM TOGGLE SWITCH (PREMIUM SAAS UI)
   ========================================================================== */
.custom-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.custom-toggle:hover .toggle-label {
    color: var(--text-main);
}

.toggle-track {
    width: 38px;
    height: 20px;
    background: var(--border-color);
    border-radius: 20px;
    position: relative;
    transition: background 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
}

.toggle-track.active {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.toggle-knob {
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.toggle-track.active .toggle-knob {
    transform: translateX(18px);
}

/* ==========================================================================
   CONTENT HEALTH BADGES (GOOD / LOW / OVER-OPTIMIZED)
   ========================================================================== */
.badge-good {
    display: inline-flex;
    align-items: center;
    gap: 3.5px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

.badge-low {
    display: inline-flex;
    align-items: center;
    gap: 3.5px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

.badge-overopti {
    display: inline-flex;
    align-items: center;
    gap: 3.5px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

.badge-good i, .badge-good svg,
.badge-low i, .badge-low svg,
.badge-overopti i, .badge-overopti svg {
    width: 11px;
    height: 11px;
}

/* ==========================================================================
   SKELETON ROW & LOADING ANIMATION
   ========================================================================== */
.skeleton-row td {
    position: relative;
    overflow: hidden;
    background: rgba(var(--primary-rgb, 59, 130, 246), 0.04) !important;
}

.skeleton-row td::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.15) 50%, transparent 80%);
    animation: shimmerRow 1.6s infinite;
    pointer-events: none;
}

@keyframes shimmerRow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.spin-icon {
    animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-scan:disabled {
    opacity: 0.6;
    cursor: wait !important;
}

/* ==========================================================================
   SERP VISUAL ANALYTICS & INTELLIGENCE MATRIX (COMPACT & THEME ADAPTIVE)
   ========================================================================== */
.btn-outline-sm.btn-insights {
    border-color: var(--border-color);
    color: var(--text-main);
    background: var(--bg-body);
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9px;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline-sm.btn-insights i,
.btn-outline-sm.btn-insights svg {
    width: 13px;
    height: 13px;
    vertical-align: middle;
}

.btn-outline-sm.btn-insights:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--card-bg);
}

.btn-outline-sm.btn-insights.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px var(--primary-shadow);
}

.serp-visual-panel {
    background: transparent;
    border-bottom: 1px dashed var(--border-color);
    padding: 12px 20px 14px;
    animation: slideDownVisual 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideDownVisual {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.serp-visual-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    gap: 14px;
}

@media (max-width: 1100px) {
    .serp-visual-grid {
        grid-template-columns: 260px 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .serp-visual-grid {
        grid-template-columns: 1fr 1fr;
    }
    .serp-visual-grid .serp-v-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .serp-visual-grid {
        grid-template-columns: 1fr;
    }
}

.serp-v-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .serp-v-card,
[data-bs-theme="dark"] .serp-v-card,
.dark .serp-v-card,
body.dark .serp-v-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.serp-v-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-light);
}

.serp-v-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.serp-v-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
}

.serp-v-title i, .serp-v-title svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

.serp-v-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.serp-v-body {
    flex: 1;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Optimization Health Tiers SVG Text Color Adaptations */
#chart-serp-health-radial .apexcharts-datalabel-value,
#chart-serp-health-radial .apexcharts-radialbar-value {
    fill: var(--text-main) !important;
}

#chart-serp-health-radial .apexcharts-datalabel-name,
#chart-serp-health-radial .apexcharts-radialbar-label {
    fill: var(--text-muted) !important;
}

[data-theme="dark"] #chart-serp-health-radial .apexcharts-radialbar-track path,
[data-bs-theme="dark"] #chart-serp-health-radial .apexcharts-radialbar-track path,
.dark #chart-serp-health-radial .apexcharts-radialbar-track path,
body.dark #chart-serp-health-radial .apexcharts-radialbar-track path {
    stroke: rgba(255, 255, 255, 0.08) !important;
}

/* SERP Signals List (Card 2) */
.serp-signals-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    height: 100%;
}

.serp-sig-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.serp-sig-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
}

.serp-sig-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
}

.sig-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sig-dot.bg-blue { background: #3b82f6; box-shadow: 0 0 6px rgba(59, 130, 246, 0.5); }
.sig-dot.bg-purple { background: #8b5cf6; box-shadow: 0 0 6px rgba(139, 92, 246, 0.5); }
.sig-dot.bg-green { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.5); }

.serp-sig-percent {
    font-family: monospace;
    font-size: 12px;
    font-weight: 800;
}

.c-text-blue { color: #3b82f6 !important; }
.c-text-purple { color: #8b5cf6 !important; }
.c-text-green { color: #10b981 !important; }

.serp-sig-track {
    width: 100%;
    height: 8px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.serp-sig-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.serp-sig-fill.fill-blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.serp-sig-fill.fill-purple {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.serp-sig-fill.fill-green {
    background: linear-gradient(90deg, #10b981, #34d399);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Strategic Benchmark Grid inside Card 3 */
.serp-bench-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: 100%;
}

.serp-bench-item {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    transition: all 0.15s ease;
}

.serp-bench-item:hover {
    border-color: var(--primary-color);
    background: var(--card-bg);
    transform: translateY(-1px);
}

.serp-bench-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.serp-bench-label i, .serp-bench-label svg {
    width: 11px;
    height: 11px;
}

.serp-bench-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    font-family: monospace;
    line-height: 1.2;
}

.serp-bench-sub {
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   MODAL & ADVANCED FILTERS
        ========================================================================== */
 .custom-modal-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     background: rgba(0, 0, 0, 0.72);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     z-index: 99999;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 20px;
     box-sizing: border-box;
     animation: pdmFadeIn 0.25s ease;
 }

 .custom-modal-content {
     background: var(--card-bg);
     width: 94vw;
     height: 88vh;
     max-width: 1300px;
     max-height: 920px;
     border-radius: 20px;
     box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-color);
     border: 1px solid var(--border-color);
     display: flex;
     flex-direction: column;
     overflow: hidden;
     padding: 22px;
     animation: pdmPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
     box-sizing: border-box;
 }

 .adv-filters-bar {
     background: var(--bg-body);
     border: 1px solid var(--border-color);
     border-radius: 12px;
     padding: 8px 16px;
 }

 .adv-filter-group {
     display: flex;
     align-items: center;
     gap: 6px;
 }

 .af-icon {
     width: 16px;
     height: 16px;
     color: var(--text-muted);
 }

 .af-label {
     font-size: 11px;
     font-weight: 800;
     color: var(--text-muted);
     text-transform: uppercase;
     white-space: nowrap;
 }

 .adv-filter-group input, .adv-filter-group select {
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     padding: 6px 10px;
     border-radius: 8px;
     font-size: 13px;
     color: var(--text-main);
     outline: none;
     transition: border-color 0.2s;
 }

     .adv-filter-group input:focus, .adv-filter-group select:focus {
         border-color: var(--primary-color);
     }

 .adv-filter-divider {
     width: 1px;
     height: 24px;
     background: var(--border-color);
     margin: 0 4px;
 }

 .table-hover tbody tr:hover {
     background: rgba(0,0,0,0.02);
 }

 .font-size-13 {
     font-size: 13px;
 }

 .flex-row {
     display: flex;
     flex-direction: row;
     gap: 8px;
 }

 .flex-col {
     display: flex;
     flex-direction: column;
 }

 .items-center {
     align-items: center;
 }

 .items-start {
     align-items: flex-start;
 }

 .justify-between {
     justify-content: space-between;
 }

 .justify-center {
     justify-content: center;
 }

 .gap-1 {
     gap: 4px;
 }

 .gap-2 {
     gap: 8px;
 }

 .gap-3 {
     gap: 12px;
 }

 .m-0 {
     margin: 0;
 }

 .w-100 {
     width: 100%;
 }

 .flex-1 {
     flex: 1;
 }

 .flex-wrap {
     flex-wrap: wrap;
 }

 .text-center {
     text-align: center;
 }

 .mt-1 {
     margin-top: 4px;
 }

 .mt-2 {
     margin-top: 8px;
 }

 .mt-3 {
     margin-top: 16px;
 }

 .mt-4 {
     margin-top: 24px;
 }

 .mb-1 {
     margin-bottom: 4px;
 }

 .mb-3 {
     margin-bottom: 16px;
 }

 .mb-4 {
     margin-bottom: 24px;
 }

 .pt-3 {
     padding-top: 16px;
 }

 .pb-0 {
     padding-bottom: 0;
 }

 .ml-2 {
     margin-left: 8px;
 }
 /* PROFESSIONAL WORDS TABLE CSS */
 .professional-words-table {
     width: 100%;
     border-collapse: separate;
     border-spacing: 0;
     margin-top: 10px;
 }
 .professional-words-table th {
     background: var(--bg-body);
     color: var(--text-muted);
     font-weight: 600;
     text-transform: uppercase;
     font-size: 11px;
     padding: 12px 16px;
     border-bottom: 2px solid var(--border-color);
     text-align: left;
 }
 .professional-words-table td {
     padding: 12px 16px;
     border-bottom: 1px solid var(--border-color);
     background: var(--card-bg);
     transition: background 0.2s ease;
 }
 .professional-words-table tbody tr:hover td {
     background: var(--bg-body);
 }
 .professional-words-table tbody tr:last-child td {
     border-bottom: none;
 }
 
 .freq-bar-wrapper {
     display: flex;
     align-items: center;
     gap: 12px;
 }
 .freq-bar-bg {
     flex: 1;
     height: 6px;
     background: var(--border-color);
     border-radius: 4px;
     overflow: hidden;
 }
 .freq-bar-fill {
     height: 100%;
     background: linear-gradient(90deg, #b886fa, #8b5cf6);
     border-radius: 4px;
 }
 .freq-bar-fill.progress-green {
     background: linear-gradient(90deg, #4facfe, #00f2fe);
 }
 .freq-val {
     font-size: 13px;
     font-weight: 600;
     color: var(--text-main);
     min-width: 24px;
 }
 
 /* WORD COUNT FILTER PILLS */
 .word-count-filter {
     display: flex;
     align-items: center;
     gap: 8px;
     flex-wrap: wrap;
 }
 .filter-label {
     font-size: 13px;
     color: var(--text-muted);
     font-weight: 600;
 }
 .filter-pill {
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     color: var(--text-main);
     padding: 4px 12px;
     border-radius: 20px;
     font-size: 12px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.2s ease;
 }
 .filter-pill:hover {
     background: var(--bg-body);
     border-color: var(--primary-color);
 }
 .filter-pill.active {
     background: var(--primary-color);
     color: white;
     border-color: var(--primary-color);
     box-shadow: 0 2px 6px var(--primary-shadow);
 }


 /* TOGGLE SWITCH CSS */
 .custom-toggle {
     display: flex;
     align-items: center;
     gap: 10px;
     cursor: pointer;
 }
 .toggle-label {
     font-size: 14px;
     font-weight: 600;
     color: var(--text-main);
 }
 .toggle-track {
     width: 44px;
     height: 24px;
     background: var(--border-color);
     border-radius: 12px;
     position: relative;
     transition: background 0.3s ease;
 }
 .toggle-track.active {
     background: #10b981; /* Green success */
 }
 .toggle-knob {
     width: 18px;
     height: 18px;
     background: white;
     border-radius: 50%;
     position: absolute;
     top: 3px;
     left: 3px;
     transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
     box-shadow: 0 2px 4px rgba(0,0,0,0.2);
 }
 .toggle-track.active .toggle-knob {
     transform: translateX(20px);
 }

 /* SERP SUMMARY STRIP */
 .serp-summary-strip {
     display: flex;
     align-items: center;
     gap: 20px;
     background: var(--bg-body);
     padding: 12px 24px;
     border-radius: 12px;
     border: 1px solid var(--border-color);
 }
 .ss-item {
     display: flex;
     flex-direction: column;
     gap: 4px;
 }
 .ss-label {
     font-size: 12px;
     color: var(--text-muted);
     text-transform: uppercase;
     font-weight: 600;
 }
 .ss-val {
     font-size: 18px;
     font-weight: 800;
     color: var(--text-main);
 }
 .ss-divider {
     width: 1px;
     height: 30px;
     background: var(--border-color);
 }
 
 /* CPC Badge specific */
 .cpc-badge {
     background: rgba(16, 185, 129, 0.1);
     color: #10b981;
     padding: 4px 8px;
     border-radius: 6px;
     font-weight: 700;
     font-size: 14px;
     display: inline-flex;
     align-items: center;
     gap: 4px;
     margin: auto;
     margin-top: 17px;
 }
 
 /* Advanced Filters main dashboard */
 .adv-filters-bar {
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     border-radius: 12px;
     padding: 12px 16px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.02);
 }
 .adv-filter-group {
     display: flex;
     align-items: center;
     gap: 8px;
 }
 .adv-filter-group input, .adv-filter-group select {
     background: var(--bg-body);
     border: 1px solid var(--border-color);
     border-radius: 6px;
     padding: 6px 10px;
     font-size: 13px;
     color: var(--text-main);
     outline: none;
     transition: border-color 0.2s;
 }
 .adv-filter-group input:focus, .adv-filter-group select:focus {
     border-color: var(--primary-color);
 }
 .af-label {
     font-size: 12px;
     font-weight: 600;
     color: var(--text-muted);
 }
 .adv-filter-divider {
     width: 1px;
     height: 24px;
     background: var(--border-color);
 }
 /* LINGUISTIC DATA BLOCK CSS (Modern Redesign) */
 .ling-tabs-container {
     margin-top: 24px;
     padding-bottom: 10px;
     display: flex;
     overflow-x: auto;
 }
 .ling-tabs-wrapper {
     display: inline-flex;
     background: var(--bg-body);
     padding: 6px;
     border-radius: 16px;
     gap: 8px;
     border: 1px solid var(--border-color);
     margin: 7px;
 }
 .ling-tab-btn {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 10px 20px 10px 10px;
     background: transparent;
     border: none;
     border-radius: 12px;
     color: var(--text-muted);
     font-weight: 700;
     font-size: 14px;
     cursor: pointer;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 }
 .ling-tab-btn:hover {
     background: rgba(0,0,0,0.02);
     color: var(--text-main);
 }
 .ling-tab-btn.active {
     background: var(--card-bg);
     color: var(--text-main);
     box-shadow: 0 4px 12px rgba(0,0,0,0.05);
 }
 .ling-icon-box {
     width: 32px;
     height: 32px;
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: transform 0.3s ease;
 }
 .ling-tab-btn.active .ling-icon-box {
     transform: scale(1.1);
 }
 .ling-icon-box svg {
     width: 18px;
     height: 18px;
 }

 /* PREMIUM DATA ROWS (Outlines) */
 .premium-data-row {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 14px 16px;
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     border-radius: 12px;
     margin-bottom: 10px;
     transition: transform 0.2s, box-shadow 0.2s;
 }
 .premium-data-row:hover {
     transform: translateX(4px);
     box-shadow: 0 4px 15px rgba(0,0,0,0.03);
     border-color: var(--primary-light);
 }
 .pdr-term {
     font-weight: 700;
     color: var(--text-main);
     font-size: 14px;
     display: flex;
     align-items: center;
     gap: 10px;
 }
 .pdr-term svg {
     width: 18px;
     height: 18px;
     color: var(--text-muted);
 }
 
 /* COMPETITOR ACCORDION (Modern) */
 .premium-accordion-item {
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     border-radius: 16px;
     margin-bottom: 12px;
     overflow: hidden;
     transition: box-shadow 0.2s;
 }
 .premium-accordion-item:hover {
     box-shadow: 0 4px 15px rgba(0,0,0,0.04);
 }
 .premium-accordion-head {
     display: flex;
     align-items: center;
     gap: 12px;
     padding: 16px;
     cursor: pointer;
     background: transparent;
     transition: background 0.2s;
 }
 .premium-accordion-head:hover {
     background: var(--bg-body);
 }
 .pa-rank {
     width: 28px;
     height: 28px;
     background: var(--text-main);
     color: var(--bg-body);
     border-radius: 8px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: 800;
     font-size: 13px;
 }
 .pa-domain {
     font-weight: 700;
     color: var(--text-main);
     font-size: 14px;
     flex: 1;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }
 .pa-chevron {
     width: 20px;
     height: 20px;
     color: var(--text-muted);
     transition: transform 0.3s;
 }
 .pa-chevron.rotated {
     transform: rotate(180deg);
 }
 .premium-accordion-body {
     padding: 0 16px 16px 16px;
     border-top: 1px dashed var(--border-color);
     margin-top: 4px;
     padding-top: 16px;
 }
 .pa-tag-row {
     display: flex;
     align-items: flex-start;
     gap: 10px;
     margin-bottom: 8px;
     padding: 8px 12px;
     border-radius: 8px;
     background: var(--bg-body);
 }
 .pa-tag-row svg {
     width: 16px;
     height: 16px;
     margin-top: 2px;
     color: var(--text-muted);
 }
 .pa-tag-row.tag-level-1 { margin-left: 0; border-left: 4px solid var(--purple); }
 .pa-tag-row.tag-level-2 { margin-left: 20px; border-left: 4px solid var(--blue); }
 .pa-tag-row.tag-level-3 { margin-left: 40px; border-left: 4px solid var(--success); }
 .pa-tag-text {
     font-size: 13px;
     color: var(--text-main);
     font-weight: 600;
     line-height: 1.4;
 }

 /* SENTIMENTS MODERN CARDS */
 .premium-sentiment-card {
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     border-radius: 16px;
     padding: 16px;
     margin-bottom: 12px;
     display: flex;
     flex-direction: column;
     gap: 12px;
     transition: transform 0.2s, box-shadow 0.2s;
 }
 .premium-sentiment-card:hover {
     transform: translateY(-2px);
     box-shadow: 0 6px 20px rgba(0,0,0,0.04);
     border-color: var(--success);
 }
 .psc-top {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }
 .psc-term {
     font-size: 15px;
     font-weight: 800;
     color: var(--text-main);
 }
 .psc-badge {
     background: rgba(34, 195, 60, 0.15);
     color: var(--success);
     padding: 4px 10px;
     border-radius: 8px;
     font-size: 12px;
     font-weight: 700;
     display: flex;
     align-items: center;
     gap: 4px;
 }
 .psc-progress-wrap {
     height: 8px;
     background: var(--bg-body);
     border-radius: 4px;
     overflow: hidden;
 }
 .psc-progress-fill {
     height: 100%;
     background: linear-gradient(90deg, #34d399, #10b981);
     border-radius: 4px;
     transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
 }
 /* MODERN WORDS GRID (Titles & Descriptions) */
 .words-modern-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
     gap: 12px;
     padding: 15px;
     padding-top: 15px;
 }
 .word-chip-card {
     background: var(--card-bg);
     border: 1px solid var(--border-color);
     border-radius: 12px;
     padding: 12px 16px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
 }
 .word-chip-card:hover {
     border-color: var(--primary-light);
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(0,0,0,0.05);
 }
 .wcc-left {
     display: flex;
     align-items: center;
     gap: 10px;
     flex: 1;
     overflow: hidden;
 }
 .wcc-icon {
     color: var(--text-muted);
     width: 16px;
     height: 16px;
     flex-shrink: 0;
 }
 .wcc-text {
     font-weight: 700;
     color: var(--text-main);
     font-size: 14px;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }
 .wcc-right {
     display: flex;
     align-items: center;
     gap: 12px;
     flex-shrink: 0;
 }
 .wcc-freq {
     width: 60px;
     height: 6px;
     background: var(--bg-body);
     border: 1px solid var(--border-color);
     border-radius: 4px;
     overflow: hidden;
 }
 .wcc-freq-fill {
     height: 100%;
     background: linear-gradient(90deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 70%,var(--primary-color)));
     border-radius: 4px;
     transition: width 0.4s ease;
     box-shadow: 0 0 6px var(--primary-shadow);
 }
 .wcc-freq-fill.desc {
      background: linear-gradient(90deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 70%,var(--primary-color)));
     box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
 }
 .wcc-badge {
     font-size: 11.5px;
     font-weight: 850;
     padding: 3px 8px;
     background: color-mix(in srgb, var(--primary-color) 12%, transparent);
     color: var(--primary-color);
     border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
     border-radius: 8px;
     min-width: 32px;
     text-align: center;
     box-shadow: 0 1px 4px var(--primary-shadow);
     font-family: monospace;
     transition: all 0.2s ease;
 }
 .wcc-badge.desc {
     background: rgba(16, 185, 129, 0.12);
     color: #10b981;
     border: 1px solid rgba(16, 185, 129, 0.25);
     box-shadow: 0 1px 4px rgba(16, 185, 129, 0.1);
 }
 .word-chip-card:hover .wcc-badge {
     background: var(--primary-color);
     color: #ffffff;
     border-color: var(--primary-color);
 }
 .word-chip-card:hover .wcc-badge.desc {
     background: #10b981;
     color: #ffffff;
     border-color: #10b981;
 }

 .col-header{
     gap: 6px;
     display: flex;
 }

 .has-data {
     padding-top: 0;
 }

 @keyframes fadeOut {
     0% {
         opacity: 1;
         max-height: 500px;
     }

     100% {
         opacity: 0;
         max-height: 0;
         padding: 0;
         margin: 0;
         overflow: hidden;
     }
 }

 .fadeout {
     animation: fadeOut 0.3s ease-in-out forwards;
     pointer-events: none;
 }
 
.ka-img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    padding: 8px;
}
.ka-img-grid .st-thumbnail {
    width: 100% !important;
    height: 80px !important;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
}
.ka-img-grid .st-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Inject Modal Styles (GuinRank Theme Standard) */
.inject-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.inject-modal-container {
    background: var(--card-bg);
    border-radius: 18px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transform: scale(1);
    animation: modalPopIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.inject-modal-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-body);
    padding: 16px 20px;
}

.inject-icon-box {
    background: var(--primary-light);
    color: var(--primary-color);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-light);
    box-shadow: 0 2px 8px var(--primary-shadow);
}

.inject-modal-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--text-main);
}

.inject-modal-subtitle {
    margin: 3px 0 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.inject-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inject-close-btn:hover {
    background: var(--bg-body);
    color: var(--text-main);
}

.inject-modal-body {
    padding: 20px;
    background: var(--card-bg);
}

.inject-modal-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.inject-modal-input {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.inject-modal-input:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px var(--primary-shadow);
}

.inject-modal-error {
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.inject-modal-error .error-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.inject-modal-footer {
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
    padding: 14px 20px;
}

.inject-btn-cancel {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inject-btn-cancel:hover {
    background: var(--card-bg);
    border-color: var(--text-muted);
}

.inject-btn-submit {
    padding: 9px 22px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-shadow);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.inject-btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 6px 20px var(--primary-shadow);
}

.inject-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.ka-img-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ka-img-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1;
}
.ka-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.st-tab-btn {
    background: var(--card-bg);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}
.st-tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

/* ==========================================================================
   PAGE DETAILS MODAL (GUINRANK DESIGN SYSTEM STANDARD)
   ========================================================================== */
.pdm-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: pdmFadeIn 0.25s ease;
}

@keyframes pdmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pdmPopIn {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.pdm-modal {
    background: var(--card-bg);
    width: 94vw;
    max-width: 1100px;
    height: 88vh;
    max-height: 920px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pdmPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.pdm-modal > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    flex: 1;
}

/* Header */
.pdm-header {
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.pdm-header-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.pdm-avatar-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pdm-og-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdm-favicon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
}

.pdm-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    border-radius: 10px;
}

.pdm-avatar-fallback svg {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

.pdm-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.pdm-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pdm-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.pdm-type-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 7px;
    border-radius: 6px;
    flex-shrink: 0;
}

.pdm-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pdm-url-link {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 480px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdm-url-link:hover {
    text-decoration: underline;
}

.pdm-url-link i, .pdm-url-link svg {
    width: 11px;
    height: 11px;
}

.pdm-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pdm-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdm-btn-action:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-body);
}

.pdm-btn-action i, .pdm-btn-action svg {
    width: 13px;
    height: 13px;
}

.pdm-icon-action-btn {
    background: transparent;
    border: none;
    padding: 2px 4px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.pdm-icon-action-btn:hover {
    color: var(--primary-color);
}

.pdm-icon-action-btn i, .pdm-icon-action-btn svg {
    width: 12px;
    height: 12px;
}

.pdm-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdm-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.pdm-close-btn i, .pdm-close-btn svg {
    width: 16px;
    height: 16px;
}

/* Universal GuinRank Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar,
.pdm-scroll-body::-webkit-scrollbar,
.pdm-tab-body::-webkit-scrollbar,
.pdm-article-view::-webkit-scrollbar,
.pdm-links-scroll::-webkit-scrollbar,
.pdm-headings-list::-webkit-scrollbar,
.dropdown-list.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track,
.pdm-scroll-body::-webkit-scrollbar-track,
.pdm-tab-body::-webkit-scrollbar-track,
.pdm-article-view::-webkit-scrollbar-track,
.pdm-links-scroll::-webkit-scrollbar-track,
.pdm-headings-list::-webkit-scrollbar-track,
.dropdown-list.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb,
.pdm-scroll-body::-webkit-scrollbar-thumb,
.pdm-tab-body::-webkit-scrollbar-thumb,
.pdm-article-view::-webkit-scrollbar-thumb,
.pdm-links-scroll::-webkit-scrollbar-thumb,
.pdm-headings-list::-webkit-scrollbar-thumb,
.dropdown-list.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    border: 1px solid transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover,
.pdm-scroll-body::-webkit-scrollbar-thumb:hover,
.pdm-tab-body::-webkit-scrollbar-thumb:hover,
.pdm-article-view::-webkit-scrollbar-thumb:hover,
.pdm-links-scroll::-webkit-scrollbar-thumb:hover,
.pdm-headings-list::-webkit-scrollbar-thumb:hover,
.dropdown-list.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.custom-scrollbar,
.pdm-scroll-body,
.pdm-tab-body,
.pdm-article-view,
.pdm-links-scroll,
.pdm-headings-list,
.dropdown-list.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* Scroll Body */
.pdm-scroll-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* KPI Quick Metrics */
.pdm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    flex-shrink: 0;
}

.pdm-kpi-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 13px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    transition: transform 0.2s, border-color 0.2s;
}

.pdm-kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.pdm-kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdm-kpi-icon i, .pdm-kpi-icon svg {
    width: 16px;
    height: 16px;
}

.pdm-kpi-card.kpi-words .pdm-kpi-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.pdm-kpi-card.kpi-size .pdm-kpi-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.pdm-kpi-card.kpi-speed .pdm-kpi-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.pdm-kpi-card.kpi-links .pdm-kpi-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.pdm-kpi-card.kpi-images .pdm-kpi-icon { background: rgba(236, 72, 153, 0.1); color: #ec4899; }

.pdm-kpi-val {
    font-size: 17px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.1;
}

.pdm-kpi-lbl {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Sticky Tabs Bar */
.pdm-tabs-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    padding: 6px 8px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: -18px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.pdm-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.pdm-tab-pill i, .pdm-tab-pill svg {
    width: 13px;
    height: 13px;
}

.pdm-tab-pill:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .pdm-tab-pill:hover,
[data-bs-theme="dark"] .pdm-tab-pill:hover,
.dark .pdm-tab-pill:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pdm-tab-pill.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-shadow);
}

.pdm-tab-pill.active .pdm-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: transparent;
}

.pdm-pill-count {
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Tab Panels Body */
.pdm-tab-body {
    background: var(--bg-body);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    padding: 18px;
    flex: 1 0 auto;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Article Reading View & Clean Markdown Typography */
.pdm-article-view {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-main);
    word-break: break-word;
    box-sizing: border-box;
}

.pdm-article-view h1,
.pdm-article-view h2,
.pdm-article-view h3,
.pdm-article-view h4,
.pdm-article-view h5,
.pdm-article-view h6 {
    color: var(--text-main);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.35;
}

.pdm-article-view h1 { font-size: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.pdm-article-view h2 { font-size: 17px; }
.pdm-article-view h3 { font-size: 15.5px; }
.pdm-article-view h4 { font-size: 14.5px; }

.pdm-article-view p {
    margin-bottom: 14px;
}

/* Constrained, Clean & Responsive Article Images */
.pdm-article-view img {
    max-width: 100% !important;
    max-height: 280px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 14px auto !important;
    border-radius: 10px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-body);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: zoom-in;
}

.pdm-article-view img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.pdm-article-view figure {
    margin: 14px 0;
    text-align: center;
    max-width: 100%;
}

.pdm-article-view figcaption {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-style: italic;
}

.pdm-article-view ul,
.pdm-article-view ol {
    margin: 10px 0 14px 20px;
    padding: 0;
}

.pdm-article-view li {
    margin-bottom: 6px;
}

.pdm-article-view blockquote {
    margin: 14px 0;
    padding: 10px 16px;
    border-left: 4px solid var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0 8px 8px 0;
    color: var(--text-main);
    font-style: italic;
}

.pdm-article-view pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 14px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 12.5px;
    margin: 14px 0;
    border: 1px solid var(--border-color);
}

.pdm-article-view code {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.pdm-article-view pre code {
    background: transparent;
    padding: 0;
}

.pdm-article-view table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 13px;
    display: block;
    overflow-x: auto;
}

.pdm-article-view table th,
.pdm-article-view table td {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.pdm-article-view table th {
    background: var(--bg-body);
    font-weight: 700;
}

.pdm-article-view a {
    color: var(--primary-color);
    text-decoration: underline;
    word-break: break-all;
}

/* Meta SERP Google Emulator */
.serp-google-preview {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    font-family: Arial, sans-serif;
}

.sg-favicon-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sg-domain {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a0dab;
    margin: 0 0 4px 0;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}

[data-theme="dark"] .sg-title,
[data-bs-theme="dark"] .sg-title,
.dark .sg-title {
    color: #8ab4f8;
}

.sg-snippet {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

/* Meta Tags Grid */
.pdm-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.pdm-meta-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdm-meta-key {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pdm-meta-val {
    font-size: 12.5px;
    color: var(--text-main);
    word-break: break-word;
}

/* Headings Tree */
.pdm-headings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

.pdm-heading-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-main);
    word-break: break-word;
    flex-shrink: 0;
}

.pdm-h-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
}

.pdm-h-badge.h1 { background: rgba(147, 51, 234, 0.12); color: #9333ea; border: 1px solid rgba(147, 51, 234, 0.25); }
.pdm-h-badge.h2 { background: rgba(59, 130, 246, 0.12); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.25); }
.pdm-h-badge.h3 { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.pdm-h-badge.h4 { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.25); }
.pdm-h-badge.h5, .pdm-h-badge.h6 { background: var(--bg-body); color: var(--text-muted); border: 1px solid var(--border-color); }

/* Links Columns */
.pdm-links-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.pdm-link-card-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    max-height: 480px;
}

.pdm-link-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.pdm-link-box-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.pdm-links-scroll {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdm-link-item {
    font-size: 12px;
    color: var(--text-main);
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.pdm-link-item a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.pdm-link-item a:hover {
    color: var(--primary-color);
}

/* Radar Loading State */
.pdm-loading-box {
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pdm-radar-spinner {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.pdm-radar-spinner i, .pdm-radar-spinner svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 2;
}

.pdm-radar-spinner .radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0.3;
    animation: radarPulse 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.pdm-radar-spinner .radar-ring.r1 { width: 100%; height: 100%; animation-delay: 0s; }
.pdm-radar-spinner .radar-ring.r2 { width: 75%; height: 75%; animation-delay: 0.3s; }
.pdm-radar-spinner .radar-ring.r3 { width: 50%; height: 50%; animation-delay: 0.6s; }

@keyframes radarPulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.pdm-load-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px 0;
}

.pdm-load-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
    max-width: 400px;
}
.skeleton-row {
    animation: skeleton-pulse 1.5s infinite ease-in-out;
    opacity: 0.6;
}
.skeleton-row td {
    pointer-events: none;
}
.skeleton-row .st-title-link, .skeleton-row .st-desc {
    background: #f1f5f9;
    color: var(--text-muted);
    border-radius: 4px;
    padding: 2px 4px;
}
@keyframes skeleton-pulse {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}

/* ============================================================
   PAGE DETAILS MODAL: VISUAL SEO AUDIT & APEXCHARTS
============================================================ */

.pdm-audit-hero-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    padding: 22px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .pdm-audit-hero-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Cyber Gauge Left Col */
.pdm-gauge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

@media (max-width: 900px) {
    .pdm-gauge-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
    }
}

.pdm-gauge-wrap {
    position: relative;
    width: 250px;
    height: 165px;
    display: flex;
    justify-content: center;
}

.pdm-svg-meter {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.pdm-outer-guide {
    stroke: var(--border-color);
    opacity: 0.45;
}

.pdm-progress-arc {
    transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdm-orb-outer,
.pdm-orb-inner {
    transition: cx 0.9s ease, cy 0.9s ease;
}

.pdm-center-hologram {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pdm-score-glow {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.2;
    pointer-events: none;
}

.pdm-score-caption {
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pdm-score-number-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1;
    margin: 2px 0;
}

.pdm-score-number {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

.pdm-score-max {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.pdm-score-tier-badge {
    font-size: 10px;
    font-weight: 850;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pdm-score-tier-badge.grade-aplus,
.pdm-score-tier-badge.grade-a {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pdm-score-tier-badge.grade-b {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.pdm-score-tier-badge.grade-c {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pdm-score-tier-badge.grade-d {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 5-Stage LED Strip */
.pdm-led-strip {
    display: flex;
    gap: 5px;
    width: 100%;
    max-width: 240px;
}

.pdm-led-seg {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.pdm-led-seg.is-active,
.pdm-led-seg.is-passed {
    opacity: 1;
}

.pdm-led-seg.is-active .pdm-seg-bar {
    box-shadow: 0 0 8px currentColor;
}

.pdm-seg-bar {
    width: 100%;
    height: 4px;
    border-radius: 3px;
}

.pdm-seg-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
}

/* Actionable Advice Card */
.pdm-advice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 100%;
    max-width: 270px;
}

.pdm-advice-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdm-advice-icon i, .pdm-advice-icon svg {
    width: 15px;
    height: 15px;
}

.pdm-advice-text {
    font-size: 11.5px;
    font-weight: 650;
    color: var(--text-main);
    line-height: 1.35;
}

/* Pillars Right Col */
.pdm-pillars-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.pdm-pillars-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdm-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .pdm-pillars-grid {
        grid-template-columns: 1fr;
    }
}

.pdm-pillar-item {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.pdm-pillar-item:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

.pdm-pil-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.pdm-pil-name {
    font-size: 11.5px;
    font-weight: 750;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pdm-pil-name i, .pdm-pil-name svg {
    width: 12px;
    height: 12px;
}

.pdm-pil-val {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.pdm-pil-progress {
    height: 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

[data-theme="dark"] .pdm-pil-progress,
[data-bs-theme="dark"] .pdm-pil-progress,
.dark .pdm-pil-progress {
    background: rgba(255, 255, 255, 0.08);
}

.pdm-pil-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdm-pil-bar.bg-blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.pdm-pil-bar.bg-green { background: linear-gradient(90deg, #10b981, #34d399); }
.pdm-pil-bar.bg-purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.pdm-pil-bar.bg-cyan { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.pdm-pil-bar.bg-amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.pdm-pil-bar.bg-pink { background: linear-gradient(90deg, #ec4899, #f472b6); }

.pdm-pil-foot {
    display: flex;
    justify-content: flex-end;
}

.pdm-pil-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
}

/* 3-Column Visual Charts Grid (Futuristic & Cyber-Aesthetic) */
.pdm-audit-charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .pdm-audit-charts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .pdm-audit-charts-grid {
        grid-template-columns: 1fr;
    }
}

/* 2-Column Visual Charts Grid (Legacy/Fallback) */
.pdm-audit-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 16px;
}

@media (max-width: 860px) {
    .pdm-audit-grid {
        grid-template-columns: 1fr;
    }
}

.pdm-chart-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.pdm-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* Card Subtle Ambient Glow Overlays */
.pdm-chart-card::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.55;
    border-radius: inherit;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.pdm-chart-radar-card::before {
    background: radial-gradient(circle at top left, color-mix(in srgb, var(--primary-color) 12%, transparent) 0%, transparent 65%);
}

.pdm-chart-headings-card::before {
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.12) 0%, transparent 65%);
}

.pdm-chart-links-card::before {
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.12) 0%, transparent 65%);
}

.pdm-chart-card:hover::before {
    opacity: 0.85;
}

.pdm-chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.pdm-chart-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Glowing Icon Halo Boxes */
.pdm-card-icon-halo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.2s ease;
}

.pdm-card-icon-halo i, .pdm-card-icon-halo svg {
    width: 18px;
    height: 18px;
}

.pdm-card-icon-halo.halo-blue {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.pdm-card-icon-halo.halo-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.2);
}

.pdm-card-icon-halo.halo-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.pdm-card-title-texts {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pdm-card-main-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.pdm-card-sub-title {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Pulsing Badge Accents */
.badge-blue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 750;
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.badge-purple {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 750;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.pulse-blue {
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

.pulse-purple {
    background: #8b5cf6;
    box-shadow: 0 0 8px #8b5cf6;
}

.pulse-green {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.pdm-chart-tabs-switch {
    display: inline-flex;
    background: var(--bg-body);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    gap: 2px;
}

.pdm-chart-tab-btn {
    border: none;
    background: transparent;
    font-size: 11px;
    font-weight: 750;
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.pdm-chart-tab-btn i, .pdm-chart-tab-btn svg {
    width: 12px;
    height: 12px;
}

.pdm-chart-tab-btn:hover {
    color: var(--text-main);
}

.pdm-chart-tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 6px var(--primary-shadow);
}

.pdm-chart-card-body {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    z-index: 2;
}

/* ==========================================================================
   Cybernetic High-Tech SVG Visual Suite (Radar, Headings, Links)
   ========================================================================== */
.pdm-cyber-chart-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdm-svg-radar,
.pdm-svg-headings,
.pdm-svg-links {
    width: 100%;
    height: 100%;
    max-height: 250px;
    overflow: visible;
}

/* 1. Radar Matrix SVG Styles */
.pdm-radar-grid-poly {
    fill: none;
    stroke: var(--border-color);
    stroke-opacity: 0.35;
    stroke-width: 1;
    stroke-dasharray: 2, 4;
}

.pdm-radar-grid-poly.is-outer {
    stroke-opacity: 0.65;
    stroke-dasharray: none;
    stroke-width: 1.2;
}

.pdm-radar-spoke {
    stroke: var(--border-color);
    stroke-opacity: 0.3;
    stroke-width: 1;
    stroke-dasharray: 2, 4;
}

.pdm-radar-active-poly {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdm-radar-node-halo {
    opacity: 0.45;
}

.pdm-radar-node-core {
    transition: transform 0.2s ease;
}

.pdm-radar-axis-label {
    font-size: 10px;
    font-weight: 750;
    fill: var(--text-muted);
    font-family: inherit;
    letter-spacing: 0.2px;
}

.pdm-radar-floating-badge {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pdm-rf-val {
    font-size: 13px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.1;
}

.pdm-rf-lbl {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. Headings Orbital Sunburst Hierarchy */
.pdm-orbital-arc {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdm-orbital-node {
    transition: transform 0.2s ease;
}

.pdm-headings-center-hologram {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pdm-h-holo-count {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}

.pdm-h-holo-caption {
    font-size: 8.5px;
    font-weight: 800;
    color: #8b5cf6;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* 3. Links Flow Quantum Gauge */
.pdm-link-arc {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdm-link-orb-outer {
    opacity: 0.4;
}

.pdm-links-center-hologram {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    pointer-events: none;
}

.pdm-links-holo-ratio {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.pdm-links-holo-ratio .c-int {
    color: #10b981;
}

.pdm-links-holo-ratio .c-sep {
    color: var(--text-muted);
    opacity: 0.6;
    font-size: 13px;
}

.pdm-links-holo-ratio .c-ext {
    color: #3b82f6;
}

.pdm-links-holo-badge {
    font-size: 9.5px;
    font-weight: 750;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.pdm-links-holo-badge.is-good {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

.pdm-chart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    padding: 24px;
}

.pdm-chart-empty-state i, .pdm-chart-empty-state svg {
    width: 28px;
    height: 28px;
    opacity: 0.5;
}

.pdm-pill-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 750;
    color: var(--text-muted);
}

.pdm-chart-card-footer {
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
    width: 100%;
    position: relative;
    z-index: 2;
}

/* 1. Radar Matrix Footer Stats & Micro-Cards */
.pdm-radar-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 480px) {
    .pdm-radar-footer {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pdm-radar-stat-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.pdm-radar-stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pdm-radar-stat-pill.pill-blue:hover { border-color: #3b82f6; }
.pdm-radar-stat-pill.pill-green:hover { border-color: #10b981; }
.pdm-radar-stat-pill.pill-purple:hover { border-color: #8b5cf6; }
.pdm-radar-stat-pill.pill-cyan:hover { border-color: #06b6d4; }
.pdm-radar-stat-pill.pill-amber:hover { border-color: #f59e0b; }
.pdm-radar-stat-pill.pill-pink:hover { border-color: #ec4899; }

.pdm-radar-pill-top {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.pdm-radar-pill-top .dot-ind {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pdm-radar-pill-top .stat-lbl {
    color: var(--text-muted);
    font-weight: 650;
    font-size: 11px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdm-radar-pill-top .stat-val {
    color: var(--text-main);
    font-weight: 800;
    font-size: 12px;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.pdm-radar-pill-bar {
    width: 100%;
    height: 4px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--border-color) 60%, transparent);
    overflow: hidden;
}

.pdm-radar-pill-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Headings Architecture Footer & Badges */
.pdm-headings-footer {
    width: 100%;
}

.pdm-h-pills-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    width: 100%;
}

@media (max-width: 480px) {
    .pdm-h-pills-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pdm-h-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px 6px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.22s ease;
    cursor: default;
}

.pdm-h-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pdm-h-pill-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.pdm-h-pill.h1 .pdm-h-pill-tag { color: #8b5cf6; }
.pdm-h-pill.h2 .pdm-h-pill-tag { color: #3b82f6; }
.pdm-h-pill.h3 .pdm-h-pill-tag { color: #10b981; }
.pdm-h-pill.h4 .pdm-h-pill-tag { color: #f59e0b; }
.pdm-h-pill.h5 .pdm-h-pill-tag { color: #ec4899; }
.pdm-h-pill.h6 .pdm-h-pill-tag { color: #06b6d4; }

.pdm-h-pill.h1.pdm-h-active { border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.04); }
.pdm-h-pill.h2.pdm-h-active { border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.04); }
.pdm-h-pill.h3.pdm-h-active { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.04); }
.pdm-h-pill.h4.pdm-h-active { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.04); }
.pdm-h-pill.h5.pdm-h-active { border-color: rgba(236, 72, 153, 0.4); background: rgba(236, 72, 153, 0.04); }
.pdm-h-pill.h6.pdm-h-active { border-color: rgba(6, 182, 212, 0.4); background: rgba(6, 182, 212, 0.04); }

.pdm-h-pill-val {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--text-main);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.pdm-h-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-top: 3px;
}

.pdm-h-status-dot.dot-good { background: #10b981; box-shadow: 0 0 6px #10b981; }
.pdm-h-status-dot.dot-warn { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.pdm-h-status-dot.dot-bad { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.pdm-h-pill.pdm-h-zero {
    opacity: 0.4;
    border-style: dashed;
}

/* 3. Links Ratio Footer & Progress Tracks */
.pdm-links-footer {
    width: 100%;
}

.pdm-links-ratio-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.pdm-links-dual-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pdm-link-stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    font-size: 11px;
    transition: all 0.2s ease;
}

.pdm-link-stat-pill:hover {
    transform: translateY(-1px);
}

.pdm-link-stat-pill.pill-int {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.04);
}

.pdm-link-stat-pill.pill-ext {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.04);
}

.pdm-link-stat-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pdm-link-stat-lbl {
    color: var(--text-muted);
    font-weight: 650;
}

.pdm-link-stat-num {
    color: var(--text-main);
    font-weight: 800;
    margin-left: auto;
}

.pdm-link-stat-pct {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}

.pdm-links-bar-track {
    display: flex;
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: var(--bg-body);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pdm-links-bar-fill-int {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    transition: width 0.5s ease;
}

.pdm-links-bar-fill-ext {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    transition: width 0.5s ease;
}

/* SEO Diagnostic Checklist */
.pdm-checklist-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
}

.pdm-checklist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.pdm-checklist-header i, .pdm-checklist-header svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.pdm-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.pdm-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.pdm-checklist-item:hover {
    transform: translateY(-1px);
}

.pdm-checklist-item.item-pass {
    border-left: 3px solid #10b981;
}

.pdm-checklist-item.item-pass .pdm-chk-icon {
    color: #10b981;
}

.pdm-checklist-item.item-warn {
    border-left: 3px solid #f59e0b;
}

.pdm-checklist-item.item-warn .pdm-chk-icon {
    color: #f59e0b;
}

.pdm-checklist-item.item-fail {
    border-left: 3px solid #ef4444;
}

.pdm-checklist-item.item-fail .pdm-chk-icon {
    color: #ef4444;
}

.pdm-checklist-item.item-info {
    border-left: 3px solid #3b82f6;
}

.pdm-checklist-item.item-info .pdm-chk-icon {
    color: #3b82f6;
}

.pdm-chk-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.pdm-chk-icon i, .pdm-chk-icon svg {
    width: 16px;
    height: 16px;
}

.pdm-chk-content {
    flex: 1;
    min-width: 0;
}

.pdm-chk-title {
    font-size: 13px;
    font-weight: 750;
    color: var(--text-main);
    margin-bottom: 2px;
}

.pdm-chk-text {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   PAGE DETAILS MODAL: RADAR SCANNER LOADER (1 CREDIT)
   ========================================================================== */
.pdm-loading-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    background: var(--card-bg);
    min-height: 480px;
    height: 100%;
}

.pdm-loader-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.pdm-loader-close-btn:hover {
    color: var(--text-main);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pdm-radar-spinner {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.pdm-radar-spinner .radar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
    opacity: 0.15;
}

.pdm-radar-spinner .radar-ring.r1 {
    animation: radarPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.pdm-radar-spinner .radar-ring.r2 {
    animation: radarPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 0.65s;
}

.pdm-radar-spinner .radar-ring.r3 {
    animation: radarPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 1.3s;
}

@keyframes radarPulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.pdm-radar-spinner > span {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 16px var(--primary-shadow);
}

.pdm-load-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.pdm-badge-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

.pdm-load-title {
    font-size: 20px;
    font-weight: 850;
    color: var(--text-main);
    margin-bottom: 6px;
}

.pdm-load-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.pdm-load-url-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-family: monospace;
    color: var(--text-main);
    max-width: 90%;
    margin-bottom: 24px;
}

.pdm-load-url-chip i, .pdm-load-url-chip svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.pdm-load-url-chip .url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdm-load-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 640px;
}

.pdm-load-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.pdm-load-step .step-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-color);
}

.pdm-load-step.done {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.pdm-load-step.done .step-dot {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.pdm-load-step.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 2px 8px var(--primary-shadow);
}

.pdm-load-step.active .step-dot {
    background: var(--primary-color);
    box-shadow: 0 0 6px var(--primary-color);
    animation: stepPulse 1s ease-in-out infinite alternate;
}

@keyframes stepPulse {
    from { transform: scale(0.8); opacity: 0.6; }
    to { transform: scale(1.3); opacity: 1; }
}

.pdm-load-step.pending {
    opacity: 0.6;
}