/* ==========================================================
   TOKOKUSHOP - Shared Stylesheet
   Dipakai di semua halaman (index, login, register, user/*, admin/*)
   ========================================================== */

:root {
  --bg-global: #f8fafc;
  --surface: #ffffff;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --secondary: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-global);
  color: var(--text-main);
  min-height: 100vh;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout Wrapper (auth pages) ---------- */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 460px;
}

.card {
  background: var(--surface);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ---------- Brand Header ---------- */
.brand-header {
  text-align: center;
  margin-bottom: 26px;
}

.app-logo-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 3px solid #fff;
  margin: 0 auto 14px;
}

.app-logo-fallback {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 0 auto 14px;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary);
}

.brand-header h1,
.brand-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.4px;
}

.brand-header p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.55;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-group label i {
  margin-right: 4px;
  color: var(--text-muted);
}

.label-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px; /* 16px agar iOS tidak auto-zoom saat fokus input */
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: #fff;
  color: var(--secondary);
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
  color: #94a3b8;
}

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

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i.leading-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.input-icon-wrapper .form-control {
  padding-left: 44px;
}

.input-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  font-size: 15px;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.alert i {
  margin-top: 2px;
}

.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #fca5a5;
}

.alert-success {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.alert-warning {
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid #fde68a;
}

/* ---------- Buttons ---------- */
.btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  min-height: 48px; /* target sentuh ramah jari */
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-global);
  border-color: #cbd5e1;
}

.btn-danger-text {
  color: var(--danger);
  font-weight: 700;
}

/* ---------- Footer / Links ---------- */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.auth-footer a,
.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.auth-footer a:hover,
.forgot-link:hover {
  color: var(--primary-hover);
}

.back-link {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
}

.back-link a {
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Area Search (dropdown rekomendasi wilayah) ---------- */
.area-search-wrapper {
  position: relative;
}

.area-suggestion-box {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.area-suggestion-box.show {
  display: block;
}

.area-suggestion-item {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.area-suggestion-item:last-child {
  border-bottom: none;
}

.area-suggestion-item:hover {
  background: var(--bg-global);
  color: var(--primary);
}

.area-suggestion-item i {
  color: #94a3b8;
  flex-shrink: 0;
}

.area-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
}

.area-hint.ok {
  color: var(--success);
}

/* ---------- Welcome / Landing Page ---------- */
.welcome-card {
  background: var(--surface);
  padding: 44px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-text {
  margin-top: 32px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Loading Spinner (dalam tombol) ---------- */
.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Utility ---------- */
.hidden {
  display: none !important;
}

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

/* ---------- Responsive: HP kecil ---------- */
@media screen and (max-width: 480px) {
  .auth-wrapper {
    padding: 16px;
  }
  .card {
    padding: 30px 20px;
    border-radius: var(--radius-md);
  }
  .welcome-card {
    padding: 34px 22px;
  }
}

/* ==========================================================
   NAVBAR (dipakai di user/ & admin/)
   ========================================================== */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: var(--safe-top);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--secondary);
  flex-shrink: 0;
}

.navbar-brand img,
.navbar-brand .app-logo-fallback {
  width: 36px;
  height: 36px;
  margin: 0;
}

.navbar-search-row {
  border-top: 1px solid var(--border);
  padding: 10px 16px;
}

.navbar-search {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.navbar-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 14.5px;
  background: var(--bg-global);
}

.navbar-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.navbar-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.navbar-actions #auth-area {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--bg-global);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
}

/* Dropdown user menu */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}

.user-menu-trigger:hover {
  background: var(--bg-global);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.3px;
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  display: none;
  overflow: hidden;
  z-index: 200;
}

.user-menu-dropdown.show {
  display: block;
}

.user-menu-dropdown a,
.user-menu-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
  background: var(--bg-global);
}

.user-menu-dropdown .divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ==========================================================
   PAGE CONTAINER & PRODUCT GRID
   ========================================================== */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.page-heading {
  margin-bottom: 18px;
}

.page-heading h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-global);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 32px;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary);
  margin-top: auto;
}

.product-card-stock {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-add-cart {
  width: 100%;
  padding: 9px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--primary-soft);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add-cart:active {
  transform: scale(0.97);
}

.btn-add-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 40px;
  color: #cbd5e1;
  margin-bottom: 14px;
}

/* ==========================================================
   MODAL (detail produk, konfirmasi, dsb)
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 300;
  padding: 0;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding-bottom: var(--safe-bottom);
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media screen and (min-width: 640px) {
  .modal-overlay {
    align-items: center;
  }
  .modal-box {
    border-radius: var(--radius-lg);
    max-height: 85vh;
  }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.modal-product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-global);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 48px;
  position: relative;
}

.modal-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 20px;
}

.modal-body h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.modal-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.modal-description {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  white-space: pre-line;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-value {
  font-size: 16px;
  font-weight: 800;
  min-width: 30px;
  text-align: center;
}

/* ==========================================================
   TOAST (notifikasi kecil, contoh: "Ditambahkan ke keranjang")
   ========================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  transform: translateX(-50%) translateY(20px);
  background: var(--secondary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast i {
  color: #4ade80;
}

/* ==========================================================
   SKELETON LOADING
   ========================================================== */
.skeleton {
  background: linear-gradient(90deg, #eef1f6 25%, #e4e8f0 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* ==========================================================
   CHECKOUT - Pilihan Kurir
   ========================================================== */
.courier-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.courier-option:hover {
  border-color: #cbd5e1;
}

.courier-option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.courier-option-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-main);
}

.courier-option-eta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.courier-option-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 14px;
  white-space: nowrap;
}

/* ==========================================================
   STATUS BADGE - Riwayat Pesanan
   ========================================================== */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-PENDING {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-PAID,
.status-PROCESSING {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-SHIPPED {
  background: #e0f2fe;
  color: #0369a1;
}

.status-COMPLETED {
  background: var(--success-soft);
  color: var(--success);
}

.status-CANCELLED {
  background: var(--danger-soft);
  color: var(--danger);
}

.order-card {
  cursor: pointer;
  transition: all 0.15s ease;
}

.order-card:hover {
  box-shadow: var(--shadow-md);
}

/* ==========================================================
   ADMIN - Tabel & Tombol Aksi
   ========================================================== */
.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}

.admin-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.table-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-global);
  flex-shrink: 0;
}

.btn-icon-sm {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}

.btn-icon-sm:hover {
  background: var(--bg-global);
}

.btn-icon-sm.danger {
  color: var(--danger);
  border-color: #fca5a5;
}

.btn-icon-sm.danger:hover {
  background: var(--danger-soft);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-nav-tabs {
  display: flex;
  gap: 4px;
}

.admin-nav-tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
}

.admin-nav-tabs a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  background: #fff;
}

/* ==========================================================
   TRACKING CARD - Kartu resi/pengiriman di riwayat pesanan
   ========================================================== */
.tracking-card {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.tracking-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.tracking-courier-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracking-courier-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.tracking-courier-name {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--secondary);
  text-transform: uppercase;
}

.tracking-courier-service {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.tracking-status-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.tracking-waybill-box {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.tracking-waybill-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.tracking-waybill-number {
  font-size: 15px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: 0.5px;
  font-family: 'Courier New', monospace;
}

.btn-copy-waybill {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-copy-waybill:active {
  transform: scale(0.94);
}

.btn-track-package {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-track-package:active {
  transform: scale(0.98);
}

.tracking-waiting-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
