:root {
  --ink-950: #040b13;
  --ink-900: #07111d;
  --ink-850: #0b1b2d;
  --ink-800: #102943;
  --orange-500: #ff651f;
  --orange-400: #ff8a4d;
  --blue-400: #5ca8ff;
  --white: #ffffff;
  --paper: #f5f8fc;
  --muted: #91a0b4;
  --text: #eef4fb;
  --line: rgba(255,255,255,.09);
  --panel: rgba(255,255,255,.06);
  --shadow: 0 28px 80px rgba(0,0,0,.32);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 12%, rgba(255,101,31,.18), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(92,168,255,.12), transparent 26%),
    linear-gradient(145deg, var(--ink-950), var(--ink-900) 54%, #0c2035);
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.platform-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 20px;
  border-right: 1px solid var(--line);
  background: rgba(4,11,19,.78);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
}
.sidebar-brand img { width: 52px; height: 52px; object-fit: contain; }
.sidebar-brand strong { display: block; font: 700 18px/1.1 Outfit, sans-serif; }
.sidebar-brand small { color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: 9px; }
.sidebar-nav { display: grid; gap: 8px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: #afbdd0;
  font-weight: 600;
  transition: .22s ease;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,101,31,.17), rgba(92,168,255,.08));
  border: 1px solid rgba(255,255,255,.07);
}
.sidebar-nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
.user-mini {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.avatar {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg,var(--orange-500),var(--orange-400));
  color: #fff; font-weight: 800;
}
.user-mini strong { display: block; font-size: 13px; }
.user-mini small { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.sidebar-action {
  width: 100%; min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
}

.app-main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 76px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(6,15,26,.72);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mobile-menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: #fff;
}
.topbar-title strong { display: block; font: 700 20px/1.1 Outfit,sans-serif; }
.topbar-title small { color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: #fff;
  display: grid; place-items: center;
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.content { padding: 30px; }
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading h1 { margin: 0; font: 800 clamp(30px,4vw,48px)/1 Outfit,sans-serif; letter-spacing: -.03em; }
.page-heading p { margin: 10px 0 0; color: var(--muted); }
.primary-btn,
.secondary-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}
.primary-btn { color: #fff; border: 0; background: linear-gradient(135deg,var(--orange-500),var(--orange-400)); box-shadow: 0 15px 32px rgba(255,101,31,.22); }
.secondary-btn { color: #fff; border: 1px solid var(--line); background: var(--panel); }

.cards-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.stat-card,
.panel-card,
.course-card,
.table-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,.14);
}
.stat-card { padding: 20px; min-height: 148px; position: relative; overflow: hidden; }
.stat-card::after { content:""; position:absolute; width:120px; height:120px; border-radius:50%; right:-46px; bottom:-50px; background: radial-gradient(circle,rgba(255,101,31,.22),transparent 70%); }
.stat-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .11em; font-size: 10px; font-weight: 700; }
.stat-card strong { display:block; margin-top:15px; font:800 34px/1 Outfit,sans-serif; }
.stat-card span { display:block; margin-top:10px; color:#b9c5d4; font-size:12px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr); gap: 20px; margin-top: 20px; }
.panel-card { padding: 22px; }
.panel-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.panel-header h2 { margin:0; font:700 22px/1.1 Outfit,sans-serif; }
.panel-header a { color:var(--orange-400); font-size:13px; font-weight:700; }

.course-list { display:grid; gap:14px; }
.course-row {
  display:grid;
  grid-template-columns: 64px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.06);
}
.course-thumb { width:64px; height:64px; border-radius:17px; object-fit:cover; background:linear-gradient(135deg,#102943,#ff651f); }
.course-row h3 { margin:0 0 4px; font-size:15px; }
.course-row p { margin:0; color:var(--muted); font-size:12px; }
.progress { height:7px; border-radius:999px; background:rgba(255,255,255,.07); overflow:hidden; margin-top:10px; }
.progress span { display:block; height:100%; width:0; border-radius:inherit; background:linear-gradient(90deg,var(--orange-500),var(--blue-400)); }
.course-row .percent { color:#c6d1df; font-size:12px; font-weight:700; }

.announcement-list { display:grid; gap:12px; }
.announcement-item { padding:16px; border:1px solid rgba(255,255,255,.06); border-radius:17px; background:rgba(255,255,255,.03); }
.announcement-item small { color:var(--orange-400); font-weight:700; text-transform:uppercase; letter-spacing:.09em; }
.announcement-item h3 { margin:7px 0 5px; font-size:14px; }
.announcement-item p { margin:0; color:var(--muted); font-size:12px; }

.empty-state { padding:36px 20px; text-align:center; color:var(--muted); }
.empty-state strong { display:block; color:#fff; margin-bottom:6px; }
.loading-line { height:12px; border-radius:10px; background:linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.11),rgba(255,255,255,.04)); background-size:220% 100%; animation:shimmer 1.5s linear infinite; }

.login-page {
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);
}
.login-visual {
  position:relative;
  overflow:hidden;
  padding:48px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:
    linear-gradient(180deg,rgba(4,11,19,.08),rgba(4,11,19,.76)),
    url('../images/classroom-learning.webp') center/cover no-repeat;
}
.login-visual::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 82% 22%,rgba(255,101,31,.38),transparent 30%); pointer-events:none; }
.login-brand,
.login-promo { position:relative; z-index:1; }
.login-brand { display:flex; align-items:center; gap:13px; }
.login-brand img { width:60px; height:60px; object-fit:contain; }
.login-brand strong { display:block; font:700 20px Outfit,sans-serif; }
.login-brand small { color:#d0d9e4; text-transform:uppercase; letter-spacing:.13em; font-size:9px; }
.login-promo { max-width:660px; }
.login-promo span { color:var(--orange-400); font-size:11px; text-transform:uppercase; letter-spacing:.14em; font-weight:800; }
.login-promo h1 { margin:12px 0 14px; font:800 clamp(42px,5vw,72px)/.98 Outfit,sans-serif; letter-spacing:-.04em; }
.login-promo p { color:#d0dae7; font-size:17px; max-width:590px; }
.login-panel {
  position:relative;
  padding:42px;
  display:grid;
  place-items:center;
  background:rgba(4,11,19,.88);
  backdrop-filter:blur(18px);
}
.login-card { width:min(100%,470px); padding:32px; border:1px solid var(--line); border-radius:30px; background:rgba(255,255,255,.055); box-shadow:var(--shadow); }
.login-card h2 { margin:0; font:800 34px/1 Outfit,sans-serif; }
.login-card > p { margin:10px 0 26px; color:var(--muted); }
.form-group { display:grid; gap:8px; margin-bottom:16px; }
.form-group label { color:#c9d3df; font-size:12px; font-weight:700; }
.form-control {
  width:100%;
  min-height:54px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  outline:0;
  background:rgba(255,255,255,.045);
  color:#fff;
  transition:.2s ease;
}
.form-control:focus { border-color:rgba(255,101,31,.75); box-shadow:0 0 0 4px rgba(255,101,31,.1); }
.password-wrap { position:relative; }
.password-wrap .form-control { padding-right:56px; }
.password-toggle { position:absolute; right:8px; top:50%; transform:translateY(-50%); width:42px; height:42px; color:#bbc6d4; border-radius:12px; }
.form-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:6px 0 20px; font-size:12px; }
.form-row a { color:var(--orange-400); font-weight:700; }
.status-box { margin-bottom:16px; padding:12px 14px; border-radius:14px; font-size:12px; border:1px solid var(--line); }
.status-box[data-type="error"] { color:#ffb7ae; background:rgba(255,75,55,.09); border-color:rgba(255,75,55,.2); }
.status-box[data-type="success"] { color:#aeeec0; background:rgba(39,201,63,.08); border-color:rgba(39,201,63,.18); }
.status-box[data-type="info"] { color:#cbd6e3; background:rgba(92,168,255,.08); border-color:rgba(92,168,255,.17); }
.login-note { margin:18px 0 0; color:var(--muted); font-size:11px; line-height:1.6; text-align:center; }
.back-home { position:absolute; top:24px; right:26px; color:#cbd5e1; font-size:12px; }

.table-card { overflow:hidden; }
.table-toolbar { padding:18px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); }
.search-input { min-height:44px; min-width:250px; padding:0 14px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.04); color:#fff; outline:0; }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th,td { padding:15px 18px; text-align:left; border-bottom:1px solid rgba(255,255,255,.055); }
th { color:#9aa9bc; font-size:10px; text-transform:uppercase; letter-spacing:.1em; }
td { font-size:13px; color:#dbe4ee; }
.badge { display:inline-flex; align-items:center; min-height:28px; padding:0 10px; border-radius:999px; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.badge.active { color:#bff4cb; background:rgba(39,201,63,.1); }
.badge.inactive { color:#ffbcb2; background:rgba(255,75,55,.1); }
.badge.pending { color:#ffdb9e; background:rgba(255,189,46,.1); }

@keyframes shimmer { to { background-position:-220% 0; } }

@media (max-width:1100px) {
  .cards-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns:1fr; }
  .login-page { grid-template-columns:1fr; }
  .login-visual { min-height:42vh; }
}
@media (max-width:860px) {
  .platform-shell { grid-template-columns:1fr; }
  .sidebar { position:fixed; left:-300px; width:280px; transition:left .25s ease; box-shadow:30px 0 80px rgba(0,0,0,.4); }
  .sidebar.open { left:0; }
  .mobile-menu-btn { display:grid; place-items:center; }
  .topbar { padding:12px 18px; }
  .content { padding:22px 18px; }
}
@media (max-width:640px) {
  .cards-grid { grid-template-columns:1fr; }
  .page-heading { align-items:flex-start; flex-direction:column; }
  .page-heading .primary-btn { width:100%; }
  .login-visual { display:none; }
  .login-panel { min-height:100vh; padding:20px 14px; }
  .login-card { padding:24px 20px; border-radius:24px; }
  .back-home { position:fixed; top:16px; right:16px; }
  .topbar-title small { display:none; }
  .course-row { grid-template-columns:56px minmax(0,1fr); }
  .course-row .percent { grid-column:2; }
}

/* Phone authentication ------------------------------------------------------ */
.phone-input-wrap { position:relative; }
.phone-input-wrap .form-control { padding-left:64px; }
.country-code {
  position:absolute;
  left:14px;
  top:50%;
  z-index:1;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:34px;
  height:28px;
  border-right:1px solid var(--line);
  color:var(--orange-400);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}
.field-hint { color:var(--muted); font-size:10px; line-height:1.5; }
.login-help-row span { color:var(--muted); font-size:11px; }
.recovery-step[hidden] { display:none !important; }
.otp-input {
  letter-spacing:.28em;
  text-align:center;
  font-size:22px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
.recovery-actions { display:grid; gap:10px; }
.text-button {
  width:100%;
  padding:9px 12px;
  border:0;
  color:var(--orange-400);
  background:transparent;
  font-weight:700;
  cursor:pointer;
}
.text-button:disabled { opacity:.5; cursor:not-allowed; }
.recovery-summary {
  margin:0 0 18px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.035);
  color:var(--muted);
  font-size:12px;
}


/* Mohammed Elattar attribution */
.app-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-main > .content { flex: 1 0 auto; }
.platform-powered-credit {
  flex: 0 0 auto;
  padding: 18px 30px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(4,11,19,.45);
  text-align: center;
  font-size: 12px;
  letter-spacing: .02em;
}
.platform-powered-credit a,
.login-powered-credit a {
  color: var(--orange-400);
  font-weight: 800;
  transition: color .2s ease, text-shadow .2s ease;
}
.platform-powered-credit a:hover,
.login-powered-credit a:hover {
  color: #fff;
  text-shadow: 0 0 18px rgba(255,101,31,.45);
}
.login-panel { grid-template-rows: 1fr auto; }
.login-panel > .login-card { align-self: center; }
.login-powered-credit {
  align-self: end;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
@media (max-width: 860px) {
  .platform-powered-credit { padding: 16px 16px 20px; }
}

/* Complete Platform V4 ----------------------------------------------------- */
body[data-root] .platform-shell{opacity:0;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease}
body[data-root].app-ready .platform-shell{opacity:1;transform:none}
body[data-root]::before{content:"";position:fixed;z-index:9999;inset:0;background:radial-gradient(circle at 50% 45%,rgba(255,101,31,.14),transparent 24%),#040b13;opacity:1;visibility:visible;transition:opacity .18s ease,visibility .18s ease}
body[data-root]::after{content:"";position:fixed;z-index:10000;left:50%;top:50%;width:44px;height:44px;margin:-22px;border:3px solid rgba(255,255,255,.12);border-top-color:#ff651f;border-radius:50%;animation:platformBoot .75s linear infinite;opacity:1;transition:opacity .18s ease}
body[data-root].app-ready::before,body[data-root].app-ready::after{opacity:0;visibility:hidden;pointer-events:none}
@keyframes platformBoot{to{transform:rotate(360deg)}}

.platform-credit-card{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 11px;border:1px solid rgba(255,138,77,.2);border-radius:15px;background:linear-gradient(135deg,rgba(255,101,31,.09),rgba(92,168,255,.045));transition:.2s ease}
.platform-credit-card:hover{border-color:rgba(255,138,77,.42);transform:translateY(-1px);background:linear-gradient(135deg,rgba(255,101,31,.15),rgba(92,168,255,.07))}
.platform-credit-card .credit-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#ff651f,#ff8a4d);font:800 12px Outfit,sans-serif;color:#fff;box-shadow:0 8px 22px rgba(255,101,31,.2)}
.platform-credit-card small{display:block;color:#91a0b4;font-size:8px;text-transform:uppercase;letter-spacing:.09em}
.platform-credit-card strong{display:block;margin-top:2px;font-size:11px;color:#fff}.platform-credit-card b{font-size:14px;color:#ff8a4d}

.module-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:7px;margin:18px 0;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.035)}
.module-tab{min-height:42px;padding:0 15px;border:0;border-radius:12px;background:transparent;color:#aebaca;font-weight:700;cursor:pointer}
.module-tab.active{background:linear-gradient(135deg,#ff651f,#ff8a4d);color:#fff;box-shadow:0 10px 24px rgba(255,101,31,.18)}
.module-pane{display:none}.module-pane.active{display:block;animation:paneIn .18s ease}
@keyframes paneIn{from{opacity:.45;transform:translateY(3px)}to{opacity:1;transform:none}}

.action-menu{display:flex;flex-wrap:wrap;gap:7px}.compact-btn{min-height:34px;padding:0 10px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.05);color:#fff;font-size:11px;font-weight:700;cursor:pointer}.compact-btn.primary{border-color:rgba(255,101,31,.3);background:rgba(255,101,31,.12);color:#ffc2a3}.compact-btn.danger{border-color:rgba(255,95,95,.28);background:rgba(255,95,95,.08);color:#ffb0b0}

.explainer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.explainer-card{padding:18px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.04)}.explainer-card strong{display:block;font:700 18px Outfit,sans-serif}.explainer-card p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.7}.explainer-card.assignment{border-color:rgba(92,168,255,.22)}.explainer-card.assessment{border-color:rgba(255,101,31,.25)}

.form-section{padding:20px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.04)}.form-section h2{margin:0 0 5px;font:700 23px Outfit,sans-serif}.form-section>p{margin:0 0 17px;color:var(--muted);font-size:12px}.settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px}.settings-stack{display:grid;gap:16px}.settings-list{display:grid;gap:9px}.settings-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.035)}.settings-row h3{margin:0 0 3px;font-size:14px}.settings-row p{margin:0;color:var(--muted);font-size:11px}

.image-upload-box{padding:12px;border:1px dashed rgba(255,255,255,.16);border-radius:15px;background:rgba(255,255,255,.025)}.image-preview{display:none;max-width:260px;max-height:180px;margin-top:10px;border-radius:14px;object-fit:contain;border:1px solid var(--line);background:#07111d}.image-preview.visible{display:block}.option-editor-row.enhanced{grid-template-columns:auto minmax(160px,1fr) minmax(150px,.75fr) 42px;align-items:center}.option-thumb{width:48px;height:48px;border-radius:10px;object-fit:cover;border:1px solid var(--line);display:none}.option-thumb.visible{display:block}

.course-module-card{padding:18px;border:1px solid var(--line);border-radius:19px;background:rgba(255,255,255,.04)}.course-module-card h3{margin:0 0 7px}.course-module-card p{margin:0;color:var(--muted);font-size:12px}.discussion-list{display:grid;gap:10px}.discussion-post{padding:15px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.035)}.discussion-post header{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}.discussion-post p{margin:0;white-space:pre-wrap;line-height:1.65}.discussion-post small{color:var(--muted)}

.content-field-grid{display:grid;gap:11px}.content-field-row{display:grid;grid-template-columns:minmax(180px,.45fr) minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.03)}.content-field-row label{font-weight:700;font-size:12px}.content-field-row label small{display:block;margin-top:4px;color:var(--muted);font-weight:500}.content-card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}

button.is-busy{position:relative;opacity:.8;cursor:wait}
@media(max-width:1000px){.settings-layout{grid-template-columns:1fr}.explainer-grid{grid-template-columns:1fr}.content-field-row{grid-template-columns:1fr}.option-editor-row.enhanced{grid-template-columns:auto 1fr 42px}.option-editor-row.enhanced .option-image-wrap{grid-column:2/-1}}
@media(max-width:640px){.module-tabs{display:grid;grid-template-columns:1fr 1fr}.module-tab{width:100%;padding:0 8px;font-size:12px}}

/* V4 stability and premium attribution */
html{scrollbar-gutter:stable}body[data-root]{overflow-x:hidden}body[data-root] .platform-shell{will-change:opacity;transform:none!important}body[data-root]::before,body[data-root]::after{will-change:opacity;pointer-events:none}.loading-line{animation-duration:1.1s}
.login-powered-credit{display:flex;align-items:center;justify-content:center;gap:8px;width:min(100%,470px);padding:11px 14px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.025);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.login-powered-credit::before{content:"ME";display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:linear-gradient(135deg,#ff651f,#ff9256);color:#fff;font:800 8px Outfit,sans-serif}.login-powered-credit a{text-transform:none;letter-spacing:0;font-size:12px}
.login-powered-credit{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;justify-content:stretch;gap:9px;width:min(100%,470px);padding:10px 12px;text-align:left;text-transform:none;letter-spacing:0}.login-powered-credit::before{display:none}.login-credit-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,#ff651f,#ff9256);color:#fff;font:800 9px Outfit,sans-serif}.login-powered-credit span:nth-child(2){display:grid;gap:1px}.login-powered-credit small{color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.08em}.login-powered-credit strong{color:#fff;font-size:12px}.login-powered-credit b{color:var(--orange-400)}


/* Platform Complete V4.1 — compact injected credit and media previews */
.platform-powered-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: inherit;
  background: transparent;
  transition: background .2s ease, color .2s ease;
}
.platform-powered-credit:hover { background: rgba(255,255,255,.035); }
.platform-powered-credit span { min-width: 0; }
.platform-powered-credit small {
  display: block;
  color: #728197;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
}
.platform-powered-credit strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #dfe8f4;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.platform-powered-credit b { flex: 0 0 auto; color: #ff8a4d; font-size: 12px; }
.current-media-preview {
  min-height: 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 17px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 12px;
}
.current-media-preview.has-image { border-style: solid; }
.current-media-preview img { width: 100%; height: 170px; object-fit: cover; }
.field-help { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }

/* Platform Complete V4.2 — readable native selects and reusable bulk actions */
select,
select.form-control {
  color-scheme: dark;
}
select.form-control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 46px;
  color: #eef4fb;
  background-color: #0c1a29;
  background-image:
    linear-gradient(45deg, transparent 50%, #aebaca 50%),
    linear-gradient(135deg, #aebaca 50%, transparent 50%),
    linear-gradient(to right, rgba(255,255,255,.08), rgba(255,255,255,.08));
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%,
    calc(100% - 42px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 28px;
  background-repeat: no-repeat;
}
select.form-control:hover { border-color: rgba(255,255,255,.2); }
select.form-control:focus {
  color: #fff;
  background-color: #0e2033;
}
select.form-control option,
select.form-control optgroup,
select option,
select optgroup {
  color: #eef4fb !important;
  background: #0b1827 !important;
}
select.form-control option:checked,
select option:checked {
  color: #fff !important;
  background: #c94e16 linear-gradient(0deg,#c94e16,#c94e16) !important;
}
select.form-control option:disabled,
select option:disabled { color: #6f7e91 !important; }

.bulk-toolbar {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid rgba(255,138,77,.24);
  border-radius: 16px;
  background: linear-gradient(135deg,rgba(255,101,31,.1),rgba(92,168,255,.045));
}
.bulk-toolbar.active { display: flex; animation: bulkBarIn .16s ease; }
@keyframes bulkBarIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.bulk-toolbar .bulk-count {
  min-width: 104px;
  color: #ffd2bb;
  font-size: 12px;
  font-weight: 800;
}
.bulk-toolbar .form-control {
  width: auto;
  min-width: 175px;
  min-height: 40px;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 12px;
  font-size: 12px;
}
.bulk-toolbar .compact-btn { min-height: 40px; }
.bulk-toolbar .bulk-progress { margin-left: auto; color: var(--muted); font-size: 11px; }
.bulk-check {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--orange-500);
  cursor: pointer;
}
.select-cell { width: 44px; text-align: center; }
tr.is-selected,
.content-row.is-selected,
.course-admin-row.is-selected,
.question-admin-item.is-selected {
  border-color: rgba(255,138,77,.42) !important;
  background: rgba(255,101,31,.075) !important;
  box-shadow: inset 3px 0 0 var(--orange-500);
}
.content-row .bulk-item-check,
.course-admin-row .bulk-item-check,
.question-admin-item .bulk-item-check {
  align-self: center;
}
.bulk-empty-note { color: var(--muted); font-size: 11px; }
@media(max-width:760px){
  .bulk-toolbar { align-items: stretch; }
  .bulk-toolbar .form-control,
  .bulk-toolbar .compact-btn { width: 100%; }
  .bulk-toolbar .bulk-progress { width: 100%; margin-left: 0; }
}
