:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --bg-soft: #fbfbfc;
  --panel: rgba(255, 255, 255, .72);
  --panel-strong: rgba(255, 255, 255, .92);
  --text: #101114;
  --muted: #737780;
  --muted-2: #9ca0a8;
  --line: rgba(20, 22, 28, .09);
  --line-strong: rgba(20, 22, 28, .14);
  --blue: #0071e3;
  --blue-soft: rgba(0, 113, 227, .11);
  --silver: #e9eaec;
  --titanium: #7d7f83;
  --success: #1a8f5a;
  --warning: #a76600;
  --danger: #d73a31;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 24px 70px rgba(24, 27, 34, .09);
  --shadow-soft: 0 10px 35px rgba(24, 27, 34, .07);
  --glass: saturate(180%) blur(26px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fffdfa 0%, #f7f5f1 54%, #efeeeb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: -.01em;
}
body::before {
  display: none;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.page-loading {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  color: var(--muted);
}
.loader {
  width: 34px;
  height: 34px;
  margin: auto;
  border: 2px solid rgba(16,17,20,.08);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fallback-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.fallback-card {
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid rgba(80,74,66,.10);
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 34px rgba(72,66,58,.08);
}
.fallback-card h1 {
  margin: 0 0 10px;
  font-size: 22px;
}
.fallback-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}
.fallback-card button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: #2f343c;
}
.fallback-detail {
  max-height: 180px;
  overflow: auto;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 14px;
  background: #f4f2ee;
  color: #8a3d34;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, .82fr);
  overflow: hidden;
}
.auth-page::before {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 58vw;
  height: 58vw;
  left: -18vw;
  top: -24vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238,240,243,.95), rgba(255,255,255,0) 66%);
}
.auth-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 46vw;
  height: 46vw;
  right: 10vw;
  bottom: -28vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,.10), rgba(255,255,255,0) 62%);
}
.auth-hero {
  position: relative;
  z-index: 1;
  padding: clamp(46px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #111317;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(232,234,237,.72)),
    radial-gradient(circle at 26% 20%, rgba(255,255,255,1), transparent 46%);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 18px 48px rgba(30,34,43,.13);
  font-weight: 760;
  font-size: 26px;
  letter-spacing: -.08em;
}
.auth-hero h1 {
  max-width: 720px;
  margin: 34px 0 18px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .96;
  letter-spacing: -.07em;
  font-weight: 760;
}
.auth-hero p {
  max-width: 620px;
  margin: 0;
  color: #4f535b;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.55;
  letter-spacing: -.025em;
}
.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}
.auth-points span {
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  color: #4a4e56;
  background: rgba(255,255,255,.58);
  backdrop-filter: var(--glass);
  box-shadow: 0 8px 24px rgba(28,31,38,.06);
}
.auth-points span::before { content: ""; }
.auth-side {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 36px;
}
.auth-card {
  width: min(100%, 456px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  background: rgba(255,255,255,.62);
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow);
  animation: pageIn .46s cubic-bezier(.2,.8,.2,1);
}
.auth-card h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -.045em; }
.auth-card > p { margin: 0 0 32px; color: var(--muted); line-height: 1.7; }
.auth-switch { margin-top: 24px; text-align: center; color: var(--muted); line-height: 1.9; }
.link-btn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  border: 0;
  background: none;
  color: var(--blue);
  padding: 4px 6px;
  font-weight: 650;
  border-radius: 999px;
}
.link-btn:hover { background: var(--blue-soft); }
.register-fallback-link {
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
  touch-action: manipulation;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 18px auto 18px 18px;
  width: 248px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 32px;
  color: #4b4f57;
  background: rgba(255,255,255,.58);
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow-soft);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 24px;
  color: #111317;
  font-weight: 740;
  letter-spacing: -.035em;
}
.sidebar-brand .brand-mark { width: 42px; height: 42px; border-radius: 15px; font-size: 21px; }
.nav-list { display: grid; gap: 8px; }
.nav-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #5f646d;
  background: transparent;
  text-align: left;
  font-weight: 650;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav-link:hover {
  color: #15171a;
  background: rgba(255,255,255,.72);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24,27,34,.06);
}
.nav-link.active {
  color: #111317;
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 14px 34px rgba(24,27,34,.09);
}
.nav-icon { width: 22px; text-align: center; color: var(--blue); }
.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(20,22,28,.07);
}
.user-chip {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.52);
}
.user-chip strong, .user-chip span { display: block; overflow: hidden; text-overflow: ellipsis; }
.user-chip strong { color: #15171a; font-size: 14px; }
.user-chip span { margin-top: 5px; color: var(--muted); font-size: 12px; }

.main { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(20px, 3vw, 44px);
  background: rgba(247,247,248,.72);
  backdrop-filter: var(--glass);
  border-bottom: 1px solid rgba(255,255,255,.72);
}
.topbar h1 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.topbar-meta { display: grid; gap: 3px; }
.topbar-kicker { color: var(--muted); font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.clock-chip, .avatar-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  color: #4f535b;
  background: rgba(255,255,255,.62);
  box-shadow: 0 8px 24px rgba(24,27,34,.05);
}
.avatar-chip {
  width: 42px;
  padding: 0;
  justify-content: center;
  color: #111317;
  font-weight: 760;
}
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 16px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 8px 20px rgba(24,27,34,.06);
}
.content {
  width: min(100%, 1580px);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 58px);
  animation: pageIn .42s cubic-bezier(.2,.8,.2,1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
}
.page-head h2 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.06em;
  font-weight: 760;
}
.page-head p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.head-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.84);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass);
}
.card-body { padding: clamp(22px, 3vw, 34px); }
.section-title {
  margin: 0 0 22px;
  font-size: 20px;
  letter-spacing: -.035em;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: 9px;
  color: #33363b;
  font-size: 14px;
  font-weight: 660;
}
.required::after { content: " *"; color: var(--danger); }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(20,22,28,.10);
  border-radius: 18px;
  padding: 13px 16px;
  color: var(--text);
  background: rgba(255,255,255,.68);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 8px 24px rgba(24,27,34,.04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
.textarea { min-height: 118px; resize: vertical; line-height: 1.65; }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(0,113,227,.45);
  background: rgba(255,255,255,.94);
  box-shadow: 0 0 0 5px rgba(0,113,227,.11), 0 16px 38px rgba(24,27,34,.07);
}
.input[readonly] { background: rgba(242,243,245,.8); color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; line-height: 1.7; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  padding: 11px 19px;
  font-weight: 680;
  letter-spacing: -.015em;
  background: rgba(255,255,255,.64);
  box-shadow: 0 10px 26px rgba(24,27,34,.07), inset 0 1px 0 rgba(255,255,255,.88);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(24,27,34,.10); }
.btn:active:not(:disabled) { transform: scale(.975); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #1989f5, #0071e3);
  border-color: rgba(0,113,227,.22);
  box-shadow: 0 14px 30px rgba(0,113,227,.22), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-secondary { color: #202329; background: rgba(255,255,255,.74); }
.btn-danger {
  color: #fff;
  background: linear-gradient(180deg, #ef625b, #d73a31);
  border-color: rgba(215,58,49,.2);
}
.btn-sm { min-height: 38px; padding: 8px 13px; font-size: 13px; }
.btn-block { width: 100%; }

.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.upload-box {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  border: 1px dashed rgba(20,22,28,.18);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(242,243,245,.58)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.9), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 34px rgba(24,27,34,.06);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.upload-box:hover, .upload-box.dragover {
  transform: translateY(-2px);
  border-color: rgba(0,113,227,.45);
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 44px rgba(24,27,34,.09), 0 0 0 5px rgba(0,113,227,.08);
}
.upload-box input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.upload-placeholder { color: var(--muted); pointer-events: none; line-height: 1.8; }
.upload-placeholder b {
  display: block;
  color: #15171a;
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: -.035em;
}
.upload-preview { position: relative; width: 100%; }
.upload-preview img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  cursor: zoom-in;
  box-shadow: inset 0 0 0 1px rgba(20,22,28,.07);
}
.remove-image {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  color: #fff;
  background: rgba(20,22,28,.62);
  backdrop-filter: blur(14px);
}
.multi-upload .upload-box { min-height: 165px; }
.preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
}
.preview-item img { display: block; width: 100%; height: 122px; object-fit: cover; cursor: zoom-in; }
.payment-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.payment-proof-item {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  padding: 0;
  cursor: zoom-in;
}
.payment-proof-item img {
  display: block;
  width: 100%;
  height: 138px;
  object-fit: contain;
  background: rgba(255,255,255,.78);
}
.payment-proof-item .image-error {
  display: none;
  padding: 42px 12px;
  color: var(--danger);
  font-size: 13px;
  text-align: center;
}
.payment-proof-item.image-failed .image-error { display: block; }
.admin-shell .preview-list {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.admin-shell .preview-item img {
  height: 132px;
  object-fit: contain;
  background: rgba(255,255,255,.72);
}

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -42% 36%;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,.12), transparent 68%);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-label { color: var(--muted); font-size: 14px; font-weight: 650; }
.stat-value {
  margin-top: 22px;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 760;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
  animation: numberRise .48s cubic-bezier(.2,.8,.2,1);
}
@keyframes numberRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-card.money .stat-value { color: var(--blue); }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.quick-card {
  padding: 28px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quick-card h3 { margin: 18px 0 8px; font-size: 24px; letter-spacing: -.04em; }
.quick-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.quick-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255,255,255,.74);
  color: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 26px rgba(24,27,34,.07);
  font-size: 22px;
}

.filter-card { padding: 22px; margin-bottom: 22px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; }
.filter-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.bulk-summary {
  display: grid;
  gap: 4px;
  min-width: 180px;
}
.bulk-summary strong { font-size: 15px; }
.bulk-summary span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.select-compact {
  width: auto;
  min-width: 150px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.check-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 650;
}
.check-cell input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.table-wrap {
  width: 100%;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px;
  background: transparent;
  font-size: 13px;
}
.data-table thead th {
  padding: 0 16px 6px;
  color: var(--muted-2);
  text-align: left;
  font-weight: 650;
  white-space: nowrap;
}
.data-table tbody tr {
  background: rgba(255,255,255,.68);
  box-shadow: 0 12px 34px rgba(24,27,34,.065);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.data-table tbody tr:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 48px rgba(24,27,34,.09);
}
.data-table td {
  padding: 18px 16px;
  border-top: 1px solid rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(20,22,28,.055);
  vertical-align: middle;
}
.data-table td:first-child {
  border-left: 1px solid rgba(255,255,255,.86);
  border-radius: 24px 0 0 24px;
}
.data-table td:last-child {
  border-right: 1px solid rgba(255,255,255,.86);
  border-radius: 0 24px 24px 0;
}
.cell-main { max-width: 230px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
}
.cell-sub { margin-top: 5px; color: var(--muted); font-size: 12px; }
.table-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  cursor: zoom-in;
  box-shadow: inset 0 0 0 1px rgba(20,22,28,.08);
}
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 690;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.68);
}
.badge-blue { color: #0057b8; background: rgba(0,113,227,.11); }
.badge-green { color: #137245; background: rgba(26,143,90,.12); }
.badge-yellow { color: #8a5600; background: rgba(255,190,82,.20); }
.badge-red { color: #b42318; background: rgba(215,58,49,.12); }
.badge-gray { color: #5c616a; background: rgba(232,234,237,.72); }
.empty {
  padding: 76px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(255,255,255,.84);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass);
}
.inline-loading {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); gap: 24px; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; }
.detail-item {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.42);
}
.detail-item span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.detail-item strong { display: block; font-size: 15px; line-height: 1.55; word-break: break-word; }
.detail-item.full { grid-column: 1 / -1; }
.image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.image-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 22px;
  cursor: zoom-in;
  box-shadow: var(--shadow-soft);
}
.stack { display: grid; gap: 24px; }
.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qr-card {
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 26px;
  background: rgba(255,255,255,.56);
  box-shadow: var(--shadow-soft);
}
.qr-card img { width: 100%; height: 210px; object-fit: contain; cursor: zoom-in; border-radius: 18px; }
.qr-card span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }

.toast-root { position: fixed; top: 20px; right: 20px; z-index: 100; display: grid; gap: 10px; pointer-events: none; }
.toast {
  min-width: 260px;
  max-width: min(410px, calc(100vw - 36px));
  padding: 14px 17px;
  border-radius: 20px;
  color: #15171a;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.86);
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow);
  animation: toastIn .24s ease-out;
}
.toast.success { color: #137245; }
.toast.error { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(247,247,248,.72);
  backdrop-filter: blur(28px) saturate(180%);
}
.image-modal img { max-width: 96vw; max-height: 90vh; object-fit: contain; border-radius: 24px; box-shadow: var(--shadow); }
.image-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 50%;
  color: #111317;
  background: rgba(255,255,255,.7);
  font-size: 28px;
  line-height: 1;
}
.sidebar-overlay { display: none; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 0 minmax(0, 1fr); }
  .sidebar {
    transform: translateX(calc(-100% - 26px));
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
    box-shadow: 18px 0 60px rgba(24,27,34,.16);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 15; display: block; background: rgba(247,247,248,.54); backdrop-filter: blur(12px); }
  .main { grid-column: 1 / -1; }
  .menu-btn { display: grid; place-items: center; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); }
  .auth-page { display: block; min-height: 100vh; }
  .auth-hero { padding: 38px 22px 18px; min-height: auto; }
  .auth-hero h1 { font-size: 46px; margin: 26px 0 12px; }
  .auth-hero p { font-size: 17px; }
  .auth-points { display: none; }
  .auth-side { padding: 16px 16px 34px; }
  .auth-card { border-radius: 30px; padding: 26px; }
  .topbar {
    min-height: 72px;
    padding: 13px 14px;
  }
  .topbar h1 { font-size: 17px; }
  .topbar-kicker, .clock-chip { display: none; }
  .content { padding: 24px 14px 104px; }
  .page-head { align-items: stretch; flex-direction: column; margin-bottom: 22px; }
  .page-head h2 { font-size: 34px; }
  .head-actions .btn { flex: 1; }
  .card-body { padding: 20px; }
  .form-grid, .upload-grid, .quick-grid, .detail-list, .qr-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { min-height: 132px; padding: 18px; border-radius: 24px; }
  .stat-value { font-size: 30px; margin-top: 18px; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-actions .btn { flex: 1; }
  .bulk-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .bulk-actions {
    justify-content: stretch;
  }
  .bulk-actions .btn,
  .bulk-actions .select-compact {
    width: 100%;
  }
  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .pagination-bar .btn {
    width: 100%;
  }
  .admin-shell .admin-orders-table tbody tr {
    box-shadow: 0 4px 12px rgba(24,27,34,.045);
    transition: none;
  }
  .admin-shell .admin-orders-table tbody tr:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(24,27,34,.045);
  }
  .form-actions {
    position: sticky;
    bottom: 0;
    margin: 24px -20px -20px;
    padding: 13px 20px calc(13px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.76);
    backdrop-filter: var(--glass);
    border-top: 1px solid rgba(20,22,28,.08);
    z-index: 5;
  }
  .form-actions .btn { flex: 1; }
  .table-wrap { overflow: visible; }
  .data-table { min-width: 0 !important; border-spacing: 0 12px; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tbody tr {
    padding: 16px;
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 26px;
    background: rgba(255,255,255,.72);
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    border: 0 !important;
    text-align: right;
  }
  .data-table td:first-child, .data-table td:last-child { border-radius: 0; }
  .data-table td::before {
    content: attr(data-label);
    flex: 0 0 92px;
    color: var(--muted);
    text-align: left;
    font-size: 12px;
  }
  .data-table td.actions {
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid rgba(20,22,28,.08) !important;
  }
  .data-table td.actions::before { display: none; }
  .data-table td.actions .btn { width: 100%; }
  .cell-main { max-width: 190px; white-space: normal; text-align: right; }
  .cell-sub { text-align: right; }
  .toast-root { top: 10px; right: 10px; left: 10px; }
  .toast { width: 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* User-side refined product UI */
.auth-user {
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.96), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(237,239,242,.82), transparent 34%),
    linear-gradient(145deg, #fffdf9 0%, #f7f5f1 48%, #eeeeeb 100%);
}
.auth-user .auth-hero { padding: clamp(40px, 7vw, 104px); }
.auth-user .auth-hero h1 {
  max-width: 640px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  font-weight: 680;
  letter-spacing: -.055em;
}
.auth-user .auth-hero p { color: #64615c; font-size: clamp(17px, 1.45vw, 22px); }
.auth-user .auth-card {
  background: rgba(255,255,255,.66);
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 30px 90px rgba(67,62,55,.105), inset 0 1px 0 rgba(255,255,255,.86);
}
.auth-user .auth-card h2 { font-size: 28px; font-weight: 650; }

.user-shell {
  grid-template-columns: 244px minmax(0, 1fr);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.95), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(229,231,234,.70), transparent 28%),
    linear-gradient(145deg, #fffdfa 0%, #f8f6f2 42%, #f0efed 100%);
}
.user-shell .sidebar {
  inset: 22px auto 22px 22px;
  width: 202px;
  padding: 14px;
  border-radius: 30px;
  background: rgba(255,255,255,.44);
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 18px 55px rgba(63,58,51,.075), inset 0 1px 0 rgba(255,255,255,.76);
}
.user-shell .sidebar-brand {
  gap: 10px;
  padding: 6px 8px 20px;
  font-size: 14px;
  color: #25231f;
}
.user-shell .sidebar-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  font-size: 18px;
  box-shadow: 0 12px 30px rgba(56,52,47,.10), inset 0 1px 0 rgba(255,255,255,.92);
}
.user-shell .nav-list { gap: 7px; }
.user-shell .nav-link {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #6d6962;
  font-size: 14px;
  font-weight: 610;
  letter-spacing: -.02em;
  box-shadow: none;
}
.user-shell .nav-icon {
  width: 20px;
  color: #8d8880;
  font-size: 15px;
}
.user-shell .nav-link:hover {
  color: #25231f;
  background: rgba(255,255,255,.50);
  box-shadow: 0 8px 22px rgba(63,58,51,.055);
}
.user-shell .nav-link.active {
  color: #24221f;
  background: rgba(255,255,255,.74);
  border-color: rgba(255,255,255,.82);
  box-shadow: 0 10px 28px rgba(63,58,51,.075), inset 0 1px 0 rgba(255,255,255,.86);
}
.user-shell .sidebar-foot {
  border-top-color: rgba(67,62,55,.07);
  padding-top: 12px;
}
.user-shell .user-chip {
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.52);
}
.user-shell .user-chip strong { color: #24221f; font-weight: 650; }
.user-shell .user-chip span { color: #8a867f; }
.user-shell .main { background: transparent; }
.user-shell .topbar {
  min-height: 78px;
  padding: 18px clamp(22px, 4vw, 52px);
  background: rgba(250,248,244,.60);
  border-bottom: 1px solid rgba(255,255,255,.62);
}
.user-shell .topbar h1 {
  font-size: 17px;
  font-weight: 620;
  color: #2c2925;
  letter-spacing: -.025em;
}
.user-shell .topbar-kicker {
  color: #9a948b;
  font-size: 12px;
  letter-spacing: .02em;
}
.user-shell .clock-chip,
.user-shell .avatar-chip {
  background: rgba(255,255,255,.50);
  border-color: rgba(255,255,255,.70);
  color: #6e6a63;
  box-shadow: 0 10px 28px rgba(63,58,51,.055);
}
.user-shell .avatar-chip {
  color: #272420;
  font-weight: 650;
}
.user-shell .content {
  max-width: 1180px;
  padding: clamp(28px, 4vw, 54px) clamp(20px, 4vw, 54px) 72px;
}
.user-shell .page-head {
  margin-bottom: 24px;
  align-items: center;
}
.user-shell .page-head h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 650;
  line-height: 1.12;
  color: #25231f;
  letter-spacing: -.045em;
}
.user-shell .page-head p {
  max-width: 640px;
  color: #77736c;
  font-size: 15px;
}
.user-shell .card {
  border-radius: 30px;
  background: rgba(255,255,255,.56);
  border-color: rgba(255,255,255,.78);
  box-shadow: 0 18px 52px rgba(63,58,51,.07), inset 0 1px 0 rgba(255,255,255,.75);
}
.user-shell .card-body { padding: clamp(22px, 3vw, 32px); }
.user-shell .section-title {
  color: #2b2824;
  font-size: 18px;
  font-weight: 640;
}

.user-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(246,244,240,.64)),
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.95), transparent 30%);
  box-shadow: 0 26px 80px rgba(63,58,51,.085), inset 0 1px 0 rgba(255,255,255,.86);
  backdrop-filter: blur(26px) saturate(170%);
  animation: pageIn .42s cubic-bezier(.2,.8,.2,1);
}
.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  color: #8a857e;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: .04em;
}
.user-hero-panel h2 {
  max-width: 700px;
  margin: 0;
  color: #24221f;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.07;
  font-weight: 650;
  letter-spacing: -.058em;
}
.user-hero-panel p {
  max-width: 650px;
  margin: 18px 0 0;
  color: #69655f;
  font-size: 16px;
  line-height: 1.85;
}
.hero-profile {
  display: grid;
  justify-items: end;
  gap: 14px;
}
.hero-time {
  color: #77736c;
  font-size: 13px;
  white-space: nowrap;
}
.hero-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #272420;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 14px 38px rgba(63,58,51,.10), inset 0 1px 0 rgba(255,255,255,.9);
  font-size: 22px;
  font-weight: 650;
}
.soft-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 28px;
  padding: 16px 18px 16px 20px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 24px;
  background: rgba(255,255,255,.50);
  box-shadow: 0 12px 38px rgba(63,58,51,.055);
  backdrop-filter: blur(22px) saturate(160%);
}
.soft-alert strong {
  display: block;
  color: #2c2925;
  font-size: 14px;
  font-weight: 650;
}
.soft-alert span {
  display: block;
  margin-top: 4px;
  color: #77736c;
  font-size: 13px;
}
.user-section { margin-top: 30px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 4px 14px;
}
.section-heading span {
  color: #2b2824;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.025em;
}
.section-heading p {
  margin: 0;
  color: #918c84;
  font-size: 13px;
}
.user-shell .quick-grid.user-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.user-shell .quick-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
}
.user-shell .quick-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -48px;
  bottom: -54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160,156,147,.13), transparent 66%);
}
.user-shell .quick-card h3 {
  margin: 0 0 8px;
  color: #282520;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.035em;
}
.user-shell .quick-card p {
  color: #77736c;
  font-size: 14px;
  line-height: 1.75;
}
.user-shell .quick-icon {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  color: #5f5a52;
  background: rgba(255,255,255,.62);
  box-shadow: 0 12px 26px rgba(63,58,51,.07), inset 0 1px 0 rgba(255,255,255,.86);
}
.card-arrow {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: #9a948b;
  font-size: 18px;
  transition: transform .18s ease, color .18s ease;
}
.user-shell .quick-card:hover .card-arrow { transform: translateX(3px); color: #565149; }
.user-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.user-metric-card {
  min-height: 118px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 28px;
  background: rgba(255,255,255,.48);
  box-shadow: 0 14px 42px rgba(63,58,51,.055), inset 0 1px 0 rgba(255,255,255,.75);
  backdrop-filter: blur(20px) saturate(160%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.user-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 54px rgba(63,58,51,.075);
}
.user-metric-card span {
  display: block;
  color: #817c74;
  font-size: 13px;
  font-weight: 610;
}
.user-metric-card strong {
  display: block;
  margin-top: 16px;
  color: #282520;
  font-size: 34px;
  line-height: 1;
  font-weight: 640;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  animation: numberRise .42s cubic-bezier(.2,.8,.2,1);
}

.user-shell .btn {
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 620;
  background: rgba(255,255,255,.58);
  border-color: rgba(255,255,255,.76);
  box-shadow: 0 10px 28px rgba(63,58,51,.065), inset 0 1px 0 rgba(255,255,255,.82);
}
.user-shell .btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #4d5561, #2f343c);
  border-color: rgba(47,52,60,.18);
  box-shadow: 0 14px 34px rgba(47,52,60,.18), inset 0 1px 0 rgba(255,255,255,.24);
}
.user-shell .btn-secondary {
  color: #33302b;
  background: rgba(255,255,255,.56);
}
.user-shell .input,
.user-shell .select,
.user-shell .textarea {
  min-height: 50px;
  border-radius: 18px;
  background: rgba(255,255,255,.56);
  border-color: rgba(72,68,61,.10);
  color: #282520;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 8px 22px rgba(63,58,51,.035);
}
.user-shell .input::placeholder,
.user-shell .textarea::placeholder { color: #aaa59d; }
.user-shell .input:focus,
.user-shell .select:focus,
.user-shell .textarea:focus {
  border-color: rgba(91,88,80,.22);
  box-shadow: 0 0 0 5px rgba(118,112,101,.10), 0 14px 34px rgba(63,58,51,.06);
}
.user-shell .upload-box {
  border-radius: 28px;
  border-color: rgba(72,68,61,.14);
  background: rgba(255,255,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 14px 38px rgba(63,58,51,.05);
}
.user-shell .upload-placeholder b { color: #2b2824; font-weight: 640; }
.user-shell .data-table tbody tr { background: rgba(255,255,255,.52); }
.user-shell .detail-item { background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.55); }

@media (max-width: 1180px) {
  .user-shell { grid-template-columns: 0 minmax(0, 1fr); }
  .user-shell .sidebar {
    width: 218px;
    transform: translateX(calc(-100% - 28px));
  }
  .user-shell .sidebar.open { transform: translateX(0); }
}

@media (max-width: 760px) {
  .auth-user .auth-hero h1 { font-size: 38px; }
  .auth-user .auth-hero { padding: 34px 20px 14px; }
  .user-shell .topbar {
    min-height: 66px;
    padding: 12px 14px;
  }
  .user-shell .content { padding: 20px 14px 96px; }
  .user-hero-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 22px;
    border-radius: 30px;
  }
  .user-hero-panel h2 { font-size: 32px; line-height: 1.12; }
  .user-hero-panel p { font-size: 14px; line-height: 1.75; }
  .hero-profile {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }
  .hero-time { white-space: normal; }
  .hero-avatar {
    width: 50px;
    height: 50px;
    border-radius: 18px;
  }
  .soft-alert {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
    border-radius: 24px;
  }
  .soft-alert .btn { width: 100%; }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .user-shell .quick-grid.user-action-grid,
  .user-overview-grid {
    grid-template-columns: 1fr;
  }
  .user-shell .quick-card {
    min-height: 154px;
    padding: 22px;
  }
  .user-metric-card {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .user-metric-card strong { margin-top: 0; font-size: 30px; }
  .user-shell .page-head h2 { font-size: 28px; }
  .user-shell .card { border-radius: 26px; }
}

/* User-side performance pass: lighter surfaces, fewer repaint-heavy effects */
.auth-user,
.user-shell {
  background: linear-gradient(180deg, #fffdf9 0%, #f7f5f1 52%, #f1f0ed 100%);
}
.auth-user::before,
.auth-user::after,
.user-shell::before,
.user-shell::after {
  display: none;
}
.auth-user .auth-points span,
.auth-user .auth-card,
.user-shell .sidebar,
.user-shell .topbar,
.user-shell .card,
.user-hero-panel,
.soft-alert,
.user-metric-card,
.user-shell .upload-box,
.user-shell .toast {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.auth-user .auth-card {
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 45px rgba(76,70,61,.08);
}
.user-shell .sidebar {
  background: rgba(255,255,255,.62);
  box-shadow: 0 10px 30px rgba(72,66,58,.055);
  contain: layout paint style;
}
.user-shell .topbar {
  position: sticky;
  background: rgba(250,248,244,.94);
  box-shadow: none;
  contain: layout paint style;
}
.user-shell .content {
  contain: layout style;
}
.user-shell .card,
.user-hero-panel,
.soft-alert,
.user-metric-card,
.user-shell .quick-card,
.user-shell .data-table tbody tr {
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 22px rgba(72,66,58,.045);
  contain: layout paint style;
}
.user-hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.80), rgba(250,248,244,.72));
}
.user-hero-panel h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 620;
}
.user-hero-panel p {
  color: #6f6a63;
}
.user-shell .quick-card::after,
.stat-card::after {
  display: none;
}
.user-shell .quick-card,
.user-metric-card,
.user-shell .btn,
.user-shell .nav-link,
.card-arrow {
  transition-property: transform, opacity, background-color, color, border-color;
  transition-duration: .16s;
  transition-timing-function: ease;
}
.user-shell .quick-card:hover,
.user-metric-card:hover,
.user-shell .data-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(72,66,58,.045);
}
.user-shell .btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(72,66,58,.055);
}
.user-shell .btn-primary {
  background: #2f343c;
  box-shadow: 0 10px 22px rgba(47,52,60,.14);
}
.user-shell .btn-secondary {
  background: rgba(255,255,255,.72);
}
.user-shell .input,
.user-shell .select,
.user-shell .textarea {
  background: rgba(255,255,255,.78);
  box-shadow: none;
}
.user-shell .input:focus,
.user-shell .select:focus,
.user-shell .textarea:focus {
  box-shadow: 0 0 0 4px rgba(88,83,74,.08);
}
.user-shell .upload-box {
  background: rgba(255,255,255,.68);
  box-shadow: 0 8px 20px rgba(72,66,58,.04);
}
.user-shell .upload-box:hover,
.user-shell .upload-box.dragover {
  box-shadow: 0 8px 20px rgba(72,66,58,.055);
}
.user-shell .user-section,
.user-shell .detail-grid,
.user-shell .stack,
.user-shell .table-wrap,
.user-shell .card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 420px;
}
.user-shell .user-hero-panel,
.user-shell .topbar,
.user-shell .sidebar {
  content-visibility: visible;
}
.user-shell .image-gallery img,
.user-shell .qr-card img,
.user-shell .preview-item img,
.user-shell .upload-preview img {
  content-visibility: auto;
}

@media (max-width: 760px) {
  html { scroll-behavior: auto; }
  .user-shell .topbar {
    position: static;
  }
  .user-shell .content {
    padding-top: 16px;
  }
  .user-hero-panel {
    padding: 22px 18px;
    box-shadow: 0 8px 20px rgba(72,66,58,.04);
  }
  .user-hero-panel h2 {
    font-size: 28px;
  }
  .user-shell .quick-card {
    min-height: 132px;
  }
  .user-metric-card {
    min-height: 84px;
    box-shadow: 0 6px 16px rgba(72,66,58,.035);
  }
  .user-shell .quick-card:hover,
  .user-metric-card:hover,
  .user-shell .data-table tbody tr:hover,
  .user-shell .btn:hover:not(:disabled) {
    transform: none;
    box-shadow: inherit;
  }
  .user-shell .sidebar-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(35,32,28,.18);
  }
}

/* Mobile web-app UX for user side */
.mobile-tabbar { display: none; }
.user-shell .data-table tbody tr[data-go] { cursor: pointer; }

@media (max-width: 760px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  body { min-width: 0; }

  .auth-user {
    min-height: 100svh;
    background: #f7f5f1;
  }
  .auth-user .auth-hero {
    padding: 30px 18px 8px;
  }
  .auth-user .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 20px;
  }
  .auth-user .auth-hero h1 {
    max-width: 310px;
    margin: 22px 0 8px;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -.045em;
  }
  .auth-user .auth-hero p {
    font-size: 15px;
    line-height: 1.65;
  }
  .auth-user .auth-side {
    padding: 12px 14px 28px;
  }
  .auth-user .auth-card {
    padding: 22px;
    border-radius: 26px;
    box-shadow: 0 10px 28px rgba(76,70,61,.07);
  }
  .auth-user .auth-card h2 { font-size: 24px; }
  .auth-user .auth-card > p {
    margin-bottom: 22px;
    font-size: 14px;
  }
  .auth-user .field[style] { margin-top: 14px !important; }
  .auth-user .btn { min-height: 48px; }

  .user-shell {
    display: block;
    min-height: 100svh;
    background: #f7f5f1;
  }
  .user-shell .sidebar,
  .user-shell .sidebar-overlay {
    display: none !important;
  }
  .user-shell .main { width: 100%; }
  .user-shell .topbar {
    position: static;
    min-height: 58px;
    padding: 10px 16px 6px;
    background: transparent;
    border-bottom: 0;
    contain: layout paint style;
  }
  .user-shell .menu-btn { display: none !important; }
  .user-shell .topbar h1 {
    font-size: 16px;
    font-weight: 640;
  }
  .user-shell .topbar-right { gap: 8px; }
  .user-shell .avatar-chip {
    width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 14px;
  }
  .user-shell .content {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px calc(96px + env(safe-area-inset-bottom));
  }

  .user-hero-panel {
    margin-bottom: 14px;
    padding: 20px 18px;
    border-radius: 26px;
    box-shadow: 0 6px 16px rgba(72,66,58,.035);
  }
  .user-hero-panel h2 {
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -.035em;
  }
  .user-hero-panel p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.65;
  }
  .eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }
  .hero-profile {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .hero-time {
    font-size: 12px;
    line-height: 1.45;
  }

  .soft-alert {
    margin: 12px 0 20px;
    border-radius: 22px;
    padding: 14px;
  }
  .soft-alert span {
    font-size: 12px;
    line-height: 1.55;
  }

  .user-section { margin-top: 22px; }
  .section-heading {
    margin: 0 2px 10px;
  }
  .section-heading span { font-size: 16px; }
  .section-heading p { font-size: 12px; }

  .user-shell .quick-card {
    min-height: 132px;
    border-radius: 24px;
    padding: 18px;
    gap: 12px;
  }
  .user-shell .quick-card h3 { font-size: 18px; }
  .user-shell .quick-card p {
    font-size: 13px;
    line-height: 1.6;
  }
  .user-shell .quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 15px;
  }
  .user-metric-card {
    min-height: 84px;
    border-radius: 22px;
    padding: 16px 18px;
    box-shadow: 0 6px 16px rgba(72,66,58,.035);
  }

  .user-shell .card { border-radius: 24px; }
  .user-shell .card-body { padding: 18px; }
  .user-shell .page-head {
    margin-bottom: 14px;
    gap: 10px;
  }
  .user-shell .page-head h2 {
    font-size: 24px;
    line-height: 1.16;
  }
  .user-shell .page-head p {
    font-size: 13px;
    line-height: 1.6;
  }
  .user-shell .form-grid,
  .user-shell .upload-grid,
  .user-shell .detail-list {
    gap: 14px;
  }
  .user-shell .field label {
    font-size: 13px;
    margin-bottom: 7px;
  }
  .user-shell .input,
  .user-shell .select {
    min-height: 50px;
    border-radius: 16px;
    font-size: 16px;
  }
  .user-shell .textarea {
    min-height: 116px;
    border-radius: 16px;
    font-size: 15px;
  }
  .user-shell .upload-box {
    min-height: 156px;
    border-radius: 22px;
    padding: 16px;
  }
  .user-shell .upload-placeholder {
    font-size: 13px;
    line-height: 1.6;
  }
  .user-shell .upload-placeholder b { font-size: 15px; }
  .user-shell .upload-preview img {
    height: 152px;
    border-radius: 18px;
  }
  .user-shell .form-actions {
    position: sticky;
    bottom: calc(74px + env(safe-area-inset-bottom));
    margin: 18px -18px -18px;
    padding: 12px 18px;
    background: rgba(247,245,241,.96);
    border-top: 1px solid rgba(80,74,66,.08);
    z-index: 8;
  }
  .user-shell .form-actions .btn {
    min-height: 50px;
    width: 100%;
  }

  .user-shell .data-table tbody tr {
    border-radius: 22px;
    padding: 14px;
    margin-bottom: 10px;
  }
  .user-shell .data-table td {
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
  }
  .user-shell .data-table td::before {
    flex-basis: 82px;
    font-size: 12px;
  }
  .user-shell .data-table td.actions .btn { min-height: 42px; }
  .user-shell .detail-grid { gap: 14px; }
  .user-shell .detail-item {
    padding: 13px;
    border-radius: 18px;
  }
  .user-shell .detail-item strong { font-size: 14px; }

  .mobile-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(80,74,66,.10);
    border-radius: 24px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 4px 14px rgba(56,50,43,.07);
    contain: layout paint style;
    transform: translateZ(0);
  }
  .mobile-tab {
    min-width: 0;
    min-height: 52px;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 0;
    border-radius: 18px;
    color: #7d766c;
    background: transparent;
    font-weight: 620;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease, background-color .12s ease, color .12s ease, opacity .12s ease;
    touch-action: manipulation;
  }
  .mobile-tab span {
    font-size: 17px;
    line-height: 1;
  }
  .mobile-tab em {
    font-style: normal;
    font-size: 11px;
    line-height: 1.1;
  }
  .mobile-tab.active,
  .mobile-tab.pending {
    color: #25221d;
    background: #f0eee9;
  }
  .mobile-tab:active { transform: scale(.97); }
}

/* 2026-06-29 user-side polish: calmer product UI and no single-character logo */
.auth-user,
.user-shell {
  color: #25231f;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f6f2 46%, #f0efeb 100%);
}
.auth-user .brand-mark,
.user-shell .brand-mark,
.user-shell .avatar-chip {
  display: none;
}
.auth-user .auth-hero h1 {
  margin-top: 0;
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 620;
  letter-spacing: -.045em;
}
.auth-user .auth-card,
.user-shell .card,
.user-hero-panel,
.soft-alert,
.user-metric-card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(230,225,218,.78);
  box-shadow: 0 10px 28px rgba(72,66,58,.055);
}
.user-shell .sidebar {
  background: rgba(255,255,255,.76);
  border-color: rgba(230,225,218,.72);
}
.user-shell .sidebar-brand {
  padding: 10px 10px 22px;
  font-size: 15px;
  letter-spacing: -.02em;
}
.user-shell .topbar {
  background: rgba(250,248,244,.96);
  border-bottom-color: rgba(229,225,218,.74);
}
.user-shell .page-head h2,
.user-hero-panel h2 {
  font-weight: 620;
}
.user-hero-panel {
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,246,241,.82));
}
.hero-profile {
  align-self: start;
}
.user-shell .quick-card {
  min-height: 174px;
  border-color: rgba(230,225,218,.76);
}
.user-shell .quick-icon {
  color: #4c4943;
  background: #f5f2ec;
  box-shadow: none;
}
.user-shell .btn-primary {
  background: linear-gradient(180deg, #3f4650, #292f36);
}
.user-shell .input,
.user-shell .select,
.user-shell .textarea {
  background: #fffdfa;
  border: 1px solid rgba(86,80,70,.14);
}
.user-shell .input:focus,
.user-shell .select:focus,
.user-shell .textarea:focus {
  border-color: rgba(55,51,45,.28);
  box-shadow: 0 0 0 4px rgba(83,77,68,.08);
}
.order-form-card .form-grid {
  grid-template-columns: 1fr;
}
.order-form-card .field:first-child {
  opacity: .86;
}
.order-form-card .field label {
  color: #4a453e;
  font-weight: 640;
}
.order-form-card .field:nth-child(2) .input {
  min-height: 56px;
  font-size: 17px;
  letter-spacing: .01em;
}
.order-form-card .hint {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .auth-user .auth-hero h1 {
    font-size: 34px;
  }
  .user-shell .quick-card {
    min-height: 136px;
  }
  .order-form-card .field:nth-child(2) .input {
    min-height: 54px;
  }
}
