.rounded-2xl,
.rounded-xl,
.rounded-lg,
.rounded-md {
    border-radius: 4px !important;
}

#socialTrendChart .highcharts-container {
    overflow: visible !important;
}

#socialTrendChart .highcharts-tooltip {
    z-index: 9999 !important;
    pointer-events: none;
}

#socialTrendChartWrapper {
    position: relative;
    width: 100%;
    height: 550px;
    min-height: 300px;
    overflow: hidden;
    border-radius: 4px;
    touch-action: none;
    contain: layout;
}

.csb-coin-mobile-price {
    /* CLS için ayrılan yükseklik içinde fiyatı dikeyde ortala —
       aksi halde fiyat soldaki coin adından yukarıda görünür */
    min-height: 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#sidePanelPriceMobile,
#sidePanelPrice {
    min-height: 1.75rem;
    display: inline-block;
}

[data-side-metric-card] {
    min-height: 5.5rem;
}

@media (max-width: 767px) {
    #socialTrendChartWrapper {
        height: 340px;
        min-height: 280px;
        border-radius: 0;
    }

    #chartExportArea {
        border-left: none;
        border-right: none;
        border-radius: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

#socialTrendChartSvg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#socialTrendChartTooltip {
    position: absolute;
    z-index: 9999;
    pointer-events: none;
    background: #1E293B;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 8px 12px;
    color: #F9FAFB;
    font-size: 12px;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.1s;
    max-width: 220px;
    word-wrap: break-word;
}

#socialTrendChartTooltip.visible {
    opacity: 1;
}

@keyframes viralPulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

#socialTrendChartSvg .viral-effect-dot {
    animation: viralPulse 1.4s ease-in-out infinite;
}

.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

@media (max-width: 1023px) {
    #mainHeader,
    html.csb-standalone #mainHeader,
    html.csb-native-app #mainHeader {
        position: relative !important;
        top: auto !important;
    }

    #mobileQuickNav {
        position: sticky !important;
        top: 0 !important;
        z-index: 60 !important;
    }

    html.csb-native-android #mobileQuickNav {
        top: max(52px, var(--csb-safe-top, 52px), env(safe-area-inset-top, 0px)) !important;
    }

    #section-ai-insight,
    #section-social-trend,
    #socialIntelWrapper,
    #communityFeedWrapper {
        scroll-margin-top: 38px;
    }

    html.csb-native-app #section-ai-insight,
    html.csb-native-app #section-social-trend,
    html.csb-native-app #socialIntelWrapper,
    html.csb-native-app #communityFeedWrapper {
        scroll-margin-top: var(--csb-quick-nav-h, 38px);
    }

    html.csb-native-android #section-ai-insight,
    html.csb-native-android #section-social-trend,
    html.csb-native-android #socialIntelWrapper,
    html.csb-native-android #communityFeedWrapper {
        scroll-margin-top: calc(var(--csb-quick-nav-h, 38px) + max(52px, var(--csb-safe-top, 52px), env(safe-area-inset-top, 0px)));
    }
}

.overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(218, 165, 32, 0.3) 0%, rgba(218, 165, 32, 0.5) 50%, rgba(218, 165, 32, 0.3) 100%);
    border-radius: 10px;
    border: 2px solid #111827;
    transition: all 0.3s ease;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(218, 165, 32, 0.6) 0%, rgba(218, 165, 32, 0.8) 50%, rgba(218, 165, 32, 0.6) 100%);
    border-color: #1F2937;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.overflow-y-auto::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(218, 165, 32, 0.8) 0%, #DAA520 50%, rgba(218, 165, 32, 0.8) 100%);
}

.overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: rgb(218 165 33) transparent;
}

#newsFeedContent {
    scroll-behavior: smooth;
}

#newsFeedContent>div:hover {
    background-color: rgba(31, 41, 55, 0.5);
}

.activity-bar-container {
    position: relative;
    cursor: pointer;
}

.activity-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}

.activity-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.95);
}

.activity-bar-container:hover .activity-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.scam-alert-container {
    cursor: pointer;
}

.scam-alert-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}

.scam-alert-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.95);
}

.scam-alert-container:hover .scam-alert-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.tooltip-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.tooltip-stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.tooltip-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.social-intel-compact .social-intel-card .activity-tooltip .tooltip-title,
.social-intel-compact .social-intel-card .scam-alert-tooltip .tooltip-title {
    font-size: 0.7rem !important;
    margin-bottom: 8px !important;
}

.social-intel-compact .social-intel-card .tooltip-stats-grid {
    gap: 6px !important;
}

.social-intel-compact .social-intel-card .tooltip-stat-item {
    padding: 6px 8px !important;
}

.social-intel-compact .social-intel-card .tooltip-stat-label {
    font-size: 0.6rem !important;
}

.social-intel-compact .social-intel-card .tooltip-stat-value {
    font-size: 0.85rem !important;
}

@media (max-width: 1279px) {
    .social-cards-grid [data-social-card] {
        display: none;
    }
    .social-cards-grid [data-social-card].social-card-active {
        display: block;
    }
}
