/* Broadcast Detail Page Styles */
/* Modern dark theme design - Enhanced 2024 */

.streamer-detail-container {
    max-width: 1240px;
    width: 96%;
    margin: 0 auto;
    padding: 24px;
    animation: pageLoad 0.5s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .streamer-detail-container {
        width: 98%;
        padding: 18px;
    }
}
@media (max-width: 992px) {
    .streamer-detail-container {
        width: 100%;
        padding: 14px;
    }
}
@media (max-width: 768px) {
    .streamer-detail-container {
        width: 100%;
        padding: 8px;
    }
}

/* Broadcast Detail Page Specific Container */
.broadcast-detail-page-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px;
}

/* streamer Header */
.streamer-header {
    display: flex;
    background: linear-gradient(165deg, rgba(38, 38, 44, 0.98) 0%, rgba(24, 24, 28, 0.99) 100%);
    border-radius: 20px;
    padding: 26px;
    margin-bottom: 32px;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.streamer-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--kick-green) 0%, #45E000 30%, transparent 100%);
}

.streamer-avatar {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    margin-right: 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent; /* Default border */
    box-shadow: 0 0 15px rgba(83, 252, 24, 0.3); /* Default green shadow */
    padding: 0;
    position: relative;
    background: transparent;
    margin-right: 0; /* Remove margin, will be handled by wrapper */
}

/* New wrapper for avatar and status */
.streamer-avatar-area {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center avatar and status horizontally */
    margin-right: 25px; /* Apply original avatar margin here */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Container for the status indicator below avatar */
.streamer-status-container {
    width: 100%; /* Take full width of the avatar area */
    display: flex;
    justify-content: center; /* Center the status indicator */
    margin-top: 10px; /* Space between avatar and status */
}

/* Removed .with-label styles */

.streamer-avatar.live,
.streamer-avatar.offline {
    border-width: 3px;
    border-style: solid;
}

.streamer-avatar.live {
    border-color: var(--kick-green);
    /* Green shadow is default */
}

.streamer-avatar.offline {
    border-color: #dc3545 !important; /* Red border for offline */
    box-shadow: none !important; /* Remove green shadow when offline */
}

/* Removed ::after styles for thick border */
/* Removed styles for label inside border */
/* Removed styles for hiding old label */

.streamer-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamer-avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--kick-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: bold;
    color: var(--kick-green);
}

.streamer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.streamer-name {
    font-size: 30px;
    margin: 0 0 10px 0;
    color: var(--kick-green);
}

.streamer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.streamer-meta-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #ADADB8;
}

.streamer-meta-item i {
    color: var(--kick-green);
    margin-right: 8px;
}

.streamer-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.streamer-action-btn {
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.streamer-action-btn:first-child {
    background-color: var(--kick-green);
    color: #000;
    border: none;
}

.streamer-action-btn:first-child:hover {
    background-color: #3EE900;
    transform: translateY(-2px);
}

.streamer-action-btn:last-child {
    background-color: transparent;
    color: var(--kick-text);
    border: 2px solid var(--kick-green);
}

.streamer-action-btn:last-child:hover {
    background-color: rgba(83, 252, 24, 0.1);
    transform: translateY(-2px);
}

/* Broadcast Page Header */
.broadcast-page-header {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(165deg, rgba(38, 38, 44, 0.98) 0%, rgba(24, 24, 28, 0.99) 100%);
    padding: 20px 26px;
    border-radius: 18px;
    margin-bottom: 24px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    position: relative;
    overflow: hidden;
}

.broadcast-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--kick-green) 0%, #45E000 40%, transparent 100%);
}

.back-to-streamer-btn {
    color: var(--kick-green);
    font-size: 24px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(83, 252, 24, 0.08);
}

.back-to-streamer-btn:hover {
    background: rgba(83, 252, 24, 0.15);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(83, 252, 24, 0.2);
}

.back-to-streamer-btn i {
    display: block;
    transition: transform 0.25s ease;
}

.back-to-streamer-btn:hover i {
    transform: translateX(-2px);
}

.broadcast-header-titles {
    flex-grow: 1;
    text-align: left;
}

.broadcast-page-header h1 {
    font-size: 28px;
    color: var(--kick-text);
    margin: 0 0 6px 0;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.streamer-stats-header {
    font-size: 16px;
    color: var(--kick-text-secondary);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.streamer-stats-header a {
    color: var(--kick-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.streamer-stats-header a:hover {
    text-decoration: none;
    text-shadow: 0 0 12px rgba(83, 252, 24, 0.4);
}

/* Stats Card Specific Styles */
.stats-card-value {
    /* Existing styles */
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack number and link vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    min-height: 50px; /* Ensure card has some height even with link */
}

.obfuscated-stat {
    /* Inherits .stats-card-value font styles */
    display: block; /* Ensure it takes its own line */
}

.stat-card-upgrade-prompt {
    display: block; /* Ensure it takes its own line */
    font-size: 10px; /* Smaller font size */
    font-weight: bold;
    color: var(--kick-green); /* Use Kick green */
    text-decoration: none;
    text-transform: uppercase;
    margin-top: 4px; /* Space above the link */
    padding: 2px 5px;
    border: 1px solid var(--kick-green);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.stat-card-upgrade-prompt:hover {
    background-color: rgba(83, 252, 24, 0.15);
    color: #FFF;
}


/* Stats Container */
.streamer-stats-container {
    margin-bottom: 30px;
}

.stats-section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--kick-text);
    position: relative;
    padding-left: 15px;
}

.stats-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    background-color: var(--kick-green);
    border-radius: 3px;
}

/* Recent Messages */
.recent-messages {
    background-color: var(--kick-light-gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.chat-messages {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
    background-color: var(--kick-gray);
    border-radius: 5px;
    padding: 10px;
}

.view-more-container {
    text-align: center;
}

.view-more-btn {
    padding: 10px 20px;
    background-color: var(--kick-green);
    color: black;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
}

.view-more-btn:hover {
    background-color: #3EE900;
    transform: translateY(-1px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .streamer-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .streamer-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .streamer-meta {
        justify-content: center;
    }

    .streamer-actions {
        margin-top: 20px;
        justify-content: center;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .stats-charts {
        grid-template-columns: 1fr;
    }
}

/* Hide specific elements for non-PRO users */
/* body.user-guest #subscribers-count {
    display: none;
} */ /* Commented out to allow showing obfuscated count for non-PRO */

/* Detailed Stats Section */
.streamer-detailed-stats {
    margin-bottom: 32px;
}

.stats-detail-section {
    width: 100%;
    background: linear-gradient(165deg, rgba(38, 38, 44, 0.98) 0%, rgba(24, 24, 28, 0.99) 100%);
    border-radius: 18px;
    margin-bottom: 22px;
    overflow: hidden;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-detail-section:hover {
    border-color: rgba(83, 252, 24, 0.12);
    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(83, 252, 24, 0.06) inset;
}

.stats-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 100%);
    border-bottom: 1px solid var(--kick-border);
}

.stats-detail-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--kick-text);
    display: flex;
    align-items: center;
}

.stats-detail-title i {
    color: var(--kick-green);
    margin-right: 12px;
    filter: drop-shadow(0 0 6px rgba(83, 252, 24, 0.4));
}

.stats-detail-count {
    font-weight: 700;
    color: var(--kick-green);
    background: rgba(83, 252, 24, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.stats-detail-content {
    padding: 0;
}

/* Tables */
.stats-table-container {
    position: relative;
    isolation: isolate;
    overflow-x: auto;
    max-height: 320px;
    overflow-y: auto;
    background: #141418;
}

/* Constrain width of table containers specifically within tab content */
.tab-content .stats-table-container {
    font-size: 14px;
}

.stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.stats-table th {
    padding: 14px 18px;
    text-align: left;
    background: linear-gradient(180deg, #111116 0%, #15151a 100%);
    color: var(--kick-green);
    position: sticky;
    top: 0;
    z-index: 30;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 14px rgba(0, 0, 0, 0.35);
}

.stats-table td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #c5c5ca;
}

.stats-table tbody tr {
    transition: all 0.2s ease;
}

.stats-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(83, 252, 24, 0.05) 0%, rgba(83, 252, 24, 0.02) 100%);
}

.stats-table .loading-cell {
    text-align: center;
    padding: 40px;
    color: #9A9AA0;
    font-style: italic;
}

/* Badge styles */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background-color: rgba(83, 252, 24, 0.2);
    color: var(--kick-green);
}

.status-badge.expired {
    background-color: rgba(255, 85, 85, 0.2);
    color: #FF5555;
}

.status-badge.permanent {
    background-color: rgba(255, 0, 0, 0.2);
    color: #FF5555;
}

.status-badge.unbanned {
    background-color: rgba(0, 170, 255, 0.2);
    color: #00AAFF;
}

/* Tooltip for longer content */
.truncate-with-tooltip {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
    position: relative;
}

.truncate-with-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: 100%;
    background-color: var(--kick-gray);
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 100;
    white-space: normal;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-detail-count {
        margin-top: 5px;
    }

    .stats-table th,
    .stats-table td {
        padding: 8px 10px;
    }

    .truncate-with-tooltip {
        max-width: 150px;
    }
}
/* Anket Detay Stilleri */
.poll-option-progress {
    height: 20px;
    background-color: var(--kick-gray);
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.poll-option-progress-bar {
    height: 100%;
    background-color: var(--kick-green);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.poll-option-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.poll-option-name {
    font-weight: 500;
}

.poll-option-percent {
    color: var(--kick-green);
}

/* Anket Durum Göstergeleri */
.poll-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.poll-status.active {
    background-color: rgba(83, 252, 24, 0.2);
    color: var(--kick-green);
}

.poll-status.completed {
    background-color: rgba(0, 170, 255, 0.2);
    color: #00AAFF;
}

.poll-status.expired {
    background-color: rgba(255, 85, 85, 0.2);
    color: #FF5555;
}

/* Anket Modal */
.poll-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.poll-modal-content {
    background-color: var(--kick-light-gray);
    margin: 5% auto;
    padding: 25px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #ADADB8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--kick-text);
}

.poll-modal-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--kick-border);
    color: var(--kick-green);
}

.poll-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.poll-info {
    grid-column: 1 / 3;
    background-color: var(--kick-gray);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.poll-info h4 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--kick-green);
}

.poll-info p {
    margin: 8px 0;
}

.poll-results {
    grid-column: 1 / 2;
    background-color: var(--kick-gray);
    padding: 15px;
    border-radius: 8px;
}

.poll-results h4 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--kick-text);
}

.poll-chart-container {
    grid-column: 2 / 3;
    background-color: var(--kick-gray);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Anket sonuç görselleştirmeleri */
.poll-option-item {
    margin-bottom: 15px;
}

/* Görsel İyileştirmeler */
.stats-table .poll-title {
    font-weight: 500;
    cursor: pointer;
    color: var(--kick-green);
    transition: color 0.2s ease;
}

.stats-table .poll-title:hover {
    text-decoration: underline;
}

/* Styling for prediction titles in the table to make them look clickable */
.stats-table .prediction-title {
    font-weight: bold; /* Make the text bold */
    color: var(--kick-green); /* Use the kick-green color */
    cursor: pointer; /* Change cursor to pointer to indicate clickability */
    transition: color 0.2s ease, text-decoration 0.2s ease; /* Smooth transition for hover effects */
}

.stats-table .prediction-title:hover {
    color: #3EE900; /* Slightly brighter green on hover */
    text-decoration: underline; /* Underline on hover */
}

.subscription-tabs {
    width: 100%;
}

.tab-buttons {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
    gap: 8px;
    padding: 0 18px;
    padding-bottom: 8px;
}

.tab-button {
    padding: 12px 18px;
    background: transparent;
    border: none;
    color: var(--kick-text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px 8px 0 0;
}

.tab-button:hover {
    color: var(--kick-green);
    background: rgba(83, 252, 24, 0.05);
}

.tab-button.active {
    color: var(--kick-green);
    background: rgba(83, 252, 24, 0.08);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--kick-green), #45E000);
    border-radius: 2px 2px 0 0;
}

.tab-content {
    display: none;
    padding: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    animation: tabFadeIn 0.3s ease-out;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content.active {
    display: block;
}

/* Hediye Abonelik Stilleri */
.gift-badge {
    padding: 3px 8px;
    background-color: rgba(255, 100, 255, 0.2);
    color: #FF9EFF;
    border-radius: 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Reward Stats - Top Redeemer Styling */


.top-redeemer-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between elements */
    margin-bottom: 15px; /* Space before the table */
    font-size: 14px; /* Base font size */
    padding-left: 5px; /* Shift content slightly right */
}

.top-redeemer-icon {
    color: #FFD700; /* Gold color for the trophy */
    font-size: 1.1em; /* Slightly larger icon */
    margin-right: 4px; /* Small space after icon */
}

.top-redeemer-container strong {
    color: var(--kick-text); /* Standard text color for the label */
}

.top-redeemer-username {
    font-weight: 500;
    color: var(--kick-green); /* Highlight username */
}

.top-redeemer-count {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    background-color: rgba(83, 252, 24, 0.2); /* Use Kick green background */
    color: var(--kick-green); /* Use Kick green text */
    margin-left: auto; /* Push count to the far right */
}

/* Chart Upgrade Prompt */
.chart-upgrade-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Try to fill the container height */
    min-height: 100px; /* Ensure it has some minimum height */
    text-align: center;
    padding: 20px;
}

.chart-upgrade-prompt a {
    color: var(--kick-green);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px; /* Match table prompt size */
}

.chart-upgrade-prompt a:hover {
    color: #FFF;
    text-decoration: underline;
}

.chart-upgrade-prompt a i {
    margin-left: 5px;
    font-size: 0.9em;
}

/* Table Upgrade Prompt Row */
.upgrade-prompt-row {
    background-color: rgba(83, 252, 24, 0.05); /* Subtle green background */
}

.upgrade-prompt-row:hover {
    background-color: rgba(83, 252, 24, 0.1); /* Slightly darker on hover */
}

.upgrade-prompt-cell {
    text-align: center;
    padding: 12px 15px !important; /* Ensure padding overrides default td padding */
    border-bottom: none !important; /* Remove bottom border for this row */
}

.upgrade-prompt-cell a {
    color: var(--kick-green);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.upgrade-prompt-cell a:hover {
    color: #FFF;
    text-decoration: underline;
}

.upgrade-prompt-cell a i {
    margin-left: 5px;
    font-size: 0.9em;
}


/* PRO Banner Styles */
.pro-banner {
    background-color: #2C2C34; /* Dark background similar to image */
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px; /* Space before detailed stats */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--kick-border); /* Subtle border */
}

.pro-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1; /* Allow content to take available space */
    margin-right: 20px; /* Space between content and actions */
}

.pro-banner-icon {
    font-size: 20px;
    color: #ADADB8; /* Light gray icon color */
}

.pro-banner-text {
    font-size: 14px;
    color: var(--kick-text);
    line-height: 1.4;
}

.pro-banner-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0; /* Prevent actions from shrinking */
}

.pro-banner-button {
    padding: 8px 18px;
    border: 2px solid #67C8FF; /* Light blue border like image */
    color: #EFEFF1; /* White text */
    background-color: transparent;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pro-banner-button:hover {
    background-color: rgba(103, 200, 255, 0.1); /* Subtle hover effect */
    color: #FFF;
}

.pro-banner-link {
    color: #ADADB8; /* Light gray link color */
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pro-banner-link:hover {
    color: #FFF; /* White on hover */
}

/* Responsive adjustments for PRO banner */
@media (max-width: 768px) {
    .pro-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .pro-banner-content {
        margin-right: 0;
        margin-bottom: 10px; /* Space below content on mobile */
    }

    .pro-banner-actions {
        width: 100%;
        justify-content: flex-start; /* Align actions to start */
        gap: 15px;
    }
}

.gift-badge i {
    font-size: 12px;
}

.gifter-name {
    color: #FFC800;
    font-weight: 500;
}

/* En Çok Hediye Verenler Tablosu */
.top-gifter-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    font-weight: bold;
    font-size: 12px;
}

.top-gifter-rank-1 {
    background-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.top-gifter-rank-2 {
    background-color: rgba(192, 192, 192, 0.3);
    color: #C0C0C0;
}

.top-gifter-rank-3 {
    background-color: rgba(205, 127, 50, 0.3);
    color: #CD7F32;
}

.gift-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 10px;
    background-color: rgba(255, 100, 255, 0.2);
    color: #FF9EFF;
    font-weight: 500;
}

/* Abonelik türlerini gösteren sayaçlar */
.subscription-counters {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 14px;
}

.subscription-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-label {
    font-size: 12px;
    color: #ADADB8;
    margin-bottom: 5px;
}

.counter-value {
    font-size: 16px;
    font-weight: 500;
}

.normal-subs .counter-value {
    color: var(--kick-green);
}

.gifted-subs .counter-value {
    color: #FF9EFF;
}

.total-subs .counter-value {
    color: #FFC800;
}

/* Mobil uyumluluğu */
@media (max-width: 768px) {
    .tab-buttons {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .tab-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .subscription-counters {
        flex-direction: column;
        gap: 10px;
    }

    .subscription-counter {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .poll-modal-content {
        width: 95%;
        padding: 15px;
    }

    .poll-detail-container {
        grid-template-columns: 1fr;
    }

    .poll-info,
    .poll-results,
    .poll-chart-container {
        grid-column: 1;
    }
}
.status-badge.expired {
    background-color: rgba(255, 85, 85, 0.2);
    color: #FF5555;
}

.status-badge.renew-status {
    background-color: rgba(0, 170, 255, 0.2);
    color: #00AAFF;
}

.status-badge.new-status {
    background-color: rgba(83, 252, 24, 0.2);
    color: var(--kick-green);
}

.renewal-badge {
    font-size: 10px;
    margin-left: 5px;
    background-color: rgba(255, 255, 0, 0.2);
    color: #FFD700;
    padding: 2px 5px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.renewal-badge i {
    font-size: 10px;
}

.subscriber-username {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Keyframes for pulsing animation */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Styles for the new Live/Offline indicator inside streamer-info */
.streamer-status {
    display: inline-flex; /* Use inline-flex to keep it on the same line potentially */
    align-items: center;
    gap: 6px; /* Space between icon and text */
    font-size: 14px; /* Match meta item font size */
    font-weight: 500;
    margin-top: 0; /* Remove top margin, handled by container */
    margin-bottom: 0; /* Remove bottom margin */
    padding: 3px 8px; /* Small padding */
    border-radius: 12px; /* Rounded corners */
    /* Ensure it doesn't push other elements */
    line-height: 1;
}

.streamer-status i {
    font-size: 10px; /* Smaller icon */
}

.streamer-status.live {
    color: var(--kick-green);
    background-color: rgba(83, 252, 24, 0.15); /* Light green background */
    animation: pulse 1.5s infinite ease-in-out; /* Apply pulsing animation */
}

.streamer-status.live i {
    color: var(--kick-green);
}

.streamer-status.offline {
    color: #FF5555; /* Red color */
    background-color: rgba(255, 85, 85, 0.15); /* Light red background */
    /* No animation for offline */
}

.streamer-status.offline i {
    color: #FF5555;
}

/* Prediction Modal Specific Styles */
.poll-modal-content .prediction-modal-section {
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--kick-gray); /* Consistent background for sections */
    border-radius: 6px;
}

.poll-modal-content .prediction-modal-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--kick-green);
    font-size: 16px;
}

#prediction-modal-info-section h4 { /* Main title for prediction */
    font-size: 18px;
    color: var(--kick-text); /* Or keep it green if preferred */
}


.scrollable-history {
    max-height: 250px; /* Adjust as needed */
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(0,0,0,0.1); /* Slightly different background for the list */
    border-radius: 4px;
    border: 1px solid var(--kick-border);
}

.prediction-event-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.prediction-event-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--kick-border);
    font-size: 13px;
    line-height: 1.5;
}

.prediction-event-item:last-child {
    border-bottom: none;
}

.prediction-event-item strong {
    color: var(--kick-green);
}

.event-outcomes-snapshot {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 5px;
    font-size: 12px;
    color: #ADADB8;
}
.event-outcomes-snapshot li {
    margin-bottom: 3px;
}


/* Ensure modal content stacks vertically on small screens */
@media (max-width: 768px) {
    .poll-modal-content.two-pane .prediction-modal-body { /* If two-pane class was used */
        flex-direction: column;
    }
    .poll-modal-content .prediction-modal-left-pane,
    .poll-modal-content .prediction-modal-right-pane {
        width: 100%;
        margin-bottom: 15px;
    }
    .scrollable-history {
        max-height: 200px; /* Adjust for smaller screens */
    }
}

/* Style for the smaller chart in the event history */
#prediction-modal-event-history #prediction-result-chart {
    width: 200px;
    height: 200px;
    margin: 10px auto; /* Center the chart */
}

/* Prediction outcome item specific styling if different from poll */
.prediction-option-item {
    margin-bottom: 12px;
}
.prediction-option-item .prediction-option-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.prediction-option-item .prediction-option-name {
    font-weight: 500;
}
.prediction-option-item .prediction-option-details {
    font-size: 0.9em;
    color: #b0b0b0;
}
.prediction-option-item .prediction-option-percent {
    color: var(--kick-green);
    font-weight: 500;
}
.prediction-option-item .prediction-option-progress {
    height: 18px;
    background-color: var(--kick-gray);
    border-radius: 9px;
    overflow: hidden;
}
.prediction-option-item .prediction-option-progress-bar {
    height: 100%;
    background-color: var(--kick-green);
    border-radius: 9px;
    transition: width 0.3s ease;
}
.prediction-option-item .prediction-top-users {
    font-size: 0.85em;
    color: #999;
    margin-top: 4px;
}
.prediction-option-item.winning-outcome .prediction-option-name {
    color: var(--kick-green);
    font-weight: bold;
}
.prediction-option-item.winning-outcome .prediction-option-progress-bar {
    background-color: #ffd700; /* Gold for winning */
}

/* New Prediction Modal Layout (Info top, then 2 columns) */
.prediction-modal-header-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--kick-border);
}

.prediction-modal-header-info #prediction-modal-title { /* The actual title of the prediction */
    font-size: 1.3em;
    color: var(--kick-text); /* Or var(--kick-green) if preferred */
    margin-bottom: 10px;
}

.prediction-modal-header-info p {
    font-size: 0.9em;
    margin: 5px 0;
    color: #ADADB8;
}
.prediction-modal-header-info p strong {
    color: var(--kick-text-secondary);
}

/* Styles for the new layout within prediction-modal-general-info */
#prediction-modal-general-info {
    display: flex;
    justify-content: space-between; /* Puts space between text and chart */
    align-items: flex-start; /* Aligns items to the top */
    gap: 20px; /* Adds some space between the two sections */
    padding: 10px; /* Optional: add some padding if needed */
    /* background-color: #f9f9f9; /* Optional: for visual distinction */
    /* border-radius: 4px; /* Optional: for rounded corners */
}

.general-info-text {
    flex: 1; /* Allows text block to take available space */
    /* Add any specific styling for the text block if needed */
}

.general-info-chart {
    flex-shrink: 0; /* Prevents chart block from shrinking */
    /* Styles for the chart container within general-info */
}

.general-info-chart .poll-chart-container {
    padding: 0; /* Reset padding if inherited and not desired */
    background-color: transparent; /* Ensure no conflicting background */
    /* Ensure canvas itself is responsive or sized correctly if needed */
}

.general-info-chart #prediction-result-chart {
    /* The canvas already has inline styles for w/h, so specific CSS might not be needed here unless overriding */
    display: block; /* Ensure it behaves as a block element */
}


.prediction-modal-columns {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for mobile */
    gap: 20px;
}

.prediction-modal-column {
    background-color: var(--kick-gray); /* Background for columns */
    padding: 15px;
    border-radius: 6px;
}

.prediction-modal-column h4 { /* Titles for "Event History" and "Outcomes & Results" */
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--kick-green);
    font-size: 1em; /* Slightly smaller than main modal title */
    border-bottom: 1px solid var(--kick-border);
    padding-bottom: 8px;
}

.left-column {
    flex: 1; /* Adjust flex basis as needed, e.g., flex-basis: 40%; */
    min-width: 300px; /* Minimum width before wrapping */
}

.right-column {
    flex: 1; /* Adjust flex basis as needed, e.g., flex-basis: 58%; */
    min-width: 300px; /* Minimum width before wrapping */
    display: flex;
    flex-direction: column; /* Stack options list and chart vertically */
}

.right-column .poll-chart-container {
    margin-top: 15px; /* Space above the chart */
    flex-grow: 1; /* Allow chart container to take available space */
    max-height: 300px; /* Max height for the chart container */
}

.right-column #prediction-result-chart {
    max-height: 100%; /* Ensure chart respects container height */
    width: auto !important; /* Override potential fixed width from Chart.js if needed */
}


/* Responsive stacking for the two columns */
@media (max-width: 768px) {
    .prediction-modal-columns {
        flex-direction: column; /* Stack columns vertically */
    }
    .left-column, .right-column {
        flex-basis: auto; /* Reset flex-basis */
        width: 100%;
    }
    .right-column .poll-chart-container {
        max-height: 250px; /* Slightly smaller chart on mobile */
    }
}

/* Accordion Styles */
.stats-detail-header.accordion-toggle {
    cursor: pointer;
    transition: background-color 0.2s ease;
    /* justify-content: space-between; is already on .stats-detail-header */
}

.stats-detail-header.accordion-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Slight hover effect */
}

.accordion-header-controls {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between count and icon */
}

.stats-detail-header.accordion-toggle .accordion-icon {
    /* margin-left: auto; Removed as positioning is handled by flex parent */
    transition: transform 0.3s ease;
    color: var(--kick-text);
}

.stats-detail-header.accordion-toggle.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--kick-green);
}

.accordion-content {
    /* display: none; is handled by inline style and JS */
    padding: 0; /* Remove padding if content inside already has it */
    border-top: 1px solid var(--kick-border); /* Separator line when open */
}

/* Pagination Controls Specific to User Feedback */
.items-per-page-controls {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 0; /* Rely on parent's gap for spacing */
    /* background-color and border-top removed as it's now part of pagination-controls block */
}

.items-per-page-controls label {
    margin-right: 8px;
    font-size: 14px;
    color: var(--kick-text-secondary);
}

.items-per-page-controls select {
    padding: 6px 10px;
    border-radius: 4px;
    background-color: var(--kick-gray);
    color: var(--kick-text);
    border: 1px solid var(--kick-border);
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.12) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    box-sizing: border-box;
}

.pagination-controls-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pagination-controls button {
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--kick-green) 0%, #45E000 100%);
    color: #0A0A0A;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pagination-controls button:disabled {
    background: rgba(255, 255, 255, 0.06);
    color: #5A5A60;
    cursor: not-allowed;
}

.pagination-controls button:not(:disabled):hover {
    background: linear-gradient(135deg, #45E000 0%, #3DD000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(83, 252, 24, 0.3);
}

.pagination-controls #page-info-normal {
    font-size: 14px;
    color: #9A9AA0;
    text-align: center;
    white-space: normal;
    font-weight: 500;
}

/* Responsive adjustments for the new pagination layout */
@media (max-width: 480px) {
    .items-per-page-controls {
        justify-content: center;
    }
    /* .pagination-controls-buttons might not need changes if they naturally stack or if width:100% is okay */
    /* .pagination-controls button might need width: 48%; or similar if they are side-by-side and need to wrap */
}

.pagination-meta-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Adjust as needed */
}

/* Underline count on header hover for better click affordance */
.stats-detail-header.accordion-toggle:hover .stats-detail-count {
    text-decoration: underline;
}

/* New Tab Styles */
.streamer-tabs-nav {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--kick-border);
}

.streamer-tabs-nav .tab-link {
    padding: 10px 20px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: var(--kick-text-secondary);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.streamer-tabs-nav .tab-link:hover {
    color: var(--kick-green);
}

.streamer-tabs-nav .tab-link.active {
    color: var(--kick-green);
    border-bottom: 2px solid var(--kick-green);
    margin-bottom: -2px; /* Align with the main border */
}

.streamer-tabs-content .tab-pane {
    display: none;
}

.streamer-tabs-content .tab-pane.active {
    display: block;
}

/* Styles for Broadcast List */
#broadcast-list-container {
    margin-bottom: 20px;
}

.broadcast-list-item {
    background-color: var(--kick-light-gray);
    border: 1px solid var(--kick-border);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.broadcast-list-item:hover {
    background-color: var(--kick-gray);
    border-color: var(--kick-green);
}

.broadcast-list-item h4 {
    margin: 0 0 5px 0;
    color: var(--kick-green);
    font-size: 16px;
}

.broadcast-list-item p {
    margin: 0;
    font-size: 14px;
    color: #E0E0E0; /* Light gray for plain text, similar to stat card values */
    text-decoration: none !important; /* Ensure no underline from parent link */
}

/* Ensure the link itself doesn't add underlines to its children if not desired */
.broadcast-list-item-link {
    text-decoration: none;
}

/* Styles for Broadcast Detail Container */
#broadcast-detail-container {
    background-color: var(--kick-light-gray);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#broadcast-detail-container h3 {
    color: var(--kick-green);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--kick-border);
    padding-bottom: 10px;
}

#broadcast-detail-container .detail-item {
    margin-bottom: 10px;
    font-size: 15px;
}

#broadcast-detail-container .detail-item strong {
    color: var(--kick-text);
    margin-right: 8px;
}

#broadcast-detail-container .detail-item span {
    color: var(--kick-text-secondary);
}

.loading-cell { /* General loading cell style */
    text-align: center;
    padding: 20px;
    color: #ADADB8;
    font-style: italic;
}

/* Broadcast Search and Pagination Controls */
.broadcast-search-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

#broadcast-search-input {
    flex-grow: 1;
    padding: 10px 15px;
    border-radius: 50px; /* Pill shape */
    border: 1px solid var(--kick-border);
    background-color: var(--kick-gray);
    color: var(--kick-text);
    font-size: 14px;
}

#broadcast-search-input:focus {
    outline: none;
    border-color: var(--kick-green);
    box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.3);
}

#broadcast-search-button {
    /* Reusing streamer-action-btn style but ensuring specific overrides if needed */
    /* padding: 10px 15px; Done by streamer-action-btn */
    /* background-color: var(--kick-green); Done by streamer-action-btn */
    /* color: #000; Done by streamer-action-btn */
    /* border: none; Done by streamer-action-btn */
    /* border-radius: 50px; Done by streamer-action-btn */
    /* font-weight: 500; Done by streamer-action-btn */
    /* cursor: pointer; Done by streamer-action-btn */
    /* transition: all 0.2s ease; Done by streamer-action-btn */
    /* display: inline-flex; Done by streamer-action-btn */
    /* align-items: center; Done by streamer-action-btn */
    /* gap: 8px; Done by streamer-action-btn */
    font-size: 14px; /* Ensure consistency */
}
/* Ensure the search button uses the primary action style */
#broadcast-search-button {
    background-color: var(--kick-green);
    color: #000;
    border: none;
}
#broadcast-search-button:hover {
    background-color: #3EE900; /* Brighter green on hover */
}


#broadcasts-pagination-controls {
    display: flex;
    flex-direction: column; /* Stack buttons and page info */
    align-items: center;
    gap: 10px; /* Space between button group and page info */
    padding: 15px 0;
    margin-top: 15px;
    border-top: 1px solid var(--kick-border);
}

#broadcasts-pagination-controls .pagination-controls-buttons {
    display: flex;
    gap: 10px;
}

#broadcasts-pagination-controls button {
    padding: 8px 15px;
    border-radius: 4px;
    background-color: var(--kick-green);
    color: #000;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#broadcasts-pagination-controls button:disabled {
    background-color: var(--kick-gray);
    color: var(--kick-text-secondary);
    cursor: not-allowed;
}

#broadcasts-pagination-controls button:not(:disabled):hover {
    background-color: #3EE900;
}

#broadcasts-pagination-controls .page-info {
    font-size: 14px;
    color: var(--kick-text-secondary);
}

/* Styles for Broadcast Detail View Charts */
.broadcast-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.broadcast-detail-header h3 {
    margin: 0;
    color: var(--kick-green);
    font-weight: 700;
}

.broadcast-general-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
    padding: 16px;
    background: linear-gradient(165deg, rgba(35, 35, 40, 0.95) 0%, rgba(22, 22, 26, 0.98) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.broadcast-general-stats .detail-item {
    background: linear-gradient(135deg, rgba(50, 50, 55, 0.8) 0%, rgba(35, 35, 40, 0.9) 100%);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.25s ease;
}

.broadcast-general-stats .detail-item:hover {
    border-color: rgba(83, 252, 24, 0.15);
    transform: translateY(-1px);
}

.broadcast-general-stats .detail-item strong {
    color: #b8b8bd;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    margin-bottom: 4px;
}

.broadcast-general-stats .detail-item span {
    color: var(--kick-green);
    font-weight: 700;
    font-size: 16px;
}

.broadcast-monetization-estimate {
    margin-bottom: 18px;
    padding: 16px;
    background: #1f1f1f;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.broadcast-monetization-header h3 {
    margin: 0;
    color: #d8d8dc;
    font-size: 14px;
    font-weight: 700;
}

.broadcast-monetization-header h3 i {
    color: var(--kick-green);
    margin-right: 8px;
}

.broadcast-monetization-rate {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a8a8b3;
    font-size: 12px;
    font-weight: 600;
}

.broadcast-monetization-rate input {
    width: 88px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: #141418;
    color: #fff;
    font-weight: 700;
    padding: 0 10px;
}

.broadcast-monetization-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.broadcast-monetization-metric {
    min-width: 0;
    padding: 12px;
    background: #17171b;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.broadcast-monetization-metric span {
    display: block;
    margin-bottom: 5px;
    color: #a8a8b3;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.broadcast-monetization-metric strong {
    display: block;
    color: #f5f5f5;
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.broadcast-monetization-metric.total {
    border-color: rgba(83, 252, 24, 0.22);
    background: rgba(83, 252, 24, 0.07);
}

.broadcast-monetization-metric.total strong {
    color: var(--kick-green);
}

.broadcast-monetization-note {
    margin: 10px 0 0;
    color: #85858e;
    font-size: 12px;
    line-height: 1.45;
}

.broadcast-combined-activity-panel {
    margin-bottom: 18px;
    padding: 16px;
    background: #1f1f1f;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.broadcast-combined-activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.broadcast-combined-activity-header .chart-title {
    margin: 0;
    color: #d8d8dc;
    font-size: 14px;
    font-weight: 700;
}

.broadcast-combined-activity-header .chart-title i {
    color: var(--kick-green);
    margin-right: 8px;
}

.broadcast-chart-control-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.broadcast-chart-reset-button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: #2a2a2a;
    color: #d8d8dc;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
}

.broadcast-chart-zoom-button {
    width: 34px;
    height: 32px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.broadcast-chart-reset-button:hover {
    background: #333;
    color: #fff;
}

.broadcast-combined-activity-chart {
    position: relative;
    width: 100%;
    min-height: 420px;
}

.broadcast-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.broadcast-charts-grid .chart-container {
    background: linear-gradient(165deg, rgba(35, 35, 40, 0.95) 0%, rgba(22, 22, 26, 0.98) 100%);
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.broadcast-charts-grid .chart-container:hover {
    border-color: rgba(83, 252, 24, 0.1);
}

.broadcast-charts-grid .chart-container.small-chart {
    min-height: 260px;
}

.broadcast-charts-grid .chart-container.full-width-chart {
    grid-column: 1 / -1;
    min-height: 310px;
}

.broadcast-charts-grid .chart-title {
    font-size: 15px;
    color: #9A9AA0;
    margin: 0 0 14px 0;
    text-align: center;
    font-weight: 600;
}

.broadcast-charts-grid .chart-title i {
    color: var(--kick-green);
    margin-right: 8px;
    filter: drop-shadow(0 0 4px rgba(83, 252, 24, 0.4));
}

.broadcast-charts-grid .chart {
    position: relative; /* For Chart.js responsiveness */
    width: 100% !important; 
    max-width: 100%; 
    height: auto !important; 
    min-height: 180px; /* Default min-height for charts */
    display: block; /* Ensure canvas behaves as a block */
}

.broadcast-charts-grid .full-width-chart .chart {
    min-height: 220px; /* Taller for full-width chart */
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    display: block;
}

.chart-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--kick-text-secondary);
    font-style: italic;
}

@media (max-width: 768px) {
     .broadcast-charts-grid {
        grid-template-columns: 1fr; /* Stack charts on smaller screens */
        width: 100%;
        box-sizing: border-box;
        padding: 0 5px; /* Add slight horizontal padding to the grid itself if needed */
    }
     .broadcast-charts-grid .chart-container {
        padding: 10px; /* Reduce padding on mobile */
        width: 100%;
        box-sizing: border-box;
        overflow: hidden; /* Prevent content from spilling out of container */
    }
    .broadcast-charts-grid .chart,
    .broadcast-charts-grid .full-width-chart .chart {
        min-height: 150px; /* Further reduced min-height for mobile charts */
        height: auto !important; /* Ensure height is responsive */
        max-width: 100%;
        display: block;
    }
    .broadcast-general-stats {
        grid-template-columns: 1fr;
    }
    .report-cards-grid {
    grid-template-columns: 1fr; /* Stack cards */
    }
    .report-columns-container {
        flex-direction: column; /* Stack columns */
    }
    /* Adjust general stats for mobile if they become too crowded */
    .broadcast-general-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Smaller min for mobile */
    }

    .broadcast-monetization-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .broadcast-monetization-rate {
        width: 100%;
        justify-content: space-between;
    }

    .broadcast-monetization-grid {
        grid-template-columns: 1fr 1fr;
    }

    .broadcast-monetization-metric strong {
        font-size: 16px;
    }

    .broadcast-combined-activity-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .broadcast-chart-control-group {
        width: 100%;
    }

    .broadcast-chart-control-group .broadcast-chart-reset-button:last-child {
        margin-left: auto;
    }

    /* Mobile specific for Bans table - hide columns and make rows clickable */
    #bd-broadcast-bans-table th.col-banned-by,
    #bd-broadcast-bans-table td.col-banned-by,
    #bd-broadcast-bans-table th.col-ban-date,
    #bd-broadcast-bans-table td.col-ban-date {
        display: none;
    }
    #bd-broadcast-bans-table tbody tr {
        cursor: pointer; 
    }
    #bd-broadcast-bans-table tbody tr:hover {
        background-color: var(--kick-gray); 
    }
}

/* Additional Reports Section */
.broadcast-additional-reports-container {
    margin-top: 24px;
    background: linear-gradient(165deg, rgba(35, 35, 40, 0.95) 0%, rgba(22, 22, 26, 0.98) 100%);
    padding: 22px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.broadcast-additional-reports-container .section-title {
    font-size: 22px;
    color: var(--kick-green);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    position: relative;
}

.broadcast-additional-reports-container .section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--kick-green), transparent);
}

.report-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

/* .report-card styles can be removed if .report-cards-grid is empty and removed from HTML */
/*
.report-card {
    background-color: var(--kick-light-gray);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.report-card-title {
    font-size: 14px;
    color: var(--kick-text-secondary);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.report-card-value {
    font-size: 22px;
    color: var(--kick-green);
    font-weight: 600;
    margin: 0;
}
*/

.report-columns-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.report-column {
    flex: 1;
    background-color: var(--kick-light-gray);
    padding: 15px;
    border-radius: 6px;
}

.report-column-title {
    font-size: 16px;
    color: var(--kick-text-secondary);
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--kick-border-light);
}

.report-column p { /* For Poll/Prediction counts */
    font-size: 14px;
    color: var(--kick-text-secondary);
    margin-bottom: 8px;
}
.report-column p span {
    color: var(--kick-green);
    font-weight: 500;
}

.report-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    font-size: 14px;
    color: var(--kick-text);
}

.report-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--kick-border-very-light);
}

.report-list li:last-child {
    border-bottom: none;
}

.report-list .no-data-cell,
.report-list .loading-cell { /* Shared style for loading/no data in lists */
    color: var(--kick-text-secondary);
    font-style: italic;
    text-align: center;
    padding: 10px 0;
    border-bottom: none;
}

/* Accordion Row for 2-column layout in broadcast details */
.broadcast-additional-reports-container .accordion-row {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: stretch;
    gap: 15px; /* Reduced Space between the two accordions in a row */
    margin-bottom: 0; /* Remove bottom margin if .stats-detail-section has it */
}

.broadcast-additional-reports-container .accordion-row .stats-detail-section {
    flex: 1 1 calc(50% - 7.5px); /* Adjusted for 15px gap */
    min-width: 280px; /* Slightly reduced min-width */
    margin-bottom: 15px; /* Reduced bottom margin for spacing between rows */
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.broadcast-additional-reports-container .stats-detail-header {
    min-height: 66px;
    flex-shrink: 0;
}

.broadcast-additional-reports-container .stats-detail-section > .stats-detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.broadcast-additional-reports-container .stats-detail-section > .stats-detail-content > .stats-detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.broadcast-additional-reports-container .stats-detail-section:has(.stats-table-container):not(:has(.subscription-tabs)) > .stats-detail-content::before {
    content: "";
    display: block;
    flex: 0 0 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(0, 0, 0, 0.06) 100%);
}

.broadcast-additional-reports-container .stats-table-container {
    flex: 1 1 auto;
    min-height: 245px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(83, 252, 24, 0.45) rgba(255, 255, 255, 0.06);
}

.broadcast-additional-reports-container .stats-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.broadcast-additional-reports-container .stats-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.broadcast-additional-reports-container .stats-table-container::-webkit-scrollbar-thumb {
    background: rgba(83, 252, 24, 0.45);
    border-radius: 999px;
}

.broadcast-additional-reports-container .stats-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(83, 252, 24, 0.68);
}

.broadcast-additional-reports-container .pagination-controls {
    margin-top: auto;
    min-height: 104px;
    justify-content: center;
    flex-shrink: 0;
}

.broadcast-additional-reports-container .subscription-tabs {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.broadcast-additional-reports-container .broadcast-subs-tabs .tab-buttons {
    flex: 0 0 52px;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
}

.broadcast-additional-reports-container .broadcast-subs-tabs .tab-content.active {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Responsive adjustments for accordion rows */
@media (max-width: 992px) { /* Adjust breakpoint as needed */
    .broadcast-additional-reports-container .accordion-row {
        flex-direction: column;
        gap: 0; /* Remove gap when stacked, rely on .stats-detail-section margin */
    }
    .broadcast-additional-reports-container .accordion-row .stats-detail-section {
        flex-basis: 100%; /* Full width when stacked */
        /* margin-bottom is already 20px, which is fine for stacked items */
        min-height: 0;
    }
    .broadcast-additional-reports-container .stats-detail-section:has(.stats-table-container):not(:has(.subscription-tabs)) > .stats-detail-content::before {
        display: none;
    }
    .broadcast-additional-reports-container .stats-table-container {
        min-height: 0;
        max-height: 320px;
    }
    .broadcast-additional-reports-container .pagination-controls {
        min-height: 0;
    }
    .broadcast-additional-reports-container .broadcast-subs-tabs .tab-buttons {
        flex-basis: auto;
        min-height: 52px;
    }
}
/* Full-width chart styling */
.chart-container.full-width-chart {
    grid-column: 1 / -1; /* Span across all columns in the grid */
    height: 400px; /* Taller height for main charts */
}

/* Ensure chart canvas fills its container */
.chart-container .chart {
    height: 100%;
    width: 100%;
    position: relative;
}

/* Small chart styling */
.chart-container.small-chart {
    height: 250px; /* Maintain a smaller height for the segment charts */
}

/* Responsive adjustments for the grid */
@media (max-width: 768px) {
    .broadcast-charts-grid {
        grid-template-columns: 1fr; /* Stack all charts on top of each other on mobile */
    }

    .chart-container.full-width-chart {
        height: 300px; /* Adjust height for mobile */
    }
}
/* Popular Categories Container Styling */
.popular-categories-container {
    background: linear-gradient(165deg, rgba(38, 38, 44, 0.98) 0%, rgba(24, 24, 28, 0.99) 100%);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 22px;
    grid-column: 1 / -1;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.broadcast-charts-grid .popular-categories-container {
    grid-column: auto;
    margin-bottom: 0;
    padding: 18px;
    border-radius: 16px;
    min-height: 250px;
}

.broadcast-charts-grid .popular-categories-container .chart-title {
    margin-bottom: 12px;
    font-size: 15px;
}

.broadcast-charts-grid .popular-categories-content {
    gap: 12px;
    height: calc(100% - 34px);
}

.broadcast-charts-grid .popular-categories-content .chart {
    max-width: 128px;
    height: 128px !important;
    min-height: 128px;
}

.broadcast-charts-grid .popular-categories-details {
    gap: 7px;
    max-height: 170px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(83, 252, 24, 0.45) rgba(255, 255, 255, 0.06);
}

.broadcast-charts-grid .category-detail-item {
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 0.74em;
    gap: 8px;
    min-height: 34px;
}

.broadcast-charts-grid .category-color-box {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.broadcast-charts-grid .category-info {
    gap: 7px;
    min-width: 0;
}

.broadcast-charts-grid .category-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.broadcast-charts-grid .category-viewers {
    font-size: 0.72em;
}

.broadcast-charts-grid .category-stats {
    flex-shrink: 0;
}

.broadcast-charts-grid .popular-categories-details::-webkit-scrollbar {
    width: 7px;
}

.broadcast-charts-grid .popular-categories-details::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.broadcast-charts-grid .popular-categories-details::-webkit-scrollbar-thumb {
    background: rgba(83, 252, 24, 0.45);
    border-radius: 999px;
}

.broadcast-charts-grid .popular-categories-details::-webkit-scrollbar-thumb:hover {
    background: rgba(83, 252, 24, 0.68);
}

.popular-categories-container .chart-title {
    margin-bottom: 22px;
    text-align: center;
    font-size: 1.15em;
    color: #e5e5ea;
    font-weight: 700;
}

.popular-categories-container .chart-title i {
    color: var(--kick-green);
    margin-right: 10px;
    filter: drop-shadow(0 0 6px rgba(83, 252, 24, 0.4));
}

.popular-categories-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
}

.popular-categories-content .chart {
    flex: 1;
    max-width: 260px;
    height: 260px;
    position: relative;
}

.popular-categories-details {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(50, 50, 55, 0.6) 0%, rgba(40, 40, 45, 0.7) 100%);
    border-radius: 12px;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.25s ease;
}

.category-detail-item:hover {
    border-color: rgba(83, 252, 24, 0.15);
    transform: translateX(3px);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-color-box {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.category-name {
    color: #e5e5ea;
    font-weight: 600;
}

.category-duration {
    color: var(--kick-green);
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popular-categories-content {
        flex-direction: column;
    }

    .popular-categories-details {
        width: 100%;
    }
}
.category-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.category-viewers {
    font-size: 0.8em;
    color: #b0b0b0;
}

/* Pro Notice Row Styling */
.pro-notice-row td {
    padding: 0 !important;
    border: none !important;
}

.pro-notice-link {
    display: block;
    padding: 18px;
    text-align: center;
    background: linear-gradient(135deg, rgba(83, 252, 24, 0.12) 0%, rgba(83, 252, 24, 0.06) 100%);
    color: var(--kick-green);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 14px 14px;
}

.pro-notice-link:hover {
    background: linear-gradient(135deg, rgba(83, 252, 24, 0.2) 0%, rgba(83, 252, 24, 0.12) 100%);
    color: #fff;
    text-shadow: 0 0 12px rgba(83, 252, 24, 0.4);
}

/* Upgrade Prompt Row Styling */
.upgrade-prompt-row .upgrade-prompt-cell {
    padding: 0 !important;
    border: none !important;
}

.upgrade-prompt-cell .pro-notice-link {
    display: block;
    padding: 18px;
    text-align: center;
    background: linear-gradient(135deg, rgba(83, 252, 24, 0.12) 0%, rgba(83, 252, 24, 0.06) 100%);
    color: var(--kick-green);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upgrade-prompt-cell .pro-notice-link:hover {
    background: linear-gradient(135deg, rgba(83, 252, 24, 0.2) 0%, rgba(83, 252, 24, 0.12) 100%);
    color: #fff;
    text-shadow: 0 0 12px rgba(83, 252, 24, 0.4);
}

.chart-container.pro-preview {
    position: relative;
}

.chart-container.pro-preview .chart {
    filter: blur(6px);
    pointer-events: none;
}

.pro-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 10;
    border-radius: inherit;
}

.pro-preview-overlay .btn-pro {
    background: linear-gradient(135deg, var(--kick-green) 0%, #45E000 100%);
    color: #0A0A0A;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    box-shadow:
        0 8px 24px rgba(83, 252, 24, 0.4),
        0 0 0 1px rgba(83, 252, 24, 0.3);
    transition: all 0.3s ease;
}

.pro-preview-overlay .btn-pro:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 32px rgba(83, 252, 24, 0.5),
        0 0 0 1px rgba(83, 252, 24, 0.4);
}

.broadcast-preview-notice-open {
    overflow: hidden;
}

.broadcast-preview-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
}

.broadcast-preview-notice-content {
    position: relative;
    width: min(520px, 100%);
    padding: 28px;
    border-radius: 10px;
    border: 1px solid rgba(83, 252, 24, 0.28);
    background: #151519;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    color: #efeff1;
    text-align: center;
}

.broadcast-preview-notice-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #a8a8b3;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.broadcast-preview-notice-close:hover {
    color: #fff;
}

.broadcast-preview-notice-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(83, 252, 24, 0.12);
    color: var(--kick-green);
    font-size: 22px;
}

.broadcast-preview-notice-content h3 {
    margin: 0 0 12px;
    color: var(--kick-green);
    font-size: 1.35rem;
}

.broadcast-preview-notice-content p {
    margin: 0;
    color: #d7d7dd;
    font-size: 0.98rem;
    line-height: 1.55;
}

.broadcast-preview-notice-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.broadcast-preview-notice-upgrade,
.broadcast-preview-notice-continue {
    min-height: 42px;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.broadcast-preview-notice-upgrade {
    background: var(--kick-green);
    color: #080808;
    text-decoration: none;
}

.broadcast-preview-notice-upgrade:hover {
    color: #080808;
    filter: brightness(1.08);
}

.broadcast-preview-notice-continue {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: #efeff1;
}

.broadcast-preview-notice-continue:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 520px) {
    .broadcast-preview-notice-content {
        padding: 24px 18px;
    }

    .broadcast-preview-notice-actions {
        flex-direction: column;
    }
}
