:root {
    --bg: #000000;
    --card: #121212;
    --lime: #d4f808;
    --text: #ffffff;
    --muted: #848e9c;
    --red: #ff3b30;
    --green: #2ebd85;
    --border: #1e1e1e;
    --input-bg: #1c1c1e;
}

/* تحسينات عامة للجوال */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
    -webkit-tap-highlight-color: transparent; /* إزالة الوميض الأزرق عند الضغط في الأندرويد */
}

body { 
    background: var(--bg); 
    color: var(--text); 
    direction: rtl; 
    line-height: 1.5; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
}

/* حاوية الجوال المركزية */
.container { 
    max-width: 500px; 
    margin: 0 auto; 
    min-height: 100vh; 
    padding-bottom: 90px; 
    position: relative; 
    display: flex;
    flex-direction: column;
}

/* بطاقات احترافية (Shadow & Border) */
.card { 
    background: var(--card); 
    border-radius: 20px; 
    padding: 20px; 
    margin: 12px 16px; 
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* مدخلات متطورة (Inputs) */
input, select { 
    width: 100%; 
    background: var(--input-bg); 
    border: 1px solid #2b2b2e; 
    color: white; 
    padding: 16px; 
    border-radius: 14px; 
    margin-bottom: 15px; 
    outline: none; 
    transition: all 0.3s ease;
    font-size: 15px;
}
input:focus { 
    border-color: var(--lime); 
    box-shadow: 0 0 12px rgba(212, 248, 8, 0.15);
    background: #242426;
}

/* أزرار عصرية (Buttons) */
.btn-primary { 
    background: var(--lime); 
    color: #000; 
    font-weight: 700; 
    border: none; 
    padding: 18px; 
    border-radius: 14px; 
    width: 100%; 
    cursor: pointer; 
    font-size: 16px; 
    transition: transform 0.1s ease, opacity 0.2s;
    box-shadow: 0 4px 15px rgba(212, 248, 8, 0.2);
}
.btn-primary:active { 
    transform: scale(0.96); 
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
    padding: 14px;
    border-radius: 14px;
    width: 100%;
    font-weight: 600;
}

/* القائمة السفلية بنمط زجاجي متطور (Glassmorphism) */
.nav-bottom {
    position: fixed; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%);
    width: 100%; 
    max-width: 500px; 
    background: rgba(10, 10, 10, 0.85);
    display: flex; 
    justify-content: space-around; 
    padding: 10px 0 calc(env(safe-area-inset-bottom) + 10px); /* دعم هواتف الآيفون الجديدة */
    border-top: 1px solid var(--border); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    z-index: 1000;
}
.nav-item { 
    color: var(--muted); 
    text-decoration: none; 
    font-size: 10px; 
    text-align: center; 
    flex: 1; 
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nav-item i { 
    font-size: 22px; 
    margin-bottom: 4px; 
}
.nav-item.active { 
    color: var(--lime); 
}

/* قوائم العملات (Market List) */
.list-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 16px 20px; 
    border-bottom: 1px solid var(--border); 
    transition: background 0.2s;
}
.list-item:active { 
    background: #161618; 
}

/* أوسمة الحالة (Badges) */
.badge-up { color: var(--green); font-weight: 600; }
.badge-down { color: var(--red); font-weight: 600; }

.price-box {
    text-align: left;
}