:root {
  --bg: #f4f7fb; --surface: #fff; --surface-2: #eef3f9; --text: #182233;
  --muted: #667085; --primary: #275efe; --primary-dark: #1745ca; --border: #dbe3ef;
  --success: #137a4b; --success-bg: #e9f8f0; --warning: #9a5b00; --warning-bg: #fff5d9;
  --danger: #b42318; --danger-bg: #feeceb; --info: #175cd3; --info-bg: #eaf2ff;
  --shadow: 0 10px 30px rgba(24,34,51,.08); --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.page-shell { min-height: calc(100vh - 150px); padding-block: 28px 56px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), #6f42e8); box-shadow: 0 6px 16px rgba(39,94,254,.25); }
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav > a { color: #344054; font-weight: 600; }
.nav-user { display: flex; align-items: center; gap: 12px; padding-left: 16px; border-left: 1px solid var(--border); }
.link-button { border: 0; padding: 0; background: none; color: var(--danger); cursor: pointer; font-weight: 600; }
.nav-toggle { display: none; border: 0; background: var(--surface-2); border-radius: 10px; padding: 7px 10px; cursor: pointer; }
.mobile-market-search { display: none; }
.cart-link { position: relative; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .75rem; }
.site-footer { background: #111827; color: #d0d5dd; padding: 34px 0; }
.footer-grid { display: grid; grid-template-columns: minmax(220px,1fr) auto minmax(220px,1fr); align-items: center; gap: 28px; }
.footer-brand strong { color: #fff; font-size: 1.08rem; }
.site-footer p { margin: 5px 0 0; color: #aab4c3; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-links a { color: #dbe4f0; font-size: .88rem; font-weight: 650; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-right { display: grid; justify-items: end; gap: 3px; color: #aab4c3; font-size: .82rem; text-align: right; }
.hero { border-radius: 24px; padding: clamp(28px, 5vw, 62px); background: radial-gradient(circle at top right, #7e9aff 0, transparent 35%), linear-gradient(135deg, #15213d, #243e7a); color: #fff; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 30px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.04em; }
.hero p { color: #d9e2ff; font-size: 1.08rem; max-width: 700px; }
.hero-card { padding: 24px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.10); backdrop-filter: blur(8px); }
.hero-stat { font-size: 2rem; font-weight: 800; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 34px 0 18px; }
.section-head h1, .section-head h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(24,34,51,.04); }
.card-body { padding: 22px; }
.card-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-header h2, .card-header h3 { margin: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.item-card { overflow: hidden; display: flex; flex-direction: column; }
.item-image { aspect-ratio: 4/3; width: 100%; object-fit: cover; background: var(--surface-2); }
.item-content { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.item-content h3 { margin: 7px 0 4px; font-size: 1.1rem; }
.item-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: auto; padding-top: 16px; }
.price { font-weight: 800; font-size: 1.12rem; }
.code { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-success { color: var(--success); background: var(--success-bg); }
.badge-warning { color: var(--warning); background: var(--warning-bg); }
.badge-danger { color: var(--danger); background: var(--danger-bg); }
.badge-info { color: var(--info); background: var(--info-bg); }
.badge-muted { color: var(--muted); background: var(--surface-2); }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; text-decoration: none; transition: .15s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.btn-danger { color: #fff; background: var(--danger); }
.btn-success { color: #fff; background: var(--success); }
.btn-sm { padding: 7px 11px; border-radius: 8px; font-size: .86rem; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.form-group { margin-bottom: 17px; }
.form-label { display: block; font-weight: 700; margin-bottom: 7px; }
.form-control, .form-select { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 13px; color: var(--text); background: #fff; outline: none; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(39,94,254,.12); }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-help { color: var(--muted); font-size: .84rem; margin-top: 5px; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.search-panel { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; padding: 18px; margin-top: 22px; }
.alert { border-radius: 12px; padding: 13px 15px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border: 1px solid transparent; }
.alert-success { color: var(--success); background: var(--success-bg); border-color: #b7e4cb; }
.alert-warning { color: var(--warning); background: var(--warning-bg); border-color: #f4d58a; }
.alert-danger { color: var(--danger); background: var(--danger-bg); border-color: #f2bbb7; }
.alert-info { color: var(--info); background: var(--info-bg); border-color: #bfd3ff; }
.alert-close { border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: inherit; }
.auth-shell { width: min(500px, 100%); margin: 30px auto; }
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-head h1 { margin-bottom: 4px; }
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.detail-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.detail-card h1 { margin: 0 0 8px; }
.spec-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 20px 0; }
.spec { padding: 13px; background: var(--surface-2); border-radius: 10px; }
.spec span { display: block; color: var(--muted); font-size: .8rem; }
.spec strong { display: block; margin-top: 3px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: #f8fafc; }
tr:last-child td { border-bottom: 0; }
.table-img { width: 56px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.summary-box { padding: 20px; background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 800; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.stat-card { padding: 20px; }
.stat-label { color: var(--muted); font-size: .88rem; }
.stat-value { font-size: 1.8rem; font-weight: 850; margin-top: 4px; }
.admin-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 6px; margin-bottom: 22px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; }
.admin-tabs a { color: var(--muted); font-weight: 700; padding: 9px 13px; border-radius: 8px; white-space: nowrap; }
.admin-tabs a.active { color: #fff; background: var(--primary); }
.admin-tabs a:hover { text-decoration: none; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-icon { font-size: 3rem; margin-bottom: 8px; }
.pagination { display: flex; gap: 7px; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); background: #fff; border-radius: 8px; }
.pagination .active { color: #fff; background: var(--primary); border-color: var(--primary); }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); margin-top: 6px; box-shadow: 0 0 0 4px rgba(39,94,254,.13); }
.timeline-content { border-left: 2px solid var(--border); padding: 0 0 22px 18px; margin-left: -18px; }
.invoice { max-width: 900px; margin: 0 auto; background: #fff; padding: 34px; border-radius: 16px; box-shadow: var(--shadow); }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.invoice-company { font-size: 1.6rem; font-weight: 850; }
.kpi-bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.kpi-bar > span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.image-preview { width: 180px; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 12px; background: var(--surface-2); }
.inline-form { display: inline; }
.note { border-left: 4px solid var(--primary); padding: 12px 14px; background: var(--info-bg); border-radius: 8px; }
@media (max-width: 960px) {
  .catalog-grid, .grid-4, .dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .main-nav { position: absolute; display: none; flex-direction: column; align-items: stretch; top: 62px; right: 16px; width: min(320px, calc(100% - 32px)); padding: 18px; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); background: #fff; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-user { border-left: 0; padding-left: 0; justify-content: space-between; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 20px, 1180px); }
  .catalog-grid, .grid-2, .grid-3, .grid-4, .dashboard-stats, .form-row, .search-panel { grid-template-columns: 1fr; }
  .section-head, .invoice-head { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-right { justify-items: center; text-align: center; }
  .card-body { padding: 17px; }
  th, td { padding: 11px; }
  .hero { border-radius: 18px; }
}
@media print {
  .site-header, .site-footer, .no-print, .alert { display: none !important; }
  body { background: #fff; }
  .page-shell { padding: 0; }
  .invoice { box-shadow: none; max-width: none; padding: 0; }
}

/* =========================================================
   PEMBEDA TAMPILAN ADMIN DAN CUSTOMER
   Tambahkan seluruh bagian ini di PALING BAWAH style.css
   ========================================================= */

/* ---------- CUSTOMER LAYOUT ---------- */
.customer-body {
  background: #f5f8ff;
}

.customer-header {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 4px 24px rgba(15, 23, 42, .06);
}

.customer-header .main-nav > a.active {
  color: var(--primary);
  position: relative;
}

.customer-header .main-nav > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.customer-brand-label {
  display: block;
  margin-top: -3px;
  color: var(--primary);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-nav-user {
  gap: 9px;
}

.customer-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #275efe, #7c3aed);
  font-weight: 800;
}

.customer-user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.customer-user-text strong {
  max-width: 125px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .86rem;
}

.customer-user-text span {
  color: var(--muted);
  font-size: .72rem;
}

.customer-dashboard-hero {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: center;
  gap: 30px;
  padding: clamp(28px, 5vw, 55px);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 15%, rgba(255,255,255,.18), transparent 25%),
    linear-gradient(135deg, #1f4fd8, #6446d7 60%, #8b5cf6);
  box-shadow: 0 24px 50px rgba(39, 94, 254, .23);
}

.customer-dashboard-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  bottom: -100px;
  border: 40px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.customer-hero-label,
.customer-panel-kicker {
  display: inline-block;
  color: #dbe7ff;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.customer-dashboard-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.customer-dashboard-hero p {
  max-width: 620px;
  margin: 0;
  color: #e4ebff;
  font-size: 1.04rem;
}

.customer-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.customer-btn-light {
  color: #2448b8;
  background: #fff;
}

.customer-btn-light:hover {
  color: #2448b8;
  background: #eef3ff;
}

.customer-btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
}

.customer-btn-outline:hover {
  color: #fff;
  background: rgba(255,255,255,.16);
}

.customer-hero-illustration {
  position: relative;
  z-index: 1;
  min-height: 190px;
  display: grid;
  place-items: center;
}

.customer-hero-circle {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 42px;
  color: #fff;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 0 30px rgba(255,255,255,.08), 0 20px 50px rgba(16,24,40,.2);
  backdrop-filter: blur(12px);
  font-size: 4rem;
  font-weight: 900;
  transform: rotate(-7deg);
}

.customer-floating-card {
  position: absolute;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 12px;
  color: #fff;
  background: rgba(17,24,39,.28);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(17,24,39,.18);
  font-size: .83rem;
  font-weight: 700;
}

.customer-floating-card-one { top: 17px; right: 0; }
.customer-floating-card-two { left: 0; bottom: 14px; }

.customer-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.customer-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 41, 55, .06);
}

.customer-stat-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 900;
}

.customer-stat-card > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.customer-stat-card span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.customer-stat-card strong {
  margin: 2px 0;
  font-size: 1.75rem;
  line-height: 1.15;
}

.customer-stat-card small {
  color: #98a2b3;
  font-size: .74rem;
}

.customer-money-value {
  font-size: 1.15rem !important;
  word-break: break-word;
}

.customer-stat-blue .customer-stat-icon { color: #1d4ed8; background: #e9f0ff; }
.customer-stat-orange .customer-stat-icon { color: #c2410c; background: #fff0e8; }
.customer-stat-green .customer-stat-icon { color: #047857; background: #e8f8f1; }
.customer-stat-purple .customer-stat-icon { color: #6d28d9; background: #f1eafe; }

.customer-dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  margin-top: 24px;
}

.customer-panel,
.customer-recent-card {
  padding: 22px;
  border-radius: 18px;
}

.customer-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.customer-panel-head h2 {
  margin: 4px 0 0;
  font-size: 1.18rem;
}

.customer-panel-head a {
  font-size: .84rem;
  font-weight: 700;
}

.customer-panel-kicker {
  color: var(--primary);
}

.customer-status-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.customer-status-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  border-radius: 14px;
  background: #f8fafc;
}

.customer-status-item div {
  display: flex;
  flex-direction: column;
}

.customer-status-item strong {
  font-size: .92rem;
}

.customer-status-item span:last-child {
  color: var(--muted);
  font-size: .76rem;
}

.customer-status-dot {
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(39,94,254,.08);
}

.status-waiting { background: #f59e0b; }
.status-active { background: #2563eb; }
.status-done { background: #10b981; }

.customer-next-panel {
  background: linear-gradient(180deg, #fff, #f8faff);
}

.customer-next-booking {
  display: grid;
  gap: 15px;
}

.customer-next-code {
  font-size: 1.05rem;
  font-weight: 850;
}

.customer-next-date,
.customer-next-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-next-date {
  padding: 14px;
  border-radius: 13px;
  color: #344054;
  background: #eef3ff;
  font-size: .88rem;
  font-weight: 700;
}

.customer-empty-mini {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

.customer-empty-mini > div { font-size: 2.2rem; }
.customer-empty-mini span { color: var(--muted); font-size: .85rem; }
.customer-empty-mini .btn { margin-top: 8px; }

.customer-recent-card {
  margin-top: 24px;
}

.customer-table-head {
  padding: 0 2px;
}

.customer-table th {
  background: #f7f9fd;
}

.customer-table tbody tr:hover {
  background: #fbfcff;
}

.customer-detail-link {
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 800;
}

/* ---------- ADMIN LAYOUT ---------- */
.admin-body {
  min-height: 100vh;
  background: #eef2f7;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: 270px;
  display: flex;
  flex-direction: column;
  padding: 22px 17px;
  color: #dbe5f4;
  background: linear-gradient(180deg, #101828, #14233f 58%, #101828);
  box-shadow: 16px 0 35px rgba(15, 23, 42, .12);
  overflow-y: auto;
  transition: transform .22s ease;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 7px 22px;
  color: #fff;
}

.admin-brand:hover { text-decoration: none; }

.admin-brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  box-shadow: 0 8px 20px rgba(59,130,246,.3);
  font-size: 1.2rem;
  font-weight: 900;
}

.admin-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.admin-brand strong { font-size: 1.13rem; }
.admin-brand small { margin-top: 3px; color: #94a3b8; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

.admin-profile-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  margin-bottom: 21px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}

.admin-profile-avatar,
.admin-avatar {
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  font-weight: 850;
}

.admin-profile-mini > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-profile-mini strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  font-size: .85rem;
}

.admin-profile-mini span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #94a3b8;
  font-size: .7rem;
}

.admin-side-menu {
  display: grid;
  gap: 5px;
}

.admin-menu-label {
  padding: 14px 10px 5px;
  color: #64748b;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.admin-side-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 10px 12px;
  border-radius: 11px;
  color: #b8c6da;
  font-size: .88rem;
  font-weight: 700;
  transition: .15s ease;
}

.admin-side-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
  text-decoration: none;
}

.admin-side-menu a.active {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 10px 22px rgba(37,99,235,.24);
}

.admin-menu-icon {
  width: 25px;
  text-align: center;
  font-size: 1.03rem;
}

.admin-logout {
  margin-top: auto;
  padding-top: 22px;
}

.admin-logout button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(248,113,113,.23);
  border-radius: 11px;
  color: #fecaca;
  background: rgba(127,29,29,.18);
  cursor: pointer;
  font-weight: 750;
}

.admin-workspace {
  min-height: 100vh;
  margin-left: 270px;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 30px;
  border-bottom: 1px solid #dce3ec;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}

.admin-topbar-left,
.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-topbar-eyebrow {
  color: #7c8799;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.admin-topbar h1 {
  margin: 1px 0 0;
  font-size: 1.13rem;
  line-height: 1.2;
}

.admin-topbar-user > div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.admin-topbar-user strong { font-size: .82rem; }
.admin-topbar-user span:last-child { color: var(--muted); font-size: .7rem; }

.admin-avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 50%;
}

.admin-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #334155;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

.admin-content {
  width: 100%;
  max-width: 1700px;
  flex: 1;
  padding: 28px 30px 42px;
}

.admin-footer {
  padding: 18px 30px;
  border-top: 1px solid #dce3ec;
  color: #7c8799;
  background: #fff;
  font-size: .78rem;
  text-align: right;
}

.admin-welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-page-kicker,
.admin-panel-kicker {
  color: #2563eb;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.admin-welcome-row h2 {
  margin: 5px 0 4px;
  font-size: 1.55rem;
  letter-spacing: -.025em;
}

.admin-welcome-row p {
  margin: 0;
  color: var(--muted);
}

.admin-welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.admin-stat-card {
  min-height: 145px;
  padding: 20px;
  border: 1px solid #dce3ec;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15,23,42,.05);
}

.admin-stat-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #1d4ed8, #4338ca 65%, #6d28d9);
  box-shadow: 0 16px 32px rgba(37,99,235,.22);
}

.admin-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 750;
}

.admin-stat-top b {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #2563eb;
  background: #eef4ff;
}

.admin-stat-card > strong {
  display: block;
  margin: 12px 0 5px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.admin-stat-card small { color: #8a96a8; }
.admin-stat-primary .admin-stat-top,
.admin-stat-primary small { color: #dbe7ff; }
.admin-stat-primary .admin-stat-top b { color: #fff; background: rgba(255,255,255,.15); }
.admin-stat-primary > strong { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }

.admin-dashboard-main-grid {
  display: grid;
  grid-template-columns: 1.55fr .75fr;
  gap: 18px;
  margin-top: 18px;
}

.admin-dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1.55fr .75fr;
  gap: 18px;
  margin-top: 18px;
}

.admin-panel {
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 21px;
  border-bottom: 1px solid #e6ebf2;
}

.admin-panel-head h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.admin-panel-head a {
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 750;
}

.admin-chart-list {
  display: grid;
  gap: 18px;
  padding: 23px 21px;
}

.admin-chart-row {
  display: grid;
  grid-template-columns: 100px minmax(120px, 1fr) 125px;
  align-items: center;
  gap: 15px;
}

.admin-chart-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.admin-chart-label span { font-size: .82rem; font-weight: 750; }
.admin-chart-label small { margin-top: 3px; color: var(--muted); font-size: .7rem; }

.admin-chart-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f7;
}

.admin-chart-track span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.admin-chart-row > strong {
  text-align: right;
  font-size: .78rem;
}

.admin-status-summary {
  display: grid;
  gap: 3px;
  padding: 14px 21px 18px;
}

.admin-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: .84rem;
}

.admin-status-line:last-child { border-bottom: 0; }

.admin-status-line > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-status-bullet {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
}

.bullet-success { background: #10b981; }
.bullet-warning { background: #f59e0b; }
.bullet-danger { background: #ef4444; }
.bullet-info { background: #3b82f6; }
.bullet-muted { background: #94a3b8; }

.admin-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 18px 21px 21px;
  border-top: 1px solid #e6ebf2;
  background: #f8fafc;
}

.admin-quick-actions a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #344054;
  background: #fff;
  font-size: .76rem;
  font-weight: 750;
}

.admin-quick-actions a:hover {
  color: var(--primary);
  border-color: #bfd0ff;
  text-decoration: none;
}

.admin-table th { background: #f7f9fc; }
.admin-table td { font-size: .81rem; }
.admin-table td small { display: block; color: var(--muted); font-size: .7rem; }
.admin-table tbody tr:hover { background: #fbfcfe; }

.admin-stock-list {
  display: grid;
  padding: 9px 18px 18px;
}

.admin-stock-item {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  padding: 13px 3px;
  border-bottom: 1px solid #edf0f4;
  color: var(--text);
}

.admin-stock-item:hover { text-decoration: none; }
.admin-stock-item:last-child { border-bottom: 0; }

.admin-stock-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #2563eb;
  background: #eef4ff;
  font-weight: 850;
}

.admin-stock-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-stock-info strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .81rem;
}

.admin-stock-info small { color: var(--muted); font-size: .69rem; }

.admin-stock-item > b {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #b45309;
  background: #fff3d6;
  font-size: .8rem;
}

.admin-stock-item > b.stock-zero {
  color: #b42318;
  background: #feeceb;
}

.admin-stock-safe {
  margin-top: 10px;
  padding: 20px;
  border-radius: 12px;
  color: #047857;
  background: #e9f8f0;
  text-align: center;
  font-size: .84rem;
  font-weight: 750;
}

.admin-sidebar-overlay {
  display: none;
}

.admin-body .admin-tabs {
  display: none;
}

/* Membuat halaman admin lama tetap menyatu dengan layout baru */
.admin-body .section-head {
  margin-top: 0;
}

.admin-body .card {
  border-color: #dce3ec;
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .customer-stat-grid,
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-main-grid,
  .admin-dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-workspace {
    margin-left: 0;
  }

  .admin-menu-toggle {
    display: grid;
    place-items: center;
  }

  .admin-body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15,23,42,.48);
  }

  .admin-body.admin-sidebar-open .admin-sidebar-overlay {
    display: block;
  }
}

@media (max-width: 960px) {
  .customer-header .main-nav > a.active::after {
    display: none;
  }

  .customer-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .customer-hero-illustration {
    display: none;
  }

  .customer-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .customer-status-list {
    grid-template-columns: 1fr;
  }

  .customer-user-text {
    display: none;
  }
}

@media (max-width: 700px) {
  .customer-stat-grid,
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .customer-dashboard-hero {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .customer-dashboard-hero h1 {
    font-size: 2rem;
  }

  .customer-hero-actions,
  .admin-welcome-actions {
    flex-direction: column;
  }

  .customer-hero-actions .btn,
  .admin-welcome-actions .btn {
    width: 100%;
  }

  .admin-topbar {
    padding: 11px 16px;
  }

  .admin-topbar-user > div {
    display: none;
  }

  .admin-content {
    padding: 21px 14px 34px;
  }

  .admin-welcome-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-chart-row {
    grid-template-columns: 76px minmax(80px, 1fr);
  }

  .admin-chart-row > strong {
    grid-column: 1 / -1;
    text-align: left;
  }

  .admin-quick-actions {
    grid-template-columns: 1fr;
  }

  .admin-footer {
    padding-inline: 16px;
    text-align: center;
  }
}

@media print {
  .admin-sidebar,
  .admin-topbar,
  .admin-footer,
  .admin-sidebar-overlay {
    display: none !important;
  }

  .admin-workspace {
    margin-left: 0;
  }

  .admin-content {
    padding: 0;
  }
}
/* ---------- NOTIFICATIONS ---------- */
.notification-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.notification-page-head {
  align-items: center;
}

.notification-list {
  display: grid;
  gap: 12px;
}

.notification-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.notification-item:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
}

.notification-item.is-unread {
  border-left: 4px solid #2563eb;
  background: #f8fbff;
}

.notification-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.notification-item.is-unread .notification-dot {
  background: #2563eb;
}

.notification-content p {
  margin: 7px 0 0;
}

.notification-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width: 700px) {
  .notification-title-row {
    flex-direction: column;
    gap: 4px;
  }
}
