/* member/style.css - Mobile App Style */

:root {
    --bg-dark: #050505;
    --card-bg: #121218;
    /* الألوان الافتراضية (سيتم تحديثها ديناميكياً) */
    --neon-brand: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-red: #ff4757;
    --text-main: #ffffff;
    --text-muted: #8892b0;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Cairo', sans-serif;
    padding-bottom: 90px; /* مسافة للبار السفلي */
    min-height: 100vh;
    font-size: 14px;
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

/* --- Login Page Styles --- */
.login-container {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card {
    width: 100%; max-width: 380px;
    background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 24px; padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.brand-logo { text-align: center; margin-bottom: 30px; }
.brand-logo h1 { font-size: 1.8rem; font-weight: 800; margin: 0; letter-spacing: 1px; }
.input-group { position: relative; margin-bottom: 20px; }
.input-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--neon-brand); }
.form-control {
    width: 100%; padding: 14px 45px 14px 15px;
    background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border);
    border-radius: 12px; color: white; font-family: 'Cairo'; font-size: 0.95rem; transition: 0.2s;
}
.form-control:focus { border-color: var(--neon-brand); background: rgba(0,0,0,0.6); }
.btn-main {
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--neon-brand), var(--neon-purple));
    color: white; font-weight: 800; font-size: 1rem; cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); transition: 0.2s;
}
.btn-main:active { transform: scale(0.97); }

/* --- Dashboard & General --- */
.header { padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.greeting h1 { font-size: 1.3rem; margin: 0; font-weight: 700; }
.greeting span { font-size: 0.85rem; color: var(--text-muted); }
.avatar {
    width: 45px; height: 45px; background: linear-gradient(45deg, var(--neon-purple), var(--neon-brand));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.1rem; color: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

/* Subscription Cards */
.subs-container { padding: 0 20px; display: flex; flex-direction: column; gap: 15px; }
.sub-card {
    background: var(--card-bg); border-radius: 18px; padding: 18px; position: relative; overflow: hidden;
    border: 1px solid var(--border); box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.pkg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pkg-name { font-size: 1rem; font-weight: 800; color: white; }
.pkg-badge { font-size: 0.7rem; background: rgba(255,255,255,0.1); padding: 3px 8px; border-radius: 6px; }
.progress-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--neon-brand); width: 0%; transition: width 1s ease; }
.sub-info { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

/* Buttons & Actions */
.grid-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px; }
.menu-item {
    background: var(--card-bg); padding: 15px; border-radius: 14px; text-align: center;
    border: 1px solid var(--border); text-decoration: none; color: white; transition: 0.2s;
}
.menu-item:active { background: #222; transform: scale(0.98); }
.menu-item i { font-size: 1.4rem; margin-bottom: 8px; color: var(--neon-purple); display: block; }
.menu-item span { font-size: 0.85rem; font-weight: 600; }

/* Bottom Navbar */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-around; padding: 10px 0; z-index: 900;
    padding-bottom: env(safe-area-inset-bottom, 15px);
}
.nav-link {
    text-align: center; color: #666; text-decoration: none; font-size: 0.65rem;
    display: flex; flex-direction: column; align-items: center; gap: 5px; width: 60px;
    transition: 0.2s;
}
.nav-link i { font-size: 1.3rem; margin-bottom: 2px; }
.nav-link.active { color: var(--neon-brand); }
.nav-link.active i { transform: translateY(-2px); filter: drop-shadow(0 0 5px var(--neon-brand)); }

/* QR Floating Button */
.qr-fab {
    position: fixed; bottom: 90px; right: 20px; width: 55px; height: 55px;
    background: var(--neon-brand); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 25px rgba(0, 243, 255, 0.4); z-index: 800; cursor: pointer; color: black; font-size: 1.6rem;
    animation: bounce 3s infinite;
}
@keyframes bounce { 0%, 100% {transform: translateY(0);} 50% {transform: translateY(-6px);} }

/* Modals */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 1000; align-items: center; justify-content: center; flex-direction: column; animation: fadeIn 0.2s; }
.qr-box { background: white; padding: 25px; border-radius: 24px; text-align: center; width: 280px; }
.close-modal { margin-top: 25px; background: rgba(255,255,255,0.1); border: none; color: white; padding: 10px 30px; border-radius: 50px; font-family: 'Cairo'; }
@keyframes fadeIn { from {opacity:0} to {opacity:1} }

/* Alerts */
.alert { padding: 12px; border-radius: 10px; margin-bottom: 15px; font-size: 0.9rem; text-align: center; background: rgba(255,71,87,0.1); color: var(--neon-red); border: 1px solid var(--neon-red); }