* {
  box-sizing: border-box;
}

/* Premium minimal redesign */
:root { --ink:#101828; --muted:#667085; --line:#e4e7ec; --canvas:#f1f3f5; --navy:#07111e; --ice:#8cb8f1; }
body { background: var(--canvas); color: var(--ink); }
.login-page { position: relative; justify-content: flex-end; padding: 56px 8vw; background: linear-gradient(90deg,rgba(4,10,20,.14),rgba(4,10,20,.76)),url('assets/admin-surface.jpg') center/cover no-repeat; }
.login-card { width: min(430px,100%); padding: 44px; border: 1px solid rgba(255,255,255,.55); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 34px 90px rgba(0,0,0,.3); backdrop-filter: blur(20px); }
.login-logo { width: 58px; height: 58px; margin: 0; border-radius: 17px; background: var(--navy); font-size: 23px; }.login-kicker { margin-top: 24px; color: #4d77ae; font-size: 11px; font-weight: 800; letter-spacing: .22em; }.login-card h1 { margin: 8px 0 8px; text-align: left; font-size: 29px; letter-spacing: -.03em; }.login-card > p { margin-bottom: 28px; text-align: left; }.login-field { color: #344054; font-size: 13px; }.login-field input { height: 48px; border-color: var(--line); border-radius: 12px; background: #f8f9fa; }.login-field input:focus { border-color: #7aa7df; box-shadow: 0 0 0 3px rgba(78,119,174,.12); }.login-button { height: 48px; border-radius: 12px !important; background: var(--ink) !important; }
.sidebar { width: 272px; padding: 0 16px; background: var(--navy); box-shadow: 12px 0 45px rgba(5,11,20,.12); }.brand { height: 94px; padding: 0 13px; border-bottom-color: rgba(255,255,255,.09); }.brand-icon { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; background: rgba(255,255,255,.06); }.brand-title { font-size: 16px; letter-spacing: .16em; }.brand-subtitle { margin-top: 3px; color: rgba(255,255,255,.36); font-size: 9px; letter-spacing: .12em; }.menu-title { padding: 26px 12px 10px; color: rgba(255,255,255,.3); font-size: 10px; letter-spacing: .16em; }.menu-item { margin: 5px 0; padding: 13px 14px; border-radius: 11px; color: rgba(255,255,255,.58); font-size: 14px; }.menu-item span { width: 28px; color: rgba(255,255,255,.26); font-size: 10px; letter-spacing: .08em; }.menu-item:hover { background: rgba(255,255,255,.06); }.menu-item.active { color: #fff; background: rgba(140,184,241,.16); box-shadow: inset 3px 0 0 #9bc3f3; }.menu-item.active span { color: #9bc3f3; }
.content { margin-left: 272px; }.header { position: relative; height: 156px; padding: 0 38px; overflow: hidden; color: #fff; background: linear-gradient(90deg,rgba(4,10,20,.96),rgba(4,10,20,.58)),url('assets/admin-surface.jpg') center 61%/cover no-repeat; box-shadow: 0 18px 45px rgba(7,17,30,.14); }.header::after { content:''; position:absolute; right:8%; top:-110px; width:310px; height:310px; border:1px solid rgba(255,255,255,.1); border-radius:50%; box-shadow:0 0 0 48px rgba(255,255,255,.018),0 0 0 96px rgba(255,255,255,.012); }.header-copy,.admin-user { position: relative; z-index: 2; }.page-kicker { color: #8cb8f1; font-size: 10px; font-weight: 800; letter-spacing: .24em; }.header h1 { margin-top: 7px; font-size: 28px; letter-spacing: -.03em; }.header p { color: rgba(255,255,255,.5); }.admin-user { padding: 8px 10px 8px 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }.avatar { width: 32px; height: 32px; color: var(--ink); background: #fff; font-size: 11px; }.logout-btn { color: #fff; background: rgba(255,255,255,.1); }
.main-section { padding: 30px 34px 50px; }.cards { gap: 14px; }.card,.panel { border-color: rgba(16,24,40,.06); border-radius: 17px; box-shadow: 0 9px 28px rgba(16,24,40,.045); }.card { position: relative; overflow: hidden; min-height: 132px; padding: 25px; }.card::before { content:''; position:absolute; left:25px; top:0; width:42px; height:3px; border-radius:0 0 99px 99px; background:#8bb5ea; }.card-label { color: #98a2b3; font-size: 12px; }.card-value { margin-top: 13px; color: var(--ink); font-size: 35px; letter-spacing: -.04em; }.text-orange,.text-red { color: var(--ink); }.quick-panel { position: relative; min-height: 180px; margin-top: 15px; padding: 29px; overflow: hidden; background: linear-gradient(100deg,#0a1625,#183756); color: #fff; }.quick-panel::after { content:''; position:absolute; right:-36px; top:-72px; width:230px; height:230px; border:1px solid rgba(255,255,255,.12); border-radius:50%; box-shadow:0 0 0 35px rgba(255,255,255,.02); }.quick-panel h2,.quick-actions { position:relative; z-index:2; }.quick-panel h2 { font-size: 20px; }.quick-panel .btn.primary { color: var(--ink); background: #fff; }.quick-panel .btn.secondary { color: #fff; background: rgba(255,255,255,.1); }
.panel-toolbar { padding: 18px 20px; border-bottom-color: #eef0f3; }.btn { border-radius: 10px; }.btn.primary { background: var(--ink); }.btn.primary:hover { background: #26364b; }.btn.secondary { color: #344054; background: #eef1f4; }.input,.select,.textarea { border-color: var(--line); border-radius: 10px; background: #fafbfc; }.input:focus,.select:focus,.textarea:focus { border-color: #7da7d9; box-shadow: 0 0 0 3px rgba(78,119,174,.1); }
thead th { padding: 13px 16px; color: #667085; background: #f8f9fa; border-color: #eef0f3; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }td { padding: 15px 16px; border-color: #eef0f3; }.product-img { width: 62px; height: 62px; border-radius: 12px; }.order-img { border-radius: 10px; }.product-title { color: #1d2939; }.price { color: var(--ink); }.muted { color: #98a2b3; }.badge.green { color: #2d6b4d; background: #e6f3ec; }.badge.orange { color: #94602e; background: #f8eee4; }.badge.blue { color: #356aa5; background: #e8f0fa; }.badge.gray { color: #667085; background: #eef1f4; }
.modal-mask { background: rgba(4,10,20,.68); backdrop-filter: blur(8px); }.modal { border-radius: 20px; box-shadow: 0 34px 90px rgba(0,0,0,.28); }.modal-header,.modal-footer { border-color: #eef0f3; }.preview-img,.photo-grid img { border-radius: 12px; }
@media (max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.sidebar{width:230px}.content{margin-left:230px}.main-section{padding:24px 22px}table{min-width:900px}.panel{overflow:auto}}

body {
  margin: 0;
  background: #f3f4f6;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button {
  cursor: pointer;
}

#app[data-native-loading="true"] {
  visibility: hidden;
}

.login-page {
  min-height: 100vh;
  padding: 48px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #dbeafe, #f3f4f6 48%);
}

.login-card {
  width: min(420px, 100%);
  padding: 40px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.login-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
}

.login-card h1 {
  margin: 20px 0 8px;
  text-align: center;
}

.login-card > p {
  margin: 0 0 24px;
  color: #6b7280;
  text-align: center;
}

.login-field {
  margin-top: 16px;
  color: #374151;
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
}

.login-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.login-button {
  width: 100%;
  margin-top: 24px;
}

.logout-btn {
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  color: #dc2626;
  background: #fee2e2;
}

.admin-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 248px;
  min-height: 100vh;
  background: #111827;
  color: #fff;
  z-index: 10;
}

.brand {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid #374151;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  font-weight: 800;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
}

.brand-subtitle,
.menu-title {
  color: #9ca3af;
  font-size: 12px;
}

.menu-title {
  padding: 18px 24px 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  border: 0;
  color: #cbd5e1;
  background: transparent;
  text-align: left;
}

.menu-item:hover,
.menu-item.active {
  background: #2563eb;
  color: #fff;
}

.content {
  margin-left: 248px;
  min-height: 100vh;
}

.header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 8;
}

.header h1 {
  margin: 0;
  font-size: 22px;
}

.header p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-weight: 600;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
}

.main-section {
  padding: 32px;
}

.message {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.message.success {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.message.error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

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

.card,
.panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.card {
  padding: 24px;
}

.card-label {
  color: #6b7280;
  font-size: 14px;
}

.card-value {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 900;
}

.text-orange {
  color: #f97316;
}

.text-red {
  color: #ef4444;
}

.quick-panel {
  margin-top: 24px;
  padding: 24px;
}

.quick-panel h2,
.panel-title {
  margin: 0;
  font-size: 18px;
}

.actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-actions {
  margin-top: 16px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 16px;
  background: #fff;
  color: #374151;
}

.btn.primary {
  background: #2563eb;
  color: #fff;
}

.btn.primary:hover {
  background: #1d4ed8;
}

.btn.secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn.secondary:hover {
  background: #e5e7eb;
}

.btn.danger {
  color: #dc2626;
  background: #fff;
  border-color: #fecaca;
}

.btn.link {
  padding: 0;
  border: 0;
  color: #2563eb;
  background: transparent;
}

.btn.link.danger {
  color: #dc2626;
}

.panel {
  overflow: hidden;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 9px 12px;
  outline: none;
  background: #fff;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-input {
  width: 280px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

thead th {
  color: #4b5563;
  background: #f9fafb;
  border-top: 0;
  font-weight: 700;
}

tr:hover td {
  background: #f9fafb;
}

.text-right {
  text-align: right;
}

.muted {
  color: #6b7280;
  font-size: 12px;
}

.empty {
  padding: 32px;
  color: #9ca3af;
  text-align: center;
}

.product-img,
.order-img {
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.product-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
}

.order-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.product-title {
  max-width: 420px;
  color: #111827;
  font-weight: 700;
}

.product-desc,
.truncate {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price {
  color: #ef4444;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.green {
  color: #047857;
  background: #d1fae5;
}

.badge.gray {
  color: #4b5563;
  background: #f3f4f6;
}

.badge.orange {
  color: #c2410c;
  background: #ffedd5;
}

.badge.blue {
  color: #1d4ed8;
  background: #dbeafe;
}

.order-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pickup-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 96px;
}

.pickup-remark {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.52);
  padding: 24px;
}

.modal {
  width: 620px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

.modal.small {
  width: 560px;
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
}

.modal-header {
  border-bottom: 1px solid #e5e7eb;
}

.modal-footer {
  justify-content: flex-end;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  padding: 24px;
}

.close-btn {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.textarea {
  min-height: 90px;
  resize: vertical;
}

.image-field {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.preview-img {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.file-input {
  width: 100%;
  margin-top: 8px;
  color: #4b5563;
}

.warn-box {
  padding: 12px;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  font-size: 14px;
}

.order-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.photo-section-title {
  margin-top: 16px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.empty-photo-tip {
  margin-top: 14px;
  padding: 16px;
  color: #9ca3af;
  text-align: center;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.photo-grid img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

@media (max-width: 960px) {
  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .content {
    margin-left: 0;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    overflow-x: auto;
  }
}
