/* ========== متغيرات الألوان الأساسية ========== */
:root {
    --primary-dark: #232427;
    --secondary-text: #4a4a4f;
    --ui-grey: #9a9a97;
    --light-border: #c9c8c4;
    --background: #F7F6F2;
    --white: #FFFFFF;
    --accent-red: #c0392b;
    --accent-red-light: #e74c3c;
    --success-green: #27ae60;
    --facebook: #3b5998;
    --twitter: #1da1f2;
    --whatsapp: #25d366;
    --telegram: #0088cc;
    --messenger: #0084ff;
    --shadow-light: rgba(35, 36, 39, 0.08);
    --shadow-medium: rgba(35, 36, 39, 0.12);
    --shadow-heavy: rgba(35, 36, 39, 0.18);
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-circle: 50%;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --copy-green: #2ecc71;
    --copy-green-dark: #27ae60;
    --selected-blue: #e8f0fe;
    --footer-dark: #2c2c30;
    --footer-darker: #1e1e22;
}

/* ========== الأنماط العامة ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--secondary-text);
    margin: 0;
    padding: 80px 0 30px 0;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ========== الهيدر الثابت (Fixed Header) ========== */
.main-header {
    background: linear-gradient(135deg, var(--primary-dark), #2c2c30);
    color: var(--white);
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    box-shadow: 0 4px 20px var(--shadow-heavy);
    border-bottom: 3px solid var(--accent-red);
    width: 100%;
    box-sizing: border-box;
}

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

.header-logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--white);
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ========== قائمة اللغة في الهيدر ========== */
.language-dropdown {
    position: relative;
}

.language-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 10px 18px;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent-red);
}

.language-btn i {
    font-size: 16px;
}

.language-btn i.fa-globe {
    color: var(--accent-red-light);
}

.language-btn i.fa-chevron-down {
    font-size: 12px;
}

.language-btn.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px var(--shadow-heavy);
    min-width: 180px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid var(--light-border);
}

.language-menu.show {
    display: block;
}

.language-item {
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--light-border);
}

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

.language-item:hover {
    background: rgba(192, 57, 43, 0.05);
}

.language-item.active {
    background: rgba(192, 57, 43, 0.1);
    border-right: 4px solid var(--accent-red);
}

.lang-flag {
    font-size: 20px;
    min-width: 30px;
}

.lang-name {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 15px;
}

/* زر القائمة الجانبية */
.header-menu-toggle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 24px;
}

.header-menu-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.5);
}

/* ========== القائمة الجانبية ========== */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px var(--shadow-heavy);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid var(--light-border);
    transition: right var(--transition-normal);
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: var(--background);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #a53125;
}

.sidebar-menu.open {
    right: 0;
}

.sidebar-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--primary-dark), #3a3b40);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 3px solid var(--accent-red);
}

.sidebar-header i {
    font-size: 28px;
    color: var(--accent-red-light);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    flex-grow: 1;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
}

.sidebar-close:hover {
    background: var(--accent-red);
    transform: rotate(90deg);
}

.sidebar-content {
    padding: 20px;
    flex: 1;
    padding-bottom: 40px;
}

.sidebar-content::after {
    content: '';
    display: block;
    height: 30px;
    width: 100%;
}

.sidebar-nav {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.sidebar-item {
    margin-bottom: 5px;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--border-radius-md);
    color: var(--secondary-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.sidebar-item a i {
    width: 24px;
    color: var(--accent-red);
    font-size: 18px;
}

.sidebar-item:hover a {
    background: rgba(192, 57, 43, 0.05);
    transform: translateX(-5px);
}

.sidebar-item:hover a i {
    transform: scale(1.1);
}

.sidebar-item.active a {
    background: rgba(192, 57, 43, 0.1);
    color: var(--accent-red);
    border-right: 4px solid var(--accent-red);
}

.sidebar-item.active a i {
    color: var(--accent-red);
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--light-border), transparent);
    margin: 20px 0;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h4 {
    color: var(--primary-dark);
    font-size: 16px;
    margin-bottom: 12px;
    padding-right: 10px;
    font-weight: 700;
}

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

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    display: block;
    padding: 8px 15px;
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.sidebar-links a:hover {
    background: rgba(192, 57, 43, 0.05);
    color: var(--accent-red);
    padding-right: 20px;
}

.sidebar-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-border);
    margin-bottom: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-circle);
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    text-decoration: none;
    font-size: 18px;
    border: 1px solid var(--light-border);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.3);
}

/* ========== طبقة التعتيم ========== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(35, 36, 39, 0.7);
    backdrop-filter: blur(3px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== عناوين الصفحة الرئيسية ===== */
.page-headers {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.main-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.main-heading i {
    color: var(--accent-red);
    font-size: 2rem;
}

.sub-heading {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 0;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.sub-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-red), #d4af37, var(--accent-red), transparent);
    border-radius: 2px;
}

/* ===== الفقرة الإرشادية ===== */
.usage-guide {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #f8f9fa;
    border-right: 4px solid var(--accent-red);
    padding: 16px 20px;
    margin: 15px 0 25px 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.guide-icon {
    color: var(--accent-red);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.guide-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #2c3e50;
    flex: 1;
}

.guide-text strong {
    color: var(--accent-red);
    font-weight: 700;
}

.highlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(192, 57, 43, 0.1);
    color: var(--accent-red);
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 600;
    margin: 0 3px;
    white-space: nowrap;
}

.highlight-btn i {
    font-size: 0.9rem;
}

/* ========== قسم الفيديو ========== */
.video-section {
    margin: 30px auto 40px auto;
    max-width: 600px;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow-medium);
    border: 3px solid var(--white);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    margin-top: 8px;
    color: var(--secondary-text);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.video-caption i {
    color: var(--accent-red);
    font-size: 18px;
}

/* ========== قسم الخريطة ========== */
.map-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow-light);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--light-border);
}

.section-title {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-border);
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent-red);
    font-size: 26px;
}

/* البحث */
.place-search-container {
    position: relative;
    margin-bottom: 25px;
}

.search-input {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-md);
    font-size: 18px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: var(--background);
    color: var(--primary-dark);
    font-weight: 500;
}

.search-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
    outline: none;
    background-color: var(--white);
}

.search-input::placeholder {
    color: #777;
    opacity: 1;
    font-weight: 500;
    font-size: 17px;
}

.suggestions-container {
    position: absolute;
    background: var(--white);
    border: 2px solid var(--light-border);
    border-radius: var(--border-radius-md);
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    box-shadow: 0 8px 20px var(--shadow-heavy);
    display: none;
}

.suggestions-container.show {
    display: block;
}

.suggestion-item {
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--light-border);
}

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

.suggestion-item:hover {
    background: rgba(192, 57, 43, 0.05);
}

.suggestion-item i {
    color: var(--accent-red);
    font-size: 18px;
    min-width: 20px;
}

.suggestion-details {
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-dark);
}

.suggestion-location {
    font-size: 14px;
    color: var(--secondary-text);
    margin-top: 3px;
    font-weight: 500;
}

/* الخريطة */
.map-container {
    position: relative;
    height: 380px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-medium);
    margin-bottom: 20px;
    border: 2px solid var(--white);
}

#map {
    height: 100%;
    width: 100%;
    z-index: 0;
}

/* بوصلة */
.map-compass-icon {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-dark), #3a3b40);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-heavy);
    z-index: 1000;
    border: 2px solid var(--white);
    transition: all var(--transition-fast);
}

.map-compass-icon i {
    color: var(--white);
    font-size: 22px;
}

.map-compass-icon:hover {
    transform: scale(1.1);
}

.map-compass-icon::after {
    content: "اتجاه القبلة";
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.map-compass-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 60px;
}

/* زر المفضلة */
.favorite-icon {
    position: absolute;
    bottom: 20px;
    left: 80px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--white), #f5f5f5);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-heavy);
    z-index: 1000;
    border: 2px solid var(--white);
    color: #ff4444;
    transition: all var(--transition-fast);
}

.favorite-icon i {
    font-size: 22px;
}

.favorite-icon:hover {
    transform: scale(1.1);
    background: #fff0f0;
}

.favorite-icon.active i {
    font-weight: 900;
}

.favorite-icon::after {
    content: "المفضلة";
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.favorite-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 60px;
}

/* زر إدارة الأماكن (إضافة/تعديل) */
.add-place-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-heavy);
    z-index: 1000;
    border: 2px solid var(--white);
    transition: all var(--transition-fast);
}

.add-place-icon i {
    color: var(--white);
    font-size: 22px;
}

.add-place-icon:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #a53125, #8a2a1f);
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.5);
}

.add-place-icon::after {
    content: "إضافة أو تعديل مكان";
    position: absolute;
    bottom: 55px;
    right: 50%;
    transform: translateX(50%);
    background: var(--primary-dark);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.add-place-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 60px;
}

/* تحكمات الخريطة */
.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

/* زر تحديد الموقع مع نبض */
.locate-button {
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-red 2s infinite;
    transition: all var(--transition-fast);
}

.locate-button:hover {
    background: linear-gradient(135deg, #a53125, #8a2a1f);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.5);
    animation: none;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(192, 57, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(192, 57, 43, 0);
    }
}

.locate-button i {
    font-size: 18px;
}

/* حاوية زر نطاق الصلاة */
.toggle-container {
    background: var(--background);
    padding: 12px 20px;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 2px 8px var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--light-border);
}

.toggle-label {
    font-weight: 600;
    font-size: 15px;
    color: var(--primary-dark);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-border);
    border-radius: 34px;
    transition: var(--transition-fast);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 4px var(--shadow-light);
    transition: var(--transition-fast);
}

input:checked + .toggle-slider {
    background-color: var(--accent-red);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* أزرار المشاركة - الشريط الرئيسي */
.share-controls {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-circle);
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow-medium);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid var(--white);
    transition: all var(--transition-fast);
}

.share-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    font-weight: 600;
    z-index: 100;
    transition: all var(--transition-fast);
}

.share-btn:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
}

.share-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px var(--shadow-heavy);
}

.share-btn.copy {
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    color: var(--white);
}

.share-btn.messenger {
    background: linear-gradient(135deg, #0084ff, #0066cc);
    color: var(--white);
}

.share-btn.messenger:hover {
    background: linear-gradient(135deg, #0066cc, #004c99);
    box-shadow: 0 8px 20px rgba(0, 132, 255, 0.4);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128C7E);
}

.share-btn.sms {
    background: linear-gradient(135deg, #34B7F1, #128C7E);
    color: var(--white);
}

.share-btn.email {
    background: linear-gradient(135deg, #EA4335, #c5221f);
    color: var(--white);
}

.share-btn.more-btn {
    background: linear-gradient(135deg, var(--primary-dark), #3a3b40);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.share-btn.more-btn i {
    font-size: 18px;
}

.share-btn.more-btn .more-text {
    font-size: 10px;
    font-weight: 600;
}

.share-btn.more-btn:hover {
    background: linear-gradient(135deg, #3a3b40, #232427);
    transform: translateY(-5px) scale(1.05);
}

/* ===== منبثق وسائل التواصل الإضافية ===== */
.more-share-popup {
    max-width: 500px;
    width: 90%;
}

.more-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    padding: 15px 0;
}

.more-share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    background: var(--background);
    color: var(--primary-dark);
    border: 1px solid var(--light-border);
}

.more-share-item i {
    font-size: 24px;
}

.more-share-item span {
    font-size: 12px;
}

.more-share-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.more-share-item.facebook:hover {
    background: linear-gradient(135deg, #3b5998, #2d4373);
    color: white;
    border-color: transparent;
}

.more-share-item.twitter:hover {
    background: linear-gradient(135deg, #1da1f2, #0c85d0);
    color: white;
    border-color: transparent;
}

.more-share-item.telegram:hover {
    background: linear-gradient(135deg, #0088cc, #006699);
    color: white;
    border-color: transparent;
}

.more-share-item.google-maps:hover {
    background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
    background-size: 300% 300%;
    color: white;
    border-color: transparent;
    animation: google-gradient 2s ease infinite;
}

@keyframes google-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.more-share-item.instagram:hover {
    background: linear-gradient(135deg, #f09433, #d62976, #962fbf);
    color: white;
    border-color: transparent;
}

.more-share-item.tiktok:hover {
    background: #010101;
    color: white;
    border-color: #69C9D0;
}

.more-share-item.snapchat:hover {
    background: #FFFC00;
    color: #000;
    border-color: #F5E623;
}

.more-share-item.linkedin:hover {
    background: #0077B5;
    color: white;
    border-color: transparent;
}

.more-share-item.pinterest:hover {
    background: #BD081C;
    color: white;
    border-color: transparent;
}

.more-share-item.reddit:hover {
    background: #FF4500;
    color: white;
    border-color: transparent;
}

.more-share-item.viber:hover {
    background: #7360F2;
    color: white;
    border-color: transparent;
}

.more-share-item.line:hover {
    background: #00B900;
    color: white;
    border-color: transparent;
}

.more-share-item.discord:hover {
    background: #5865F2;
    color: white;
    border-color: transparent;
}

.more-share-item.skype:hover {
    background: #00AFF0;
    color: white;
    border-color: transparent;
}

.more-share-item.wechat:hover {
    background: #09B83E;
    color: white;
    border-color: transparent;
}

.more-share-item.threads:hover {
    background: #000000;
    color: white;
    border-color: #333;
}

.more-share-item.tumblr:hover {
    background: #35465C;
    color: white;
    border-color: transparent;
}

.more-share-item.flickr:hover {
    background: linear-gradient(135deg, #FF0084, #0063DC);
    color: white;
    border-color: transparent;
}

.more-share-item.yelp:hover {
    background: #D32323;
    color: white;
    border-color: transparent;
}

.share-popup-desc {
    text-align: center;
    margin-bottom: 10px;
    color: var(--secondary-text);
    font-weight: 500;
}

/* ===== رسائل منفصلة خارج الخريطة ===== */
.messages-container {
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-message-nitaq {
    font-weight: 500;
    color: var(--secondary-text);
    text-align: center;
    background-color: var(--white);
    padding: 18px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px var(--shadow-light);
    font-size: 16px;
    border: 1px solid var(--light-border);
    position: relative;
    text-align: center;
    line-height: 1.7;
}

.info-message-nitaq i.fa-info-circle {
    position: absolute;
    right: 15px;
    top: 20px;
    color: var(--accent-red);
    font-size: 18px;
}

.info-message-nitaq .message-content {
    padding-right: 30px;
}

.info-message-nitaq p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
}

.message-image {
    margin-top: 15px;
    text-align: center;
}

.info-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px var(--shadow-medium);
    border: 2px solid var(--white);
}

.info-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px var(--shadow-heavy);
}

/* ========== صناديق البيانات ========== */
.data-box {
    font-weight: 500;
    color: var(--secondary-text);
    text-align: center;
    background-color: var(--white);
    padding: 18px;
    border-radius: var(--border-radius-md);
    max-width: 800px;
    margin: 15px auto;
    box-shadow: 0 4px 12px var(--shadow-light);
    font-size: 16px;
    border: 1px solid var(--light-border);
}

/* رسالة الدولة غير المدرجة */
.country-status {
    position: relative;
}

.country-unavailable-message {
    background: linear-gradient(135deg, #fff5f5, #ffeaea);
    border: 2px solid var(--accent-red);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    text-align: center;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.15);
    position: relative;
}

.country-unavailable-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.country-unavailable-title {
    color: var(--accent-red);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.country-unavailable-text {
    color: var(--secondary-text);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 500;
}

.contact-email-link {
    display: inline-block;
    color: var(--accent-red);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-red);
    margin: 5px 0 15px;
    padding-bottom: 2px;
}

.contact-email-link:hover {
    color: #a53125;
    border-bottom-color: #a53125;
}

.country-unavailable-button {
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.country-unavailable-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.3);
}

/* ========== قسم أوقات الصلاة ========== */
.prayer-times-section {
    font-family: 'Cairo', sans-serif;
    background: var(--white);
    color: var(--secondary-text);
    padding: 30px;
    direction: rtl;
    text-align: center;
    display: none;
    max-width: 1000px;
    margin: 30px auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px var(--shadow-light);
    border: 1px solid var(--light-border);
}

.alert-bar {
    padding: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 25px;
    border-radius: var(--border-radius-md);
    font-size: 18px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

/* بطاقات الصلاة */
.prayer-card {
    background: var(--background);
    margin: 25px auto;
    padding: 30px 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 20px var(--shadow-light);
    max-width: 650px;
    border: 1px solid var(--light-border);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.prayer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--primary-dark));
}

.prayer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-heavy);
}

.prayer-card h5 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 20px 0;
    padding: 0 0 15px 0;
    border-bottom: 2px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-direction: row;
}

.prayer-card h5 i {
    font-size: 30px;
    color: var(--accent-red);
    margin-left: 5px;
    margin-right: 0;
    transition: all var(--transition-fast);
}

.prayer-card:hover h5 i {
    transform: rotate(15deg);
}

/* ===== جداول الصلاة ===== */
.prayer-table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--border-radius-md);
    background: var(--white);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.prayer-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Cairo', sans-serif;
    background: var(--white);
    font-size: 20px;
}

.prayer-table th,
.prayer-table td {
    border: none;
    border-bottom: 2px solid var(--light-border);
    padding: 18px 15px;
    text-align: center;
    vertical-align: middle;
}

.prayer-table tr:last-child td {
    border-bottom: none;
}

.prayer-table th {
    background: linear-gradient(135deg, var(--primary-dark), #3a3b40);
    color: var(--white);
    font-size: 26px;
    font-weight: 700;
    border-bottom: 3px solid var(--accent-red);
}

.prayer-table td {
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary-text);
    background-color: var(--white);
}

.prayer-table td:first-child {
    font-weight: 700;
    color: var(--primary-dark);
    text-align: right;
    padding-right: 25px;
}

.prayer-table td:last-child {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--accent-red);
    text-align: left;
    padding-left: 25px;
    direction: ltr;
}

/* التاريخ الهجري */
.prayer-table tr:nth-child(2) td {
    background-color: rgba(0, 0, 0, 0.02) !important;
    color: var(--primary-dark) !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    text-align: center !important;
    border-bottom: 2px solid var(--light-border) !important;
}

/* صف المعلومات */
.prayer-table tr:nth-child(3) td {
    background-color: rgba(0, 0, 0, 0.02);
    font-weight: 600;
    font-size: 20px;
    color: var(--primary-dark);
    text-align: center;
}

/* إلغاء تنسيقات الهجري القديمة */
.hijri-date,
.hijri-cell,
.hijri-cell-tomorrow {
    all: unset !important;
    display: table-cell !important;
    background-color: rgba(0, 0, 0, 0.02) !important;
    color: var(--primary-dark) !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    text-align: center !important;
    padding: 18px 15px !important;
    border-bottom: 2px solid var(--light-border) !important;
}

/* الصلاة القادمة */
.prayer-table tr.next-prayer td {
    background-color: var(--selected-blue) !important;
    border-right: 4px solid var(--accent-red) !important;
    border-left: 4px solid var(--accent-red) !important;
    position: relative;
    z-index: 1;
}

.prayer-table tr.next-prayer td:first-child {
    color: var(--accent-red) !important;
    font-weight: 800;
}

.prayer-table tr.next-prayer td:last-child {
    color: var(--accent-red) !important;
    font-weight: 800;
    font-size: 22px;
}

.prayer-table tr.next-prayer:hover td {
    background-color: #d4e3fd !important;
}

/* الأيقونات */
.prayer-table td i {
    color: var(--accent-red);
    font-size: 22px;
    margin-left: 12px;
    vertical-align: middle;
}

/* تمرير الصفوف العادية */
.prayer-table tr:not(.next-prayer):hover td {
    background-color: rgba(192, 57, 43, 0.05);
}

/* صف طريقة الحساب */
.prayer-table tr:last-child td {
    background-color: var(--background);
    font-size: 18px;
    color: var(--secondary-text);
    text-align: center !important;
    font-weight: 600;
}

.prayer-table tr:last-child td:first-child,
.prayer-table tr:last-child td:last-child {
    text-align: center !important;
}

.prayer-table tr:last-child td strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* الروابط */
.prayer-table a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.prayer-table a:hover {
    color: #a53125;
    text-decoration: underline;
}

/* أزرار الإجراءات */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 5px;
}

.action-btn {
    border: none;
    border-radius: var(--border-radius-md);
    padding: 12px 22px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px var(--shadow-light);
    min-width: 130px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-heavy);
}

.action-btn.copy-btn {
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.3);
}

.action-btn.copy-btn:hover {
    background: linear-gradient(135deg, #a53125, #8a2a1f);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.4);
}

.action-btn.image-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.action-btn.image-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.action-btn.pdf-btn {
    background: linear-gradient(135deg, var(--primary-dark), #3a3b40);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(35, 36, 39, 0.3);
}

.action-btn.pdf-btn:hover {
    background: linear-gradient(135deg, #3a3b40, #232427);
    box-shadow: 0 8px 20px rgba(35, 36, 39, 0.4);
}

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

/* قسم نسخ مواقيت الشهر */
.monthly-section {
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(135deg, var(--background), #f0efeb);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--accent-red);
    position: relative;
}

.monthly-section::before {
    content: '📋';
    position: absolute;
    top: -18px;
    right: 30px;
    background: var(--white);
    padding: 5px 20px;
    border-radius: var(--border-radius-xl);
    font-size: 20px;
    border: 2px solid var(--accent-red);
    box-shadow: 0 4px 10px var(--shadow-light);
}

.monthly-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.monthly-header h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.monthly-header i {
    color: var(--accent-red);
    font-size: 28px;
}

.language-wrapper {
    position: relative;
    margin-bottom: 20px;
    max-width: 300px;
    margin-right: auto;
    margin-left: auto;
}

.language-select {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    border: 2px solid var(--light-border);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 16px;
}

.language-select:focus {
    border-color: var(--accent-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.monthly-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.3);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
}

.monthly-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(192, 57, 43, 0.4);
    background: linear-gradient(135deg, #a53125, #8a2a1f);
}

.monthly-btn i {
    font-size: 20px;
}

.monthly-note {
    font-size: 15px;
    color: var(--secondary-text);
    text-align: center;
    margin: 0;
    font-weight: 500;
}

/* ========== طرق الحساب ========== */
.methods-container {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--background);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px var(--shadow-light);
    border-right: 4px solid var(--accent-red);
}

.methods-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.methods-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.methods-icon i {
    color: var(--accent-red);
    font-size: 24px;
}

.methods-icon span {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 16px;
}

.custom-dropdown-container {
    position: relative;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    flex: 1;
    min-width: 300px;
}

.custom-dropdown-selected {
    width: 100%;
    padding: 14px 18px;
    background: var(--white);
    border: 2px solid var(--light-border);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all var(--transition-fast);
}

.custom-dropdown-selected:hover {
    border-color: var(--accent-red);
    box-shadow: 0 2px 10px rgba(192, 57, 43, 0.15);
}

.dropdown-arrow {
    color: var(--accent-red);
    font-size: 14px;
    transition: transform var(--transition-fast);
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.custom-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--light-border);
    border-top: none;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 20px var(--shadow-heavy);
}

.custom-dropdown-options.show {
    display: block;
}

.custom-dropdown-item {
    padding: 15px 18px;
    cursor: pointer;
    border-bottom: 1px solid var(--light-border);
    transition: background var(--transition-fast);
}

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

.custom-dropdown-item:hover {
    background: rgba(192, 57, 43, 0.05);
}

.custom-dropdown-item.selected {
    background: rgba(192, 57, 43, 0.08);
    border-right: 4px solid var(--accent-red);
}

.item-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.item-desc {
    font-size: 13px;
    color: var(--secondary-text);
    padding-right: 10px;
    font-weight: 500;
}

.official-badge {
    display: inline-block;
    background: var(--accent-red);
    color: var(--white);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

.method-description {
    margin-top: 15px;
    font-size: 14px;
    color: var(--secondary-text);
    background: var(--white);
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    box-shadow: 0 2px 8px var(--shadow-light);
    border-right: 4px solid var(--accent-red);
}

.method-description i {
    color: var(--accent-red);
    margin-left: 8px;
}

.method-note {
    margin: 10px 0 5px;
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
    background: transparent;
    padding: 5px;
}

/* ========== التوقيت الصيفي ========== */
.dst-container {
    max-width: 800px;
    margin: 15px auto;
    position: relative;
}

.dst-message {
    font-weight: 600;
    text-align: center;
    color: var(--primary-dark);
    background-color: var(--white);
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: 2px solid var(--light-border);
    transition: all var(--transition-fast);
}

.dst-message:hover {
    border-color: var(--accent-red);
    background-color: var(--background);
}

.dst-arrow {
    color: var(--accent-red);
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.dst-arrow.open {
    transform: rotate(180deg);
}

.dst-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--light-border);
    border-top: none;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 20px var(--shadow-heavy);
    margin-top: 2px;
}

.dst-dropdown.show {
    display: block;
}

.dst-dropdown-item {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background var(--transition-fast);
}

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

.dst-dropdown-item:hover {
    background: rgba(192, 57, 43, 0.05);
}

.dst-dropdown-item.selected {
    background: rgba(192, 57, 43, 0.08);
    border-right: 4px solid var(--accent-red);
}

.dst-icon {
    font-size: 18px;
    min-width: 30px;
}

.dst-info {
    flex: 1;
}

.dst-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-dark);
    margin-bottom: 3px;
}

.dst-desc {
    font-size: 12px;
    color: var(--secondary-text);
    font-weight: 500;
}

.dst-badge {
    display: inline-block;
    background: var(--accent-red);
    color: var(--white);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* التوقيت الرسمي */
.official-time-message {
    text-align: center;
    margin: 15px auto;
    padding: 12px 20px;
    background-color: var(--background);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    color: var(--primary-dark);
    border-right: 4px solid var(--accent-red);
    box-shadow: 0 4px 12px var(--shadow-light);
    max-width: 800px;
}

.official-time-message i {
    margin-left: 8px;
    color: var(--accent-red);
}

/* ========== العد التنازلي ========== */
.countdown-box {
    margin: 20px auto;
    max-width: 650px;
    background: linear-gradient(135deg, var(--background), #f0efeb);
    padding: 18px 25px;
    border-radius: var(--border-radius-xl);
    font-size: 16px;
    box-shadow: 0 8px 20px var(--shadow-light);
    position: relative;
    border: 1px solid var(--light-border);
}

#nextPrayerCountdown {
    font-size: 20px;
    color: var(--accent-red);
    font-weight: 700;
}

.update-flash {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    color: var(--white);
    padding: 6px 15px;
    border-radius: var(--border-radius-xl);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
    z-index: 10;
    white-space: nowrap;
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); visibility: hidden; }
}

/* ========== رسالة نجاح النسخ ========== */
.copy-success-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    color: var(--white);
    padding: 20px 40px;
    border-radius: 60px;
    box-shadow: 0 20px 40px rgba(192, 57, 43, 0.3);
    z-index: 9999;
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    direction: rtl;
    border: 2px solid var(--white);
}

.copy-success-center i {
    font-size: 30px;
    animation: rotateCheck 0.5s ease-in-out;
}

@keyframes popIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes rotateCheck {
    0% { transform: rotate(-180deg) scale(0.5); opacity: 0; }
    100% { transform: rotate(0) scale(1); opacity: 1; }
}

/* ========== شاشة التحميل ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 246, 242, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    display: none;
    transition: all 0.3s ease;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 6px solid var(--light-border);
    border-top: 6px solid var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 10px 30px var(--shadow-light);
    margin-bottom: 20px;
}

.loading-text {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--white);
    padding: 8px 20px;
    border-radius: 40px;
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 1px solid var(--light-border);
    animation: pulse-text 1.5s ease infinite;
}

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

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

/* ========== منبثق اختيار نوع الطلب ========== */
.action-choice-popup {
    max-width: 400px;
}

.action-choice-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-choice-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px;
    background: var(--background);
    border: 2px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: right;
    width: 100%;
}

.action-choice-item:hover {
    border-color: var(--accent-red);
    background: rgba(192, 57, 43, 0.03);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.choice-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.choice-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

.choice-desc {
    font-size: 14px;
    color: var(--secondary-text);
    font-weight: 500;
}

/* ========== منبثق تعديل مكان موجود ========== */
.edit-place-popup {
    max-width: 550px;
    width: 95%;
}

.edit-search-results {
    max-height: 250px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-md);
    background: var(--white);
}

.edit-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-border);
    cursor: pointer;
    transition: background var(--transition-fast);
}

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

.edit-result-item:hover {
    background: rgba(192, 57, 43, 0.05);
}

.edit-result-info {
    flex: 1;
}

.edit-result-name {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 15px;
}

.edit-result-location {
    font-size: 13px;
    color: var(--secondary-text);
    margin-top: 3px;
}

.edit-result-select {
    color: var(--accent-red);
    font-size: 20px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.edit-result-item:hover .edit-result-select {
    opacity: 1;
}

.current-data-box {
    background: var(--background);
    border-radius: var(--border-radius-md);
    padding: 15px;
    margin-bottom: 20px;
    border-right: 4px solid var(--accent-red);
}

.current-data-box h4 {
    margin: 0 0 12px 0;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 700;
}

.current-data-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 14px;
}

.data-label {
    font-weight: 700;
    color: var(--primary-dark);
    min-width: 90px;
}

.data-row span:last-child {
    color: var(--secondary-text);
    word-break: break-word;
}

.coords-edit-box {
    background: var(--background);
    padding: 15px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--light-border);
}

.coords-hint {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--secondary-text);
    font-weight: 500;
}

.coord-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.coord-input-group label {
    min-width: 70px;
    font-weight: 600;
    color: var(--primary-dark);
}

.coord-input {
    flex: 1;
}

.use-map-btn {
    width: 100%;
    padding: 10px;
    background: var(--white);
    border: 2px dashed var(--accent-red);
    border-radius: var(--border-radius-md);
    color: var(--accent-red);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    transition: all var(--transition-fast);
}

.use-map-btn:hover {
    background: rgba(192, 57, 43, 0.05);
    border-style: solid;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.back-btn {
    padding: 12px 20px;
    background: var(--background);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-md);
    color: var(--secondary-text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background: var(--white);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.form-actions .submit-btn {
    flex: 1;
}

/* ========== منبثق المفضلة ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(35, 36, 39, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.popup-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px var(--shadow-heavy);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--light-border);
}

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

.popup-header {
    padding: 20px;
    border-bottom: 2px solid var(--light-border);
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    background: var(--white);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    z-index: 10;
}

.popup-header i {
    font-size: 24px;
    color: var(--accent-red);
}

.popup-header h3 {
    margin: 0;
    flex-grow: 1;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary-text);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-circle);
    transition: all var(--transition-fast);
}

.close-btn:hover {
    background: var(--background);
    color: var(--accent-red);
}

.popup-body {
    padding: 20px;
}

.favorites-list {
    margin-bottom: 25px;
}

.favorites-list h4 {
    margin: 0 0 15px 0;
    color: var(--secondary-text);
    font-size: 16px;
    font-weight: 600;
}

.empty-message {
    text-align: center;
    color: var(--secondary-text);
    padding: 30px 20px;
    background: var(--background);
    border-radius: var(--border-radius-md);
    font-size: 15px;
    font-weight: 500;
    border: 1px dashed var(--light-border);
}

.favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--background);
    border-radius: var(--border-radius-md);
    margin-bottom: 8px;
    border: 1px solid var(--light-border);
    transition: all var(--transition-fast);
}

.favorite-item:hover {
    background: rgba(192, 57, 43, 0.05);
    border-color: var(--accent-red);
    transform: translateX(-2px);
}

.favorite-item span {
    cursor: pointer;
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

.favorite-item span i {
    color: var(--accent-red);
    font-size: 16px;
}

.favorite-item span small {
    color: var(--secondary-text);
    font-size: 11px;
    margin-right: 5px;
    font-weight: 500;
}

.favorite-item button {
    background: none;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    padding: 5px;
    border-radius: var(--border-radius-circle);
    transition: all var(--transition-fast);
}

.favorite-item button:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(192, 57, 43, 0.1);
}

.add-favorite-section {
    border-top: 2px dashed var(--light-border);
    padding-top: 20px;
}

.add-favorite-section h4 {
    margin: 0 0 15px 0;
    color: var(--secondary-text);
    font-size: 16px;
    font-weight: 600;
}

.current-location-info {
    background: rgba(192, 57, 43, 0.05);
    padding: 12px 15px;
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--primary-dark);
    word-break: break-word;
    border-right: 3px solid var(--accent-red);
    font-weight: 600;
}

#favoriteName {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-border);
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    background: var(--background);
    transition: all var(--transition-fast);
}

#favoriteName:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
    background: var(--white);
}

#favoriteName::placeholder {
    color: #999;
    font-weight: 500;
}

.add-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
}

.add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.3);
    background: linear-gradient(135deg, #a53125, #8a2a1f);
}

.add-btn i {
    font-size: 18px;
}

/* ========== أنماط نموذج إضافة مكان جديد ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 15px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-border);
    border-radius: var(--border-radius-md);
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: var(--background);
    color: var(--primary-dark);
    font-weight: 500;
}

.form-input:focus {
    border-color: var(--accent-red);
    outline: none;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
    background: var(--white);
}

.form-input[readonly] {
    background: #f0f0f0;
    color: #666;
    cursor: default;
}

.form-group small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #a53125, #8a2a1f);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.4);
}

.form-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--light-border);
    text-align: center;
    font-size: 13px;
    color: var(--secondary-text);
}

.form-footer a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ========== التذييل (Footer) ========== */
.site-footer {
    background: linear-gradient(135deg, var(--footer-darker), var(--footer-dark));
    color: #f0f0f0;
    padding: 50px 0 30px;
    margin-top: 60px;
    border-top: 3px solid var(--accent-red);
    box-shadow: 0 -10px 30px var(--shadow-heavy);
    direction: rtl;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-logo {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.footer-description {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #cccccc;
}

.gold-line {
    width: 80px;
    height: 3px;
    background: #c9a96e;
    margin: 0 auto 30px;
    border-radius: 2px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-red);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-circle);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    background: var(--accent-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.3);
}

/* ========== أنماط WebView ========== */
.webview-banner {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 10px;
    margin: 10px 0 20px 0;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    border-right: 4px solid var(--accent-red);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.banner-content i {
    font-size: 20px;
    flex-shrink: 0;
}

.banner-content span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.warning-popup {
    max-width: 400px;
    width: 90%;
}

.warning-popup .popup-body {
    text-align: center;
}

.warning-popup p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.warning-link-box {
    background: var(--background);
    padding: 15px;
    border-radius: var(--border-radius-md);
    margin: 15px 0;
    border: 1px solid var(--light-border);
    text-align: center;
}

.warning-link-box code {
    display: block;
    background: var(--white);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    margin: 10px 0;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    color: var(--accent-red);
    border: 1px solid var(--light-border);
}

.copy-warning-btn {
    background: linear-gradient(135deg, var(--accent-red), #a53125);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.copy-warning-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.warning-ok-btn {
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    padding: 10px 30px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
    transition: all var(--transition-fast);
}

.warning-ok-btn:hover {
    background: #3a3b40;
    transform: translateY(-2px);
}

/* إخفاء زر تحديد الموقع في وضع WebView */
body.webview-mode .locate-button {
    display: none !important;
}

/* إخفاء العناصر */
.hidden {
    display: none !important;
}

/* ========== رسائل منبثقة ========== */
.notification-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 10px 30px var(--shadow-heavy);
    animation: slideUp 0.3s ease;
    direction: rtl;
}

.notification-message.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-message.success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-message i {
    font-size: 18px;
}

/* ========== التجاوب مع الشاشات ========== */
@media (max-width: 1024px) {
    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 70px 0 30px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .main-header {
        padding: 12px 15px;
    }
    
    .header-logo h1 {
        font-size: 22px;
    }
    
    .header-actions {
        gap: 12px;
    }
    
    .language-btn {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .language-btn span:not(#selectedLanguage) {
        display: none;
    }
    
    .language-menu {
        left: auto;
        right: 0;
        min-width: 160px;
    }
    
    .header-menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .sidebar-menu {
        width: 280px;
        right: -280px;
    }
    
    .video-caption { font-size: 15px; }
    .video-caption i { font-size: 17px; }
    
    .search-input { 
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .map-controls { flex-direction: column; }
    .locate-button { width: 100%; }
    
    .favorite-icon {
        bottom: 15px;
        left: 70px;
        width: 42px;
        height: 42px;
    }
    
    .favorite-icon i {
        font-size: 20px;
    }
    
    .add-place-icon {
        bottom: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
    }
    
    .add-place-icon i {
        font-size: 20px;
    }
    
    .map-compass-icon {
        bottom: 15px;
        left: 15px;
        width: 42px;
        height: 42px;
    }
    
    .map-compass-icon i {
        font-size: 20px;
    }
    
    .share-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .prayer-card h5 { font-size: 22px; }
    
    .prayer-table {
        font-size: 18px;
    }
    
    .prayer-table th {
        font-size: 24px;
        padding: 15px 12px;
    }
    
    .prayer-table td {
        font-size: 18px;
        padding: 15px 12px;
    }
    
    .prayer-table td:first-child {
        padding-right: 20px;
    }
    
    .prayer-table td:last-child {
        padding-left: 20px;
    }
    
    .prayer-table td i {
        font-size: 20px;
        margin-left: 10px;
    }
    
    .prayer-table tr:nth-child(2) td,
    .prayer-table tr:nth-child(3) td,
    .hijri-date {
        font-size: 18px !important;
        padding: 15px 12px !important;
    }
    
    .prayer-table tr.next-prayer td:last-child {
        font-size: 20px;
    }
    
    .action-btn { 
        min-width: 110px; 
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .monthly-header h4 { font-size: 20px; }
    .monthly-btn { font-size: 16px; padding: 15px; }
    
    .methods-header { flex-direction: column; }
    .custom-dropdown-container { min-width: 100%; }
    
    #nextPrayerCountdown {
        font-size: 18px;
    }
    
    .popup-content {
        width: 95%;
        max-width: 400px;
    }
    
    .popup-header h3 {
        font-size: 20px;
    }
    
    .favorite-item {
        padding: 10px 12px;
    }
    
    .favorite-item span {
        font-size: 14px;
    }
    
    .add-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .footer-links {
        flex-direction: row;
        gap: 15px;
    }
    
    .footer-link {
        font-size: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        font-size: 24px;
    }
    
    .footer-description {
        font-size: 15px;
        padding: 0 15px;
    }
    
    .webview-banner {
        padding: 10px 15px;
    }
    
    .banner-content span {
        font-size: 12px;
    }
    
    .banner-content i {
        font-size: 16px;
    }
    
    .warning-popup {
        width: 95%;
    }
    
    .action-choice-item {
        padding: 15px;
    }
    
    .choice-title {
        font-size: 16px;
    }
    
    .choice-desc {
        font-size: 13px;
    }
    
    .edit-place-popup {
        max-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .back-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 60px 0 30px 0;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .main-header {
        padding: 10px 12px;
    }
    
    .header-logo h1 {
        font-size: 18px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .language-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .language-btn i.fa-globe {
        font-size: 14px;
    }
    
    .language-menu {
        min-width: 140px;
    }
    
    .lang-flag {
        font-size: 18px;
        min-width: 25px;
    }
    
    .lang-name {
        font-size: 13px;
    }
    
    .header-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .favorite-icon {
        bottom: 12px;
        left: 65px;
        width: 40px;
        height: 40px;
    }
    
    .favorite-icon i {
        font-size: 18px;
    }
    
    .add-place-icon {
        bottom: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    
    .add-place-icon i {
        font-size: 18px;
    }
    
    .map-compass-icon {
        bottom: 12px;
        left: 12px;
        width: 40px;
        height: 40px;
    }
    
    .map-compass-icon i {
        font-size: 18px;
    }
    
    .share-btn { width: 40px; height: 40px; }
    
    .action-buttons { flex-direction: column; }
    .action-btn { width: 100%; }
    
    .info-message, .circle-message, .data-box { 
        font-size: 14px;
        padding: 15px 15px 15px 40px;
    }
    
    .circle-message i { 
        font-size: 16px; 
    }
    
    .prayer-card h5 {
        font-size: 20px;
    }
    
    .prayer-card h5 i {
        font-size: 24px;
    }
    
    .prayer-table {
        font-size: 16px;
    }
    
    .prayer-table th {
        font-size: 22px;
        padding: 12px 10px;
    }
    
    .prayer-table td {
        font-size: 16px;
        padding: 12px 10px;
    }
    
    .prayer-table td i {
        font-size: 18px;
    }
    
    .prayer-table tr:nth-child(2) td,
    .prayer-table tr:nth-child(3) td,
    .hijri-date {
        font-size: 16px !important;
        padding: 12px 10px !important;
    }
    
    #nextPrayerCountdown {
        font-size: 16px;
    }
    
    .popup-header {
        padding: 15px;
    }
    
    .popup-header h3 {
        font-size: 18px;
    }
    
    .popup-body {
        padding: 15px;
    }
    
    .favorites-list h4,
    .add-favorite-section h4 {
        font-size: 15px;
    }
    
    .current-location-info {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    #favoriteName {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-logo {
        font-size: 22px;
    }
    
    .footer-description {
        font-size: 14px;
    }
    
    .copyright {
        font-size: 13px;
    }
    
    .action-choice-item {
        padding: 12px;
    }
    
    .choice-icon {
        font-size: 28px;
    }
    
    .choice-title {
        font-size: 15px;
    }
    
    .data-row {
        flex-direction: column;
        gap: 3px;
    }
    
    .data-label {
        min-width: auto;
    }
    
    .coord-input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .coord-input-group label {
        min-width: auto;
    }
}

@media (max-width: 360px) {
    .header-logo h1 {
        font-size: 16px;
    }
    
    .language-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .header-menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .favorite-icon {
        bottom: 10px;
        left: 60px;
        width: 38px;
        height: 38px;
    }
    
    .add-place-icon {
        bottom: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }
    
    .map-compass-icon {
        bottom: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
    }
    
    .prayer-table th {
        font-size: 20px;
        padding: 10px 8px;
    }
    
    .prayer-table td {
        font-size: 15px;
        padding: 10px 8px;
    }
    
    .prayer-table td i {
        font-size: 16px;
        margin-left: 6px;
    }
    
    .prayer-table tr:nth-child(2) td,
    .prayer-table tr:nth-child(3) td,
    .hijri-date {
        font-size: 15px !important;
        padding: 10px 8px !important;
    }
    
    .prayer-table tr.next-prayer td:last-child {
        font-size: 17px;
    }
}

/* خريطة مصغرة داخل نافذة التعديل */
.edit-mini-map {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius-md);
    border: 2px solid var(--light-border);
    margin-bottom: 15px;
    z-index: 1;
    cursor: crosshair;
}

.edit-mini-map:focus {
    border-color: var(--accent-red);
    outline: none;
}

.coords-note {
    font-size: 12px;
    color: var(--secondary-text);
    margin-top: 8px;
    text-align: center;
    font-weight: 500;
}

/* جعل حقول الإحداثيات للقراءة فقط */
.coord-input[readonly] {
    background: #f5f5f5;
    cursor: default;
    color: var(--primary-dark);
    font-weight: 600;
}

/* تعديل حجم نافذة التعديل لتستوعب الخريطة */
.edit-place-popup {
    max-width: 600px;
}

/* ========== تنسيقات رسالة "لا توجد نتائج" القابلة للضغط ========== */
.no-result-item {
    background-color: #fef9e7 !important;
    border-left: 4px solid #f1c40f !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.no-result-item:hover {
    background-color: #fdf2e9 !important;
    transform: translateX(-2px);
}

.no-result-item .fa-chevron-left {
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin-right: auto;
}

.no-result-item:hover .fa-chevron-left {
    transform: translateX(-4px);
    opacity: 1;
}

.no-result-item .suggestion-location {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #27ae60 !important;
    font-weight: 500 !important;
}

/* تنسيقات حقول الإحداثيات في نافذة الإضافة */
.coords-hint {
    background: #f0f7f4;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #2d6a4f;
    font-size: 13px;
    font-weight: 500;
}

.coords-hint i {
    margin-left: 5px;
    color: #c0392b;
}

.coord-input-group {
    margin-bottom: 12px;
}

.coord-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.coord-input-group label i {
    margin-left: 5px;
    color: #c0392b;
}

.coord-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Cairo', monospace;
    font-size: 14px;
    background: #f5f5f5;
}

.coord-input:focus {
    border-color: #2d6a4f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
    background: #ffffff;
}

.coords-note {
    margin-top: 8px;
    color: #7f8c8d;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

.coords-note i {
    margin-left: 5px;
    color: #c0392b;
}

/* تنسيق حقل مطلوب */
.required {
    color: #c0392b;
    font-weight: 700;
}