/* REDES DE INFLUÊNCIA - STYLES */

/* ========== SIDE-RAIL NAVIGATION (Padrão Plano-Projeto) ========== */
.app-container {
    display: flex;
    min-height: 100vh;
    padding-top: 42px;
}

/* Sidebar Rail (Collapsed) - 60px width with neon effects */
.sidebar-rail {
    width: 60px;
    background: #0a0a0c;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    height: calc(100vh - 42px);
    top: 42px;
    padding: 16px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 100;
}

.rail-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.logo-orb {
    width: 30px;
    height: 30px;
    background: url('../img/logo-orb.jpg') center/cover;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: orb-pulse 4s infinite ease-in-out, orb-glow 8s infinite linear;
}

.logo-orb::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 400%;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
    animation: orb-rotate 10s infinite linear;
}

@keyframes orb-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes orb-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes orb-glow {
    0% {
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    }

    20% {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    }

    40% {
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
    }

    60% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    }

    80% {
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    }

    100% {
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    }
}

.rail-logo:hover {
    transform: scale(1.05);
}

.rail-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    width: 100%;
    padding: 0 8px;
}

.rail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
    position: relative;
}

.rail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: none;
}

.rail-icon svg,
.rail-icon i {
    width: 20px;
    height: 20px;
    stroke-width: 1.5px;
    pointer-events: none;
}

/* Neon Hover Colors */
.rail-item.color-cyan:hover {
    color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    background: rgba(0, 210, 255, 0.1);
}

.rail-item.color-purple:hover {
    color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
}

.rail-item.color-orange:hover {
    color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
}

.rail-item.color-red:hover {
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.rail-item.color-pink:hover {
    color: #ec4899;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
    background: rgba(236, 72, 153, 0.1);
}

.rail-item.color-blue:hover {
    color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
}

.rail-item.color-yellow:hover {
    color: #eab308;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
    background: rgba(234, 179, 8, 0.1);
}

.rail-item.color-green:hover {
    color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.rail-item.color-white:hover {
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* Active state with neon glow */
.rail-item.color-cyan.active {
    color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
    background: rgba(0, 210, 255, 0.15);
}

.rail-item.color-purple.active {
    color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.15);
}

.rail-item.color-orange.active {
    color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    background: rgba(245, 158, 11, 0.15);
}

.rail-item.color-red.active {
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.15);
}

.rail-item.color-pink.active {
    color: #ec4899;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
    background: rgba(236, 72, 153, 0.15);
}

.rail-item.color-blue.active {
    color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.15);
}

.rail-item.color-yellow.active {
    color: #eab308;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.6);
    background: rgba(234, 179, 8, 0.15);
}

.rail-item.color-green.active {
    color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.15);
}

.rail-bottom {
    margin-top: auto;
    width: 100%;
    padding: 0 8px;
}

/* Sidebar Panel (Expanded) - Glassmorphism */
.sidebar-panel {
    width: 280px;
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    height: calc(100vh - 42px);
    left: 0;
    top: 42px;
    z-index: 200;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-panel.hidden {
    display: none !important;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-close:hover {
    background: #161619;
    color: #ffffff;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4b5563;
    margin-bottom: 8px;
    padding-left: 8px;
    font-weight: 500;
}

.nav-item {
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
}

.nav-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 3px 0 0 3px;
    background: var(--nav-accent, #00d2ff);
    transition: height 0.2s ease;
}

.nav-item:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: #ffffff;
}

.nav-item:hover::after {
    height: 60%;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.12) 100%);
    color: #ffffff;
    font-weight: 500;
}

.nav-item.active::after {
    height: 80%;
}

/* Color accents for nav items */
.nav-item.color-cyan {
    --nav-accent: #00d2ff;
}

.nav-item.color-purple {
    --nav-accent: #8b5cf6;
}

.nav-item.color-orange {
    --nav-accent: #f59e0b;
}

.nav-item.color-red {
    --nav-accent: #ef4444;
}

.nav-item.color-pink {
    --nav-accent: #ec4899;
}

.nav-item.color-blue {
    --nav-accent: #3b82f6;
}

.nav-item.color-yellow {
    --nav-accent: #eab308;
}

.nav-item.color-green {
    --nav-accent: #22c55e;
}

.nav-item-icon {
    width: 20px;
    height: 20px;
}

.nav-item-icon i {
    width: 100%;
    height: 100%;
}

/* Color Classes for Icons */
.color-cyan .rail-icon,
.color-cyan .nav-item-icon {
    color: #00d2ff;
}

.color-purple .rail-icon,
.color-purple .nav-item-icon {
    color: #8b5cf6;
}

.color-orange .rail-icon,
.color-orange .nav-item-icon {
    color: #f59e0b;
}

.color-red .rail-icon,
.color-red .nav-item-icon {
    color: #ef4444;
}

.color-pink .rail-icon,
.color-pink .nav-item-icon {
    color: #ec4899;
}

.color-blue .rail-icon,
.color-blue .nav-item-icon {
    color: #3b82f6;
}

.color-yellow .rail-icon,
.color-yellow .nav-item-icon {
    color: #eab308;
}

.color-green .rail-icon,
.color-green .nav-item-icon {
    color: #22c55e;
}

.color-white .rail-icon,
.color-white .nav-item-icon {
    color: #ffffff;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 42px;
    left: 280px;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 150;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.sidebar-overlay.hidden {
    display: none !important;
}

/* Main Content - adjusted for 60px rail */
.main-content {
    flex: 1;
    margin-left: 60px;
    padding: 32px;
    max-width: calc(100% - 60px);
}

/* Section Management */
.section {
    animation: fadeIn 0.3s ease;
}

.section.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Container Override */
.container {
    max-width: 1400px;
    margin: 0;
    padding: 0;
}

/* ========== END SIDE-RAIL ========== */

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --glass-base: rgba(13, 13, 13, 0.7);
    --accent-cyan: #00d2ff;
    --accent-orange: #ff6b6b;
    --success: #00ff88;
    --warning: #ff9f43;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 32px 40px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 32px;
}

/* ========== HERO ROW - Two Column Layout ========== */
.hero-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 32px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-left .header {
    margin-bottom: 24px;
}

.hero-left .quick-stats {
    justify-content: center;
    margin-bottom: 0;
}

.hero-right {
    display: flex;
    align-items: stretch;
}

/* Hero Insights Mini Cards */
.hero-insights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.insight-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.insight-mini:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateX(4px);
}

.insight-icon {
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.insight-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.insight-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.insight-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Brand Power Card Compact (classes legacy pokemon-* = brand-power) */
.pokemon-card-compact {
    background: linear-gradient(135deg, rgba(151, 71, 255, 0.15) 0%, rgba(180, 100, 255, 0.05) 100%);
    border: 2px solid #9747FF;
    border-radius: 16px;
    padding: 20px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pokemon-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pokemon-icon {
    font-size: 20px;
}

.pokemon-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #00d2ff;
}

.pokemon-expert {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 6px;
}

.pokemon-emoji {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 10px;
}

/* Stats Bars */
.pokemon-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-name {
    width: 55px;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-bar-bg {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease;
}

.stat-bar.hp {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.stat-bar.attack {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.stat-bar.defense {
    background: linear-gradient(90deg, #eab308, #facc15);
}

.stat-bar.spatk {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.stat-bar.spdef {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.stat-bar.speed {
    background: linear-gradient(90deg, #ec4899, #f472b6);
}

.stat-val {
    width: 45px;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: right;
}

.hp-val {
    color: #22c55e;
}

.attack-val {
    color: #f97316;
}

.defense-val {
    color: #facc15;
}

.spatk-val {
    color: #a78bfa;
}

.spdef-val {
    color: #22d3ee;
}

.speed-val {
    color: #f472b6;
}

/* Brand Power Card Footer */
.pokemon-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pf-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pf-value {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}

.pf-value.power {
    font-size: 1.2rem;
    color: #9747FF;
}

.pf-value.legendary {
    color: #FFD700;
}

.pokemon-ref {
    margin-top: 10px;
    padding: 8px 10px;
    background: rgba(151, 71, 255, 0.15);
    border-radius: 6px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: center;
}

.pokemon-ref strong {
    color: #9747FF;
}

/* Hero Row Responsive */
@media (max-width: 1100px) {
    .hero-row {
        grid-template-columns: 1fr 360px;
    }
}

@media (max-width: 900px) {
    .hero-row {
        grid-template-columns: 1fr;
    }

    .hero-left .quick-stats {
        justify-content: center;
    }
}

/* ========== END HERO ROW ========== */

.main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 600;
    margin-bottom: 16px;
}

.persona-tag {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.persona-tag .highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Quick Stats Pills */
.quick-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.stat-pill {
    background: var(--glass-base);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-pill.highlight-pill {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.05);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Section Cards */
.section-card {
    background: var(--glass-base);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* Orbital Visualization */
.orbital-section {
    margin-bottom: 48px;
}

.orbital-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 500px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.orbital-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 600px;
    max-height: 600px;
}

.orbit {
    fill: none;
    stroke-width: 1;
    opacity: 0.5;
}

.d0-core {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff8e53, #ff6b6b);
    box-shadow: 0 0 40px rgba(255, 107, 107, 0.6),
        0 0 80px rgba(255, 142, 83, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: white;
    z-index: 10;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.d-bubble {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    top: 50%;
    left: 50%;
}

.d-bubble.d1 {
    border-color: #34d399;
    color: #34d399;
    transform: translate(calc(-50% + 90px), -50%);
}

.d-bubble.d2 {
    border-color: #fbbf24;
    color: #fbbf24;
    transform: translate(calc(-50% + 140px), -50%);
}

.d-bubble.d3 {
    border-color: #a78bfa;
    color: #a78bfa;
    transform: translate(calc(-50% + 190px), -50%);
}

.d-bubble.d4 {
    border-color: #60a5fa;
    color: #60a5fa;
    transform: translate(calc(-50% + 240px), -50%);
}

/* D-Legend */
.d-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    white-space: nowrap;
}

.dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Calculator */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px;
    margin-bottom: 24px;
}

.calc-input label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.calc-input input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
}

.calc-input input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

.calc-result {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--success);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.result-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--success);
}

.result-value.green {
    color: var(--success);
}

code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent-cyan);
}

/* Revenue Box */
.revenue-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.revenue-box h3 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 16px;
}

.revenue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 16px;
    margin-bottom: 16px;
}

.revenue-input label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.revenue-input input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.revenue-result {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--success);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.insight-box {
    background: rgba(0, 210, 255, 0.05);
    border-left: 3px solid var(--accent-cyan);
    padding: 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.platform-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.platform-card.highlight-card {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.03);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.platform-icon {
    font-size: 2rem;
}

.platform-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.platform-handle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: auto;
}

.badge.verified {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.badge.priority {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.badge.niche {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.platform-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.metric {
    text-align: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metric-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.metric-value.highlight {
    color: var(--success);
    font-size: 1.3rem;
}

/* Chart Container */
.chart-container {
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    height: 300px;
}

.chart-container h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* Funnels Grid */
.funnels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.funnel-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid;
    border-radius: 12px;
    padding: 16px;
    position: relative;
}

.funnel-card.ultra-high {
    border-color: #ff6b6b;
}

.funnel-card.high {
    border-color: #fbbf24;
}

.funnel-card.highlight-funnel {
    background: rgba(0, 210, 255, 0.05);
    border-color: var(--accent-cyan);
}

.funnel-card.innovation {
    border-color: var(--success);
}

.funnel-priority {
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    display: inline-block;
    margin-bottom: 8px;
}

.innovation-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    padding: 4px 8px;
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
    border-radius: 8px;
}

.funnel-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.funnel-expert {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.funnel-model {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.funnel-metrics {
    display: flex;
    gap: 16px;
}

.fm .fml {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.fm .fmv {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

.funnel-highlight {
    background: rgba(0, 255, 136, 0.1);
    padding: 8px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--success);
    text-align: center;
}

.more-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.insight-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.insight-card.special {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.03);
}

.insight-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.insight-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.insight-stats {
    margin-bottom: 16px;
}

.is-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.is-platform {
    font-weight: 600;
    min-width: 80px;
}

.is-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
}

.is-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.content-breakdown {
    margin-bottom: 16px;
}

.cb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.cb-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--accent-cyan);
}

.bar-70 {
    width: 140px;
}

.bar-20 {
    width: 40px;
    background: var(--warning);
}

.bar-10 {
    width: 20px;
    background: #ff6b6b;
}

.insight-text {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.insight-impact {
    background: rgba(0, 255, 136, 0.1);
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 12px;
    color: var(--success);
    font-weight: 600;
    text-align: center;
}

.insight-action {
    background: rgba(0, 210, 255, 0.05);
    border-left: 3px solid var(--accent-cyan);
    padding: 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Repurpose Diagram */
.repurpose-diagram {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.rpd-source {
    text-align: center;
}

.rpd-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.rpd-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.rpd-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.rpd-arrow {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.rpd-fragmentation {
    text-align: center;
    width: 100%;
}

.rpd-targets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.rpd-target {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    font-size: 0.85rem;
}

.rpd-automation {
    width: 100%;
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid var(--accent-cyan);
    border-radius: 10px;
    padding: 16px;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {

    .platform-grid,
    .funnels-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }

    .calc-grid,
    .revenue-grid {
        grid-template-columns: 1fr;
    }

    .rpd-targets {
        grid-template-columns: repeat(2, 1fr);
    }

    .d-legend {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== BENCHMARKING SECTION ========== */
.benchmarking-controls {
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.search-box i {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-row select {
    flex: 1;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
}

.filter-row select:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.benchmark-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.bstat {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.bstat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 4px;
}

.bstat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.funnels-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.funnel-card-full {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid;
    border-radius: 12px;
    padding: 18px;
    position: relative;
    transition: all 0.2s ease;
}

.funnel-card-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.funnel-card-full.ultra-high {
    border-color: #ff6b6b;
}

.funnel-card-full.high {
    border-color: #fbbf24;
}

.funnel-card-full.medium {
    border-color: #60a5fa;
}

.funnel-card-full.low {
    border-color: #888;
}

.funnel-priority-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    margin-bottom: 12px;
}

.funnel-name-full {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.funnel-expert-full {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.funnel-model-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 8px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 6px;
    margin-bottom: 12px;
}

.funnel-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 40px;
}

.funnel-metrics-full {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.fm-full {
    display: flex;
    gap: 6px;
    align-items: center;
}

.fml-full {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.fmv-full {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.funnel-phase {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.btn-pagination {
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-pagination:hover:not(:disabled) {
    background: rgba(0, 210, 255, 0.2);
    transform: translateY(-1px);
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========== END BENCHMARKING ========== */

/* ========== ADS INVENTORY ========== */
.ads-controls {
    margin-bottom: 24px;
}

.ads-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.astat {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.astat.live {
    border-color: var(--success);
}

.astat.paused {
    border-color: var(--text-muted);
}

.astat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--accent-cyan);
    margin-bottom: 4px;
}

.astat.live .astat-value {
    color: var(--success);
}

.astat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.top-performers {
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid var(--accent-cyan);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.top-performers h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--accent-cyan);
}

.performers-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.performer-item {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 12px;
}

.performer-name {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.performer-metrics {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pm {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ads-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ad-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ad-card.live {
    border-left: 4px solid var(--success);
}

.ad-card.paused {
    border-left: 4px solid var(--text-muted);
    opacity: 0.7;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ad-type-icon {
    font-size: 1.5rem;
}

.ad-status {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.ad-status.live {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.ad-status.paused {
    background: rgba(136, 136, 136, 0.15);
    color: var(--text-muted);
}

.ad-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.ad-funnel {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.ad-expert {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ad-phase-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 8px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 6px;
    margin-bottom: 12px;
}

.ad-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.ad-metric {
    text-align: center;
}

.ad-metric-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.ad-metric-value {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.ad-impressions {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ad-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.ad-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
}

/* ========== END ADS ========== */

/* ========== REAL-TIME FEATURES ========== */
.realtime-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.last-update {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-refresh {
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.btn-refresh:hover {
    background: rgba(0, 210, 255, 0.2);
    transform: scale(1.05);
}

.btn-refresh i {
    width: 16px;
    height: 16px;
}

.refresh-notification {
    position: fixed;
    top: 60px;
    right: 20px;
    background: rgba(0, 255, 136, 0.9);
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.refresh-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.trend-up {
    color: var(--success);
    font-weight: 800;
    margin-left: 4px;
}

.trend-down {
    color: #ff5050;
    font-weight: 800;
    margin-left: 4px;
}

.trend-stable {
    color: var(--text-muted);
    margin-left: 4px;
}

/* ========== END REAL-TIME ==========*/

/* ========== RESPONSIVE MEDIA QUERIES ========== */
@media (max-width: 1200px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-grid,
    .revenue-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .main-content {
        margin-left: 68px;
        padding: 20px;
    }

    .orbital-container {
        height: 400px;
        max-width: 500px;
    }

    .orbital-svg {
        max-width: 400px;
        max-height: 400px;
    }

    .d0-core {
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
    }

    .d-bubble {
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }

    .d-bubble.d1 {
        transform: translate(calc(-50% + 70px), -50%);
    }

    .d-bubble.d2 {
        transform: translate(calc(-50% + 110px), -50%);
    }

    .d-bubble.d3 {
        transform: translate(calc(-50% + 150px), -50%);
    }

    .d-bubble.d4 {
        transform: translate(calc(-50% + 190px), -50%);
    }

    .d-legend {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-stats {
        gap: 10px;
    }

    .stat-pill {
        padding: 10px 16px;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .main-content {
        margin-left: 0;
        padding: 16px;
        max-width: 100%;
    }

    .sidebar-rail {
        display: none;
    }

    .header {
        margin-bottom: 32px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .orbital-container {
        height: 320px;
        max-width: 100%;
    }

    .d0-core {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .d-bubble {
        width: 40px;
        height: 40px;
        font-size: 0.6rem;
    }

    .d-bubble.d1 {
        transform: translate(calc(-50% + 55px), -50%);
    }

    .d-bubble.d2 {
        transform: translate(calc(-50% + 90px), -50%);
    }

    .d-bubble.d3 {
        transform: translate(calc(-50% + 125px), -50%);
    }

    .d-bubble.d4 {
        transform: translate(calc(-50% + 160px), -50%);
    }

    .d-legend {
        grid-template-columns: 1fr;
    }

    .section-card {
        padding: 20px;
    }

    .quick-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-pill {
        width: 100%;
        max-width: 280px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .funnels-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== END RESPONSIVE ========== */