/* --- الإضافات الجديدة لـ CSS --- */
.app-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; margin-bottom: 25px; }
.header-titles { text-align: center; }
.settings-btn { font-size: 1.2rem; color: #8e44ad; cursor: pointer; transition: 0.3s; }
.settings-btn:hover { transform: rotate(90deg); }

.overlay { position: fixed; inset: 0; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(20px); z-index: 6000; display: none; justify-content: center; align-items: center; }
.setting-item { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; background: rgba(255,255,255,0.4); padding: 10px 15px; border-radius: 15px; }
.setting-item span { font-weight: bold; }
#lang-toggle-btn { width: auto; padding: 5px 20px; margin: 0; }

/* دعم اللغات LTR */
[dir="ltr"] .advice-card { border-left: none; border-right: 6px solid #8e44ad; }
[dir="ltr"] .sound-row i { order: 2; }
[dir="ltr"] .nav-bar { font-family: sans-serif; }

/* بقية الاستايلات السابقة (Aurora) كما هي */
:root { --bg-aurora: linear-gradient(215deg, #a88beb 0%, #f8ceec 50%, #66a6ff 100%); --glass: rgba(255, 255, 255, 0.25); --glass-border: rgba(255, 255, 255, 0.4); --primary-btn: #8e44ad; --text-main: #2c3e50; --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Cairo', sans-serif; background: var(--bg-aurora); background-attachment: fixed; color: var(--text-main); margin: 0; padding: 0; height: 100vh; overflow: hidden; }
#splash { position: fixed; inset: 0; background: #fff; z-index: 10000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.8s; }
.brain-logo { font-size: 5rem; color: #8e44ad; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px #8e44ad); } 50% { transform: scale(1.1); filter: drop-shadow(0 0 20px #8e44ad); } }
.main-title { font-size: 2.2rem; font-weight: 900; margin-top: 15px; }
.sub-title { font-size: 0.9rem; opacity: 0.6; letter-spacing: 2px; }
#auth-screen { position: fixed; inset: 0; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(15px); z-index: 999; display: none; justify-content: center; align-items: center; }
.auth-card { width: 90%; max-width: 400px; background: var(--glass); border-radius: 30px; padding: 30px; text-align: center; border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.app-wrapper { display: none; height: 100vh; width: 100%; max-width: 550px; margin: 0 auto; flex-direction: column; position: relative; }
.content-area { flex: 1; overflow-y: auto; padding: 20px 20px 120px 20px; scroll-behavior: smooth; scrollbar-width: none; }
.content-area::-webkit-scrollbar { display: none; }
.card { background: var(--glass); border-radius: 30px; padding: 25px; margin-bottom: 20px; border: 1px solid var(--glass-border); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.advice-card { background: rgba(142, 68, 173, 0.1); border-left: 6px solid #8e44ad; }
input, textarea { width: 100%; padding: 14px; margin: 10px 0; border-radius: 15px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.5); font-family: inherit; outline: none; }
.btn-primary { width: 100%; padding: 15px; background: var(--primary-btn); border: none; border-radius: 15px; color: white; font-weight: 900; cursor: pointer; }
.success-btn { background: #2ecc71; margin-top: 10px; }
.mood-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mood-btn { background: rgba(255,255,255,0.4); padding: 15px 5px; border-radius: 20px; text-align: center; cursor: pointer; font-size: 0.7rem; transition: 0.3s; border: 1px solid transparent; }
.mood-btn.active { background: white; border-color: #8e44ad; transform: translateY(-3px); }
.xp-bar { height: 12px; background: rgba(0,0,0,0.05); border-radius: 10px; margin-top: 10px; overflow: hidden; }
.xp-fill { height: 100%; background: linear-gradient(90deg, #2ecc71, #27ae60); width: 0%; transition: 0.8s; }
.nav-bar { position: absolute; bottom: 15px; left: 15px; right: 15px; height: 75px; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); display: flex; justify-content: space-around; align-items: center; border-radius: 25px; border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.nav-item { color: rgba(0,0,0,0.3); text-align: center; font-size: 0.8rem; cursor: pointer; }
.nav-item.active { color: #8e44ad; font-weight: bold; }
.nav-item i { font-size: 1.5rem; display: block; margin-bottom: 2px; }
.jar { min-height: 140px; border: 3px solid var(--glass-border); border-top: none; border-radius: 0 0 70px 70px; margin-top: 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 20px; }
.note { background: #fff; color: #333; padding: 6px 12px; font-size: 0.7rem; box-shadow: 2px 5px 10px rgba(0,0,0,0.1); transform: rotate(var(--r)); border-radius: 5px; }
.sos-btn { width: 110px; height: 110px; border-radius: 50%; background: #ff7675; border: 4px solid white; color: white; font-weight: 900; animation: pulse-red 2s infinite; font-size: 1.3rem; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(255,118,117,0.7); } 70% { box-shadow: 0 0 0 20px rgba(255,118,117,0); } 100% { box-shadow: 0 0 0 0 rgba(255,118,117,0); } }
#breath-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.95); z-index: 3000; display: none; flex-direction: column; justify-content: center; align-items: center; }
.circle { width: 160px; height: 160px; background: #a88beb; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 900; color: white; transition: 4s ease-in-out; }
.circle.expand { transform: scale(2.2); }
#burnout-overlay { position: fixed; inset: 0; background: white; z-index: 4000; display: none; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px; }
#timer { font-size: 3.5rem; font-weight: 900; color: #8e44ad; }
#toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: #2c3e50; color: white; padding: 12px 25px; border-radius: 50px; display: none; z-index: 5000; font-weight: bold; }