/* --- استيراد الخطوط --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

:root {
    --bg-dark: #001a11;  /* أخضر غامق جداً للخلفية */
    --glass-bg: rgba(1, 50, 32, 0.7); /* أخضر زجاجي */
    --gold: #FFD700;
    --gold-dim: #c4a45a;
    --white: #ffffff;
    --red: #ff4d4d;
    --green: #2ecc71;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 50%, #013220 0%, #00100a 100%);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    min-height: 100vh;
    padding-bottom: 70px; /* للموبايل */
}

/* --- الأنيميشن (Fire Style) --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); } }

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.8s ease-out;
}

/* --- الكروت الزجاجية (Glass Cards) --- */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(196, 164, 90, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s;
}

.glass-card:hover { transform: translateY(-5px); border-color: var(--gold); }

/* --- Navbar --- */
.navbar {
    background: rgba(0, 20, 10, 0.95);
    padding: 15px 20px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo img { height: 45px; }

/* --- الأزرار والحقول --- */
input, select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--gold-dim);
    color: var(--white);
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-family: 'Cairo';
    font-size: 1rem;
    transition: 0.3s;
}
input:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.15); }

.btn-gold {
    background: linear-gradient(45deg, var(--gold-dim), var(--gold));
    color: #000;
    font-weight: 800;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(196, 164, 90, 0.4);
    transition: 0.3s;
}
.btn-gold:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(196, 164, 90, 0.6); }

/* --- التنبيهات --- */
.alert { padding: 15px; border-radius: 10px; margin-bottom: 15px; text-align: center; font-weight: bold; }
.alert-error { background: rgba(255, 77, 77, 0.2); border: 1px solid var(--red); color: var(--red); }
.alert-success { background: rgba(46, 204, 113, 0.2); border: 1px solid var(--green); color: var(--green); }

/* --- Sidebar --- */
.sidebar {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
    background: linear-gradient(180deg, #002215, #000);
    border-left: 2px solid var(--gold);
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    padding-top: 60px;
}
.sidebar.active { right: 0; }
.sidebar a {
    display: block; padding: 15px 25px; color: var(--white);
    text-decoration: none; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}
.sidebar a:hover { padding-right: 35px; background: rgba(196, 164, 90, 0.2); color: var(--gold); }

/* --- Balance Badge --- */
.balance-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000; padding: 8px 15px; border-radius: 50px;
    font-weight: bold; font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite;
}

/* --- Loader --- */
.loader { border: 4px solid rgba(255,255,255,0.1); border-top: 4px solid var(--gold); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
