/* Islamic Astrology — SAGE Empire */
:root {
    --midnight: #0a0e1a;
    --midnight-light: #12182b;
    --emerald: #27ae60;
    --emerald-dark: #1e8449;
    --crescent-gold: #d4af37;
    --crescent-gold-light: #f4d03f;
    --lapis: #2980b9;
    --lapis-dark: #1a5276;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #6c757d;
    --border: rgba(212, 175, 55, 0.2);
    --card-bg: rgba(18, 24, 43, 0.85);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Amiri', 'Noto Sans SC', 'Noto Sans JP', serif;
    background: var(--midnight);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}
.geo-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(41, 128, 185, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none; z-index: -2;
}
.stars-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
                      radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
                      radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), transparent),
                      radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.2), transparent);
    background-size: 200px 200px;
    pointer-events: none; z-index: -1;
    animation: twinkle 8s ease-in-out infinite;
}
@keyframes twinkle { 0%,100%{opacity:0.8} 50%{opacity:0.4} }
.main-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(10, 14, 26, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(10px);
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--crescent-gold); }
.nav-icon { font-size: 1.5rem; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--crescent-gold); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--crescent-gold); }
.lang-selector select { background: var(--midnight-light); color: var(--text-primary); border: 1px solid var(--border); padding: 0.4rem 0.8rem; border-radius: 4px; font-family: inherit; cursor: pointer; }
.mobile-menu-toggle { display: none; }
.main-content { min-height: calc(100vh - 140px); }
.hero { position: relative; min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; overflow: hidden; }
.hero-geometric { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.geo-star { position: absolute; width: 300px; height: 300px; border: 1px solid rgba(212, 175, 55, 0.1); transform: rotate(45deg); top: 10%; left: 10%; }
.geo-star-2 { width: 400px; height: 400px; top: 50%; right: 5%; left: auto; border-color: rgba(41, 128, 185, 0.1); }
.geo-star-3 { width: 200px; height: 200px; bottom: 10%; left: 50%; top: auto; border-color: rgba(39, 174, 96, 0.1); }
.crescent-moon { position: absolute; font-size: 15rem; opacity: 0.03; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-title { font-family: 'Scheherazade New', 'Cinzel', serif; font-size: 4rem; color: var(--crescent-gold); margin-bottom: 0.5rem; text-shadow: 0 0 40px rgba(212, 175, 55, 0.3); }
.hero-tagline { font-size: 1.4rem; color: var(--text-secondary); margin-bottom: 1.5rem; font-style: italic; }
.hero-hijri { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.hijri-badge, .gregorian-badge { background: rgba(212, 175, 55, 0.1); border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.95rem; }
.cta-button { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, var(--crescent-gold), var(--crescent-gold-light)); color: var(--midnight); padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 1.1rem; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3); }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4); }
.hero-scroll { position: absolute; bottom: 2rem; font-size: 2rem; animation: bounce 2s infinite; color: var(--crescent-gold); opacity: 0.6; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
.section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-family: 'Cinzel', serif; font-size: 2.2rem; color: var(--crescent-gold); margin-bottom: 0.5rem; }
.section-line { width: 60px; height: 2px; background: linear-gradient(90deg, transparent, var(--crescent-gold), transparent); margin: 0.5rem auto; }
.section-subtitle { color: var(--text-secondary); font-size: 1.1rem; }
.section-cta { text-align: center; margin-top: 2rem; }
.btn-primary, .btn-secondary { display: inline-block; padding: 0.8rem 1.8rem; border-radius: 6px; text-decoration: none; font-weight: bold; transition: all 0.3s; cursor: pointer; border: none; font-family: inherit; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--emerald), var(--emerald-dark)); color: white; box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4); }
.btn-secondary { background: transparent; color: var(--crescent-gold); border: 1px solid var(--crescent-gold); }
.btn-secondary:hover { background: rgba(212, 175, 55, 0.1); }
.buruj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.buruj-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; text-align: center; text-decoration: none; color: inherit; transition: transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
.buruj-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--crescent-gold); opacity: 0; transition: opacity 0.3s; }
.buruj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.buruj-card:hover::before { opacity: 1; }
.buruj-symbol { font-size: 3rem; margin-bottom: 0.5rem; }
.buruj-name { display: flex; flex-direction: column; gap: 0.2rem; }
.ar-name { font-family: 'Scheherazade New', serif; font-size: 1.5rem; color: var(--crescent-gold); }
.en-name { font-size: 0.9rem; color: var(--text-secondary); }
.buruj-meta { margin-top: 0.8rem; }
.element-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; color: white; }
.element-fire { border-color: rgba(192, 57, 43, 0.3); }
.element-earth { border-color: rgba(39, 174, 96, 0.3); }
.element-air { border-color: rgba(243, 156, 18, 0.3); }
.element-water { border-color: rgba(41, 128, 185, 0.3); }
.mansions-orbit { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; position: relative; padding: 2rem; }
.mansion-node { background: var(--card-bg); border: 1px solid var(--border); border-radius: 50%; width: 100px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: inherit; transition: all 0.3s; position: relative; }
.mansion-node:hover { transform: scale(1.1); border-color: var(--crescent-gold); box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
.mansion-number { font-family: 'Cinzel', serif; font-size: 1.2rem; color: var(--crescent-gold); }
.mansion-name { font-size: 0.7rem; color: var(--text-secondary); }
.mansion-meaning { font-size: 0.6rem; color: var(--text-muted); }
.orbit-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; opacity: 0.2; pointer-events: none; }
.festivals-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.festival-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; border-top: 3px solid; }
.festival-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.festival-name { font-size: 1.2rem; color: var(--crescent-gold); }
.festival-ar { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.festival-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.festival-type { display: inline-block; background: rgba(255,255,255,0.05); padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem; text-transform: uppercase; }
.qibla-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 3rem; text-align: center; max-width: 500px; margin: 0 auto; }
.qibla-kaaba { font-size: 4rem; margin-bottom: 1rem; }
.qibla-text { color: var(--text-secondary); margin-bottom: 1.5rem; }
.empire-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.empire-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; text-decoration: none; color: inherit; transition: all 0.3s; }
.empire-card:hover { transform: translateY(-3px); border-color: var(--crescent-gold); }
.empire-card.active { border-color: var(--emerald); background: rgba(39, 174, 96, 0.05); }
.empire-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.empire-name { font-size: 0.9rem; color: var(--text-secondary); }
.scholars-banner { background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(41, 128, 185, 0.05)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3rem 2rem; text-align: center; }
.scholars-quote { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--crescent-gold); font-style: italic; max-width: 700px; margin: 0 auto 1rem; }
.scholars-attribution { color: var(--text-muted); }
.main-footer { background: rgba(10, 14, 26, 0.98); border-top: 1px solid var(--border); padding: 2rem; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.footer-icon { font-size: 1.5rem; color: var(--crescent-gold); }
.footer-scholars { color: var(--text-muted); font-size: 0.9rem; }
.page-header { position: relative; padding: 4rem 2rem; text-align: center; background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), transparent); }
.page-title { font-family: 'Cinzel', serif; font-size: 2.5rem; color: var(--crescent-gold); margin-bottom: 0.5rem; }
.page-subtitle { color: var(--text-secondary); font-size: 1.1rem; }
.buruj-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.buruj-full-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: all 0.3s; }
.buruj-full-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-header { padding: 1.5rem; text-align: center; position: relative; }
.card-symbol { font-size: 3rem; }
.card-element { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; opacity: 0.6; }
.card-body { padding: 1.5rem; }
.card-ar-name { font-family: 'Scheherazade New', serif; font-size: 1.8rem; color: var(--crescent-gold); }
.card-trans { color: var(--text-secondary); font-size: 0.95rem; }
.card-en-name { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.8rem; }
.card-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.meta-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; background: rgba(255,255,255,0.05); }
.meta-badge.quality { color: var(--lapis); }
.meta-badge.ruler { color: var(--emerald); }
.card-degrees { color: var(--text-muted); font-size: 0.85rem; }
.elements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.element-card { background: var(--card-bg); border: 1px solid; border-radius: 12px; padding: 2rem; text-align: center; }
.element-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.element-ar { color: var(--text-muted); font-size: 0.9rem; }
.sign-hero { position: relative; padding: 4rem 2rem; text-align: center; overflow: hidden; }
.sign-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.sign-hero-content { position: relative; z-index: 1; }
.sign-symbol-large { font-size: 5rem; margin-bottom: 1rem; }
.sign-ar-name { font-family: 'Scheherazade New', serif; font-size: 3rem; color: var(--crescent-gold); }
.sign-trans { font-size: 1.5rem; color: var(--text-secondary); }
.sign-en-name { color: var(--text-muted); margin-bottom: 1rem; }
.sign-badges { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.badge { display: inline-block; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; color: white; }
.description-card, .traits-grid, .famous-grid, .degrees-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.desc-text { font-size: 1.1rem; line-height: 1.8; }
.traits-grid, .famous-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.trait-card, .famous-card { display: flex; align-items: center; gap: 0.5rem; padding: 1rem; background: rgba(255,255,255,0.03); border-radius: 8px; }
.trait-icon { color: var(--crescent-gold); }
.degrees-card { text-align: center; }
.degree-range { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--crescent-gold); }
.degree-month { color: var(--text-muted); margin-top: 0.5rem; }
.mansions-track { display: flex; flex-direction: column; gap: 1rem; }
.mansion-track-card { display: flex; align-items: center; gap: 1.5rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; text-decoration: none; color: inherit; transition: all 0.3s; }
.mansion-track-card:hover { transform: translateX(5px); border-color: var(--crescent-gold); }
.mansion-track-number { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--crescent-gold); min-width: 50px; text-align: center; }
.mansion-track-name { font-family: 'Scheherazade New', serif; font-size: 1.3rem; color: var(--crescent-gold); }
.mansion-track-trans { color: var(--text-secondary); font-size: 0.9rem; }
.mansion-track-meaning { color: var(--text-muted); font-size: 0.85rem; }
.mansion-track-meta { display: flex; gap: 0.5rem; margin-top: 0.3rem; flex-wrap: wrap; }
.nature-badge, .degrees-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; color: white; }
.degrees-badge { background: rgba(255,255,255,0.1); }
.mansion-hero { position: relative; padding: 4rem 2rem; text-align: center; }
.mansion-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.mansion-number-large { font-family: 'Cinzel', serif; font-size: 4rem; color: var(--crescent-gold); opacity: 0.5; }
.mansion-ar-name { font-family: 'Scheherazade New', serif; font-size: 2.5rem; color: var(--crescent-gold); }
.mansion-trans { font-size: 1.3rem; color: var(--text-secondary); }
.mansion-meaning { color: var(--text-muted); margin-bottom: 1rem; }
.mansion-badges { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.converter-tabs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.tab-btn { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); padding: 0.8rem 1.5rem; border-radius: 6px; cursor: pointer; font-family: inherit; transition: all 0.3s; }
.tab-btn.active { background: var(--crescent-gold); color: var(--midnight); border-color: var(--crescent-gold); }
.converter-panel { display: none; }
.converter-panel.active { display: block; }
.converter-form { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; max-width: 600px; margin: 0 auto 1.5rem; }
.form-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 120px; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; }
.form-group input, .form-group select { width: 100%; background: var(--midnight); border: 1px solid var(--border); color: var(--text-primary); padding: 0.6rem; border-radius: 6px; font-family: inherit; }
.converter-result { max-width: 600px; margin: 0 auto; }
.result-placeholder { text-align: center; color: var(--text-muted); padding: 2rem; }
.result-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; text-align: center; }
.result-label { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.3rem; }
.result-value { display: block; font-family: 'Cinzel', serif; font-size: 1.8rem; color: var(--crescent-gold); }
.months-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.month-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; text-align: center; position: relative; }
.month-card.sacred { border-color: var(--crescent-gold); background: rgba(212, 175, 55, 0.05); }
.month-number { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--crescent-gold); }
.month-name { margin: 0.3rem 0; }
.ar-name { font-family: 'Scheherazade New', serif; font-size: 1.2rem; color: var(--crescent-gold); }
.trans-name { color: var(--text-secondary); font-size: 0.9rem; }
.month-days { color: var(--text-muted); font-size: 0.85rem; }
.month-sacred { position: absolute; top: 0.5rem; right: 0.5rem; font-size: 0.75rem; color: var(--crescent-gold); }
.festivals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.festival-full-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; border-top: 3px solid; }
.festival-header { padding: 1.5rem; text-align: center; }
.festival-icon-large { font-size: 3rem; margin-bottom: 0.5rem; }
.festival-name { font-size: 1.3rem; color: var(--crescent-gold); }
.festival-ar-name { color: var(--text-secondary); font-size: 0.9rem; }
.festival-body { padding: 1.5rem; }
.festival-desc { margin-bottom: 1rem; line-height: 1.6; }
.festival-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.meta-type, .meta-month, .meta-duration { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem; background: rgba(255,255,255,0.05); }
.festival-significance h4 { color: var(--crescent-gold); margin-bottom: 0.3rem; }
.festival-significance p { color: var(--text-secondary); font-size: 0.95rem; }
.qibla-section { max-width: 700px; margin: 0 auto; }
.qibla-card-large { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.qibla-compass { width: 250px; height: 250px; margin: 0 auto 2rem; position: relative; border: 2px solid var(--crescent-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.compass-rose { width: 200px; height: 200px; border-radius: 50%; border: 1px solid var(--border); position: relative; display: flex; align-items: center; justify-content: center; }
.compass-needle { font-size: 2rem; color: var(--crescent-gold); transition: transform 1s ease; }
.compass-directions { position: absolute; width: 100%; height: 100%; }
.dir-n { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); color: var(--crescent-gold); }
.dir-e { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }
.dir-s { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); }
.dir-w { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); }
.kaaba-marker { position: absolute; font-size: 1.5rem; opacity: 0.3; }
.qibla-controls { margin-bottom: 1.5rem; }
.qibla-controls .form-group { margin-bottom: 1rem; }
.qibla-result { text-align: center; }
.compatibility-section { max-width: 600px; margin: 0 auto; }
.compatibility-form { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; margin-bottom: 2rem; }
.form-intro { text-align: center; color: var(--text-secondary); margin-bottom: 1.5rem; }
.sign-selectors { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.selector-group { flex: 1; min-width: 150px; }
.selector-group label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); }
.selector-group select { width: 100%; background: var(--midnight); border: 1px solid var(--border); color: var(--text-primary); padding: 0.6rem; border-radius: 6px; font-family: inherit; }
.selector-connector { font-size: 1.5rem; color: var(--crescent-gold); }
.compatibility-result { text-align: center; }
.result-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.result-title { color: var(--crescent-gold); margin-bottom: 1rem; }
.score-ring { width: 120px; height: 120px; border-radius: 50%; border: 4px solid; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.score-value { font-family: 'Cinzel', serif; font-size: 1.8rem; }
.rating-badge { display: inline-block; padding: 0.4rem 1.2rem; border-radius: 20px; color: white; margin-bottom: 1rem; }
.reasons-list { text-align: left; max-width: 400px; margin: 0 auto; }
.reason-item { padding: 0.5rem 0; color: var(--text-secondary); }
.reading-header { background: linear-gradient(180deg, rgba(142, 68, 173, 0.05), transparent); }
.daily-reading { max-width: 700px; margin: 0 auto; }
.reading-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.reading-card > div { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.reading-card > div:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.reading-card h3 { color: var(--crescent-gold); margin-bottom: 1rem; }
.focus-sign { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.focus-symbol { font-size: 2.5rem; }
.focus-name { font-family: 'Scheherazade New', serif; font-size: 1.5rem; color: var(--crescent-gold); }
.focus-trans { color: var(--text-secondary); }
.focus-desc { color: var(--text-secondary); line-height: 1.7; }
.mansion-focus { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.mansion-num { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--crescent-gold); }
.mansion-name { font-family: 'Scheherazade New', serif; font-size: 1.3rem; color: var(--crescent-gold); }
.mansion-trans { color: var(--text-secondary); }
.mansion-influence { color: var(--text-secondary); margin-bottom: 0.5rem; }
.mansion-talisman { color: var(--emerald); }
.empire-header { background: linear-gradient(180deg, rgba(39, 174, 96, 0.05), transparent); }
.empire-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.empire-site-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; text-align: center; text-decoration: none; color: inherit; transition: all 0.3s; }
.empire-site-card:hover { transform: translateY(-5px); border-color: var(--crescent-gold); box-shadow: var(--shadow); }
.site-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.site-name { color: var(--crescent-gold); margin-bottom: 0.3rem; }
.site-desc { color: var(--text-muted); font-size: 0.9rem; }
.error-section { text-align: center; padding: 6rem 2rem; }
.error-code { font-family: 'Cinzel', serif; font-size: 8rem; color: var(--crescent-gold); opacity: 0.3; }
.error-title { font-size: 2rem; color: var(--text-secondary); margin-bottom: 1rem; }
.error-text { color: var(--text-muted); margin-bottom: 2rem; }
.nav-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.info-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; line-height: 1.8; }
.info-card p { margin-bottom: 1rem; }
.legend-grid { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; }
.legend-color { width: 20px; height: 20px; border-radius: 4px; }
.legend-badge { font-size: 1.2rem; }
.legend-label { color: var(--text-secondary); }
body.rtl { direction: rtl; }
body.rtl .nav-links { flex-direction: row-reverse; }
body.rtl .buruj-full-grid { direction: rtl; }
body.rtl .mansion-track-card:hover { transform: translateX(-5px); }
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; font-size: 1.5rem; color: var(--crescent-gold); cursor: pointer; }
    .section { padding: 2rem 1rem; }
    .buruj-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { flex-direction: column; }
    .sign-selectors { flex-direction: column; }
    .selector-connector { transform: rotate(90deg); }
}
