/* ==========================================================================
   GUINRANK BACKLINKS ANALYZER - ENTERPRISE STYLESHEET
   Design System: GuinRank v7 Benchmark Standard (Keyword Analyzer & Ask Radar)
   ========================================================================== */

.tool-content-state.none { display: none; }
.tool-content-state.show { display: block !important; }

/* ---------- CONTAINER & BASE LAYOUT ---------- */
.analyzer-container,
.backlinks-container {
    padding: 30px 16px 80px;
    animation: fadeIn 0.4s ease-out;
    max-width: 960px;
    margin: 0 auto;
    transition: max-width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.3s ease;
    width: 100%;
    position: relative;
    z-index: 2;
}

.analyzer-container.has-data {
    max-width: 1720px;
    width: 100%;
    padding: 15px 20px 80px;
}

.analyzer-container.has-data .unified-search-container {
    max-width: 920px;
    margin: 0 auto 24px;
}

.hero-ambient-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 280px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color, #6366f1) 22%, transparent) 0%, color-mix(in srgb, var(--primary-color, #6366f1) 8%, transparent) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(55px);
    border-radius: 50%;
    transition: all 0.6s ease;
}

.has-data .hero-ambient-glow {
    opacity: 0.05;
    transform: translateX(-50%) scale(0.6) translateY(-40px);
}

/* ---------- CREATION-STYLE HERO ---------- */
.console-hero {
    text-align: center;
    max-width: 860px;
    margin: 16px auto 32px auto;
    position: relative;
    z-index: 1;
    transition: all 0.35s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: color-mix(in srgb, var(--primary-color, #6366f1) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color, #6366f1) 25%, transparent);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--primary-color, #6366f1);
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color, #6366f1);
    box-shadow: 0 0 10px var(--primary-color, #6366f1);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 4px var(--primary-color)); }
}

.hero-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 900;
    letter-spacing: -0.8px;
    color: var(--text-main, #0f172a);
    line-height: 1.15;
    margin: 0 0 14px 0;
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary-color, #6366f1) 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-inline-start: 4px;
}

.hero-desc {
    font-size: clamp(14px, 1.8vw, 16px);
    color: var(--text-muted, #64748b);
    line-height: 1.6;
    margin: 0 auto 20px auto;
    max-width: 680px;
}

.hero-features-belt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hfb-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 12px;
    background: var(--card-bg, rgba(255, 255, 255, 0.7));
    border: 1px solid var(--border-color, rgba(226, 232, 240, 0.8));
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main, #334155);
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
}

.hfb-item i, .hfb-item svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color, #6366f1);
}

/* ---------- UNIFIED SEARCH BAR ---------- */
.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, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 40px;
    padding: 6px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    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, #6366f1);
    box-shadow: 0 15px 40px var(--primary-shadow, rgba(99, 102, 241, 0.2));
    transform: translateY(-2px);
}

.search-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color, #e2e8f0);
    margin: 0 8px;
    flex-shrink: 0;
}

.search-segment {
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-segment {
    cursor: pointer;
    position: relative;
    padding: 6px 12px;
    border-radius: 100px;
    transition: background 0.2s;
    user-select: none;
}

.dropdown-segment:hover {
    background: color-mix(in srgb, var(--primary-color, #6366f1) 8%, transparent);
}

.segment-content {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main, #1e293b);
}

.scope-icon-wrap {
    color: var(--primary-color, #6366f1);
    display: flex;
    align-items: center;
}

.scope-icon-wrap i, .scope-icon-wrap svg {
    width: 16px;
    height: 16px;
}

.chevron-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted, #94a3b8);
    transition: transform 0.2s;
}

.segment-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 18px;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.15);
    padding: 8px;
    z-index: 1000;
    backdrop-filter: blur(14px);
}

.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main, #334155);
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: color-mix(in srgb, var(--primary-color, #6366f1) 8%, transparent);
    color: var(--primary-color, #6366f1);
}

.dropdown-item.selected {
    background: color-mix(in srgb, var(--primary-color, #6366f1) 12%, transparent);
    color: var(--primary-color, #6366f1);
    font-weight: 800;
}

.input-segment {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.input-search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted, #94a3b8);
    margin-inline-end: 8px;
}

.main-keyword-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main, #0f172a);
    outline: none;
    padding: 8px 0;
}

.main-keyword-input::placeholder {
    color: var(--text-muted, #94a3b8);
    opacity: 0.75;
}

.input-clear-btn {
    cursor: pointer;
    color: var(--text-muted, #94a3b8);
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.input-clear-btn:hover {
    color: var(--text-main, #0f172a);
    background: rgba(0, 0, 0, 0.05);
}

.round-search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #6366f1) 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--primary-shadow, rgba(99, 102, 241, 0.35));
}

.round-search-btn:hover:not(:disabled) {
    transform: scale(1.06);
    box-shadow: 0 6px 20px var(--primary-shadow, rgba(99, 102, 241, 0.5));
}

.round-search-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.spin-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ---------- ENGINE DATA MODE SWITCHER PILLS ---------- */
.mode-switcher-segment {
    display: flex;
    align-items: center;
    padding: 0 4px;
    flex-shrink: 0;
}

.mode-toggle-pills {
    display: inline-flex;
    align-items: center;
    background: color-mix(in srgb, var(--border-color, #e2e8f0) 40%, transparent);
    padding: 3px;
    border-radius: 24px;
    gap: 3px;
    border: 1px solid var(--border-color, #e2e8f0);
}

.mt-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    line-height: 1;
}

.mt-pill .pill-icon {
    width: 13px;
    height: 13px;
}

.mt-pill:hover:not(.active) {
    color: var(--text-main, #1e293b);
    background: rgba(0, 0, 0, 0.04);
}

.mt-pill.active {
    background: var(--card-bg, #ffffff);
    color: var(--text-main, #0f172a);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 800;
    border-color: rgba(0, 0, 0, 0.06);
}

.dot-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dot-mock {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.dot-live {
    background: #06b6d4;
    box-shadow: 0 0 6px rgba(6, 182, 212, 0.5);
}

.mt-pill.active .dot-live {
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

[data-theme="dark"] .mode-toggle-pills,
.dark .mode-toggle-pills {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mt-pill.active,
.dark .mt-pill.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

/* ==========================================================================
   OFFICIAL GUINRANK FETCH LOADER (KEYWORD ANALYZER STANDARD)
   ========================================================================== */
.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); } }
.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); } }
.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: 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); background-size: 80% 80%; }
.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: inherit; font-weight: 900; color: var(--text-main); cursor: default; }
.pres-counter-fetch { font-size: 22px; font-weight: 700; 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; }
.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; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.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; display: flex; align-items: center; justify-content: center; }
.icon-barsender-fetch i, .icon-barsender-fetch svg { width: 18px; height: 18px; }
.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; font-size: 12px; font-weight: 600; }
.barsender-move-fetch { width: 95%; margin: auto; margin-top: -5px; margin-bottom: 2px; }
.main-fetch-loader { position: relative; text-align: center; margin: 60px auto; max-width: 570px; }
.main-fetch-loader.global-loading-state { animation: fadeIn 0.3s ease; }
.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; }
.fade-out-loader { opacity: 0 !important; transition: opacity 0.5s ease; pointer-events: none; }

/* ==========================================================================
   BENTO FEATURES CLUSTER (INITIAL CLEAN STATE)
   ========================================================================== */
.console-features {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    position: relative;
    z-index: 1;
}

.bento-features-cluster {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 16px;
}

.bento-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.09);
    border-color: color-mix(in srgb, var(--primary-color, #6366f1) 35%, transparent);
}

.bc-wide-top { grid-column: span 3; }
.bc-tall { grid-row: span 2; }
.bc-wide-mid { grid-column: span 2; }

.dashed-ring-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px dashed color-mix(in srgb, var(--primary-color, #6366f1) 35%, transparent);
    padding: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.bc-icon-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary-color, #6366f1) 12%, transparent);
    color: var(--primary-color, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-icon-wrapper i, .bc-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.bento-decor-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--border-color, #e2e8f0);
    opacity: 0.3;
    pointer-events: none;
}

[dir="rtl"] .bento-decor-icon {
    right: auto;
    left: 14px;
}

.bento-decor-icon i, .bento-decor-icon svg {
    width: 64px;
    height: 64px;
}

.bc-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.bc-desc {
    font-size: 12.5px;
    color: var(--text-muted, #64748b);
    line-height: 1.55;
    margin: 0;
}

/* Bento Micro-Animations */
.anim-pulse { animation: bPulse 3s infinite ease-in-out; }
.anim-tilt { animation: bTilt 4s infinite ease-in-out; }
.anim-float { animation: bFloat 3.5s infinite ease-in-out; }
.anim-spin { animation: bSpin 14s infinite linear; }
.anim-bounce { animation: bBounce 3s infinite ease-in-out; }

@keyframes bPulse { 0%, 100% { transform: scale(1); opacity: 0.25; } 50% { transform: scale(1.15); opacity: 0.45; } }
@keyframes bTilt { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(15deg); } }
@keyframes bFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bSpin { 100% { transform: rotate(360deg); } }
@keyframes bBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ==========================================================================
   DASHBOARD HEADER ACTION STRIP (Clean & Ultra-Professional)
   ========================================================================== */
.dash-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.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;
    width: 100%;
}

.hb-params-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 6px 14px;
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    flex-wrap: wrap;
}

.hb-param-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main, #334155);
}

.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;
}

.hb-param-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hb-param-divider {
    width: 1px;
    height: 14px;
    background: var(--border-color, #e2e8f0);
}

.hb-diff-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.hb-param-update-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary-color, #6366f1);
    background: color-mix(in srgb, var(--primary-color, #6366f1) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color, #6366f1) 25%, transparent);
    cursor: pointer;
    transition: all 0.2s;
}

.hb-param-update-btn:hover {
    background: var(--primary-color, #6366f1);
    color: #ffffff;
}

/* ==========================================================================
   BLOCK CHARTS 3 GRID & D-CARD BASE
   ========================================================================== */
.block-charts-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.span-2-cols {
    grid-column: span 2;
}

@media (max-width: 1550px) {
    .block-charts-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .span-2-cols {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .block-charts-3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .span-2-cols {
        grid-column: span 1;
    }
}

/* ==========================================================================
   ENTERPRISE CITADEL HOLOGRAPHIC CHARTS (BLOCK 2)
   Caliber Standard: Matches Domain Authority Rating Centerpiece
   ========================================================================== */
.citadel-chart-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.citadel-chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    height: 160px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color, #6366f1) 6%, transparent) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

.citadel-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -4px rgba(99, 102, 241, 0.12), 0 0 0 1px var(--primary-color, #6366f1) inset;
    border-color: var(--primary-color, #6366f1);
}

/* ── Chart Header ── */
.ccc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.ccc-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ccc-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.25s ease;
}

.citadel-chart-card:hover .ccc-icon-wrap {
    transform: scale(1.06);
}

.ccc-icon-wrap i, .ccc-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.ccc-icon-wrap.icon-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.05));
    color: #9333ea;
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.ccc-icon-wrap.icon-emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.05));
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.ccc-icon-wrap.icon-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.05));
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.ccc-icon-wrap.icon-indigo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(79, 70, 229, 0.05));
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.ccc-icon-wrap.icon-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(8, 145, 178, 0.05));
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.25);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.ccc-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0;
    line-height: 1.25;
}

.ccc-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    margin: 2px 0 0 0;
    line-height: 1.35;
}

.ccc-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Interactive 5-Tier Pills Bar (DR Spectrum) ── */
.dr-tier-pills-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    direction: ltr !important;
}

.dr-tpill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 100px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main, #334155);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    direction: ltr !important;
}

.dr-tpill:hover {
    background: var(--card-bg, #f1f5f9);
    border-color: var(--primary-color, #6366f1);
    color: var(--text-main, #0f172a);
    transform: translateY(-1px);
}

.dr-tpill .tpill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dr-tpill .dot-slate { background: #64748b; box-shadow: 0 0 5px #64748b; }
.dr-tpill .dot-amber { background: #f59e0b; box-shadow: 0 0 5px #f59e0b; }
.dr-tpill .dot-emerald { background: #10b981; box-shadow: 0 0 5px #10b981; }
.dr-tpill .dot-indigo { background: #6366f1; box-shadow: 0 0 5px #6366f1; }
.dr-tpill .dot-purple { background: #a855f7; box-shadow: 0 0 5px #a855f7; }

.dr-tpill .tpill-num {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.tpill-0.active {
    background: rgba(100, 116, 139, 0.15);
    border-color: #64748b;
    color: #1e293b;
    box-shadow: 0 0 10px rgba(100, 116, 139, 0.25);
}

.tpill-1.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #b45309;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.tpill-2.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #047857;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.tpill-3.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
    color: #4338ca;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.tpill-4.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    color: #7e22ce;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.btn-clear-tier {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-tier:hover {
    background: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

.btn-clear-tier i, .btn-clear-tier svg {
    width: 13px;
    height: 13px;
}

/* ── Macro Authority Ratio Bar (Card 1) ── */
.dr-macro-ratio-bar {
    display: flex;
    height: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.dmr-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    transition: width 0.6s ease;
    overflow: hidden;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.dmr-segment.seg-fresh { background: linear-gradient(90deg, #64748b, #38bdf8); }
.dmr-segment.seg-mid { background: linear-gradient(90deg, #f59e0b, #10b981); }
.dmr-segment.seg-elite { background: linear-gradient(90deg, #6366f1, #a855f7); }

/* ── Chart Body Containers ── */
.ccc-chart-body {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 2;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apexchart-container {
    width: 100%;
    height: 100%;
}

/* ── Donut Holographic Centerpiece (Card 2) ── */
.donut-chart-body {
    position: relative;
    width: 100%;
    height: 220px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 0;
}

.donut-hologram-center {
    position: absolute;
    top: 50%;
    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: 3;
}

.dhc-val {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1.2px;
    color: #10b981;
    filter: drop-shadow(0 2px 10px rgba(16, 185, 129, 0.35));
}

.dhc-lbl {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted, #8c7b73);
    margin-top: 3px;
}

/* ── Integrated Equity Flow Conduit (Card 2) ── */
.equity-flow-conduit {
    margin: 8px 0 2px 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.efc-track {
    display: flex;
    height: 8px;
    border-radius: 100px;
    background: color-mix(in srgb, var(--border-color, #e2e8f0) 40%, transparent);
    overflow: hidden;
    position: relative;
}

.efc-stream {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.efc-stream.stream-dofollow { background: linear-gradient(90deg, #10b981, #34d399); }
.efc-stream.stream-nofollow { background: linear-gradient(90deg, #6366f1, #818cf8); }

.efc-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.efc-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main, #334155);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.efc-pill:hover {
    background: var(--card-bg, #ffffff);
    border-color: var(--primary-color, #f46a25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.efc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.efc-dot.dot-emerald { background: #10b981; box-shadow: 0 0 6px #10b981; }
.efc-dot.dot-indigo { background: #6366f1; box-shadow: 0 0 6px #6366f1; }

.efc-name {
    color: var(--text-muted, #8c7b73);
    font-weight: 600;
    font-size: 10.5px;
    white-space: nowrap;
}

.efc-count {
    font-size: 11px;
    color: var(--text-main, #2d2725);
    font-weight: 700;
    margin-inline-start: auto;
}

/* ── TLD Rankboard Deck (Card 3) ── */
.tld-rankboard-body {
    padding: 6px 0;
}

.tld-rankboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tld-rank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tld-rank-row:hover {
    background: var(--card-bg, #ffffff);
    border-color: #3b82f6;
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.12);
}

.tld-rank-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 75px;
}

.tld-rank-badge {
    font-size: 9.5px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 6px;
}

.tld-rank-badge.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; box-shadow: 0 0 8px rgba(245, 158, 11, 0.35); }
.tld-rank-badge.rank-2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #1e293b; }
.tld-rank-badge.rank-3 { background: linear-gradient(135deg, #fdba74, #ea580c); color: #7c2d12; }
.tld-rank-badge.rank-4, .tld-rank-badge.rank-5 {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted, #94a3b8);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.tld-ext-name {
    font-family: monospace;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

.tld-rank-meter {
    flex: 1;
    height: 6px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tld-meter-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.6s ease;
}

.tld-meter-fill.fill-1 { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.tld-meter-fill.fill-2 { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.tld-meter-fill.fill-3 { background: linear-gradient(90deg, #10b981, #34d399); }
.tld-meter-fill.fill-4 { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.tld-meter-fill.fill-5 { background: linear-gradient(90deg, #ec4899, #f472b6); }

.tld-rank-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tld-count-num {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
}

.tld-pct-num {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* ── Architectural Technology Ecosystem Spectrum Ribbon (Card 5) ── */
.platform-macro-spectrum-bar {
    display: flex;
    height: 24px;
    border-radius: 8px;
    overflow: hidden;
    background: color-mix(in srgb, var(--border-color, #e2e8f0) 40%, transparent);
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    gap: 1px;
    width: 100%;
}

.pms-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    transition: all 0.25s ease;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    padding: 0 6px;
    min-width: 28px;
    flex: 1 1 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.pms-segment span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
}

.pms-segment:hover {
    filter: brightness(1.15);
    transform: scaleY(1.08);
}

.pms-segment.pseg-0 { background: linear-gradient(90deg, #06b6d4, #0ea5e9); }
.pms-segment.pseg-1 { background: linear-gradient(90deg, #8b5cf6, #a855f7); }
.pms-segment.pseg-2 { background: linear-gradient(90deg, #10b981, #059669); }
.pms-segment.pseg-3 { background: linear-gradient(90deg, #f59e0b, #d97706); }
.pms-segment.pseg-4 { background: linear-gradient(90deg, #64748b, #475569); }

/* ── Platform Cyber Architecture Studio Layout (Card 5) ── */
.platform-cyber-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 18px;
    align-items: center;
    min-height: 270px;
}

@media (max-width: 1100px) {
    .platform-cyber-body {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.platform-radar-scanner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 270px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg-body, #f8fafc) 70%, transparent);
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 10px 6px;
    overflow: hidden;
}

.prs-header {
    position: absolute;
    top: 10px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.prs-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4;
    animation: pulseGlow 2s infinite ease-in-out;
}

.prs-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted, #8c7b73);
}

/* ── Cyber Stack Rack Blades (Card 5 Right Column) ── */
.platform-stack-racks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.psr-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted, #8c7b73);
    margin-bottom: 2px;
}

.psr-header i, .psr-header svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color, #f46a25);
}

.psr-blades-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 600px) {
    .psr-blades-grid {
        grid-template-columns: 1fr;
    }
}

.psr-blade-card {
    padding: 11px 14px;
    border-radius: 14px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.psr-blade-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #06b6d4;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.psr-blade-card.blade-0::before { background: #06b6d4; }
.psr-blade-card.blade-1::before { background: #8b5cf6; }
.psr-blade-card.blade-2::before { background: #10b981; }
.psr-blade-card.blade-3::before { background: #f59e0b; }
.psr-blade-card.blade-4::before { background: #64748b; }

.psr-blade-card:hover {
    background: var(--card-bg, #ffffff);
    border-color: var(--primary-color, #f46a25);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.psr-blade-card:hover::before {
    opacity: 1;
    width: 4px;
}

.pbc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pbc-id {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pbc-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--primary-color, #f46a25) 12%, transparent);
    color: var(--primary-color, #f46a25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pbc-icon i, .pbc-icon svg {
    width: 13px;
    height: 13px;
}

.pbc-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main, #2d2725);
}

.pbc-tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--border-color, #e2e8f0) 60%, transparent);
    color: var(--text-muted, #8c7b73);
}

.pbc-meter {
    height: 5px;
    border-radius: 100px;
    background: color-mix(in srgb, var(--border-color, #e2e8f0) 50%, transparent);
    margin: 8px 0 6px 0;
    overflow: hidden;
}

.pbc-meter-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blade-0 .pbc-meter-fill { background: linear-gradient(90deg, #06b6d4, #0ea5e9); }
.blade-1 .pbc-meter-fill { background: linear-gradient(90deg, #8b5cf6, #a855f7); }
.blade-2 .pbc-meter-fill { background: linear-gradient(90deg, #10b981, #059669); }
.blade-3 .pbc-meter-fill { background: linear-gradient(90deg, #f59e0b, #d97706); }
.blade-4 .pbc-meter-fill { background: linear-gradient(90deg, #64748b, #475569); }

.pbc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--text-muted, #8c7b73);
}

.pbc-val {
    color: var(--text-main, #2d2725);
    font-weight: 800;
}

.pbc-share {
    margin-inline-start: 4px;
    font-weight: 600;
}

.pbc-filter-action {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary-color, #f46a25);
    transition: transform 0.2s ease;
}

.psr-blade-card:hover .pbc-filter-action {
    transform: translateX(2px);
}

/* ── KPI Badges in Card Headers ── */
.ccc-corridor-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ccc-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 100px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.cbp-val {
    font-size: 12px;
    font-weight: 900;
    color: #0f172a;
}

.cbp-lbl {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.ccc-momentum-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 100px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--primary-color, #6366f1);
    font-size: 11px;
    font-weight: 800;
}

.ccc-momentum-badge .mb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 2s infinite ease-in-out;
}

/* ── Strategic Advice Footers (Matches .ch-advice in DA Centerpiece) ── */
.ccc-advice {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted, #475569);
    line-height: 1.45;
    text-align: start;
    width: 100%;
    margin-top: 14px;
    position: relative;
    z-index: 2;
}

.ccc-advice i, .ccc-advice svg {
    width: 15px;
    height: 15px;
    color: var(--primary-color, #6366f1);
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.35));
}

/* ── Donut Reactor Centerpiece Halo & Tags (Card 2) ── */
.dhc-reactor-halo {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1.5px dashed rgba(16, 185, 129, 0.35);
    animation: spinSlow 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes spinSlow {
    100% { transform: rotate(360deg); }
}

.dhc-status-tag {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 6px;
    margin-top: 5px;
    position: relative;
    z-index: 2;
}

.dhc-status-tag.tag-optimal {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.dhc-status-tag.tag-warn {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ==========================================================================
   UNIVERSAL DARK & SUNMOON THEME MASTER OVERRIDES
/* ==========================================================================
   GUINRANK NATIVE THEME HARMONIZATION (LIGHT / SUNMOON / DARK / BW)
   Adheres 100% to GuinRank Color System: var(--card-bg), var(--bg-body), var(--border-color)
   ========================================================================== */
[data-theme="sunmoon"] .citadel-chart-card,
[data-theme="dark"] .citadel-chart-card,
[data-theme="sunset"] .citadel-chart-card,
[data-theme="bw"] .citadel-chart-card,
.dark .citadel-chart-card,
[data-bs-theme="dark"] .citadel-chart-card {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

[data-theme="sunmoon"] .citadel-chart-card:hover,
[data-theme="dark"] .citadel-chart-card:hover,
[data-theme="sunset"] .citadel-chart-card:hover,
[data-theme="bw"] .citadel-chart-card:hover,
.dark .citadel-chart-card:hover {
    border-color: var(--primary-color, #f46a25) !important;
    box-shadow: 0 14px 35px -4px rgba(0, 0, 0, 0.45), 0 0 20px color-mix(in srgb, var(--primary-color, #f46a25) 20%, transparent) !important;
}

/* Titles and Subtitles */
.ccc-title {
    color: var(--text-main, #2d2725) !important;
}

.ccc-subtitle {
    color: var(--text-muted, #8c7b73) !important;
}

/* Strategic Advice Footers */
.ccc-advice {
    background: var(--bg-body, #f6f5f4) !important;
    border-color: var(--border-color, #e9e4e2) !important;
    color: var(--text-muted, #8c7b73) !important;
}

/* Header Pills */
.ccc-badge-pill {
    background: var(--bg-body, #f8fafc) !important;
    border-color: var(--border-color, #e2e8f0) !important;
}

.cbp-val {
    color: var(--text-main, #2d2725) !important;
}

.cbp-lbl {
    color: var(--text-muted, #8c7b73) !important;
}

/* DR Tier Pills */
.dr-tpill {
    background: var(--bg-body, #f8fafc) !important;
    border-color: var(--border-color, #e2e8f0) !important;
    color: var(--text-main, #2d2725) !important;
}

.dr-tpill:hover {
    background: var(--card-bg, #ffffff) !important;
    border-color: var(--primary-color, #f46a25) !important;
}

.dr-tpill .tpill-num {
    background: color-mix(in srgb, var(--card-bg) 60%, var(--border-color) 40%) !important;
    color: var(--text-main, #2d2725) !important;
}

/* TLD Rankboard Rows */
.tld-rank-row {
    background: var(--bg-body, #f8fafc) !important;
    border-color: var(--border-color, #e2e8f0) !important;
}

.tld-rank-row:hover {
    background: var(--card-bg, #ffffff) !important;
    border-color: var(--primary-color, #f46a25) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
}

.tld-ext-name {
    color: var(--text-main, #2d2725) !important;
}

.tld-count-num {
    color: var(--text-muted, #8c7b73) !important;
}

/* Platform Cyber Matrix Elements */
.platform-radar-scanner {
    background: color-mix(in srgb, var(--bg-body, #f8fafc) 70%, transparent) !important;
    border-color: var(--border-color, #e2e8f0) !important;
}

.psr-blade-card {
    background: var(--bg-body, #f8fafc) !important;
    border-color: var(--border-color, #e2e8f0) !important;
}

.psr-blade-card:hover {
    background: var(--card-bg, #ffffff) !important;
    border-color: var(--primary-color, #f46a25) !important;
}

.pbc-name {
    color: var(--text-main, #2d2725) !important;
}

.pbc-val {
    color: var(--text-main, #2d2725) !important;
}

.pbc-tag {
    background: color-mix(in srgb, var(--border-color, #e2e8f0) 60%, transparent) !important;
    color: var(--text-muted, #8c7b73) !important;
}

.efc-pill {
    background: var(--bg-body, #f8fafc) !important;
    border-color: var(--border-color, #e2e8f0) !important;
    color: var(--text-main, #2d2725) !important;
}

.efc-pill:hover {
    background: var(--card-bg, #ffffff) !important;
    border-color: var(--primary-color, #f46a25) !important;
}

/* ==========================================================================
   QUANTUM DOMAIN AUTHORITY (DR) CYBER-GAUGE COMPONENT
   ========================================================================== */
.tc-quantum-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.tc-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 10.5px;
    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;
}

@keyframes pulseDot { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }

.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%;
}

.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, #e2e8f0);
    stroke-width: 1.5;
    opacity: 0.6;
}

.tc-track-bg {
    opacity: 0.85;
}

.tc-tick-dot {
    fill: var(--text-muted, #94a3b8);
    opacity: 0.45;
    transition: all 0.3s ease;
}

.tc-tick-dot.center-tick {
    fill: var(--text-muted, #94a3b8);
    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; } }

.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, #94a3b8);
    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, #94a3b8);
    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);
}

.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, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    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, #e2e8f0);
    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, #94a3b8);
    letter-spacing: 0.3px;
}

.tc-led-seg.is-active .tc-seg-label { color: var(--text-main, #0f172a); }

.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; }

.tc-action-advice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    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, #334155);
    line-height: 1.35;
}

/* ==========================================================================
   QUANTUM DUAL-ARC TARGET MATRIX (LINK EQUITY & SAFETY)
   ========================================================================== */
.ss-quantum-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.ss-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 10.5px;
    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%;
}

.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, #e2e8f0);
    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-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: 100px;
    height: 100px;
    border-radius: 50%;
    background: #3b82f6;
    filter: blur(30px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.ss-score-caption {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    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, #94a3b8);
    opacity: 0.55;
    margin-left: 3px;
}

.ss-score-range-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 2px 10px;
    border-radius: 100px;
    margin-top: 4px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #334155);
}

.ss-arrow { color: var(--primary-color, #6366f1); font-weight: 900; }

.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, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    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: 9px;
    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, #0f172a);
    line-height: 1.1;
}

.ss-capsule-lbl {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ss-capsule-divider {
    color: var(--text-muted, #94a3b8);
    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, #6366f1); }

.ss-action-advice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    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, #334155);
    line-height: 1.35;
}

/* ==========================================================================
   QUANTUM HYBRID INTELLIGENCE MATRIX (REFERRING DOMAINS VS BACKLINKS)
   ========================================================================== */
.serp-quantum-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.serp-matrix-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.serp-matrix-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0;
}

.serp-matrix-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
}

.serp-view-mode-tabs {
    display: inline-flex;
    align-items: center;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    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, #64748b);
    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, #ffffff);
    color: var(--text-main, #0f172a);
    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-quantum-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.serp-apex-container {
    width: 100%;
}

.serp-radar-ribbon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

.serp-radar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.serp-radar-item:hover {
    border-color: var(--primary-color, #6366f1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sri-rank-badge {
    font-size: 10px;
    font-weight: 900;
    color: var(--text-muted, #64748b);
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    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, #0f172a);
    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 { color: #8b5cf6; }
.sri-words { color: var(--text-muted, #64748b); }

.serp-bottom-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 14px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    margin-top: 6px;
}

.serp-target-corridor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main, #334155);
}

.corridor-range {
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid;
    font-size: 11px;
}

.serp-insights-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.serp-micro-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-muted, #64748b);
}

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot.theme-dot { background: var(--primary-color, #6366f1); }
.dot.green-dot { background: #10b981; }
.dot.orange-dot { background: #f59e0b; }

/* ==========================================================================
   BLOCK 2: METRIC BADGES & COMPACT TABLES
   ========================================================================== */
.card-metric-badge {
    padding: 14px 18px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.card-metric-badge-lg .cm-val {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-main, #0f172a);
}

.cm-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
}

.apexchart-container {
    width: 100%;
    min-height: 190px;
}

.cpc-badge {
    padding: 6px 14px;
    margin: 4px 16px 14px;
    border-radius: 10px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
}

.cpc-badge i, .cpc-badge svg { width: 13px; height: 13px; color: var(--primary-color, #6366f1); }

.compact-table th {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    padding: 8px 12px;
    background: var(--bg-body, #f8fafc);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.compact-table td {
    padding: 8px 12px;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #334155);
}

.st-rel-kw {
    font-weight: 700;
    color: var(--text-main, #0f172a);
}

.st-num { font-weight: 800; }

.mini-trend-box {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 18px;
    width: 60px;
    background: color-mix(in srgb, var(--primary-color, #6366f1) 8%, transparent);
    border-radius: 4px;
    padding: 2px;
}

.trend-spark-bar {
    flex: 1;
    background: var(--primary-color, #6366f1);
    border-radius: 2px;
    transition: height 0.3s;
}

.w-badge {
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.kd-easy { background: rgba(16, 185, 129, 0.14); color: #10b981; }
.kd-hard { background: rgba(239, 68, 68, 0.14); color: #ef4444; }

/* ==========================================================================
   BLOCK 3: LINGUISTIC & DEEP EXPLORER TABS
   ========================================================================== */
.ling-tabs-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 14px;
}

.ling-tabs-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 4px;
    border-radius: 16px;
}

.ling-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ling-tab-btn:hover {
    color: var(--text-main, #0f172a);
    background: var(--bg-body, #f8fafc);
}

.ling-tab-btn.active {
    background: var(--primary-color, #6366f1);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-shadow, rgba(99, 102, 241, 0.3));
}

.ling-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.22s ease;
    border: 1px solid transparent;
}

.ling-icon-box i, .ling-icon-box svg { width: 14px; height: 14px; stroke-width: 2px; }

/* Table Wrapper & Standard Headers */
.table-outer-card {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    overflow: hidden;
}

.kw-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.table-header-left, .table-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.table-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 10px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
}

.tsb-count { font-size: 14px; font-weight: 900; color: var(--primary-color, #6366f1); }
.tsb-label { font-size: 11px; font-weight: 700; color: var(--text-muted, #94a3b8); text-transform: uppercase; }

.table-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 260px;
}

.table-search-box input {
    width: 100%;
    height: 38px;
    padding: 0 32px 0 34px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-body, #f8fafc);
    font-size: 12.5px;
    color: var(--text-main, #0f172a);
    outline: none;
}

[dir="rtl"] .table-search-box input {
    padding: 0 34px 0 32px;
}

.table-search-box span[v-pre] {
    position: absolute;
    left: 10px;
    color: var(--text-muted, #94a3b8);
    display: flex;
}

[dir="rtl"] .table-search-box span[v-pre] {
    left: auto;
    right: 10px;
}

.table-search-box span[v-pre] i,
.table-search-box span[v-pre] svg {
    width: 15px;
    height: 15px;
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    display: flex;
}

[dir="rtl"] .clear-search-btn {
    right: auto;
    left: 8px;
}

.table-filter-pills {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 2px;
    border-radius: 10px;
}

.tf-pill {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.tf-pill.active {
    background: var(--card-bg, #ffffff);
    color: var(--text-main, #0f172a);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    font-weight: 800;
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #334155);
    transition: all 0.2s;
}

.btn-outline-sm:hover {
    border-color: var(--primary-color, #6366f1);
    color: var(--primary-color, #6366f1);
}

.btn-green {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-green:hover {
    background: #10b981;
    color: #ffffff;
}

.kw-table-wrap {
    width: 100%;
    overflow-x: auto;
    max-height: 520px;
}

.gr-table {
    width: 100%;
    border-collapse: collapse;
    text-align: start;
}

.gr-table th {
    height: 38px;
    padding: 0 14px;
    background: var(--bg-body, #f8fafc);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    white-space: nowrap;
}

.sortable-th {
    cursor: pointer;
    user-select: none;
}

.sortable-th:hover {
    color: var(--primary-color, #6366f1);
}

.sort-icon i, .sort-icon svg {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-inline-start: 4px;
}

.gr-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    font-size: 12.5px;
    color: var(--text-main, #334155);
}

.gr-table tr:hover td {
    background: color-mix(in srgb, var(--primary-color, #6366f1) 4%, transparent);
}

.ref-domain-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 280px;
}

.ref-top-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.country-flag-mini {
    width: 14px;
    height: 10px;
    border-radius: 2px;
    object-fit: cover;
}

.ref-domain-title {
    font-weight: 800;
    color: var(--text-main, #0f172a);
    font-size: 12.5px;
}

.ref-url-link {
    font-size: 11px;
    color: var(--primary-color, #6366f1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ref-url-link:hover { text-decoration: underline; }
.ext-ico { width: 11px; height: 11px; }

.anchor-text-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-main, #334155);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anchor-text-pill.empty-anchor {
    color: var(--text-muted, #94a3b8);
    font-style: italic;
}

.target-url-link {
    font-size: 11.5px;
    color: var(--text-muted, #64748b);
    text-decoration: none;
    max-width: 200px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.target-url-link:hover { color: var(--primary-color, #6366f1); }

.badge-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-dofollow { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-nofollow { background: rgba(148, 163, 184, 0.15); color: #64748b; border: 1px solid rgba(148, 163, 184, 0.3); }

.rank-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.dr-badge { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.pr-badge { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }

.spam-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.spam-low { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.spam-mid { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.spam-high { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.row-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.row-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted, #94a3b8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.row-action-btn:hover {
    background: var(--bg-body, #f8fafc);
    border-color: var(--border-color, #e2e8f0);
    color: var(--text-main, #0f172a);
}

.row-action-btn i, .row-action-btn svg { width: 14px; height: 14px; }

/* Sticky Bulk Actions Bar */
.sticky-bulk-bar {
    position: sticky;
    bottom: 16px;
    margin: -10px 16px 14px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 20;
    backdrop-filter: blur(10px);
}

.bulk-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-count-badge {
    background: var(--primary-color, #6366f1);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
}

.bulk-label { font-size: 13px; font-weight: 700; color: var(--text-main, #0f172a); }

.bulk-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.bulk-btn-copy { background: color-mix(in srgb, var(--primary-color, #6366f1) 12%, transparent); color: var(--primary-color, #6366f1); }
.bulk-btn-copy:hover { background: var(--primary-color, #6366f1); color: #ffffff; }

.bulk-btn-export { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.bulk-btn-export:hover { background: #10b981; color: #ffffff; }

.bulk-btn-clear { background: transparent; color: var(--text-muted, #94a3b8); }
.bulk-btn-clear:hover { color: var(--text-main, #0f172a); }

/* Table Pagination Footer */
.kw-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.entries-info { font-size: 12px; color: var(--text-muted, #64748b); font-weight: 600; }

.rows-select-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted, #64748b);
}

.custom-rows-select {
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-body, #f8fafc);
    color: var(--text-main, #0f172a);
    font-size: 12px;
    font-weight: 700;
    outline: none;
}

.pagination-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #334155);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color, #6366f1);
    color: #ffffff;
    border-color: var(--primary-color, #6366f1);
}

.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.page-btn i, .page-btn svg { width: 14px; height: 14px; }

.page-current-pill {
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
}

/* Anchor Cloud */
.anchor-cloud-card {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 18px;
    margin-bottom: 20px;
}

.acc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.acc-header h4 { font-size: 14px; font-weight: 800; margin: 0; color: var(--text-main, #0f172a); }

.anchor-cloud-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cloud-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cloud-tag:hover {
    transform: translateY(-2px);
}

.cloud-clean { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.cloud-clean:hover { background: #6366f1; color: #ffffff; }

.cloud-spam { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.cloud-spam:hover { background: #ef4444; color: #ffffff; }

.cloud-count {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
}

/* ApexCharts Global Tooltip Glassmorphic Dual-Theme Reset */
.apexcharts-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.apexcharts-tooltip.apexcharts-theme-light {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
    border-radius: 12px !important;
}

.apexcharts-tooltip.apexcharts-theme-dark,
[data-theme="dark"] .apexcharts-tooltip,
.dark .apexcharts-tooltip,
[data-theme="sunset"] .apexcharts-tooltip {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    backdrop-filter: blur(12px) !important;
}

.serp-apex-container .apexcharts-legend-text,
.apexcharts-legend-text {
    color: var(--text-main, #0f172a) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
}

[data-theme="dark"] .apexcharts-legend-text,
.dark .apexcharts-legend-text,
[data-theme="sunset"] .apexcharts-legend-text {
    color: #cbd5e1 !important;
}

/* ==========================================================================
   THE HOLOGRAPHIC LINK POWER CITADEL (NEXT-GEN MASTER COMMAND DECK)
   ========================================================================== */
.citadel-master-deck {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.cmd-top-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    margin-bottom: 18px;
}

.ctr-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.target-host-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 6px 14px;
    border-radius: 100px;
}

.host-favicon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.host-name {
    font-size: 14px;
    font-weight: 900;
    color: var(--text-main, #0f172a);
}

.scope-tag {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--primary-color, #6366f1);
    background: color-mix(in srgb, var(--primary-color, #6366f1) 12%, transparent);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Engine Source Badge */
.engine-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.engine-badge .eb-icon {
    width: 12px;
    height: 12px;
}

.engine-badge .eb-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.engine-badge.eb-mock {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.engine-badge.eb-mock .eb-pulse {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.engine-badge.eb-live {
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.engine-badge.eb-live .eb-pulse {
    background: #06b6d4;
    animation: livePulse 1.8s infinite;
}

.deck-mode-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 3px;
    border-radius: 100px;
    gap: 3px;
}

.dmt-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.dmt-btn:hover:not(.active) {
    color: var(--text-main, #0f172a);
}

.dmt-btn.active {
    background: var(--card-bg, #ffffff);
    color: var(--text-main, #0f172a);
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}

.dmt-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

[data-theme="dark"] .engine-badge.eb-mock,
.dark .engine-badge.eb-mock {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

[data-theme="dark"] .engine-badge.eb-live,
.dark .engine-badge.eb-live {
    background: rgba(6, 182, 212, 0.18);
    color: #38bdf8;
}

[data-theme="dark"] .deck-mode-toggle,
.dark .deck-mode-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .dmt-btn.active,
.dark .dmt-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.ctr-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

.ctr-date i, .ctr-date svg { width: 14px; height: 14px; }

.ctr-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 800;
    background: color-mix(in srgb, var(--primary-color, #6366f1) 10%, transparent);
    color: var(--primary-color, #6366f1);
    border: 1px solid color-mix(in srgb, var(--primary-color, #6366f1) 25%, transparent);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ctr-refresh-btn:hover:not(:disabled) {
    background: var(--primary-color, #6366f1);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-shadow, rgba(99, 102, 241, 0.3));
}

.cmd-grid-body {
    display: grid;
    grid-template-columns: 320px 1fr 280px;
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 1400px) {
    .cmd-grid-body {
        grid-template-columns: 300px 1fr;
    }
    .citadel-presets-card {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .cmd-grid-body {
        grid-template-columns: 1fr;
    }
    .citadel-presets-card {
        grid-column: span 1;
    }
}

/* Citadel Col 1: Hologram Card */
.citadel-hologram-card {
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    text-align: center;
}

.ch-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ch-icon i, .ch-icon svg { width: 18px; height: 18px; color: var(--primary-color, #6366f1); }
.ch-title { font-size: 12.5px; font-weight: 800; color: var(--text-main, #0f172a); }
.ch-help {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted, #94a3b8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.ch-centerpiece {
    position: relative;
    width: 100%;
    max-width: 240px;
    height: 170px;
    margin: 8px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch-svg-meter { width: 100%; height: 100%; overflow: visible; }
.ch-track { stroke: var(--border-color, #e2e8f0); opacity: 0.8; }
.ch-progress { transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.ch-orb { animation: orbPulse 2.5s infinite ease-in-out; }

.ch-counter {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ch-score {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    color: var(--text-main, #0f172a);
    letter-spacing: -1px;
}

.ch-max {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
}

.ch-tier-pill {
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.tier-very-easy { background: rgba(16, 185, 129, 0.12); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.tier-easy { background: rgba(34, 197, 94, 0.12); color: #22c55e; border-color: rgba(34, 197, 94, 0.3); }
.tier-normal { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.tier-hard { background: rgba(249, 115, 22, 0.12); color: #f97316; border-color: rgba(249, 115, 22, 0.3); }
.tier-very-hard { background: rgba(239, 68, 68, 0.12); color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }

.ch-advice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    line-height: 1.4;
    text-align: start;
    width: 100%;
}

.ch-advice i, .ch-advice svg { width: 14px; height: 14px; color: var(--primary-color, #6366f1); flex-shrink: 0; }

/* Citadel Col 2: The 4 Strategic Command Hubs */
.citadel-hubs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .citadel-hubs-grid {
        grid-template-columns: 1fr;
    }
}

.ch-hub-tile {
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ch-hub-tile:hover {
    background: var(--card-bg, #ffffff);
    border-color: var(--primary-color, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.06);
}

.hub-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hub-icon-wrap i, .hub-icon-wrap svg { width: 20px; height: 20px; }

.icon-cyan { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.icon-purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.icon-green { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.icon-red { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.hub-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.hub-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.hub-val-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.hub-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main, #0f172a);
    line-height: 1.15;
}

.hub-badge-live, .hub-badge-domains {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

.hub-badge-live { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.hub-badge-domains { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }

.hub-corridor-status {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

.corridor-optimal { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.corridor-warn { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.hub-shield-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

.hub-sub-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
    margin-top: 2px;
}

.sub-pill.green-text { color: #10b981; font-weight: 700; }
.sub-pill.red-text { color: #ef4444; font-weight: 700; }
.sub-sep { opacity: 0.4; }

/* Citadel Col 3: Presets Card */
.citadel-presets-card {
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.cpc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpc-header i, .cpc-header svg { width: 15px; height: 15px; color: var(--primary-color, #6366f1); }

.cpc-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cpc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main, #334155);
    cursor: pointer;
    transition: all 0.2s;
    text-align: start;
}

.cpc-btn:hover {
    border-color: var(--primary-color, #6366f1);
    color: var(--primary-color, #6366f1);
    transform: translateX(3px);
}

.cpc-btn.active {
    background: var(--primary-color, #6366f1);
    color: #ffffff;
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 4px 12px var(--primary-shadow, rgba(99, 102, 241, 0.25));
}

.cpc-btn.active .cpc-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.cpc-dot { width: 7px; height: 7px; border-radius: 50%; margin-inline-end: 8px; flex-shrink: 0; }
.dot-all { background: #6366f1; }
.dot-high { background: #10b981; }
.dot-dofollow { background: #06b6d4; }
.dot-toxic { background: #ef4444; }
.dot-broken { background: #f59e0b; }

.cpc-count {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 100px;
    background: var(--bg-body, #f8fafc);
    color: var(--text-muted, #64748b);
    border: 1px solid var(--border-color, #e2e8f0);
}

/* ==========================================================================
   IN-SENTENCE LINK CONTEXT INSPECTOR TABLE (PRO FEATURE)
   ========================================================================== */
.ref-page-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 270px;
}

.ref-page-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ref-domain-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted, #64748b);
}

.ref-flag {
    display: inline-flex;
    align-items: center;
}

.ref-domain-text { font-weight: 700; color: var(--text-main, #334155); }

.ref-ext-links-badge {
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-muted, #94a3b8);
}

.ref-raw-url {
    font-size: 10.5px;
    color: var(--primary-color, #6366f1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ref-raw-url:hover { text-decoration: underline; }

/* In-Sentence Context Snippet Card */
.sentence-context-card {
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 480px;
}

.context-snippet {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted, #64748b);
    font-family: inherit;
}

.text-pre, .text-post {
    color: var(--text-muted, #64748b);
}

.anchor-highlight {
    background: color-mix(in srgb, var(--primary-color, #6366f1) 16%, transparent);
    color: var(--primary-color, #6366f1);
    border: 1px solid color-mix(in srgb, var(--primary-color, #6366f1) 35%, transparent);
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 800;
    display: inline-block;
    cursor: default;
}

.anchor-highlight.empty-anchor {
    color: var(--text-muted, #94a3b8);
    font-style: italic;
    background: rgba(0, 0, 0, 0.04);
    border-color: transparent;
}

.context-sub-tags {
    display: flex;
    align-items: center;
    gap: 6px;
}

.c-tag {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid;
}

.tag-type { background: rgba(99, 102, 241, 0.08); color: #6366f1; border-color: rgba(99, 102, 241, 0.2); }
.tag-status { background: rgba(16, 185, 129, 0.08); color: #10b981; border-color: rgba(16, 185, 129, 0.2); }
.tag-new { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }

.target-url-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.target-link {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-main, #334155);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.target-link:hover { color: var(--primary-color, #6366f1); text-decoration: underline; }

.redirect-target-note {
    font-size: 10px;
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.redirect-target-note i, .redirect-target-note svg { width: 10px; height: 10px; }

/* Anchor Health Banner */
.anchor-health-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid;
}

.ah-safe { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.25); color: #10b981; }
.ah-warning { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.25); color: #f59e0b; }

.ah-icon i, .ah-icon svg { width: 24px; height: 24px; }
.ah-text h4 { font-size: 13.5px; font-weight: 900; margin: 0 0 2px 0; color: inherit; }
.ah-text p { font-size: 12px; margin: 0; color: var(--text-muted, #64748b); line-height: 1.4; }

.anchor-class-pill {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.class-Branded { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.class-Naked\ URL { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.class-Exact\ \/\ Semantic { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.class-Generic { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.class-Image\ \/\ Alt { background: rgba(148, 163, 184, 0.15); color: #64748b; }

.btn-xs-filter {
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color, #6366f1);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-xs-filter:hover {
    background: var(--primary-color, #6366f1);
    color: #ffffff;
    border-color: var(--primary-color, #6366f1);
}

.active-filter-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color, #6366f1);
    background: color-mix(in srgb, var(--primary-color, #6366f1) 12%, transparent);
    padding: 3px 8px;
    border-radius: 6px;
}

.btn-clear-tier {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.btn-clear-tier:hover { color: var(--text-main, #0f172a); }
.btn-clear-tier i, .btn-clear-tier svg { width: 14px; height: 14px; }

/* ==========================================================================
   PHASE 2: ADVANCED TELEMETRY, 404 RECLAMATION & HOP VISUALIZER STYLES
   ========================================================================== */

/* ── 1. Google Organic SERP Telemetry Badge ── */
.ref-google-serp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    background: color-mix(in srgb, #f59e0b 12%, transparent);
    border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
    font-size: 11px;
    font-weight: 700;
    color: #d97706;
    margin-top: 4px;
    margin-bottom: 3px;
    width: fit-content;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.1);
}

.dark .ref-google-serp-badge {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
}

.serp-badge-icon i, .serp-badge-icon svg {
    width: 12px;
    height: 12px;
    color: currentColor;
}

.serp-sub-pill {
    padding: 1px 5px;
    border-radius: 4px;
    background: color-mix(in srgb, #f59e0b 20%, transparent);
    font-size: 10px;
    font-weight: 800;
}

/* ── 2. Link Juice Dilution Meter ── */
.ref-link-juice-meter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    margin-top: 4px;
    width: fit-content;
}

.juice-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.juice-pure {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.juice-pure .juice-dot {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.juice-moderate {
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.25);
}
.juice-moderate .juice-dot {
    background: #06b6d4;
}

.juice-diluted {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.juice-diluted .juice-dot {
    background: #ef4444;
}

.dark .juice-pure { color: #34d399; }
.dark .juice-moderate { color: #22d3ee; }
.dark .juice-diluted { color: #f87171; }

/* ── 3. Interactive Redirect Chain Hop Inspector Button ── */
.redirect-chain-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    background: color-mix(in srgb, var(--primary-color, #6366f1) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color, #6366f1) 28%, transparent);
    color: var(--primary-color, #6366f1);
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: fit-content;
}

.redirect-chain-btn:hover {
    background: var(--primary-color, #6366f1);
    color: #ffffff;
    border-color: var(--primary-color, #6366f1);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

.redirect-chain-btn i, .redirect-chain-btn svg {
    width: 12px;
    height: 12px;
}

/* ── 4. Sticky Bulk Disavow Button ── */
.bulk-btn-disavow {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.bulk-btn-disavow:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* ── 5. 404 Reclamation Master Banner ── */
.reclamation-master-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    gap: 20px;
    transition: all 0.3s ease;
}

.rmb-clean {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.rmb-has-leaks {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(245, 158, 11, 0.06) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.rmb-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rmb-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rmb-clean .rmb-icon-box {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.rmb-has-leaks .rmb-icon-box {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.rmb-icon-box i, .rmb-icon-box svg {
    width: 24px;
    height: 24px;
}

.rmb-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-muted, #64748b);
    margin-bottom: 4px;
}

.rmb-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0 0 4px 0;
}

.rmb-desc {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin: 0;
    max-width: 680px;
    line-height: 1.5;
}

.rmb-right {
    flex-shrink: 0;
}

.rmb-btn-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-reclaim {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
    transition: all 0.2s;
}

.btn-reclaim:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-nginx {
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #0f172a);
    transition: all 0.2s;
}

.btn-nginx:hover {
    border-color: var(--primary-color, #6366f1);
    color: var(--primary-color, #6366f1);
}

/* ── 6. Reclamation Section & Table ── */
.reclamation-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 12px 0;
}

.reclamation-section-title h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

.rst-count-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted, #64748b);
}

.broken-url-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.broken-icon {
    color: #ef4444;
    display: flex;
    align-items: center;
}

.broken-icon i, .broken-icon svg {
    width: 14px;
    height: 14px;
}

.broken-path {
    font-family: monospace;
    font-size: 12.5px;
    font-weight: 700;
    color: #ef4444;
    word-break: break-all;
}

.lost-count-badge {
    font-size: 13px;
    font-weight: 800;
    color: #ef4444;
}

.btn-xs-reclaim {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-xs-reclaim:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

/* ── 7. Redirect Chain Path Visualizer Modal ── */
.gr-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gr-modal-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.gr-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary-color, #6366f1) 12%, transparent);
    color: var(--primary-color, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-wrap i, .modal-icon-wrap svg {
    width: 18px;
    height: 18px;
}

.gr-modal-close {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
}

.gr-modal-close:hover {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-main, #0f172a);
}

.gr-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.gr-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: var(--bg-body, rgba(248, 250, 252, 0.5));
}

/* ── Chain Timeline Flow Nodes ── */
.chain-timeline-flow {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chain-step-node {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--card-bg, #ffffff);
    position: relative;
    transition: all 0.2s;
}

.chain-node-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.node-origin .chain-node-marker {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.node-redirect .chain-node-marker {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.node-destination .chain-node-marker {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.chain-node-marker i, .chain-node-marker svg {
    width: 14px;
    height: 14px;
}

.chain-node-content {
    flex: 1;
    min-width: 0;
}

.cn-badge {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.origin-badge { color: #6366f1; }
.redirect-badge { color: #f59e0b; }
.dest-badge { color: #10b981; }

.cn-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.hop-code-pill {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.code-301 {
    background: rgba(6, 182, 212, 0.15);
    color: #0891b2;
}

.code-302 {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.cn-url {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-main, #0f172a);
    word-break: break-all;
    line-height: 1.4;
    margin-bottom: 4px;
}

.cn-meta {
    font-size: 11px;
    color: var(--text-muted, #64748b);
    display: flex;
    gap: 6px;
}

.cn-note {
    font-size: 11px;
    color: #d97706;
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chain-flow-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #94a3b8);
    height: 20px;
}

.chain-flow-connector i, .chain-flow-connector svg {
    width: 14px;
    height: 14px;
}

/* ══════════════════════════════════════════════════════════════
   NEXT-GEN STRATEGIC INTELLIGENCE SUITE STYLING
   ══════════════════════════════════════════════════════════════ */

/* ── Top Ribbon Client PDF Button ── */
.ctr-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ctr-report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.5);
}

.ctr-report-btn i, .ctr-report-btn svg {
    width: 14px;
    height: 14px;
}

/* ── Strategic Tab Icon Box Accent Colors ── */
.ling-icon-cyan { background: rgba(6, 182, 212, 0.12); color: #06b6d4; border-color: rgba(6, 182, 212, 0.25); }
.ling-icon-red { background: rgba(239, 68, 68, 0.12); color: #ef4444; border-color: rgba(239, 68, 68, 0.25); }
.ling-icon-indigo { background: rgba(99, 102, 241, 0.12); color: #6366f1; border-color: rgba(99, 102, 241, 0.25); }
.ling-icon-gold { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border-color: rgba(245, 158, 11, 0.25); }
.ling-icon-green { background: rgba(16, 185, 129, 0.12); color: #10b981; border-color: rgba(16, 185, 129, 0.25); }
.ling-icon-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; border-color: rgba(168, 85, 247, 0.25); }
.ling-icon-amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border-color: rgba(245, 158, 11, 0.25); }
.ling-icon-blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; border-color: rgba(59, 130, 246, 0.25); }
.ling-icon-emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; border-color: rgba(16, 185, 129, 0.25); }

/* When parent tab button is ACTIVE: sleek glassmorphism white overlay */
.ling-tab-btn.active .ling-icon-box {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ling-tab-btn.active .ling-icon-box i,
.ling-tab-btn.active .ling-icon-box svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* ── Universal GuinRank Button Design System (btn-solid-sm) ── */
.btn-solid-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    white-space: nowrap;
    user-select: none;
    text-decoration: none;
}

.btn-solid-sm i, .btn-solid-sm svg {
    width: 15px;
    height: 15px;
    stroke-width: 2px;
    flex-shrink: 0;
}

.btn-solid-sm:active {
    transform: scale(0.97);
}

.btn-solid-sm:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
}

.btn-solid-sm:not(.btn-cyan):not(.btn-green):not(.btn-gold):not(.btn-reclaim):not(.btn-indigo):not(.btn-emerald):not(.btn-amber) {
    background: var(--card-bg, #ffffff);
    color: var(--text-main, #334155);
    border: 1px solid var(--border-color, #cbd5e1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-solid-sm:not(.btn-cyan):not(.btn-green):not(.btn-gold):not(.btn-reclaim):not(.btn-indigo):not(.btn-emerald):not(.btn-amber):hover {
    background: var(--bg-body, #f1f5f9);
    border-color: var(--text-muted, #94a3b8);
    transform: translateY(-1px);
}

/* btn-cyan Solid */
.btn-solid-sm.btn-cyan,
.btn-cyan {
    background: linear-gradient(135deg, #06b6d4, #0284c7) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.btn-solid-sm.btn-cyan:hover,
.btn-cyan:hover {
    background: linear-gradient(135deg, #0891b2, #0369a1) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.48);
}

/* btn-green Solid */
.btn-solid-sm.btn-green,
.btn-solid-sm.btn-emerald {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-solid-sm.btn-green:hover,
.btn-solid-sm.btn-emerald:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.48);
}

/* btn-gold Solid */
.btn-solid-sm.btn-gold,
.btn-solid-sm.btn-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-solid-sm.btn-gold:hover,
.btn-solid-sm.btn-amber:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.48);
}

/* btn-reclaim Solid */
.btn-solid-sm.btn-reclaim,
.btn-solid-sm.btn-indigo {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-solid-sm.btn-reclaim:hover,
.btn-solid-sm.btn-indigo:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.48);
}

/* ═══ 1. COMPETITOR LINK GAP MATRIX ═══ */
.competitor-gap-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comp-input-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
}

.cib-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cib-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cib-icon i, .cib-icon svg { width: 20px; height: 20px; }

.cib-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

.cib-desc {
    margin: 3px 0 0 0;
    font-size: 11.5px;
    color: var(--text-muted, #64748b);
}

.cib-inputs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cib-input-wrap {
    display: flex;
    align-items: center;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #cbd5e1);
    border-radius: 10px;
    padding: 3px 8px;
    gap: 6px;
}

.cib-badge {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    background: var(--bg-body, #f1f5f9);
    padding: 2px 6px;
    border-radius: 6px;
}

.cib-input-wrap input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 12px;
    color: var(--text-main, #0f172a);
    width: 130px;
}

.btn-cyan {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: #ffffff !important;
    border: none !important;
}

.comp-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.csg-card {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.csg-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color, #f46a25);
    background: var(--card-bg, #ffffff);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.csg-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-gap .csg-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.card-common .csg-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.card-action .csg-icon { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

.csg-info {
    display: flex;
    flex-direction: column;
}

.csg-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.csg-val {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-main, #0f172a);
    margin: 2px 0;
}

.csg-tip {
    font-size: 10.5px;
    color: var(--text-muted, #64748b);
}

.opp-cat-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-body, #f1f5f9);
    color: var(--text-main, #334155);
    border: 1px solid var(--border-color, #e2e8f0);
}

.comp-chips-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.comp-chip {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
    font-weight: 600;
}

.opp-score-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.osb-num {
    font-weight: 900;
    font-size: 13px;
    color: #06b6d4;
    min-width: 24px;
}

.osb-bar {
    width: 60px;
    height: 6px;
    border-radius: 10px;
    background: var(--border-color, #e2e8f0);
    overflow: hidden;
}

.osb-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    border-radius: 10px;
}

/* ═══ 2. GOOGLE PENGUIN PENALTY RISK GUARD ═══ */
.penguin-guard-card {
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 14px;
}

.pgc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pgc-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pgc-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgc-icon-wrap.icon-safe { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.pgc-icon-wrap.icon-caution { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.pgc-icon-wrap.icon-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.pgc-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

.pgc-subtitle {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: var(--text-muted, #64748b);
}

.penguin-status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
}

.pill-safe { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.pill-caution { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.pill-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.psp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}

.penguin-corridor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.pcg-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pcg-item:hover {
    border-color: var(--primary-color, #f46a25);
    transform: translateY(-1px);
}

.pcg-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin-bottom: 6px;
}

.pcg-dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-emerald { background: #10b981; }
.dot-blue { background: #3b82f6; }
.dot-purple { background: #8b5cf6; }

.pcg-pct { font-weight: 900; font-size: 13px; }

.pcg-bar {
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: var(--bg-body, #f1f5f9);
    overflow: hidden;
    margin-bottom: 6px;
}

.pcg-fill { height: 100%; border-radius: 10px; }
.fill-red { background: #ef4444; }
.fill-emerald { background: #10b981; }
.fill-blue { background: #3b82f6; }
.fill-purple { background: #8b5cf6; }

.pcg-note {
    font-size: 10px;
    color: var(--text-muted, #64748b);
    display: block;
}

.pgc-advice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted, #64748b);
    background: var(--card-bg, #ffffff);
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e2e8f0);
}

.pgc-advice i, .pgc-advice svg { width: 14px; height: 14px; color: #10b981; flex-shrink: 0; }

/* ═══ N-GRAM CLOUD ═══ */
.ngram-cloud-card {
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    margin-bottom: 14px;
}

.ncc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ncc-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ncc-left h4 { margin: 0; font-size: 13px; font-weight: 800; color: var(--text-main, #0f172a); }

.ncc-tabs {
    display: flex;
    gap: 6px;
}

.ncc-pill {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #cbd5e1);
    color: var(--text-muted, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ncc-pill.active {
    background: #06b6d4;
    color: #ffffff;
    border-color: #06b6d4;
}

.ncc-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ngram-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ngram-tag:hover {
    border-color: #06b6d4;
    color: #06b6d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.nt-count {
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 100px;
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    font-weight: 800;
}

/* ═══ 3. CLASS-C SUBNETS & PBN RADAR ═══ */
.subnets-tab-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.subnet-banner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 16px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    flex-wrap: wrap;
}

.sbc-left {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 750px;
}

.sbc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sbc-has-pbn .sbc-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.sbc-clean .sbc-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.sbc-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted, #64748b);
}

.sbc-title {
    margin: 2px 0 3px 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

.sbc-desc {
    margin: 0;
    font-size: 11.5px;
    color: var(--text-muted, #64748b);
    line-height: 1.45;
}

.sbc-right {
    display: flex;
    gap: 10px;
}

.sbc-stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
}

.sbc-stat-pill.pill-warn {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.ssp-val { font-size: 16px; font-weight: 900; color: var(--text-main, #0f172a); }
.ssp-lbl { font-size: 10px; font-weight: 700; color: var(--text-muted, #64748b); text-transform: uppercase; }

.subnet-ip-chip code {
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
}

.sbc-domain-count.count-high {
    color: #ef4444;
    font-weight: 800;
}

.subnet-domain-chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.sub-chip {
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--bg-body, #f1f5f9);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #334155);
    cursor: pointer;
}

.sub-chip:hover { border-color: #06b6d4; color: #06b6d4; }

.sub-chip-more {
    font-size: 10px;
    color: var(--text-muted, #64748b);
}

.btn-xs-disavow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-xs-disavow:hover {
    background: #ef4444;
    color: #ffffff;
}

/* ═══ 4. NEW VS LOST VELOCITY FLOW ═══ */
.velocity-tab-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.velocity-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.vsg-card {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 14px;
}

.vsg-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-new .vsg-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.card-lost .vsg-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.card-net .vsg-icon { background: rgba(99, 102, 241, 0.15); color: #6366f1; }

.vsg-info { display: flex; flex-direction: column; }
.vsg-lbl { font-size: 11px; font-weight: 700; color: var(--text-muted, #64748b); text-transform: uppercase; }
.vsg-val { font-size: 18px; font-weight: 900; color: var(--text-main, #0f172a); margin: 2px 0; }
.vsg-tip { font-size: 10.5px; color: var(--text-muted, #64748b); }

.lost-link-cells {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.link-from {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    word-break: break-all;
}

.link-to-arrow {
    font-size: 11px;
    color: #ef4444;
}

.winback-guidance {
    font-size: 11px;
    color: var(--text-muted, #64748b);
    line-height: 1.4;
}

/* ═══ 5. AI EXECUTIVE AUDIT & ACTION PLAN ═══ */
.executive-ai-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ai-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--card-bg, #ffffff) 80%, transparent), color-mix(in srgb, var(--bg-body, #f8fafc) 90%, transparent));
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    flex-wrap: wrap;
}

.ahc-left { max-width: 680px; }

.ahc-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.ahc-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-main, #0f172a);
    letter-spacing: -0.5px;
}

.ahc-desc {
    margin: 6px 0 14px 0;
    font-size: 12.5px;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
}

.ahc-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff !important;
    border: none !important;
}

.ai-score-reactor {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    border-radius: 16px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.asr-ring {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.asr-num {
    font-size: 42px;
    font-weight: 900;
    color: #10b981;
    line-height: 1;
}

.asr-max {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
}

.asr-grade {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 4px;
}

.grade-A { color: #10b981; }
.grade-B { color: #3b82f6; }
.grade-C { color: #f59e0b; }
.grade-D { color: #ef4444; }

.ai-diagnosis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .ai-diagnosis-grid { grid-template-columns: 1fr; }
}

.aid-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.aid-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

.aid-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aid-card {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-strength { border-left: 3px solid #10b981; }
.card-vulnerability { border-left: 3px solid #ef4444; }

.ac-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ac-num {
    font-size: 11px;
    font-weight: 900;
    color: var(--text-muted, #64748b);
}

.ac-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    flex-grow: 1;
}

.ac-metric {
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 8px;
    border-radius: 100px;
}

.ac-sev {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

.sev-critical { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.sev-high { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.sev-medium { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.sev-growth { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

.ac-desc {
    margin: 0;
    font-size: 11.5px;
    color: var(--text-muted, #64748b);
    line-height: 1.45;
}

.ai-blueprint-card {
    padding: 20px 24px;
    border-radius: 18px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
}

.abc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.abc-header h4 { margin: 0; font-size: 14px; font-weight: 800; color: var(--text-main, #0f172a); }

.abc-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    padding: 2px 8px;
    border-radius: 100px;
}

.abc-timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.abc-step-card {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ast-step-badge {
    font-size: 10.5px;
    font-weight: 800;
    color: #f59e0b;
    text-transform: uppercase;
}

.ast-action {
    margin: 0;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

.ast-impact {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
}

.ast-detail {
    margin: 0;
    font-size: 11.5px;
    color: var(--text-muted, #64748b);
    line-height: 1.45;
}

/* ══════════════════════════════════════════════════════════════
   MATHEMATICAL INTELLIGENCE SUITE: 100% DATA-SQUEEZED MODULES
   ══════════════════════════════════════════════════════════════ */

/* 1. In-Sentence Context Placement Subbar */
.table-context-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 18px;
    background: var(--bg-body, #f8fafc);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.tcs-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tcs-lbl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.tcs-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--card-bg, #ffffff);
    color: var(--text-muted, #64748b);
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tcs-pill:hover {
    border-color: var(--primary-color, #10b981);
    color: var(--text-main, #0f172a);
}

.tcs-pill.active {
    background: var(--primary-color, #10b981);
    color: #ffffff;
    border-color: var(--primary-color, #10b981);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.tcs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.dot-green { background: #10b981; }
.dot-cyan { background: #06b6d4; }
.dot-gray { background: #94a3b8; }

.tcs-share-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.tag-ctx-editorial {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    font-weight: 700 !important;
}

.tag-ctx-image {
    background: rgba(6, 182, 212, 0.12) !important;
    color: #06b6d4 !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
}

.tag-ctx-isolated {
    background: rgba(148, 163, 184, 0.12) !important;
    color: #64748b !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

/* 2. Referring Domain Dependency & Sitewide Footprint Banner */
.domain-dependency-banner {
    margin-bottom: 20px;
}

.ddb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.ddb-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.ddb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.ddb-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-single .ddb-icon { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.card-multi .ddb-icon { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.card-sitewide .ddb-icon { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.card-risk .ddb-icon { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.ddb-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ddb-lbl {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ddb-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

.ddb-tip {
    font-size: 11px;
    color: var(--text-muted, #64748b);
}

.footprint-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.fp-editorial { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.fp-multi { background: rgba(59, 130, 246, 0.12); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.25); }
.fp-sitewide { background: rgba(245, 158, 11, 0.15); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }

/* 3. Deep-Link Ratio & Target Inbound Equity Balance */
.deep-link-balance-card {
    padding: 18px 22px;
    border-radius: 16px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

.dlb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.dlb-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dlb-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dlb-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin: 0;
}

.dlb-subtitle {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    margin: 2px 0 0 0;
}

.dlb-corridor-badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}
.badge-balanced { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-top-heavy { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-deep-skewed { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }

.dlb-track {
    width: 100%;
    height: 26px;
    background: var(--bg-body, #f1f5f9);
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
}

.dlb-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    transition: width 0.4s ease;
}

.bar-home { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.bar-deep { background: linear-gradient(90deg, #10b981, #059669); }

.dlb-legend-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 12px;
}

.dlb-leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main, #334155);
}

.dlb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-home { background: #3b82f6; }
.dot-deep { background: #10b981; }

/* 4. Mathematical Disavow "What-If" Simulator */
.disavow-simulator-card {
    padding: 22px;
    border-radius: 20px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.dsc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.dsc-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dsc-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsc-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    margin: 0;
}

.dsc-subtitle {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    margin: 2px 0 0 0;
}

.dsc-body {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: center;
}

@media (max-width: 900px) {
    .dsc-body { grid-template-columns: 1fr; }
}

.slider-control-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.scr-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.scr-title {
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

.scr-val {
    font-weight: 800;
    color: #ef4444;
}

.gr-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 45%, #ef4444 100%);
    outline: none;
    cursor: pointer;
}

.gr-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #f59e0b;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.gr-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.scr-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
}

.dsc-toggle-row {
    margin-top: 6px;
}

.gr-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-main, #334155);
    cursor: pointer;
}

.dsc-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dsm-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
    border-radius: 14px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
}

.card-reduction { border-color: rgba(239, 68, 68, 0.25); background: rgba(239, 68, 68, 0.04); }
.card-purged { border-color: rgba(245, 158, 11, 0.25); background: rgba(245, 158, 11, 0.04); }
.card-clean { border-color: rgba(16, 185, 129, 0.25); background: rgba(16, 185, 129, 0.04); }

.dsm-lbl {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.dsm-val {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 2px;
}

.card-reduction .dsm-val { color: #ef4444; }
.card-purged .dsm-val { color: #f59e0b; }
.card-clean .dsm-val { color: #10b981; }

.dsm-note {
    font-size: 10.5px;
    color: var(--text-muted, #64748b);
}

/* ══════════════════════════════════════════════════════════════
   WHITE-LABEL CLIENT PRINT & PDF STYLESHEET (@media print)
   ══════════════════════════════════════════════════════════════ */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 8mm;
    }

    body {
        background: #ffffff !important;
        color: #0f172a !important;
        font-size: 11px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide non-printable interactive UI controls */
    .hero-container,
    .main-search-wrapper,
    .ling-tabs-container,
    .table-search-box,
    .table-filter-pills,
    .export-wrapper,
    .cpc-buttons-list,
    .deck-mode-toggle,
    .ctr-refresh-btn,
    .ctr-report-btn,
    .btn-xs-filter,
    .btn-xs-reclaim,
    .btn-xs-disavow,
    .kw-table-footer,
    .ahc-btn-group,
    .gr-modal-backdrop {
        display: none !important;
    }

    .citadel-command-deck {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .cmd-top-ribbon {
        border-bottom: 2px solid #0f172a !important;
        margin-bottom: 15px !important;
    }

    .citadel-chart-card,
    .d-card,
    .ai-hero-card,
    .ai-blueprint-card {
        page-break-inside: avoid !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    .gr-table th, .gr-table td {
        border-color: #cbd5e1 !important;
        padding: 5px 8px !important;
    }
}

/* ==========================================================================
   MULTI-DOMAIN WARFARE & MARKET BENCHMARK STYLES
   ========================================================================== */

.analysis-scope-selector-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 900px;
}

/* ── Floating Dock Clearance ── */
.backlinks-container {
    padding-bottom: 120px !important;
}

/* ── Scope Mode Switcher (Single Audit vs Multi Warfare) ── */
.analysis-scope-selector-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 26px auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.scope-mode-tabs {
    display: inline-flex;
    align-items: center;
    background: var(--card-bg, #ffffff);
    padding: 5px;
    border-radius: 9999px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    gap: 4px;
}

.smt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    background: transparent;
    border: none;
    color: var(--text-muted, #64748b);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.smt-btn .smt-icon {
    display: inline-flex;
    align-items: center;
}

.smt-btn .smt-icon svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
}

.smt-btn:hover {
    color: var(--text-main, #0f172a);
    background: var(--bg-body, #f8fafc);
}

.smt-btn.active {
    background: var(--primary-color, #f46a25);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(244, 106, 37, 0.35);
}

.smt-badge {
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

/* ── Multi-Domain Warfare Input Deck ── */
.multi-warfare-deck {
    max-width: 960px;
    margin: 0 auto 30px auto;
    width: 100%;
}

.mwd-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.mwd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f46a25, #ec4899, #8b5cf6);
}

.mwd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.mwd-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mwd-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(244, 106, 37, 0.12), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(244, 106, 37, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #f46a25);
}

.mwd-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.mwd-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin: 0 0 4px 0;
}

.mwd-subtitle {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    margin: 0;
}

.mwd-strategy-pills {
    display: inline-flex;
    background: var(--bg-body, #f8fafc);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e2e8f0);
    gap: 4px;
}

.msp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted, #64748b);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.msp-pill svg {
    width: 13px;
    height: 13px;
}

.msp-pill.active {
    background: var(--card-bg, #ffffff);
    color: var(--primary-color, #f46a25);
    border: 1px solid rgba(244, 106, 37, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mwd-inputs-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.mwd-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mwd-input-row:hover {
    border-color: rgba(244, 106, 37, 0.35);
}

.mwd-input-row.is-owned {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.04);
}

.mwd-role-badge-wrap {
    min-width: 140px;
}

.mwd-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.mwd-role-badge svg {
    width: 13px;
    height: 13px;
}

.mwd-role-badge.role-owned {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.22));
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: #d97706;
}

.mwd-role-badge.role-competitor {
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.25);
    color: var(--text-muted, #64748b);
}

.mwd-role-badge:hover {
    transform: scale(1.02);
}

.mwd-input-box {
    flex: 1;
}

.mwd-text-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main, #0f172a);
    font-size: 14px;
    font-weight: 500;
}

.mwd-text-input::placeholder {
    color: var(--text-muted, #94a3b8);
    opacity: 0.8;
}

.mwd-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mwd-remove-btn svg {
    width: 15px;
    height: 15px;
}

.mwd-remove-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.mwd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-add-domain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: transparent;
    border: 1px dashed var(--border-color, #cbd5e1);
    color: var(--text-muted, #64748b);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-domain svg {
    width: 15px;
    height: 15px;
}

.btn-add-domain:hover {
    border-color: var(--primary-color, #f46a25);
    color: var(--primary-color, #f46a25);
    background: rgba(244, 106, 37, 0.05);
}

.btn-compare-warfare {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f46a25, #e05310);
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(244, 106, 37, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-compare-warfare svg {
    width: 17px;
    height: 17px;
}

.btn-compare-warfare:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 106, 37, 0.45);
}

.btn-compare-warfare:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Dedicated Multi-Domain Warfare Citadel Deck ── */
.multi-warfare-citadel-deck {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 22px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.multi-warfare-citadel-deck::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #f46a25), #ec4899, #8b5cf6);
}

.multi-scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(244, 106, 37, 0.1);
    border: 1px solid rgba(244, 106, 37, 0.25);
    color: var(--primary-color, #f46a25);
    font-size: 12px;
}

.multi-scope-badge svg {
    width: 14px;
    height: 14px;
}

.btn-edit-domains {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-main, #0f172a);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-domains:hover {
    border-color: var(--primary-color, #f46a25);
    color: var(--primary-color, #f46a25);
    background: rgba(244, 106, 37, 0.05);
}

/* ── Deficit / Advantage Telemetry Banner ── */
.multi-deficit-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(244, 106, 37, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(244, 106, 37, 0.2);
    border-radius: 16px;
    margin-bottom: 22px;
}

.mdb-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 280px;
}

.mdb-rank-badge {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid #f59e0b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #d97706;
}

.mdb-rank-badge.rank-1 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.mrb-num {
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.mrb-lbl {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.85;
}

.mdb-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin: 0 0 4px 0;
}

.mdb-desc {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin: 0;
    line-height: 1.5;
}

.mdb-deltas-grid {
    display: flex;
    gap: 12px;
}

.mdb-delta-chip {
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.mdc-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    margin-bottom: 2px;
}

.mdc-val {
    font-size: 15px;
    font-weight: 800;
}

.delta-pos .mdc-val {
    color: #10b981;
}

.delta-neg .mdc-val {
    color: #ef4444;
}

/* ── Multi-Leaderboard Grid ── */
.multi-leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.ml-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 18px;
    padding: 18px 20px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.ml-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color, #f46a25);
}

.ml-card.card-owned {
    border-color: #f59e0b;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, var(--card-bg, #ffffff) 100%);
}

.ml-card.is-champion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}

.ml-card.is-active-target {
    border-color: var(--primary-color, #f46a25) !important;
    box-shadow: 0 0 0 2px var(--primary-color, #f46a25), 0 10px 25px rgba(244, 106, 37, 0.15) !important;
    transform: translateY(-2px);
}

.ml-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ml-rank-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted, #64748b);
}

.ml-rank-pill.rank-1 {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.ml-rank-pill.rank-2 {
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
}

.ml-role-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

.ml-role-chip.role-owned {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ml-role-chip.role-comp {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted, #64748b);
}

.ml-domain-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.ml-fav {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.ml-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-dr-circle {
    margin: 0 auto 16px auto;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-bg, #ffffff) 60%, rgba(244, 106, 37, 0.12) 100%);
    border: 3px solid var(--primary-color, #f46a25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(244, 106, 37, 0.15);
}

.mld-score {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-main, #0f172a);
    line-height: 1;
}

.mld-lbl {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--primary-color, #f46a25);
    margin-top: 3px;
}

.ml-stats-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    border-top: 1px solid var(--border-color, #e2e8f0);
    padding-top: 14px;
    font-size: 13px;
}

.ml-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mls-lbl {
    color: var(--text-muted, #64748b);
}

.mls-val {
    color: var(--text-main, #0f172a);
    font-weight: 700;
}

/* ── Active Target Switcher Bar ── */
.multi-active-target-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    margin-bottom: 20px;
}

.matb-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
}

.matb-label svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color, #f46a25);
}

.matb-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-muted, #64748b);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.matb-pill:hover {
    color: var(--text-main, #0f172a);
    border-color: var(--primary-color, #f46a25);
}

.matb-pill.active {
    background: var(--primary-color, #f46a25);
    color: #ffffff;
    border-color: var(--primary-color, #f46a25);
    box-shadow: 0 4px 12px rgba(244, 106, 37, 0.35);
}

.matb-pill.active.pill-owned {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.matb-dr {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.15);
}

/* ══════════════════════════════════════════════════════════════
   DARK & SUNMOON THEME OVERRIDES FOR WARFARE SUITE
   ══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .scope-mode-tabs,
[data-theme="sunmoon"] .scope-mode-tabs,
[data-theme="sunset"] .scope-mode-tabs,
[data-theme="bw"] .scope-mode-tabs {
    background: var(--card-bg, #1e293b);
    border-color: var(--border-color, rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] .smt-btn,
[data-theme="sunmoon"] .smt-btn,
[data-theme="sunset"] .smt-btn,
[data-theme="bw"] .smt-btn {
    color: var(--text-muted, #94a3b8);
}

[data-theme="dark"] .smt-btn:hover,
[data-theme="sunmoon"] .smt-btn:hover,
[data-theme="sunset"] .smt-btn:hover,
[data-theme="bw"] .smt-btn:hover {
    color: var(--text-main, #ffffff);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .multi-warfare-deck .mwd-card,
[data-theme="sunmoon"] .multi-warfare-deck .mwd-card,
[data-theme="sunset"] .multi-warfare-deck .mwd-card,
[data-theme="bw"] .multi-warfare-deck .mwd-card {
    background: var(--card-bg, #1e293b);
    border-color: var(--border-color, rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] .mwd-title,
[data-theme="sunmoon"] .mwd-title,
[data-theme="sunset"] .mwd-title,
[data-theme="bw"] .mwd-title {
    color: #ffffff;
}

[data-theme="dark"] .mwd-subtitle,
[data-theme="sunmoon"] .mwd-subtitle,
[data-theme="sunset"] .mwd-subtitle,
[data-theme="bw"] .mwd-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .mwd-strategy-pills,
[data-theme="sunmoon"] .mwd-strategy-pills,
[data-theme="sunset"] .mwd-strategy-pills,
[data-theme="bw"] .mwd-strategy-pills {
    background: var(--bg-body, rgba(0, 0, 0, 0.3));
    border-color: var(--border-color, rgba(255, 255, 255, 0.08));
}

[data-theme="dark"] .msp-pill,
[data-theme="sunmoon"] .msp-pill,
[data-theme="sunset"] .msp-pill,
[data-theme="bw"] .msp-pill {
    color: #94a3b8;
}

[data-theme="dark"] .msp-pill.active,
[data-theme="sunmoon"] .msp-pill.active,
[data-theme="sunset"] .msp-pill.active,
[data-theme="bw"] .msp-pill.active {
    background: var(--card-bg, #1e293b);
    color: var(--primary-color, #f46a25);
}

[data-theme="dark"] .mwd-input-row,
[data-theme="sunmoon"] .mwd-input-row,
[data-theme="sunset"] .mwd-input-row,
[data-theme="bw"] .mwd-input-row {
    background: var(--bg-body, rgba(0, 0, 0, 0.2));
    border-color: var(--border-color, rgba(255, 255, 255, 0.08));
}

[data-theme="dark"] .mwd-text-input,
[data-theme="sunmoon"] .mwd-text-input,
[data-theme="sunset"] .mwd-text-input,
[data-theme="bw"] .mwd-text-input {
    color: #ffffff;
}

[data-theme="dark"] .multi-warfare-citadel-deck,
[data-theme="sunmoon"] .multi-warfare-citadel-deck,
[data-theme="sunset"] .multi-warfare-citadel-deck,
[data-theme="bw"] .multi-warfare-citadel-deck {
    background: var(--card-bg, #1e293b);
    border-color: var(--border-color, rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] .btn-edit-domains,
[data-theme="sunmoon"] .btn-edit-domains,
[data-theme="sunset"] .btn-edit-domains,
[data-theme="bw"] .btn-edit-domains {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

[data-theme="dark"] .multi-deficit-banner,
[data-theme="sunmoon"] .multi-deficit-banner,
[data-theme="sunset"] .multi-deficit-banner,
[data-theme="bw"] .multi-deficit-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-color: rgba(244, 106, 37, 0.3);
}

[data-theme="dark"] .mdb-title,
[data-theme="sunmoon"] .mdb-title,
[data-theme="sunset"] .mdb-title,
[data-theme="bw"] .mdb-title {
    color: #ffffff;
}

[data-theme="dark"] .mdb-desc,
[data-theme="sunmoon"] .mdb-desc,
[data-theme="sunset"] .mdb-desc,
[data-theme="bw"] .mdb-desc {
    color: #94a3b8;
}

[data-theme="dark"] .mdb-delta-chip,
[data-theme="sunmoon"] .mdb-delta-chip,
[data-theme="sunset"] .mdb-delta-chip,
[data-theme="bw"] .mdb-delta-chip {
    background: var(--bg-body, rgba(0, 0, 0, 0.3));
    border-color: var(--border-color, rgba(255, 255, 255, 0.08));
}

[data-theme="dark"] .ml-card,
[data-theme="sunmoon"] .ml-card,
[data-theme="sunset"] .ml-card,
[data-theme="bw"] .ml-card {
    background: var(--card-bg, #1e293b);
    border-color: var(--border-color, rgba(255, 255, 255, 0.08));
}

[data-theme="dark"] .ml-name,
[data-theme="sunmoon"] .ml-name,
[data-theme="sunset"] .ml-name,
[data-theme="bw"] .ml-name {
    color: #ffffff;
}

[data-theme="dark"] .ml-dr-circle,
[data-theme="sunmoon"] .ml-dr-circle,
[data-theme="sunset"] .ml-dr-circle,
[data-theme="bw"] .ml-dr-circle {
    background: radial-gradient(circle, var(--card-bg, #1e293b) 60%, rgba(244, 106, 37, 0.15) 100%);
}

[data-theme="dark"] .mld-score,
[data-theme="sunmoon"] .mld-score,
[data-theme="sunset"] .mld-score,
[data-theme="bw"] .mld-score {
    color: #ffffff;
}

[data-theme="dark"] .ml-stats-list,
[data-theme="sunmoon"] .ml-stats-list,
[data-theme="sunset"] .ml-stats-list,
[data-theme="bw"] .ml-stats-list {
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mls-val,
[data-theme="sunmoon"] .mls-val,
[data-theme="sunset"] .mls-val,
[data-theme="bw"] .mls-val {
    color: #ffffff;
}

[data-theme="dark"] .multi-active-target-bar,
[data-theme="sunmoon"] .multi-active-target-bar,
[data-theme="sunset"] .multi-active-target-bar,
[data-theme="bw"] .multi-active-target-bar {
    background: var(--bg-body, rgba(0, 0, 0, 0.2));
    border-color: var(--border-color, rgba(255, 255, 255, 0.08));
}

[data-theme="dark"] .matb-pill,
[data-theme="sunmoon"] .matb-pill,
[data-theme="sunset"] .matb-pill,
[data-theme="bw"] .matb-pill {
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border-color: var(--border-color, rgba(255, 255, 255, 0.1));
    color: var(--text-muted, #94a3b8);
}

/* ══════════════════════════════════════════════════════════════
   WARFARE LAYOUT ALIGNMENT, DROPDOWNS & UTILITY ENHANCEMENTS
   ══════════════════════════════════════════════════════════════ */

/* ── Multi-Warfare Integrated Header ── */
.multi-warfare-integrated-header {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cmd-top-ribbon.multi-ribbon {
    background: var(--bg-body, rgba(0, 0, 0, 0.04));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 4px;
}

.ctr-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mwd-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-solid-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    background: linear-gradient(135deg, var(--primary-color, #f46a25), #d97706);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(244, 106, 37, 0.3);
}

.btn-solid-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 106, 37, 0.45);
}

/* ── Custom Select & Export Dropdowns ── */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
}

.cs-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 170px;
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--border-color, rgba(255, 255, 255, 0.08));
    padding: 6px;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-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.cs-dropdown-right {
    left: auto;
    right: 0;
}

.cs-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main, #ffffff);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cs-option:hover {
    background: rgba(244, 106, 37, 0.12);
    color: var(--primary-color, #f46a25);
}

.cs-option.selected {
    background: var(--primary-color, #f46a25);
    color: #ffffff;
    font-weight: 700;
}

.cs-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cs-option-icon svg, .cs-option-icon i {
    width: 14px;
    height: 14px;
}

.btn-export-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.btn-export-arrow svg, .btn-export-arrow i {
    width: 12px;
    height: 12px;
}

/* ── Tab Panes & Smooth Transitions ── */
.tab-pane {
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
}

.tab-pane.animate-slide-up {
    animation: slideUpTab 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Text Utility Classes ── */
.c-text-muted { color: var(--text-muted, #94a3b8) !important; }
.c-text-green { color: #10b981 !important; }
.c-text-cyan { color: #06b6d4 !important; }
.c-text-red { color: #ef4444 !important; }
.c-text-blue { color: #3b82f6 !important; }
.c-text-amber, .c-text-gold { color: #f59e0b !important; }
.c-text-purple { color: #a855f7 !important; }

/* ── Empty State Handling ── */
.empty-state-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted, #94a3b8);
}

.empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--text-muted, #94a3b8);
}

.empty-icon svg, .empty-icon i {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   D-CARD NEUTRALIZATION & CARD CLADDING PURIFICATION
   Removes redundant outer backgrounds and borders from tab panes
   ========================================================================== */
.tab-pane.d-card,
.d-card.tab-pane,
.backlinks-container .d-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

/* ==========================================================================
   BIDIRECTIONAL (RTL / LTR) TYPOGRAPHY & PAIRED PUNCTUATION PURIFICATION
   Prevents misplaced leading/trailing dots and flipped colons/percentages
   ========================================================================== */
.ccc-advice {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext !important;
}

.tld-rank-row {
    direction: ltr !important;
    text-align: left !important;
}

.tld-rank-left,
.tld-ext-name {
    direction: ltr !important;
    unicode-bidi: isolate !important;
}

.equity-flow-conduit,
.efc-pill {
    direction: ltr !important;
    text-align: left !important;
}

.efc-name,
.efc-count {
    direction: ltr !important;
    unicode-bidi: isolate !important;
}

.dr-macro-ratio-bar,
.platform-macro-spectrum-bar {
    direction: ltr !important;
}

.dr-tier-pills-bar,
.dr-tpill {
    direction: ltr !important;
}

#chart-platform-footprint svg {
    overflow: visible !important;
}
