/* ==========================================================
   LA ALCANCÍA - MODERN ENHANCED STYLESHEET
   Design System, Components, Animations & Micro-Interactions
   ========================================================== */

:root {
  --primary-50: #ecfdf5;
  --primary-100: #d1fae5;
  --primary-200: #a7f3d0;
  --primary-300: #6ee7b7;
  --primary-400: #34d399;
  --primary-500: #10b981;
  --primary-600: #059669;
  --primary-700: #047857;
  --primary-800: #065f46;
  --primary-900: #064e3b;

  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-blue: #3b82f6;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --card-radius: 14px;
  --card-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 12px 24px -6px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================
   BASE & SMOOTH TRANSITIONS
   ========================================================== */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: #0f172a;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================
   PRODUCT CARDS (E-COMMERCE ENHANCED)
   ========================================================== */
.product-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 10px;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: #cbd5e1;
}

.product-card .img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 80%; /* 4:3 aspect ratio approx */
  border-radius: 10px;
  background-color: #f8fafc;
  overflow: hidden;
  margin-bottom: 8px;
}

.product-card .img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .img-wrapper img {
  transform: scale(1.05);
}

.product-card .badge-offer {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
  z-index: 2;
  text-transform: uppercase;
}

.product-card .product-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1e293b;
  margin-bottom: 6px;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed #f1f5f9;
}

.product-card .product-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.product-card .product-price-old {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-right: 4px;
}

.product-card .btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background-color: var(--primary-500);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

.product-card .btn-add:hover {
  background-color: var(--primary-600);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.product-card .btn-add:active {
  transform: scale(0.95);
}

/* ==========================================================
   CATEGORY CHIPS & SWIPER
   ========================================================== */
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background-color: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}

.cat-chip:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-700);
  transform: translateY(-1px);
}

.cat-chip.active,
.cat-chip.ring-2 {
  background-color: var(--primary-500) !important;
  color: #ffffff !important;
  border-color: var(--primary-500) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

/* Category Chip Image Icon */
.cat-chip-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
}

/* ==========================================================
   HERO / BANNER STYLES
   ========================================================== */
.hero-banner {
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

/* ==========================================================
   MODERN BARCODE SCANNER MODAL
   ========================================================== */
.barcode-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.barcode-modal-content {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  position: relative;
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.barcode-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.barcode-viewfinder-box {
  position: relative;
  background: #000;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.barcode-viewfinder-box #reader {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

.barcode-viewfinder-box #reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Scanner Laser Animation */
.scanner-laser {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
  animation: scanLaser 2s linear infinite alternate;
  z-index: 10;
  pointer-events: none;
}

@keyframes scanLaser {
  0% { top: 15%; }
  100% { top: 85%; }
}

/* ==========================================================
   SKELETON LOADERS
   ========================================================== */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  border: 1px solid #e2e8f0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.skeleton-img {
  width: 100%;
  padding-top: 80%;
  margin-bottom: 10px;
}

.skeleton-text {
  height: 14px;
  width: 80%;
  margin-bottom: 6px;
}

.skeleton-text-short {
  height: 12px;
  width: 50%;
  margin-bottom: 12px;
}

.skeleton-btn {
  height: 28px;
  width: 100%;
  border-radius: 8px;
  margin-top: auto;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================
   TOASTS & BADGES
   ========================================================== */
.modern-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
  opacity: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.modern-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.badge-bounce {
  animation: badgeBounce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ==========================================================
   SEARCH BAR ENHANCEMENTS
   ========================================================== */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-wrapper input {
  width: 100%;
  padding-right: 40px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrapper input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  outline: none;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.search-clear-btn:hover {
  color: #475569;
}

/* ==========================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================== */
.mobile-nav-bar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
}

.mobile-nav-item:active {
  transform: scale(0.92);
}

.mobile-nav-item.active {
  color: var(--primary-600);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ----------------------------------------------------
   Clickable Product Image & Quantity Modal Styles
---------------------------------------------------- */
.product-card .img-wrapper.open-qty-modal,
.open-qty-modal {
  cursor: pointer;
  position: relative;
}

.product-card .img-wrapper .qty-hint {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
  pointer-events: none;
}

.product-card:hover .img-wrapper .qty-hint {
  opacity: 1;
  transform: scale(1.04);
  background: var(--primary-600);
}

/* Modal de selección de cantidad */
.qty-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.qty-modal-dialog {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.qty-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.qty-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 80vh;
  overflow-y: auto;
}

.qty-product-preview {
  display: flex;
  gap: 16px;
  align-items: center;
}

.qty-product-img-box {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: 16px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qty-product-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Stepper numérico táctil */
.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
}

.qty-btn-step {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.qty-btn-step:hover:not(:disabled) {
  background-color: var(--primary-50);
  border-color: var(--primary-400);
  color: var(--primary-700);
  transform: translateY(-1px);
}

.qty-btn-step:active:not(:disabled) {
  transform: scale(0.95);
}

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

.qty-input-manual {
  width: 90px;
  height: 48px;
  background: transparent;
  border: none;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input-manual::-webkit-outer-spin-button,
.qty-input-manual::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Botones de sugerencias rápidas */
.qty-chips-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qty-chip {
  padding: 6px 14px;
  border-radius: 9999px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qty-chip:hover {
  background-color: var(--primary-100);
  border-color: var(--primary-300);
  color: var(--primary-700);
  transform: translateY(-1px);
}

.qty-chip:active {
  transform: scale(0.95);
}

.qty-chip.active {
  background-color: var(--primary-500);
  color: #ffffff;
  border-color: var(--primary-600);
}

/* Resumen de subtotal */
.qty-subtotal-box {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Footer con botón principal */
.qty-modal-footer {
  padding: 14px 20px 20px;
  display: flex;
  gap: 10px;
}

.btn-confirm-add {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.18s ease;
}

.btn-confirm-add:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

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

/* ==========================================================
   AUTHENTICATION & BOOTSTRAP MODALS (STABLE & MODERN DESIGN)
   Ensures modals NEVER render in normal document flow at the bottom of the page
   ========================================================== */
.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1055 !important;
  display: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  outline: 0 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1050 !important;
  background-color: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  opacity: 0;
  transition: opacity 0.2s ease-in-out !important;
}

.modal-backdrop.show {
  opacity: 1 !important;
}

/* Modal Dialog */
.modal-dialog {
  position: relative !important;
  width: 100% !important;
  max-width: 440px !important;
  margin: auto !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
}

.modal.show .modal-dialog {
  animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-dialog.modal-lg {
  max-width: 620px !important;
}

/* Modal Content (Glassmorphism & Card style) */
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid #e2e8f0;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  outline: 0;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff;
}

.modal-header .modal-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header .btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.35em;
  color: #64748b;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 8px;
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-header .btn-close:hover {
  opacity: 1;
  background-color: #f1f5f9;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 20px !important;
}

/* Modern Inputs inside Modal */
.modal-body .form-control {
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  padding: 9px 14px;
  font-size: 13.5px;
  color: #0f172a;
  background-color: #f8fafc;
  transition: all 0.2s ease;
  width: 100%;
}

.modal-body .form-control:focus {
  background-color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  outline: none;
}

.modal-body .form-control::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

/* Modern Buttons in Modals */
.modal-body .btn-primary,
.modal-body .btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  padding: 9px 18px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}

.modal-body .btn-primary:hover,
.modal-body .btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.modal-body .btn-link {
  color: #10b981;
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-body .btn-link:hover {
  color: #059669;
  text-decoration: underline;
}

.modal-body .alert {
  border-radius: 12px;
  font-size: 12.5px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

/* ==========================================================
   MY ORDERS PORTAL (PREMIUM USER EXPERIENCE)
   ========================================================== */
.order-portal-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.order-portal-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
}

.order-portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #059669);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.order-portal-card:hover::before {
  opacity: 1;
}

/* Filter Tabs */
.order-filter-tab {
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-filter-tab:hover {
  color: #0f172a;
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.order-filter-tab.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.order-filter-tab .tab-count {
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 10px;
  background-color: rgba(0, 0, 0, 0.06);
}

.order-filter-tab.active .tab-count {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Address Cards */
.address-portal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  transition: all 0.2s ease;
  position: relative;
}

.address-portal-card:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.address-portal-card.is-default {
  border-color: #a7f3d0;
  background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.order-number-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.order-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.order-detail-btn:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.order-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  color: #475569;
}

.empty-portal-state {
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  background: #ffffff;
  padding: 48px 24px;
  text-align: center;
}



