:root {
            --mak-purple: #6b009d;
            --mak-orange: #ff7b00;
            --mak-gray: #f3f2f5;
            --mak-dark: #222;
            --mak-soft-shadow: 0 4px 14px rgba(0,0,0,.08);
            --text-secondary: #666;
            --card-bg: #fff;
            --primary-color: #6b009d;
        }

        body {
            font-family: "Tahoma", Arial, sans-serif;
            background: var(--mak-gray);
            margin: 0;
            padding: 0;
            color: #333;
        }

.section-title {
    background: #404040;
    color: #fff;
    padding: 10px 14px;
    border-right: 5px solid var(--mak-orange);
    margin: 20px 0 15px;
    font-weight: bold;
    border-radius: 8px 0 0 8px;
    font-size: 18px;
    box-shadow: var(--mak-soft-shadow);
    display: flex;
    align-items: center;
    gap: 8px;
}

        .main-content-wrapper {
            display: flex;
            width: 100%;
            padding: 15px;
        }

        .main-content {
            flex: 1;
        }

        .country-selector-container {
            
            padding: 0;
            margin-bottom: 20px;
            border-radius: 12px;
            box-shadow: var(--mak-soft-shadow);
            border: 1px solid #e8e8e8;
        }

.country-selector-header {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    background: #4e4e4e;
    color: #fff;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
}

        .country-selector-title {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .country-selector-icon .fa-chevron-down {
            transition: transform 0.3s;
        }

        .country-selector-icon.rotated .fa-chevron-down {
            transform: rotate(180deg);
        }

        .country-selector-dropdown {
            display: none;
            
            padding: 15px;
            border-radius: 0 0 12px 12px;
        }

        .country-selector-dropdown.open {
            display: block;
        }

        .country-search-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #cecece;
            border-radius: 8px;
            font-size: 14px;
            outline: none;
        }

        .country-list {
            list-style: none;
            padding: 0;
            margin-top: 15px;
            max-height: 340px;
            overflow-y: auto;
        }

        .country-list li {
            padding: 10px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .country-list li:hover {
            background: #faf8ff;
        }

        .country-list li.active {
            
            border-right: 3px solid var(--mak-orange);
        }

        .country-flag {
            font-size: 18px;
            margin-left: 8px;
        }

        .country-name {
            flex: 1;
        }

        .country-code {
            
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 12px;
        }

        .trending-refresh-container {
            
            padding: 15px;
            border-radius: 14px;
            box-shadow: var(--mak-soft-shadow);
            border: 1px solid #e7e7e7;
            margin-top: 15px;
        }

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

        .refresh-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: bold;
            color: var(--mak-purple);
        }

        .refresh-controls {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

        .refresh-interval-select,
        .refresh-toggle-btn {
            padding: 7px 10px;
            border-radius: 6px;
            border: 1px solid #ccc;
            
            cursor: pointer;
            font-family: inherit;
            font-size: 14px;
        }

        .refresh-toggle-btn {
            background: var(--mak-purple);
            color: #fff;
            border-color: var(--mak-purple);
            min-width: 70px;
        }

        .refresh-toggle-btn.paused {
            background: #4CAF50;
            border-color: #4CAF50;
        }

        .refresh-toggle-btn:hover {
            opacity: 0.9;
        }

        .refresh-progress-container {
            margin-top: 12px;
        }

        .refresh-progress-bar {
            width: 100%;
            height: 6px;
            
            border-radius: 4px;
            overflow: hidden;
        }

        .refresh-progress-fill {
            height: 100%;
            width: 0%;
            background: var(--mak-orange);
            border-radius: 4px;
            transition: width 0.3s;
        }

        .refresh-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 8px;
            font-size: 13px;
        }

        .refresh-text {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .refresh-status {
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: bold;
        }

        .refresh-status.active {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .refresh-status.paused {
            background: #ffebee;
            color: #c62828;
        }

        .refresh-timer {
            
            padding: 2px 8px;
            border-radius: 4px;
            font-family: monospace;
        }

        .trending-grid {
            margin-top: 20px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 18px;
        }

        .trending-card {
            
            border-radius: 14px;
            overflow: hidden;
            position: relative;
            box-shadow: var(--mak-soft-shadow);
            
            transition: transform .18s, box-shadow .18s;
        }

        .trending-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 6px 18px rgba(0,0,0,.14);
        }

        .trending-rank {
            position: absolute;
            top: 10px;
            left: 10px;
            background: var(--mak-orange);
            padding: 4px 8px;
            border-radius: 8px;
            color: #fff;
            font-weight: bold;
            z-index: 2;
        }

        .trending-image {
            height: 170px;
            position: relative;
            overflow: hidden;
        }

        .trending-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 6px;
        
        }

        .trending-content {
            padding: 12px 14px;
        }

        .trending-description {
            font-size: 14px;
            
            margin-bottom: 12px;
            line-height: 1.4;
        }

        .trending-stats {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 12px;
        }

        .trending-stat {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            
        }

        .trend-up { 
            color: green; 
            font-weight: bold; 
        }
        
        .trend-down { 
            color: red; 
            font-weight: bold; 
        }

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

        .trending-search-btn {
            background: var(--mak-purple);
            color: #fff;
            padding: 5px 10px;
            border-radius: 7px;
            font-size: 12px;
            text-decoration: none;
            transition: background .2s;
        }

        .trending-search-btn:hover {
            background: var(--mak-orange);
        }

        .trending-table-container {
            
            padding: 14px;
            border-radius: 14px;
            margin-top: 25px;
            box-shadow: var(--mak-soft-shadow);
            overflow-x: auto;
        }

        .trending-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            min-width: 600px;
        }

        .trending-table th {
            background: var(--mak-purple);
            color: #fff;
            padding: 10px;
            font-size: 14px;
            text-align: right;
        }

        .trending-table td {
            padding: 10px;
            border-bottom: 1px solid #eee;
        }

        .trending-table tr:hover {
            background: #faf8ff;
        }
        
        .section-image {
            width: 100%;
            max-width: 100%;
            height: auto;
            display: block;
            border-radius: 8px;
        }
        
        .trending-filters {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .trending-filter {
            padding: 8px 16px;
            border-radius: 20px;
            border: 1px solid #ddd;
            
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
        }
        
        .trending-filter:hover {
            
        }
        
        .trending-filter.active {
            background: var(--mak-purple);
            color: white;
            border-color: var(--mak-purple);
        }
        
        .trending-update-indicator {
            position: fixed;
            bottom: 20px;
            left: 20px;
            background: #4CAF50;
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1000;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.3s, transform 0.3s;
        }
        
        .trending-update-indicator.show {
            opacity: 1;
            transform: translateY(0);
        }
        
        .no-data {
            text-align: center;
            padding: 40px;
            background: white;
            border-radius: 12px;
            box-shadow: var(--mak-soft-shadow);
            
        }
        
        .no-data i {
            font-size: 48px;
            color: #ddd;
            margin-bottom: 15px;
        }
        
        .image-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        .placeholder-animation {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            animation: shimmer 2s infinite;
        }
        
        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        
        .search-count-visual {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        .trend-icon {
            font-size: 48px;
            margin-bottom: 10px;
            animation: bounce 3s infinite;
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }
        
        .placeholder-text {
            font-size: 14px;
            text-align: center;
            padding: 0 10px;
            max-height: 40px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        @media (max-width: 768px) {
            .trending-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
            
            .refresh-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .refresh-controls {
                width: 100%;
                justify-content: flex-start;
            }
            
            .main-content-wrapper {
                padding: 10px;
            }
        }
        
        @media (max-width: 600px) {
            .trending-grid {
                grid-template-columns: 1fr;
            }
            
            .trending-filters {
                justify-content: center;
            }
        }