/* IPTV Checker Results Display - Beautiful UI */

.iptv-results-container {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.iptv-results-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.iptv-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.iptv-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
}

.iptv-status-badge.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.iptv-status-badge.expired {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.iptv-status-badge.trial {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.iptv-account-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.iptv-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.iptv-info-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.iptv-info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.iptv-info-value {
    font-size: 22px;
    font-weight: 700;
}

/* Progress Bar Sections */
.iptv-progress-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.iptv-progress-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iptv-progress-percentage {
    font-size: 20px;
    font-weight: 700;
}

.iptv-progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.iptv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
    border-radius: 50px;
    transition: width 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    position: relative;
    overflow: hidden;
}

.iptv-progress-fill.expiry-high {
    background: linear-gradient(90deg, #eb3349 0%, #f45c43 100%);
}

.iptv-progress-fill.expiry-medium {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.iptv-progress-fill.expiry-low {
    background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
}

.iptv-progress-fill.connections-high {
    background: linear-gradient(90deg, #eb3349 0%, #f45c43 100%);
}

.iptv-progress-fill.connections-medium {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.iptv-progress-fill.connections-low {
    background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
}

.iptv-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.iptv-progress-text {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.9;
}

/* Detailed Stats Grid */
.iptv-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.iptv-stat-box {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.iptv-stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.iptv-stat-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Download Actions */
.iptv-download-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
}

.iptv-download-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.iptv-download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.iptv-download-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.iptv-download-btn.txt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.iptv-download-btn.excel {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.iptv-download-btn.pdf {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.iptv-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* New Check Button */
.iptv-new-check-btn {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.iptv-new-check-btn:hover {
    background: white;
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .iptv-results-card {
        padding: 20px;
    }
    
    .iptv-results-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .iptv-account-name {
        font-size: 20px;
    }
    
    .iptv-results-grid {
        grid-template-columns: 1fr;
    }
    
    .iptv-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .iptv-download-buttons {
        flex-direction: column;
    }
    
    .iptv-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loading State */
.iptv-checking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.iptv-checking-spinner {
    text-align: center;
    color: white;
}

.iptv-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.iptv-checking-text {
    font-size: 18px;
    font-weight: 600;
}
