:root {
    --primary: #e6007e;      /* بينك/فوشيا KidZania Go */
    --primary-dark: #a8005e;
    --gold: #f7941d;         /* برتقالي KidZania Go */
    --bg: #fff7f2;
    --card-bg: #ffffff;
    --text: #1f2937;
    --danger: #dc2626;
    --success: #16a34a;
    --border: #f3d9c4;
}

* { box-sizing: border-box; }

body {
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    direction: rtl;
}

.topbar {
    background: #ffffff;
    color: var(--text);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.topbar .user-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 14px;
}

.topbar a { color: var(--primary); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 16px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 24px;
    margin-bottom: 20px;
}

.card h2 {
    margin-top: 0;
    color: var(--primary-dark);
    font-size: 18px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
}

input[type=text], input[type=password], input[type=number], select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
}

label { font-weight: bold; display: block; margin-bottom: 6px; font-size: 14px; }

button, .btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}
button:hover, .btn:hover { background: var(--primary-dark); }
.btn-gold { background: var(--gold); color: #1f2937; }
.btn-danger { background: var(--danger); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 10px; text-align: right; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #f0f2f1; }

.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.badge-exchange { background: #fef3c7; color: #92400e; }
.badge-deposit { background: #dcfce7; color: #166534; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-box { background: var(--card-bg); border-radius: 12px; padding: 18px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stat-box .num { font-size: 26px; font-weight: bold; color: var(--primary-dark); }
.stat-box .label { font-size: 13px; color: #666; margin-top: 4px; }

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { width: 100%; max-width: 380px; }
.login-box h1 { text-align: center; color: var(--primary-dark); }

/* اللوجوهات */
.logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}
.logos-row img { height: 44px; object-fit: contain; }
.topbar .logos-row { justify-content: flex-start; margin-bottom: 0; gap: 10px; }
.topbar .logos-row img { height: 24px; }

/* كشف الحساب - شكل بنكي */
.statement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.statement-header .logos-row { margin-bottom: 0; justify-content: flex-start; }
.statement-title { text-align: left; }
.statement-title h2 { border: none; margin: 0; }
.statement-title .sub { font-size: 12px; color: #666; }

.statement-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    background: #fdf2ea;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
}
.statement-info div span.lbl { display: block; font-size: 12px; color: #666; }
.statement-info div span.val { font-weight: bold; font-size: 15px; }

.balance-col { font-weight: bold; }

@media print {
    .topbar, .no-print, form button, .btn { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    .container { max-width: 100%; margin: 0; }
}
