:root{
  --panel:#131419; --panel-2:#1a1b22; --text:#f1f3f9; --muted:#a3a7b3;
  --accent:#7c4dff; --accent-2:#e50914; --glass:rgba(255,255,255,.06); --border:rgba(255,255,255,.08);
}

/* Header mini auth */
.mdb-header-auth{ display:flex; gap:10px; }

/* Profile dropdown */
.mdb-profile{ position:relative; }
.mdb-prof-btn{
  display:flex; align-items:center; gap:8px; background:var(--glass); color:#fff;
  border:1px solid var(--border); border-radius:12px; padding:6px 10px; cursor:pointer;
}
.mdb-prof-btn .avatar{
  width:26px; height:26px; border-radius:8px; background:#222 center/cover no-repeat;
  display:inline-flex; align-items:center; justify-content:center; font-weight:900; border:1px solid var(--border);
}
.mdb-prof-btn .name{ font-weight:800; font-size:12px; }
.mdb-prof-menu{
  position:absolute; right:0; top:calc(100% + 8px); background:var(--panel-2); border:1px solid var(--border);
  border-radius:12px; min-width:220px; box-shadow:0 18px 40px rgba(0,0,0,.45); padding:8px; z-index:120;
}
.mdb-prof-menu a, .mdb-prof-menu button.logout{ display:block; width:100%; text-align:left; padding:8px 10px; border-radius:8px; border:1px solid transparent; color:#fff; background:transparent; cursor:pointer; }
.mdb-prof-menu a:hover, .mdb-prof-menu button.logout:hover{ background:var(--glass); border-color:var(--border); }

/* Auth modal */
.mdb-auth-modal{ position:fixed; inset:0; background:rgba(0,0,0,.8); z-index:1000; display:none; }
.mdb-auth-modal.active{ display:flex; align-items:center; justify-content:center; }
.mdb-auth-dialog{ width:min(420px, 92vw); background:var(--panel-2); border:1px solid var(--border); border-radius:14px; box-shadow:0 22px 60px rgba(0,0,0,.6); padding:12px; }
.mdb-auth-close{ float:right; width:36px; height:36px; border-radius:10px; border:1px solid var(--border); background:var(--glass); color:#fff; cursor:pointer; }
.mdb-auth-tabs{ display:flex; gap:10px; margin:6px 0 10px; }
.mdb-auth-tabs .tab{ flex:1; background:var(--glass); color:#fff; border:1px solid var(--border); padding:10px; border-radius:10px; cursor:pointer; font-weight:800; }
.mdb-auth-tabs .tab.active{ background:var(--accent); }
.mdb-auth-content .form{ display:none; }
.mdb-auth-content .form.active{ display:block; }
.mdb-auth-content .row{ display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
.mdb-auth-content input{ background:#1c1d24; color:var(--text); border:1px solid var(--border); border-radius:10px; padding:10px 12px; }
.mdb-auth-content .row-flex{ flex-direction:row; align-items:center; justify-content:space-between; }
.mdb-auth-content .small{ font-size:12px; color:var(--muted); }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; cursor:pointer; border-radius:10px; padding:10px 14px; font-weight:800; }
.btn-cta{ background:var(--accent-2); color:#fff; }
.full{ width:100%; }
.status{ margin-top:8px; font-size:13px; color:#ffd966; }

/* Profile page */
.mdb-prof-page .mdb-prof-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.mdb-prof-page .ptab{ background:var(--glass); color:#fff; border:1px solid var(--border); padding:8px 10px; border-radius:10px; font-weight:800; cursor:pointer; }
.mdb-prof-page .ptab.active{ background:var(--accent); }
.mdb-prof-panels .ppanel{ display:none; background:var(--panel-2); border:1px solid var(--border); border-radius:12px; padding:12px; }
.mdb-prof-panels .ppanel.active{ display:block; }
.mdb-prof-page .row{ display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
.mdb-prof-page .row input, .mdb-prof-page .row select{ background:#1c1d24; color:var(--text); border:1px solid var(--border); border-radius:10px; padding:10px 12px; }
.mdb-prof-page .quick-links{ list-style:none; padding:0; margin:0; display:flex; gap:10px; flex-wrap:wrap; }
.mdb-prof-page .quick-links a{ background:var(--glass); border:1px solid var(--border); padding:6px 10px; border-radius:10px; }
.mdb-prof-guard{ background:var(--panel-2); border:1px solid var(--border); padding:12px; border-radius:12px; }

/* Account tab */
.mdb-acc-avatar{ display:flex; flex-direction:column; gap:8px; }
.avatar-preview{ width:72px; height:72px; border-radius:14px; background:#222 center/cover no-repeat; border:1px solid var(--border); }
.avatar-actions{ display:flex; gap:8px; }
.notice.error{ background:#3a1111; color:#fff; border:1px solid #a52222; padding:10px; border-radius:10px; margin:10px 0; }
