/* الألوان والخطوط الأصلية من قالبك */
:root {
    --bg-main: #100f10;
    --bg-card: #1b1b1b;
    --text-primary: #d9e2f0;
    --text-secondary: #d9e2f0b3;
    --accent: #f97316;
    --border: #3a3c3d;
    --side-width: 280px;
    --header-height: 65px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    background: var(--bg-main); 
    color: var(--text-primary); 
    font-family: 'Noto Sans', 'Tajawal', sans-serif; 
    direction: rtl;
    line-height: 1.6;
}

/* هيكل Median UI الأصلي */
.mainW { display: flex; flex-direction: column; min-height: 100vh; }
.mainH { 
    height: var(--header-height); 
    background: var(--bg-card); 
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 20px;
    position: sticky; top: 0; z-index: 100;
}
.mainN { display: flex; flex: 1; }
.mainL { width: var(--side-width); background: var(--bg-card); border-left: 1px solid var(--border); }
.mainR { flex: 1; padding: 30px; display: flex; justify-content: center; }
.mainC { width: 100%; max-width: 1100px; }

/* تصميم البطاقات - الترتيب المطلوب */
.user-details {
    display: flex; align-items: center; gap: 20px;
    background: var(--bg-card); padding: 25px;
    border-radius: 12px; border: 1px solid var(--border);
    margin-bottom: 30px;
}
#account-avatar { width: 80px; height: 80px; border-radius: 12px; border: 2px solid var(--accent); }

.sessions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* لظهور البطاقات جنباً إلى جنب */
    gap: 20px; margin-bottom: 30px;
}
.session-item {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 20px; border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center;
}
.session-details div { font-size: 14px; margin-bottom: 5px; }

/* الأزرار العريضة في الأسفل */
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.account-btn {
    padding: 15px; border-radius: 8px; text-align: center;
    font-weight: bold; text-decoration: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-primary { background: #fff; color: #000; border: none; }
.btn-secondary { background: #333; color: #fff; border: 1px solid var(--border); }

.hidden { display: none !important; }

@media (max-width: 896px) {
    .mainL { display: none; }
    .sessions-list { grid-template-columns: 1fr; }
}
