/* ===== الخطوط المحلية (Self-Hosted) ===== */
@font-face {
    font-family: 'Cairo';
    src: local('Cairo Regular'), local('Cairo-Regular'),
        url('fonts/Cairo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: local('Cairo SemiBold'), local('Cairo-SemiBold'),
        url('fonts/Cairo-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: local('Cairo Bold'), local('Cairo-Bold'),
        url('fonts/Cairo-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Amiri';
    src: local('Amiri Regular'), local('Amiri-Regular'),
        url('fonts/Amiri-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Amiri';
    src: local('Amiri Bold'), local('Amiri-Bold'),
        url('fonts/Amiri-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== متغيرات اللون والتصميم - الوضع الداكن الدائم ===== */
:root {
    color-scheme: dark;
    /* الوضع الداكن - مريح للعين بخطوط ذهبية */
    --bg-base: #1c1c1e;
    --bg-soft: #2c2c2e;
    --bg-glow: #3a3a3c;
    --bg-gradient: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 50%, #3a3a3c 100%);
    
    --ink: #d4af37;
    --ink-light: #f4d03f;
    --muted: #d4af37;
    --muted-light: #b8942f;
    
    --accent: #d4af37;
    --accent-light: #f4d03f;
    --accent-deep: #b8942f;
    --accent-glow: rgba(212, 175, 55, 0.35);
    
    --card: #2c2c2e;
    --card-hover: #3a3a3c;
    --stroke: rgba(212, 175, 55, 0.15);
    --stroke-light: rgba(212, 175, 55, 0.08);
    
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 48px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    
    --glow-gold: 0 0 25px rgba(212, 175, 55, 0.5), 0 0 50px rgba(212, 175, 55, 0.2);
    
    /* ألوان إضافية للنموذج */
    --accent-btn: rgba(212, 175, 55, 0.1);
}

/* ===== لوحة التحكم المنفصلة ===== */
.admin-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.admin-back-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.admin-back-link:hover {
    text-decoration: underline;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 24px;
}

.admin-tab-btn {
    border: 1px solid var(--stroke);
    background: var(--card);
    color: var(--ink);
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-tab-btn.active,
.admin-tab-btn:hover {
    background: var(--accent);
    color: #1d1d1f;
    border-color: var(--accent);
}

.admin-tab-content.hidden {
    display: none;
}

.ayah-feeling-title {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    margin: 8px 0 12px;
    color: var(--accent);
}

/* ===== أساسيات ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    background: var(--bg-gradient);
    color: var(--ink);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, var(--accent-glow), transparent 50%),
        radial-gradient(circle at 80% 70%, var(--accent-glow), transparent 50%);
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

/* ===== الشاشة الافتتاحية - تصميم جديد ===== */
.intro-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.intro-content {
    text-align: center;
    padding: 48px;
    max-width: 900px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.intro-logo {
    font-family: 'Amiri', serif;
    font-size: clamp(4rem, 14vw, 7rem);
    color: var(--ink);
    margin: 0 0 32px;
    letter-spacing: 6px;
    font-weight: 700;
    text-shadow: var(--glow-gold);
    position: relative;
    display: inline-block;
}

.intro-logo::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

.intro-wisdom {
    font-family: 'Amiri', serif;
    font-size: clamp(1.25rem, 3.5vw, 1.95rem);
    color: var(--ink-light);
    margin: 0 0 32px;
    line-height: 2;
    max-width: 800px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--stroke);
    font-weight: 500;
}

body.dark-mode .intro-wisdom {
    background: var(--card);
    box-shadow: var(--shadow-md);
}
    color: var(--accent-light);
}

body.dark-mode .intro-logo {
    color: var(--accent-light);
}

.intro-text {
    font-family: 'Amiri', serif;
    font-size: clamp(1.3rem, 4vw, 2rem);
    color: var(--ink);
    margin: 0 0 16px;
    line-height: 1.6;
}

.intro-sub {
    color: var(--muted);
    font-size: 1.15rem;
    margin: 0 0 36px;
    font-weight: 400;
}

.intro-btn {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #1d1d1f;
    border: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow), var(--glow-gold);
    letter-spacing: 0.5px;
}

.intro-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--glow-gold);
}

body.dark-mode .intro-btn {
    color: #1d1d1f;
    font-weight: 700;
}

/* ===== الخلفية المتحركة ===== */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-a {
    width: 280px;
    height: 280px;
    right: -80px;
    top: 120px;
    background: radial-gradient(circle, rgba(184, 148, 77, 0.3), rgba(184, 148, 77, 0.05));
}

.orb-b {
    width: 320px;
    height: 320px;
    left: -120px;
    bottom: 100px;
    background: radial-gradient(circle, rgba(128, 170, 160, 0.25), rgba(128, 170, 160, 0.02));
    animation-delay: 3s;
}

.orb-c {
    width: 200px;
    height: 200px;
    left: 45%;
    top: -60px;
    background: radial-gradient(circle, rgba(242, 234, 212, 0.4), rgba(242, 234, 212, 0.05));
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -20px); }
    50% { transform: translate(-10px, 20px); }
    75% { transform: translate(-20px, -10px); }
}

body.dark-mode .orb-a {
    background: radial-gradient(circle, rgba(212, 184, 150, 0.2), rgba(212, 184, 150, 0.02));
}

body.dark-mode .orb-b {
    background: radial-gradient(circle, rgba(128, 170, 160, 0.15), rgba(128, 170, 160, 0.01));
}

body.dark-mode .orb-c {
    background: radial-gradient(circle, rgba(212, 184, 150, 0.2), rgba(212, 184, 150, 0.02));
}

/* ===== الصفحة الرئيسية ===== */
.hidden { display: none !important; }

.page {
    position: relative;
    z-index: 1;
    padding: 24px 24px 80px;
    max-width: 1300px;
    margin: 0 auto;
    opacity: 1;
    animation: fadeIn 0.8s ease;
}

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

/* ===== رأس الصفحة ===== */
/* ===== الهيدر المتحرك - تصميم نحيف وأنيق ===== */
.minimal-header {
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid var(--stroke);
    background: var(--card);
    position: relative;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

body.dark-mode .minimal-header {
    background: var(--card);
    border-color: var(--stroke);
}

.minimal-header.hidden {
    display: none;
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
}

.header-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.header-content {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.header-cards {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex: 0 0 auto;
    transform: translateX(5px);
}

.header-actions {
    flex: 1 1 380px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-right: auto;
    min-width: 260px;
}

.header-ayah {
    width: 100%;
    max-width: 520px;
    padding: 12px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.18);
}

.header-ayah-text {
    margin: 0 0 10px;
    font-family: 'Amiri', serif;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--ink);
}

.header-ayah-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.header-ayah-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.header-ayah-btn {
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.7);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.6), rgba(212, 175, 55, 0.2));
    color: #1c1c1e;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.header-ayah-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(212, 175, 55, 0.25);
}

.header-card-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    width: clamp(110px, 12vw, 140px);
    height: clamp(80px, 10vw, 100px);
    min-height: 70px;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.header-card-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background: var(--card-hover);
    border-color: var(--accent);
}

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

.header-card-name {
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.3;
}

.header-card-btn:hover .header-card-name {
    color: var(--accent-deep);
}

.header-logo {
    font-family: 'Amiri', serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--ink);
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: var(--glow-gold);
}

.header-logo .ruh-mark {
    display: inline-block;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: clamp(1.8rem, 3.6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 2px;
    box-shadow: none;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.header-tagline {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: var(--muted);
    margin: 0;
    font-weight: 400;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.06));
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.quran-btn,
.theme-toggle-header,
.header-icon-btn {
    padding: 8px 16px;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.quran-btn:hover,
.theme-toggle-header:hover,
.header-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: var(--card-hover);
    border-color: var(--accent);
}

.theme-toggle-header,
.header-icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Section Styling ===== */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-toggle-header:hover {
    border-color: var(--accent);
    background: rgba(184, 148, 77, 0.08);
}

/* ===== الأقسام ===== */
.section {
    margin-bottom: 60px;
}

.section-head {
    margin-bottom: 36px;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    color: var(--ink);
    margin: 0 0 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.main-title {
    background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

body.dark-mode .main-title {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(var(--glow-gold));
}

/* ===== زر القرآن فوق العنوان ===== */
/* Old quran-read-btn removed in favor of quran-card */

/* ===== بطاقة القرآن + بطاقات الأذكار بجوارها ===== */
.feature-cards {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 24px;
    margin: 28px 0 36px;
    align-items: start;
}

.feature-cards-top {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 0 0 32px;
}

.quran-card {
    background: var(--card);
    border: 2px solid var(--stroke);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.quran-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.quran-card-small {
    max-height: 240px;
}

.quran-card-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--accent-btn, var(--bg-soft)), var(--bg-soft));
    border-bottom: 1px solid var(--stroke);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.quran-card-icon {
    font-size: 1.6rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.quran-card-small .quran-card-icon {
    font-size: 1.4rem;
}

.quran-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-deep);
    margin: 0 0 4px;
}

.quran-card-small .quran-card-title {
    font-size: 1.1rem;
}

.quran-card-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.quran-card-small .quran-card-hint {
    font-size: 0.8rem;
}

.quran-card-sub {
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
    padding: 20px 24px;
    flex: 1;
    cursor: pointer;
}

.quran-card-small .quran-card-sub {
    font-size: 0.92rem;
    padding: 16px 20px;
    line-height: 1.6;
}

.quran-card-details {
    padding: 0;
}

.quran-card-summary {
    list-style: none;
    cursor: pointer;
}

.quran-card-summary::-webkit-details-marker {
    display: none;
}

.quran-card-details[open] .quran-card-sub {
    animation: fadeIn 0.35s ease;
}

/* ===== شبكة المشاعر - تصميم جديد وجذاب ===== */
.feelings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
    padding: 8px;
}

.feeling-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(184, 148, 77, 0.2);
    border-radius: 16px;
    padding: 36px 24px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #2c2c2c;
    font-weight: 700;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
}

/* بطاقة الخوف من الوحدة - أكبر حجماً لملء الفراغات */
.feeling-btn-wide {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(224, 242, 241, 0.98), rgba(212, 245, 242, 0.95));
    border-color: rgba(128, 203, 196, 0.3);
}

body.dark-mode .feeling-btn-wide {
    background: linear-gradient(135deg, rgba(30, 35, 40, 0.98), rgba(25, 30, 35, 0.98));
    border-color: rgba(212, 175, 55, 0.35);
}

.feeling-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 148, 77, 0.1), rgba(212, 175, 55, 0.05));
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 16px;
}

/* إخفاء الأيقونات تماماً */
.feeling-btn .feeling-icon {
    display: none;
}

.feeling-btn .feeling-text {
    position: relative;
    z-index: 1;
    line-height: 1.5;
    transition: all 0.25s ease;
}

.feeling-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: rgba(184, 148, 77, 0.4);
}

.feeling-btn:hover::before {
    opacity: 1;
}

.feeling-btn:hover .feeling-text {
    color: var(--accent);
}

.feeling-btn:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

/* تحسينات للوضع الليلي - بطاقات داكنة بكتابة ذهبية */
body.dark-mode .feeling-btn {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.95), rgba(25, 25, 30, 0.98));
    border: 2px solid rgba(212, 175, 55, 0.25);
    color: #d4af37;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5),
                inset 0 1px 1px rgba(212, 175, 55, 0.1);
}

body.dark-mode .feeling-btn:hover {
    background: linear-gradient(135deg, rgba(35, 35, 40, 0.98), rgba(30, 30, 35, 0.98));
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
}

body.dark-mode .feeling-btn:hover .feeling-text {
    color: #f4d03f;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

body.dark-mode .feeling-btn::before {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
}

/* تأثير Ripple عند النقر */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ===== بطاقة الآية ===== */
.ayah-display {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.ayah-card {
    background: var(--card);
    padding: clamp(28px, 6vw, 56px);
    border-radius: 26px;
    box-shadow: var(--shadow);
    max-width: 820px;
    width: 100%;
    border: 1px solid var(--stroke);
}

.ayah-card.ayah-appear {
    animation: cardReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ayah-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.ayah-back-mini {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.ayah-back-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 148, 77, 0.3);
}

.ayah-text {
    font-family: 'Amiri', serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    line-height: 2;
    color: var(--ink);
    margin: 24px 0;
    text-align: justify;
}

.ayah-ref {
    font-size: 1rem;
    color: var(--accent);
    margin: 16px 0 28px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.advice-box {
    background: linear-gradient(135deg, rgba(184, 148, 77, 0.08) 0%, rgba(184, 148, 77, 0.04) 100%);
    border-right: 4px solid var(--accent);
    padding: 20px 20px;
    border-radius: 12px;
    margin: 28px 0;
}

[dir="rtl"] .advice-box {
    border-right: none;
    border-left: 4px solid var(--accent);
}

body.dark-mode .advice-box {
    background: linear-gradient(135deg, rgba(212, 184, 150, 0.1) 0%, rgba(212, 184, 150, 0.05) 100%);
}

.advice-icon {
    display: block;
    font-size: 0.95rem;
    color: var(--accent-deep);
    font-weight: 600;
    margin-bottom: 10px;
}

body.dark-mode .advice-icon {
    color: var(--accent-light);
}

.advice-text {
    color: var(--ink);
    margin: 0;
    line-height: 1.8;
    font-size: 1.01rem;
}

.tafsir-box {
    background: linear-gradient(135deg, rgba(128, 170, 160, 0.08) 0%, rgba(128, 170, 160, 0.03) 100%);
    border-right: 4px solid #4db6ac;
    padding: 20px 20px;
    border-radius: 12px;
    margin: 28px 0;
}

[dir="rtl"] .tafsir-box {
    border-right: none;
    border-left: 4px solid #4db6ac;
}

.tafsir-icon {
    display: block;
    font-size: 0.95rem;
    color: #00695c;
    font-weight: 600;
    margin-bottom: 10px;
}

.tafsir-text {
    color: var(--ink);
    margin: 0;
    line-height: 1.8;
    font-size: 1.01rem;
}

body.dark-mode .tafsir-box {
    background: linear-gradient(135deg, rgba(128, 170, 160, 0.1) 0%, rgba(128, 170, 160, 0.04) 100%);
    border-color: #4db6ac;
}

body.dark-mode .tafsir-icon {
    color: #80cbc4;
}

.audio-wrap {
    margin: 28px 0;
    padding: 18px;
    background: rgba(184, 148, 77, 0.06);
    border-radius: 12px;
    text-align: center;
}

body.dark-mode .audio-wrap {
    background: rgba(212, 184, 150, 0.08);
}

.audio-label {
    display: block;
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 500;
}

audio {
    width: 100%;
    max-width: 400px;
    height: 40px;
    accent-color: var(--accent);
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn,
.back-btn {
    flex: 1;
    min-width: 160px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.share-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(184, 148, 77, 0.25);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(184, 148, 77, 0.35);
}

.back-btn {
    background: var(--stroke);
    color: var(--ink);
    border: 2px solid var(--accent-light);
}

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

/* ===== بطاقات الأذكار والأدعية ===== */
.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.content-card {
    background: var(--card);
    border: 2px solid var(--stroke);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.content-cards-inline {
    margin-top: 0;
}

.content-cards-small {
    margin-top: 0;
}

.content-cards-small .content-card {
    max-height: 240px;
}

.content-cards-small .content-card-header {
    padding: 16px 18px;
}

.content-cards-small .content-card-title {
    font-size: 1.1rem;
    margin: 0 0 2px;
}

.content-cards-small .content-card-hint {
    font-size: 0.78rem;
}

.content-cards-small .content-card-body {
    padding: 14px 18px;
    gap: 10px;
}

.content-cards-small .content-card-intro {
    padding: 12px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.content-cards-small .content-card-list {
    display: none;
}

.content-card-collapsible > summary {
    list-style: none;
    cursor: pointer;
}

.content-card-collapsible > summary::-webkit-details-marker {
    display: none;
}

.content-card-summary {
    align-items: flex-start;
}

.content-card-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 4px;
}

.content-card-collapsible[open] .content-card-body {
    animation: fadeIn 0.35s ease;
}

.content-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.content-card-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--accent-btn, var(--bg-soft)), var(--bg-soft));
    border-bottom: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.content-card-title {
    margin: 0;
    font-size: 1.35rem;
    color: var(--accent-deep);
    font-weight: 700;
}

.content-card-tag {
    font-size: 1.2rem;
    color: var(--accent);
}

.content-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-card-intro {
    margin: 0;
    padding: 16px;
    background: var(--bg-soft);
    border-radius: 12px;
    border-right: 4px solid var(--accent);
    color: var(--ink);
    line-height: 1.7;
}

[dir="rtl"] .content-card-intro {
    border-right: none;
    border-left: 4px solid var(--accent);
}

.content-card-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.content-card-point {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--bg-base);
    border-radius: 12px;
    border: 1px solid var(--stroke);
    transition: all 0.3s ease;
}

.content-card-point:hover {
    background: var(--bg-soft);
    border-color: var(--accent);
    transform: translateX(-3px);
}

.content-card-point .point-icon {
    font-size: 1.1rem;
}

.content-card-point p {
    margin: 0;
    color: var(--ink);
    line-height: 1.7;
    font-size: 0.98rem;
}

/* ===== التذييل ===== */
.footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--stroke);
    text-align: center;
}

.footer-content {
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

.footer-text {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0 0 8px;
    font-weight: 500;
}

.footer-credit {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
    opacity: 0.8;
}

.admin-btn {
    margin-top: 12px;
    padding: 10px 24px;
    background: var(--card);
    border: 2px solid var(--stroke);
    border-radius: 12px;
    color: var(--muted);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-btn:hover {
    background: var(--accent-btn);
    border-color: var(--accent);
    color: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== الحركات ===== */
.reveal-onload,
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
}

body.site-open .reveal-onload,
body.site-open .reveal-item {
    animation: fadeUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

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

/* ===== الريسبونسيف - متوافق مع iPhone و Galaxy ===== */
@media (max-width: 900px) {
    .header-wrapper {
        flex-wrap: wrap;
        gap: 20px;
    }

    .header-actions {
        width: 100%;
        margin-right: 0;
    }

    .header-ayah {
        max-width: 100%;
    }

    .feelings-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
        gap: 14px;
    }

    .feeling-btn {
        padding: 30px 18px;
        font-size: 1.25rem;
        min-height: 100px;
        border-radius: 14px;
    }
    
    /* بطاقة الخوف من  الوحدة على التابلت */
    .feeling-btn-wide {
        grid-column: span 2;
    }

    .feeling-btn:hover {
        transform: translateY(-3px);
    }
    
    .feeling-btn:active {
        transform: translateY(-1px) scale(0.97);
    }

    .ayah-text {
        font-size: clamp(1.4rem, 4.5vw, 2rem);
    }

    .section-title {
        font-size: clamp(1.5rem, 4.5vw, 2rem);
    }

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

    .content-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .header-ayah {
        padding: 12px 14px;
    }

    .header-ayah-text {
        font-size: 0.95rem;
    }

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

    .header-ayah-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .page {
        padding: 24px 16px 50px;
        padding-top: 90px;
    }

    .minimal-header {
        padding: 8px 0 6px;
    }

    .header-inner {
        padding: 0 16px;
    }
    
    .feelings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 32px;
    }
    
    .feeling-btn {
        padding: 24px 14px;
        font-size: 1.1rem;
        min-height: 85px;
    }
    
    /* بطاقة الخوف من الوحدة على الجوال تشغل السطر كاملاً */
    .feeling-btn-wide {
        grid-column: span 2;
        font-size: 1.15rem;
    }

    .header-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 6px;
        padding-top: 6px;
    }

    .feelings-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 12px;
        padding: 4px;
    }

    .feeling-btn {
        padding: 26px 14px;
        font-size: 1.1rem;
        min-height: 90px;
        border-radius: 12px;
    }
    
    .feeling-btn:hover,
    .feeling-btn:active {
        transform: translateY(-2px);
    }

    .header-wrapper {
        gap: 16px;
    }

    .header-logo {
        font-size: 1.6rem;
    }

    .header-tagline {
        font-size: 0.88rem;
    }

    .section {
        margin-bottom: 48px;
    }

    .section-head {
        margin-bottom: 28px;
    }

    .feelings-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }

    .feeling-btn {
        padding: 20px 12px;
        font-size: 1rem;
        border-radius: 14px;
    }

    .ayah-card {
        padding: clamp(20px, 5vw, 40px);
        border-radius: 20px;
    }

    .ayah-text {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
        line-height: 1.8;
    }

    .actions {
        flex-direction: column;
        gap: 10px;
    }

    .share-btn,
    .back-btn {
        width: 100%;
    }

    .theme-toggle-header {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 16px 12px 40px;
    }

    .minimal-header {
        margin-bottom: 28px;
        padding: 14px 0 12px;
    }

    .header-logo {
        font-size: 1.4rem;
    }

    .header-tagline {
        font-size: 0.82rem;
        margin-top: 4px;
    }

    .section {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .section-sub {
        font-size: 0.98rem;
    }

    .feelings-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .feeling-btn {
        padding: 18px 10px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .ayah-card {
        padding: 20px;
        border-radius: 18px;
    }

    .ayah-back-mini {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .ayah-text {
        font-size: clamp(1.2rem, 3.5vw, 1.6rem);
        margin: 18px 0;
        line-height: 1.75;
    }

    .advice-box {
        padding: 16px;
        margin: 20px 0;
    }

    .audio-label {
        font-size: 0.88rem;
    }

    .footer {
        margin-top: 60px;
        padding-top: 32px;
    }

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

    .footer-credit {
        font-size: 0.88rem;
    }
}

/* ===== زر القرآن في الهيدر ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quran-btn {
    background: var(--accent-btn);
    border: 1px solid var(--accent);
    color: var(--accent-deep);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.quran-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 148, 77, 0.2);
}

.quran-btn-1 {
    background: linear-gradient(135deg, #d4af37, #b8944d);
    border-color: #d4af37;
    color: white;
}

.quran-btn-1:hover {
    background: linear-gradient(135deg, #b8944d, #d4af37);
}

.quran-btn-2 {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-color: #4a90e2;
    color: white;
}

.quran-btn-2:hover {
    background: linear-gradient(135deg, #357abd, #4a90e2);
}

/* ===== نافذة قراءة القرآن ===== */
.quran-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.quran-reader-container {
    background: var(--paper);
    width: 100%;
    max-width: 800px;
    height: 85vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--stroke);
}

.quran-reader-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--stroke);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card);
}

.quran-reader-header h3 {
    margin: 0;
    color: var(--accent-deep);
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
}

.close-reader {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.3s;
}

.close-reader:hover {
    color: var(--error);
}

.quran-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    line-height: 2.2;
    text-align: center;
    color: var(--ink);
    background-image: radial-gradient(var(--card) 1px, transparent 1px);
    background-size: 20px 20px;
}

.quran-verse {
    display: inline;
    position: relative;
    padding: 0 4px;
}

.verse-separator {
    color: var(--accent);
    font-size: 1.2rem;
    margin: 0 8px;
    font-family: 'Amiri', serif;
}

.quran-reader-controls {
    padding: 16px;
    background: var(--card);
    border-top: 1px solid var(--stroke);
    display: flex;
    justify-content: center;
    gap: 12px;
}

.quran-reader-controls button {
    padding: 8px 16px;
    border: 1px solid var(--stroke);
    background: var(--paper);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    color: var(--ink);
    transition: all 0.2s;
}

.quran-reader-controls button:hover {
    background: var(--accent-btn);
    border-color: var(--accent);
}

/* Dark mode adjustments */
body.dark-mode .quran-reader-container {
    background: #1a2535;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .quran-content-scroll {
    color: #e0e0e0;
    background-image: radial-gradient(#2a3b55 1px, transparent 1px);
}

/* ===== إخلاء المسؤولية ===== */
.footer-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.disclaimer-btn {
    padding: 10px 24px;
    background: var(--bg-soft);
    border: 2px solid var(--stroke);
    border-radius: 12px;
    color: var(--muted);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.disclaimer-btn.admin-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(184, 134, 11, 0.1));
    border-color: var(--accent);
    color: var(--accent);
}

.disclaimer-btn:hover {
    background: var(--accent-btn);
    border-color: var(--accent);
    color: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.disclaimer-btn.admin-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 134, 11, 0.2));
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 1;
    transition: all 0.3s ease;
}

.disclaimer-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.disclaimer-container {
    background: var(--card);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--stroke);
}

@keyframes slideInUp {
    from {
        transform: translateY(40px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.disclaimer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: linear-gradient(135deg, var(--accent-btn), var(--bg-soft));
    border-bottom: 2px solid var(--stroke);
}

.disclaimer-header h3 {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-deep);
    font-weight: 700;
}

.close-disclaimer {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--stroke);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--ink);
    font-weight: bold;
}

.close-disclaimer:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: rotate(90deg) scale(1.1);
}

.disclaimer-content {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
    color: var(--ink);
}

.disclaimer-content::-webkit-scrollbar {
    width: 8px;
}

.disclaimer-content::-webkit-scrollbar-track {
    background: var(--bg-soft);
    border-radius: 4px;
}

.disclaimer-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.disclaimer-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-deep);
}

.disclaimer-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: 12px;
    border-right: 4px solid var(--accent);
}

.disclaimer-intro strong {
    color: var(--accent-deep);
    font-weight: 700;
}

.disclaimer-section h4 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    color: var(--accent-deep);
    margin: 24px 0 16px;
    font-weight: 700;
}

.disclaimer-point {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-base);
    border-radius: 12px;
    border: 1px solid var(--stroke);
    transition: all 0.3s ease;
}

.disclaimer-point:hover {
    background: var(--bg-soft);
    border-color: var(--accent);
    transform: translateX(-4px);
}

.point-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.point-text strong {
    display: block;
    font-size: 1.05rem;
    color: var(--accent-deep);
    margin-bottom: 8px;
    font-weight: 700;
}

.point-text p {
    margin: 0;
    line-height: 1.7;
    color: var(--ink);
    font-size: 0.95rem;
}

.disclaimer-footer {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-btn), var(--bg-soft));
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--accent);
}

.disclaimer-footer p {
    margin: 0;
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    color: var(--accent-deep);
    font-weight: 600;
    line-height: 1.6;
}

/* Dark mode للـ disclaimer */
body.dark-mode .disclaimer-container {
    background: #1c1c1e;
    border-color: rgba(212, 175, 55, 0.3);
}

body.dark-mode .disclaimer-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(40, 40, 42, 0.8));
    border-bottom-color: rgba(212, 175, 55, 0.3);
}

body.dark-mode .disclaimer-header h3 {
    color: var(--accent);
}

body.dark-mode .close-disclaimer {
    background: rgba(40, 40, 42, 0.9);
    color: var(--accent);
    border-color: rgba(212, 175, 55, 0.3);
}

body.dark-mode .close-disclaimer:hover {
    background: #ff6b6b;
    color: white;
}

body.dark-mode .disclaimer-intro {
    background: rgba(40, 40, 42, 0.6);
    border-right-color: var(--accent);
    color: #e0e0e0;
}

body.dark-mode .disclaimer-point {
    background: rgba(40, 40, 42, 0.4);
    border-color: rgba(212, 175, 55, 0.2);
}

body.dark-mode .disclaimer-point:hover {
    background: rgba(40, 40, 42, 0.6);
    border-color: var(--accent);
}

body.dark-mode .point-text p {
    color: #e0e0e0;
}

body.dark-mode .disclaimer-footer {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(40, 40, 42, 0.8));
    border-color: var(--accent);
}

body.dark-mode .disclaimer-footer p {
    color: var(--accent);
}

/* ===== نموذج تواصل معنا ===== */

/* أزرار التذييل */
.footer-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer-btn {
    padding: 10px 24px;
    background: var(--bg-soft);
    border: 2px solid var(--stroke);
    border-radius: 12px;
    color: var(--muted);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-btn:hover {
    background: var(--accent-btn);
    border-color: var(--accent);
    color: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-btn {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    border-color: #3498db;
    color: #2980b9;
}

.contact-btn:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.2));
    border-color: #2980b9;
    color: #1e6fa5;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3);
}

/* نافذة منبثقة عامة */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 1;
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-container {
    background: var(--card);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--stroke);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(40px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), var(--bg-soft));
    border-bottom: 2px solid var(--stroke);
}

.modal-header h3 {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    color: #2980b9;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--stroke);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--ink);
    font-weight: bold;
}

.modal-close:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: rotate(90deg) scale(1.1);
}

.modal-content {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-soft);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* نموذج التواصل */
.contact-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-soft);
    border-radius: 12px;
    border-right: 4px solid #3498db;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--stroke);
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--bg-base);
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    min-height: 120px;
    max-height: 300px;
}

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

.btn-submit,
.btn-cancel {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-submit:hover {
    background: linear-gradient(135deg, #2980b9, #1e6fa5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    background: var(--bg-soft);
    color: var(--muted);
    border: 2px solid var(--stroke);
}

.btn-cancel:hover {
    background: var(--bg-base);
    border-color: #95a5a6;
    color: var(--ink);
}

.form-status {
    padding: 14px 20px;
    border-radius: 10px;
    margin-top: 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    animation: slideInDown 0.3s ease;
}

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

.form-status.success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.15));
    color: #27ae60;
    border: 2px solid #2ecc71;
}

.form-status.error {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(192, 57, 43, 0.15));
    color: #c0392b;
    border: 2px solid #e74c3c;
}

/* Dark mode لنموذج التواصل */
body.dark-mode .footer-btn {
    background: rgba(40, 40, 42, 0.6);
    border-color: rgba(212, 175, 55, 0.3);
    color: #e0e0e0;
}

body.dark-mode .footer-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

body.dark-mode .contact-btn {
    background: rgba(52, 152, 219, 0.15);
    border-color: #3498db;
    color: #5dade2;
}

body.dark-mode .contact-btn:hover {
    background: rgba(52, 152, 219, 0.25);
    border-color: #5dade2;
}

body.dark-mode .modal-container {
    background: #1c1c1e;
    border-color: rgba(52, 152, 219, 0.3);
}

body.dark-mode .modal-header {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(40, 40, 42, 0.8));
    border-bottom-color: rgba(52, 152, 219, 0.3);
}

body.dark-mode .modal-header h3 {
    color: #5dade2;
}

body.dark-mode .modal-close {
    background: rgba(40, 40, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .contact-intro {
    background: rgba(40, 40, 42, 0.6);
    border-right-color: #3498db;
    color: #e0e0e0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: rgba(40, 40, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    background: rgba(40, 40, 42, 0.8);
    border-color: #3498db;
}

body.dark-mode .btn-cancel {
    background: rgba(40, 40, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .btn-cancel:hover {
    background: rgba(60, 60, 62, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
    .modal-container {
        max-width: 100%;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .footer-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== لوحة تحكم المدير ===== */
.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 1;
    transition: all 0.3s ease;
}

.admin-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.admin-container {
    background: var(--card);
    border-radius: 22px;
    max-width: 840px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    border: 2px solid var(--stroke);
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    background: linear-gradient(135deg, var(--accent-btn), var(--bg-soft));
    border-bottom: 2px solid var(--stroke);
}

.admin-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--accent-deep);
    font-weight: 700;
}

.close-admin {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--stroke);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--ink);
    font-weight: bold;
}

.close-admin:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: rotate(90deg) scale(1.1);
}

.admin-content {
    padding: 26px;
    max-height: calc(90vh - 90px);
    overflow-y: auto;
}

.admin-note {
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 16px;
    margin: 0 0 18px;
    color: var(--ink);
}

.admin-form {
    display: grid;
    gap: 12px;
}

.admin-label {
    font-weight: 600;
    color: var(--muted);
}

.admin-input,
.admin-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--card);
    color: var(--ink);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
}

.admin-textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-submit,
.admin-save,
.admin-reset,
.admin-logout {
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.admin-submit,
.admin-save {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(184, 148, 77, 0.25);
}

.admin-submit:hover,
.admin-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(184, 148, 77, 0.35);
}

.admin-reset {
    background: var(--bg-soft);
    color: var(--ink);
    border: 1px solid var(--stroke);
}

.admin-logout {
    background: var(--bg-base);
    color: var(--muted);
    border: 1px solid var(--stroke);
}

.admin-error,
.admin-status {
    margin: 8px 0 0;
    color: #c0392b;
    font-size: 0.95rem;
    min-height: 22px;
    padding: 8px 12px;
    background: rgba(192, 57, 43, 0.1);
    border-radius: 8px;
    border-right: 3px solid #c0392b;
    font-weight: 500;
}

.admin-status {
    color: var(--muted);
}

.admin-panel.hidden {
    display: none;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.admin-section-list {
    display: grid;
    gap: 18px;
}

.admin-section-card {
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 18px;
    background: var(--bg-base);
    display: grid;
    gap: 12px;
}

.admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-section-title {
    font-weight: 700;
    color: var(--ink);
}

.admin-section-actions {
    display: flex;
    gap: 8px;
}

.admin-move {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: var(--card);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.admin-move:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
}

.admin-field {
    display: grid;
    gap: 8px;
}

.admin-field.inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

body.dark-mode .admin-container {
    background: #1c1c1e;
    border-color: rgba(212, 175, 55, 0.3);
}

body.dark-mode .admin-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(40, 40, 42, 0.8));
    border-bottom-color: rgba(212, 175, 55, 0.3);
}

body.dark-mode .admin-header h3 {
    color: var(--accent);
}

body.dark-mode .admin-section-card {
    background: rgba(40, 40, 42, 0.6);
}

body.dark-mode .admin-input,
body.dark-mode .admin-textarea {
    background: rgba(40, 40, 42, 0.6);
    border-color: rgba(212, 175, 55, 0.2);
    color: #e0e0e0;
}

body.dark-mode .admin-reset,
body.dark-mode .admin-logout,
body.dark-mode .admin-move {
    background: rgba(40, 40, 42, 0.7);
    color: var(--accent);
    border-color: rgba(212, 175, 55, 0.2);
}

@media (max-width: 768px) {
    .disclaimer-container {
        max-width: 95%;
        max-height: 95vh;
    }

    .disclaimer-header {
        padding: 20px;
    }

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

    .disclaimer-content {
        padding: 20px;
    }

    .disclaimer-intro {
        font-size: 0.95rem;
        padding: 16px;
    }

    .disclaimer-point {
        padding: 12px;
        gap: 12px;
    }

    .point-text strong {
        font-size: 1rem;
    }

    .point-text p {
        font-size: 0.9rem;
    }

    .disclaimer-footer p {
        font-size: 1rem;
    }

    .admin-container {
        max-width: 95%;
        max-height: 95vh;
    }

    .admin-header {
        padding: 18px 20px;
    }

    .admin-content {
        padding: 20px;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

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