:root {
  --ink: #17212b;
  --muted: #667383;
  --line: #dbe4ea;
  --surface: #ffffff;
  --page: #f5f8f7;
  --primary: #19736b;
  --primary-dark: #11544f;
  --secondary: #245b8f;
  --aqua: #dff4ef;
  --mint: #ecf8f1;
  --warning: #a86505;
  --danger: #b42318;
  --success: #19703d;
  --shadow: 0 18px 42px rgba(28, 47, 56, .1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 115, 107, .12);
}

label {
  display: grid;
  gap: 7px;
  color: #2f3d4a;
  font-weight: 700;
  font-size: 14px;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(130deg, rgba(25,115,107,.86), rgba(36,91,143,.78)),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.auth-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 560px;
  background: rgba(255,255,255,.9);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.brand-panel {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(17,84,79,.15), rgba(17,84,79,.85)),
    url("https://images.unsplash.com/photo-1581093458791-9f3c3900df7b?auto=format&fit=crop&w=1300&q=80") center/cover;
}

.brand-panel h1 { margin: 18px 0 8px; font-size: 44px; }
.brand-panel p { max-width: 460px; line-height: 1.6; color: rgba(255,255,255,.9); }

.auth-card {
  padding: 52px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.auth-card h2, .panel h2 { margin: 0; font-size: 24px; }
.muted, .panel-head p, .table-sub { color: var(--muted); }
.switch-link { color: var(--muted); margin-top: 18px; }
.switch-link a { color: var(--primary-dark); font-weight: 800; }
.eyebrow { margin: 0 0 6px; color: var(--primary); font-size: 12px; font-weight: 900; text-transform: uppercase; }

.logo-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 28px;
}

.logo-mark.small { width: 36px; height: 36px; font-size: 20px; }

.site-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.sidebar-logo {
  width: 196px;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.auth-wordmark {
  width: min(360px, 78%);
  margin: 0 auto 4px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 42px rgba(4, 24, 44, .18);
}

.stack { display: grid; gap: 18px; margin-top: 26px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.button.primary { background: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { background: var(--aqua); color: var(--primary-dark); }
.button.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.button.danger { color: #fff; background: var(--danger); }
.button.small { min-height: 34px; padding: 7px 10px; font-size: 13px; }
.button.full { width: 100%; margin-top: 10px; }
.icon-button { width: 42px; height: 42px; display: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.register-cta {
  width: 100%;
  margin-top: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 24px rgba(25, 115, 107, .2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.register-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(36, 91, 143, .24);
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: #102c31;
  color: #eaf6f4;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 20px; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar nav a {
  padding: 12px 14px;
  border-radius: 8px;
  color: rgba(234,246,244,.78);
  font-weight: 750;
}
.sidebar nav a.active, .sidebar nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-note { margin-top: auto; display: grid; gap: 4px; color: rgba(234,246,244,.7); font-size: 13px; overflow-wrap: anywhere; }
.sidebar-note strong { color: #fff; }

.main-panel { min-width: 0; overflow-x: hidden; overflow-y: auto; }
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 32px;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 8;
}
.topbar h1 { margin: 0; font-size: 26px; }
.content { padding: 32px; display: grid; gap: 24px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}
.stats-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card, .panel, .video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31,48,58,.06);
}
.stat-card { padding: 22px; display: grid; gap: 10px; }
.stat-link { transition: transform .16s ease, border-color .16s ease; }
.stat-link:hover { transform: translateY(-2px); border-color: var(--primary); }
.stat-card span { color: var(--muted); font-weight: 700; }
.stat-card strong { font-size: 32px; color: var(--primary-dark); }

.panel { padding: 24px; min-width: 0; overflow: visible; }
.panel.narrow { max-width: 760px; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.panel-head p { margin: 7px 0 0; }
.accent-panel { background: linear-gradient(135deg, var(--mint), #fff); }

.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-form.one-col { grid-template-columns: 1fr; }
.grid-form .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.top-space { margin-top: 22px; }
.hint { color: var(--muted); font-weight: 500; }
.check-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  font-weight: 650;
  line-height: 1.45;
}
.check-row input { width: 18px; margin-top: 3px; }

.filters { display: flex; gap: 12px; margin-bottom: 18px; align-items: center; }
.filters input, .filters select { max-width: 260px; }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 740px; }
th, td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #40505f; font-size: 13px; text-transform: uppercase; background: #f9fbfa; white-space: nowrap; }
.table-sub { display: block; margin-top: 5px; font-size: 13px; overflow-wrap: anywhere; }
.actions { display: flex; gap: 8px; align-items: center; }
.actions form { margin: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}
.badge.success { background: #e4f6ea; color: var(--success); }
.badge.warning { background: #fff1d6; color: var(--warning); }
.badge.danger { background: #fde4e1; color: var(--danger); }
.badge.muted { background: #eef2f4; color: var(--muted); }

.split-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 24px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: #334454; line-height: 1.55; }
.steps.large { gap: 16px; }
.callout { margin-top: 20px; border-left: 4px solid var(--primary); background: var(--mint); padding: 16px; border-radius: 8px; color: #28403e; }

.inline-form {
  display: grid;
  grid-template-columns: 120px minmax(220px, 1fr) auto minmax(140px, 1fr) auto;
  gap: 8px;
  min-width: 700px;
}

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.video-card { padding: 18px; display: grid; gap: 12px; }
.video-card h3 { margin: 0; font-size: 18px; }
.video-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.video-card small { color: var(--muted); }
.notification-list { display: grid; gap: 12px; }
.notification-item {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.1);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.notification-item:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,.38);
  background: rgba(255,255,255,.14);
}
.notification-item span,
.notification-item small {
  color: rgba(255,255,255,.72);
}
.empty,
td.empty,
p.empty {
  color: rgba(255,255,255,.75) !important;
  padding: 24px 16px;
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
  grid-column: 1 / -1;
}
.profile-list { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
.profile-list dt { color: var(--muted); font-weight: 800; }
.profile-list dd { margin: 0; }

.alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(31,48,58,.1);
  animation: toastIn .22s ease;
}
.alert.success { background: #e4f6ea; color: var(--success); }
.alert.danger { background: #fde4e1; color: var(--danger); }
.success-state { text-align: center; display: grid; gap: 10px; }
.success-state p { margin: 0; color: var(--muted); }
.success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #e4f6ea;
  color: var(--success);
  font-size: 30px;
  font-weight: 900;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 44, 49, .62);
  animation: fadeIn .18s ease;
}
.modal-card {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
  animation: riseIn .2s ease;
}
.modal-card h2 { margin: 0 0 12px; }
.modal-card p { line-height: 1.55; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .stats-grid, .stats-grid.compact, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 260px; padding: 34px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform .2s ease;
    z-index: 20;
  }
  .sidebar.open { transform: translateX(0); }
  .icon-button { display: inline-grid; place-items: center; }
  .topbar { padding: 0 18px; }
  .content { padding: 20px; }
  .grid-form, .stats-grid, .stats-grid.compact, .video-grid { grid-template-columns: 1fr; }
  .filters, .panel-head { flex-direction: column; align-items: stretch; }
  .filters input, .filters select { max-width: none; }
  .inline-form { grid-template-columns: 1fr; min-width: 260px; }
}

@media (max-width: 520px) {
  .auth-body { padding: 0; }
  .auth-shell { min-height: 100vh; border-radius: 0; }
  .auth-card { padding: 32px 22px; }
  .brand-panel h1 { font-size: 34px; }
  .topbar h1 { font-size: 21px; }
  .topbar form .button { padding: 8px 10px; min-height: 38px; }
  .panel { padding: 18px; }
  .profile-list { grid-template-columns: 1fr; }
}

/* Premium glass morphism auth experience */
.glass-auth-body {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  place-items: stretch;
  padding: 0;
  background:
    linear-gradient(125deg, rgba(15, 118, 110, .95), rgba(20, 184, 166, .62), rgba(37, 99, 235, .88)),
    url("https://images.unsplash.com/photo-1581093458791-9f3c3900df7b?auto=format&fit=crop&w=1900&q=80") center/cover;
  isolation: isolate;
}

.glass-auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(115deg, rgba(15,118,110,.78), rgba(37,99,235,.62)),
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.28), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(20,184,166,.24), transparent 32%);
  animation: auroraShift 16s ease-in-out infinite alternate;
}

.glass-auth-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(100deg, transparent 0 32%, rgba(255,255,255,.13) 45%, transparent 58%),
    linear-gradient(18deg, transparent 0 44%, rgba(255,255,255,.08) 48%, transparent 58%);
  mix-blend-mode: screen;
  animation: reflectionSweep 9s ease-in-out infinite;
}

.aurora-layer,
.light-wash,
.particle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aurora-layer {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(15,118,110,.26), transparent, rgba(37,99,235,.22)),
    linear-gradient(180deg, transparent, rgba(5,22,45,.36));
  backdrop-filter: blur(2px);
  animation: slowDrift 18s ease-in-out infinite alternate;
}

.light-wash {
  z-index: -2;
  filter: blur(38px);
  opacity: .34;
}

.wash-one {
  background: linear-gradient(110deg, rgba(255,255,255,.4), transparent 48%);
  transform: translate(-22%, -8%) rotate(9deg);
  animation: washMoveOne 14s ease-in-out infinite alternate;
}

.wash-two {
  background: linear-gradient(230deg, rgba(20,184,166,.34), transparent 48%);
  transform: translate(22%, 18%) rotate(-8deg);
  animation: washMoveTwo 17s ease-in-out infinite alternate;
}

.wash-three {
  background: linear-gradient(45deg, transparent 42%, rgba(37,99,235,.28), transparent 68%);
  transform: translateY(22%);
  animation: washMoveThree 20s ease-in-out infinite alternate;
}

.particle-field {
  z-index: -1;
  overflow: hidden;
}

.particle-field span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 0 24px rgba(255,255,255,.55);
  animation: particleFloat 12s linear infinite;
}

.particle-field span:nth-child(1) { left: 12%; top: 74%; animation-delay: 0s; }
.particle-field span:nth-child(2) { left: 26%; top: 18%; animation-delay: -3s; width: 5px; height: 5px; }
.particle-field span:nth-child(3) { left: 51%; top: 82%; animation-delay: -7s; }
.particle-field span:nth-child(4) { left: 67%; top: 25%; animation-delay: -4s; width: 6px; height: 6px; }
.particle-field span:nth-child(5) { left: 82%; top: 68%; animation-delay: -8s; }
.particle-field span:nth-child(6) { left: 91%; top: 34%; animation-delay: -2s; width: 4px; height: 4px; }

.neuro-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: .78;
}

.brain-wireframe {
  position: absolute;
  left: 6%;
  top: 12%;
  width: min(360px, 42vw);
  aspect-ratio: 1.15;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 48% 52% 44% 56% / 54% 46% 58% 42%;
  box-shadow: 0 0 48px rgba(56,189,248,.18), inset 0 0 46px rgba(20,184,166,.12);
  transform: rotate(-8deg);
  animation: brainFloat 9s ease-in-out infinite;
}

.brain-wireframe::before,
.brain-wireframe::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 56% 44% 50% 50% / 46% 58% 42% 54%;
}

.brain-wireframe::after {
  inset: 28% 18%;
  border-color: rgba(20,184,166,.28);
  transform: rotate(28deg);
}

.brain-wireframe span {
  position: absolute;
  width: 62%;
  height: 1px;
  left: 18%;
  top: 50%;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.62), transparent);
  transform-origin: center;
  animation: synapsePulse 3s ease-in-out infinite;
}

.brain-wireframe span:nth-child(1) { transform: rotate(12deg); animation-delay: -.2s; }
.brain-wireframe span:nth-child(2) { transform: rotate(43deg); animation-delay: -.7s; }
.brain-wireframe span:nth-child(3) { transform: rotate(78deg); animation-delay: -1.1s; }
.brain-wireframe span:nth-child(4) { transform: rotate(116deg); animation-delay: -1.6s; }
.brain-wireframe span:nth-child(5) { transform: rotate(151deg); animation-delay: -2s; }
.brain-wireframe span:nth-child(6) { transform: rotate(192deg); animation-delay: -2.5s; }

.neural-network {
  position: absolute;
  right: 6%;
  top: 10%;
  width: min(440px, 46vw);
  height: min(360px, 42vw);
  background:
    linear-gradient(26deg, transparent 0 18%, rgba(56,189,248,.28) 18.2% 18.8%, transparent 19%),
    linear-gradient(151deg, transparent 0 34%, rgba(20,184,166,.26) 34.2% 34.8%, transparent 35%),
    linear-gradient(88deg, transparent 0 49%, rgba(255,255,255,.18) 49.2% 49.8%, transparent 50%),
    linear-gradient(122deg, transparent 0 60%, rgba(56,189,248,.22) 60.2% 60.8%, transparent 61%);
  animation: networkDrift 11s ease-in-out infinite alternate;
}

.node,
.signal {
  position: absolute;
  border-radius: 999px;
}

.node {
  width: 12px;
  height: 12px;
  background: #38BDF8;
  box-shadow: 0 0 22px rgba(56,189,248,.95);
  animation: nodePulse 2.8s ease-in-out infinite;
}

.n1 { left: 8%; top: 66%; }
.n2 { left: 28%; top: 22%; animation-delay: -.4s; }
.n3 { left: 48%; top: 52%; animation-delay: -.9s; }
.n4 { left: 70%; top: 24%; animation-delay: -1.3s; }
.n5 { left: 83%; top: 72%; animation-delay: -1.8s; }
.n6 { left: 18%; top: 84%; animation-delay: -2.2s; }

.signal {
  width: 8px;
  height: 8px;
  background: #fff;
  box-shadow: 0 0 20px #38BDF8;
  offset-path: path("M 30 250 C 120 80, 240 210, 360 80");
  animation: signalTravel 4.8s linear infinite;
}

.s2 {
  offset-path: path("M 70 80 C 190 190, 300 40, 390 260");
  animation-delay: -1.6s;
}

.s3 {
  offset-path: path("M 20 310 C 170 230, 240 180, 410 270");
  animation-delay: -3.1s;
}

.dna-helix {
  position: absolute;
  left: 8%;
  bottom: 5%;
  width: 160px;
  height: 360px;
  opacity: .52;
  transform-style: preserve-3d;
  animation: helixRotate 12s linear infinite;
}

.dna-helix::before,
.dna-helix::after {
  content: "";
  position: absolute;
  inset: 0 50% 0 auto;
  width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(56,189,248,.65) 0 10px, transparent 10px 28px);
  border-radius: 999px;
  filter: drop-shadow(0 0 12px rgba(56,189,248,.55));
}

.dna-helix::after {
  right: auto;
  left: 50%;
  transform: translateX(28px);
  background: repeating-linear-gradient(to bottom, rgba(20,184,166,.68) 0 10px, transparent 10px 28px);
}

.dna-helix span {
  position: absolute;
  left: 40%;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, rgba(20,184,166,.12), rgba(255,255,255,.64), rgba(56,189,248,.12));
  transform-origin: center;
}

.dna-helix span:nth-child(1) { top: 12%; transform: rotate(18deg); }
.dna-helix span:nth-child(2) { top: 26%; transform: rotate(-18deg); }
.dna-helix span:nth-child(3) { top: 40%; transform: rotate(18deg); }
.dna-helix span:nth-child(4) { top: 54%; transform: rotate(-18deg); }
.dna-helix span:nth-child(5) { top: 68%; transform: rotate(18deg); }
.dna-helix span:nth-child(6) { top: 82%; transform: rotate(-18deg); }

.ecg-line {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 18%;
  height: 80px;
  opacity: .38;
  background:
    linear-gradient(90deg, transparent, rgba(56,189,248,.2), transparent),
    linear-gradient(135deg, transparent 0 45%, rgba(255,255,255,.72) 45.3% 45.7%, transparent 46%),
    linear-gradient(45deg, transparent 0 49%, rgba(56,189,248,.9) 49.3% 49.7%, transparent 50%),
    linear-gradient(90deg, transparent 0 12%, rgba(20,184,166,.75) 12.2% 12.6%, transparent 12.8% 100%);
  background-size: 520px 80px;
  filter: drop-shadow(0 0 14px rgba(56,189,248,.5));
  animation: ecgMove 5s linear infinite;
}

.energy-wave {
  position: absolute;
  left: -8%;
  right: -8%;
  height: 34%;
  border: 1px solid rgba(56,189,248,.14);
  border-left: 0;
  border-right: 0;
  transform: skewY(-8deg);
  filter: blur(1px);
}

.wave-a {
  top: 36%;
  animation: waveFlow 13s ease-in-out infinite alternate;
}

.wave-b {
  top: 52%;
  border-color: rgba(20,184,166,.16);
  animation: waveFlow 16s ease-in-out infinite alternate-reverse;
}

.medical-glyph {
  position: absolute;
  color: rgba(255,255,255,.13);
  font-weight: 900;
  font-size: 46px;
  animation: glyphFloat 10s ease-in-out infinite;
}

.glyph-a { left: 18%; top: 46%; }
.glyph-b { right: 18%; bottom: 28%; animation-delay: -3s; }
.glyph-c { left: 72%; top: 58%; animation-delay: -6s; }

.glass-auth-stage {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.glass-auth-stage > .alert {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  z-index: 70;
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(20px);
}

.glass-card-wrap {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
  max-height: calc(100vh - 32px);
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 3vh, 32px) clamp(26px, 4vw, 56px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  box-shadow: 0 28px 80px rgba(4, 24, 44, .34);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  overflow: hidden;
}

.glass-card-wrap::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(255,255,255,.22), transparent 38%, rgba(255,255,255,.08));
  pointer-events: none;
}

.auth-panel {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.auth-panel.is-hidden {
  display: none;
}

.auth-logo {
  width: clamp(48px, 7vh, 64px);
  height: clamp(48px, 7vh, 64px);
  display: grid;
  place-items: center;
  margin: 0 auto 2px;
  border-radius: 22px;
  color: #eafffb;
  font-size: clamp(24px, 3.6vh, 32px);
  font-weight: 900;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 18px 38px rgba(15,118,110,.24), inset 0 1px 0 rgba(255,255,255,.28);
  position: relative;
  z-index: 1;
}

.auth-logo.small {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 28px;
}

.glass-card-wrap h1 {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: clamp(34px, 5vh, 48px);
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 12px 28px rgba(0,0,0,.18);
  position: relative;
  z-index: 1;
}

.auth-subtitle {
  margin: -4px 0 0;
  text-align: center;
  color: rgba(255,255,255,.82);
  font-weight: 700;
  font-size: clamp(16px, 2.3vh, 22px);
  position: relative;
  z-index: 1;
}

.auth-copy {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.auth-copy h2 {
  margin: 0 0 4px;
  font-size: clamp(22px, 3.2vh, 30px);
}

.auth-copy p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.glass-form {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
  animation: formFadeUp .5s ease both;
}

.register-form {
  gap: 10px;
}

.auth-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.glass-field {
  position: relative;
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.76);
}

.glass-field > span:first-child {
  display: block;
  margin: 0 0 5px 2px;
  font-weight: 800;
}

.field-icon {
  position: absolute;
  left: 14px;
  bottom: 11px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  font-weight: 900;
  z-index: 2;
}

.field-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glass-field input,
.glass-field select {
  height: 44px;
  border-radius: 16px;
  padding: 12px 16px 12px 48px;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 12px 30px rgba(0,0,0,.08);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.glass-field select option {
  color: #17212b;
}

.glass-field input:focus,
.glass-field select:focus {
  border-color: rgba(20,184,166,.82);
  background: rgba(255,255,255,.16);
  box-shadow: 0 0 0 4px rgba(20,184,166,.16), 0 16px 36px rgba(0,0,0,.14);
  transform: translateY(-1px);
}

.glass-button {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.glass-button .button-ripple {
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.36);
  transform: scale(0);
  animation: ripplePop .62s ease-out;
  pointer-events: none;
}

.glass-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-105%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transition: transform .5s ease;
}

.glass-button:hover {
  transform: translateY(-3px);
  filter: saturate(1.08);
}

.glass-button:hover::before {
  transform: translateX(105%);
}

.glass-button.primary {
  background: linear-gradient(135deg, #0F766E, #14B8A6, #2563EB);
  box-shadow: 0 18px 38px rgba(20,184,166,.24);
}

.register-submit {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(37,99,235,.26), 0 0 0 1px rgba(255,255,255,.14) inset;
}

.register-submit:hover {
  animation: buttonPulseGlow 1.1s ease-in-out infinite;
}

.glass-button.secondary {
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(37,99,235,.38));
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 18px 36px rgba(37,99,235,.18);
}

.glass-button:disabled {
  cursor: wait;
  transform: none;
  opacity: .86;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.42);
  border-top-color: #fff;
  margin-left: 10px;
  animation: spin .7s linear infinite;
}

.glass-button.is-loading .spinner {
  display: inline-block;
}

.glass-switch {
  margin: 0;
  text-align: center;
  color: rgba(255,255,255,.76);
  position: relative;
  z-index: 1;
}

.glass-switch button {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  padding: 4px;
}

.success-popup {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 24, 44, .52);
  backdrop-filter: blur(20px);
  animation: fadeIn .2s ease both;
}

.success-popup.closing {
  animation: fadeOut .18s ease both;
}

.success-popup-card {
  width: min(540px, 100%);
  padding: 34px;
  text-align: center;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.14);
  color: #fff;
  box-shadow: 0 28px 80px rgba(4, 24, 44, .34);
  backdrop-filter: blur(20px);
  animation: riseIn .22s ease both;
}

.success-popup-card p {
  color: rgba(255,255,255,.8);
  margin: 8px 0;
  line-height: 1.55;
}

.success-check {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(34,197,94,.16);
  border: 1px solid rgba(134,239,172,.46);
  box-shadow: 0 0 34px rgba(34,197,94,.35), inset 0 0 24px rgba(34,197,94,.14);
  position: relative;
  animation: successPop .55s ease both;
}

.success-check::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 37px;
  width: 14px;
  height: 28px;
  border-right: 5px solid #86efac;
  border-bottom: 5px solid #86efac;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  animation: checkDraw .38s ease .22s forwards;
}

.success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.float-soft {
  animation: floatSoft 4s ease-in-out infinite;
}

@keyframes auroraShift {
  from { filter: hue-rotate(0deg) saturate(1); transform: scale(1); }
  to { filter: hue-rotate(12deg) saturate(1.15); transform: scale(1.04); }
}

@keyframes reflectionSweep {
  0%, 100% { transform: translateX(-16%); opacity: .48; }
  50% { transform: translateX(16%); opacity: .78; }
}

@keyframes slowDrift {
  from { transform: translate3d(-2%, -1%, 0); }
  to { transform: translate3d(2%, 1%, 0); }
}

@keyframes washMoveOne {
  from { transform: translate(-24%, -9%) rotate(9deg); }
  to { transform: translate(-16%, 2%) rotate(13deg); }
}

@keyframes washMoveTwo {
  from { transform: translate(22%, 18%) rotate(-8deg); }
  to { transform: translate(16%, 8%) rotate(-12deg); }
}

@keyframes washMoveThree {
  from { transform: translateY(22%) translateX(-8%); }
  to { transform: translateY(12%) translateX(8%); }
}

@keyframes particleFloat {
  from { transform: translate3d(0, 30px, 0); opacity: 0; }
  20%, 80% { opacity: .9; }
  to { transform: translate3d(0, -160px, 0); opacity: 0; }
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(28px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes formFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ripplePop {
  to { transform: scale(2.4); opacity: 0; }
}

@keyframes buttonPulseGlow {
  0%, 100% { box-shadow: 0 18px 44px rgba(37,99,235,.26), 0 0 0 1px rgba(255,255,255,.14) inset; }
  50% { box-shadow: 0 24px 56px rgba(56,189,248,.38), 0 0 0 1px rgba(255,255,255,.18) inset; }
}

@keyframes successPop {
  from { opacity: 0; transform: scale(.72); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes checkDraw {
  to { transform: rotate(45deg) scale(1); }
}

@keyframes brainFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg); }
  50% { transform: translate3d(12px, -16px, 0) rotate(-4deg); }
}

@keyframes synapsePulse {
  0%, 100% { opacity: .18; filter: brightness(1); }
  50% { opacity: .95; filter: brightness(1.8); }
}

@keyframes networkDrift {
  from { transform: translate3d(0, 0, 0); opacity: .64; }
  to { transform: translate3d(-24px, 18px, 0); opacity: .9; }
}

@keyframes nodePulse {
  0%, 100% { transform: scale(.9); opacity: .66; }
  50% { transform: scale(1.45); opacity: 1; }
}

@keyframes signalTravel {
  to { offset-distance: 100%; }
}

@keyframes helixRotate {
  from { transform: rotateY(0deg) rotateZ(-8deg); }
  to { transform: rotateY(360deg) rotateZ(-8deg); }
}

@keyframes ecgMove {
  from { background-position: 0 0; }
  to { background-position: 520px 0; }
}

@keyframes waveFlow {
  from { transform: translateX(-3%) skewY(-8deg); opacity: .28; }
  to { transform: translateX(3%) skewY(-5deg); opacity: .55; }
}

@keyframes glyphFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .1; }
  50% { transform: translateY(-18px) rotate(8deg); opacity: .18; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeOut {
  to { opacity: 0; }
}

@media (max-width: 720px) {
  .glass-auth-stage {
    padding: 12px;
    align-items: center;
  }

  .glass-card-wrap {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 20px;
    gap: 8px;
  }

  .glass-card-wrap h1 {
    font-size: 32px;
  }

  .auth-subtitle {
    font-size: 15px;
  }

  .auth-copy h2 {
    font-size: 20px;
  }

  .auth-copy p {
    font-size: 13px;
  }

  .auth-logo {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .auth-panel {
    gap: 9px;
  }

  .glass-form {
    gap: 10px;
  }

  .register-form {
    gap: 8px;
  }

  .glass-field {
    font-size: 12px;
  }

  .glass-field input,
  .glass-field select,
  .glass-button {
    min-height: 42px;
    height: 42px;
  }

  .brain-wireframe,
  .neural-network,
  .dna-helix {
    opacity: .34;
  }

  .neural-network {
    right: -22%;
    top: 6%;
  }

  .brain-wireframe {
    left: -16%;
    top: 18%;
  }
}

@media (max-width: 420px) {
  .glass-auth-stage {
    padding: 8px;
  }

  .glass-card-wrap {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 16px;
    gap: 6px;
  }

  .glass-card-wrap h1 {
    font-size: 27px;
  }

  .auth-subtitle {
    font-size: 13px;
  }

  .register-form {
    gap: 7px;
  }

  .glass-field input,
  .glass-field select,
  .glass-button {
    min-height: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .glass-field > span:first-child {
    margin-bottom: 3px;
  }

  .glass-switch {
    font-size: 12px;
  }

  .success-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) {
  .glass-card-wrap {
    padding: 14px 34px;
    gap: 6px;
  }

  .auth-logo {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .glass-card-wrap h1 {
    font-size: 30px;
  }

  .auth-subtitle {
    font-size: 14px;
  }

  .auth-copy h2 {
    font-size: 19px;
  }

  .auth-copy p {
    font-size: 13px;
  }

  .auth-panel,
  .glass-form {
    gap: 8px;
  }

  .register-form {
    gap: 6px;
  }

  .auth-wordmark {
    width: min(300px, 70%);
  }

  .auth-field-row {
    gap: 8px;
  }

  .glass-field {
    font-size: 12px;
  }

  .glass-field > span:first-child {
    margin-bottom: 3px;
  }

  .glass-field input,
  .glass-field select,
  .glass-button {
    min-height: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .field-icon {
    bottom: 8px;
  }

  .register-submit {
    height: 38px;
    margin-top: 2px;
  }
}

/* Premium glassmorphism dashboard */
.dashboard-body,
body:has(.app-shell) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, .22), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(20, 184, 166, .18), transparent 28%),
    linear-gradient(135deg, #0f766e 0%, #135f83 44%, #1d4ed8 100%);
  background-size: 140% 140%;
  animation: dashboardGradient 16s ease-in-out infinite alternate;
}

.dashboard-body::before,
body:has(.app-shell)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,.08) 46%, transparent 58%),
    radial-gradient(circle at 48% 78%, rgba(255,255,255,.12), transparent 26%);
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.sidebar,
.topbar,
.stat-card,
.panel,
.video-card,
.modal-card,
.glass-modal-card,
.assignment-card,
.filters input,
.filters select,
.grid-form input,
.grid-form select,
.grid-form textarea,
.inline-form input,
.inline-form select,
.profile-list,
.alert {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sidebar {
  margin: 16px;
  height: calc(100vh - 32px);
  border-radius: 20px;
  color: #f4fffd;
}

.topbar {
  margin: 16px 16px 0;
  border-radius: 20px;
  color: #fff;
  height: 78px;
}

.topbar .eyebrow,
.topbar h1 {
  color: #fff;
}

.content {
  padding: 24px 32px 32px;
}

.panel,
.stat-card,
.video-card {
  border-radius: 20px;
  color: #f8fffe;
}

.panel h2,
.panel-head p,
.stat-card span,
.stat-card strong,
.muted,
.table-sub,
.profile-list dt,
.profile-list dd {
  color: inherit;
}

.panel-head p,
.muted,
.table-sub,
.profile-list dt {
  color: rgba(255,255,255,.72);
}

.dashboard-body label,
.dashboard-body .check-row,
.dashboard-body .check-row span {
  color: rgba(255,255,255,.9);
}

.dashboard-body .callout {
  background: rgba(236, 248, 241, .92);
  color: #183a37;
  border-left-color: #14b8a6;
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
}

.dashboard-body .check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #14b8a6;
}

.stat-card {
  min-height: 132px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.stat-card:hover,
.stat-link:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,.42);
  box-shadow: 0 26px 60px rgba(0,0,0,.18);
}

.stat-card strong {
  color: #fff;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.18);
}

.nav-badge {
  min-width: 26px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #1f2937;
  font-size: 12px;
  font-weight: 900;
}

.button {
  border-radius: 14px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,.14);
}

.button.primary,
.button.secondary {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #14b8a6, #2563eb);
}

.button.ghost {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}

.button.danger {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.table-wrap {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  color: #fff;
}

th {
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.1);
  white-space: nowrap;
}

td,
th {
  border-bottom-color: rgba(255,255,255,.14);
}

input,
select,
textarea {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,.62);
}

select option {
  color: #17212b;
}

.badge {
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.badge.success { background: rgba(34,197,94,.2); color: #bbf7d0; }
.badge.warning { background: rgba(250,204,21,.2); color: #fef08a; }
.badge.danger { background: rgba(248,113,113,.22); color: #fecaca; }
.badge.muted { background: rgba(255,255,255,.14); color: #e5e7eb; }

.glass-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(4, 24, 44, .55);
  backdrop-filter: blur(16px);
}

.glass-modal.open {
  display: grid;
}

.glass-modal-card {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border-radius: 20px;
  color: #fff;
}

@keyframes dashboardGradient {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* Futuristic flip authentication experience */
.glass-auth-body {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shadow-x: 0px;
  --shadow-y: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(20, 184, 166, .28), transparent 24%),
    radial-gradient(circle at 78% 22%, rgba(37, 99, 235, .32), transparent 28%),
    radial-gradient(circle at 50% 82%, rgba(124, 58, 237, .2), transparent 28%),
    linear-gradient(135deg, #071522 0%, #0f766e 42%, #1d4ed8 100%);
}

.glass-auth-body .aurora-layer,
.glass-auth-body .light-wash,
.glass-auth-body .neuro-scene {
  opacity: .24;
  filter: blur(5px);
}

.glass-auth-body .brain-wireframe,
.glass-auth-body .neural-network,
.glass-auth-body .dna-helix,
.glass-auth-body .ecg-line,
.glass-auth-body .energy-wave,
.glass-auth-body .medical-glyph {
  opacity: .2;
}

.glass-auth-body .particle-field span:nth-child(n+4) {
  display: none;
}

.glass-auth-body .particle-field {
  opacity: .42;
}

.gradient-mesh,
.auth-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.gradient-mesh {
  z-index: -6;
  background:
    linear-gradient(115deg, rgba(20,184,166,.1), transparent 42%, rgba(37,99,235,.12)),
    radial-gradient(circle at 12% 80%, rgba(255,255,255,.06), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(14,165,233,.08), transparent 30%);
  filter: blur(8px);
  transform: translate3d(0,0,0);
  animation: meshDrift 24s cubic-bezier(.4,0,.2,1) infinite alternate;
}

.auth-blobs {
  z-index: -5;
  filter: blur(46px);
  opacity: .2;
}

.auth-blobs span {
  position: absolute;
  width: 28vw;
  max-width: 420px;
  min-width: 220px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  transform: translate3d(0,0,0);
  animation: blobFloat 18s cubic-bezier(.4,0,.2,1) infinite alternate;
}

.auth-blobs span:nth-child(1) { left: 8%; top: 10%; background: rgba(20,184,166,.22); }
.auth-blobs span:nth-child(2) { right: 8%; top: 16%; background: rgba(37,99,235,.2); animation-delay: -6s; }
.auth-blobs span:nth-child(3) { left: 44%; bottom: 4%; background: rgba(124,58,237,.18); animation-delay: -11s; }

.glass-auth-stage {
  overflow: hidden;
  perspective: 1600px;
  perspective-origin: var(--pointer-x) var(--pointer-y);
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-flip-shell {
  width: min(440px, 90vw);
  height: auto;
  position: relative;
  transform-style: preserve-3d;
  transform: translate3d(0,0,0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: width .35s ease, transform 180ms cubic-bezier(.4,0,.2,1);
  animation: premiumCardIn .8s ease both;
}

.auth-flip-shell.show-register {
  width: min(460px, 90vw);
}

.auth-flip-card {
  position: relative;
  transform-style: preserve-3d;
  transform: translate3d(0,0,0) rotateY(0deg);
  transition: transform 820ms cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.auth-flip-shell.show-register .auth-flip-card {
  transform: translate3d(0,0,0) rotateY(180deg);
}

.auth-flip-shell.is-submitting .auth-flip-card {
  transform: translate3d(0,0,0) rotateY(360deg);
}

.auth-flip-shell.is-fading-out {
  opacity: 0;
  transform: translate3d(0,14px,0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: opacity 420ms cubic-bezier(.4,0,.2,1), transform 420ms cubic-bezier(.4,0,.2,1);
}

.auth-face,
.auth-success-plane {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  padding: 55px 45px;
  border-radius: 35px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  max-height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: hidden;
}

.auth-face::before,
.auth-success-plane::before {
  content: "";
  position: absolute;
  left: 45px;
  right: 45px;
  top: 32px;
  height: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(255,255,255,.2);
  opacity: 1;
  transform: translate3d(0,0,0);
}

.auth-face::after,
.auth-success-plane::after {
  content: "";
  position: absolute;
  left: 45px;
  right: 45px;
  bottom: 32px;
  height: 1px;
  background: rgba(255,255,255,.2);
  pointer-events: none;
}

.auth-face-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg) translate3d(0,0,1px);
}

.auth-flip-shell.show-register .auth-face-front {
  position: absolute;
  inset: 0;
}

.auth-flip-shell.show-register .auth-face-back {
  position: relative;
  inset: auto;
}

.auth-flip-shell.show-register .auth-flip-card {
  width: 100%;
}

.auth-face[aria-hidden="true"] {
  pointer-events: none;
}

.auth-success-plane {
  position: absolute;
  inset: 0;
  align-items: center;
  transform: rotateY(360deg) translate3d(0,0,2px);
  opacity: 0;
  pointer-events: none;
}

.auth-flip-shell.show-success .auth-success-plane {
  opacity: 1;
  transition: opacity 260ms cubic-bezier(.4,0,.2,1) 520ms;
}

.auth-panel.is-hidden {
  display: flex;
}

.auth-wordmark {
  width: min(240px, 74%);
  max-height: 72px;
  margin: 0 auto -6px;
  border-radius: 16px;
  animation: none;
  transform: translate3d(0,0,0);
}

.auth-copy {
  display: grid;
  gap: 8px;
  text-align: center;
  color: #fff;
}

.auth-copy h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
}

.auth-copy p {
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: 15px;
  font-weight: 500;
}

.glass-form {
  width: 100%;
  gap: 16px;
  animation: none;
}

.register-form {
  gap: 9px;
}

.auth-field-row {
  gap: 12px;
}

.register-panel {
  gap: 14px;
  padding: 35px 32px;
  border-radius: 30px;
}

.register-panel::before {
  left: 32px;
  right: 32px;
  top: 22px;
}

.register-panel::after {
  left: 32px;
  right: 32px;
  bottom: 22px;
}

.register-panel .auth-wordmark {
  width: min(190px, 64%);
  max-height: 56px;
  margin-bottom: 0;
}

.register-panel .auth-field-row {
  grid-template-columns: 1fr;
  gap: 9px;
}

.register-panel .glass-field > span:first-child {
  margin: 0 0 4px 2px;
  font-size: 12px;
  font-weight: 700;
}

.register-panel .glass-field input,
.register-panel .glass-field select {
  height: 48px;
  border-radius: 14px;
  padding: 8px 12px 8px 44px;
  font-size: 14px;
  font-weight: 600;
}

.register-panel .field-icon {
  left: 13px;
  bottom: 8px;
}

.register-panel .field-icon svg {
  width: 16px;
  height: 16px;
}

.register-panel .glass-button {
  min-height: 50px;
  border-radius: 14px;
  font-size: 15px;
}

.register-panel .glass-switch {
  font-size: 13px;
}

.glass-field {
  opacity: 0;
  animation: fieldFadeIn .58s ease both;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}

.glass-form .glass-field:nth-of-type(1),
.auth-field-row:first-child .glass-field:nth-child(1) {
  animation-delay: .16s;
}

.glass-form .glass-field:nth-of-type(2),
.auth-field-row:first-child .glass-field:nth-child(2) {
  animation-delay: .28s;
}

.glass-field > span:first-child {
  color: rgba(255,255,255,.76);
  font-size: 0;
  margin: 0;
  transform: translate3d(0,0,0);
  transition: color .2s cubic-bezier(.4,0,.2,1);
}

.register-panel .glass-field > span:first-child {
  display: block;
  margin: 0 0 5px 2px;
  font-size: 13px;
  font-weight: 700;
}

.glass-field input,
.glass-field select {
  height: 58px;
  border-radius: 18px;
  padding-left: 50px;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255,255,255,.06);
  box-shadow: none;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease, background .35s ease;
}

.glass-field input::placeholder {
  color: rgba(255,255,255,.55);
}

.glass-field input:focus,
.glass-field select:focus,
.glass-field:focus-within input,
.glass-field:focus-within select {
  border-color: #1ED6C5;
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 18px rgba(30,214,197,.35);
  transform: none;
}

.glass-field:focus-within > span:first-child,
.glass-field:focus-within .field-icon {
  color: #a7fff5;
}

.field-icon {
  transition: color .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1);
}

.glass-field:focus-within .field-icon {
  transform: translate3d(0,-1px,0) scale(1.04);
}

.forgot-link {
  justify-self: end;
  margin-top: -6px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .35s ease, text-decoration-color .35s ease;
}

.forgot-link:hover {
  color: #1ED6C5;
  text-decoration-color: #1ED6C5;
}

.glass-button {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 700;
  background-size: 180% 100%;
  will-change: transform;
  transition: transform .35s ease, box-shadow .35s ease, background-position .35s ease;
}

.glass-button.primary {
  background: linear-gradient(90deg, #14D8C4, #3D6BFF);
  box-shadow: none;
}

.glass-button:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 35px rgba(61,107,255,.35);
  background-position: 100% 0;
}

.login-panel .glass-button {
  animation: buttonPop .62s ease .42s both;
}

.glass-switch {
  margin: 0;
  text-align: center;
  color: rgba(255,255,255,.7);
  font-size: 15px;
  font-weight: 500;
}

.glass-switch button {
  font-size: inherit;
  color: #1ED6C5;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .35s ease, text-decoration-color .35s ease;
}

.glass-switch button:hover {
  color: #6ffbef;
  text-decoration-color: currentColor;
}

.success-check {
  width: 92px;
  height: 92px;
}

.auth-flip-shell.show-success .success-check {
  animation: successPop .55s cubic-bezier(.4,0,.2,1) both;
}

.glass-auth-body.auth-exiting {
  animation: authExitFade .48s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes meshDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: .82; }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.04); opacity: 1; }
}

@keyframes blobFloat {
  from { transform: translate3d(-14px, 18px, 0) scale(1); }
  to { transform: translate3d(18px, -16px, 0) scale(1.08); }
}

@keyframes logoFloat {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-8px,0); }
}

@keyframes logoGlow {
  0%, 100% { box-shadow: 0 18px 42px rgba(4,24,44,.18), 0 0 0 rgba(20,184,166,0); filter: saturate(1); }
  50% { box-shadow: 0 22px 52px rgba(4,24,44,.22), 0 0 34px rgba(20,184,166,.32); filter: saturate(1.16); }
}

@keyframes authExitFade {
  to { opacity: 0; transform: translate3d(0,-10px,0); }
}

@keyframes premiumCardIn {
  from { opacity: 0; transform: translate3d(0,25px,0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
  to { opacity: 1; transform: translate3d(0,0,0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
}

@keyframes fieldFadeIn {
  from { opacity: 0; transform: translate3d(0,14px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}

@keyframes buttonPop {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 720px) {
  .auth-flip-shell {
    width: 95vw;
  }

  .auth-face,
  .auth-success-plane {
    padding: 30px;
    border-radius: 35px;
  }

  .auth-wordmark {
    width: min(220px, 74%);
  }

  .auth-field-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .auth-flip-shell.show-register {
    width: min(460px, 95vw);
  }

  .register-panel {
    padding: 30px 24px;
    border-radius: 30px;
  }
}

@media (max-width: 720px), (max-height: 720px) {
  .register-form {
    gap: 6px;
  }

  .register-panel .glass-field > span:first-child {
    font-size: 12px;
    margin-bottom: 3px;
  }

  .glass-field input,
  .glass-field select {
    height: 52px;
    border-radius: 16px;
    padding: 8px 12px 8px 46px;
    font-size: 15px;
  }

  .field-icon {
    left: 12px;
    bottom: 7px;
  }

  .field-icon svg {
    width: 16px;
    height: 16px;
  }

  .glass-button {
    min-height: 52px;
    border-radius: 16px;
    font-size: 17px;
  }

  .register-panel .glass-field input,
  .register-panel .glass-field select {
    height: 46px;
    border-radius: 14px;
    padding-left: 42px;
    font-size: 14px;
  }

  .register-panel .glass-button {
    min-height: 48px;
    border-radius: 14px;
    font-size: 15px;
  }
}

@media (max-height: 640px) {
  .auth-wordmark {
    width: min(260px, 60%);
    margin-bottom: 0;
  }

  .auth-face,
  .auth-success-plane {
    gap: 14px;
    padding: 26px;
  }

  .glass-switch {
    font-size: 14px;
  }
}

/* Final compact SaaS auth-card sizing overrides */
.auth-flip-shell {
  width: 420px !important;
  max-width: 450px;
}

.auth-flip-shell.show-register {
  width: 460px !important;
  max-width: 480px;
}

.auth-face,
.auth-success-plane {
  gap: 16px;
  padding: 34px 32px !important;
  border-radius: 28px;
}

.login-panel,
.register-panel {
  width: 100%;
}

.login-panel {
  gap: 18px;
}

.register-panel {
  gap: 14px;
  padding: 32px !important;
  border-radius: 28px;
}

.auth-wordmark {
  width: min(200px, 62%);
}

.register-panel .auth-wordmark {
  width: min(170px, 56%);
}

.login-panel .glass-form,
.register-panel .glass-form {
  width: 100%;
  gap: 15px;
}

.register-panel .glass-form {
  gap: 10px;
}

.login-panel .glass-field input,
.login-panel .glass-field select,
.register-panel .glass-field input,
.register-panel .glass-field select {
  width: 100%;
  height: 50px;
  border-radius: 15px;
  font-size: 15px;
}

.register-panel .glass-field input,
.register-panel .glass-field select {
  height: 48px;
  border-radius: 14px;
  font-size: 14px;
}

.login-panel .glass-button,
.register-panel .glass-button {
  width: 100%;
  min-height: 50px;
  border-radius: 15px;
}

.register-panel .glass-button {
  border-radius: 14px;
  font-size: 15px;
}

.glass-switch {
  font-size: 14px;
}

@media (max-width: 1024px) {
  .auth-flip-shell,
  .auth-flip-shell.show-register {
    width: 85vw !important;
  }

  .auth-flip-shell {
    max-width: 450px;
  }

  .auth-flip-shell.show-register {
    max-width: 480px;
  }
}

@media (max-width: 520px) {
  .auth-flip-shell,
  .auth-flip-shell.show-register {
    width: 95vw !important;
    max-width: 400px;
  }

  .auth-face,
  .auth-success-plane,
  .register-panel {
    padding: 30px !important;
    border-radius: 24px;
  }
}

body.glass-auth-body .glass-auth-stage {
  display: grid;
  place-items: center;
  padding: 24px;
}

body.glass-auth-body .glass-auth-stage > .auth-flip-shell {
  width: 420px !important;
  max-width: min(450px, 85vw) !important;
}

body.glass-auth-body .glass-auth-stage > .auth-flip-shell.show-register {
  width: 460px !important;
  max-width: min(480px, 85vw) !important;
}

body.glass-auth-body .auth-flip-shell .auth-face {
  width: 100% !important;
  padding: 34px 32px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
}

body.glass-auth-body .auth-flip-shell.show-register .auth-face-back {
  gap: 10px !important;
  padding: 28px 30px !important;
}

body.glass-auth-body .auth-flip-shell.show-register .register-form {
  gap: 7px !important;
}

body.glass-auth-body .auth-flip-shell.show-register .register-panel .glass-field input,
body.glass-auth-body .auth-flip-shell.show-register .register-panel .glass-field select {
  height: 44px !important;
}

body.glass-auth-body .auth-flip-shell.show-register .register-panel .glass-button {
  min-height: 46px !important;
}

body.glass-auth-body .auth-flip-shell .glass-form,
body.glass-auth-body .auth-flip-shell .glass-button,
body.glass-auth-body .auth-flip-shell .glass-field input,
body.glass-auth-body .auth-flip-shell .glass-field select {
  width: 100% !important;
}

@media (max-width: 520px) {
  body.glass-auth-body .glass-auth-stage > .auth-flip-shell,
  body.glass-auth-body .glass-auth-stage > .auth-flip-shell.show-register {
    width: 95vw !important;
    max-width: 400px !important;
  }
}

/* ===== DIGITAL VAULT ===== */

.vault-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.module-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(28,47,56,.07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(28,47,56,.13);
  border-color: var(--primary);
}

.module-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, #102c31, #19736b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 48px;
  flex-shrink: 0;
}
.module-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.module-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.module-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.module-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--muted);
}
.module-card-meta span { display: flex; align-items: center; gap: 4px; }

.module-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--aqua);
  color: var(--primary-dark);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.module-card-actions {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* ===== SCENE BUILDER ===== */

.scene-builder {
  display: grid;
  gap: 12px;
}

.scene-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s;
}
.scene-row:has(.scene-header:hover) { border-color: var(--primary); }

.scene-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  background: var(--page);
}

.scene-drag-handle {
  cursor: grab;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.scene-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.scene-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scene-summary {
  font-size: 13px;
  color: var(--muted);
}

.scene-header-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.scene-body {
  padding: 16px;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line);
}
.scene-body.open { display: grid; }

.scene-field {
  display: grid;
  gap: 6px;
}
.scene-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.rgb-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rgb-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  cursor: pointer;
}
.rgb-inputs { display: flex; gap: 4px; flex: 1; }
.rgb-inputs input { text-align: center; padding: 8px 4px; }

/* ===== AUDIO MANAGER ===== */

.audio-file-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.audio-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s;
}
.audio-file-row:hover { border-color: var(--primary); }

.audio-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--aqua);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.audio-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-actions { display: flex; gap: 4px; }

/* ===== DROP ZONE ===== */

.drop-zone {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-align: center;
}
.drop-zone:hover, .drop-zone.dragging {
  border-color: var(--primary);
  background: var(--aqua);
}
.drop-zone-icon { font-size: 36px; opacity: .5; }
.drop-zone-text { font-size: 14px; color: var(--muted); }
.drop-zone-hint { font-size: 12px; color: var(--muted); }

/* ===== MODULE PLAYER ===== */

.player-page {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .player-page { grid-template-columns: 1fr; }
}

.player-wrap {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
}

#player-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  z-index: 4;
}

.player-overlay.hidden { display: none; }

.player-overlay-content {
  text-align: center;
  color: #fff;
  padding: 32px;
}

.player-overlay-content h2 { margin: 0 0 8px; font-size: 24px; }
.player-overlay-content p { margin: 0 0 20px; opacity: .8; }

.runtime-hud {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 100px;
}

.hud-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--primary);
  margin: 0 0 4px;
}

.hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.hud-row:last-child { border-bottom: none; }
.hud-label { color: var(--muted); font-weight: 600; }
.hud-value { font-weight: 700; }

.hud-rgb-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--line);
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
}

.connection-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  flex-shrink: 0;
}
.connection-dot.connected { background: var(--success); box-shadow: 0 0 6px rgba(25,112,61,.5); }
.connection-dot.connecting { background: var(--warning); animation: pulse-dot .8s infinite; }
.connection-dot.disconnected { background: var(--danger); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.player-controls {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.error-banner {
  background: #fff1f1;
  border: 1px solid #fda2a2;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--danger);
  font-size: 13px;
  display: none;
}
.error-banner.visible { display: block; }

/* ===== ASSIGNMENTS ===== */

.assign-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.ip-input-wrap {
  position: relative;
}
.ip-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
}
.ip-status.valid { color: var(--success); }
.ip-status.invalid { color: var(--danger); }

/* ===== MODAL ===== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,20,30,.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface);
  border-radius: 14px;
  padding: 32px;
  width: min(480px, 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
  transform: translateY(12px);
  transition: transform .2s ease;
}
.modal-backdrop.open .modal { transform: translateY(0); }

.modal h2 { margin: 0 0 6px; font-size: 20px; }
.modal p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* ===== TUTOR VAULT ===== */

.tutor-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.assignment-card {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 20px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,.12) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.assignment-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,.42);
  box-shadow: 0 26px 60px rgba(0,0,0,.22);
}
.assignment-card.locked { opacity: .65; }

.assignment-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(16,44,49,.8), rgba(25,115,107,.8));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 42px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.assignment-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.assignment-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #f8fffe;
  background: transparent !important;
}

.assignment-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  margin: 0;
  color: #ffffff !important;
  letter-spacing: -0.01em;
}

.plays-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}
.plays-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #14b8a6, #38bdf8);
  transition: width .4s ease;
}
.plays-bar-fill.low { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.plays-bar-fill.exhausted { background: #ef4444; }

.assignment-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.15) !important;
}

/* ===== EMPTY STATE ===== */

.empty-state {
  text-align: center;
  padding: 80px 32px;
  color: var(--muted);
}
.empty-state-icon { font-size: 56px; margin-bottom: 16px; opacity: .4; }
.empty-state h2 { margin: 0 0 8px; color: var(--ink); }
.empty-state p { margin: 0 0 24px; }

/* ===== BADGE EXTENSIONS ===== */
.badge { display: inline-flex; align-items: center; border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.badge.focus { background: #e8f4ff; color: #1a5fa8; }
.badge.rest { background: #e8fff0; color: #156938; }
.badge.energize { background: #fff5e8; color: #8a4d0e; }
.badge.active { background: var(--mint); color: var(--success); }
.badge.archived { background: #f0f0f0; color: #666; }
.badge.expired { background: #fff1f1; color: var(--danger); }
.badge.revoked { background: #f5f0ff; color: #6b3fa0; }

/* ===== CREATE MODULE PAGE ===== */

.create-module-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .create-module-layout { grid-template-columns: 1fr; }
}

.module-sidebar-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 100px;
}

.module-sidebar-panel h3 {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ===== MISC ===== */

.add-scene-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 16px 0 4px;
}

.form-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 0;
}

.form-section-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===========================
   PREMIUM UI OVERHAUL v2
   Neurosattva Dashboard
=========================== */

.module-card {
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,.16) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 28px 56px rgba(0,0,0,.26) !important;
  border-color: rgba(56,189,248,.38) !important;
}

.module-thumb {
  position: relative;
  background: linear-gradient(135deg, rgba(15,118,110,.7), rgba(37,99,235,.5)) !important;
}

.module-thumb::after {
  content: '🎬';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  opacity: .28;
  pointer-events: none;
}

.module-thumb img ~ *,
.module-thumb:has(img)::after {
  display: none;
}

.module-version-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #0f766e, #2563eb) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.24);
}

.module-card-body {
  padding: 18px !important;
  color: #fff;
}

.module-card-body h3 {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 16px !important;
}

.module-card-meta {
  color: rgba(255,255,255,.6) !important;
  font-size: 12px;
}

.module-card-meta strong {
  color: rgba(255,255,255,.82);
}

.module-card-actions {
  padding: 14px 18px !important;
  border-top: 1px solid rgba(255,255,255,.1) !important;
  background: rgba(0,0,0,.08);
}

.badge.active {
  background: rgba(20,184,166,.22) !important;
  color: #5eead4 !important;
  border: 1px solid rgba(20,184,166,.36) !important;
}

.badge.archived {
  background: rgba(255,255,255,.1) !important;
  color: rgba(255,255,255,.6) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
}

/* ── EMPTY STATE ── */
.empty-state {
  padding: 80px 32px;
  color: rgba(255,255,255,.6) !important;
  text-align: center;
}

.empty-state h3,
.empty-state h2 {
  color: #fff !important;
  font-size: 22px;
  margin: 0 0 8px;
}

.empty-state p {
  color: rgba(255,255,255,.6);
}

/* ── FORM SECTIONS (Create/Edit Module) ── */
.form-section {
  background: rgba(255,255,255,.09) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 18px !important;
  padding: 26px !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}

.form-section-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
  margin: 0 0 20px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #14D8C4, #3D6BFF);
  flex-shrink: 0;
}

/* ── DROP ZONES ── */
.drop-zone {
  border: 2px dashed rgba(255,255,255,.22) !important;
  border-radius: 16px !important;
  padding: 40px 24px !important;
  background: rgba(255,255,255,.04) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: border-color .2s ease, background .2s ease, transform .2s ease !important;
  position: relative;
}

.drop-zone::before {
  content: '⬆️';
  font-size: 32px;
  line-height: 1;
  filter: grayscale(.4);
  margin-bottom: 4px;
}

.drop-zone span {
  color: rgba(255,255,255,.65) !important;
  font-size: 14px;
  font-weight: 500;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: rgba(20,216,196,.6) !important;
  background: rgba(20,184,166,.08) !important;
  transform: scale(1.01) !important;
}

/* ── SCENE ROWS ── */
.scene-row {
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  transition: border-color .18s ease !important;
}

.scene-row:hover {
  border-color: rgba(56,189,248,.32) !important;
}

.scene-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  background: rgba(255,255,255,.06) !important;
  cursor: pointer !important;
  border: none !important;
  border-radius: 0 !important;
  user-select: none;
  transition: background .15s ease;
}

.scene-header:hover {
  background: rgba(255,255,255,.1) !important;
}

.scene-number {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #0f766e, #2563eb) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 10px rgba(20,184,166,.3);
}

.scene-summary {
  flex: 1;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.82) !important;
}

.scene-body {
  padding: 18px !important;
  border-top: 1px solid rgba(255,255,255,.1) !important;
  background: rgba(0,0,0,.06) !important;
}

/* ── CUSTOM RANGE SLIDERS ── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: none !important;
  outline: none;
  padding: 0 !important;
  cursor: pointer;
  width: 100%;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14D8C4, #3D6BFF);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20,216,196,.4);
  border: 2px solid rgba(255,255,255,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 14px rgba(20,216,196,.6);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14D8C4, #3D6BFF);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,.3);
  box-shadow: 0 2px 8px rgba(20,216,196,.4);
}

/* ── MODULE SIDEBAR PANEL ── */
.module-sidebar-panel {
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(20px) !important;
  color: #fff !important;
}

.module-sidebar-panel h3 {
  color: rgba(255,255,255,.55) !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  font-weight: 800 !important;
  margin: 0 0 16px !important;
}

.module-sidebar-panel ul {
  color: rgba(255,255,255,.65) !important;
}

.module-sidebar-panel p strong {
  color: rgba(255,255,255,.85);
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.32);
}

/* ── BUTTON UPGRADES ── */
.button.primary,
.button.secondary {
  background: linear-gradient(135deg, #0f766e, #14b8a6, #2563eb) !important;
  box-shadow: 0 8px 24px rgba(20,184,166,.24);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}

.button.primary:hover,
.button.secondary:hover {
  box-shadow: 0 12px 32px rgba(37,99,235,.32) !important;
}

.button.full {
  padding: 13px 18px;
  min-height: 46px;
  font-size: 14px;
}

.button.ghost {
  background: rgba(255,255,255,.1) !important;
  border-color: rgba(255,255,255,.2) !important;
  color: #fff !important;
}

.button.ghost:hover {
  background: rgba(255,255,255,.16) !important;
}

.button.danger {
  background: linear-gradient(135deg, #dc2626, #f97316) !important;
  box-shadow: 0 6px 18px rgba(220,38,38,.24);
}

/* ── FOCUS RING ACCESSIBILITY ── */
:focus-visible {
  outline: 2px solid rgba(20,216,196,.8);
  outline-offset: 3px;
}

/* ── ALERT / FLASH MESSAGES ── */
.alert {
  font-size: 14px;
  border-radius: 14px !important;
  padding: 14px 18px !important;
}

.alert.success {
  background: rgba(34,197,94,.18) !important;
  color: #86efac !important;
  border: 1px solid rgba(34,197,94,.28) !important;
}

.alert.danger {
  background: rgba(248,113,113,.18) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(248,113,113,.28) !important;
}

/* ── MODAL GLASS ── */
.modal-backdrop {
  backdrop-filter: blur(18px) !important;
  background: rgba(4,14,30,.58) !important;
}

.modal-card,
.modal {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 22px !important;
  color: #fff !important;
  box-shadow: 0 32px 80px rgba(0,0,0,.32) !important;
  backdrop-filter: blur(24px) !important;
}

.modal-card h2,
.modal h2 {
  color: #fff !important;
}

.modal-card p,
.modal p {
  color: rgba(255,255,255,.72) !important;
}

/* ── AUDIO FILE ROWS ── */
.audio-file-row {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 12px !important;
  padding: 11px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: border-color .15s ease, background .15s ease !important;
}

.audio-file-row:hover {
  border-color: rgba(20,184,166,.36) !important;
  background: rgba(20,184,166,.08) !important;
}

.audio-file-row span {
  color: rgba(255,255,255,.85) !important;
  font-size: 13px;
  font-weight: 500;
}

/* ── LABEL STYLE ── */
.dashboard-body label,
.dashboard-body .form-group > label {
  color: rgba(255,255,255,.78) !important;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ── VERSION INFO BOX ── */
.version-info-box {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 13.5px;
  color: rgba(255,255,255,.8) !important;
}

.version-info-box strong {
  color: #14D8C4;
}

/* ── TOPBAR BUTTON ── */
.topbar .button.ghost {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.22) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
}

.topbar .button.ghost:hover {
  background: rgba(255,255,255,.2) !important;
  transform: translateY(-1px);
}

/* ── CONTENT GRID GAPS ── */
.content {
  gap: 20px !important;
}

/* ── PLAYER HUD ── */
.runtime-hud {
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(20px);
  color: #fff !important;
}

.hud-title {
  color: #14D8C4 !important;
  font-size: 11px !important;
  letter-spacing: .1em !important;
}

.hud-label {
  color: rgba(255,255,255,.58) !important;
}

.hud-value {
  color: #fff !important;
}

.hud-row {
  border-bottom-color: rgba(255,255,255,.1) !important;
}

/* ── STAT VALUE / LABEL (vault page) ── */
.stat-value {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.58);
  margin-top: 6px;
}

/* ── VAULT TOOLBAR ── */
.vault-toolbar .button,
.vault-toolbar input,
.vault-toolbar select {
  border-radius: 12px !important;
}

/* ── PROFILE LIST ── */
.profile-list {
  border-radius: 16px !important;
  padding: 20px !important;
}

/* ── FORM SELECT ── */
select {
  cursor: pointer;
}

/* ── MISC POLISH ── */
.callout {
  border-radius: 14px !important;
  border-left-width: 4px !important;
}

.table-wrap {
  border-radius: 18px !important;
  /* overflow: hidden was removed — it blocked horizontal scrolling.
     Scrolling is handled by overflow-x: auto set above. */
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.table-wrap table {
  width: 100%;
  white-space: nowrap;
}

.table-wrap th {
  white-space: nowrap;
}

.table-wrap td {
  white-space: nowrap;
}

.main-panel {
  overflow-y: auto !important;
}

.filters input,
.filters select {
  border-radius: 12px !important;
}

.grid-form label {
  gap: 6px !important;
}

/* ── PAGE TRANSITION ── */
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.content > * {
  animation: pageSlideIn .35s ease both;
}

.content > *:nth-child(1) { animation-delay: .04s; }
.content > *:nth-child(2) { animation-delay: .1s;  }
.content > *:nth-child(3) { animation-delay: .16s; }
.content > *:nth-child(4) { animation-delay: .22s; }
.content > *:nth-child(5) { animation-delay: .28s; }

/* ── RESPONSIVE SIDEBAR USER ── */
@media (max-width: 820px) {
  .sidebar-user { flex-direction: row; padding: 12px; }
  .sidebar-avatar { width: 32px; height: 32px; font-size: 14px; }
}

/* ===== REDESIGNED MODULE EDITOR LAYOUT ===== */
.module-editor-card {
  max-width: 1100px;
  margin: 0 auto;
}

.editor-section {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 24px;
}

.editor-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.editor-section-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14D8C4, #3D6BFF);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(20, 216, 196, .35);
}

.media-box {
  background: rgba(0, 0, 0, .14);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 18px;
}

.compact-dropzone {
  padding: 24px 16px !important;
  min-height: 120px;
  justify-content: center;
}

/* ============================================================
   NEUROSATTVA ULTIMATE UI & LAYOUT POLISH
   ============================================================ */

/* ── SIDEBAR NAVIGATION & ICONS ── */
.sidebar nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.sidebar nav a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all .18s ease !important;
  position: relative !important;
}

.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.sidebar nav a.active {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.32), rgba(37, 99, 235, 0.22)) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.sidebar nav a.active::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 20% !important;
  bottom: 20% !important;
  width: 4px !important;
  border-radius: 0 4px 4px 0 !important;
  background: #14D8C4 !important;
  box-shadow: 0 0 10px #14D8C4 !important;
}

.nav-icon {
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: inherit !important;
}

.nav-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
}

.nav-label {
  flex: 1 !important;
  white-space: nowrap !important;
}

/* ── SIDEBAR USER PROFILE FOOTER ── */
.sidebar-user {
  margin-top: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.sidebar-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #0f766e, #2563eb) !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.35) !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
}

.sidebar-user-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 !important;
  overflow: hidden !important;
}

.sidebar-user-info strong {
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: unset !important;
}

.sidebar-user-info span {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 11.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
}

/* ── PROFILE LIST STYLING ── */
.profile-list {
  display: grid !important;
  grid-template-columns: 160px 1fr !important;
  gap: 16px 24px !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
  padding: 24px !important;
  margin: 0 !important;
}

.profile-list dt {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}

.profile-list dd {
  margin: 0 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

/* ── TABLE OVERFLOW & SCROLLING ── */
.table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.table-wrap table,
table {
  width: 100% !important;
  min-width: 900px !important;
  border-collapse: collapse !important;
}

th, td {
  white-space: nowrap !important;
}
