/*====================================================================
  ملف CSS النهائي والمكتمل
  - إضافة جميع التنسيقات المفقودة
  - حل مشكلة زر الخيارات في صفحة النتائج
  - تنظيم شامل لكل الأنماط
====================================================================*/

/*---------------------- 1. التنسيقات الأساسية والمتغيرات ----------------------*/

:root {
    --primary-color: #007bff;
    --secondary-color: #34495e;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-color: #333;
    --light-text: #ecf0f1;
    font-family: 'Cairo Play', Arial, sans-serif;
    --font-arabic: 'Cairo Play', Arial, sans-serif;
    --font-english: 'Roboto', 'Arial', sans-serif;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-error: #dc3545;
    writing-mode: horizontal-tb;
    direction: rtl;
    text-orientation: mixed;
}

body {
    font-family: var(--font-arabic);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f0f2f5;
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    transition: direction 0.3s ease, text-align 0.3s ease;
    -webkit-transition: direction 0.3s ease, text-align 0.3s ease;
    -moz-transition: direction 0.3s ease, text-align 0.3s ease;
    -ms-transition: direction 0.3s ease, text-align 0.3s ease;
    -o-transition: direction 0.3s ease, text-align 0.3s ease;
}


@font-face {
    font-family: 'Cairo Play';
    src: url('/static/CairoPlay-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body.ltr {
    direction: ltr;
    text-align: left;
    font-family: var(--font-english);
}

body.ltr .header .container {
    flex-direction: row-reverse;
}

body.ltr .logo {
    order: 1;
}

body.ltr .menu-toggle {
    order: 2;
    margin-right: 0;
    margin-left: 0.5rem;
}

#country-detect-toast {
    display: none;
    position: fixed;
    top: 80px; /* أسفل الهيدر بمقدار 80px، عدّل حسب ارتفاع الهيدر */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 8px 16px; /* تعديل بسيط للحشو */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
    color: #fff;
    background-color: green; /* اللون ثابت */
    white-space: nowrap; /* يجعل النص في سطر واحد */
    overflow: hidden;     /* يخفي أي تجاوز */
    text-overflow: ellipsis; /* يضيف "..." إذا تجاوز النص */
}




.sticky-ad-popup {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    text-align: center;
    background: linear-gradient(135deg, #ff7a18, #ff9500, #ffb347);
    color: #fff;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(255, 122, 24, 0.3);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    will-change: transform;
    opacity: 1;
     /* ليبقى ظاهراً */
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
}
/*---------------------- 2. تنسيقات العناصر العامة ----------------------*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 15px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: bold;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #1a2734;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-telegram {
    background: #0088cc;
    color: white;
}

.btn-telegram:hover {
    background: #006699;
    transform: translateY(-2px);
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

/*---------------------- 3. الهيدر والفوتر ----------------------*/

.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10000; /* أعلى من الإعلان العائم */
    min-height: 60px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a, .logo .text-logo {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links li {
    margin: 0 0.5rem;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 0.5rem;
}

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

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.theme-toggle:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle {
    color: #f3f4f6;
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(96, 165, 250, 0.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0.5rem;
    flex-shrink: 0;
}

.footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin: 0;
}

.footer .social-icons {
    margin-top: 15px;
}

.footer .social-icons a {
    color: var(--light-text);
    margin: 0 10px;
    font-size: 1.5rem;
    text-decoration: none;
}

/*---------------------- 4. تنسيقات الصفحة الرئيسية (index.html) ----------------------*/

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 150px 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.smart-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-type-indicator {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 45px;
    transition: all 0.3s ease;
    color: var(--light-text);
}

.search-type-indicator.phone, .search-type-indicator.name {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid rgba(34, 197, 94, 0.5);
    color: white;
}

.search-type-indicator.error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: white;
}

.country-flag {
    font-size: 24px;
    margin-left: 10px;
    vertical-align: middle;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 12px;
    /* إزالة overflow لتجنب قص القوائم المنسدلة القريبة */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

.search-box input {
    flex: 1;
    padding: 18px 20px;
    border: 2px solid transparent;
    font-size: 16px;
    outline: none;
    background: transparent;
    transition: border-color 0.3s ease;
    color: #111827;            /* نص داكن في الوضع الفاتح */
    caret-color: #111827;      /* لون مؤشر الكتابة */
}

/* لون العنصر النائب (placeholder) في الوضع الفاتح */
.search-box input::placeholder {
    color: #6b7280;
    opacity: 1;
}

.search-box input.valid {
    border-color: var(--color-success);
}

.search-box input.invalid {
    border-color: var(--color-error);
}

.search-box button {
    padding: 18px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
}

.search-box button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.search-suggestions {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 5px;
    overflow: hidden;
    padding: 5px;
}

.suggestion-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--text-color);
    -webkit-transition: background 0.2s ease;
    -moz-transition: background 0.2s ease;
    -ms-transition: background 0.2s ease;
    -o-transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: #f9fafb;
}

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

.name-search-container {
    margin-bottom: 15px;
}

/* تنسيقات القائمة المنسدلة المخصصة للدول */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    z-index: 30; /* ضمان الظهور فوق الصناديق القريبة */
}

.custom-select {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.custom-select:hover {
    border-color: var(--primary-color);
}

.custom-select.active {
    border-radius: 12px 12px 0 0;
    border-color: var(--primary-color);
}

.custom-select .selected-option {
    display: flex;
    align-items: center;
    padding: 3px 6px; /* أصغر */
    position: relative;
    justify-content: space-between;
}

.custom-select .selected-option .country-name {
    flex-grow: 1;
    font-size: 16px;
    color: var(--text-color);
}

.custom-select .selected-option .dropdown-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.custom-select.active .selected-option .dropdown-arrow {
    transform: rotate(180deg);
}


.custom-select .options-list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border: 1.5px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.13);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000; /* فوق بقية العناصر */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
    padding: 8px 0;
}

.custom-select.active .options-list {
    visibility: visible;
    opacity: 1;
}


/* تم حذف قاعدة .show نهائياً، الظهور يتم عبر .custom-select.active .options-list */

.options-list .option-item {
    padding: 6px 10px; /* أصغر */
    display: flex;
    align-items: center;
    gap: 8px; /* أصغر */
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    font-size: 0.9rem; /* أصغر */
    color: var(--secondary-color);
    border-radius: 6px;
    margin: 2px 6px;
    font-weight: 500;
    background: transparent;
    position: relative;
}

.options-list .option-item:hover {
    background: rgba(0, 123, 255, 0.09);
    color: var(--primary-color);
}

.options-list .option-item .flag-icon {
    font-size: 1.1em; /* أصغر */
    margin-left: 4px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.07));
}

.options-list .option-item .country-name {
    font-size: 0.9em; /* أصغر */
    font-weight: 600;
    color: inherit;
}

.search-examples {
    margin-top: 20px;
    text-align: center;
}

.search-examples p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-size: 14px;
}

.examples-list {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.example-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: bold;
}

.example-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 55, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* تنسيقات المكونات الأخرى في الصفحة الرئيسية */
.features {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

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

.feature-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: #555;
}

.testimonials {
    padding: 80px 0;
    text-align: center;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.testimonial-card {
    background-color: #3f5872;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    margin: auto;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial-card span {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.cta {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta .btn {
    background-color: white;
    color: var(--primary-color);
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/*---------------------- 5. تنسيقات صفحة النتائج (results.html) ----------------------*/

.main-content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.results-summary {
    text-align: center;
    margin-bottom: 30px;
}

.results-summary h1 {
    font-size: 2.5em;
    color: #444;
    margin-bottom: 10px;
}

.results-summary p {
    font-size: 1.2em;
    color: #777;
}

/* بطاقة ملخص النتيجة الرئيسية */
.status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.status-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.status-avatar {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.status-info {
    flex-grow: 1;
}

.status-info .common-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.status-info .phone-number {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.status-actions {
    display: flex;
    gap: 0.75rem;
}

.status-actions .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.status-card-footer {
    text-align: center;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.status-card-footer small {
    font-size: 0.85rem;
}








.no-results {
    text-align: center;
    padding: 50px;
    font-size: 1.5em;
    color: #888;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background-color: #0056b3;
}

.sidebar-ads {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-unit-sidebar {
    min-height: 250px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-section {
    margin: 20px 0;
    text-align: center;
}

.ad-unit-video-top,
.ad-unit-video-bottom {
    max-width: 728px;
    min-height: 90px;
    margin: 0 auto;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/*---------------------- 6. تنسيقات صفحة الاشتراك المميز ----------------------*/

.pricing-section {
    padding: 80px 0;
    text-align: center;
    background-color: #f0f2f5;
}

.pricing-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.pricing-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing-card.premium {
    transform: scale(1.05);
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 30px rgba(0,123,255,0.2);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.pricing-header .price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pricing-header .price small {
    font-size: 1rem;
    color: #888;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.pricing-features li {
    margin-bottom: 15px;
    color: #555;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

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

.subscribe-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}


/*---------------------- 7. تنسيقات صفحات من نحن وعن الشركة ----------------------*/

.inner-page-content {
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 30px;
}

.inner-page-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.inner-page-content p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
}

.section-about {
    margin-bottom: 40px;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #fafafa;
    border: 1px solid #eee;
}

.team-member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}



/* ------------------- تنسيقات صفحة طلب خدمة API ------------------- */
.api-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.api-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.api-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.api-features {
    padding: 4rem 0;
    background: #f8f9fa;
}

.api-features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.api-pricing {
    padding: 4rem 0;
    background: white;
}

.api-pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

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

.pricing-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

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

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.pricing-card li:last-child {
    border-bottom: none;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.api-request-form {
    padding: 4rem 0;
    background: #f8f9fa;
}

.api-request-form h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.request-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.submit-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.api-contact {
    padding: 4rem 0;
    background: var(--secondary-color);
    color: white;
}

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.contact-item i {
    font-size: 1.2rem;
}





/*---------------------- 8. تنسيقات النوافذ المنبثقة ----------------------*/

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close-modal:hover {
    background: #f0f0f0;
    color: #333;
}

.login-container {
    text-align: center;
}

.login-container .logo {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
}

.login-container h2 {
    margin-bottom: 0.5rem;
    color: #333;
}

.login-container p {
    margin-bottom: 2rem;
    color: #666;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.google-btn {
    background: #db4437;
    color: white;
}

.google-btn:hover {
    background: #c23321;
    transform: translateY(-2px);
}

.login-btn.btn-telegram {
    background: #0088cc;
    color: white;
}

.login-btn.btn-telegram:hover {
    background: #006699;
    transform: translateY(-2px);
}

.divider {
    margin: 1.5rem 0;
    position: relative;
    text-align: center;
    color: #666;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: white;
    padding: 0 1rem;
}

/* تنسيقات طلب الحذف */
.delete-request-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.delete-request-container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.submit-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #218838;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

/*---------------------- 8.5. تنسيقات الوضع المظلم الإضافية ----------------------*/

[data-theme="dark"] body {
    background-color: #111827;
    color: #f3f4f6;
}

[data-theme="dark"] .header {
    background-color: #1f2937;
    border-bottom: 1px solid #374151;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1e40af, #1f2937);
}

[data-theme="dark"] .search-box {
    background: #374151;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .search-box input {
    background: #374151;
    color: #f3f4f6;
    border-color: #4b5563;
}

[data-theme="dark"] .search-box input::placeholder {
    color: #9ca3af;
}

[data-theme="dark"] .search-type-indicator {
    background: rgba(55, 65, 81, 0.8);
    color: #e5e7eb;
    border-color: rgba(75, 85, 99, 0.5);
}

[data-theme="dark"] .search-type-indicator.phone, 
[data-theme="dark"] .search-type-indicator.name {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.6);
}

[data-theme="dark"] .search-type-indicator.error {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
}

[data-theme="dark"] .search-suggestions {
    background: #374151;
    border: 1px solid #4b5563;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .custom-select {
    background: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .custom-select:hover {
    border-color: #60a5fa;
}

[data-theme="dark"] .custom-select .selected-option {
    background: #374151;
    color: #f3f4f6;
}

[data-theme="dark"] .custom-select .options-list {
    background: #374151;
    border-color: #60a5fa;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .footer {
    background-color: #1f2937;
    color: #e5e7eb;
}

[data-theme="dark"] .features {
    background-color: #111827;
}

[data-theme="dark"] .feature-card {
    background-color: #1f2937;
    border: 1px solid #374151;
}

[data-theme="dark"] .testimonials {
    background-color: #0f172a;
}

[data-theme="dark"] .testimonial-card {
    background-color: #1e293b;
}

[data-theme="dark"] .modal-content {
    background: #1f2937;
    border: 1px solid #374151;
}

[data-theme="dark"] .login-container h2,
[data-theme="dark"] .login-container p {
    color: #f3f4f6;
}

[data-theme="dark"] .divider span {
    background: #1f2937;
    color: #9ca3af;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
}

[data-theme="dark"] .inner-page-content {
    background-color: #1f2937;
    color: #e5e7eb;
}

[data-theme="dark"] .inner-page-content h1 {
    color: #f3f4f6;
}

[data-theme="dark"] .team-member-card {
    background-color: #374151;
    border-color: #4b5563;
}

[data-theme="dark"] .pricing-card {
    background-color: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .pricing-card h3,
[data-theme="dark"] .pricing-card .price {
    color: #f3f4f6;
}

[data-theme="dark"] .api-features,
[data-theme="dark"] .api-request-form {
    background: #111827;
}

[data-theme="dark"] .request-form {
    background: #1f2937;
    border: 1px solid #374151;
}

/* إصلاح مشاكل الوضع المظلم الشاملة */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] * {
    border-color: #374151;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: #374151 !important;
    color: #f3f4f6 !important;
    border-color: #4b5563 !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #9ca3af !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25) !important;
}

[data-theme="dark"] button {
    background-color: #374151 !important;
    color: #f3f4f6 !important;
    border-color: #4b5563 !important;
}

[data-theme="dark"] button:hover {
    background-color: #4b5563 !important;
}

[data-theme="dark"] a {
    color: #60a5fa !important;
}

[data-theme="dark"] a:hover {
    color: #93c5fd !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f3f4f6 !important;
}

[data-theme="dark"] p {
    color: #e5e7eb !important;
}

[data-theme="dark"] .text-gray-800 {
    color: #f3f4f6 !important;
}

[data-theme="dark"] .text-gray-600 {
    color: #d1d5db !important;
}

[data-theme="dark"] .text-gray-500 {
    color: #9ca3af !important;
}

[data-theme="dark"] .bg-white {
    background-color: #1f2937 !important;
}

[data-theme="dark"] .bg-gray-100 {
    background-color: #374151 !important;
}

[data-theme="dark"] .bg-gray-200 {
    background-color: #4b5563 !important;
}

[data-theme="dark"] .border-gray-200 {
    border-color: #374151 !important;
}

[data-theme="dark"] .border-gray-300 {
    border-color: #4b5563 !important;
}

/*---------------------- 9. تخطيط متجاوب (Media Queries) ----------------------*/

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }

    .header .container {
        flex-direction: row;
        align-items: center;
        position: relative;
        padding: 0 1rem;
        min-height: 50px;
    }

    .logo {
        flex-grow: 1;
        max-width: calc(100% - 60px);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 90%;
        position: fixed;
        top: 10%;
        left: -100%;
        height: 80vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 999;
        padding: 1.5rem;
        border-radius: 12px;
        margin: 0 auto;
        box-sizing: border-box;
        transition: left 0.3s ease;
        overflow-y: auto;
        max-height: 80vh;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links::-webkit-scrollbar {
        width: 6px;
    }
    
    .nav-links::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .nav-links::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
    
    .nav-links::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .nav-links.active {
        display: flex;
        left: 5%;
    }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
        text-align: right;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .nav-links li {
        margin: 0.5rem 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        text-align: center;
        color: #333;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        text-decoration: none;
    }
    
    .nav-links a:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #1d4ed8;
        transform: scale(1.05);
        border-color: rgba(59, 130, 246, 0.3);
    }
    
    .theme-toggle {
        font-size: 1.2rem;
        padding: 0.5rem;
        margin: 0.25rem 0;
        color: #333;
        background: none;
        border: none;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .theme-toggle:hover {
        background: rgba(59, 130, 246, 0.1);
        transform: scale(1.05);
    }
    
    /* إصلاح مشكلة القائمة المنسدلة في الوضع المظلم */
    [data-theme="dark"] .nav-links {
        background: rgba(31, 41, 55, 0.95);
        backdrop-filter: blur(15px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    [data-theme="dark"] .nav-links a {
        color: #f3f4f6;
    }
    
    [data-theme="dark"] .nav-links a:hover {
        background: rgba(96, 165, 250, 0.2);
        color: #93c5fd;
    }
    
    [data-theme="dark"] .theme-toggle {
        color: #f3f4f6;
    }
    
    [data-theme="dark"] .theme-toggle:hover {
        background: rgba(96, 165, 250, 0.2);
    }

    .menu-toggle {
        display: block;
        order: 2;
        margin-right: 0.5rem;
        padding: 0.5rem;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    .menu-toggle:hover {
        background-color: rgba(0, 123, 255, 0.1);
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .hero p {
        font-size: clamp(1rem, 4vw, 1.2rem);
        padding: 0 1rem;
    }

    .main-content-wrapper {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar-ads {
        width: 100%;
        order: -1;
    }

    .ad-unit-sidebar {
        min-height: 100px;
    }

    .status-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

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

    .status-info .common-name {
        font-size: 1.5rem;
    }

    .status-actions {
        justify-content: center;
    }

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

    .stat-item {
        padding: 0.75rem;
    }

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

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .delete-request-container {
        padding: 15px;
    }

    .form-group input, .form-group textarea {
        font-size: 13px;
    }

    .submit-btn, .cancel-btn {
        padding: 8px 15px;
        font-size: 13px;
    }


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

    .pricing-card.premium {
        transform: scale(1);
    }

    .pricing-card:hover {
        transform: translateY(-5px);
    }

    .team-members {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 0.75rem;
    }

    .logo a, .logo .text-logo {
        font-size: clamp(0.9rem, 6vw, 1.2rem);
    }

    .menu-toggle {
        font-size: 1.25rem;
        padding: 0.5rem;
        margin-right: 0.25rem;
    }

    .nav-links {
        padding: 1.25rem;
        left: 0.5rem;
        right: 0.5rem;
        width: calc(100% - 1rem);
    }

    .nav-links li {
        padding: 0.875rem 0.75rem;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }

    .status-card {
        padding: 1rem;
    }

    .status-avatar {
        font-size: 3rem;
    }

    .status-info .common-name {
        font-size: 1.3rem;
    }

    .status-info .phone-number {
        font-size: 1rem;
    }

    .status-actions .btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .status-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .modal-content {
        margin: 10% auto;
    }
}

/* تنسيقات القائمة المنسدلة المخصصة للدول */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    z-index: 30;
}

.custom-select {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.custom-select:hover {
    border-color: var(--primary-color);
}

.custom-select.active {
    border-radius: 12px 12px 0 0;
    border-color: var(--primary-color);
}

.custom-select .selected-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    position: relative;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px 12px 0 0;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--secondary-color);
    min-height: 10px;
}

.custom-select .selected-option .country-name {
    flex-grow: 1;
    font-size: 16px;
    color: var(--text-color);
}

.custom-select .selected-option .dropdown-arrow {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-right: 8px;
    transition: transform 0.3s;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.07));
}

.custom-select.active .selected-option .dropdown-arrow {
    transform: rotate(180deg) scale(1.15);
}


.custom-select .options-list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
}

.custom-select.active .options-list {
    visibility: visible;
    opacity: 1;
}

/* هذا الكلاس الجديد هو الذي سيقوم بإظهار القائمة عند النقر */
/* قم بتغييره من .show إلى .active ليتوافق مع كود الجافاسكربت الخاص بك */

/* تم حذف القاعدة المتعارضة نهائياً */

.options-list .option-item {
    padding: 5px 5px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 8px;
    position: relative;
    background: transparent;
}

.options-list .option-item:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .options-list .option-item:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(59, 130, 246, 0.1));
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.25);
}

.options-list .option-item .flag-icon {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

[data-theme="dark"] .options-list .option-item .flag-icon {
    background: rgba(96, 165, 250, 0.2);
}

.options-list .option-item:hover .flag-icon {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

[data-theme="dark"] .options-list .option-item:hover .flag-icon {
    background: rgba(96, 165, 250, 0.3);
}

.options-list .option-item .country-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    flex-grow: 1;
    transition: color 0.2s ease;
}

[data-theme="dark"] .options-list .option-item .country-name {
    color: #f3f4f6;
}

.options-list .option-item:hover .country-name {
    color: #1e40af;
}

[data-theme="dark"] .options-list .option-item:hover .country-name {
    color: #93c5fd;
}

.options-list .option-item::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
}

.options-list .option-item:hover::after {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

[data-theme="dark"] .options-list .option-item:hover::after {
    background: #60a5fa;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}


.search-options-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-options-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.search-options-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.search-options-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
    min-width: 150px;
    max-width: 90vw;
    overflow-wrap: break-word;
    box-sizing: border-box;
    margin-top: 5px;
}

.search-options-menu a, .search-options-menu button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: right;
    direction: rtl;
    color: #333;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.search-options-menu a:hover, .search-options-menu button:hover {
    background-color: #f8f9fa;
}

.search-options-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.search-result-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

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

/* Suggestions cards for country/company matching */
.suggestion-item.country-suggestion, .suggestion-item.company-suggestion {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.suggestion-item.country-suggestion:hover, 
.suggestion-item.company-suggestion:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .suggestion-item.country-suggestion,
[data-theme="dark"] .suggestion-item.company-suggestion {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .suggestion-item.country-suggestion:hover,
[data-theme="dark"] .suggestion-item.company-suggestion:hover {
    background: #374151;
    border-color: #60a5fa;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.25);
}

.suggestion-item .cs-flag {
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

[data-theme="dark"] .suggestion-item .cs-flag {
    background: rgba(96, 165, 250, 0.2);
}

.suggestion-item .cs-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-item .cs-title {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    line-height: 1.4;
}

[data-theme="dark"] .suggestion-item .cs-title { 
    color: #f3f4f6; 
}

.suggestion-item .cs-meta {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

[data-theme="dark"] .suggestion-item .cs-meta { 
    color: #9ca3af; 
}
