/* متغيرات CSS العامة */
:root {
    --primary-color: #0071e3;
    --primary-dark: #0066cc;
    --secondary-color: #2997ff;
    --success-color: #30d158;
    --warning-color: #ff9500;
    --danger-color: #ff3b30;
    
    --bg-light: #f5f5f7;
    --bg-dark: #1d1d1f;
    --surface-light: #ffffff;
    --surface-dark: #2c2c2e;
    
    --text-light: #1d1d1f;
    --text-dark: #f5f5f7;
    --text-muted: #86868b;
    
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-xxl: 32px;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s var(--transition-smooth);
    -webkit-font-smoothing: antialiased;
    direction: rtl;
}

body.dark-mode {
    --bg-light: #000000;
    --bg-dark: #1d1d1f;
    --surface-light: #2c2c2e;
    --surface-dark: #1c1c1e;
    --text-light: #f5f5f7;
    --text-muted: #a0a0a5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* شاشة الترحيب */
.welcome-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.welcome-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-content {
    text-align: center;
    animation: fadeInUp 1s var(--transition-smooth);
}

.loader-animation {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.loader-icon {
    font-size: 4rem;
    color: white;
    animation: bounce 1s ease infinite;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* البانر العلوي */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.8rem var(--spacing-md);
    z-index: 1000;
    animation: slideDown 0.6s var(--transition-smooth);
}

body.dark-mode .top-banner {
    background: rgba(29, 29, 31, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.banner-text {
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

body.dark-mode .icon-btn {
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.icon-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* الهيدر */
header {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: 1rem var(--spacing-md);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.8s var(--transition-smooth);
}

body.dark-mode header {
    background: rgba(29, 29, 31, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    animation: rotate 3s linear infinite;
}

#siteTitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-list a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--transition-smooth);
}

.nav-list a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s var(--transition-smooth);
}

.menu-icon.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 180px var(--spacing-md) var(--spacing-xxl);
    position: relative;
    overflow: hidden;
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.float-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.float-icon:nth-child(2) { top: 60%; right: 15%; animation-delay: 3s; }
.float-icon:nth-child(3) { bottom: 25%; left: 20%; animation-delay: 6s; }
.float-icon:nth-child(4) { top: 40%; right: 25%; animation-delay: 9s; }
.float-icon:nth-child(5) { bottom: 30%; right: 10%; animation-delay: 12s; }

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--transition-smooth);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--success-color), #27ae60);
    color: white;
    box-shadow: 0 4px 15px rgba(48, 209, 88, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(48, 209, 88, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

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

.counter {
    font-size: 0.8rem;
    display: block;
    margin-top: 0.3rem;
}

.hero-note {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* قسم الشركات */
.operators-section {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: var(--surface-light);
    border-radius: var(--radius-xxl);
    margin: var(--spacing-xxl) 0;
}

body.dark-mode .operators-section {
    background: var(--surface-dark);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.section-title i {
    color: var(--primary-color);
}

.operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.operator-card {
    background: var(--surface-light);
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.dark-mode .operator-card {
    background: var(--surface-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.operator-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

body.dark-mode .operator-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.operator-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-md);
    flex-shrink: 0;
}

.operator-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.operator-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.operator-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.operator-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* قسم المراحل */
.phases-container {
    padding: var(--spacing-xxl) var(--spacing-md);
    max-width: 1600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: slideDown 0.6s var(--transition-smooth);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: var(--spacing-sm);
}

.carousel-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.carousel-wrapper::-webkit-scrollbar {
    height: 10px;
}

.carousel-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
}

body.dark-mode .carousel-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

.carousel-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.carousel-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), #0056b3);
    background-clip: padding-box;
}

.phases-carousel {
    display: flex;
    gap: var(--spacing-lg);
    min-width: min-content;
    padding: var(--spacing-md) 0;
}

.phase-card {
    flex: 0 0 380px;
    background: var(--surface-light);
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .phase-card {
    background: var(--surface-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.phase-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 113, 227, 0.2);
    transform: translateY(-12px);
}

body.dark-mode .phase-card:hover {
    box-shadow: 0 20px 50px rgba(0, 113, 227, 0.3);
}

.phase-card.phase-1 { --card-color: #0071e3; }
.phase-card.phase-2 { --card-color: #34a853; }
.phase-card.phase-3 { --card-color: #fbbc04; }
.phase-card.phase-4 { --card-color: #ea4335; }
.phase-card.phase-5 { --card-color: #9c27b0; }

.phase-header {
    background: linear-gradient(135deg, var(--card-color) 0%, rgba(0, 113, 227, 0.8) 100%);
    color: white;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.phase-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.phase-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.phase-number-badge {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.phase-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.phase-title i {
    font-size: 1.5em;
}

.phase-description {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.phase-body {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
}

body.dark-mode .phase-body {
    color: var(--text-light);
}

.phase-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.phase-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--transition-smooth);
}

.phase-info a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.toggle-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s var(--transition-smooth);
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.toggle-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #003d82 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

.toggle-button:active {
    transform: scale(0.98);
}

.toggle-button.active {
    background: linear-gradient(135deg, var(--success-color) 0%, #2d8659 100%);
}

.steps-list {
    display: none;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid rgba(0, 0, 0, 0.06);
    animation: slideDown 0.3s var(--transition-smooth);
}

body.dark-mode .steps-list {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.steps-list.active {
    display: block;
}

.step-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: var(--spacing-sm);
    font-size: 0.95rem;
    align-items: flex-start;
    animation: slideIn 0.4s var(--transition-smooth);
}

body.dark-mode .step-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    border-radius: 50%;
    background: var(--card-color);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.step-text {
    flex: 1;
    color: var(--text-light);
    line-height: 1.6;
}

.step-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--transition-smooth);
}

.step-text a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.step-content {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 113, 227, 0.08);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--card-color);
    animation: slideDown 0.3s var(--transition-smooth);
}

body.dark-mode .step-content {
    background: rgba(0, 113, 227, 0.15);
}

.content-title {
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.complaint-text {
    background: var(--surface-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-light);
}

body.dark-mode .complaint-text {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.complaint-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

.complaint-text p:last-child {
    margin-bottom: 0;
}

.operator-section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--surface-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: slideDown 0.4s var(--transition-smooth);
}

body.dark-mode .operator-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.operator-contacts {
    background: rgba(0, 0, 0, 0.03);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

body.dark-mode .operator-contacts {
    background: rgba(255, 255, 255, 0.05);
}

.operator-contacts p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.operator-contacts p:last-child {
    margin-bottom: 0;
}

.operator-contacts a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}

.operator-contacts a:hover {
    text-decoration: underline;
}

.demands-list {
    list-style: none;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

body.dark-mode .demands-list {
    background: rgba(255, 255, 255, 0.05);
}

.demands-list li {
    padding: 1rem 0;
    padding-right: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
    line-height: 1.6;
}

body.dark-mode .demands-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demands-list li:last-child {
    border-bottom: none;
}

.demands-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.app-links {
    background: var(--surface-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: var(--spacing-md);
}

body.dark-mode .app-links {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-links p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.app-links p:last-child {
    margin-bottom: 0;
}

.app-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--transition-smooth);
}

.app-links a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.app-rating {
    background: rgba(0, 0, 0, 0.03);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

body.dark-mode .app-rating {
    background: rgba(255, 255, 255, 0.05);
}

.app-rating p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.app-rating p:last-child {
    margin-bottom: 0;
}

.app-rating a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.app-rating a:hover {
    text-decoration: underline;
}

.scroll-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: fadeIn 0.8s var(--transition-smooth);
}

.scroll-hint i {
    animation: bounce 2s infinite;
    color: var(--primary-color);
}

.final-note {
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.1) 0%, rgba(251, 188, 4, 0.1) 100%);
    border: 2px solid var(--danger-color);
    border-radius: var(--radius-lg);
    text-align: center;
    animation: slideDown 0.8s var(--transition-smooth);
}

body.dark-mode .final-note {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.15) 0%, rgba(251, 188, 4, 0.15) 100%);
}

.final-note i {
    color: var(--danger-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.final-note p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.step-info-box {
    background: rgba(0, 113, 227, 0.08);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--card-color);
    margin-top: var(--spacing-md);
    font-size: 0.95rem;
    color: var(--text-light);
    animation: slideDown 0.3s var(--transition-smooth);
}

body.dark-mode .step-info-box {
    background: rgba(0, 113, 227, 0.15);
}

/* قسم Why */
.why-section {
    padding: var(--spacing-xxl) var(--spacing-md);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.reason-card {
    background: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    transition: all 0.3s var(--transition-smooth);
}

body.dark-mode .reason-card {
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.dark-mode .reason-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.reason-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.reason-icon i {
    font-size: 1.8rem;
    color: white;
}

.reason-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* قسم How */
.how-section {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: var(--surface-light);
    border-radius: var(--radius-xxl);
    margin: var(--spacing-xxl) 0;
}

body.dark-mode .how-section {
    background: var(--surface-dark);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.step-card {
    background: var(--surface-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s var(--transition-smooth);
}

body.dark-mode .step-card {
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body.dark-mode .step-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.step-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.step-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    font-weight: 600;
}

.step-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.social-share-btns {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.social-btn:hover {
    transform: scale(1.15);
}

.social-btn.whatsapp { background: #25D366; }
.social-btn.telegram { background: #0088cc; }
.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #1DA1F2; }

/* قسم المهمة الحالية */
.mission-section {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.05) 0%, rgba(0, 113, 227, 0.05) 100%);
    border-radius: var(--radius-xxl);
    margin: var(--spacing-xxl) 0;
}

body.dark-mode .mission-section {
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.1) 0%, rgba(0, 113, 227, 0.1) 100%);
}

.mission-card {
    background: var(--surface-light);
    border: 2px solid rgba(0, 113, 227, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 113, 227, 0.15);
    overflow: hidden;
}

body.dark-mode .mission-card {
    background: var(--surface-dark);
    border: 2px solid rgba(0, 113, 227, 0.3);
    box-shadow: 0 8px 32px rgba(0, 113, 227, 0.25);
}

.mission-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.mission-header h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.mission-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(234, 67, 53, 0.2);
    border: 2px solid var(--danger-color);
    border-radius: var(--radius-lg);
    color: var(--danger-color);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.mission-badge.active {
    background: rgba(48, 209, 88, 0.2);
    border-color: var(--success-color);
    color: var(--success-color);
}

.mission-badge i {
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

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

.mission-content {
    margin-bottom: var(--spacing-xl);
}

.hashtag-display {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hashtag-text {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 700;
    color: white;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 200px;
    line-height: 1.4;
}

.copy-hashtag-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s var(--transition-smooth);
    flex-shrink: 0;
}

.copy-hashtag-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.mission-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-twitter {
    background: linear-gradient(135deg, #1DA1F2, #1a8cd8);
    color: white;
}

.btn-twitter:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.btn-copy {
    background: var(--surface-dark);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

body.dark-mode .btn-copy {
    background: rgba(0, 113, 227, 0.2);
}

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

/* الملاحظات المهمة */
.mission-notes {
    background: rgba(251, 188, 4, 0.1);
    border: 2px solid var(--warning-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

body.dark-mode .mission-notes {
    background: rgba(251, 188, 4, 0.15);
}

.notes-dropdown summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    user-select: none;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    color: var(--warning-color);
    margin: 0 0 var(--spacing-lg) 0;
    padding: 0 var(--spacing-sm);
}

.notes-dropdown summary::-webkit-details-marker {
    display: none;
}

.notes-dropdown summary::after {
    content: "▾";
    font-size: 1.3rem;
    margin-left: auto;
    color: var(--warning-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.notes-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.notes-dropdown .notes-list {
    animation: dropdownFade 0.3s ease;
}

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

.notes-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.note-item {
    background: var(--surface-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    gap: var(--spacing-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.dark-mode .note-item {
    background: rgba(0, 0, 0, 0.2);
}

.note-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--warning-color), #ff9500);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.note-content {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.note-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.note-content p:last-child {
    margin-bottom: 0;
}

.note-explanation {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem !important;
}

.notes-dropdown[open] .note-item {
    animation: noteFade 0.3s ease forwards;
    opacity: 0;
}

.notes-dropdown[open] .note-item:nth-child(1) { animation-delay: 0.05s; }
.notes-dropdown[open] .note-item:nth-child(2) { animation-delay: 0.1s; }
.notes-dropdown[open] .note-item:nth-child(3) { animation-delay: 0.15s; }
.notes-dropdown[open] .note-item:nth-child(4) { animation-delay: 0.2s; }

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

/* معلومات الحملة */
.mission-stats {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.1), rgba(0, 113, 227, 0.1));
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .mission-stats {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.15), rgba(0, 113, 227, 0.15));
}

.stats-title {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 var(--spacing-lg) 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    text-align: center;
}

.stats-title i {
    font-size: 1.3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.stat-box {
    background: var(--surface-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark-mode .stat-box {
    background: rgba(0, 0, 0, 0.25);
}

.stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.3);
}

.stat-content {
    flex: 1;
    text-align: right;
    min-width: 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    word-break: break-word;
}

.stat-value {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 700;
    color: var(--text-light);
    margin: 0.25rem 0 0 0;
    word-break: break-word;
}

/* نماذج التويتات */
.tweet-samples {
    margin-bottom: var(--spacing-xl);
}

.samples-title {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 var(--spacing-lg) 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.samples-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.sample-tweet {
    background: var(--surface-light);
    border: 2px solid rgba(0, 113, 227, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    transition: all 0.3s var(--transition-smooth);
}

body.dark-mode .sample-tweet {
    background: var(--surface-dark);
    border: 2px solid rgba(0, 113, 227, 0.3);
}

.sample-tweet:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.2);
}

.sample-tweet p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0 0 var(--spacing-md) 0;
    text-align: justify;
    word-break: break-word;
}

.copy-tweet-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s var(--transition-smooth);
    font-size: 0.95rem;
}

.copy-tweet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 113, 227, 0.3);
}

.sample-tweet.copied .copy-tweet-btn {
    background: var(--success-color);
}

/* التنبيهات */
.mission-alert {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.15), rgba(251, 188, 4, 0.15));
    border: 2px solid var(--danger-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
}

body.dark-mode .mission-alert {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.2), rgba(251, 188, 4, 0.2));
}

.mission-alert i {
    color: var(--danger-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    min-width: 24px;
}

.alert-content {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.alert-content h5 {
    margin: 0 0 0.5rem 0;
    color: var(--danger-color);
    font-weight: 700;
    font-size: 1rem;
}

.alert-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: var(--surface-dark);
    padding: var(--spacing-xl) var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: var(--spacing-xxl);
}

body.dark-mode .main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s var(--transition-smooth);
    z-index: 10000;
    max-width: 90%;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

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

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


/* ==================== قسم التحميلات ==================== */

.downloads-section {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: var(--surface-light);
    border-radius: var(--radius-xxl);
    margin: var(--spacing-xxl) 0;
}

body.dark-mode .downloads-section {
    background: var(--surface-dark);
}

/* شبكة البطاقات */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

/* بطاقة التحميل */
.download-card {
    background: var(--surface-light);
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

body.dark-mode .download-card {
    background: var(--surface-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.05;
    border-radius: 50%;
    transition: all 0.6s var(--transition-smooth);
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 113, 227, 0.2);
    border-color: var(--primary-color);
}

body.dark-mode .download-card:hover {
    box-shadow: 0 20px 60px rgba(0, 113, 227, 0.3);
}

.download-card:hover::before {
    transform: scale(1.5);
    opacity: 0.1;
}

/* أيقونة البطاقة */
.download-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
    flex-shrink: 0;
}

.download-card.app-card .download-icon {
    background: linear-gradient(135deg, var(--success-color), #27ae60);
    box-shadow: 0 8px 24px rgba(48, 209, 88, 0.3);
}

/* محتوى البطاقة */
.download-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    flex: 1;
}

.download-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* معلومات الملف */
.download-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 113, 227, 0.05);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

body.dark-mode .download-info {
    background: rgba(0, 113, 227, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* أزرار التحميل */
.download-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.download-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
}

.download-btn:active {
    transform: translateY(-1px);
}

.share-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    flex-shrink: 0;
}

body.dark-mode .share-btn {
    background: rgba(0, 113, 227, 0.1);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* معاينة البوستر */
.download-preview {
    margin-top: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .download-preview {
    border: 2px solid rgba(255, 255, 255, 0.1);
}


/* تعليمات التثبيت */
.install-instructions {
    margin-top: var(--spacing-xl);
    background: rgba(41, 151, 255, 0.05);
    border: 2px solid rgba(0, 113, 227, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

body.dark-mode .install-instructions {
    background: rgba(41, 151, 255, 0.1);
    border: 2px solid rgba(0, 113, 227, 0.3);
}

.instructions-dropdown summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    user-select: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: var(--spacing-sm);
}

.instructions-dropdown summary::-webkit-details-marker {
    display: none;
}

.instructions-dropdown summary::after {
    content: "▾";
    font-size: 1.3rem;
    margin-left: auto;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.instructions-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.instructions-content {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    animation: slideDown 0.3s var(--transition-smooth);
}

.instruction-step {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    background: var(--surface-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: transform 0.2s ease;
}

body.dark-mode .instruction-step {
    background: rgba(0, 0, 0, 0.2);
}

.instruction-step:hover {
    transform: translateX(-5px);
}

.instruction-step .step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.instruction-step .step-text {
    flex: 1;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ملاحظة الأمان */
.security-note {
    margin-top: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.1), rgba(0, 113, 227, 0.1));
    border: 2px solid var(--success-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

body.dark-mode .security-note {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.15), rgba(0, 113, 227, 0.15));
}

.security-note i {
    color: var(--success-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.security-note p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==================== Responsive Design ==================== */

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .downloads-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .downloads-section {
        padding: var(--spacing-xl) var(--spacing-sm);
        margin: var(--spacing-lg) 0;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .download-card {
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }

    .download-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .download-title {
        font-size: 1.4rem;
    }

    .download-description {
        font-size: 0.9rem;
    }

    .download-info {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .download-actions {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        height: 50px;
    }

    .install-instructions {
        padding: var(--spacing-md);
    }

    .instructions-dropdown summary {
        font-size: 1.1rem;
    }

    .instruction-step {
        padding: var(--spacing-sm);
    }

    .instruction-step .step-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.95rem;
    }

    .instruction-step .step-text {
        font-size: 0.85rem;
    }

    .security-note {
        padding: var(--spacing-md);
    }

    .security-note i {
        font-size: 1.3rem;
    }

    .security-note p {
        font-size: 0.85rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .downloads-section {
        padding: var(--spacing-lg) var(--spacing-xs);
        border-radius: var(--radius-lg);
    }

    .downloads-grid {
        gap: var(--spacing-md);
    }

    .download-card {
        padding: var(--spacing-md);
    }

    .download-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .download-title {
        font-size: 1.2rem;
    }

    .download-description {
        font-size: 0.85rem;
    }

    .download-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }

    .qr-placeholder,
    .preview-placeholder {
        padding: var(--spacing-md);
    }

    .qr-placeholder i {
        font-size: 3rem;
    }

    .preview-placeholder i {
        font-size: 2.5rem;
    }
}



/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets - شاشات الأجهزة اللوحية */
@media (min-width: 769px) and (max-width: 1024px) {
    .operators-grid,
    .reasons-grid,
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .phase-card {
        flex: 0 0 min(45vw, 360px);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices - الأجهزة المحمولة */
@media (max-width: 768px) {
    /* تحسين المتغيرات للموبايل */
    :root {
        --spacing-xs: 0.4rem;
        --spacing-sm: 0.8rem;
        --spacing-md: 1.2rem;
        --spacing-lg: 1.6rem;
        --spacing-xl: 2.4rem;
        --spacing-xxl: 3rem;
    }

    /* تحسين البانر العلوي */
    .top-banner {
        padding: 0.6rem var(--spacing-sm);
    }

    .top-banner-content {
        gap: 0.5rem;
    }

    .banner-text {
        font-size: 0.85rem;
        gap: 0.3rem;
        min-width: 150px;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.9rem;
    }

    .banner-actions {
        gap: 0.3rem;
    }

    /* تحسين الهيدر */
    header {
        width: 95%;
        padding: 1rem;
        top: 60px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .logo-container {
        gap: 0.5rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    #siteTitle {
        font-size: 1.2rem;
    }

    .menu-icon {
        display: flex;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        background: var(--surface-light);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        border-radius: var(--radius-lg);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    body.dark-mode .nav-list {
        background: var(--surface-dark);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list a {
        padding: 0.75rem 1rem;
        text-align: center;
        font-size: 1rem;
    }

    /* تحسين Hero Section */
    .hero-section {
        padding: 140px var(--spacing-sm) var(--spacing-xl);
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn {
        width: 100%;
        max-width: none;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .float-icon {
        font-size: 2.5rem;
        opacity: 0.08;
    }

    /* تحسين العناوين */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-lg);
        gap: 0.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* تحسين بطاقات المشغلين */
    .operators-section {
        padding: var(--spacing-xl) var(--spacing-sm);
        margin: var(--spacing-lg) 0;
    }

    .operators-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .operator-card {
        padding: var(--spacing-lg);
    }

    .operator-icon {
        width: 70px;
        height: 70px;
        margin-bottom: var(--spacing-sm);
    }

    .operator-name {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-xs);
    }

    .operator-desc {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
    }

    .operator-badge {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }

    /* تحسين بطاقات المراحل */
    .phases-container {
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    .carousel-wrapper {
        padding-bottom: var(--spacing-md);
        margin: 0 calc(-1 * var(--spacing-sm));
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .phases-carousel {
        gap: var(--spacing-md);
    }

    .phase-card {
        flex: 0 0 min(90vw, 350px);
    }

    .phase-header {
        padding: var(--spacing-lg);
    }

    .phase-number-badge {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: var(--spacing-xs);
    }

    .phase-title {
        font-size: 1.4rem;
        gap: 0.4rem;
    }

    .phase-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .phase-body {
        padding: var(--spacing-lg);
    }

    .phase-info {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
    }

    .toggle-button {
        padding: 0.9rem 1.3rem;
        font-size: 0.95rem;
        gap: 0.4rem;
    }

    .steps-list {
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
    }

    .step-item {
        padding: 0.9rem 0;
        font-size: 0.9rem;
        gap: var(--spacing-sm);
    }

    .step-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.95rem;
    }

    .step-content {
        margin-top: var(--spacing-sm);
        padding: var(--spacing-sm);
    }

    .content-title {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-xs);
    }

    .complaint-text {
        font-size: 0.85rem;
        padding: var(--spacing-sm);
        line-height: 1.7;
    }

    .complaint-text p {
        margin-bottom: 0.8rem;
    }

    .operator-section {
        margin-top: var(--spacing-md);
        padding: var(--spacing-sm);
    }

    .operator-contacts,
    .app-links,
    .app-rating {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .operator-contacts p,
    .app-links p,
    .app-rating p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .demands-list {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) 0;
    }

    .demands-list li {
        padding: 0.8rem 0;
        padding-right: var(--spacing-sm);
        font-size: 0.9rem;
    }

    .step-info-box {
        padding: var(--spacing-sm);
        margin-top: var(--spacing-sm);
        font-size: 0.9rem;
    }

    /* تحسين قسم Why */
    .why-section {
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .reason-card {
        padding: var(--spacing-md);
    }

    .reason-icon {
        width: 55px;
        height: 55px;
        margin-bottom: var(--spacing-sm);
    }

    .reason-icon i {
        font-size: 1.6rem;
    }

    .reason-card p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* تحسين قسم How */
    .how-section {
        padding: var(--spacing-xl) var(--spacing-sm);
        margin: var(--spacing-lg) 0;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .step-card {
        padding: var(--spacing-md);
    }

    .step-card h3 {
        font-size: 1.15rem;
        margin-bottom: var(--spacing-xs);
    }

    .step-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
    }

    .step-btn {
        padding: 0.75rem 1.3rem;
        font-size: 0.95rem;
        gap: 0.4rem;
    }

    .social-share-btns {
        gap: 0.4rem;
    }

    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    /* تحسين المهمة الحالية */
    .mission-section {
        padding: var(--spacing-xl) var(--spacing-sm);
        margin: var(--spacing-lg) 0;
    }

    .mission-card {
        padding: var(--spacing-lg);
    }

    .mission-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .mission-header h3 {
        font-size: 1.4rem;
        text-align: center;
    }

    .mission-badge {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    .hashtag-display {
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }

    .hashtag-text {
        font-size: 1.3rem;
        text-align: center;
    }

    .copy-hashtag-btn {
        align-self: center;
    }

    .mission-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    /* تحسين الملاحظات */
    .mission-notes {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }

    .notes-dropdown summary {
        font-size: 1.2rem;
        padding: 0 var(--spacing-sm);
        gap: 0.5rem;
    }

    .notes-list {
        gap: var(--spacing-sm);
    }

    .note-item {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .note-number {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 0.95rem;
    }

    .note-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .note-explanation {
        font-size: 0.8rem;
    }

    /* تحسين الإحصائيات */
    .mission-stats {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }

    .stats-title {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-md);
        gap: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .stat-box {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    /* تحسين نماذج التويتات */
    .samples-title {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-md);
    }

    .samples-list {
        gap: var(--spacing-md);
    }

    .sample-tweet {
        padding: var(--spacing-lg);
    }

    .sample-tweet p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .copy-tweet-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* تحسين التنبيهات */
    .mission-alert {
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
    }

    .mission-alert i {
        font-size: 1.3rem;
    }

    .alert-content h5 {
        font-size: 0.95rem;
    }

    .alert-content p {
        font-size: 0.9rem;
    }

    /* تحسين الملاحظة النهائية */
    .final-note {
        padding: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }

    .final-note i {
        font-size: 1.3rem;
        margin-bottom: var(--spacing-xs);
    }

    .final-note p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .scroll-hint {
        font-size: 0.85rem;
        margin-top: var(--spacing-md);
        gap: 0.4rem;
    }

    /* تحسين Footer */
    .main-footer {
        padding: var(--spacing-lg) var(--spacing-sm);
        margin-top: var(--spacing-lg);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: center;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-copy {
        font-size: 0.85rem;
    }

    /* تحسين Toast */
    .toast {
        bottom: 1rem;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        max-width: 85%;
    }
}

/* Small Mobile Devices - الهواتف الصغيرة */
@media (max-width: 480px) {
    /* تحسين حجم الخط الأساسي */
    html {
        font-size: 15px;
    }

    /* تحسين المسافات */
    :root {
        --spacing-xs: 0.3rem;
        --spacing-sm: 0.6rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.4rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }

    /* تحسين البانر العلوي */
    .top-banner {
        padding: 0.5rem var(--spacing-xs);
    }

    .banner-text {
        font-size: 0.75rem;
        gap: 0.25rem;
        min-width: 120px;
    }

    .icon-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.85rem;
    }

    .banner-actions {
        gap: 0.25rem;
    }

    /* تحسين الهيدر */
    header {
        top: 55px;
        padding: 0.8rem;
    }

    .logo-icon {
        font-size: 1.3rem;
    }

    #siteTitle {
        font-size: 1.1rem;
    }

    .nav-list {
        padding: 0.8rem;
    }

    .nav-list a {
        padding: 0.7rem 0.8rem;
        font-size: 0.95rem;
    }

    /* تحسين Hero Section */
    .hero-section {
        padding: 120px var(--spacing-xs) var(--spacing-lg);
        min-height: 85vh;
    }

    .hero-title {
        font-size: 1.7rem;
        line-height: 1.25;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-buttons {
        gap: var(--spacing-xs);
    }

    .btn {
        padding: 0.9rem 1.3rem;
        font-size: 0.95rem;
    }

    .hero-note {
        font-size: 0.85rem;
    }

    .float-icon {
        font-size: 2rem;
        opacity: 0.06;
    }

    /* تحسين العناوين */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
        gap: 0.4rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* تحسين بطاقات المشغلين */
    .operators-section {
        padding: var(--spacing-lg) var(--spacing-xs);
        margin: var(--spacing-md) 0;
        border-radius: var(--radius-lg);
    }

    .operators-grid {
        gap: var(--spacing-sm);
    }

    .operator-card {
        padding: var(--spacing-md);
    }

    .operator-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--spacing-sm);
    }

    .operator-name {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs);
    }

    .operator-desc {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-sm);
    }

    .operator-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    /* تحسين بطاقات المراحل */
    .phases-container {
        padding: var(--spacing-lg) var(--spacing-xs);
    }

    .carousel-wrapper {
        margin: 0 calc(-1 * var(--spacing-xs));
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
        padding-bottom: var(--spacing-sm);
    }

    .phases-carousel {
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
    }

    .phase-card {
        flex: 0 0 min(85vw, 300px);
    }

    .phase-header {
        padding: var(--spacing-md);
    }

    .phase-number-badge {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
        margin-bottom: var(--spacing-xs);
    }

    .phase-title {
        font-size: 1.2rem;
        gap: 0.3rem;
    }

    .phase-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .phase-body {
        padding: var(--spacing-md);
    }

    .phase-info {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-sm);
    }

    .toggle-button {
        padding: 0.8rem 1.1rem;
        font-size: 0.9rem;
        gap: 0.3rem;
    }

    .steps-list {
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
    }

    .step-item {
        padding: 0.8rem 0;
        font-size: 0.85rem;
        gap: var(--spacing-xs);
    }

    .step-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.85rem;
    }

    .step-content {
        margin-top: var(--spacing-sm);
        padding: var(--spacing-sm);
    }

    .content-title {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-xs);
    }

    .complaint-text {
        font-size: 0.8rem;
        padding: var(--spacing-sm);
        line-height: 1.6;
    }

    .complaint-text p {
        margin-bottom: 0.7rem;
    }

    .operator-section {
        margin-top: var(--spacing-sm);
        padding: var(--spacing-sm);
    }

    .operator-contacts,
    .app-links,
    .app-rating {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .operator-contacts p,
    .app-links p,
    .app-rating p {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }

    .demands-list {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) 0;
    }

    .demands-list li {
        padding: 0.7rem 0;
        padding-right: var(--spacing-sm);
        font-size: 0.85rem;
    }

    .demands-list li::before {
        font-size: 1rem;
    }

    .step-info-box {
        padding: var(--spacing-sm);
        margin-top: var(--spacing-sm);
        font-size: 0.85rem;
    }

    /* تحسين قسم Why */
    .why-section {
        padding: var(--spacing-lg) var(--spacing-xs);
    }

    .reasons-grid {
        gap: var(--spacing-sm);
    }

    .reason-card {
        padding: var(--spacing-md);
    }

    .reason-icon {
        width: 50px;
        height: 50px;
        margin-bottom: var(--spacing-sm);
    }

    .reason-icon i {
        font-size: 1.5rem;
    }

    .reason-card p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* تحسين قسم How */
    .how-section {
        padding: var(--spacing-lg) var(--spacing-xs);
        margin: var(--spacing-md) 0;
        border-radius: var(--radius-lg);
    }

    .steps-container {
        gap: var(--spacing-sm);
    }

    .step-card {
        padding: var(--spacing-md);
    }

    .step-card h3 {
        font-size: 1.05rem;
        margin-bottom: var(--spacing-xs);
    }

    .step-card p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
    }

    .step-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        gap: 0.3rem;
    }

    .social-share-btns {
        gap: 0.3rem;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* تحسين المهمة الحالية */
    .mission-section {
        padding: var(--spacing-lg) var(--spacing-xs);
        margin: var(--spacing-md) 0;
        border-radius: var(--radius-lg);
    }

    .mission-card {
        padding: var(--spacing-md);
    }

    .mission-header {
        margin-bottom: var(--spacing-sm);
        gap: var(--spacing-xs);
    }

    .mission-header h3 {
        font-size: 1.2rem;
    }

    .mission-badge {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    .mission-badge i {
        font-size: 0.9rem;
    }

    .hashtag-display {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .hashtag-text {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .copy-hashtag-btn {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.1rem;
    }

    .mission-actions {
        gap: var(--spacing-xs);
    }

    /* تحسين الملاحظات */
    .mission-notes {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .notes-dropdown summary {
        font-size: 1.1rem;
        padding: 0;
        gap: 0.4rem;
        margin-bottom: var(--spacing-md);
    }

    .notes-dropdown summary::after {
        font-size: 1.1rem;
    }

    .notes-list {
        gap: var(--spacing-sm);
    }

    .note-item {
        padding: var(--spacing-sm);
        gap: var(--spacing-xs);
    }

    .note-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.85rem;
    }

    .note-content p {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.4rem;
    }

    .note-explanation {
        font-size: 0.75rem;
        margin-top: 0.3rem !important;
    }

    /* تحسين الإحصائيات */
    .mission-stats {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .stats-title {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-sm);
        gap: 0.4rem;
    }

    .stats-title i {
        font-size: 1.1rem;
    }

    .stats-grid {
        gap: var(--spacing-xs);
    }

    .stat-box {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-value {
        font-size: 0.95rem;
        margin-top: 0.2rem;
    }

    /* تحسين نماذج التويتات */
    .tweet-samples {
        margin-bottom: var(--spacing-md);
    }

    .samples-title {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-sm);
        gap: 0.4rem;
    }

    .samples-list {
        gap: var(--spacing-sm);
    }

    .sample-tweet {
        padding: var(--spacing-md);
    }

    .sample-tweet p {
        font-size: 0.8rem;
        line-height: 1.6;
        margin-bottom: var(--spacing-sm);
    }

    .copy-tweet-btn {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    /* تحسين التنبيهات */
    .mission-alert {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .mission-alert i {
        font-size: 1.2rem;
        min-width: 20px;
    }

    .alert-content h5 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .alert-content p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* تحسين الملاحظة النهائية */
    .final-note {
        padding: var(--spacing-md);
        margin-top: var(--spacing-lg);
    }

    .final-note i {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-xs);
    }

    .final-note p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .scroll-hint {
        font-size: 0.8rem;
        margin-top: var(--spacing-sm);
        gap: 0.3rem;
    }

    /* تحسين Footer */
    .main-footer {
        padding: var(--spacing-md) var(--spacing-xs);
        margin-top: var(--spacing-lg);
    }

    .footer-links {
        gap: var(--spacing-xs);
        margin-bottom: var(--spacing-sm);
    }

    .footer-links a {
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    .footer-copy {
        font-size: 0.8rem;
    }

    /* تحسين Toast */
    .toast {
        bottom: 0.8rem;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        max-width: 90%;
        border-radius: var(--radius-md);
    }
}

/* Extra Small Devices - الشاشات الصغيرة جداً */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .phase-card {
        flex: 0 0 min(90vw, 260px);
    }

    .operator-icon {
        width: 55px;
        height: 55px;
    }

    .hashtag-text {
        font-size: 1rem;
    }

    .copy-hashtag-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .note-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .phase-number-badge {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.8rem 1.1rem;
        font-size: 0.9rem;
    }

    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* تحسينات للشاشات العريضة */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .phases-carousel {
        justify-content: center;
    }

    .operators-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* تحسينات للشاشات الكبيرة جداً */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .phases-container {
        max-width: 1800px;
    }
}

/* Accessibility - إمكانية الوصول */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar - شريط التمرير */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

body.dark-mode ::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* تحسينات للطباعة */
@media print {
    .welcome-screen,
    .top-banner,
    header,
    .menu-icon,
    .floating-elements,
    .hero-buttons,
    .mission-actions,
    .copy-hashtag-btn,
    .copy-tweet-btn,
    .social-share-btns,
    .footer-links,
    .toast {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .phase-card,
    .operator-card,
    .reason-card,
    .step-card,
    .mission-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
        color: black !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* تحسينات للوضع الأفقي على الموبايل */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 140px var(--spacing-sm) var(--spacing-lg);
    }

    .welcome-title {
        font-size: 2rem;
    }

    .phase-card {
        flex: 0 0 min(60vw, 400px);
    }
}

/* تحسينات لأجهزة iPhone الصغيرة */
@media only screen 
    and (min-device-width: 320px) 
    and (max-device-width: 568px)
    and (-webkit-min-device-pixel-ratio: 2) {
    
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .phase-card {
        flex: 0 0 min(88vw, 280px);
    }
}

/* تحسينات لأجهزة iPad */
@media only screen 
    and (min-device-width: 768px) 
    and (max-device-width: 1024px) {
    
    .operators-grid,
    .reasons-grid,
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .phase-card {
        flex: 0 0 min(48%, 400px);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* تحسينات لمتصفح Safari */
@supports (-webkit-touch-callout: none) {
    .top-banner,
    header {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* تحسينات للمتصفحات القديمة */
@supports not (backdrop-filter: blur(20px)) {
    .top-banner {
        background: rgba(255, 255, 255, 0.98);
    }

    body.dark-mode .top-banner {
        background: rgba(29, 29, 31, 0.98);
    }

    header {
        background: rgba(255, 255, 255, 0.98);
    }

    body.dark-mode header {
        background: rgba(29, 29, 31, 0.98);
    }
}

/* إصلاح مشاكل العرض على Android */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* تحسين الأداء للأجهزة المحمولة */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    a,
    button,
    .btn {
        -webkit-tap-highlight-color: rgba(0, 113, 227, 0.2);
    }
}

/* تحسينات للوضع الليلي */
@media (prefers-color-scheme: dark) {
    body:not(.dark-mode) {
        /* يمكن إضافة تحسينات تلقائية للوضع الليلي هنا */
    }
}

/* تحسينات لعرض أفضل للنصوص العربية */
@supports (font-feature-settings: normal) {
    body {
        font-feature-settings: 'ss01', 'ss02', 'ss03', 'ss04', 'ss05';
        -webkit-font-feature-settings: 'ss01', 'ss02', 'ss03', 'ss04', 'ss05';
    }
}

/* إصلاح مشاكل الفجوات في بعض المتصفحات */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* تحسين عرض الأزرار على الأجهزة اللمسية */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .icon-btn,
    .toggle-button,
    .step-btn,
    .social-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* تحسين مشاكل الفراغات في النصوص الطويلة */
.operator-name,
.phase-title,
.mission-header h3,
.hashtag-text,
.section-title {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

/* إصلاح مشاكل z-index */
.welcome-screen { z-index: 9999; }
.toast { z-index: 10000; }
.top-banner { z-index: 1000; }
.header { z-index: 999; }
.nav-list { z-index: 1000; }

/* تحسين الأداء بتفعيل GPU acceleration */
.phase-card,
.operator-card,
.reason-card,
.step-card,
.mission-card,
.btn,
.toggle-button {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* إصلاح مشاكل الفليكر في الأنيميشن */
@keyframes fadeInUp,
@keyframes fadeInDown,
@keyframes slideDown,
@keyframes slideIn,
@keyframes float,
@keyframes bounce,
@keyframes rotate,
@keyframes fadeIn,
@keyframes pulse,
@keyframes dropdownFade,
@keyframes noteFade {
    0%, 100% {
        transform: translateZ(0);
    }
}

/* تحسين السلاسة في التمرير للموبايل */
@media (max-width: 768px) {
    body,
    .carousel-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}