:root {
    --primary: #1e3c72;
    --primary-light: #2a5298;
    --accent: #27ae60;
    --danger: #e74c3c;
    --bg: #f4f7f6;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.98);
    --border: #e8eef3;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; }
body { 
    background-color: var(--bg); 
    background-image: 
        radial-gradient(at 0% 0%, hsla(218,52%,95%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(205,60%,92%,1) 0, transparent 50%);
    color: var(--text-main); 
    min-height: 100vh; 
    direction: rtl; 
}
.hidden { display: none !important; }
.glass-card { 
    background: var(--glass-bg); 
    border-radius: 20px; 
    padding: 30px; 
    box-shadow: var(--shadow); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5); 
    margin-bottom: 25px; 
}
.app-container { max-width: 1000px; margin: 0 auto; padding: 20px; }
.main-header { text-align: center; margin-bottom: 40px; padding-top: 20px; }
.logo { font-size: 2.2rem; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.welcome-text { color: var(--text-muted); font-size: 1rem; }
.hero-section { text-align: center; max-width: 700px; margin: 0 auto 40px auto; }
.hero-section h2 { color: var(--primary); margin-bottom: 15px; }
.hero-section p { line-height: 1.6; color: #5d6d7e; margin-bottom: 25px; }
.input-group { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.input-group input { flex: 1; min-width: 280px; padding: 18px 25px; border: 2px solid var(--border); border-radius: 12px; font-size: 1rem; outline: none; text-align: center; transition: 0.3s; }
.input-group input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); border: none; padding: 15px 35px; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3); }
.user-greeting { margin-bottom: 25px; border-bottom: 2px solid #f0f4f8; padding-bottom: 15px; }
.salutation { font-size: 1.1rem; color: var(--text-muted); }
.account-name { font-size: 1.8rem; color: var(--primary); font-weight: 800; }
.account-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 25px; }
.summary-item { padding: 15px; background: #f8fbff; border-radius: 12px; display: flex; flex-direction: column; gap: 5px; }
.summary-item .label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.summary-item .value { font-size: 1.1rem; font-weight: 700; }
.summary-item.highlight-item { background: #eefdf3; border: 1px solid #d4f4e0; }
.summary-item .value.balance { color: var(--accent); font-size: 1.3rem; }
.action-buttons { display: flex; gap: 15px; }
.btn-secondary { background: #ffffff; border: 2px solid var(--border); padding: 12px 25px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.btn-secondary:hover { background: #f1f4f8; }
.btn-outline { text-decoration: none; color: var(--primary); border: 2px solid var(--primary); padding: 10px 25px; border-radius: 10px; font-weight: 700; display: flex; align-items: center; transition: 0.2s; }
.btn-outline:hover { background: var(--primary); color: white; }
.table-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 15px; color: var(--primary); padding-right: 10px; }
.table-wrapper { padding: 10px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th { background: #f8fafc; color: var(--primary); font-weight: 700; padding: 18px 15px; border-bottom: 2px solid var(--border); text-align: right; }
td { padding: 15px; border-bottom: 1px solid #f1f5f9; }
td.debit { color: var(--danger); font-weight: 600; }
td.credit { color: var(--accent); font-weight: 600; }
td.balance { font-weight: 800; background: #fcfdfe; }
.statement-footer { text-align: center; margin-top: 40px; padding: 20px; border-top: 1px dashed var(--border); color: var(--text-muted); font-style: italic; }
.error-msg { color: var(--danger); margin-top: 15px; font-weight: 700; }
.spinner { width: 40px; height: 40px; border: 4px solid #ddd; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .btn-primary { width: 100%; padding: 15px; } .action-buttons { flex-direction: column; } }
@media print { .no-print, .hero-section, header { display: none !important; } .glass-card { box-shadow: none; border: 1px solid #eee; } }
