:root {
  --bg1: #eef4ff;
  --bg2: #f9fbff;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .76);
  --stroke: rgba(255, 255, 255, .72);
  --text: #182033;
  --muted: #697386;
  --shadow: 0 24px 70px rgba(31, 44, 71, .16);
  --radius: 28px;
  --blue: #1e6bff;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #dbe8ff, transparent 34%), radial-gradient(circle at 85% 0%, #f6d8ff, transparent 28%), linear-gradient(135deg, var(--bg1), var(--bg2));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: #145ee6; text-decoration: none; }
a:hover { text-decoration: underline; }

.app-bg::before, .app-bg::after {
  content: "";
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(15px);
  opacity: .45;
  pointer-events: none;
}
.app-bg::before { background: #a7d4ff; left: 8%; top: 8%; }
.app-bg::after { background: #ffd4ec; right: 5%; bottom: 8%; }

.auth-body { display: flex; align-items: center; }
.auth-shell { width: 100%; }

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px;
  min-height: 100vh;
}

.app-main { min-width: 0; }

.glass-sidebar, .glass-topbar, .glass-card, .glass-navbar, .hero-glass, .locker-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border-radius: var(--radius);
}

.glass-sidebar {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  padding: 22px;
}

.glass-topbar {
  min-height: 92px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glass-navbar { padding: 12px; }
.glass-card, .hero-glass { position: relative; overflow: hidden; }
.glass-card::before, .hero-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,.52), rgba(255,255,255,0) 42%);
  pointer-events: none;
}
.glass-card > *, .hero-glass > * { position: relative; }

.brand-mark { display: flex; align-items: center; gap: 12px; }
.brand-mark small { display: block; color: var(--muted); line-height: 1; }
.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(145deg, #1e6bff, #78a7ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 25px rgba(30,107,255,.28);
}

.nav-link {
  color: #273247;
  border-radius: 16px;
  padding: 11px 14px;
  transition: all .18s ease;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.65);
  transform: translateX(3px);
  text-decoration: none;
}

.form-control, .form-select {
  border-radius: 16px;
  border: 1px solid rgba(105,115,134,.22);
  background-color: rgba(255,255,255,.72);
  padding: 11px 14px;
}
.form-control:focus, .form-select:focus {
  border-color: rgba(30,107,255,.5);
  box-shadow: 0 0 0 .25rem rgba(30,107,255,.12);
}

.btn { border-radius: 999px; padding-left: 18px; padding-right: 18px; }
.btn-primary {
  background: linear-gradient(135deg, #1e6bff, #5f90ff);
  border: 0;
  box-shadow: 0 12px 25px rgba(30,107,255,.28);
}
.btn-glass {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.85);
  color: #1f2b3f;
}
.btn-glass:hover { background: rgba(255,255,255,.85); text-decoration: none; }

.user-pill, .balance-pill {
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .9rem;
}

.stat-card { padding: 24px; min-height: 130px; display: flex; flex-direction: column; justify-content: center; }
.stat-card span { color: var(--muted); }
.stat-card strong { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }

.table-glass { --bs-table-bg: transparent; --bs-table-striped-bg: rgba(255,255,255,.32); }
.table-glass th { color: #586174; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.table-glass td, .table-glass th { border-color: rgba(120,135,160,.18); }

.glass-alert { border-radius: 20px; border: 1px solid rgba(255,255,255,.7); }
.timeline { display: grid; gap: 14px; }
.timeline-item { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.75); }
.timeline-item small { display: block; color: var(--muted); }
.timeline-item p { margin: 6px 0 0; }

.locker-card { background: rgba(255,255,255,.72); }

@media (max-width: 992px) {
  .app-shell { grid-template-columns: 1fr; padding: 14px; }
  .glass-sidebar { position: static; height: auto; }
  .glass-topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.locker-code-pill,
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 14px 35px rgba(50,60,90,.12);
  font-weight: 800;
}

.locker-field {
  height: 100%;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(255,255,255,.76);
}

.locker-field span {
  display: block;
  font-size: .78rem;
  color: #637083;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.locker-field strong {
  display: block;
  font-size: 1.02rem;
  color: #151c2f;
}

.product-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 12px 26px rgba(60,70,100,.14);
}

.product-photo-lg {
  width: 100%;
  max-height: 290px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 18px 45px rgba(60,70,100,.14);
}

.breakdown-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.74);
}

.breakdown-card > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(90,105,130,.14);
}

.breakdown-card > div:last-child {
  border-bottom: 0;
}

.breakdown-card span {
  color: #637083;
}

.breakdown-card strong {
  color: #12192c;
  text-align: right;
}

.breakdown-card .total {
  margin-top: 4px;
  padding-top: 14px;
  font-size: 1.05rem;
  font-weight: 800;
}
