* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b132b; /* لون خلفية أزرق غامق مريح */
    color: #e0e1dd; /* لون خط فاتح للتباين */
}

.hidden {
    display: none !important;
}

/* واجهة تسجيل الدخول */
#login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background-color: #1c2541;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    text-align: center;
    width: 350px;
}

.logo {
    width: 120px;
    margin-bottom: 20px;
}

.login-box h2 {
    margin-bottom: 25px;
    color: #fff;
    font-size: 1.4em;
}

.input-group {
    margin-bottom: 20px;
    text-align: right;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #a3bac3;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #3a506b;
    border-radius: 6px;
    background-color: #0b132b;
    color: #fff;
    outline: none;
    font-size: 1em;
}

.input-group input:focus {
    border-color: #5bc0be;
}

.error {
    color: #ff4d4d;
    margin-top: 15px;
    font-size: 0.9em;
}

/* الشريط العلوي */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1c2541;
    padding: 15px 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-logo {
    width: 50px;
}

.logo-area h1 {
    font-size: 1.5em;
    color: #5bc0be;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 1.1em;
}

.balance {
    color: #5bc0be;
    font-weight: bold;
    background: rgba(91, 192, 190, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

/* الأزرار وحركاتها */
.btn {
    background-color: #3a506b;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s;
}

.btn:hover {
    background-color: #5bc0be;
    color: #0b132b;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 15px rgba(91, 192, 190, 0.4);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.deposit-btn {
    background-color: #5bc0be;
    color: #0b132b;
    font-weight: bold;
}

/* المنتجات (الاستثمارات) */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px;
}

.product-card {
    background-color: #1c2541;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #ffffff10; 
    margin-bottom: 20px;
    padding: 10px;
}

.product-card h3 {
    color: #5bc0be;
    margin-bottom: 20px;
    font-size: 1.2em;
    min-height: 50px;
}

.product-details {
    text-align: right;
    margin-bottom: 25px;
    color: #a3bac3;
    line-height: 1.8;
    flex-grow: 1;
}

.product-details span {
    color: #fff;
    font-weight: bold;
}

.invest-btn {
    width: 100%;
    background-color: #5bc0be;
    color: #0b132b;
    font-weight: bold;
}