* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --gray: #95a5a6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --protected: #9b59b6;
}

body {
    background: linear-gradient(135deg, #1a2a3a, #2c3e50);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    padding: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Top Bar */
.top-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
}

.top-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    flex-wrap: nowrap;
    min-width: max-content;
}

.top-menu a {
    color: var(--light);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    font-size: 14px;
}

.top-menu a:hover {
    background: var(--secondary);
    color: white;
}

/* Header */
.main-header {
    text-align: center;
    padding: 20px 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
}

.header-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-subtitle {
    font-size: 0.95rem;
    color: var(--gray);
    max-width: 100%;
    margin: 0 auto 15px;
    line-height: 1.5;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.quick-link {
    background: rgba(52, 152, 219, 0.2);
    color: var(--light);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.3);
    font-size: 14px;
    white-space: nowrap;
}

.quick-link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.language-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Protected Section */
.protected-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.protected-section h3 {
    color: var(--protected);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.protected-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.protected-link {
    background: rgba(155, 89, 182, 0.2);
    color: var(--light);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(155, 89, 182, 0.3);
    font-size: 14px;
    white-space: nowrap;
}

.protected-link:hover {
    background: var(--protected);
    transform: translateY(-2px);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .header-title {
        font-size: 2.2rem;
    }
    
    .logo-img {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 1024px) {
    .content-grid {
        gap: 30px;
    }
    
    .header-title {
        font-size: 2.5rem;
    }
    
    .logo-img {
        width: 80px;
        height: 80px;
    }
}

.card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card h2 {
    color: var(--secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
}

.tabs {
    display: flex;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.tab {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    min-width: 120px;
}

.tab.active {
    background: rgba(52, 152, 219, 0.2);
    border-bottom: 3px solid var(--secondary);
    color: var(--secondary);
}

.tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

textarea {
    width: 100%;
    height: 180px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: var(--light);
    font-size: 14px;
    resize: vertical;
    transition: border 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.file-input-container {
    margin: 15px 0;
}

.file-input-label {
    display: block;
    padding: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    border-color: var(--secondary);
    background: rgba(52, 152, 219, 0.1);
}

.url-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

@media (min-width: 480px) {
    .url-input-container {
        flex-direction: row;
    }
}

.url-input-container input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: var(--light);
    font-size: 14px;
}

.url-input-container input:focus {
    outline: none;
    border-color: var(--secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: #27ae60;
}

.btn-warning {
    background: var(--warning);
}

.btn-warning:hover {
    background: #d35400;
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: #c0392b;
}

.protected-download {
    background: var(--protected);
}

.protected-download:hover {
    background: #8e44ad;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary);
}

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.stat-card p {
    color: var(--gray);
    font-size: 0.8rem;
}

.results {
    margin-top: 25px;
}

.country-section {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.country-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .country-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.country-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.flag {
    width: 28px;
    height: 21px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.country-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.channel-count {
    background: var(--secondary);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.sport-badge {
    background: var(--accent);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 5px;
}

.channel-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 12px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.channel-item {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.channel-item:last-child {
    border-bottom: none;
}

.channel-icon {
    color: var(--secondary);
    font-size: 14px;
}

.channel-name {
    flex: 1;
}

.loading {
    display: none;
    text-align: center;
    padding: 25px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--secondary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 12px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--secondary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.message-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.message-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #e74c3c;
}

.message-warning {
    background: rgba(243, 156, 18, 0.2);
    border: 1px solid rgba(243, 156, 18, 0.5);
    color: #f39c12;
}

footer {
    text-align: center;
    padding: 30px 0 15px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
    text-align: left;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-size: 0.8rem;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

@media (min-width: 480px) {
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.feature-icon {
    font-size: 1.3rem;
    color: var(--secondary);
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.quality-badge {
    background: #9b59b6;
    color: white;
    padding: 2px 5px;
    border-radius: 8px;
    font-size: 0.65rem;
    margin-left: 4px;
}

.music-badge {
    background: #1abc9c;
    color: white;
    padding: 2px 5px;
    border-radius: 8px;
    font-size: 0.65rem;
    margin-left: 4px;
}

.bein-badge {
    background: #e67e22;
    color: white;
    padding: 2px 5px;
    border-radius: 8px;
    font-size: 0.65rem;
    margin-left: 4px;
}

/* Chat Container */
.chat-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .chat-container {
        height: 300px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    margin: 5% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: var(--gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--light);
}

.protected-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .protected-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

.protected-option {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.protected-option:hover {
    transform: translateY(-5px);
}

.protected-option h3 {
    color: var(--protected);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.protected-option p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Labels */
.flylinks-label {
  display: inline-block;
background: linear-gradient(45deg, #27b399, #0f0)
  color: var(--flylinks-light);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 10px;
  transform: rotate(-5deg);
  animation: flylinks-diagonal-float 2.5s infinite alternate ease-in-out;
box-shadow: 0px 0px 0px 4px rgb(253 253 253 / 30%);
}

@keyframes flylinks-diagonal-float {
  from { transform: rotate(-5deg) translate(-5px, -5px); }
  to { transform: rotate(-5deg) translate(5px, 5px); }
}
    