/* ============================================
   حميز نت - منصة الأدوات المتطورة
   الملف الرئيسي للتصاميم CSS
   ============================================ */

/* المتغيرات الأساسية */
:root {
    /* الألوان الرئيسية */
    --primary: #00a651;
    --primary-dark: #006837;
    --primary-light: #22c55e;
    --primary-gradient: linear-gradient(135deg, #00a651, #22c55e);
    
    /* الألوان الثانوية */
    --secondary: #3399ff;
    --secondary-dark: #0066cc;
    --secondary-light: #66b3ff;
    --secondary-gradient: linear-gradient(135deg, #3399ff, #66b3ff);
    
    /* ألوان التمييز */
    --accent: #ffd700;
    --accent-dark: #ccab00;
    --accent-light: #ffed4e;
    
    /* ألوان الحالات */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    
    /* ألوان الخلفية */
    --background: #000000;
    --background-secondary: #111111;
    --background-tertiary: #1a1a1a;
    --background-card: #1e1e1e;
    --background-elevated: #2a2a2a;
    
    /* ألوان النص */
    --text: #ffffff;
    --text-muted: #cccccc;
    --text-light: #e5e5e5;
    --text-secondary: #b3b3b3;
    
    /* ألوان الحدود */
    --border: #333333;
    --border-light: #404040;
    --border-lighter: #555555;
    
    /* الظلال */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 8px 25px rgba(0, 166, 81, 0.3);
    --shadow-secondary: 0 8px 25px rgba(51, 153, 255, 0.3);
    
    /* ألوان المنصات */
    --whatsapp: #25D366;
    --telegram: #0088cc;
    --viber: #7360F2;
    --sms: #3b82f6;
    --email: #ea4335;
    --facebook: #1877f2;
    --instagram: #E4405F;
    --text-tools: #9333ea;
    
    /* القياسات */
    --header-height: 70px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --transition: 0.3s ease;
    --transition-fast: 0.15s ease;
    --transition-slow: 0.5s ease;
    
    /* النصوص */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* الزجاج المضبب */
    --glass-bg: rgba(26, 26, 26, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-backdrop: blur(20px);
}

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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, var(--background-secondary) 50%, var(--background) 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: rtl;
    max-width: 100vw; /* جديد */
}
html {
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    max-width: 100%;
}


/* خلفية متحركة */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 166, 81, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(51, 153, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* حاوي عام */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* العناوين */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

/* الفقرات */
p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* الروابط */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* القوائم */
ul, ol {
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* ===============================
   الهيدر الرئيسي
   =============================== */
.main-header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: var(--glass-backdrop);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 166, 81, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 998;
    height: var(--header-height);
    border-bottom: 1px solid rgba(0, 166, 81, 0.2);
    transition: all var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: var(--font-size-2xl);
    font-weight: 800;
    text-decoration: none;
    transition: all var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    color: var(--primary-light);
}

.logo i {
    color: var(--accent);
    font-size: 1.5em;
}

.logo-tagline {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    position: relative;
    font-size: var(--font-size-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(0, 166, 81, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-button {
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 166, 81, 0.1);
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===============================
   القائمة المحمولة
   =============================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.show {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: var(--glass-backdrop);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.show .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    min-height: var(--header-height);
    flex-shrink: 0;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.mobile-logo i {
    color: var(--accent);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--font-size-lg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.mobile-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    min-height: 60px;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(0, 166, 81, 0.1);
    color: var(--primary);
}

.mobile-nav-link i:first-child {
    margin-left: 0.75rem;
    color: var(--primary);
    font-size: var(--font-size-lg);
}

.mobile-nav-link span {
    flex: 1;
    text-align: center;
    font-size: var(--font-size-base);
}

.mobile-nav-link i:last-child {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-right: 0.75rem;
}

.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    flex-shrink: 0;
}

.mobile-menu-footer p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.mobile-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    background: rgba(0, 166, 81, 0.1);
    border: 1px solid rgba(0, 166, 81, 0.2);
}

.mobile-contact a:hover {
    background: rgba(0, 166, 81, 0.2);
    border-color: var(--primary);
}

/* ===============================
   المحتوى الرئيسي
   =============================== */
.main-content {
    padding-top: var(--header-height);
}

/* ===============================
   قسم البطل (Hero)
   =============================== */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

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

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 166, 81, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1.5rem;
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

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

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

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.hero-cta {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.hero-demo {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-demo:hover {
    background: var(--primary);
    color: white;
}

/* ===============================
   الأقسام العامة
   =============================== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-description,
.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===============================
   قسم المنصات
   =============================== */
.platforms-section {
    padding: 6rem 0;
    background: rgba(26, 26, 26, 0.5);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.platform-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

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

.cpanel-card {
    border-color: var(--secondary);
}

.cpanel-card:hover {
    border-color: var(--secondary-light);
    box-shadow: 0 20px 50px rgba(51, 153, 255, 0.3);
}

.blogger-card {
    border-color: var(--accent);
}

.blogger-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
}

.blogger-card.popular {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 166, 81, 0.1));
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -10px;
    background: var(--accent);
    color: var(--background);
    padding: 0.5rem 2rem;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: var(--font-size-xs);
}

.platform-header {
    margin-bottom: 2rem;
}

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

.cpanel-card .platform-icon {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.blogger-card .platform-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--background);
}

.platform-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.platform-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.platform-features {
    margin: 2rem 0;
    text-align: right;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.feature-item i {
    color: var(--success);
    font-size: var(--font-size-sm);
}

.platform-pricing {
    margin: 2rem 0;
}

.price-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.price-tag.free {
    background: rgba(0, 166, 81, 0.1);
    border-color: var(--success);
}

.price-label {
    display: block;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: 0.5rem;
}

.price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: var(--font-size-lg);
    color: var(--accent);
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
}

.price-tag.free .amount {
    color: var(--success);
}

.platform-button {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    margin-bottom: 0.75rem;
}

.platform-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

.platform-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.platform-button.secondary:hover {
    background: var(--primary);
    color: white;
}

.platform-button.primary {
    background: var(--accent);
    color: var(--background);
}

.platform-button.primary:hover {
    background: var(--accent-dark);
    color: var(--background);
}

.cpanel-card .platform-button.secondary {
    border-color: var(--secondary);
    color: var(--secondary);
}

.cpanel-card .platform-button.secondary:hover {
    background: var(--secondary);
    color: white;
}

.blogger-card .platform-button.secondary {
    border-color: var(--accent);
    color: var(--accent);
}

.blogger-card .platform-button.secondary:hover {
    background: var(--accent);
    color: var(--background);
}

.platform-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.platform-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.platform-note.popular-note {
    color: var(--accent);
}

.platform-note i {
    font-size: var(--font-size-lg);
}

/* ===============================
   قسم المقارنة
   =============================== */
.comparison-section {
    margin-top: 4rem;
    text-align: center;
}

.comparison-section h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.comparison-table {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow-x: auto; /* تغيير من hidden إلى auto */
    max-width: 100%; /* تغيير من 600px */
    margin: 0 auto;
}
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
}

.comparison-row {
    min-width: 600px; /* ضمان عرض معين للجدول */
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.comparison-row.header-row {
    background: var(--primary-gradient);
    color: white;
}

.comparison-cell {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
    text-align: center;
}

.comparison-cell:first-child {
    border-left: none;
    text-align: right;
    font-weight: 600;
}

.comparison-row:last-child .comparison-cell {
    border-bottom: none;
}

.comparison-cell.highlight {
    background: rgba(0, 166, 81, 0.1);
    color: var(--success);
    font-weight: 600;
}

/* ===============================
   قسم الأدوات
   =============================== */
.tools-section {
    padding: 6rem 0;
    background: rgba(26, 26, 26, 0.5);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 166, 81, 0.3);
    box-shadow: var(--shadow-primary);
}

.tool-card.premium {
    border-color: var(--accent);
}

.tool-card.premium:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.tool-header {
    margin-bottom: 1.5rem;
    position: relative;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--primary);
}

.tool-title {
    font-size: var(--font-size-xl);
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.tool-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.free-badge {
    background: var(--success);
    color: white;
}

.paid-badge {
    background: var(--accent);
    color: var(--background);
}

.tool-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: var(--font-size-sm);
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tool-features span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 166, 81, 0.1);
    color: var(--success);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.tool-button {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.tool-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

.premium-btn {
    background: linear-gradient(135deg, var(--accent), #f59e0b);
}

.premium-btn:hover {
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.tools-note {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.note-icon {
    font-size: 3rem;
    color: var(--success);
}

.note-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.note-content p {
    color: var(--text-muted);
    margin: 0;
}

/* ===============================
   شرح لوحة التحكم المميز
   =============================== */
.dashboard-explanation-section {
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.15), rgba(51, 153, 255, 0.15));
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    border: 2px solid rgba(0, 166, 81, 0.3);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.dashboard-explanation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    animation: shimmer 3s ease-in-out infinite;
}

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

.dashboard-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.title-icon {
    background: var(--primary-gradient);
    padding: 0.75rem;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

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

.title-decoration {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.dashboard-description {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.admin-tabs-section {
    margin-top: 3rem;
}

.tabs-explanation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.tab-explanation {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
}

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

.tab-explanation.featured-tab {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.3));
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.tab-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.tab-icon {
    background: var(--primary-gradient);
    padding: 0.75rem;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-tab .tab-icon {
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    color: var(--background);
}

.tab-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    flex: 1;
}

.featured-tab .tab-header h4 {
    color: var(--accent);
}

.importance-badge {
    background: var(--info);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.importance-badge.essential {
    background: var(--danger);
}

.importance-badge.advanced {
    background: var(--accent);
    color: var(--background);
}

.tab-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.feature-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.feature-details li {
    background: rgba(0, 166, 81, 0.1);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 166, 81, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    transition: all var(--transition);
}

.feature-details li:hover {
    background: rgba(0, 166, 81, 0.2);
    border-color: var(--primary);
    transform: translateX(5px);
}

.feature-details li i {
    color: var(--success);
    font-size: 1rem;
    min-width: 16px;
}

/* ===============================
   قسم الخطوات
   =============================== */
.steps {
    display: grid;
    gap: 2rem;
}

.step {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    position: relative;
    transition: all var(--transition);
}

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

.step-number {
    position: absolute;
    top: -15px;
    right: 2rem;
    background: var(--primary-gradient);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step h3 {
    margin-top: 1rem;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step ul {
    list-style: none;
    margin-top: 1rem;
}

.step li {
    margin: 0.75rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

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

.step a {
    color: #ffffff;
    font-weight: 600;
}

.step a:hover {
    color: var(--primary-light);
}

/* ===============================
   قالب Blogger
   =============================== */
.blogger-template-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.template-header h4 {
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-template-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.copy-template-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.installation-guide {
    margin: 2rem 0;
}

.installation-guide h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.installation-steps {
    list-style: none;
    padding: 0;
}

.installation-steps li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
}

.installation-steps li i {
    color: var(--primary);
    font-size: var(--font-size-sm);
}

.template-features {
    margin-top: 2rem;
}

.template-features h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 166, 81, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 166, 81, 0.2);
    transition: all var(--transition);
}

.feature-item:hover {
    background: rgba(0, 166, 81, 0.15);
    border-color: var(--primary);
}

.feature-item i {
    color: var(--success);
    font-size: var(--font-size-lg);
}

.feature-item span {
    color: var(--text);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

/* ===============================
   التنبيهات
   =============================== */
   .alert {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    overflow-x: hidden; /* جديد */
    max-width: 100%; /* جديد */
    word-wrap: break-word; /* جديد */
}

.alert p,
.alert ul,
.alert li {
    word-wrap: break-word; /* جديد */
    overflow-wrap: break-word; /* جديد */
    max-width: 100%; /* جديد */
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
    color: var(--info);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert strong {
    font-weight: 700;
}

/* ===============================
   قسم التسعير
   =============================== */
.pricing-section {
    padding: 6rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border-color: var(--accent);
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 166, 81, 0.1));
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -10px;
    background: var(--accent);
    color: var(--background);
    padding: 0.5rem 2rem;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: var(--font-size-xs);
}

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

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

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.pricing-plan {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.pricing-price {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.currency {
    font-size: var(--font-size-lg);
    color: var(--accent);
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    font-size: var(--font-size-base);
    color: var(--text-muted);
}

.pricing-description {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pricing-savings {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

/* تفاصيل التكلفة */
.pricing-breakdown {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    text-align: right;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: var(--font-size-sm);
}

.breakdown-item:last-child {
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.pricing-note-small {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: right;
    padding: 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li i {
    color: var(--success);
    font-size: var(--font-size-sm);
}

.pricing-button {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-size: var(--font-size-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.pricing-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

.pricing-note {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 3rem;
}

.pricing-note .note-icon {
    color: var(--accent);
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.pricing-note .note-content {
    text-align: center;
}

.pricing-note h4 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.pricing-note ul {
    list-style: none;
    text-align: right;
}

.pricing-note li {
    margin-bottom: 0.75rem;
    padding-right: 1.5rem;
    position: relative;
}

.pricing-note li:before {
    content: '💡';
    position: absolute;
    right: 0;
    font-size: 1.1rem;
}

/* ===============================
   المربعات المميزة
   =============================== */
.highlight-box {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin: 2rem 0;
    text-align: center;
}

.highlight-box .btn {
    background: white;
    color: var(--primary);
}

.highlight-box .btn:hover {
    background: var(--background-secondary);
    color: var(--primary);
}

.highlight-card {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.3));
}

/* ===============================
   الأزرار العائمة
   =============================== */
.floating-buttons {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 90;
}

.float-button {
    background: var(--primary-gradient);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: none;
}

.float-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-primary);
}

/* ===============================
   Toast Notifications
   =============================== */
#toastContainer {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 3000;
    display: flex;  
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    transform: translateX(-400px);
    transition: var(--transition);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.info .toast-icon {
    color: var(--info);
}

.toast span {
    color: var(--text);
    font-weight: 500;
}

/* ===============================
   الفوتر
   =============================== */
.main-footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 4rem 0 1rem;
    border-top: 1px solid rgba(0, 166, 81, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--accent);
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: var(--font-size-lg);
    font-weight: 700;
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright,
.footer-brand {
    color: var(--text-muted);
}

.footer-brand a {
    color: var(--primary);
    font-weight: 600;
}

.footer-brand i {
    color: var(--danger);
}

/* ===============================
   Files Grid
   =============================== */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.file-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.file-card:hover::before {
    transform: scaleX(1);
}

.file-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 166, 81, 0.5);
    box-shadow: var(--shadow-lg);
}

.file-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.file-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.file-card h5 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.file-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Tools Layout */
.tools-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.tools-sidebar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.sidebar-header i {
    font-size: 1.5rem;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.tools-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tool-nav-item {
    background: none;
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-muted);
    position: relative;
}

.tool-nav-item:hover,
.tool-nav-item.active {
    background: rgba(0, 166, 81, 0.1);
    color: var(--primary);
}

.tool-nav-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.tool-nav-item span {
    flex: 1;
    text-align: right;
    font-weight: 500;
}

.nav-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.sidebar-info {
    margin-top: 2rem;
}

.info-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.info-box i {
    color: var(--warning);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.info-box h4 {
    color: var(--warning);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.info-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.tools-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
}

.tool-content {
    display: none;
}

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

.tool-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tool-title i {
    font-size: 2rem;
    color: var(--primary);
}

.tool-title div h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
}

.tool-title div p {
    margin: 0;
    color: var(--text-muted);
}

/* Explanation Content */
.explanation-content {
    margin-top: 3rem;
}

.section-sub-header {
    margin-bottom: 2rem;
}

.section-sub-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-sub-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.explanation-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

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

.explanation-card-header {
    background: var(--primary-gradient);
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.explanation-card-icon {
    font-size: 1.5rem;
}

.explanation-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.explanation-card-content {
    padding: 1.5rem;
}

.explanation-card-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.explanation-card-content ul {
    list-style: none;
    padding: 0;
}

.explanation-card-content li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.explanation-card-content li i {
    color: var(--success);
    font-size: 0.9rem;
}

/* Steps Container */
.steps-container {
    display: grid;
    gap: 2rem;
}

.step-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    position: relative;
    transition: all var(--transition);
    overflow-x: hidden; /* جديد */
    max-width: 100%; /* جديد */
    word-wrap: break-word; /* جديد */
}

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

.step-content {
    padding-right: 3rem;
    max-width: 100%; /* جديد */
    overflow-x: hidden; /* جديد */
}

.step-description {
    overflow-x: hidden;
    max-width: 100%;
}

.step-description p,
.step-description h3,
.step-description h4,
.step-description h5 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}


.step-content * {
    max-width: 100%; /* جديد */
    word-wrap: break-word; /* جديد */
    overflow-wrap: break-word; /* جديد */
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.step-description ul {
    list-style: none;
    padding: 0;
    max-width: 100%; /* جديد */
    overflow-x: hidden; /* جديد */
}

.step-description li {
    margin-bottom: 0.75rem;
    padding-right: 1.5rem; /* زيادة من 1rem */
    position: relative;
    color: var(--text-muted);
    word-wrap: break-word; /* جديد */
    overflow-wrap: break-word; /* جديد */
    max-width: 100%; /* جديد */
}

.step-description li:before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: bold;
}

/* إصلاح الروابط داخل القوائم */
.step-description li a,
.step-description p a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    display: inline-block;
}

.code-block {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border: 1px solid var(--border-light);
}

.code-block code {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    overflow-wrap: break-word; /* جديد */
    white-space: pre-wrap; /* جديد */
    max-width: 100%; /* جديد */
    display: block; /* جديد */
}

.url-example {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.url-before,
.url-after {
    margin-bottom: 1rem;
}

.url-before strong,
.url-after strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.url-before code,
.url-after code {
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 4px;
    display: block;
    font-size: 0.8rem;
    word-break: break-all;
    overflow-wrap: break-word; /* جديد */
    white-space: pre-wrap; /* جديد */
    max-width: 100%; /* جديد */
}

/* Data Structure */
.data-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.data-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}

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

.data-section h3 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.data-section h3 i {
    font-size: 1.5rem;
}

.data-section ul {
    list-style: none;
    padding: 0;
}

.data-section li {
    margin-bottom: 0.75rem;
    padding-right: 1rem;
    position: relative;
    color: var(--text-muted);
}

.data-section li:before {
    content: '▶';
    position: absolute;
    right: 0;
    color: var(--success);
    font-size: 0.8rem;
}

/* Files Overview */
.files-overview {
    margin-top: 2rem;
}

.files-overview h4 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.new-files-notice {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.notice-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notice-card i {
    color: var(--warning);
    font-size: 2rem;
    margin-top: 0.25rem;
}

.notice-card h5 {
    color: var(--warning);
    margin-bottom: 0.75rem;
}

.notice-card p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.files-description {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.files-description h4 {
    color: var(--info);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.files-description p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.files-description ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.files-description li {
    margin-bottom: 0.75rem;
    padding-right: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.files-description li:before {
    content: '🔧';
    position: absolute;
    right: 0;
    font-size: 1rem;
}

/* ===============================
   أدوات السيو (SEO Tools)
   =============================== */
.seo-generator-container {
    margin-top: 2rem;
}

.seo-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.seo-tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-muted);
    font-weight: 600;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    position: relative;
}

.seo-tab-btn:hover {
    background: rgba(0, 166, 81, 0.1);
    color: var(--primary);
}

.seo-tab-btn.active {
    background: var(--primary);
    color: white;
}

.seo-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.seo-tab-content {
    display: none;
}

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

.seo-form-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h4 {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-header p {
    color: var(--text-muted);
    margin: 0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font-size: 1rem;
    transition: all var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.form-group small {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.default-pages-section {
    margin: 2rem 0;
}

.default-pages-section h5 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.default-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.page-item {
    background: rgba(0, 166, 81, 0.1);
    border: 1px solid rgba(0, 166, 81, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.page-item.default {
    background: rgba(0, 166, 81, 0.15);
    border-color: var(--primary);
}

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

.page-item span {
    flex: 1;
    color: var(--text-light);
    font-weight: 500;
}

.priority {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority.high {
    background: var(--danger);
    color: white;
}

.priority.medium {
    background: var(--warning);
    color: var(--background);
}

.priority.low {
    background: var(--info);
    color: white;
}

.additional-pages-section {
    margin: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h5 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.btn-add-page {
    background: var(--success);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

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

.additional-pages-list {
    margin: 1rem 0;
}

.additional-page-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.page-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.btn-remove-page {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-family: inherit;
}

.btn-remove-page:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.page-examples {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--border-radius);
}

.page-examples h6 {
    color: var(--info);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.example-item {
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--info);
    font-size: 0.875rem;
    font-weight: 500;
}

.example-item:hover {
    background: rgba(14, 165, 233, 0.3);
    border-color: var(--info);
    transform: translateY(-2px);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.robots-settings {
    margin: 2rem 0;
}

.setting-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
}

.setting-group h5 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.disallow-section,
.allowed-section {
    margin: 1rem 0;
}

.disallow-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.custom-disallow {
    margin-top: 1rem;
}

.custom-disallow label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-note {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-note i {
    color: var(--info);
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.info-note p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.preview-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-header h5 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-success:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.code-preview {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    overflow-x: auto;
}

.code-preview pre {
    margin: 0;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

.code-preview code {
    color: var(--accent);
}

.seo-tips-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.1), rgba(51, 153, 255, 0.1));
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 166, 81, 0.3);
}

.tips-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tips-header h4 {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
}

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

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

.tip-card h5 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.tip-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ===============================
   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 slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Large screens (Desktops) */
@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
}

/* Medium screens (Tablets) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }

    .tools-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tools-sidebar {
        position: static;
    }

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

    .seo-tabs {
        flex-direction: column;
    }

    .seo-tab-btn {
        border-radius: var(--border-radius);
        margin-bottom: 0.5rem;
    }

    .page-inputs {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {

    .step-card {
        padding: 1rem !important;
        overflow-x: hidden !important;
    }

    .step-content {
        padding-right: 0 !important;
        padding: 0 !important;
    }

    .step-number {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        margin-bottom: 1rem;
    }

    .step-description {
        overflow-x: hidden;
        max-width: 100%;
    }

    .step-description ul {
        padding-right: 0;
        margin-right: 0;
    }

    .step-description li {
        padding-right: 1.5rem;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* إصلاح alert في الموبايل */
    .alert {
        padding: 1rem !important;
        flex-direction: column;
        gap: 0.5rem;
        overflow-x: hidden;
    }

    .alert i {
        font-size: 1.5rem;
    }

    .alert p,
    .alert strong,
    .alert span,
    .alert b {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        display: block;
    }

    /* إصلاح الروابط الطويلة */
    .step-content a,
    .alert a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-all !important;
        max-width: 100% !important;
        display: inline-block;
        line-height: 1.4;
    }

    /* إصلاح code و strong */
    .step-description code,
    .alert code,
    .step-description strong,
    .alert strong {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: inline-block;
        font-size: 0.85rem;
    }
    /* منع التمدد الأفقي */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    * {
        max-width: 100% !important;
    }

    /* Header adjustments */
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-content {
        padding: 0 1rem;
    }

    .cta-button .button-text {
        display: none;
    }

    .cta-button {
        padding: 0.75rem;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }

    /* Main content adjustments */
    .container {
        padding: 0 1rem;
        max-width: 100% !important;
        overflow-x: hidden;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        word-wrap: break-word;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        word-wrap: break-word;
    }

    .section-description {
        font-size: var(--font-size-base);
    }

    /* Tools grid */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tool-card {
        padding: 1.5rem;
        max-width: 100%;
    }

    .tool-icon {
        font-size: 2.5rem;
    }

    /* Platforms */
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .platform-card.popular {
        transform: none;
    }

    /* إصلاح جدول المقارنة في الموبايل */
    .comparison-section {
        overflow-x: hidden;
        padding: 0;
    }

    .comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--border-radius);
    }

    .comparison-row {
        display: grid;
        grid-template-columns: 1fr;
        min-width: auto;
        gap: 0;
    }

    .comparison-cell {
        border-left: none;
        border-bottom: 1px solid var(--border-light);
        padding: 0.75rem;
        text-align: right !important;
        word-wrap: break-word;
    }

    .comparison-cell:first-child {
        background: var(--primary);
        color: white;
        font-weight: 700;
        text-align: right !important;
    }

    /* Steps */
    .step {
        padding: 1.5rem;
        overflow-x: hidden;
    }

    .step-number {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 1rem;
    }

    /* إصلاح الأكواد والروابط */
    .code-block,
    .url-example {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .code-block code,
    .url-before code,
    .url-after code {
        font-size: 0.75rem;
        white-space: pre-wrap;
        word-break: break-all;
    }

    /* Template section */
    .template-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    /* Toast notifications */
    #toastContainer {
        left: 1rem;
        right: 1rem;
    }

    .toast {
        min-width: auto;
        transform: translateY(100px);
        max-width: calc(100vw - 2rem);
    }

    .toast.show {
        transform: translateY(0);
    }

    /* Floating buttons */
    .floating-buttons {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .float-button {
        width: 45px;
        height: 45px;
    }

    /* Mobile Menu Improvements */
    .mobile-menu-content {
        width: 100%;
        max-width: 85vw;
    }

    .mobile-nav-link {
        padding: 1.25rem 1.5rem;
        font-size: var(--font-size-base);
    }

    .mobile-nav-link i:first-child {
        font-size: 1.2rem;
    }

    /* Hero adjustments */
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Dashboard special section */
    .dashboard-explanation-section {
        padding: 2rem 1rem;
        overflow-x: hidden;
    }

    .dashboard-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .title-icon {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .tab-explanation {
        padding: 1.5rem;
    }

    .tab-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .tab-icon {
        font-size: 1.2rem;
        min-width: 50px;
        height: 50px;
    }

    .feature-details ul {
        grid-template-columns: 1fr;
    }

    /* Files and tools layout */
    .files-grid {
        grid-template-columns: 1fr;
    }

    .tools-content {
        padding: 2rem 0rem;
        overflow-x: hidden;
    }

    .explanation-grid {
        grid-template-columns: 1fr;
    }

    .data-structure {
        grid-template-columns: 1fr;
    }

    /* SEO Tools Mobile */
    .seo-form-section {
        padding: 1.5rem;
        overflow-x: hidden;
    }

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

    .default-pages-grid {
        grid-template-columns: 1fr;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .preview-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .btn-remove-page {
        position: static;
        margin-top: 1rem;
        width: auto;
        height: auto;
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius);
    }

    /* إصلاح جداول التسعير */
    .pricing-breakdown,
    .breakdown-item {
        font-size: 0.85rem;
        overflow-wrap: break-word;
    }

    /* إصلاح الصور */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    .header-content {
        padding: 0 0.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .floating-buttons {
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .float-button {
        width: 40px;
        height: 40px;
    }

    .tool-card,
    .pricing-card,
    .platform-card,
    .step {
        padding: 1rem 0.5rem;
    }

    .mobile-menu-content {
        width: 100%;
        max-width: none;
    }

    .tool-features {
        gap: 0.25rem;
    }

    .tool-features span {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .mobile-nav-link {
        padding: 1rem 1.25rem;
        min-height: 50px;
    }

    /* Section spacing */
    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .dashboard-explanation-section {
        padding: 1.5rem 0.75rem;
    }

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

    .seo-form-section {
        padding: 1rem;
    }

    .seo-tips-section {
        padding: 1.5rem;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .tool-card:hover,
    .pricing-card:hover,
    .platform-card:hover {
        transform: none;
    }

    .tool-card:active,
    .pricing-card:active,
    .platform-card:active {
        transform: scale(0.98);
    }

    .mobile-nav-link {
        padding: 1.25rem 1.5rem;
        min-height: 60px;
    }

    .float-button {
        min-height: 44px;
        min-width: 44px;
    }

    /* تحسين تفاعل اللمس للقائمة المحمولة */
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }

    .seo-tab-btn {
        min-height: 44px;
    }

    .btn-add-page,
    .btn-remove-page,
    .btn-success {
        min-height: 44px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-light: #666666;
        --text-muted: #ffffff;
        --glass-border: rgba(255, 255, 255, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .mobile-menu-content {
        transition: none;
    }

    .mobile-menu {
        transition: none;
    }

    .seo-tab-btn,
    .tool-nav-item,
    .example-item {
        transition: none;
    }
}

/* تحسين مظهر شريط التمرير */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

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

pre {
    color: #15b959;
    margin-bottom: 1rem;
}
/* حماية إضافية من overflow في جميع الأحجام */
.step a,
.alert a,
.file-card a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* إصلاح الجداول */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* إصلاح pre و code */
pre, code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
        direction: ltr;
}

/* منع تجاوز الحاويات */
.section,
.container,
.main-content {
    overflow-x: hidden;
    max-width: 100%;
}
.step-card .btn,
.step-card .btn-success,
.step-card .platform-button {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    height: auto;
    min-height: 44px;
    padding: 0.75rem 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .step-card .btn,
    .step-card .btn-success {
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
    }
}


