/* My Lockers - visual layer only. JS selectors are preserved. */

.page-my-lockers .topbar::before {
  display: none !important;
}

.content.content--my-lockers {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 28px 44px;
}

.ml-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.ml-hero-title {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 8px;
}

.ml-hero-lead {
  color: #334155;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.5;
}

.ml-identity-line {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.ml-identity-line:empty {
  display: none;
}

.ml-hero-tools {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.ml-btn-primary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #4f46e5;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.26);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ml-btn-primary:hover {
  background: #4338ca;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.3);
  transform: translateY(-1px);
}

.ml-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
  align-items: stretch;
}

.ml-main-col {
  min-width: 0;
}

.ml-status {
  min-height: 0;
  margin: 0 0 10px;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 700;
}

.ml-status:empty {
  display: none;
}

.ml-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ml-card {
  position: relative;
  min-height: 282px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #e7ebf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.ml-card-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
}

.ml-card-icon {
  width: 48px;
  height: 48px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #4f46e5;
  background: #eef2ff;
  font-size: 0;
}

.ml-card-icon::before {
  content: "";
  width: 18px;
  height: 22px;
  border: 2px solid currentColor;
  border-bottom-width: 3px;
  border-radius: 2px 2px 0 0;
}

.ml-card-icon::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(4px, 2px);
}

.ml-card-titles {
  min-width: 0;
}

.ml-card-id {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
}

.ml-card-size {
  margin-top: 2px;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: capitalize;
}

.ml-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ml-badge--use {
  color: #1d4ed8;
  background: #eff6ff;
}

.ml-badge--secured {
  color: #047857;
  background: #dcfce7;
}

.ml-badge--hold {
  color: #b45309;
  background: #fef3c7;
}

.ml-card-rows {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.ml-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #1e293b;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}

.ml-row-ico {
  width: 24px;
  height: 24px;
  position: relative;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 0;
}

.ml-row-ico::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
}

.ml-row:first-child .ml-row-ico::before {
  width: 13px;
  height: 13px;
  border-radius: 999px 999px 999px 0;
  transform: rotate(-45deg);
}

.ml-row:first-child .ml-row-ico::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.ml-row:nth-child(2) .ml-row-ico::before {
  width: 15px;
  height: 16px;
  border-radius: 3px;
}

.ml-row:nth-child(2) .ml-row-ico::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 15px;
  height: 2px;
  background: currentColor;
}

.ml-row small {
  display: none;
}

.ml-card-actions {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  margin-top: auto;
}

.ml-btn-pin {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #020617;
  border-radius: 6px;
  background: #020617;
  color: #fff;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ml-btn-pin:hover {
  background: #111827;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.22);
}

.ml-btn-pin {
  font-size: 0;
}

.ml-btn-pin::before {
  content: "***";
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.ml-btn-pin::after {
  content: "Access PIN";
  font-size: 0.84rem;
}

.ml-btn-pin svg {
  display: none;
}

.ml-btn-more {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.ml-btn-more::before {
  content: "...";
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.ml-btn-more:hover {
  color: #4f46e5;
  border-color: #c7d2fe;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.12);
}

.ml-menu {
  position: absolute;
  right: 22px;
  bottom: 74px;
  z-index: 30;
  min-width: 200px;
  display: none;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.ml-menu.show {
  display: block;
}

.ml-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #111827;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.ml-menu a:hover {
  color: #4f46e5;
  background: #eef2ff;
}

.ml-empty {
  grid-column: 1 / -1;
  min-height: 250px;
  display: grid;
  place-items: center;
  padding: 38px 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.ml-empty-title {
  margin-bottom: 8px;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 800;
}

.ml-empty-text {
  max-width: 380px;
  margin: 0 auto;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

.ml-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #4f46e5;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.ml-usage-card {
  position: relative;
  min-height: 282px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 28px 24px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #5b5cf6 0%, #645cf4 58%, #7467f2 100%);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.28);
}

.ml-usage-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -28px;
  width: 118px;
  height: 118px;
  border: 14px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 44px;
  border-top-right-radius: 44px;
  border-bottom: 0;
  transform: rotate(-2deg);
}

.ml-usage-title {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 800;
}

.ml-usage-stat {
  margin-bottom: 16px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ml-usage-stat #mlActiveCount {
  display: block;
  margin-bottom: 2px;
  font-size: 2rem;
  line-height: 1;
  text-transform: none;
}

.ml-usage-bar-wrap {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.ml-usage-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.86);
  transition: width 0.35s ease;
}

.ml-usage-hint {
  margin-top: 10px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.45;
}

.ml-btn-extend {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  border-radius: 6px;
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.ml-btn-extend.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.ml-usage-foot {
  display: none;
}

.ml-campus {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 260px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid #e7ebf3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.ml-campus-copy {
  padding: 36px 28px;
  border-right: 1px solid #e7ebf3;
  background: #fff;
}

.ml-campus-kicker {
  margin-bottom: 14px;
  color: #4f46e5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ml-campus-title {
  margin-bottom: 14px;
  color: #111827;
  font-size: 0.98rem;
  font-weight: 800;
}

.ml-campus-lead {
  max-width: 230px;
  color: #1e293b;
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.55;
}

.ml-legend {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  list-style: none;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}

.ml-legend li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ml-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.ml-dot--active {
  background: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16);
}

.ml-dot--muted {
  background: #dbe2ee;
}

.ml-campus-map {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.82), transparent 30%),
    linear-gradient(130deg, #f8fafc 0%, #dfe6ec 38%, #344251 100%);
  perspective: 900px;
}

.ml-map-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.ml-map-shadow {
  position: absolute;
  left: 18%;
  right: 10%;
  bottom: 26px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
  filter: blur(18px);
}

.ml-map-base,
.ml-map-slab,
.ml-map-wing {
  position: absolute;
  transform: skewY(-18deg) rotateX(58deg) rotateZ(-22deg);
  transform-origin: center;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.16);
}

.ml-map-base {
  left: 23%;
  top: 42%;
  width: 58%;
  height: 38%;
  background: linear-gradient(145deg, #f8fafc, #d9e2ea);
}

.ml-map-slab {
  left: 34%;
  top: 28%;
  width: 45%;
  height: 29%;
  background: linear-gradient(145deg, #ffffff, #e7edf3);
}

.ml-map-wing {
  background: linear-gradient(145deg, #ffffff, #edf2f7);
}

.ml-map-wing--a {
  left: 20%;
  top: 39%;
  width: 30%;
  height: 18%;
}

.ml-map-wing--b {
  left: 55%;
  top: 57%;
  width: 28%;
  height: 17%;
}

.ml-map-wing--c {
  left: 43%;
  top: 18%;
  width: 23%;
  height: 16%;
  background: linear-gradient(145deg, #cad8e2, #f8fafc);
}

.ml-map-pin {
  position: absolute;
  z-index: 5;
  width: 28px;
  height: 28px;
  font-size: 0;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 12px 22px rgba(79, 70, 229, 0.32);
  transform: translate(-50%, -50%);
  cursor: default;
}

.ml-map-pin::before {
  content: "";
  width: 11px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 2px;
  transform: translateY(2px);
}

.ml-map-pin::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  transform: translateY(-5px);
}

.ml-map-pin svg {
  display: none;
}

.ml-map-pin--dim {
  width: 8px;
  height: 8px;
  border: 0;
  background: rgba(226, 232, 240, 0.95);
  box-shadow: 0 0 0 6px rgba(226, 232, 240, 0.22);
}

.ml-map-pin--dim svg,
.ml-map-pin--dim span,
.ml-map-pin--dim::before,
.ml-map-pin--dim::after {
  display: none;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1050px) {
  .ml-layout {
    grid-template-columns: 1fr;
  }

  .ml-usage-card {
    min-height: 230px;
  }
}

@media (max-width: 820px) {
  .content.content--my-lockers {
    padding: 22px 16px 36px;
  }

  .ml-hero {
    flex-direction: column;
  }

  .ml-hero-tools,
  .ml-btn-primary {
    width: 100%;
  }

  .ml-cards {
    grid-template-columns: 1fr;
  }

  .ml-campus {
    grid-template-columns: 1fr;
  }

  .ml-campus-copy {
    border-right: 0;
    border-bottom: 1px solid #e7ebf3;
  }
}

@media (max-width: 520px) {
  .ml-card-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .ml-badge {
    grid-column: 2;
    justify-self: start;
  }

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

  .ml-btn-more {
    width: 100%;
  }
}
