:root {
  --green: #22c55e;
  --green-soft: #dcfce7;
  --green-dark: #16a34a;
  --red: #ef4444;
  --red-soft: #fee2e2;
  --yellow: #f59e0b;
  --yellow-soft: #fef3c7;
  --bg: #f8fafc;
  --surface: #fff;
  --surface2: #f8fafc;
  --surface3: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --primary: #dc2626;
  --primary-soft: #fef2f2;
  --primary-dark: #991b1b;
  --r: 14px;
  --r-sm: 10px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow: 0 2px 16px rgba(0, 0, 0, .07);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, .09);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .13);
  --sidebar-w: 260px;
  --content-max: 940px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Sora', sans-serif;
}

a {
  text-decoration: none;
}

/* ═══ SHELL ═══ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: none;
  flex-direction: column;
  z-index: 200;
  box-shadow: 2px 0 20px rgba(0, 0, 0, .06);
}

.sb-logo {
  padding: 26px 22px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.sb-logo-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
  font-family: 'Sora', sans-serif;
}

.sb-logo-name span {
  color: var(--primary);
}

.sb-nav {
  flex: 1;
  padding: 14px 10px;
  overflow-y: auto;
}

.sb-sec {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 12px;
  margin: 14px 0 5px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all .18s;
  margin-bottom: 2px;
  font-family: 'Sora', sans-serif;
}

.sb-item:hover {
  background: var(--surface3);
  color: var(--text);
}

.sb-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.sb-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sb-foot {
  padding: 14px 10px;
  border-top: 1px solid var(--border);
}

.sb-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface3);
  cursor: pointer;
}

.sb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Sora', sans-serif;
}

.sb-uname {
  font-size: 13px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-uid {
  font-size: 11px;
  color: var(--text-muted);
}

/* Topbar — mobile/tablet */
.topbar {
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

.topbar-logo {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  letter-spacing: -.4px;
}

.topbar-logo span {
  color: var(--primary);
}

.topbar-title {
  font-size: 16px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  flex: 1;
}

.topbar-back {
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  flex-shrink: 0;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: 'Sora', sans-serif;
  margin-left: auto;
  flex-shrink: 0;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 150;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .07);
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  color: var(--text-light);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 0;
  font-family: 'Sora', sans-serif;
  transition: color .2s;
}

.bn-item.active {
  color: var(--primary);
}

.bn-icon {
  font-size: 20px;
  line-height: 1;
}

/* Main area */
.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Pages */
.page {
  display: flex;
  flex-direction: column;
  animation: fadeUp .28s ease;
  flex: 1;
  min-height: 100vh;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-body {
  flex: 1;
  padding: 24px 20px 100px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ═══ COMPONENTS ═══ */
.card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s;
  letter-spacing: -.2px;
  white-space: nowrap;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, .3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, .3);
}

.btn-ghost {
  background: var(--surface3);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--border);
}

.btn-danger-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}

.ig {
  margin-bottom: 22px;
}

.il {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 9px;
  display: block;
  font-family: 'Sora', sans-serif;
  letter-spacing: .8px;
  text-transform: uppercase;
  opacity: .85;
}

.iw {
  position: relative;
}

.ii {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-light);
  pointer-events: none;
  transition: all .2s ease;
  z-index: 10;
}

.iw input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px 0 48px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  background: var(--surface2);
  color: var(--text);
  transition: all .24s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.iw input:hover {
  border-color: var(--text-light);
  background: #fff;
}

.iw input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
  background: #fff;
}

.iw input:focus+.ii {
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
}

.bg-green {
  background: var(--green-soft);
  color: var(--green-dark);
}

.bg-red {
  background: var(--red-soft);
  color: var(--red);
}

.bg-yellow {
  background: var(--yellow-soft);
  color: #92400e;
}

.bg-blue {
  background: var(--primary-soft);
  color: var(--primary);
}

.sec-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 14px;
  font-family: 'Sora', sans-serif;
}

.g2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.g3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.g4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ═══ LANDING ═══ */
#page-landing {
  background: linear-gradient(150deg, #eef2ff 0%, #f8fafc 45%, #dcfce7 100%);
  min-height: 100vh;
}

#page-landing .page-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 28px;
  text-align: center;
  gap: 0;
}

.l-illus {
  width: 180px;
  height: 180px;
  position: relative;
  margin-bottom: 36px;
  flex-shrink: 0;
}

.l-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c7d2fe, #a5f3fc);
  position: absolute;
  top: 10px;
  left: 10px;
  opacity: .55;
}

.l-card {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 132px;
  height: 132px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.l-icon {
  font-size: 52px;
  line-height: 1;
}

.l-dots {
  display: flex;
  gap: 5px;
}

.l-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.l-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  margin-bottom: 18px;
}

.l-h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.l-h1 span {
  color: var(--primary);
}

.l-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 340px;
}

.l-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.l-footer {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

/* ═══ AUTH ═══ */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-band {
  background: var(--primary-dark);
  padding: 24px 28px 40px;
}

.auth-back {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}

.auth-band h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.6px;
}

.auth-band p {
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  margin-top: 5px;
}

.auth-body {
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: -20px;
  flex: 1;
  padding: 30px 24px 40px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-body-inner {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.id-toggle {
  display: flex;
  background: var(--surface3);
  border-radius: var(--r-sm);
  padding: 4px;
  gap: 4px;
  margin-bottom: 22px;
}

.id-btn {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  border: none;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  background: transparent;
  color: var(--text-muted);
}

.id-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .09);
}

.auth-div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.auth-div-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-div span {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.auth-link {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-link a {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

/* ═══ DASHBOARD ═══ */
.dash-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
  border-radius: var(--r-lg);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.dash-hero::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  right: -50px;
  top: -60px;
}

.dash-hero::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  right: 60px;
  bottom: -30px;
}

.dash-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dh-label {
  font-size: 13px;
  opacity: .8;
  margin-bottom: 3px;
}

.dh-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.dh-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  border: 2px solid rgba(255, 255, 255, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
}

.dh-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .2);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}

.dh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  opacity: .7;
}

.dh-cta {
  margin-top: 16px;
  background: rgba(255, 255, 255, .2);
  border: 1.5px solid rgba(255, 255, 255, .35);
  color: #fff;
  backdrop-filter: blur(10px);
  width: auto;
  font-size: 14px;
  padding: 11px 20px;
}

.dh-cta:hover {
  background: rgba(255, 255, 255, .3) !important;
  transform: translateY(-1px);
}

.qcard {
  background: var(--surface);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all .2s;
  border: 1.5px solid transparent;
}

.qcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

.qcard-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.qcard-label {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  margin-bottom: 2px;
}

.qcard-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.h-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.h-item:last-child {
  border-bottom: none;
}

.h-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Sora', sans-serif;
  flex-shrink: 0;
}

.h-info {
  flex: 1;
}

.h-name {
  font-size: 14px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}

.h-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══ LOCKER SELECTION ═══ */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}

.chip.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.leg-sq {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.row-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 10px;
  font-family: 'Sora', sans-serif;
}

.lk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.lk {
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all .15s;
  border: 2px solid transparent;
}

.lk.available {
  background: var(--green-soft);
  border-color: #bbf7d0;
}

.lk.occupied {
  background: var(--red-soft);
  border-color: #fecaca;
  cursor: not-allowed;
  opacity: .8;
}

.lk.pending {
  background: var(--yellow-soft);
  border-color: #fde68a;
}

.lk.disabled, .lk.maintenance {
  background: #f1f5f9;
  border-color: #cbd5e1;
  cursor: not-allowed;
  opacity: .75;
}

.lk.selected {
  background: var(--primary-soft);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}

.lk:hover.available {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(34, 197, 94, .25);
}

.lk-icon {
  font-size: 18px;
}

.lk-num {
  font-size: 13px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
}

.lk.available .lk-num {
  color: var(--green-dark);
}

.lk.occupied .lk-num {
  color: var(--red);
}

.lk.pending .lk-num {
  color: #92400e;
}

.lk.disabled .lk-num, .lk.maintenance .lk-num {
  color: #64748b;
}

.lk.disabled .lk-icon, .lk.maintenance .lk-icon {
  color: #e11d48;
}

.lk.selected .lk-num {
  color: var(--primary);
}

.lk-cta {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  margin: 0 -20px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}

/* ═══ CONFIRMATION ═══ */
.conf-hero {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.conf-hero::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  right: -30px;
  top: -40px;
}

.conf-badge {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .2);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.conf-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.conf-sub {
  font-size: 13px;
  opacity: .8;
  margin-top: 3px;
}

.conf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.conf-row:last-child {
  border-bottom: none;
}

.conf-lbl {
  font-size: 13px;
  color: var(--text-muted);
}

.conf-val {
  font-size: 14px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}

.note-box {
  background: var(--yellow-soft);
  border-radius: var(--r-sm);
  padding: 14px;
  display: flex;
  gap: 10px;
}

.note-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.note-text {
  font-size: 13px;
  color: #92400e;
  line-height: 1.55;
}

/* ═══ QR CODE ═══ */
.qr-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow-soft);
  border: 1.5px solid #fde68a;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
}

.qr-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
  animation: pulseAnim 1.5s infinite;
}

@keyframes pulseAnim {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .45;
    transform: scale(.85);
  }
}

.qr-pulse-text {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  font-family: 'Sora', sans-serif;
}

.qr-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-chips {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 22px;
}

.qr-chip {
  flex: 1;
  background: var(--surface2);
  border-radius: var(--r-sm);
  padding: 10px;
  text-align: center;
}

.qr-chip-lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.qr-chip-val {
  font-size: 17px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  margin-top: 2px;
}

.qr-wrap {
  background: #fff;
  border: 3px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: inline-block;
  margin-bottom: 20px;
}

.qr-svg {
  display: block;
  width: 200px;
  height: 200px;
}

.qr-code-num {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  letter-spacing: 4px;
  margin-bottom: 4px;
}

.qr-code-lbl {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.qr-hint {
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.qr-hint-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.qr-hint h4 {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  margin-bottom: 2px;
}

.qr-hint p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══ ACTIVE ═══ */
.act-hero {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.act-hero::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  right: -60px;
  top: -60px;
}

.act-check {
  font-size: 50px;
  margin-bottom: 8px;
  display: block;
}

.act-lnum {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  font-family: 'Sora', sans-serif;
}

.act-lsub {
  font-size: 14px;
  opacity: .85;
  margin-top: 2px;
}

.act-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .2);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  margin-top: 14px;
}

.act-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulseAnim 1.5s infinite;
}

.det-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.det-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.det-row:last-child {
  border-bottom: none;
}

.det-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.det-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

.det-val {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  margin-top: 1px;
}

/* ═══ HISTORY ═══ */
.hc {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.hc-lk {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
}

.hc-lk.done {
  background: var(--surface3);
  color: var(--text-muted);
}

.hc-info {
  flex: 1;
}

.hc-title {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
}

.hc-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.hc-foot {
  background: var(--surface3);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hc-fi {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hc-fi strong {
  color: var(--text);
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}

/* ═══ RESPONSIVE ═══ */

/* Tablet ≥ 640px */
@media(min-width:640px) {
  .page-body {
    padding: 28px 32px 100px;
  }

  .l-h1 {
    font-size: 40px;
  }

  .l-illus {
    width: 220px;
    height: 220px;
  }

  .l-ring {
    width: 200px;
    height: 200px;
  }

  .l-card {
    width: 168px;
    height: 168px;
    top: 26px;
    left: 26px;
  }

  .l-icon {
    font-size: 68px;
  }

  .l-btns {
    flex-direction: row;
    max-width: 440px;
  }

  .l-btns .btn {
    flex: 1;
  }

  .auth-shell {
    flex-direction: row;
  }

  .auth-band {
    width: 320px;
    flex-shrink: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
  }

  .auth-body {
    flex: 1;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
  }

  .g4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .g2 {
    grid-template-columns: 1fr 1fr;
  }

  .g3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .lk-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .qr-card {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }

  .lk-cta {
    margin: 0 -32px;
  }
}

/* Desktop ≥ 1024px */
@media(min-width:1024px) {
  .sidebar {
    display: flex;
  }

  .main-area {
    margin-left: var(--sidebar-w);
  }

  .bottom-nav {
    display: none;
  }

  .topbar {
    display: none;
  }

  .page-body {
    padding: 36px 40px 60px;
  }

  #page-landing .page-body {
    flex-direction: row;
    text-align: left;
    gap: 64px;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 48px;
  }

  .l-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .l-desc {
    max-width: 420px;
  }

  .l-btns {
    flex-direction: row;
  }

  .l-btns .btn {
    flex: none;
  }

  .l-illus {
    width: 260px;
    height: 260px;
    margin-bottom: 0;
  }

  .l-ring {
    width: 240px;
    height: 240px;
  }

  .l-card {
    width: 200px;
    height: 200px;
    top: 30px;
    left: 30px;
  }

  .l-icon {
    font-size: 80px;
  }

  .l-h1 {
    font-size: 50px;
  }

  .auth-band {
    width: 380px;
    padding: 60px 48px;
  }

  .auth-body {
    padding: 60px 48px;
  }

  .lk-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .g2 {
    grid-template-columns: 1fr 1fr;
  }

  .g3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .g4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .qr-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .qr-layout .qr-card {
    max-width: none;
    margin: 0;
  }

  .act-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .lk-cta {
    margin: 0 -40px;
  }
}

/* Wide ≥ 1280px */
@media(min-width:1280px) {
  :root {
    --sidebar-w: 280px;
  }

  .lk-grid {
    grid-template-columns: repeat(10, 1fr);
  }

  .l-h1 {
    font-size: 58px;
  }

  .page-body {
    padding: 40px 48px 60px;
  }
}

/* ═══ REGISTER — Split Layout ═══ */
.split-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.split-left,
.split-right {
  flex: 1;
  min-width: 320px;
}

/* Camera Modal */
.camera-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.camera-box {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 500px;
}

#video-preview {
  width: 100%;
  border-radius: 12px;
  background: #000;
  margin-bottom: 20px;
}

/* Select inside .iw */
.iw select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px 0 48px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  background: var(--surface2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 16px center/16px;
  color: var(--text);
  transition: all .24s cubic-bezier(.4, 0, .2, 1);
  outline: none;
  appearance: none;
}

.iw select:hover {
  border-color: var(--text-light);
  background-color: #fff;
}

.iw select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
  background-color: #fff;
}

/* OTP Inputs */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.otp-inputs input {
  width: 45px;
  height: 55px;
  font-size: 24px;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
}

.otp-inputs input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}

/* ═══ TnC MODAL ═══ */
.tnc-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tnc-modal-box {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  text-align: left;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
}

/* ═══ QR LAYOUT extras ═══ */
.qr-chip-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 22px;
}

.qr-chip-row .qr-chip {
  flex: 1;
}

.qr-instr {
  background: var(--surface2);
  border-radius: var(--r-sm);
  padding: 16px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 12px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
}

/* ═══ REGISTER LAYOUT ENHANCEMENTS ═══ */
.register-shell {
  width: 100%;
  max-width: 980px;
  margin: 30px auto;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.register-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 32px 40px;
  color: #fff;
}

.register-band h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-top: 6px;
}

.register-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-top: 4px;
}

.register-body {
  padding: 36px 40px;
}

.verify-card {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.file-upload-zone {
  border: 2px dashed #cbd5e1;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}

.file-upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

@media(max-width: 768px) {
  .register-shell {
    margin: 10px auto;
    border-radius: 16px;
  }

  .register-band {
    padding: 24px 20px;
  }

  .register-body {
    padding: 24px 20px;
  }
}

/* ═══ REGISTER PAGE ═══ */
.reg-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.reg-band {
  background: var(--primary-dark);
  padding: 28px 32px 48px;
}

.reg-band .auth-back {
  color: rgba(255, 255, 255, .75);
}

.reg-band h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  margin-top: 6px;
}

.reg-band p {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  margin-top: 4px;
}

.reg-body {
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  margin-top: -24px;
  flex: 1;
  padding: 36px 32px 60px;
  position: relative;
  z-index: 1;
}

.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 750px) {
  .reg-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .reg-body {
    padding: 28px 20px 60px;
  }

  .reg-band {
    padding: 24px 20px 48px;
  }
}

.reg-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 28px;
  grid-column: 1/-1;
}

/* File upload */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.file-drop:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.file-drop-icon {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 6px;
}

.file-drop-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.file-drop-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

#ktm-filename {
  font-size: 12px;
  color: var(--green-dark);
  font-weight: 700;
  margin-top: 8px;
  display: none;
}

/* Selfie preview */
#selfie-preview {
  display: none;
  width: 100%;
  border-radius: 14px;
  margin-top: 14px;
  border: 1.5px solid var(--border);
}

/* Warning box */
.warn-box {
  display: none;
  color: #be123c;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 14px;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
}

/* Submit row */
.reg-submit {
  max-width: 900px;
  margin: 32px auto 0;
}

/* ═══ MOBILE LOCKR ADAPTATION ═══ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .04);
}

.topbar-logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #dc2626;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.logo-box-text {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.logo-box-text span {
  color: #dc2626;
}

.topbar-hamburger {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #0f172a;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.topbar-hamburger:hover {
  background: var(--surface3);
}

/* Hero card */
.dash-hero {
  background: #dc2626;
  border-radius: 16px;
  padding: 24px 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.18);
}

.dash-hero-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2px;
  font-weight: 500;
}

.dash-hero-name {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.dash-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.dot-green {
  color: #22c55e;
}

.dot-red {
  color: #ef4444;
}

.dot-amber {
  color: #f59e0b;
}

.dash-hero-btn {
  width: 100%;
  background: #ffffff;
  color: #dc2626;
  border-radius: 12px;
  height: 48px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
}

.dash-hero-btn:active {
  transform: scale(0.98);
  background: #f8fafc;
}

/* Section titles */
.sec-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  font-family: 'Sora', sans-serif;
}

/* Ringkasan loker (3 column grid) */
.grid-summary-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.sum-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 10px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

.sum-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
}

.sum-icon-green {
  background: #dcfce7;
  color: #16a34a;
}

.sum-icon-red {
  background: #fee2e2;
  color: #ef4444;
}

.sum-icon-amber {
  background: #fef3c7;
  color: #d97706;
}

.sum-num {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  line-height: 1.1;
  margin-bottom: 2px;
}

.sum-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Aksi cepat (2 column grid) */
.grid-quick-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quick-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

.quick-card:active {
  transform: scale(0.98);
  background: var(--surface2);
}

.quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
}

.quick-title {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  color: var(--text);
  margin-bottom: 2px;
}

.quick-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Aktivitas terbaru list */
.activity-card-list {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 4px 16px;
  margin-bottom: 24px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-initial-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  flex-shrink: 0;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 150;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .05);
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 0;
  font-family: 'Sora', sans-serif;
  transition: color .2s;
}

.bn-item.active {
  color: #dc2626;
}

.bn-icon {
  font-size: 20px;
  line-height: 1;
}

/* Drawer / Mobile Sidebar Overlay */
.sidebar-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 250;
  backdrop-filter: blur(2px);
}

body.sidebar-mobile-open .sidebar-mobile-overlay {
  display: block;
}

/* ═══ RESPONSIVE LAYOUT (DESKTOP vs MOBILE) ═══ */
@media (min-width: 769px) {
  .sidebar {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    transform: none !important;
    z-index: 200;
  }

  .main-area {
    margin-left: var(--sidebar-w) !important;
  }

  .bottom-nav {
    display: none !important;
  }

  .topbar-hamburger {
    display: none !important;
  }

  .sidebar-mobile-overlay {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 300;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    width: 280px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  body.sidebar-mobile-open .sidebar {
    transform: translateX(0);
  }

  .main-area {
    margin-left: 0 !important;
  }

  .bottom-nav {
    display: flex !important;
  }

  .topbar-hamburger {
    display: flex !important;
  }

  .lk-cta {
    position: fixed;
    bottom: calc(56px + max(0px, env(safe-area-inset-bottom)));
    left: 0;
    right: 0;
    z-index: 160;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  }

  .lk-cta .btn {
    max-width: 100% !important;
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--r-sm);
  }

  #page-lockers .page-body {
    padding-bottom: 140px !important;
  }
}

/* Locker CTA button container */
.lk-cta {
  display: none;
  margin-top: 24px;
}

.lk-cta.active {
  display: block !important;
}

/* ═══════════════════════════════════════════════════════════
   OCR 3rd-FAILURE — WARNING BOX (register.php)
═══════════════════════════════════════════════════════════ */
.ocr-fail-warning {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  animation: fadeUp .3s ease;
}
.ocr-fail-warning .ofw-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ocr-fail-warning .ofw-icon {
  width: 36px;
  height: 36px;
  background: #f59e0b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.ocr-fail-warning .ofw-title {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
}
.ocr-fail-warning .ofw-body {
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
}
.ocr-fail-warning .ofw-body strong {
  color: #92400e;
  font-weight: 700;
}
.ocr-fail-warning .ofw-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f59e0b;
  color: #fff;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 10px;
  font-family: 'Sora', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   PENDING SUCCESS MODAL (register.php — after manual NIM submit)
═══════════════════════════════════════════════════════════ */
.pending-success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .25s ease;
}
.pending-success-overlay.show {
  display: flex;
}
.pending-success-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  animation: scaleIn .3s cubic-bezier(.34,1.56,.64,1);
}
.psc-icon-wrap {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
}
.psc-title {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}
.psc-subtitle {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 20px;
}
.psc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1.5px solid #f59e0b;
  color: #92400e;
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  margin-bottom: 24px;
}
.psc-info-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
  text-align: left;
}
.psc-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  padding: 5px 0;
}
.psc-info-row i {
  color: #f59e0b;
  margin-top: 2px;
  flex-shrink: 0;
}
.psc-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.psc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,.45);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
