/* شعاع - موقع الفيديوهات القصيرة */
/* ====================================== */

/* المتغيرات العامة */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* إعادة تعيين شاملة لإزالة الفراغات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* الخطوط والنصوص */
* {
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html {
    margin: 0;
    padding: 0;
}

/* تحسينات التصميم الاحترافي */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin: 0;
}

.col, .col-md-6, .col-lg-4, .col-lg-6, .col-lg-8 {
    padding-left: 1rem;
    padding-right: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* الأزرار المخصصة */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white !important;
    box-shadow: var(--shadow-md);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
}

.btn-primary:focus,
.btn-primary:active {
    color: white !important;
    background: var(--gradient-primary);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    background: transparent;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: white !important;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: var(--border-radius-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* البطاقات */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: 2rem;
}

/* شريط التنقل */
.navbar {
    padding: 0.8rem 0;
    backdrop-filter: blur(10px);
    background: rgba(102, 126, 234, 0.95) !important;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    border: none;
    min-height: 60px;
}

/* إضافة مساحة للمحتوى تحت navbar الثابت */
body {
    padding-top: 60px;
}

/* إزالة الفراغات من حول navbar */
.navbar-nav {
    margin: 0;
}

.navbar-brand {
    margin: 0;
}

.container {
    margin: 0 auto;
}

.navbar.scrolled {
    background: rgba(102, 126, 234, 1) !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* القسم الرئيسي */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.8);
    z-index: 2;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: right;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    margin: 3rem 0;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.hero-buttons {
    margin-top: 2rem;
}

/* محاكي الهاتف */
.phone-mockup {
    position: relative;
    width: 250px;
    height: 500px;
    background: #333;
    border-radius: 40px;
    padding: 20px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

/* فيديو تجريبي */
.demo-video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.demo-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.demo-logo {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.demo-text {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.demo-text.small {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.play-icon {
    font-size: 2rem;
    margin: 1rem 0;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

.demo-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.stat-item {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    text-align: left;
    opacity: 0.9;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: black;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.video-player-demo {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-player-demo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.3), transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.action-btn {
    background: none;
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn i {
    font-size: 24px;
}

.action-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* الأقسام */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.featured-section {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, #f7fafc, white);
    z-index: 1;
}

.featured-section .container {
    position: relative;
    z-index: 2;
}

/* شبكة الفيديوهات */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: var(--border-radius-lg);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.video-card:hover::before {
    opacity: 0.1;
}

.video-thumbnail {
    width: 100%;
    height: 350px;
    background: #f7fafc;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img,
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: var(--transition);
}

.video-play-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #a0aec0;
}

.video-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* التبويبات */
.nav-pills .nav-link {
    border-radius: var(--border-radius);
    color: #718096;
    background: transparent;
    border: 2px solid #e2e8f0;
    margin: 0 0.5rem;
    padding: 12px 24px;
    transition: var(--transition);
}

.nav-pills .nav-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.nav-pills .nav-link.active {
    color: white;
    background: var(--gradient-primary);
    border-color: transparent;
}

/* الهاشتاجات */
.hashtags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.hashtag-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.hashtag-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.hashtag-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hashtag-stats {
    color: #718096;
    font-size: 0.9rem;
}

/* قسم العملات */
.coins-section {
    padding: 5rem 0;
    background: #f7fafc;
}

.coins-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.coin-package {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 3px solid transparent;
}

.coin-package.popular {
    border-color: var(--warning-color);
    transform: scale(1.05);
}

.coin-package.popular::before {
    content: 'الأكثر شعبية';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning-color);
    color: #2d3748;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.coin-package:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.coin-package.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.package-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.package-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.package-coins {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--warning-color);
    margin-bottom: 0.5rem;
}

.package-bonus {
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
}

.package-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.package-features li {
    padding: 0.5rem 0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.package-features li i {
    color: var(--success-color);
}

/* قسم التحميل */
.download-section {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
}

.download-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.download-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.app-features {
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(10px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--warning-color);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.download-buttons .btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    color: #2d3748;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    min-width: 180px;
    justify-content: flex-start;
}

.download-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #2d3748;
}

.download-buttons .btn i {
    font-size: 2rem;
    width: 2rem;
    text-align: center;
}

.download-buttons .btn div {
    text-align: right;
}

.download-buttons .btn small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.download-phones img {
    max-width: 100%;
    height: auto;
}

/* التذييل */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-brand img {
    border-radius: 50%;
}

.footer-brand h5 {
    color: white;
    margin-top: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    margin-top: 1rem;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-divider {
    border-color: rgba(255,255,255,0.2);
    margin: 2rem 0;
}

.footer-copyright {
    opacity: 0.7;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* الرسوم المتحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* التصميم المتجاوب - الكمبيوتر أولاً */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* شريط التنقل للكمبيوتر */
@media (min-width: 992px) {
    .navbar {
        padding: 1.5rem 0;
    }
    
    .navbar-nav {
        margin: 0 auto;
    }
    
    .nav-link {
        font-size: 1rem;
        margin: 0 0.5rem;
    }
}

/* القسم الرئيسي للكمبيوتر */
@media (min-width: 992px) {
    .hero-title {
        font-size: 4rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
        max-width: 600px;
    }
    
    .hero-stats {
        margin: 4rem 0;
    }
    
    .stats-number {
        font-size: 3.5rem;
    }
    
    .phone-mockup {
        width: 350px;
        height: 650px;
        padding: 25px;
    }
}

/* شبكة المحتوى للكمبيوتر */
@media (min-width: 992px) {
    .videos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .hashtags-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem;
    }
    
    .coins-packages {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* للأجهزة اللوحية */
@media (min-width: 768px) and (max-width: 991px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .hashtags-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .coins-packages {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .phone-mockup {
        width: 300px;
        height: 580px;
        padding: 20px;
    }
}

/* للهواتف فقط */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hashtags-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .coins-packages {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .coin-package.popular {
        transform: none;
    }
    
    .coin-package.popular:hover {
        transform: translateY(-10px);
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
        padding: 15px;
    }
    
    .navbar-search {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-content {
        text-align: center;
    }
    
    .hero-stats {
        margin: 2rem 0;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .package-coins {
        font-size: 2rem;
    }
    
    .package-price {
        font-size: 1.5rem;
    }
}

/* المظهر الداكن */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e2e8f0;
        --bg-color: #1a202c;
        --card-bg: #2d3748;
    }
}

/* تحسينات الأداء */
.video-card,
.hashtag-card,
.coin-package {
    will-change: transform;
}

.btn::before {
    will-change: left;
}

/* تحسينات إمكانية الوصول */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.video-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* طباعة */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
    
    .video-card,
    .hashtag-card,
    .coin-package {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* تحسينات إضافية للتصميم الاحترافي */
.professional-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.professional-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23667eea" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></svg>');
    opacity: 0.5;
    z-index: 1;
}

.professional-section .container {
    position: relative;
    z-index: 2;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
}

.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* تحسين نقاط الكسر للتصميم المتجاوب */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .videos-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 3rem;
    }
    
    .hashtags-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* تحسينات للشاشات الواسعة جداً */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* تحسين الأزرار للمس */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .video-card:hover {
        transform: none;
    }
    
    .hashtag-card:hover {
        transform: none;
    }
}

/* ====================================== */
/* قسم البثوث المباشرة */
/* ====================================== */

.live-streams-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.live-streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.live-stream-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.live-stream-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.live-stream-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.live-stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.live-stream-card:hover .live-stream-thumbnail img {
    transform: scale(1.05);
}

.live-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.viewers-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 2;
}

.demo-stream-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: var(--shadow-md);
}

.live-stream-info {
    padding: 1rem;
}

.stream-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.streamer-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.streamer-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 8px;
    object-fit: cover;
    background: #e2e8f0;
}

.streamer-name {
    font-weight: 500;
    color: #4a5568;
}

.stream-category {
    display: inline-block;
    background: #e2e8f0;
    color: #2d3748;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.demo-stream .live-indicator {
    background: #6c757d;
}

.demo-stream .live-indicator::after {
    content: " تجريبي";
    font-size: 0.7rem;
}

/* أزرار التحكم */
#refreshStreams {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

#refreshStreams:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* تصميم متجاوب للبثوث المباشرة */
@media (max-width: 768px) {
    .live-streams-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .live-stream-thumbnail {
        height: 150px;
    }
    
    .live-stream-info {
        padding: 0.8rem;
    }
    
    .stream-title {
        font-size: 1rem;
    }
    
    .demo-stream-overlay {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .live-streams-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .live-stream-thumbnail {
        height: 180px;
    }
}

/* ====================================== */
/* تحسينات الفيديوهات التجريبية */
/* ====================================== */

.demo-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: var(--shadow-md);
}

.demo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.demo-video {
    opacity: 0.95;
}

.demo-video .video-thumbnail {
    position: relative;
}

.video-category {
    display: inline-block;
    background: #e2e8f0;
    color: #2d3748;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* تحسينات لبطاقات الفيديو */
.video-card {
    transition: var(--transition);
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.video-card:hover .video-play-btn {
    background: rgba(102, 126, 234, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* تحسينات متجاوبة للفيديوهات التجريبية */
@media (max-width: 768px) {
    .demo-video-overlay {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .video-play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .demo-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}

@media (max-width: 576px) {
    .demo-video-overlay {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .video-category {
        font-size: 0.7rem;
    }
}

/* ====================================== */
/* تحسينات للمحتوى الحقيقي من التطبيق */
/* ====================================== */

.real-content-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.real-stream .live-indicator {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    animation: pulse 1.5s infinite;
}

.real-video .demo-video-overlay {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.real-video .video-category {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

/* مؤشر خاص للمحتوى الحقيقي */
.real-content-indicator {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: bold;
    z-index: 2;
}

.real-content-indicator::before {
    content: "🔥 ";
    margin-left: 2px;
}

/* ====================================== */
/* تحسينات الفيديوهات الحقيقية المتقدمة */
/* ====================================== */

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.video-user-info {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.user-avatar-container {
    position: relative;
    margin-left: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    color: #1da1f2;
    font-size: 0.8rem;
    background: white;
    border-radius: 50%;
    padding: 1px;
}

.user-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.username {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.upload-time {
    color: #718096;
    font-size: 0.8rem;
}

.video-header-info .video-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.video-views, .video-upload-time {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.video-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-info-section .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.video-description-full {
    color: #e2e8f0;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.video-category-tag .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

/* مشغل الفيديو المتقدم */
#realVideoModal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

#realVideoModal .modal-header {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 1.5rem;
}

#realVideoModal .video-player-container {
    background: #000;
    position: relative;
}

#realVideoPlayer {
    max-height: 60vh;
    object-fit: contain;
}

/* تحسينات متجاوبة */
@media (max-width: 768px) {
    .video-user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .username {
        font-size: 0.8rem;
    }
    
    .upload-time {
        font-size: 0.7rem;
    }
    
    .video-duration {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    #realVideoModal .modal-dialog {
        margin: 0.5rem;
    }
    
    #realVideoPlayer {
        max-height: 50vh;
    }
}

/* ====================================== */
/* تحسينات البثوث المباشرة الحقيقية */
/* ====================================== */

.streaming-duration {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.streamer-info-detailed {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.streamer-avatar-container {
    position: relative;
    margin-left: 8px;
}

.streamer-avatar-real {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dc3545;
}

.verified-badge-stream {
    position: absolute;
    bottom: -2px;
    right: -2px;
    color: #1da1f2;
    font-size: 0.8rem;
    background: white;
    border-radius: 50%;
    padding: 1px;
}

.streamer-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.streamer-name-real {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.streaming-time {
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 500;
}

.real-stream .live-indicator {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.real-stream .live-stream-thumbnail {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #dc3545, #fd7e14) border-box;
}

/* تحسينات متجاوبة للبثوث */
@media (max-width: 768px) {
    .streamer-info-detailed {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .streamer-avatar-real {
        width: 28px;
        height: 28px;
    }
    
    .streamer-name-real {
        font-size: 0.8rem;
    }
    
    .streaming-time {
        font-size: 0.7rem;
    }
    
    .streaming-duration {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}