/* ===== 1ØRE BRAND COLOR SYSTEM ===== */
/* Centralized color variables for consistent theming */
:root {
  /* Primary brand colors */
  --1ore-primary: #f29c1f;
  --1ore-primary-hover: #d88700;
  --1ore-primary-light: #ffb347;
  --1ore-gold: #f7d27d;
  
  /* Background colors */
  --1ore-cream: #fffaf0;
  --1ore-light-bg: #fff5e6;
  --1ore-card-bg: #ffffff;
  
  /* Shopping cart gradients (light mode) */
  --cart-winner-gradient: linear-gradient(135deg, #e0f9e7, #d0f0d8);
  --cart-leading-gradient: linear-gradient(135deg, #e0f0ff, #d0e7ff);
  --cart-outbid-gradient: linear-gradient(135deg, #fff7e0, #fff0c2);
  --cart-footer-bg: #fff3e0;
  --cart-panel-bg: #fff9f0;
  
  /* Toast colors */
  --toast-bg: #ffffff;
  --toast-border: #e5e5e5;
  --toast-text: #1a1a1a;
  --toast-text-secondary: #6c757d;
  --toast-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --toast-accent-default: var(--1ore-primary);
  --toast-accent-success: #4ade80;
  --toast-accent-error: #f87171;
  --toast-accent-warning: #fbbf24;
  --toast-accent-info: #60a5fa;
}

/* Dark mode color overrides */
[data-bs-theme="dark"] {
  /* Brand colors - lighter for better contrast on dark */
  --1ore-primary-light: #ffb347;
  --1ore-gold: rgba(247, 210, 125, 0.7);
  
  /* Background colors - warm dark tones */
  --1ore-cream: #1f1a14;
  --1ore-light-bg: #2a1f14;
  --1ore-card-bg: var(--cz-tertiary-bg, #222934);
  
  /* Shopping cart gradients (dark mode) */
  --cart-winner-gradient: linear-gradient(135deg, #1a3d2a, #163526);
  --cart-leading-gradient: linear-gradient(135deg, #1a2a3d, #162635);
  --cart-outbid-gradient: linear-gradient(135deg, #3d3a1a, #353216);
  --cart-footer-bg: #2a2014;
  --cart-panel-bg: #231c14;
  
  /* Toast colors for dark mode */
  --toast-bg: #1c1c1c;
  --toast-border: #333333;
  --toast-text: #e5e5e5;
  --toast-text-secondary: #9ca3af;
  --toast-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Dark mode form-select optgroup styling */
[data-bs-theme="dark"] .form-select option {
  background-color: #181d25;
  color: #e5e5e5;
}
[data-bs-theme="dark"] .form-select optgroup {
  background-color: #181d25;
  color: var(--1ore-primary);
  font-weight: 600;
}
/* ===== END 1ØRE BRAND COLOR SYSTEM ===== */

/* ===== UTILITY CLASSES ===== */
/* Custom badge colors not in Bootstrap */
.bg-purple {
  background-color: #8b5cf6 !important;
  color: white !important;
}

[data-bs-theme="dark"] .bg-purple {
  background-color: #a78bfa !important;
}
/* ===== END UTILITY CLASSES ===== */

/* Ny brand-loader (fabelaktige funn) */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--1ore-cream);
  opacity: 0.95;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.loading-container.active {
  opacity: 1;
  pointer-events: auto;
}

/* Logo som spinner */
.loader-logo {
  width: 100px;
  height: 100px;
  animation: spin 2s linear infinite;
}

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

/* Tekst under logo */
.loader-text {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #f29c1f;
  font-weight: bold;
  animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {
  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* 🚀 Dashboard live data flash effect */
.dashboard-flash {
  animation: dashboardValueUpdate 0.5s ease-in-out;
}

@keyframes dashboardValueUpdate {
  0% {
    background-color: rgba(13, 110, 253, 0.2);
    transform: scale(1);
  }
  50% {
    background-color: rgba(13, 110, 253, 0.4);
    transform: scale(1.1);
  }
  100% {
    background-color: transparent;
    transform: scale(1);
  }
}
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* Prikk-animasjon */
.loader-dots::after {
  content: "";
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}

/* End of loader */

/* Loading state på knapper */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

/* Spinner på knappen */
.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: -1.25rem;
  margin-left: -1.25rem;
  border: 3px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite, pulse 1.5s ease-in-out infinite;
  z-index: 2;
}

/* Spinner rotasjon */
@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Pulse-effekt */
@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
/* ========================================
   AUCTION CARD - PREMIUM REDESIGN
   ======================================== */

/* Base card styling */
.auction-card {
  border: 2px solid var(--1ore-primary) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--bs-card-bg);
  position: relative;
  overflow: hidden;
}

.auction-card-premium {
  border-radius: 12px !important;
}

/* === URGENCY SYSTEM === */
/* Critical: < 1 hour - Different colors based on bid status */
.auction-card.urgency-critical {
  border: 2px solid #f59e0b !important;
  animation: urgency-pulse-amber 2s ease-in-out infinite;
  position: relative;
}

/* Green pulse when user is LEADING */
.auction-card.urgency-critical[data-user-status="leading"] {
  border: 2px solid #10b981 !important;
  animation: urgency-pulse-leading 2s ease-in-out infinite;
}

/* Red/warning pulse when user is OUTBID */
.auction-card.urgency-critical[data-user-status="outbid"] {
  border: 2px solid #ef4444 !important;
  animation: urgency-pulse-outbid 2s ease-in-out infinite;
}

.auction-card.urgency-critical::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
  background-size: 200% 100%;
  animation: urgency-gradient 2s linear infinite;
  z-index: 10;
  border-radius: 8px 8px 0 0;
}

.auction-card.urgency-critical[data-user-status="leading"]::before {
  background: linear-gradient(90deg, #10b981, #34d399, #10b981);
}

.auction-card.urgency-critical[data-user-status="outbid"]::before {
  background: linear-gradient(90deg, #ef4444, #f97316, #ef4444);
}

@keyframes urgency-pulse-amber {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 20px 6px rgba(245, 158, 11, 0.3);
    transform: scale(1.005);
  }
}

@keyframes urgency-pulse-leading {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 20px 6px rgba(16, 185, 129, 0.3);
    transform: scale(1.005);
  }
}

@keyframes urgency-pulse-outbid {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 20px 6px rgba(239, 68, 68, 0.3);
    transform: scale(1.005);
  }
}

@keyframes urgency-gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* High: < 24 hours - Orange */
.auction-card.urgency-high {
  border-color: #f97316 !important;
}

.auction-card.urgency-high::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #fbbf24);
  z-index: 5;
}

/* Medium: < 3 days - Yellow accent */
.auction-card.urgency-medium {
  border-color: #eab308 !important;
}

/* === HOT/TRENDING BADGE === */
.hot-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.hot-badge.hot-fire {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: fire-glow 1.5s ease-in-out infinite;
}

@keyframes fire-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6); }
}

/* === STATUS RIBBON (LEDER/OVERBUDT) === */
.auction-status-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  pointer-events: none;
}

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom-right-radius: 12px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.status-leading {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.status-outbid {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  animation: pulse-outbid 2s infinite;
}

@keyframes pulse-outbid {
  0%, 100% { box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 2px 2px 16px rgba(249, 115, 22, 0.5); }
}

/* Card border based on user bid status */
.auction-card[data-user-status="leading"] {
  border-color: #22c55e !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.auction-card[data-user-status="outbid"] {
  border-color: #f97316 !important;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.3);
}

/* === IMAGE OVERLAY === */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auction-card:hover .image-overlay {
  opacity: 1;
}

/* === PRICE SECTION === */
.auction-price-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--1ore-light-bg);
  border-radius: 8px;
  margin: 0 -4px;
}

.auction-highest-bid {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--1ore-primary);
}

.auction-highest-bid i {
  font-size: 0.8rem;
}

.bid-count-display {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  display: flex;
  align-items: center;
}

/* No bids indicator */
.no-bids-text {
  color: var(--bs-secondary-color);
  font-weight: 500;
}

.be-first-text {
  color: #22c55e;
  font-weight: 600;
}

.be-first-text i {
  color: #fbbf24;
}

/* Mobile: Hide "Ingen bud", show only "Vær først!" */
@media (max-width: 575.98px) {
  .no-bids-text {
    display: none;
  }
  
  .auction-price-section:has(.no-bids-text) {
    justify-content: flex-end;
  }
}

/* Current bid amount with icon */
.current-bid-amount {
  display: inline-flex;
  align-items: center;
  color: var(--1ore-primary);
  font-weight: 700;
}

.current-bid-amount i {
  color: var(--1ore-primary);
  font-size: 0.85em;
}

/* === TIME SECTION WITH URGENCY BAR === */
.auction-time-section {
  margin-top: auto;
  padding-top: 8px;
}

.time-display {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bs-body-color);
  margin-bottom: 6px;
}

.time-display i {
  color: var(--1ore-primary);
}

.urgency-bar {
  height: 4px;
  background: var(--bs-border-color);
  border-radius: 2px;
  overflow: hidden;
}

.urgency-fill {
  height: 100%;
  width: 100%;
  background: var(--1ore-primary);
  border-radius: 2px;
  transition: width 1s linear, background 0.5s ease;
}

/* Urgency colors for time section */
.auction-time-section.urgency-critical .time-display {
  color: #ef4444;
}
.auction-time-section.urgency-critical .time-display i {
  color: #ef4444;
  animation: fire-icon 0.5s ease-in-out infinite alternate;
}
.auction-time-section.urgency-critical .urgency-fill {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

@keyframes fire-icon {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); }
}

.auction-time-section.urgency-high .time-display {
  color: #f97316;
}
.auction-time-section.urgency-high .time-display i {
  color: #f97316;
}
.auction-time-section.urgency-high .urgency-fill {
  background: linear-gradient(90deg, #f97316, #fbbf24);
}

.auction-time-section.urgency-medium .time-display i {
  color: #eab308;
}
.auction-time-section.urgency-medium .urgency-fill {
  background: #eab308;
}

/* === UPCOMING AUCTIONS STYLING === */

/* Upcoming badge - top right */
.upcoming-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

/* Upcoming card border - cyan theme */
.auction-card-upcoming {
  border-color: #06b6d4 !important;
}

.auction-card-upcoming::after {
  background: linear-gradient(90deg, #06b6d4, #22d3ee) !important;
}

/* Ended auction card styles */
.auction-card-ended {
  border-color: var(--bs-secondary) !important;
  opacity: 0.85;
}

.auction-card-ended::after {
  background: linear-gradient(90deg, #6c757d, #adb5bd) !important;
}

.ended-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.4);
}

.ended-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 100%) !important;
}

/* Profile status filter (inside breadcrumb header) */
#profileStatusFilter .btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
}

/* Start price info styling */
.start-price-info {
  color: var(--bs-secondary-color);
  font-weight: 500;
  font-size: 0.85rem;
}

.start-price-info i {
  color: #06b6d4;
}

/* Upcoming time section - inverted logic (bar fills up as start approaches) */
.upcoming-time-section .time-display {
  color: #06b6d4;
}

.upcoming-time-section .time-display i {
  color: #06b6d4;
}

.upcoming-fill {
  background: linear-gradient(90deg, #06b6d4, #22d3ee) !important;
}

/* Imminent start - under 1 hour */
.auction-card.upcoming-imminent {
  border-color: #10b981 !important;
  animation: upcoming-pulse 2s ease-in-out infinite;
}

.auction-card.upcoming-imminent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #34d399, #10b981);
  background-size: 200% 100%;
  animation: urgency-gradient 2s linear infinite;
  z-index: 5;
}

.auction-card.upcoming-imminent::after {
  background: linear-gradient(90deg, #10b981, #34d399) !important;
}

.upcoming-imminent .upcoming-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
  animation: fire-glow 1.5s ease-in-out infinite;
}

.upcoming-time-section.upcoming-imminent .time-display {
  color: #10b981;
}

.upcoming-time-section.upcoming-imminent .time-display i {
  color: #10b981;
  animation: fire-icon 0.5s ease-in-out infinite alternate;
}

.upcoming-time-section.upcoming-imminent .urgency-fill {
  background: linear-gradient(90deg, #10b981, #34d399) !important;
}

@keyframes upcoming-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(16, 185, 129, 0.3); }
}

/* Soon start - under 6 hours */
.auction-card.upcoming-soon {
  border-color: #8b5cf6 !important;
}

.auction-card.upcoming-soon::after {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa) !important;
}

.upcoming-soon .upcoming-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.upcoming-time-section.upcoming-soon .time-display {
  color: #8b5cf6;
}

.upcoming-time-section.upcoming-soon .time-display i {
  color: #8b5cf6;
}

.upcoming-time-section.upcoming-soon .urgency-fill {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa) !important;
}

/* Today start - under 24 hours */
.upcoming-time-section.upcoming-today .time-display {
  color: #06b6d4;
}

/* === HOVER EFFECTS === */
.auction-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(242, 156, 31, 0.25),
    0 0 20px rgba(242, 156, 31, 0.15);
}

.auction-card-upcoming:hover {
  box-shadow: 
    0 12px 40px rgba(6, 182, 212, 0.25),
    0 0 20px rgba(6, 182, 212, 0.15);
}

/* === SKELETON LOADING FOR AUCTION CARDS === */
.auction-card-skeleton {
  background: var(--bs-card-bg, #fff);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

.skeleton-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  position: relative;
  overflow: hidden;
}

.skeleton-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
  background-size: 200% 100%;
}

.skeleton-body {
  padding: 1rem;
}

.skeleton-title {
  height: 1.2rem;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  width: 80%;
}

.skeleton-price {
  height: 1rem;
  background: #e0e0e0;
  border-radius: 4px;
  width: 40%;
  margin-bottom: 0.5rem;
}

.skeleton-time {
  height: 0.875rem;
  background: #e0e0e0;
  border-radius: 4px;
  width: 60%;
}

/* Dark mode skeleton */
[data-bs-theme="dark"] .auction-card-skeleton {
  background: var(--cz-tertiary-bg, #222934);
}

[data-bs-theme="dark"] .skeleton-image {
  background: linear-gradient(135deg, #2a2a35 0%, #3a3a45 100%);
}

[data-bs-theme="dark"] .skeleton-title,
[data-bs-theme="dark"] .skeleton-price,
[data-bs-theme="dark"] .skeleton-time {
  background: #3a3a45;
}

[data-bs-theme="dark"] .skeleton-image::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
}

/* === "All Loaded" Badge Styling === */
.all-loaded-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 156, 31, 0.3);
  border-radius: 50px;
  color: #666;
  font-size: 0.875rem;
  font-weight: 500;
}

.all-loaded-badge i {
  color: #22c55e;
}

[data-bs-theme="dark"] .all-loaded-badge {
  background: rgba(30, 30, 35, 0.7);
  border-color: rgba(242, 156, 31, 0.25);
  color: #999;
}

/* Placeholder image styling */
.auction-card img {
  object-fit: contain;
  background-color: var(--1ore-light-bg);
  padding: 10px;
  transition: transform 0.3s ease;
}

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

/* === BOTTOM STRIPE === */
.auction-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--1ore-primary);
  transition: height 0.3s ease;
}

.auction-card:hover::after {
  height: 6px;
}

.auction-card.urgency-critical::after {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.auction-card.urgency-high::after {
  background: linear-gradient(90deg, #f97316, #fbbf24);
}

/* FontAwesome icon color */
.auction-card i {
  color: #d86f34;
}

/* === DARK MODE === */
[data-bs-theme="dark"] .auction-price-section {
  background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .hot-badge {
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.5);
}

[data-bs-theme="dark"] .hot-badge.hot-fire {
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.5);
}

[data-bs-theme="dark"] .status-leading {
  box-shadow: 2px 2px 12px rgba(34, 197, 94, 0.4);
}

[data-bs-theme="dark"] .status-outbid {
  box-shadow: 2px 2px 12px rgba(249, 115, 22, 0.4);
}

[data-bs-theme="dark"] .auction-card[data-user-status="leading"] {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

[data-bs-theme="dark"] .auction-card[data-user-status="outbid"] {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

[data-bs-theme="dark"] .auction-card:hover {
  box-shadow: 0 12px 40px rgba(242, 156, 31, 0.35);
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 575.98px) {
  .status-badge {
    padding: 4px 10px;
    font-size: 0.65rem;
  }
  
  .hot-badge {
    padding: 3px 8px;
    font-size: 0.6rem;
    top: 8px;
    right: 8px;
  }
  
  .auction-price-section {
    padding: 6px 10px;
  }
  
  .auction-highest-bid {
    font-size: 0.85rem;
  }
  
  .bid-count-display {
    font-size: 0.75rem;
  }
  
  .time-display {
    font-size: 0.8rem;
  }
  
  .auction-card:hover {
    transform: translateY(-4px);
  }
}

/* Brand farge for tekst (tid igjen + antall bud + høyeste bud) */
.text-1ore {
  color: #f29c1f !important;
}

/* Image wrapper: fast bredde + høyde */
.image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1; /* Kvadratisk boks */
  background-color: var(--1ore-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  border-top-left-radius: var(--bs-border-radius-lg);
  border-top-right-radius: var(--bs-border-radius-lg);
}

/* Bildet inni wrapper */
.image-inside {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Dark mode: image-wrapper uses variable automatically */
[data-bs-theme="dark"] .image-wrapper {
  background-color: var(--1ore-card-bg);
}

/* Kategori-kort-stil */
.category-card {
  border: 1px solid var(--1ore-primary);
  background-color: var(--bs-card-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--bs-body-color);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(242, 156, 31, 0.3);
  text-decoration: none;
}

/* Ikon-farge for kategorier */
.category-card i {
  color: var(--1ore-primary);
  flex-shrink: 0;
}

.category-card span {
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

.category-box {
  border: 2px solid var(--1ore-gold) !important;
  background-color: var(--bs-card-bg);
  padding: 1.5rem;
}

.filter-box {
  border: 2px solid var(--1ore-gold);
  border-radius: var(--bs-border-radius-lg);
  background-color: var(--bs-card-bg);
  padding: 1.5rem;
}
.filter-box,
.category-box {
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
}

.hero-text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.breadcrumb-tight {
  margin-top: 0 !important;
  margin-bottom: 0.25rem !important;
  padding-top: 0.25rem !important;
}

.offcanvas-body .nav-link:active {
  background-color: rgba(
    242,
    156,
    31,
    0.15
  ); /* Brandfarge i lett transparent */
}

.btn-1ore {
  background-color: #f29c1f !important;
  border-color: #f29c1f !important;
  color: #fff !important;
}
.btn-1ore:hover,
.btn-1ore:focus {
  background-color: #d88700 !important;
  border-color: #d88700 !important;
  color: #fff !important;
}
.form-check-input:checked {
  background-color: #f29c1f;
  border-color: #f29c1f;
}

/* Gjør switch-bakgrunn oransje når aktivert */
.form-switch .form-check-input:checked {
  background-color: #f29c1f !important;
  border-color: #f29c1f !important;
}

/* For ekstra tydelighet på slider-knappen (dotten) */
.form-switch .form-check-input:checked:focus {
  box-shadow: 0 0 0 0.2rem rgba(242, 156, 31, 0.25);
}
/* Lys kremet brand-bakgrunn */
.bg-1ore-light {
  background-color: var(--1ore-cream);
}

.btn-1ore-contrast {
  background-color: #b85c00; /* Mørkere enn #f29c1f */
  border-color: #b85c00;
  color: #fff;
}

.btn-1ore-contrast:hover {
  background-color: #8a4600;
  border-color: #8a4600;
  color: #fff;
}

/* Mer diskret aktiv nav-pill med oransje ramme */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--1ore-card-bg) !important;
  color: var(--1ore-primary) !important;
  border: 2px solid var(--1ore-primary) !important;
  font-weight: 600;
}
.nav-pills .nav-link {
  color: var(--bs-body-color);
  border: 2px solid transparent;
  font-weight: 500;
  transition: border 0.15s, color 0.15s, background 0.15s;
}
.nav-pills .nav-link:hover {
  border: 2px solid var(--1ore-primary);
  color: var(--1ore-primary-hover);
  background: var(--1ore-cream);
}
/* FOOTER STYLING */
.footer-1ore-bg {
  background-color: var(--1ore-light-bg);
  border-top: 2px solid var(--1ore-primary);
}

/* Dark mode: bakgrunn = samme som siden */
[data-bs-theme="dark"] .footer-1ore-bg {
  background-color: var(--bs-body-bg);
}

/* Lenker */
.footer-1ore-bg a {
  color: var(--bs-body-color); /* Følger Bootstrap-farger */
  text-decoration: none;
}

.footer-1ore-bg a:hover {
  color: #f29c1f; /* Brand hover */
}

section[id] {
  scroll-margin-top: 80px; /* juster til headerens faktiske høyde */
}

/* For auskjonskort ved ny data */
@keyframes cardHighlight {
  0% {
    background-color: var(--1ore-light-bg);
  }
  50% {
    background-color: var(--1ore-cream);
  }
  100% {
    background-color: transparent;
  }
}

.card-highlighted {
  animation: cardHighlight 1.5s ease-out;
}

@keyframes productFlash {
  0% {
    background-color: var(--1ore-light-bg);
  }
  50% {
    background-color: var(--1ore-cream);
  }
  100% {
    background-color: transparent;
  }
}

.inline-flash {
  animation: productFlash 1.2s ease-out;
}

/* ===== AUCTION MENU CARDS ===== */
/* Status färg-indikatorer upptill på meny-korten */
.status-indicator {
  border-top-left-radius: var(--bs-border-radius-lg);
  border-top-right-radius: var(--bs-border-radius-lg);
  height: 4px;
  z-index: 2;
}

.status-leading { 
  background: linear-gradient(90deg, #0dcaf0, #0d6efd); 
}

.status-won { 
  background: linear-gradient(90deg, #198754, #20c997); 
}

.status-outbid { 
  background: linear-gradient(90deg, #ffc107, #fd7e14); 
}

.status-lost { 
  background: linear-gradient(90deg, #dc3545, #e74c3c); 
}

.status-following { 
  background: linear-gradient(90deg, #6c757d, #adb5bd); 
}

.status-upcoming { 
  background: linear-gradient(90deg, #0d6efd, #6610f2); 
}

/* Specifik styling för meny-kort - arv från vanliga auction cards */
#auctionsMenuCardsContainer .auction-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#auctionsMenuCardsContainer .auction-card:hover {
  transform: translateY(-2px);
}

/* Säkerställ att bilder visas korrekt i menyn */
#auctionsMenuCardsContainer .image-wrapper {
  height: 140px; /* Lite mindre än normala 200px men större än 100px */
}

/* Legacy support för gamla menu images */
.auction-menu-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: #fff;
  display: block;
}

/* ===== DYNAMIC BANNER SYSTEM ===== */
/* Banners with reduced height (75px vs 90px) and softened colors */
.dynamic-banner-swiper {
  border: none;
  box-shadow: none;
  position: relative;
  min-height: 75px; /* Redusert fra 90px (ca. 17% reduksjon) */
}

.dynamic-banner-swiper .swiper-slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  height: auto;
  min-height: 75px; /* Redusert fra 90px */
}

.dynamic-banner-swiper .swiper-slide-active {
  opacity: 1;
}

.dynamic-banner-swiper .swiper-slide > div {
  min-height: 75px; /* Redusert fra 90px */
}

/* Show banner ONLY on auction pages (PJAX compatible) */
.theme-banner {
  display: none !important;
}

body.auctions-page .theme-banner {
  display: block !important;
}

.theme-banner {
  position: relative;
  overflow: hidden;
  min-height: 75px;
  margin-top: 10px;
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Ensure inner background fills entire banner */
.theme-banner .swiper-slide > div,
.theme-banner > div:first-child {
  border-radius: 16px;
}

/* Swiper needs to fill the banner */
.theme-banner .dynamic-banner-swiper {
  border-radius: 16px;
  overflow: hidden;
}

[data-bs-theme="dark"] .theme-banner {
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Apply color softening to fallback banners (without swiper) */
.theme-banner > div:not(.swiper-wrapper)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15); /* Samme dempende overlay */
  pointer-events: none;
  z-index: 1;
}

.theme-banner .container {
  position: relative;
  z-index: 2;
}

/* Modern gradient backgrounds for different banner types */
.bg-warning {
  background: linear-gradient(
    135deg,
    #f59e0b 0%,
    #f97316 50%,
    #fbbf24 100%
  ) !important;
  position: relative;
}

.bg-primary {
  background: linear-gradient(
    135deg,
    #3b82f6 0%,
    #6366f1 50%,
    #8b5cf6 100%
  ) !important;
  position: relative;
}

.bg-success {
  background: linear-gradient(
    135deg,
    #10b981 0%,
    #059669 50%,
    #34d399 100%
  ) !important;
  position: relative;
}

.bg-danger {
  background: linear-gradient(
    135deg,
    #ef4444 0%,
    #dc2626 50%,
    #f87171 100%
  ) !important;
  position: relative;
}

.bg-info {
  background: linear-gradient(
    135deg,
    #06b6d4 0%,
    #0891b2 50%,
    #67e8f9 100%
  ) !important;
  position: relative;
}

/* Subtle pattern overlay for texture and color dampening */
.theme-banner .swiper-slide > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.15) 0%, /* Økt fra 0.1 til 0.15 for mer dempning */
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.15) 0%, /* Økt fra 0.1 til 0.15 */
      transparent 50%
    );
  pointer-events: none;
}

/* Enhanced banner content styling */
.banner-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0; /* Redusert fra 2rem */
  min-height: 75px; /* Redusert fra 90px */
  display: flex;
  align-items: center;
}

/* Banner content wrapper - gir innholdet mindre bredde så navknappene ikke overlapper */
.banner-content-wrapper {
  margin: 0 80px; /* Plass til navknappene på sidene */
}

/* Responsive adjustments for banner content wrapper */
@media (max-width: 992px) {
  .banner-content-wrapper {
    margin: 0 60px; /* Mindre margin på tablets */
  }
}

@media (max-width: 576px) {
  .banner-content-wrapper {
    margin: 0 20px; /* Minimal margin på mobil */
  }
}

.banner-icon {
  font-size: 1.75rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-right: 1rem;
  z-index: 5;
  position: relative;
}

.banner-text {
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.banner-cta {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.banner-cta:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Navigation arrows - better positioning and z-index */
.banner-nav-prev,
.banner-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.banner-nav-prev:hover,
.banner-nav-next:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  color: #1f2937;
}

.banner-nav-prev {
  left: 20px;
}

.banner-nav-next {
  right: 20px;
}

/* Pagination dots */
.banner-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.banner-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.banner-pagination .swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.4);
}

/* Animation keyframes */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-content {
  animation: fadeInUp 0.6s ease-out;
}

/* Enhanced focus states for accessibility */
.banner-nav-prev:focus,
.banner-nav-next:focus,
.swiper-pagination-bullet:focus {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

/* Loading state for banners */
.banner-loading {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .dynamic-banner-swiper .d-none.d-md-inline-block {
    display: none !important;
  }

  .banner-nav-prev,
  .banner-nav-next {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .banner-nav-prev {
    left: 15px;
  }

  .banner-nav-next {
    right: 15px;
  }

  .banner-content {
    padding: 1.5rem 0;
  }

  .banner-text {
    font-size: 1.05rem;
  }

  .banner-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
  }
}

/* Hide navigation on very small screens */
@media (max-width: 480px) {
  .banner-nav-prev,
  .banner-nav-next {
    display: none;
  }

  .banner-content {
    padding: 1.25rem 0;
  }
}

/* Smooth animations */
.theme-banner * {
  transition: all 0.3s ease;
}
/* ===== END DYNAMIC BANNER SYSTEM ===== */

/* ===== BREADCRUMB HEADER BOX STYLING ===== */
/* Glassmorphism box that combines breadcrumbs, counter, mobile button and dropdown */
.breadcrumb-header-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(242, 156, 31, 0.5);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

/* Dark mode breadcrumb box - glassmorphism */
[data-bs-theme="dark"] .breadcrumb-header-box {
  background: rgba(30, 30, 35, 0.7);
  border: 2px solid rgba(242, 156, 31, 0.4);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.breadcrumb-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.breadcrumb-left-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  flex: 1;
}

.breadcrumb-right-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Breadcrumb styling inside the box */
.breadcrumb-header-box .breadcrumb {
  margin-bottom: 0;
  background: none;
  padding: 0;
}

.breadcrumb-header-box .breadcrumb-item > a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-header-box .breadcrumb-item > a:hover {
  color: #f29c1f;
}

.breadcrumb-header-box .breadcrumb-item.active {
  color: #f29c1f;
}

/* Results counter styling */
.results-counter {
  color: #6c757d;
  font-size: 0.9rem;
  white-space: nowrap;
}

.results-counter .fw-semibold {
  color: #f29c1f;
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
  .breadcrumb-header-box {
    padding: 0.875rem 1rem;
  }
  
  .breadcrumb-header-content {
    gap: 0.75rem;
  }
  
  .breadcrumb-left-section {
    gap: 0.75rem;
  }
  
  .breadcrumb-right-section {
    gap: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .breadcrumb-header-box {
    padding: 0.75rem;
  }
  
  .breadcrumb-header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .breadcrumb-left-section {
    justify-content: space-between;
    gap: 0.5rem;
  }
  
  .breadcrumb-right-section {
    justify-content: space-between;
    width: 100%;
  }
}

/* ===== CHOICES.JS STYLING ===== */
/* Add 1øre branding and mobile flexbox layout for Cartzilla's Choices.js */

/* Main container flexbox properties - critical for mobile layout */
.breadcrumb-header-box .choices {
  flex: 2 !important;
  min-width: 120px !important;
  width: auto !important;
}

.breadcrumb-header-box .choices__inner {
  border-color: #f7d27d;
  min-height: 38px !important;
}

.breadcrumb-header-box .choices.is-focused .choices__inner {
  border-color: var(--1ore-primary);
  box-shadow: 0 0 0 0.2rem rgba(242, 156, 31, 0.25);
}

.breadcrumb-header-box .choices__item--choice.is-highlighted {
  background-color: var(--1ore-light-bg);
  color: var(--1ore-primary);
}

/* Mobile specific sizing to match Bootstrap flex classes */
@media (max-width: 767.98px) {
  .breadcrumb-header-box .choices {
    flex: 2 !important;
    min-width: 120px !important;
    max-width: none !important;
  }
  
  /* Ensure the category button stays smaller */
  .breadcrumb-right-section .btn {
    flex: 1 !important;
    min-width: 0 !important;
  }
}

/* Desktop specific sizing for wider dropdown */
@media (min-width: 768px) {
  .breadcrumb-header-box .choices {
    flex: 1 !important;
    min-width: 200px !important;
    max-width: 300px !important;
  }
  
  /* Category button can be wider on desktop */
  .breadcrumb-right-section .btn {
    flex: 0 0 auto !important;
    min-width: 120px !important;
  }
}

/* ===== FORM-SELECT STYLING FOR BREADCRUMB HEADER ===== */
/* Enhanced styling for standard form-select dropdowns in the header box */
.breadcrumb-header-box .form-select.custom-header-select {
  min-width: 200px !important;
  /* Override Cartzilla defaults with 1øre styling */
  border: 1px solid #cad0d9 !important;
  border-radius: 0.5rem !important;
  background-color: var(--1ore-card-bg) !important;
  font-size: 0.875rem !important;
  color: var(--bs-body-color) !important;
  padding: 0.53rem 2.25rem 0.53rem 1rem !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
  
  /* Keep Cartzilla's dropdown arrow but make it orange */
  --cz-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f29c1f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-image: var(--cz-form-select-bg-img), var(--cz-form-select-bg-icon, none) !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 15px 11px !important;
}

.breadcrumb-header-box .form-select.custom-header-select:focus,
.breadcrumb-header-box .form-select.custom-header-select:hover {
  border-color: var(--1ore-primary) !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075), 0 0 0 0.2rem rgba(242, 156, 31, 0.25) !important;
  outline: 0 !important;
}

/* Dark mode form-select */
[data-bs-theme="dark"] .breadcrumb-header-box .form-select.custom-header-select {
  background-color: var(--cz-tertiary-bg) !important;
  border-color: var(--toast-border) !important;
}

/* Mobile responsiveness for form-select */
@media (max-width: 767.98px) {
  .breadcrumb-header-box .form-select.custom-header-select {
    min-width: 120px !important;
    flex: 1 !important;
  }
}

/* ===== DROPDOWN MENU STYLING ===== */
/* Style the actual dropdown options that appear when clicking */
.breadcrumb-header-box .form-select.custom-header-select option {
  background-color: var(--1ore-card-bg) !important;
  color: var(--bs-body-color) !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
  border: none !important;
  border-radius: 0 !important;
}

.breadcrumb-header-box .form-select.custom-header-select option:hover,
.breadcrumb-header-box .form-select.custom-header-select option:focus {
  background-color: var(--1ore-light-bg) !important;
  color: var(--1ore-primary) !important;
}

.breadcrumb-header-box .form-select.custom-header-select option:checked,
.breadcrumb-header-box .form-select.custom-header-select option:selected {
  background-color: var(--1ore-primary) !important;
  color: #fff !important;
  font-weight: 500 !important;
}

/* Alternative approach for better cross-browser dropdown styling */
@supports (-webkit-appearance: none) {
  .breadcrumb-header-box .form-select.custom-header-select {
    /* Enhanced dropdown appearance for WebKit browsers */
    background-color: var(--1ore-card-bg) !important;
  }
  
  .breadcrumb-header-box .form-select.custom-header-select:focus {
    background-color: var(--1ore-cream) !important;
  }
}

/* ===== END BREADCRUMB HEADER BOX STYLING ===== */

/* ===== NAVBAR FIXES ===== */
/* Fix navbar height to properly contain logo and add 1øre styling */
.navbar {
  min-height: 72px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(242, 156, 31, 0.1) !important;
}

/* Ensure navbar container inherits background properly */
.navbar .container {
  background: inherit;
  position: relative;
  z-index: 1;
}

/* Move logo up slightly to compensate for reduced navbar height */
.navbar-brand {
  margin-top: -0.25rem;
}

/* Fix navbar nav-link hover/focus states for dark mode */
.navbar .nav-link.rounded:hover,
.navbar .nav-link.rounded:focus {
  background-color: rgba(242, 156, 31, 0.1) !important; /* Brand color background */
  color: var(--cz-nav-link-hover-color) !important;
}

/* Dark mode specific navbar nav-link fixes */
[data-bs-theme="dark"] .navbar .nav-link.rounded:hover,
[data-bs-theme="dark"] .navbar .nav-link.rounded:focus {
  background-color: rgba(242, 156, 31, 0.15) !important; /* Slightly more visible in dark */
  color: #ffffff !important; /* White text for contrast */
}

/* Ensure dropdown toggles also follow the same pattern */
.navbar .nav-link.dropdown-toggle.rounded:hover,
.navbar .nav-link.dropdown-toggle.rounded:focus {
  background-color: rgba(242, 156, 31, 0.1) !important;
}

[data-bs-theme="dark"] .navbar .nav-link.dropdown-toggle.rounded:hover,
[data-bs-theme="dark"] .navbar .nav-link.dropdown-toggle.rounded:focus {
  background-color: rgba(242, 156, 31, 0.15) !important;
  color: #ffffff !important;
}

/* Ensure proper spacing after navbar */
.navbar + * {
  margin-top: 0 !important;
}

/* Add bottom border to navbar using brand color */
.navbar.sticky-top {
  border-bottom: var(--cz-border-width) solid #f29c1f;
}

/* ===== END NAVBAR FIXES ===== */

/* ===== SONNER-STYLE TOAST SYSTEM ===== */
/* Modern, minimal toast design with stacking, progress bar and animations */

/* Toast container - stacking support */
#toastContainer {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 1100 !important;
  width: 400px !important;
  max-width: calc(100vw - 2rem) !important;
  pointer-events: none;
}

/* Toast base styling - minimal Sonner-inspired design */
#toastContainer .toast {
  --toast-accent: var(--toast-accent-default);
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: auto;
  width: 100% !important;
  min-width: auto !important;
  max-width: none !important;
  border: 1px solid var(--toast-border) !important;
  border-left: 3px solid var(--toast-accent) !important;
  border-radius: 8px !important;
  box-shadow: var(--toast-shadow) !important;
  background-color: var(--toast-bg) !important;
  overflow: hidden;
  transition: transform 300ms ease, opacity 300ms ease, top 300ms ease;
}

/* Hidden state for 4+ toasts */
#toastContainer .toast.toast-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Toast type-specific accent colors */
.toast.success-toast {
  --toast-accent: var(--toast-accent-success);
}

.toast.error-toast {
  --toast-accent: var(--toast-accent-error);
}

.toast.warning-toast {
  --toast-accent: var(--toast-accent-warning);
}

.toast.info-toast {
  --toast-accent: var(--toast-accent-info);
}

/* Toast show state */
.toast.show {
  opacity: 1 !important;
  display: flex !important;
  flex-direction: column;
}

/* Toast header - minimal style (no colored background) */
.toast-header {
  background-color: transparent !important;
  color: var(--toast-text) !important;
  border-bottom: none !important;
  padding: 12px 14px 0 14px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toast header icon - colored by type */
.toast-header i {
  color: var(--toast-accent) !important;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Success icon green */
.success-toast .toast-header i {
  color: var(--toast-accent-success) !important;
}

/* Error icon red */
.error-toast .toast-header i {
  color: var(--toast-accent-error) !important;
}

/* Warning icon amber */
.warning-toast .toast-header i {
  color: var(--toast-accent-warning) !important;
}

.toast-header .fw-semibold {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--toast-text) !important;
  flex: 1;
}

.toast-header .text-body-secondary {
  color: var(--toast-text-secondary) !important;
  font-size: 0.7rem !important;
  margin-right: 4px;
}

/* Close button - visible with background */
.toast-header .btn-close {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  opacity: 0.5 !important;
  width: 1rem !important;
  height: 1rem !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'%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/0.5rem auto no-repeat !important;
  border-radius: 4px !important;
  border: none !important;
  cursor: pointer !important;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.toast-header .btn-close:hover {
  opacity: 1 !important;
  background-color: rgba(0, 0, 0, 0.06) !important;
}

[data-bs-theme="dark"] .toast-header .btn-close {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23999'%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") !important;
}

[data-bs-theme="dark"] .toast-header .btn-close:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Toast body */
.toast-body {
  padding: 4px 14px 12px 14px !important;
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
  background-color: transparent !important;
  color: var(--toast-text-secondary) !important;
}

/* Progress bar for auto-dismiss */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--toast-accent);
  border-radius: 0 0 0 6px;
  width: 100%;
  transform-origin: left;
  animation: toast-progress linear forwards;
}

/* Pause progress on hover */
.toast:hover .toast-progress {
  animation-play-state: paused;
}

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Entry animation */
.toast.toast-enter {
  animation: toast-slide-in 300ms ease-out forwards;
}

@keyframes toast-slide-in {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Exit animation (swipe) */
.toast.toast-exit {
  animation: toast-slide-out 200ms ease-in forwards;
}

@keyframes toast-slide-out {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Swipe feedback */
.toast.swiping {
  transition: none !important;
}

/* Mobile responsive */
@media (max-width: 576px) {
  #toastContainer {
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    transform: none !important;
    max-width: none !important;
  }
  
  #toastContainer .toast {
    min-width: auto !important;
    width: 100% !important;
  }
  
  /* Compact padding on mobile */
  .toast-header {
    padding: 10px 12px 0 12px !important;
  }
  
  .toast-header .fw-semibold {
    font-size: 0.875rem !important;
  }
  
  .toast-body {
    padding: 6px 12px 10px 12px !important;
    font-size: 0.8125rem !important;
  }
  
  /* Larger touch target for close button on mobile */
  .toast-header .btn-close {
    width: 0.75rem !important;
    height: 0.75rem !important;
    padding: 0.65rem !important;
  }
}

/* ===== ACTION TOAST BACKDROP & CENTERING ===== */
/* Shared styles for confirmToast and inputToast */
.action-toast-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(2px);
}

.action-toast-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.action-toast-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1091;
  pointer-events: none;
  padding: 1rem;
}

.action-toast-wrapper .toast {
  pointer-events: auto;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

/* ===== CONFIRM TOAST - Larger, more prominent ===== */
#confirmToastContainer {
  --toast-accent: var(--1ore-primary);
  width: 400px !important;
  max-width: calc(100vw - 2rem) !important;
  border: 1px solid var(--toast-border) !important;
  border-left: 3px solid var(--toast-accent) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
  background-color: var(--toast-bg) !important;
}

#confirmToastContainer .toast-header {
  background-color: transparent !important;
  color: var(--toast-text) !important;
  padding: 12px 14px 0 14px !important;
  border-bottom: none !important;
}

#confirmToastContainer .toast-header i {
  color: var(--toast-accent) !important;
  font-size: 1rem;
}

#confirmToastContainer .toast-header .fw-semibold {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}

#confirmToastContainer .toast-body {
  padding: 4px 14px 8px 14px !important;
  font-size: 0.8125rem !important;
  color: var(--toast-text-secondary) !important;
}

/* Confirm toast action buttons */
#confirmToastContainer .d-flex {
  padding: 8px 14px 14px 14px !important;
  gap: 8px;
}

#confirmToastContainer .btn-primary {
  background-color: var(--1ore-primary) !important;
  border-color: var(--1ore-primary) !important;
  min-height: 36px;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  border-radius: 6px;
}

#confirmToastContainer .btn-primary:hover {
  background-color: var(--1ore-primary-hover) !important;
  border-color: var(--1ore-primary-hover) !important;
}

/* Mobile responsive for confirm toast */
@media (max-width: 576px) {
  /* Override the parent wrapper positioning */
  .toast-container:has(#confirmToastContainer) {
    inset: 20px 16px auto 16px !important;
    transform: none !important;
    width: auto !important;
    padding: 0 !important;
  }
  
  /* Target the toast itself */
  #confirmToastContainer {
    width: 100% !important;
    max-width: none !important;
    min-width: unset !important;
    margin: 0 !important;
  }
}

#confirmToastContainer .btn-secondary {
  background-color: transparent !important;
  border: 1px solid var(--toast-border) !important;
  color: var(--toast-text-secondary) !important;
  min-height: 38px;
  padding: 0.5rem 1.25rem;
}

#confirmToastContainer .btn-secondary:hover {
  background-color: var(--1ore-light-bg) !important;
  color: var(--toast-text) !important;
}

/* Mobile confirm toast */
@media (max-width: 480px) {
  #confirmToastContainer {
    min-width: auto !important;
    max-width: none !important;
  }
  
  #confirmToastContainer .d-flex .btn {
    flex: 1;
    min-height: 44px;
  }
}

/* ===== INPUT TOAST STYLING ===== */
/* Matches confirmToast styling with input field */
#inputToastContainer {
  min-width: 320px;
  max-width: 400px;
  background-color: var(--toast-bg) !important;
  border: 1px solid var(--toast-border) !important;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

#inputToastContainer .toast-header {
  background-color: transparent;
  border-bottom: 1px solid var(--toast-border);
  padding: 0.75rem 1rem;
}

#inputToastContainer .toast-header i {
  color: var(--1ore-primary);
}

#inputToastContainer .toast-header .fw-semibold {
  color: var(--toast-text);
}

#inputToastContainer .toast-body {
  padding: 0.75rem 1rem 0.5rem;
  color: var(--toast-text);
}

#inputToastContainer .toast-body .form-control {
  background-color: var(--bs-body-bg);
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
}

#inputToastContainer .toast-body .form-control:focus {
  border-color: var(--1ore-primary);
  box-shadow: 0 0 0 0.2rem rgba(242, 156, 31, 0.25);
}

#inputToastContainer .d-flex {
  padding: 0 1rem 0.75rem;
  gap: 0.5rem;
}

#inputToastContainer .btn-primary {
  background-color: var(--1ore-primary) !important;
  border-color: var(--1ore-primary) !important;
  color: #fff !important;
  flex: 1;
  min-height: 38px;
  padding: 0.5rem 1.25rem;
}

#inputToastContainer .btn-primary:hover {
  background-color: var(--1ore-primary-hover) !important;
  border-color: var(--1ore-primary-hover) !important;
}

#inputToastContainer .btn-secondary {
  background-color: transparent !important;
  border: 1px solid var(--toast-border) !important;
  color: var(--toast-text-secondary) !important;
  min-height: 38px;
  padding: 0.5rem 1.25rem;
}

#inputToastContainer .btn-secondary:hover {
  background-color: var(--1ore-light-bg) !important;
  color: var(--toast-text) !important;
}

/* Mobile input toast */
@media (max-width: 480px) {
  #inputToastContainer {
    min-width: auto !important;
    max-width: none !important;
  }
  
  #inputToastContainer .d-flex .btn {
    flex: 1;
    min-height: 44px;
  }
}
/* ===== END INPUT TOAST STYLING ===== */

/* ===== END SONNER-STYLE TOAST SYSTEM ===== */

/* ===== PHOTOSWIPE BRAND CUSTOMIZATION ===== */

/* PhotoSwipe Button Styling - Brand Colors */
.pswp__button {
  background-color: rgba(242, 156, 31, 0.3) !important; /* Increased opacity for better contrast */
  border: 2px solid #f29c1f !important; /* Brand border */
  border-radius: 8px !important; /* Rounded corners */
  color: #f29c1f !important; /* Brand color for icons */
  transition: all 0.3s ease !important;
  backdrop-filter: blur(2px) !important; /* Add blur for better separation */
}

.pswp__button:hover {
  background-color: rgba(242, 156, 31, 0.5) !important; /* More opaque on hover */
  border-color: #d4831a !important; /* Darker border on hover */
  color: #d4831a !important;
  transform: scale(1.05) !important; /* Slight scale on hover */
}

.pswp__button:active {
  background-color: rgba(242, 156, 31, 0.6) !important; /* Even more opaque when pressed */
  transform: scale(0.95) !important; /* Press effect */
}

/* Close Button (X) */
.pswp__button--close {
  background-color: rgba(242, 156, 31, 0.4) !important; /* More visible for important close button */
  border: 2px solid #f29c1f !important;
}

/* Zoom In/Out Buttons */
.pswp__button--zoom,
.pswp__button--zoom-out {
  background-color: rgba(242, 156, 31, 0.3) !important;
  border: 2px solid #f29c1f !important;
}

/* Arrow Navigation Buttons */
.pswp__button--arrow {
  background-color: rgba(242, 156, 31, 0.3) !important;
  border: 2px solid #f29c1f !important;
  width: 50px !important; /* Make arrows bigger */
  height: 50px !important;
}

.pswp__button--arrow--left,
.pswp__button--arrow--right {
  background-color: rgba(242, 156, 31, 0.3) !important;
  border: 2px solid #f29c1f !important;
}

/* Counter Text (e.g., "1 of 5") */
.pswp__counter {
  background-color: rgba(242, 156, 31, 0.4) !important; /* More opaque for readability */
  border: 2px solid #f29c1f !important;
  border-radius: 20px !important;
  color: #f29c1f !important;
  font-weight: bold !important;
  padding: 4px 12px !important;
  font-size: 14px !important;
  backdrop-filter: blur(2px) !important; /* Add blur for text readability */
}

/* Loading indicator */
.pswp__preloader {
  color: #f29c1f !important;
}

/* Make buttons more visible on mobile */
@media (max-width: 768px) {
  .pswp__button {
    background-color: rgba(242, 156, 31, 0.4) !important; /* Even more visible on mobile */
    border-width: 3px !important; /* Thicker border */
    min-width: 44px !important; /* Touch-friendly size */
    min-height: 44px !important;
  }
  
  .pswp__button--arrow {
    width: 55px !important;
    height: 55px !important;
  }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .pswp__button {
  background-color: rgba(242, 156, 31, 0.4) !important; /* More opaque in dark mode */
  border-color: #f29c1f !important;
  color: #f29c1f !important;
}

[data-bs-theme="dark"] .pswp__counter {
  background-color: rgba(242, 156, 31, 0.5) !important; /* More opaque for dark mode readability */
  color: #f29c1f !important;
}

/* ===== END PHOTOSWIPE CUSTOMIZATION ===== */

/* ===== PRODUCT PAGE DESCRIPTION FADE FIX ===== */

/* Fix description fade gradient for dark/light theme compatibility */
#descriptionFade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5em;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--cz-body-bg)) !important;
}

/* Product description toggle button styling */
#viewProductDescriptionToggle {
  text-decoration: none !important;
}

#viewProductDescriptionToggle:hover {
  text-decoration: underline !important;
}

/* Ensure proper fade in both themes */
[data-bs-theme="light"] #descriptionFade {
  background: linear-gradient(to bottom, transparent, var(--cz-body-bg, #fff)) !important;
}

[data-bs-theme="dark"] #descriptionFade {
  background: linear-gradient(to bottom, transparent, var(--cz-tertiary-bg, #222934)) !important;
}

/* ===== END PRODUCT PAGE FIXES ===== */

/* ===== MYPAGES NAVIGATION CARDS - GLASSMORPHISM REDESIGN ===== */

/* Navigation cards container */
.mypages-segmented-nav {
  margin-bottom: 1rem;
}

.mypages-segmented-nav .segmented-control {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Navigation card buttons - premium glassmorphism (matching auth-card) */
.nav-card-btn,
.mypages-segmented-nav .segment-item {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  background: rgba(20, 20, 30, 0.85) !important;
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.12) !important;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 80px;
  flex: 1;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 4px 16px -4px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(242, 156, 31, 0.03);
}

/* Top glow line on nav buttons */
.nav-card-btn::before,
.mypages-segmented-nav .segment-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.4) 20%, 
    rgba(247, 210, 125, 0.6) 50%, 
    rgba(242, 156, 31, 0.4) 80%, 
    transparent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-card-btn:hover::before,
.mypages-segmented-nav .segment-item:hover::before,
.nav-card-btn.active::before,
.mypages-segmented-nav .segment-item.active::before {
  opacity: 1;
}

.nav-card-btn i {
  font-size: 1.25rem !important;
}

.nav-card-btn .h6 {
  font-size: 0.75rem !important;
  margin-bottom: 0 !important;
}

.nav-card-btn:hover,
.mypages-segmented-nav .segment-item:hover {
  transform: translateY(-4px);
  background: rgba(242, 156, 31, 0.12) !important;
  border-color: rgba(242, 156, 31, 0.4) !important;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 12px 32px -8px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(242, 156, 31, 0.1);
}

.nav-card-btn.active,
.mypages-segmented-nav .segment-item.active {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.2) 0%, rgba(242, 156, 31, 0.1) 100%) !important;
  border: 1px solid rgba(242, 156, 31, 0.5) !important;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 8px 28px -4px rgba(242, 156, 31, 0.35),
    0 0 60px rgba(242, 156, 31, 0.15);
}

.nav-card-btn.active i,
.nav-card-btn.active .h6,
.nav-card-btn.active .fs-xs,
.mypages-segmented-nav .segment-item.active i,
.mypages-segmented-nav .segment-item.active .segment-label {
  color: var(--1ore-primary) !important;
}

.nav-card-btn:not(.active) i,
.nav-card-btn:not(.active) .h6,
.nav-card-btn:not(.active) .fs-xs,
.mypages-segmented-nav .segment-item:not(.active) i,
.mypages-segmented-nav .segment-item:not(.active) .segment-label {
  color: rgba(255, 255, 255, 0.7) !important;
}

.mypages-segmented-nav .segment-item i {
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.mypages-segmented-nav .segment-label {
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-active-indicator {
  display: none; /* Fjernet for å spare plass - aktiv tilstand vises med border og bakgrunn */
}

.nav-card-btn:not(.active) .nav-active-indicator,
.mypages-segmented-nav .segment-item:not(.active) .nav-active-indicator {
  opacity: 0;
}

/* Content sections */
.content-section {
  animation: fadeIn 0.3s ease;
}

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

/* Light mode navigation cards */
[data-bs-theme="light"] .nav-card-btn,
[data-bs-theme="light"] .mypages-segmented-nav .segment-item {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(242, 156, 31, 0.15) !important;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 4px 16px -4px rgba(0, 0, 0, 0.08),
    0 0 30px rgba(242, 156, 31, 0.04);
}

[data-bs-theme="light"] .nav-card-btn:hover,
[data-bs-theme="light"] .mypages-segmented-nav .segment-item:hover {
  background: rgba(242, 156, 31, 0.08) !important;
  border-color: rgba(242, 156, 31, 0.4) !important;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 12px 32px -8px rgba(0, 0, 0, 0.12),
    0 0 50px rgba(242, 156, 31, 0.08);
}

[data-bs-theme="light"] .nav-card-btn.active,
[data-bs-theme="light"] .mypages-segmented-nav .segment-item.active {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.15) 0%, rgba(242, 156, 31, 0.06) 100%) !important;
  border-color: rgba(242, 156, 31, 0.5) !important;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 8px 28px -4px rgba(242, 156, 31, 0.2),
    0 0 60px rgba(242, 156, 31, 0.1);
}

[data-bs-theme="light"] .nav-card-btn:not(.active) i,
[data-bs-theme="light"] .nav-card-btn:not(.active) .h6,
[data-bs-theme="light"] .nav-card-btn:not(.active) .fs-xs,
[data-bs-theme="light"] .mypages-segmented-nav .segment-item:not(.active) i,
[data-bs-theme="light"] .mypages-segmented-nav .segment-item:not(.active) .segment-label {
  color: rgba(0, 0, 0, 0.6) !important;
}

/* ===== END MYPAGES NAVIGATION CARDS ===== */

/* ===== MYPAGES CARDS GLASSMORPHISM ===== */

/* Main content cards in mypages - premium glassmorphism */
.mypages-card,
#myPagesSettingsCard,
.content-section > .card {
  background: rgba(20, 20, 30, 0.85) !important;
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15) !important;
  border-radius: 24px !important;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.06);
}

/* Top glow line for mypages cards */
.mypages-card::before,
#myPagesSettingsCard::before,
.content-section > .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.5) 20%, 
    rgba(247, 210, 125, 0.7) 50%, 
    rgba(242, 156, 31, 0.5) 80%, 
    transparent);
  border-radius: 2px;
  z-index: 1;
}

.mypages-card .card-header,
#myPagesSettingsCard .card-header,
.content-section > .card > .card-header {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.12) 0%, rgba(242, 156, 31, 0.03) 100%) !important;
  border-bottom: 1px solid rgba(242, 156, 31, 0.2) !important;
  padding: 0.75rem 1.25rem;
}

.mypages-card .card-header h4,
.mypages-card .card-header h5,
.mypages-card .card-header h6,
#myPagesSettingsCard .card-header h4 {
  background: linear-gradient(135deg, #f29c1f 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0;
}

.mypages-card .card-body,
#myPagesSettingsCard .card-body {
  padding: 0.75rem 1rem;
  height: auto !important;
  min-height: auto !important;
  flex-grow: 0 !important;
}

/* Light mode cards */
[data-bs-theme="light"] .mypages-card,
[data-bs-theme="light"] #myPagesSettingsCard,
[data-bs-theme="light"] .content-section > .card {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(242, 156, 31, 0.2) !important;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.1),
    0 0 50px rgba(242, 156, 31, 0.06);
}

[data-bs-theme="light"] .mypages-card .card-header,
[data-bs-theme="light"] #myPagesSettingsCard .card-header,
[data-bs-theme="light"] .content-section > .card > .card-header {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.1) 0%, rgba(242, 156, 31, 0.03) 100%) !important;
  border-bottom: 1px solid rgba(242, 156, 31, 0.18) !important;
}

/* Kompakt form layout i mypages */
#myPagesSettingsCard .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

#myPagesSettingsCard .form-control {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
}

#myPagesSettingsCard .row.mb-3 {
  margin-bottom: 0.5rem !important;
}

#myPagesSettingsCard .mb-3 {
  margin-bottom: 0.5rem !important;
}

#myPagesSettingsCard .nav-pills {
  gap: 0.25rem;
}

#myPagesSettingsCard .nav-pills .nav-link {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* ===== ECONOMY KPI CARDS ===== */

/* Economy dashboard header with period filter */
.economy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.economy-header h4 {
  margin: 0;
  background: linear-gradient(135deg, #f29c1f 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Period filter button group */
.economy-period-filter {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.economy-period-filter .btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.economy-period-filter .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.economy-period-filter .btn.active {
  background: linear-gradient(135deg, #f29c1f 0%, #e08913 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(242, 156, 31, 0.3);
}

/* Light mode period filter */
[data-bs-theme="light"] .economy-period-filter {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .economy-period-filter .btn {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .economy-period-filter .btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.8);
}

/* Economy KPI cards row */
.economy-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
  .economy-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .economy-kpi-row {
    grid-template-columns: 1fr;
  }
  
  .economy-header {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== SETTINGS PAGE REDESIGN (2026-01-24) ===== */

.settings-main-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.06);
  /* Entry animation */
  opacity: 0;
  transform: translateY(20px);
  animation: settingsFadeInUp 0.5s ease-out forwards;
}

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

/* Top glow line */
.settings-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.5) 20%, 
    rgba(247, 210, 125, 0.7) 50%, 
    rgba(242, 156, 31, 0.5) 80%, 
    transparent);
  border-radius: 2px;
}

/* Settings Header */
.settings-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Welcome-style header with avatar on right */
.settings-header-welcome {
  justify-content: space-between;
}

.settings-header-welcome .settings-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-header-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 
    0 4px 12px rgba(99, 102, 241, 0.3),
    0 0 0 3px rgba(99, 102, 241, 0.1);
}

.settings-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.2), rgba(247, 210, 125, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #f7d27d;
  flex-shrink: 0;
}

.settings-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bs-body-color);
}

.settings-subtitle {
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
  margin-top: 0.15rem;
}

/* Settings Segmented Control */
.settings-segmented-control {
  display: flex;
  gap: 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.settings-segment {
  flex: 1;
  min-width: max-content;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.settings-segment i {
  font-size: 0.9rem;
}

.settings-segment:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.settings-segment.active {
  background: linear-gradient(135deg, #f29c1f 0%, #e08913 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(242, 156, 31, 0.3);
}

/* Settings Content Area */
.settings-content {
  opacity: 0;
  animation: settingsFadeInUp 0.4s ease-out 0.2s forwards;
}

.settings-content .tab-pane {
  padding: 0.5rem 0;
}

/* Form styling inside settings */
.settings-content .form-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--bs-body-color);
  margin-bottom: 0.4rem;
}

.settings-content .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--bs-body-color);
  padding: 0.6rem 0.9rem;
  transition: all 0.2s ease;
}

.settings-content .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(242, 156, 31, 0.5);
  box-shadow: 0 0 0 3px rgba(242, 156, 31, 0.1);
}

.settings-content .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.settings-content .form-text {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
}

.settings-content .form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.settings-content .form-check-input:checked {
  background-color: #f29c1f;
  border-color: #f29c1f;
}

/* Alerts inside settings */
.settings-content .alert {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-content .alert-light {
  background: rgba(255, 255, 255, 0.05);
}

.settings-content .alert-info {
  background: rgba(13, 202, 240, 0.1);
  border-color: rgba(13, 202, 240, 0.2);
}

/* ===== PROFILE WELCOME CARD ===== */
.profile-welcome-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(99, 102, 241, 0.06);
  opacity: 0;
  transform: translateY(20px);
  animation: profileFadeInUp 0.5s ease-out forwards;
}

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

.profile-welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(99, 102, 241, 0.5) 20%, 
    rgba(165, 180, 252, 0.7) 50%, 
    rgba(99, 102, 241, 0.5) 80%, 
    transparent);
  border-radius: 2px;
}

.profile-welcome-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.profile-welcome-text {
  flex: 1;
}

.profile-welcome-greeting {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-welcome-status {
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
}

.profile-welcome-avatar {
  flex-shrink: 0;
}

.profile-welcome-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  box-shadow: 
    0 4px 12px rgba(99, 102, 241, 0.3),
    0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Light mode */
[data-bs-theme="light"] .profile-welcome-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 
    0 0 0 1px rgba(99, 102, 241, 0.1) inset,
    0 8px 24px -8px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 575.98px) {
  .profile-welcome-card {
    padding: 1rem 1.25rem;
  }
  
  .profile-welcome-greeting {
    font-size: 1.1rem;
  }
  
  .profile-welcome-initials {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}

/* ===== PROFILE HERO CARD ===== */
.settings-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.08), rgba(247, 210, 125, 0.05));
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.settings-profile-hero-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.settings-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--1ore-primary), var(--1ore-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  box-shadow: 
    0 4px 12px rgba(242, 156, 31, 0.3),
    0 0 0 3px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.settings-profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-profile-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--cz-heading-color, #fff);
}

.settings-profile-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.settings-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--cz-secondary-color, rgba(255, 255, 255, 0.6));
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.settings-profile-badge.verified {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.settings-profile-badge i {
  font-size: 0.7rem;
}

.settings-profile-stats {
  display: flex;
  gap: 1.5rem;
}

.settings-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.settings-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--1ore-primary);
  line-height: 1.2;
}

.settings-stat-label {
  font-size: 0.7rem;
  color: var(--cz-secondary-color, rgba(255, 255, 255, 0.5));
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Profile Completion Card */
.settings-completion-card {
  background: rgba(242, 156, 31, 0.05);
  border: 1px dashed rgba(242, 156, 31, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.settings-completion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.settings-completion-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--1ore-primary);
}

.settings-completion-hint {
  font-size: 0.75rem;
  color: var(--cz-secondary-color, rgba(255, 255, 255, 0.5));
}

.settings-completion-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.settings-completion-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--1ore-primary), var(--1ore-gold));
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ===== INTL-TEL-INPUT STYLING ===== */
.iti {
  width: 100%;
}

.iti__country-list {
  max-height: 250px;
  background: var(--bs-body-bg);
  border-color: var(--bs-border-color);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.iti__country {
  padding: 8px 12px;
}

.iti__country:hover {
  background: rgba(242, 156, 31, 0.1);
}

.iti__country.iti__highlight {
  background: rgba(242, 156, 31, 0.15);
}

.iti__selected-flag {
  border-radius: 6px 0 0 6px;
  background: rgba(255, 255, 255, 0.05);
}

.iti__selected-flag:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Dark mode specific */
[data-bs-theme="dark"] .iti__country-list {
  background: #1a1a2e;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .iti__country-name,
[data-bs-theme="dark"] .iti__dial-code {
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .iti__selected-dial-code {
  color: var(--bs-body-color);
}

/* Phone validation states */
#myPagesSettingsPhone.is-invalid {
  border-color: #dc3545;
}

#myPagesSettingsPhone.is-valid {
  border-color: #198754;
}

.phone-error {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Light mode */
[data-bs-theme="light"] .settings-profile-hero {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.1), rgba(247, 210, 125, 0.08));
}

[data-bs-theme="light"] .settings-profile-badge {
  background: rgba(0, 0, 0, 0.05);
  color: var(--cz-secondary-color, #6c757d);
}

[data-bs-theme="light"] .settings-completion-bar {
  background: rgba(0, 0, 0, 0.08);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .settings-profile-hero {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .settings-profile-hero-left {
    flex-direction: column;
  }
  
  .settings-profile-meta {
    justify-content: center;
  }
  
  .settings-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
  }
  
  .settings-completion-header {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
}

/* Light mode */
[data-bs-theme="light"] .settings-main-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(242, 156, 31, 0.2);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.12),
    0 0 50px rgba(242, 156, 31, 0.08);
}

[data-bs-theme="light"] .settings-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .settings-segmented-control {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .settings-segment {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .settings-segment:hover {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .settings-content .form-control {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .settings-content .form-control:focus {
  background: #fff;
  border-color: rgba(242, 156, 31, 0.5);
}

[data-bs-theme="light"] .settings-content .form-control::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .settings-content .form-check-input {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.18);
}

[data-bs-theme="light"] .settings-content .form-check-input:focus {
  border-color: rgba(242, 156, 31, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(242, 156, 31, 0.12);
}

[data-bs-theme="light"] .settings-content .alert-light {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Mobile responsive */
@media (max-width: 576px) {
  .settings-main-card {
    padding: 1rem;
    border-radius: 16px;
  }
  
  .settings-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  /* Hide header avatar on mobile - profile hero shows it instead */
  .settings-header-avatar {
    display: none;
  }
  
  .settings-header-welcome {
    flex-direction: column;
  }
  
  .settings-segment {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .settings-segment span {
    display: none;
  }
  
  .settings-segment i {
    margin: 0;
  }
}

/* ===== ADDRESS MODAL GLASSMORPHISM (2026-01-24) ===== */
.address-modal .modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.address-modal .modal-header {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.1), rgba(247, 210, 125, 0.1));
  border-bottom: 1px solid rgba(242, 156, 31, 0.2);
  padding: 1.25rem 1.5rem;
}

.address-modal .modal-header .modal-title {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cz-heading-color, #1a1a1a);
}

.address-modal .modal-header .btn-close {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  padding: 0.5rem;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.address-modal .modal-header .btn-close:hover {
  background: rgba(0, 0, 0, 0.1);
  opacity: 1;
  transform: scale(1.05);
}

.address-modal .modal-body {
  padding: 1.5rem;
}

/* Section headers */
.address-modal .address-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.address-modal .address-section-header h6 {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cz-heading-color, #1a1a1a);
}

.address-modal .address-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--1ore-primary), var(--1ore-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(242, 156, 31, 0.3);
}

/* Form styling */
.address-modal .form-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--cz-secondary-color, #6c757d);
  margin-bottom: 0.4rem;
}

.address-modal .form-control {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.address-modal .form-control:focus {
  border-color: var(--1ore-primary);
  box-shadow: 0 0 0 3px rgba(242, 156, 31, 0.15);
  background: white;
}

.address-modal .form-control::placeholder {
  color: var(--cz-tertiary-color, #adb5bd);
  font-size: 0.9rem;
}

/* Readonly city field - auto-filled */
.address-modal .form-control.city-readonly {
  background: rgba(242, 156, 31, 0.05);
  border-style: dashed;
  cursor: not-allowed;
  color: var(--cz-heading-color, #1a1a1a);
}

.address-modal .form-control.city-readonly:focus {
  box-shadow: none;
}

[data-bs-theme="dark"] .address-modal .form-control.city-readonly {
  background: rgba(242, 156, 31, 0.08);
  color: var(--cz-body-color, #e0e0e0);
}

.address-modal select.form-control {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: rgba(255, 255, 255, 0.8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Checkbox styling */
.address-modal .form-check-input {
  width: 1.25em;
  height: 1.25em;
  border: 2px solid var(--1ore-primary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.address-modal .form-check-input:checked {
  background-color: var(--1ore-primary);
  border-color: var(--1ore-primary);
}

.address-modal .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(242, 156, 31, 0.2);
}

.address-modal .form-check-label {
  cursor: pointer;
}

.address-modal .form-text {
  font-size: 0.8rem;
  color: var(--cz-tertiary-color, #6c757d);
  margin-top: 0.4rem;
}

/* Divider */
.address-modal hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 156, 31, 0.2), transparent);
  margin: 1.5rem 0;
}

/* Footer */
.address-modal .modal-footer {
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 1.5rem;
  gap: 0.75rem;
}

.address-modal .modal-footer .btn {
  border-radius: 12px;
  padding: 0.65rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.address-modal .modal-footer .btn-outline-secondary {
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--cz-secondary-color, #6c757d);
}

.address-modal .modal-footer .btn-outline-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--cz-heading-color, #1a1a1a);
}

.address-modal .modal-footer .btn-1ore {
  box-shadow: 0 4px 12px rgba(242, 156, 31, 0.3);
}

.address-modal .modal-footer .btn-1ore:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(242, 156, 31, 0.4);
}

/* Postnummer lookup spinner */
.address-modal .postal-lookup-spinner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--1ore-primary);
  display: none;
}

.address-modal .postal-lookup-spinner.active {
  display: block;
}

/* Dark mode */
[data-bs-theme="dark"] .address-modal .modal-content {
  background: rgba(30, 30, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .address-modal .modal-header {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.08), rgba(247, 210, 125, 0.05));
  border-bottom-color: rgba(242, 156, 31, 0.15);
}

[data-bs-theme="dark"] .address-modal .address-section-header {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .address-modal .form-control {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--cz-body-color, #e0e0e0);
}

[data-bs-theme="dark"] .address-modal .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--1ore-primary);
}

[data-bs-theme="dark"] .address-modal select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #1e1e23 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f29c1f' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  color: #e0e0e0;
}

[data-bs-theme="dark"] .address-modal select.form-control option {
  background-color: #1e1e23;
  color: #e0e0e0;
  padding: 0.5rem;
}

[data-bs-theme="dark"] .address-modal select.form-control option:hover,
[data-bs-theme="dark"] .address-modal select.form-control option:checked {
  background-color: var(--1ore-primary);
  color: white;
}

[data-bs-theme="dark"] .address-modal hr {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

[data-bs-theme="dark"] .address-modal .modal-footer {
  background: rgba(0, 0, 0, 0.2);
  border-top-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .address-modal .modal-footer .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--cz-secondary-color, #adb5bd);
}

[data-bs-theme="dark"] .address-modal .modal-footer .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Mobile */
@media (max-width: 576px) {
  .address-modal .modal-dialog {
    margin: 0.5rem;
  }
  
  .address-modal .modal-content {
    border-radius: 16px;
  }
  
  .address-modal .modal-body {
    padding: 1rem;
  }
  
  .address-modal .modal-footer {
    flex-direction: column;
  }
  
  .address-modal .modal-footer .btn {
    width: 100%;
  }
}

/* ===== ADDRESS AUTOCOMPLETE ===== */
.address-autocomplete-wrapper {
  position: relative;
}

.address-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 250px;
  overflow-y: auto;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: none;
}

.address-autocomplete-dropdown.active {
  display: block;
  animation: addressDropdownFade 0.15s ease-out;
}

@keyframes addressDropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.address-autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease;
}

.address-autocomplete-item:last-child {
  border-bottom: none;
}

.address-autocomplete-item:hover,
.address-autocomplete-item.selected {
  background: rgba(242, 156, 31, 0.1);
}

.address-autocomplete-item .address-main {
  font-weight: 500;
  color: var(--cz-heading-color, #1a1a1a);
  font-size: 0.95rem;
}

.address-autocomplete-item .address-sub {
  font-size: 0.8rem;
  color: var(--cz-secondary-color, #6c757d);
  margin-top: 2px;
}

.address-autocomplete-loading {
  padding: 1rem;
  text-align: center;
  color: var(--cz-secondary-color, #6c757d);
  font-size: 0.85rem;
}

.address-autocomplete-loading i {
  color: var(--1ore-primary);
  margin-right: 0.5rem;
}

.address-autocomplete-empty {
  padding: 1rem;
  text-align: center;
  color: var(--cz-secondary-color, #6c757d);
  font-size: 0.85rem;
}

/* Dark mode */
[data-bs-theme="dark"] .address-autocomplete-dropdown {
  background: #1e1e23;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .address-autocomplete-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .address-autocomplete-item:hover,
[data-bs-theme="dark"] .address-autocomplete-item.selected {
  background: rgba(242, 156, 31, 0.15);
}

[data-bs-theme="dark"] .address-autocomplete-item .address-main {
  color: #e0e0e0;
}

/* ===== ECONOMY WELCOME CARD ===== */
.economy-welcome-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.06);
  /* Entry animation */
  opacity: 0;
  transform: translateY(20px);
  animation: economyFadeInUp 0.5s ease-out forwards;
}

/* Staggered entry animations */
@keyframes economyFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.economy-progress-card {
  opacity: 0;
  transform: translateY(20px);
  animation: economyFadeInUp 0.5s ease-out forwards;
}

[data-stat="buyer_progress"] .economy-progress-card {
  animation-delay: 0.1s;
}

[data-stat="seller_progress"] .economy-progress-card {
  animation-delay: 0.15s;
}

.economy-transactions-panel {
  opacity: 0;
  transform: translateY(20px);
  animation: economyFadeInUp 0.5s ease-out forwards;
  animation-delay: 0.2s;
}

.economy-kpi-card {
  opacity: 0;
  transform: translateY(20px);
  animation: economyFadeInUp 0.5s ease-out forwards;
}

.col-lg-4 .economy-kpi-card:first-child {
  animation-delay: 0.25s;
}

.col-lg-4 .economy-kpi-card:last-child {
  animation-delay: 0.3s;
}

.economy-welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.5) 20%, 
    rgba(247, 210, 125, 0.7) 50%, 
    rgba(242, 156, 31, 0.5) 80%, 
    transparent);
  border-radius: 2px;
}

.economy-welcome-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.economy-welcome-greeting {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wave-emoji {
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60%, 100% { transform: rotate(0deg); }
}

.economy-welcome-status {
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
}

.economy-welcome-status strong {
  color: var(--bs-body-color);
}

.economy-welcome-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.economy-welcome-actions .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
}

/* Smart Prompt Section */
.economy-smart-prompt {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  /* Entry animation */
  opacity: 0;
  transform: translateY(10px);
  animation: economyFadeInUp 0.4s ease-out forwards;
  animation-delay: 0.3s;
}

.economy-prompt-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.2), rgba(247, 210, 125, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7d27d;
  font-size: 1rem;
  flex-shrink: 0;
  /* Glow pulse animation */
  animation: promptGlow 2s ease-in-out infinite;
}

@keyframes promptGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(242, 156, 31, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(242, 156, 31, 0.3);
  }
}

.economy-prompt-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.economy-prompt-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(247, 210, 125, 0.8);
  font-weight: 600;
}

.economy-prompt-text {
  font-size: 0.85rem;
  color: var(--bs-body-color);
}

.economy-prompt-action {
  flex-shrink: 0;
  font-weight: 600;
  text-decoration: none;
}

/* Light theme adjustments */
[data-bs-theme="light"] .economy-welcome-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(242, 156, 31, 0.2);
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.03) inset,
    0 8px 24px -8px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(242, 156, 31, 0.08);
}

[data-bs-theme="light"] .economy-smart-prompt {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* Mobile responsive */
@media (max-width: 576px) {
  .economy-welcome-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .economy-welcome-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .economy-smart-prompt {
    flex-wrap: wrap;
  }
  
  .economy-prompt-action {
    width: 100%;
    text-align: center;
  }
}

/* Individual KPI card - premium glassmorphism (matching auth-card) */
.economy-kpi-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 20px;
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 24px -8px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(242, 156, 31, 0.05);
}

/* Top glow line */
.economy-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.4) 20%, 
    rgba(247, 210, 125, 0.6) 50%, 
    rgba(242, 156, 31, 0.4) 80%, 
    transparent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.economy-kpi-card:hover::before {
  opacity: 1;
}

.economy-kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 156, 31, 0.35);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 16px 40px -8px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.12);
}

.economy-kpi-card .kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.economy-kpi-card .kpi-icon.kpi-balance {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.2) 0%, rgba(242, 156, 31, 0.1) 100%);
  color: #f29c1f;
}

.economy-kpi-card .kpi-icon.kpi-bought {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.2) 0%, rgba(25, 135, 84, 0.1) 100%);
  color: #198754;
}

.economy-kpi-card .kpi-icon.kpi-sold {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(13, 110, 253, 0.1) 100%);
  color: #0d6efd;
}

.economy-kpi-card .kpi-icon.kpi-pending {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
  color: #ffc107;
}

.economy-kpi-card .kpi-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}

.economy-kpi-card .kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.economy-kpi-card .kpi-change {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.economy-kpi-card .kpi-change.positive {
  color: #198754;
}

.economy-kpi-card .kpi-change.negative {
  color: #dc3545;
}

/* Light mode KPI cards */
[data-bs-theme="light"] .economy-kpi-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(242, 156, 31, 0.2);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 8px 24px -8px rgba(0, 0, 0, 0.1),
    0 0 40px rgba(242, 156, 31, 0.06);
}

[data-bs-theme="light"] .economy-kpi-card:hover {
  border-color: rgba(242, 156, 31, 0.4);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 16px 40px -8px rgba(0, 0, 0, 0.15),
    0 0 60px rgba(242, 156, 31, 0.1);
}

[data-bs-theme="light"] .economy-kpi-card .kpi-label {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .economy-kpi-card .kpi-value {
  color: #212529;
}

/* ===== ECONOMY TRANSACTIONS PANEL ===== */

.economy-transactions-panel {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 20px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.06);
}

/* Top glow line for transactions panel */
.economy-transactions-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.5) 20%, 
    rgba(247, 210, 125, 0.7) 50%, 
    rgba(242, 156, 31, 0.5) 80%, 
    transparent);
  border-radius: 2px;
}

.economy-transactions-scroll {
  flex: 1;
  margin-top: 0.5rem;
  padding-right: 0.25rem;
}

/* Custom scrollbar */
.economy-transactions-scroll::-webkit-scrollbar {
  width: 6px;
}

.economy-transactions-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.economy-transactions-scroll::-webkit-scrollbar-thumb {
  background: rgba(242, 156, 31, 0.4);
  border-radius: 3px;
}

.economy-transactions-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(242, 156, 31, 0.6);
}

/* Light mode */
[data-bs-theme="light"] .economy-transactions-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(242, 156, 31, 0.2);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.12),
    0 0 50px rgba(242, 156, 31, 0.08);
}

[data-bs-theme="light"] .economy-transactions-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .economy-transactions-scroll::-webkit-scrollbar-thumb {
  background: rgba(242, 156, 31, 0.5);
}

/* ===== ECONOMY SEGMENTED CONTROL (iOS-style) ===== */

.economy-segmented-control {
  display: flex;
  gap: 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.economy-segment {
  flex: 1;
  min-width: max-content;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.economy-segment:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.economy-segment.active {
  background: linear-gradient(135deg, #f29c1f 0%, #e08913 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(242, 156, 31, 0.3);
}

.economy-segment-alt.active {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* Light mode */
[data-bs-theme="light"] .economy-segmented-control {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .economy-segment {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .economy-segment:hover {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.8);
}

/* ===== ECONOMY TRANSACTION CARDS ===== */

.economy-transactions-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Transaction card animation */
.economy-transaction-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(20, 20, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  /* Staggered entry animation - applied via JS */
  opacity: 0;
  animation: economySlideIn 0.3s ease-out forwards;
}

@keyframes economySlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stagger delays for transaction cards (applied dynamically or first 10) */
.economy-transaction-card:nth-child(1) { animation-delay: 0.05s; }
.economy-transaction-card:nth-child(2) { animation-delay: 0.1s; }
.economy-transaction-card:nth-child(3) { animation-delay: 0.15s; }
.economy-transaction-card:nth-child(4) { animation-delay: 0.2s; }
.economy-transaction-card:nth-child(5) { animation-delay: 0.25s; }
.economy-transaction-card:nth-child(6) { animation-delay: 0.3s; }
.economy-transaction-card:nth-child(7) { animation-delay: 0.35s; }
.economy-transaction-card:nth-child(8) { animation-delay: 0.4s; }
.economy-transaction-card:nth-child(9) { animation-delay: 0.45s; }
.economy-transaction-card:nth-child(10) { animation-delay: 0.5s; }

/* Filter transition - smooth container fade */
.economy-transactions-container.filtering {
  opacity: 0.5;
  transform: scale(0.98);
  transition: all 0.2s ease;
}

.economy-transactions-container.filtered {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
}

/* Invoice cards animation */
.economy-invoice-card {
  opacity: 0;
  transform: translateX(-10px);
  animation: economySlideIn 0.3s ease-out forwards;
}

.economy-invoice-card:nth-child(1) { animation-delay: 0.05s; }
.economy-invoice-card:nth-child(2) { animation-delay: 0.1s; }
.economy-invoice-card:nth-child(3) { animation-delay: 0.15s; }
.economy-invoice-card:nth-child(4) { animation-delay: 0.2s; }
.economy-invoice-card:nth-child(5) { animation-delay: 0.25s; }

.economy-transaction-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.economy-transaction-card.transaction-purchase:hover {
  background: rgba(13, 110, 253, 0.08);
}

.economy-transaction-card.transaction-payout:hover {
  background: rgba(25, 135, 84, 0.08);
}

.economy-transaction-card.transaction-purchase {
  border-left: 3px solid #0d6efd;
}

.economy-transaction-card.transaction-payout {
  border-left: 3px solid #198754;
}

/* Transaction left side (matches invoice layout) */
.economy-transaction-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.economy-transaction-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.15);
  color: #0d6efd;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.economy-transaction-card.transaction-payout .economy-transaction-icon {
  background: rgba(25, 135, 84, 0.15);
  color: #198754;
}

.economy-transaction-icon.paid {
  background: rgba(25, 135, 84, 0.15);
  color: #198754;
}

.economy-transaction-icon.overdue {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

.economy-transaction-info {
  min-width: 0;
}

/* Transaction title */
.economy-transaction-title {
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.economy-transaction-title a {
  color: inherit;
  text-decoration: none;
}

.economy-transaction-title a:hover {
  color: #f29c1f;
}

.economy-transaction-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.15rem;
}

/* Transaction right side */
.economy-transaction-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.economy-transaction-amount {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
}

.economy-transaction-action .btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

/* Light mode */
[data-bs-theme="light"] .economy-transaction-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .economy-transaction-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 1);
}

[data-bs-theme="light"] .economy-transaction-title {
  color: #212529;
}

[data-bs-theme="light"] .economy-transaction-meta {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .economy-transaction-amount {
  color: #212529;
}

/* Empty state */
.economy-empty-state {
  padding: 2rem 1rem;
}

/* Invoice cards */
.economy-invoice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(20, 20, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  border-left: 3px solid #0d6efd;
  transition: all 0.2s ease;
}

.economy-invoice-card:hover {
  background: rgba(13, 110, 253, 0.08);
}

.economy-invoice-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.economy-invoice-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.15);
  color: #0d6efd;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.economy-invoice-icon.paid {
  background: rgba(25, 135, 84, 0.15);
  color: #198754;
}

.economy-invoice-icon.overdue {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

.economy-invoice-info {
  min-width: 0;
}

.economy-invoice-number {
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
}

.economy-invoice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.15rem;
}

.economy-invoice-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.economy-invoice-amount {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
}

.economy-invoice-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Light mode */
[data-bs-theme="light"] .economy-invoice-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .economy-invoice-card:hover {
  background: rgba(255, 255, 255, 0.95);
}

[data-bs-theme="light"] .economy-invoice-number {
  color: #212529;
}

[data-bs-theme="light"] .economy-invoice-meta {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .economy-invoice-amount {
  color: #212529;
}

/* Invoice mobile */
@media (max-width: 575.98px) {
  .economy-invoice-card {
    flex-wrap: wrap;
  }
  
  .economy-invoice-left {
    flex: 1 1 100%;
  }
  
  .economy-invoice-right {
    flex: 1 1 100%;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

/* Mobile responsiveness */
@media (max-width: 575.98px) {
  .economy-transaction-card {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .economy-transaction-image {
    width: 48px;
    height: 48px;
  }
  
  .economy-transaction-content {
    flex: 1 1 calc(100% - 60px);
  }
  
  .economy-transaction-right {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .economy-segmented-control {
    justify-content: flex-start;
  }
  
  .economy-segment {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ===== ADMIN BATCHES CARDS ===== */

/* Batch card status border colors */
.economy-transaction-card.batch-draft {
  border-left: 3px solid #ffc107;
}

.economy-transaction-card.batch-draft:hover {
  background: rgba(255, 193, 7, 0.08);
}

.economy-transaction-card.batch-ready {
  border-left: 3px solid #198754;
}

.economy-transaction-card.batch-ready:hover {
  background: rgba(25, 135, 84, 0.08);
}

.economy-transaction-card.batch-processing,
.economy-transaction-card.batch-pending {
  border-left: 3px solid #0d6efd;
}

.economy-transaction-card.batch-processing:hover,
.economy-transaction-card.batch-pending:hover {
  background: rgba(13, 110, 253, 0.08);
}

.economy-transaction-card.batch-completed {
  border-left: 3px solid rgba(255, 255, 255, 0.2);
}

.economy-transaction-card.batch-completed:hover {
  background: rgba(255, 255, 255, 0.06);
}

.economy-transaction-card.batch-error,
.economy-transaction-card.batch-failed {
  border-left: 3px solid #dc3545;
}

.economy-transaction-card.batch-error:hover,
.economy-transaction-card.batch-failed:hover {
  background: rgba(220, 53, 69, 0.08);
}

/* Seller card in admin batches */
.economy-transaction-card.batch-seller {
  border-left: 3px solid rgba(242, 156, 31, 0.5);
}

.economy-transaction-card.batch-seller:hover {
  background: rgba(242, 156, 31, 0.08);
}

.economy-transaction-card.batch-seller.seller-missing {
  border-left: 3px solid #dc3545;
}

.economy-transaction-card.batch-seller.seller-unverified {
  border-left: 3px solid #ffc107;
}

/* Batch type badge */
.admin-batch-type-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-batch-type-badge.nexi {
  background: rgba(13, 110, 253, 0.15);
  color: #6ea8fe;
}

.admin-batch-type-badge.bank {
  background: rgba(13, 202, 240, 0.15);
  color: #6edff6;
}

/* Batch status dot */
.admin-batch-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.admin-batch-status-dot.draft { background: #ffc107; }
.admin-batch-status-dot.ready { background: #198754; }
.admin-batch-status-dot.processing,
.admin-batch-status-dot.pending { background: #0d6efd; }
.admin-batch-status-dot.completed { background: rgba(255, 255, 255, 0.3); }
.admin-batch-status-dot.error,
.admin-batch-status-dot.failed { background: #dc3545; }

/* Admin batches missing count badge */
.admin-batch-missing-badge {
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(220, 53, 69, 0.15);
  color: #ea868f;
}

/* Light mode overrides for admin batches */
[data-bs-theme="light"] .economy-transaction-card.batch-completed {
  border-left-color: rgba(0, 0, 0, 0.15);
}

[data-bs-theme="light"] .admin-batch-type-badge.nexi {
  color: #0d6efd;
}

[data-bs-theme="light"] .admin-batch-type-badge.bank {
  color: #0dcaf0;
}

[data-bs-theme="light"] .admin-batch-status-dot.completed {
  background: rgba(0, 0, 0, 0.2);
}

[data-bs-theme="light"] .admin-batch-missing-badge {
  color: #dc3545;
}

/* ===== ECONOMY DATATABLE STYLING ===== */

/* Hide DataTables default header (single-column card layout) */
.economy-datatable thead {
  display: none;
}

/* Make table invisible - cards inside will show */
.economy-datatable {
  border-collapse: separate;
  border-spacing: 0 0;
  margin: 0 !important;
  width: 100% !important;
  background: transparent;
}

/* Row is just a container */
.economy-datatable tbody tr {
  background: transparent !important;
  box-shadow: none !important;
}

.economy-datatable tbody tr:hover {
  box-shadow: none !important;
  transform: none !important;
}

/* Cell is container for card */
.economy-datatable tbody td {
  padding: 0;
  border: none;
  background: transparent !important;
}

/* Staggered animation for card rows */
.economy-datatable tbody tr:nth-child(1) .economy-transaction-card,
.economy-datatable tbody tr:nth-child(1) .economy-invoice-card { animation-delay: 0ms; }
.economy-datatable tbody tr:nth-child(2) .economy-transaction-card,
.economy-datatable tbody tr:nth-child(2) .economy-invoice-card { animation-delay: 40ms; }
.economy-datatable tbody tr:nth-child(3) .economy-transaction-card,
.economy-datatable tbody tr:nth-child(3) .economy-invoice-card { animation-delay: 80ms; }
.economy-datatable tbody tr:nth-child(4) .economy-transaction-card,
.economy-datatable tbody tr:nth-child(4) .economy-invoice-card { animation-delay: 120ms; }
.economy-datatable tbody tr:nth-child(5) .economy-transaction-card,
.economy-datatable tbody tr:nth-child(5) .economy-invoice-card { animation-delay: 160ms; }
.economy-datatable tbody tr:nth-child(6) .economy-transaction-card,
.economy-datatable tbody tr:nth-child(6) .economy-invoice-card { animation-delay: 200ms; }
.economy-datatable tbody tr:nth-child(7) .economy-transaction-card,
.economy-datatable tbody tr:nth-child(7) .economy-invoice-card { animation-delay: 240ms; }
.economy-datatable tbody tr:nth-child(8) .economy-transaction-card,
.economy-datatable tbody tr:nth-child(8) .economy-invoice-card { animation-delay: 280ms; }
.economy-datatable tbody tr:nth-child(9) .economy-transaction-card,
.economy-datatable tbody tr:nth-child(9) .economy-invoice-card { animation-delay: 320ms; }
.economy-datatable tbody tr:nth-child(10) .economy-transaction-card,
.economy-datatable tbody tr:nth-child(10) .economy-invoice-card { animation-delay: 360ms; }

/* DataTables controls styling (same pattern as products) */
.economy-table-wrapper .dataTables_wrapper {
  padding: 0;
}

.economy-dt-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

.economy-dt-controls .dataTables_length {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.economy-dt-controls .dataTables_length select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--bs-body-color);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  margin: 0 0.3rem;
}

.economy-dt-controls .dataTables_length select:focus {
  border-color: rgba(242, 156, 31, 0.4);
  outline: none;
}

.economy-dt-controls .dataTables_filter {
  text-align: right;
}

.economy-dt-controls .dataTables_filter input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--bs-body-color);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  width: 100%;
  max-width: 300px;
}

.economy-dt-controls .dataTables_filter input:focus {
  border-color: rgba(242, 156, 31, 0.4);
  box-shadow: 0 0 0 2px rgba(242, 156, 31, 0.1);
  outline: none;
}

.economy-dt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.25rem;
}

.economy-dt-footer .dataTables_info {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  padding-top: 0.75rem;
}

.economy-dt-footer .dataTables_paginate {
  padding-top: 0.75rem;
}

.economy-dt-footer .dataTables_paginate .paginate_button {
  padding: 0.35rem 0.65rem;
  margin: 0 0.15rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.8rem;
  cursor: pointer;
}

.economy-dt-footer .dataTables_paginate .paginate_button:hover {
  border-color: rgba(242, 156, 31, 0.4) !important;
  color: #fff !important;
  background: transparent !important;
}

.economy-dt-footer .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #f29c1f, #e8890c) !important;
  border-color: #f29c1f !important;
  color: #000 !important;
  font-weight: 600;
}

.economy-dt-footer .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Light mode DataTables */
[data-bs-theme="light"] .economy-dt-controls .dataTables_length {
  color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .economy-dt-controls .dataTables_length select {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .economy-dt-controls .dataTables_filter input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .economy-dt-footer .dataTables_info {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .economy-dt-footer .dataTables_paginate .paginate_button {
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: rgba(0, 0, 0, 0.6) !important;
}

[data-bs-theme="light"] .economy-dt-footer .dataTables_paginate .paginate_button:hover {
  color: #000 !important;
}

/* ===== END ECONOMY DATATABLE STYLING ===== */

/* ===== END ECONOMY TRANSACTION CARDS ===== */

/* ===== END ECONOMY KPI CARDS ===== */

/* ===== END MYPAGES CARDS GLASSMORPHISM ===== */

/* ===== PENDING PRODUCTS REDESIGN ===== */

/* --- Welcome card (KPI header) --- */
.pending-welcome-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.06);
  opacity: 0;
  transform: translateY(20px);
  animation: economyFadeInUp 0.5s ease-out forwards;
}

.pending-welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(242, 156, 31, 0.5) 20%,
    rgba(247, 210, 125, 0.7) 50%,
    rgba(242, 156, 31, 0.5) 80%,
    transparent);
  border-radius: 2px;
}

.pending-welcome-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pending-welcome-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pending-welcome-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

[data-bs-theme="light"] .pending-welcome-card {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(242, 156, 31, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.12),
    0 0 50px rgba(242, 156, 31, 0.08);
}

/* --- KPI stat cards --- */
.pending-kpi-stats {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pending-kpi-stat {
  flex: 1;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.pending-kpi-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(242, 156, 31, 0.4) 20%,
    rgba(247, 210, 125, 0.6) 50%,
    rgba(242, 156, 31, 0.4) 80%,
    transparent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pending-kpi-stat:hover::before {
  opacity: 1;
}

.pending-kpi-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 156, 31, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.pending-kpi-stat.active {
  border-color: rgba(242, 156, 31, 0.4);
  background: rgba(242, 156, 31, 0.08);
}

.pending-kpi-stat.active::before {
  opacity: 1;
}

.pending-kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.pending-kpi-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.15rem;
}

.pending-kpi-icon {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

[data-bs-theme="light"] .pending-kpi-stat {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .pending-kpi-stat:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(242, 156, 31, 0.3);
}

[data-bs-theme="light"] .pending-kpi-stat.active {
  background: rgba(242, 156, 31, 0.06);
  border-color: rgba(242, 156, 31, 0.4);
}

[data-bs-theme="light"] .pending-kpi-value {
  color: #212529;
}

[data-bs-theme="light"] .pending-kpi-label {
  color: rgba(0, 0, 0, 0.5);
}

/* --- Transactions panel (main list container) --- */
.pending-transactions-panel {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 20px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.06);
  opacity: 0;
  transform: translateY(20px);
  animation: economyFadeInUp 0.5s ease-out forwards;
  animation-delay: 0.2s;
}

.pending-transactions-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(242, 156, 31, 0.5) 20%,
    rgba(247, 210, 125, 0.7) 50%,
    rgba(242, 156, 31, 0.5) 80%,
    transparent);
  border-radius: 2px;
}

[data-bs-theme="light"] .pending-transactions-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(242, 156, 31, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.12),
    0 0 50px rgba(242, 156, 31, 0.08);
}

/* --- Pending product cards --- */
.pending-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(20, 20, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  opacity: 0;
  animation: economySlideIn 0.3s ease-out forwards;
}

.pending-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Status border colors */
.pending-card-ready {
  border-left: 3px solid #198754;
}

.pending-card-ready:hover {
  background: rgba(25, 135, 84, 0.08);
}

.pending-card-missing-data {
  border-left: 3px solid #ffc107;
}

.pending-card-missing-data:hover {
  background: rgba(255, 193, 7, 0.08);
}

.pending-card-missing-compliance {
  border-left: 3px solid #dc3545;
}

.pending-card-missing-compliance:hover {
  background: rgba(220, 53, 69, 0.08);
}

.pending-card-missing-dimensions {
  border-left: 3px solid #6f42c1;
}

.pending-card-missing-dimensions:hover {
  background: rgba(111, 66, 193, 0.08);
}

/* Card inner layout */
.pending-card-checkbox {
  flex-shrink: 0;
}

.pending-card-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f29c1f;
}

.pending-card-checkbox input[type="checkbox"]:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pending-card-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.pending-card-info {
  min-width: 0;
  flex: 1;
}

.pending-card-title {
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.15rem;
}

.pending-card-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pending-card-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.pending-card-badge.badge-ready {
  background: rgba(25, 135, 84, 0.15);
  color: #75b798;
}

.pending-card-badge.badge-missing-data {
  background: rgba(255, 193, 7, 0.15);
  color: #ffda6a;
}

.pending-card-badge.badge-missing-compliance {
  background: rgba(220, 53, 69, 0.15);
  color: #ea868f;
}

.pending-card-badge.badge-missing-dimensions {
  background: rgba(111, 66, 193, 0.15);
  color: #a98eda;
}

.pending-card-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

/* Light mode cards */
[data-bs-theme="light"] .pending-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .pending-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 1);
}

[data-bs-theme="light"] .pending-card-title {
  color: #212529;
}

[data-bs-theme="light"] .pending-card-meta {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .pending-card-arrow {
  color: rgba(0, 0, 0, 0.3);
}

[data-bs-theme="light"] .pending-card-badge.badge-ready {
  color: #198754;
}

[data-bs-theme="light"] .pending-card-badge.badge-missing-data {
  color: #997404;
}

[data-bs-theme="light"] .pending-card-badge.badge-missing-compliance {
  color: #dc3545;
}

[data-bs-theme="light"] .pending-card-badge.badge-missing-dimensions {
  color: #6f42c1;
}

/* --- Staggered animation for pending cards in DataTable --- */
.pending-datatable tbody tr:nth-child(1) .pending-card { animation-delay: 0ms; }
.pending-datatable tbody tr:nth-child(2) .pending-card { animation-delay: 40ms; }
.pending-datatable tbody tr:nth-child(3) .pending-card { animation-delay: 80ms; }
.pending-datatable tbody tr:nth-child(4) .pending-card { animation-delay: 120ms; }
.pending-datatable tbody tr:nth-child(5) .pending-card { animation-delay: 160ms; }
.pending-datatable tbody tr:nth-child(6) .pending-card { animation-delay: 200ms; }
.pending-datatable tbody tr:nth-child(7) .pending-card { animation-delay: 240ms; }
.pending-datatable tbody tr:nth-child(8) .pending-card { animation-delay: 280ms; }
.pending-datatable tbody tr:nth-child(9) .pending-card { animation-delay: 320ms; }
.pending-datatable tbody tr:nth-child(10) .pending-card { animation-delay: 360ms; }

/* --- DataTable styling (reuse economy pattern) --- */
.pending-datatable thead {
  display: none;
}

.pending-datatable {
  border-collapse: separate;
  border-spacing: 0 0;
  margin: 0 !important;
  width: 100% !important;
  background: transparent;
}

.pending-datatable tbody tr {
  background: transparent !important;
  box-shadow: none !important;
}

.pending-datatable tbody tr:hover {
  box-shadow: none !important;
  transform: none !important;
}

.pending-datatable tbody td {
  padding: 0;
  border: none;
  background: transparent !important;
}

/* DataTable controls */
.pending-dt-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

.pending-dt-controls .dataTables_filter input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--bs-body-color);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  width: 100%;
  max-width: 300px;
}

.pending-dt-controls .dataTables_filter input:focus {
  border-color: rgba(242, 156, 31, 0.4);
  box-shadow: 0 0 0 2px rgba(242, 156, 31, 0.1);
  outline: none;
}

/* DataTable footer (pagination + info) */
.pending-dt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.25rem;
}

.pending-dt-footer .dataTables_info {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  padding-top: 0.75rem;
}

.pending-dt-footer .dataTables_paginate {
  padding-top: 0.75rem;
}

.pending-dt-footer .dataTables_paginate .paginate_button {
  padding: 0.35rem 0.65rem;
  margin: 0 0.15rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.8rem;
  cursor: pointer;
}

.pending-dt-footer .dataTables_paginate .paginate_button:hover {
  border-color: rgba(242, 156, 31, 0.4) !important;
  color: #fff !important;
  background: transparent !important;
}

.pending-dt-footer .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #f29c1f, #e8890c) !important;
  border-color: #f29c1f !important;
  color: #000 !important;
  font-weight: 600;
}

.pending-dt-footer .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Light mode DataTable controls */
[data-bs-theme="light"] .pending-dt-controls .dataTables_filter input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .pending-dt-footer .dataTables_info {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .pending-dt-footer .dataTables_paginate .paginate_button {
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: rgba(0, 0, 0, 0.6) !important;
}

[data-bs-theme="light"] .pending-dt-footer .dataTables_paginate .paginate_button:hover {
  color: #000 !important;
}

/* --- Person filter dropdowns (DEL 2B) --- */
.pending-person-filters {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.pending-filter-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.pending-filter-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  border-radius: 10px;
  min-width: 180px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  transition: border-color 0.2s ease;
}

.pending-filter-select:focus {
  border-color: rgba(242, 156, 31, 0.4);
  box-shadow: 0 0 0 2px rgba(242, 156, 31, 0.1);
  outline: none;
}

[data-bs-theme="light"] .pending-filter-label {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .pending-filter-select {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

/* --- Segmented control (reuses economy pattern) --- */
.pending-segmented-control {
  display: flex;
  gap: 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.pending-segment {
  flex: 1;
  min-width: max-content;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.pending-segment:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.pending-segment.active {
  background: linear-gradient(135deg, #f29c1f 0%, #e08913 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(242, 156, 31, 0.3);
}

[data-bs-theme="light"] .pending-segmented-control {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .pending-segment {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .pending-segment:hover {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.8);
}

/* --- Confirm approval modal styling --- */
.pending-confirm-timeline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.pending-confirm-timeline .timeline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.85rem;
}

.pending-confirm-timeline .timeline-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.pending-confirm-timeline .timeline-value {
  font-weight: 600;
  color: #fff;
}

.pending-confirm-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.pending-confirm-meta i {
  width: 1.25rem;
  text-align: center;
  margin-right: 0.25rem;
}

[data-bs-theme="light"] .pending-confirm-timeline {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .pending-confirm-timeline .timeline-label {
  color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .pending-confirm-timeline .timeline-value {
  color: #212529;
}

[data-bs-theme="light"] .pending-confirm-meta {
  color: rgba(0, 0, 0, 0.5);
}

/* --- Bulk approval groups --- */
.pending-bulk-group {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.pending-bulk-group-header {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pending-bulk-group.karantene-group {
  border-color: rgba(255, 193, 7, 0.25);
  background: rgba(255, 193, 7, 0.04);
}

.pending-bulk-group.karantene-group .pending-bulk-group-header {
  color: #ffda6a;
}

.pending-bulk-item {
  font-size: 0.8rem;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
}

.pending-bulk-item-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

[data-bs-theme="light"] .pending-bulk-group {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .pending-bulk-group.karantene-group {
  border-color: rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.04);
}

[data-bs-theme="light"] .pending-bulk-group.karantene-group .pending-bulk-group-header {
  color: #997404;
}

[data-bs-theme="light"] .pending-bulk-item {
  color: rgba(0, 0, 0, 0.7);
}

[data-bs-theme="light"] .pending-bulk-item-meta {
  color: rgba(0, 0, 0, 0.4);
}

/* --- Mobile responsive --- */
@media (max-width: 575.98px) {
  .pending-welcome-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .pending-welcome-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .pending-kpi-stats {
    flex-direction: column;
  }

  .pending-kpi-stat {
    min-width: unset;
  }

  .pending-card {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pending-card-right {
    flex: 1 1 100%;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .pending-segmented-control {
    justify-content: flex-start;
  }

  .pending-segment {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .pending-person-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .pending-filter-select {
    width: 100%;
  }
}

/* ===== END PENDING PRODUCTS REDESIGN ===== */

/* ===== MYPAGES TABS GLASSMORPHISM ===== */

/* Products tabs and other nav-tabs in mypages */
.content-section .nav-tabs,
#productsTabNav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.5rem;
  padding-bottom: 0;
}

.content-section .nav-tabs .nav-link,
#productsTabNav .nav-link {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 0.75rem 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: all 0.2s ease;
}

.content-section .nav-tabs .nav-link:hover,
#productsTabNav .nav-link:hover {
  background: rgba(242, 156, 31, 0.1);
  border-color: rgba(242, 156, 31, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.content-section .nav-tabs .nav-link.active,
#productsTabNav .nav-link.active {
  background: linear-gradient(180deg, rgba(242, 156, 31, 0.15) 0%, rgba(20, 20, 25, 0.8) 100%);
  border-color: rgba(242, 156, 31, 0.4);
  color: var(--1ore-primary);
}

.content-section .nav-tabs .nav-link .badge,
#productsTabNav .nav-link .badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.content-section .nav-tabs .nav-link.active .badge,
#productsTabNav .nav-link.active .badge {
  background: rgba(242, 156, 31, 0.3) !important;
  color: var(--1ore-primary);
}

/* Settings pills tabs */
#myPagesSettingsTabs.nav-pills {
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

#myPagesSettingsTabs .nav-link {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 0.6rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: all 0.2s ease;
}

#myPagesSettingsTabs .nav-link:hover {
  background: rgba(242, 156, 31, 0.1) !important;
  border-color: rgba(242, 156, 31, 0.3) !important;
  color: rgba(255, 255, 255, 0.9);
}

#myPagesSettingsTabs .nav-link.active {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.2) 0%, rgba(242, 156, 31, 0.08) 100%) !important;
  border-color: rgba(242, 156, 31, 0.4) !important;
  color: var(--1ore-primary);
}

/* Light mode tabs */
[data-bs-theme="light"] .content-section .nav-tabs,
[data-bs-theme="light"] #productsTabNav {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .content-section .nav-tabs .nav-link,
[data-bs-theme="light"] #productsTabNav .nav-link {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .content-section .nav-tabs .nav-link:hover,
[data-bs-theme="light"] #productsTabNav .nav-link:hover {
  background: rgba(242, 156, 31, 0.08);
  color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .content-section .nav-tabs .nav-link.active,
[data-bs-theme="light"] #productsTabNav .nav-link.active {
  background: linear-gradient(180deg, rgba(242, 156, 31, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
  color: #c97a0a;
}

[data-bs-theme="light"] .content-section .nav-tabs .nav-link .badge,
[data-bs-theme="light"] #productsTabNav .nav-link .badge {
  background: rgba(0, 0, 0, 0.08) !important;
  color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .content-section .nav-tabs .nav-link.active .badge,
[data-bs-theme="light"] #productsTabNav .nav-link.active .badge {
  background: rgba(242, 156, 31, 0.2) !important;
  color: #c97a0a;
}

[data-bs-theme="light"] #myPagesSettingsTabs .nav-link {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] #myPagesSettingsTabs .nav-link:hover {
  background: rgba(242, 156, 31, 0.08) !important;
  color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] #myPagesSettingsTabs .nav-link.active {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.12) 0%, rgba(242, 156, 31, 0.04) 100%) !important;
  color: #c97a0a;
}

/* ===== END MYPAGES TABS GLASSMORPHISM ===== */

/* ===== MYPAGES TABLES GLASSMORPHISM ===== */

/* Tables in mypages */
.content-section .table,
.settings-content .table,
#productsTableStorage,
#productsTableShipped,
#productsTableSold {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.content-section .table thead,
.settings-content .table thead,
.content-section .table-light {
  background: rgba(255, 255, 255, 0.03) !important;
}

.content-section .table thead th,
.settings-content .table thead th {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  padding: 0.75rem;
}

.content-section .table tbody tr,
.settings-content .table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.content-section .table tbody tr:hover,
.settings-content .table tbody tr:hover {
  background: rgba(242, 156, 31, 0.05) !important;
}

.content-section .table tbody td,
.settings-content .table tbody td {
  border: none;
  padding: 0.75rem;
  vertical-align: middle;
}

.content-section .table tbody tr:last-child,
.settings-content .table tbody tr:last-child {
  border-bottom: none;
}

/* Light mode tables */
[data-bs-theme="light"] .content-section .table thead,
[data-bs-theme="light"] .settings-content .table thead,
[data-bs-theme="light"] .content-section .table-light {
  background: rgba(0, 0, 0, 0.02) !important;
}

[data-bs-theme="light"] .content-section .table thead th,
[data-bs-theme="light"] .settings-content .table thead th {
  border-bottom-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .content-section .table tbody tr,
[data-bs-theme="light"] .settings-content .table tbody tr {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .content-section .table tbody tr:hover,
[data-bs-theme="light"] .settings-content .table tbody tr:hover {
  background: rgba(242, 156, 31, 0.04) !important;
}

/* ===== END MYPAGES TABLES GLASSMORPHISM ===== */

/* ===== GLOBAL ADMIN TABLE DARK MODE OVERRIDES ===== */
/* Fixes table-light headers and table-warning/status rows across ALL admin/promotor pages */

/* table-light: Bootstrap default is #f8f9fa bg — unreadable header in dark mode */
[data-bs-theme="dark"] .table-light {
  --bs-table-bg: rgba(255, 255, 255, 0.05) !important;
  --bs-table-border-color: rgba(255, 255, 255, 0.1) !important;
  --bs-table-color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .table-light th {
  color: rgba(255, 255, 255, 0.7) !important;
  background: transparent !important;
}

/* table-warning: Bootstrap default is #fff3cd — bright yellow on dark = unreadable */
[data-bs-theme="dark"] .table-warning {
  --bs-table-bg: rgba(255, 193, 7, 0.15) !important;
  --bs-table-border-color: rgba(255, 193, 7, 0.25) !important;
  --bs-table-color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .table-warning td {
  color: var(--bs-body-color) !important;
}

/* table-danger: Red status rows need dark mode adaptation */
[data-bs-theme="dark"] .table-danger {
  --bs-table-bg: rgba(220, 53, 69, 0.15) !important;
  --bs-table-border-color: rgba(220, 53, 69, 0.25) !important;
  --bs-table-color: var(--bs-body-color) !important;
}

/* table-success: Green status rows */
[data-bs-theme="dark"] .table-success {
  --bs-table-bg: rgba(25, 135, 84, 0.15) !important;
  --bs-table-border-color: rgba(25, 135, 84, 0.25) !important;
  --bs-table-color: var(--bs-body-color) !important;
}

/* table-info: Blue status rows */
[data-bs-theme="dark"] .table-info {
  --bs-table-bg: rgba(13, 202, 240, 0.12) !important;
  --bs-table-border-color: rgba(13, 202, 240, 0.2) !important;
  --bs-table-color: var(--bs-body-color) !important;
}

/* Generic dark-mode table row hover — replaces hardcoded #f8f9fa in JS */
[data-bs-theme="dark"] .table tbody tr:hover,
[data-bs-theme="dark"] .auction-row:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

/* DataTables wrapper elements in dark mode */
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter input,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length select {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_info,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate {
  color: var(--bs-body-color);
}

/* ===== END GLOBAL ADMIN TABLE DARK MODE OVERRIDES ===== */

/* ===== MYPAGES FILTER PILLS ===== */

/* Filter pills container */
.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Individual filter pill */
.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  background: rgba(242, 156, 31, 0.15);
  border-color: rgba(242, 156, 31, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.9) 0%, rgba(232, 137, 12, 0.9) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px rgba(242, 156, 31, 0.3);
}

.filter-pill.active:hover {
  background: linear-gradient(135deg, rgba(242, 156, 31, 1) 0%, rgba(232, 137, 12, 1) 100%);
  box-shadow: 0 4px 15px rgba(242, 156, 31, 0.4);
}

/* Light mode filter pills */
[data-bs-theme="light"] .filter-pill {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .filter-pill:hover {
  background: rgba(242, 156, 31, 0.1);
  border-color: rgba(242, 156, 31, 0.4);
  color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .filter-pill.active {
  color: #fff;
}

/* ===== END MYPAGES FILTER PILLS ===== */

/* ===== MYPAGES SETTINGS REDESIGN ===== */
/* Underline tabs + kompakt design - beholder rammer */

/* Settings tabs - underline style */
#myPagesSettingsTabs {
    border-bottom: 1px solid var(--bs-border-color);
    gap: 0;
    margin-bottom: 1.25rem !important;
}

#myPagesSettingsTabs .nav-item {
    margin-bottom: -1px;
}

#myPagesSettingsTabs .nav-link {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    color: #6b7280 !important; /* Light mode: grå */
    font-weight: 500;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
}

#myPagesSettingsTabs .nav-link:hover {
    background: transparent !important;
    color: #1f2937 !important; /* Light mode: mørk */
}

#myPagesSettingsTabs .nav-link.active {
    background: transparent !important;
    border-bottom: 2px solid var(--1ore-primary) !important;
    color: #1f2937 !important; /* Light mode: mørk */
    font-weight: 600;
}

#myPagesSettingsTabs .nav-link.active i {
    color: var(--1ore-primary) !important;
}

/* Kompakt card header */
#myPagesSettingsCard .card-header {
    padding: 0.875rem 1.25rem !important;
}

#myPagesSettingsCard .card-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Kompakt form spacing */
#myPagesSettingsCard .form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #374151; /* Light mode */
}

#myPagesSettingsCard .form-control {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

#myPagesSettingsCard .row.mb-3 {
    margin-bottom: 0.75rem !important;
}

/* Kompakt buttons */
#myPagesSettingsCard .btn {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* === DARK MODE === */
[data-bs-theme="dark"] #myPagesSettingsTabs .nav-link {
    color: #9ca3af !important; /* Dark mode: lysere grå */
}

[data-bs-theme="dark"] #myPagesSettingsTabs .nav-link:hover {
    color: #e5e7eb !important; /* Dark mode: lys */
}

[data-bs-theme="dark"] #myPagesSettingsTabs .nav-link.active {
    color: #f3f4f6 !important; /* Dark mode: nesten hvit */
}

[data-bs-theme="dark"] #myPagesSettingsCard .form-label {
    color: #d1d5db; /* Dark mode: lys grå */
}

/* ===== END MYPAGES SETTINGS REDESIGN ===== */

/* ===== MYPAGES ECONOMY PROGRESS CARDS ===== */
/* 2-kort progress design for kjøper/selger separasjon - premium glassmorphism */

.economy-progress-card {
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(242, 156, 31, 0.15) !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 8px 24px -8px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(242, 156, 31, 0.05);
}

.economy-progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(242, 156, 31, 0.4) 20%, 
        rgba(247, 210, 125, 0.6) 50%, 
        rgba(242, 156, 31, 0.4) 80%, 
        transparent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.economy-progress-card:hover::before {
    opacity: 1;
}

.economy-progress-card:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 156, 31, 0.35) !important;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 16px 40px -8px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(242, 156, 31, 0.12);
}

/* Icon circle */
.economy-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Prominent amount display */
.economy-card-amount {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.economy-card-currency {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
    vertical-align: top;
    margin-left: 2px;
}

/* Mobile: slightly smaller amount */
@media (max-width: 575.98px) {
    .economy-card-amount {
        font-size: 1.15rem;
    }
}

.economy-progress-card .progress {
    background-color: var(--bs-tertiary-bg);
    border-radius: 6px;
}

/* Progress bar container */
.economy-progress-bar-container {
    height: 8px;
}

/* Chart container heights */
.economy-chart-container-lg {
    height: 160px;
}

.economy-chart-container-sm {
    height: 140px;
}

.economy-progress-card .progress-bar {
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Badge styling */
.economy-progress-card .badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Custom subtle backgrounds for badges */
.bg-primary-subtle {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.bg-success-subtle {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

/* Status text styling */
.economy-progress-card .fs-xs {
    font-size: 0.78rem;
}

/* Light mode progress cards */
[data-bs-theme="light"] .economy-progress-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 8px 24px -8px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .economy-progress-card:hover {
    border-color: rgba(242, 156, 31, 0.3) !important;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 16px 40px -8px rgba(0, 0, 0, 0.12);
}

[data-bs-theme="light"] .economy-progress-card .progress {
    background-color: rgba(0, 0, 0, 0.06);
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .economy-progress-card .progress {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .bg-primary-subtle {
    background-color: rgba(var(--bs-primary-rgb), 0.2) !important;
}

[data-bs-theme="dark"] .bg-success-subtle {
    background-color: rgba(var(--bs-success-rgb), 0.2) !important;
}

/* ===== END MYPAGES ECONOMY PROGRESS CARDS ===== */

/* ===== MYPAGES SEGMENTED CONTROL ===== */
.mypages-segmented-nav {
    width: 100%;
}

.segmented-control {
    display: inline-flex;
    background: var(--bs-tertiary-bg);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    width: 100%;
}

.segment-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-body-color);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.segment-item:hover {
    color: var(--1ore-primary);
    background: var(--bs-secondary-bg);
    transform: translateY(-1px);
}

.segment-item:active {
    transform: translateY(0);
}

.segment-item.active {
    background: var(--1ore-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(242, 156, 31, 0.3);
    transform: translateY(0);
}

.segment-item.active:hover {
    background: var(--1ore-primary);
    color: #fff;
}

.segment-item i {
    font-size: 1rem;
}

/* Mobil: Bare ikoner */
@media (max-width: 575.98px) {
    .segment-item {
        padding: 12px 8px;
    }
    .segment-label {
        display: none;
    }
}

/* Små mobiler: Enda mer kompakt */
@media (max-width: 374px) {
    .segmented-control {
        padding: 3px;
        gap: 2px;
    }
    .segment-item {
        padding: 10px 6px;
        border-radius: 8px;
    }
}
/* ===== END MYPAGES SEGMENTED CONTROL ===== */

/* ===== REPORTS SEGMENTED CONTROL (iOS-style, matches economy.php) ===== */
.reports-segmented-control {
    display: flex;
    gap: 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.reports-segment {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
}

.reports-segment:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.reports-segment.active {
    background: linear-gradient(135deg, #f29c1f 0%, #e08913 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(242, 156, 31, 0.3);
}

.reports-segment.active:hover {
    color: #fff;
}

/* Light mode */
[data-bs-theme="light"] .reports-segmented-control {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .reports-segment {
    color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .reports-segment:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .reports-segment.active {
    color: #fff;
}

/* Mobile: slightly smaller */
@media (max-width: 575.98px) {
    .reports-segment {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Stack tabs vertically on mobile */
    .reports-segmented-control.stacked-mobile {
        flex-direction: column;
    }
}
/* ===== END REPORTS SEGMENTED CONTROL ===== */

/* ===== ECONOMY TABS (iOS-style Bootstrap tabs) ===== */
.economy-segmented-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
    margin: 0;
    width: 100%;
}

.economy-segmented-tabs .nav-item {
    flex: 1;
    min-width: 0;
}

.economy-segmented-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.economy-segmented-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.economy-segmented-tabs .nav-link.active {
    background: linear-gradient(135deg, #f29c1f 0%, #e08913 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(242, 156, 31, 0.3);
}

/* Light mode */
[data-bs-theme="light"] .economy-segmented-tabs {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .economy-segmented-tabs .nav-link {
    color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .economy-segmented-tabs .nav-link:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .economy-segmented-tabs .nav-link.active {
    color: #fff;
}

/* Mobile: stack vertically */
@media (max-width: 767.98px) {
    .economy-segmented-tabs .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }
}
/* ===== END ECONOMY TABS ===== */

/* ===== AUCTION UX ENHANCEMENTS ===== */

/* Pulse animation for auctions ending soon */
@keyframes auction-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

@keyframes urgent-glow {
  0%, 100% {
    border-color: rgba(220, 53, 69, 0.5);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
  }
  50% {
    border-color: rgba(220, 53, 69, 0.9);
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
  }
}

.auction-ending-soon {
  animation: urgent-glow 1.5s ease-in-out infinite;
  border: 2px solid rgba(220, 53, 69, 0.5) !important;
}

.auction-ending-soon .countdown-timer {
  animation: auction-pulse 1.5s infinite;
  color: #dc3545 !important;
  font-weight: 700;
}

/* Gradient Winner Badge */
.badge-winner {
  background: linear-gradient(135deg, #ffd700 0%, #f29c1f 50%, #ffd700 100%) !important;
  color: #1a1a1a !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(242, 156, 31, 0.4);
}

/* Gradient Leader Badge */
.badge-leader {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

/* ===== END AUCTION UX ENHANCEMENTS ===== */

/* ===== BOOTSTRAP SORTING DROPDOWN STYLING ===== */
/* Make Bootstrap dropdown look like form-select */
.sorting-dropdown-btn {
    background-color: var(--1ore-card-bg);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    font-size: 1rem;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 400;
    line-height: 1.5;
    appearance: none;
    min-width: 200px; /* Increased minimum width for longer text */
}

/* Dark mode sorting dropdown */
[data-bs-theme="dark"] .sorting-dropdown-btn {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e5e5e5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

.sorting-dropdown-btn:focus,
.sorting-dropdown-btn:focus-visible {
    border-color: var(--1ore-primary);
    box-shadow: 0 0 0 0.2rem rgba(242, 156, 31, 0.25);
    background-color: var(--1ore-card-bg);
    color: var(--bs-body-color);
    outline: 0;
}

.sorting-dropdown-btn:hover {
    background-color: var(--1ore-cream);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

.sorting-dropdown-btn:active,
.sorting-dropdown-btn.show {
    background-color: var(--1ore-light-bg);
    border-color: var(--1ore-primary);
    box-shadow: 0 0 0 0.2rem rgba(242, 156, 31, 0.25);
}

/* Remove default Bootstrap dropdown arrow */
.sorting-dropdown-btn::after {
    display: none;
}

.sorting-dropdown-btn .dropdown-text {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    display: block;
    width: calc(100% - 2.5rem); /* More space for text - account for padding and arrow */
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive dropdown container */
@media (min-width: 768px) {
    .dropdown.flex-grow-1 {
        min-width: 220px !important; /* Much wider for desktop */
        max-width: 220px; /* Lock width to prevent changing */
    }
    
    .sorting-dropdown-btn {
        min-width: 220px;
        max-width: 220px; /* Fixed width for consistent appearance */
    }
}

@media (max-width: 767px) {
    .dropdown.flex-grow-1 {
        min-width: 215px !important; /* Increased by 25px - good balance */
        max-width: 215px;
    }
    
    .sorting-dropdown-btn {
        min-width: 215px;
        max-width: 215px;
        font-size: 0.9rem;
    }
}

/* Style dropdown menu */
.sorting-dropdown-btn + .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    min-width: 100%;
}

.sorting-dropdown-btn + .dropdown-menu .dropdown-item {
    padding: 0.375rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--bs-body-color);
    text-decoration: none;
    background-color: transparent;
    border: 0;
    display: block;
    width: 100%;
    clear: both;
    font-weight: 400;
    white-space: nowrap;
}

.sorting-dropdown-btn + .dropdown-menu .dropdown-item:hover,
.sorting-dropdown-btn + .dropdown-menu .dropdown-item:focus {
    background-color: var(--1ore-light-bg);
    color: var(--1ore-primary);
}

.sorting-dropdown-btn + .dropdown-menu .dropdown-item.active {
    background-color: var(--1ore-primary);
    color: #fff;
}

.sorting-dropdown-btn + .dropdown-menu .dropdown-item.active:hover,
.sorting-dropdown-btn + .dropdown-menu .dropdown-item.active:focus {
    background-color: var(--1ore-primary-hover);
    color: #fff;
}

/* ===== END BOOTSTRAP SORTING DROPDOWN STYLING ===== */

/* ===== REMOVED: Checkout progress + delivery selection styling (~150 lines) =====
   Removed 2026-02-27 — HTML elements never existed in economy.php
   Backup: BACKUP_NOT_IN_USE_main_pre_checkout_cleanup.css
   ===== */

/* ===== WAREHOUSE PRINT OPTIMIZATION ===== */
/**
 * Print optimization for warehouse expedition lists
 * Part of 1øre Warehouse Module - DataTables print optimization
 */

@media print {
  /* Hide unnecessary elements during print */
  .navbar,
  .sidebar,
  .btn,
  .card-header,
  .dt-buttons,
  .dataTables_filter,
  .dataTables_length,
  .dataTables_paginate,
  .dataTables_info,
  .pagination,
  .modal-header,
  .modal-footer,
  .no-print {
    display: none !important;
  }
  
  /* Optimize layout for print */
  body {
    font-size: 12pt !important;
    line-height: 1.3 !important;
    color: #000 !important;
    background: white !important;
  }
  
  .container,
  .container-fluid {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .card {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  
  .card-body {
    padding: 0 !important;
  }
  
  /* Print header */
  .print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 20pt;
    border-bottom: 2pt solid #333;
    padding-bottom: 10pt;
  }
  
  .print-header h1 {
    font-size: 18pt !important;
    margin: 0 !important;
    font-weight: bold;
  }
  
  .print-header .print-date {
    font-size: 10pt;
    color: #666;
    margin-top: 5pt;
  }
  
  /* Optimize table for print */
  .table {
    font-size: 10pt !important;
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .table th,
  .table td {
    border: 1pt solid #333 !important;
    padding: 4pt 6pt !important;
    vertical-align: top !important;
  }
  
  .table th {
    background-color: #f0f0f0 !important;
    font-weight: bold !important;
    text-align: center !important;
  }
  
  /* Hide checkbox column in print */
  .table th:first-child,
  .table td:first-child {
    display: none !important;
  }
  
  /* Hide actions column in print */
  .table th:last-child,
  .table td:last-child {
    display: none !important;
  }
  
  /* Optimize column widths for warehouse shipping tables */
  #warehouseShippingTable th:nth-child(2), 
  #warehouseShippingTable td:nth-child(2) {
    width: 10% !important;
    white-space: nowrap !important;
  }
  
  #warehouseShippingTable th:nth-child(3), 
  #warehouseShippingTable td:nth-child(3) {
    width: 25% !important;
  }
  
  #warehouseShippingTable th:nth-child(4), 
  #warehouseShippingTable td:nth-child(4) {
    width: 25% !important;
  }
  
  #warehouseShippingTable th:nth-child(5), 
  #warehouseShippingTable td:nth-child(5) {
    width: 15% !important;
  }
  
  #warehouseShippingTable th:nth-child(6), 
  #warehouseShippingTable td:nth-child(6) {
    width: 30% !important;
  }
  
  #warehouseShippingTable th:nth-child(7), 
  #warehouseShippingTable td:nth-child(7) {
    width: 10% !important;
    text-align: center !important;
  }
  
  #warehouseShippingTable th:nth-child(8), 
  #warehouseShippingTable td:nth-child(8) {
    width: 12% !important;
    white-space: nowrap !important;
  }
  
  /* Page breaks */
  .page-break {
    page-break-before: always !important;
  }
  
  .avoid-break {
    page-break-inside: avoid !important;
  }
  
  /* Print footer */
  .print-footer {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 8pt;
    color: #666;
    border-top: 1pt solid #333;
    padding-top: 5pt;
  }
  
  /* Status badges optimization */
  .badge {
    background-color: transparent !important;
    color: #000 !important;
    border: 1pt solid #333 !important;
    padding: 2pt 4pt !important;
    font-size: 8pt !important;
  }
  
  /* Remove DataTables wrapper styling */
  .dataTables_wrapper {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Optimize for A4 landscape */
  @page {
    size: A4 landscape;
    margin: 1cm;
  }
}

/* Print preview modal styling */
.print-preview {
  background: white;
  padding: 20px;
  font-family: 'Times New Roman', serif;
}

.print-preview .print-header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

.print-preview .print-header h1 {
  font-size: 24px;
  margin: 0;
  font-weight: bold;
}

.print-preview .print-date {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.print-preview .table {
  font-size: 11px;
  border-collapse: collapse;
  width: 100%;
}

.print-preview .table th,
.print-preview .table td {
  border: 1px solid #333;
  padding: 5px 8px;
  vertical-align: top;
}

.print-preview .table th {
  background-color: #f0f0f0;
  font-weight: bold;
  text-align: center;
}

/* Hide elements that shouldn't appear in print preview */
.print-preview .btn,
.print-preview .checkbox-column,
.print-preview .actions-column {
  display: none;
}

/* ===== WAREHOUSE COMPACT STYLING ===== */
/* Make warehouse pages more compact to match admin pages */
.warehouse-compact {
    font-size: 0.875rem;
}

.warehouse-compact .card-body {
    padding: 0.75rem;
}

.warehouse-compact .form-control,
.warehouse-compact .form-select {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.warehouse-compact .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.warehouse-compact .btn-sm {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
}

.warehouse-compact table {
    font-size: 0.875rem;
}

.warehouse-compact .table th,
.warehouse-compact .table td {
    padding: 0.5rem;
    vertical-align: middle;
}

.warehouse-compact .nav-tabs .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.warehouse-compact .badge {
    font-size: 0.75rem;
}

.warehouse-compact h1, .warehouse-compact h2, .warehouse-compact h3,
.warehouse-compact h4, .warehouse-compact h5, .warehouse-compact h6 {
    font-size: calc(1rem + 0.25vw);
}

.warehouse-compact .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.warehouse-compact .alert {
    font-size: 0.875rem;
    padding: 0.75rem;
}

/* ===== END WAREHOUSE COMPACT STYLING ===== */

/* ===== END WAREHOUSE PRINT OPTIMIZATION ===== */

/* ===== COOKIE CONSENT BANNER STYLING ===== */

/* Main banner container - above sticky footer */
.cookie-consent-banner {
    position: fixed;
    bottom: var(--footer-height-mobile, 88px); /* Above sticky footer on mobile */
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 3px solid #f29c1f;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1035; /* Below footer (1040) but above content */
    animation: slideUpBanner 0.5s ease-out;
}

/* Desktop: use smaller footer height */
@media (min-width: 576px) {
    .cookie-consent-banner {
        bottom: var(--footer-height, 64px);
    }
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cookie icon subtle bounce */
.cookie-consent-banner .fa-cookie-bite {
    animation: cookieBounce 2s ease-in-out infinite;
}

@keyframes cookieBounce {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(-5deg) scale(1.05);
    }
}

/* Text styling */
.cookie-consent-banner p {
    color: #212529;
}

.cookie-consent-banner small {
    color: #6c757d;
}

.cookie-consent-banner .text-1ore {
    color: #f29c1f;
    font-weight: 600;
}

.cookie-consent-banner .text-1ore:hover {
    color: #d86f34;
    text-decoration: underline !important;
}

/* Primary button (Godta alle) - 1øre branded */
.cookie-consent-banner .btn-1ore {
    background: linear-gradient(135deg, #f29c1f 0%, #d86f34 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.cookie-consent-banner .btn-1ore:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(242, 156, 31, 0.4);
    background: linear-gradient(135deg, #d86f34 0%, #f29c1f 100%);
    color: white;
}

.cookie-consent-banner .btn-1ore:active,
.cookie-consent-banner .btn-1ore:focus {
    background: linear-gradient(135deg, #f29c1f 0%, #d86f34 100%);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(242, 156, 31, 0.25);
}

/* Secondary button (Kun nødvendige) - subtle */
.cookie-consent-banner .btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
    background-color: transparent;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s ease;
}

.cookie-consent-banner .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
}

/* Dark mode styling - using explicit selectors like rest of system */
[data-bs-theme="dark"] .cookie-consent-banner {
    background-color: #1a1d21;
    border-top-color: #f29c1f;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .cookie-consent-banner p {
    color: #e5e5e5;
}

[data-bs-theme="dark"] .cookie-consent-banner small {
    color: #9ca3af;
}

[data-bs-theme="dark"] .cookie-consent-banner .btn-outline-secondary {
    border-color: #495057;
    color: #adb5bd;
    background-color: transparent;
}

[data-bs-theme="dark"] .cookie-consent-banner .btn-outline-secondary:hover {
    background-color: #343a40;
    border-color: #495057;
    color: #e5e5e5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent-banner .row {
        text-align: center;
    }
    
    .cookie-consent-banner .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .cookie-consent-banner .btn {
        width: 100%;
    }
    
    .cookie-consent-banner .btn-sm {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .cookie-consent-banner {
        border-top-width: 2px;
    }
    
    .cookie-consent-banner .fa-cookie-bite {
        font-size: 1.25rem !important;
    }
    
    .cookie-consent-banner p {
        font-size: 0.95rem;
    }
    
    .cookie-consent-banner small {
        font-size: 0.8rem;
    }
}

/* ===== END COOKIE CONSENT BANNER STYLING ===== */

/* ===== ADMIN ECONOMY HUB STYLING ===== */
/* Follows naming convention: [module][Action][Target] = adminEconomy* */

.adminEconomyTitle {
    font-size: 1.6rem;
    font-weight: 600;
}

.adminEconomySubtitle {
    font-size: 0.9rem;
}

.adminEconomyPeriodBadge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    font-size: 0.85rem;
}

.adminEconomyPeriodBadge .label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    color: #6c757d;
}

.adminEconomyPeriodBadge .value {
    font-weight: 600;
    color: #111827;
}

.adminEconomyOverviewCard {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.adminEconomyOverviewIcon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #111827, #374151);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
}

.adminEconomyOverviewTitle {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.adminEconomyOverviewSubtitle {
    font-size: 0.9rem;
}

/* Gammel statcard CSS fjernet - erstattet av ny adminEconomyStatCard under */

.adminEconomyKpiLabel {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 0.3rem;
}

.adminEconomyKpiValue {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.1rem;
}

.adminEconomyKpiMeta {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
}

.adminEconomyKpiRow .card {
    border-radius: 0.9rem;
    border-width: 1px;
}

.adminEconomyKpiRow .card-body {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.adminEconomyKpiRow .btn {
    font-size: 0.75rem;
}

/* === Admin Economy Main Card (TODO-sketch design) === */
.adminEconomyMainCard {
    border-radius: 0.75rem;
    overflow: hidden;
}

.adminEconomyPeriodNav {
    background-color: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 0.75rem 1rem;
}

.adminEconomySection {
    padding: 1rem;
}

.adminEconomySectionBorder {
    border-top: 1px solid var(--bs-border-color);
}

.adminEconomySectionHeader {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-secondary-color);
    margin-bottom: 0.5rem;
}

.adminEconomySubSection {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--bs-border-color);
}

/* Statistikk-kort med theme-aware farger */
.adminEconomyStatCard {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.03);
    height: 100%;
}

.adminEconomyStatCard--income,
.adminEconomyStatCard--expense,
.adminEconomyStatCard--result {
    /* Alle kort har samme styling */
}

/* Light mode - stat cards */
[data-bs-theme="light"] .adminEconomyStatCard {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.12);
}

.adminEconomyStatLabel {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--bs-secondary-color);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.adminEconomyStatValue {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.25rem;
}

.adminEconomyStatMeta {
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
}

/* Breakdown-rader i stat cards */
.adminEconomyStatBreakdown {
    border-top: 1px dashed var(--bs-border-color);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.adminEconomyStatBreakdownRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding: 0.15rem 0;
    gap: 0.5rem;
}

.adminEconomyStatBreakdownRow span:first-child {
    flex-shrink: 0;
}

.adminEconomyStatBreakdownRow span:nth-child(2) {
    font-weight: 500;
    margin-left: auto;
}

.adminEconomyStatBreakdownRow small {
    flex-shrink: 0;
    min-width: 2.5rem;
    text-align: right;
}

/* Nexi detaljer inline */
.adminEconomyNexiDetails {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--bs-body-color);
}

.adminEconomyNexiDetails .nexi-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.adminEconomyNexiDetails .nexi-method-icon {
    width: 24px;
    text-align: center;
}

/* År-sammendrag */
.adminEconomyYearSummary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: var(--bs-tertiary-bg);
}

.adminEconomyYearLabel {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--bs-body-color);
}

.adminEconomyYearStats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
}

/* Alert-liste (TODO-sketch stil) */
.adminEconomyAlertList {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.adminEconomyAlertRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.adminEconomyAlertLabel {
    font-size: 0.85rem;
    color: var(--bs-body-color);
}

.adminEconomyAlertLabel--sub {
    padding-left: 0.5rem;
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
}

.adminEconomyAlertValue {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bs-body-color);
}

.adminEconomyAlertValue--warning {
    color: var(--bs-warning);
}

.adminEconomyAlertValue--danger {
    color: var(--bs-danger);
}

.adminEconomyAlertValue--success {
    color: var(--bs-success);
}

.adminEconomyAlertValue--info {
    color: var(--bs-info);
}

/* Alert-bokser med TYDELIG ramme */
.adminEconomyAlertBox {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.adminEconomyAlertBox:last-child {
    margin-bottom: 0;
}

.adminEconomyBoxHeader {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* OK-melding (grønn tekst med ikon) */
.adminEconomyOkMessage {
    font-size: 0.9rem;
    color: var(--bs-success);
    padding: 0.5rem 0;
    font-weight: 500;
}

/* Light mode overrides */
[data-bs-theme="light"] .adminEconomyAlertBox {
    background-color: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-bs-theme="light"] .adminEconomyBoxHeader {
    color: rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* === End Admin Economy Main Card === */
/* ===== END ADMIN ECONOMY HUB STYLING ===== */

/* ===== LIVE SEARCH STYLING ===== */
/* Enhanced styling for search results with compact, smooth interactions */

.search-result-item {
  transition: all 0.2s ease;
  border-color: rgba(0, 0, 0, 0.05) !important;
  min-height: auto;
}

.search-result-item:hover {
  background-color: var(--bs-light) !important;
  transform: translateX(2px);
  border-color: rgba(242, 156, 31, 0.2) !important;
}

.search-result-item:active {
  transform: translateX(0px);
  background-color: rgba(242, 156, 31, 0.1) !important;
}

.search-results-header {
  background-color: var(--bs-light);
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Search offcanvas sizing */
#searchBox .offcanvas-body {
  padding-top: 0;
}

/* ===== SHOPPING CART OFFCANVAS ===== */
#shoppingCart {
  width: min(500px, 100vw) !important;
  max-width: 100vw !important;
  background-color: var(--cart-panel-bg) !important;
}

/* Shopping cart status cards */
.cart-card-winner {
  background: var(--cart-winner-gradient) !important;
}

.cart-card-leading {
  background: var(--cart-leading-gradient) !important;
}

.cart-card-outbid {
  background: var(--cart-outbid-gradient) !important;
}

.cart-footer {
  background-color: var(--cart-footer-bg) !important;
}

.cart-stat-box {
  background-color: var(--1ore-card-bg) !important;
}

/* Unpaid auctions alert - theme-aware */
.unpaid-auctions-alert {
  background: var(--cz-info-bg-subtle, #e8f4fd) !important;
  border-left: 4px solid var(--cz-info, #0dcaf0) !important;
}

[data-bs-theme="dark"] .unpaid-auctions-alert {
  background: rgba(13, 202, 240, 0.15) !important;
}

@media (max-width: 576px) {
  #shoppingCart {
    width: 100vw !important;
  }
}
/* ===== END SHOPPING CART OFFCANVAS ===== */

#searchResults {
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Status badges in search results - smaller */
.search-result-item .badge {
  font-size: 0.65rem;
  padding: 0.2em 0.4em;
}

/* Search input focus states */
#searchBox input[type="search"]:focus {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(242, 156, 31, 0.25) !important;
}

/* Compact image styling */
.search-result-image {
  width: 50px !important;
  height: 50px !important;
  object-fit: cover;
  border-radius: 6px;
}

/* Loading states */
.search-result-item img {
  transition: opacity 0.2s ease;
}

.search-result-item:hover img {
  opacity: 0.9;
}

/* Empty state styling */
#searchDefaultState {
  color: var(--bs-secondary);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .search-result-item {
    padding: 0.5rem !important;
  }
  
  .search-result-item .search-result-image,
  .search-result-item .bg-light {
    width: 40px !important;
    height: 40px !important;
  }
}

/* ===== END LIVE SEARCH STYLING ===== */
/* ===== REDESIGNED NAVBAR & FOOTER (Januar 2026) ===== */

/* --- Navbar Variables --- */
:root {
  --navbar-height: 64px;
  --logo-bulge-extra: 20px;
  --logo-bulge-radius: 16px;
  --footer-height: 64px;
  --footer-height-mobile: 88px; /* 2-row footer on mobile */
  --footer-panel-max-height: 70vh;
  --glass-blur: 10px;
  --glass-bg-light: rgba(255, 255, 255, 0.85);
  --glass-bg-dark: rgba(30, 30, 30, 0.88);
  --glass-border-light: rgba(255, 255, 255, 0.3);
  --glass-border-dark: rgba(255, 255, 255, 0.1);
}

/* --- Minimal Navbar --- */
.navbar-minimal {
  min-height: var(--navbar-height) !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
  z-index: 1030 !important;
  position: sticky !important;
  top: 0 !important;
}

[data-bs-theme="dark"] .navbar-minimal {
  background: #1a1d21 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Navbar inner container */
.navbar-minimal .container {
  position: relative;
}

.navbar-minimal .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  position: relative;
}

/* Navbar Side Buttons (Søk & Mine Auksjoner) */
.navbar-minimal .nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--bs-body-color);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.navbar-minimal .nav-btn:hover {
  background: rgba(242, 156, 31, 0.1);
  border-color: var(--1ore-primary);
  color: var(--1ore-primary);
}

.navbar-minimal .nav-btn i {
  font-size: 1.1rem;
  color: inherit;
}

/* Nav button badge - styled like footer cart badge */
.navbar-minimal .nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-minimal .nav-btn i {
  position: relative;
}

.navbar-minimal .nav-btn .nav-btn-badge {
  position: absolute;
  top: 4px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  border-radius: 10px;
  padding: 0 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Mobile: Only icons */
@media (max-width: 575.98px) {
  .navbar-minimal .nav-btn .nav-btn-label {
    display: none;
  }
  .navbar-minimal .nav-btn {
    padding: 0.6rem;
    border-radius: 50%;
  }
  .navbar-minimal .nav-btn i {
    font-size: 1.4rem;
  }
  .navbar-minimal .nav-btn .nav-btn-badge {
    top: 2px;
    left: 18px;
  }
}

/* --- Logo Bulge Effect --- */
.navbar-logo-bulge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  height: calc(var(--navbar-height) + var(--logo-bulge-extra));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background: #ffffff;
  border-radius: 0 0 var(--logo-bulge-radius) var(--logo-bulge-radius);
  box-shadow: none; /* No shadow - navbar shadow handles the top */
  z-index: 1031;
  transition: box-shadow 0.3s ease;
}

/* Only add shadow to the bulge part that extends BELOW navbar */
.navbar-logo-bulge::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--navbar-height); /* Start shadow from navbar bottom */
  border-radius: 0 0 var(--logo-bulge-radius) var(--logo-bulge-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: -1;
  pointer-events: none;
}

[data-bs-theme="dark"] .navbar-logo-bulge {
  background: #1a1d21;
}

[data-bs-theme="dark"] .navbar-logo-bulge::after {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar-logo-bulge:hover {
  box-shadow: 0 6px 16px rgba(242, 156, 31, 0.2);
}

[data-bs-theme="dark"] .navbar-logo-bulge:hover {
  box-shadow: 0 6px 16px rgba(242, 156, 31, 0.25);
}

.navbar-logo-bulge img {
  height: 52px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.navbar-logo-bulge,
.navbar-logo-bulge *,
.navbar-logo-bulge img {
  border: none !important;
  outline: none !important;
}

/* Mobile: Smaller logo */
@media (max-width: 575.98px) {
  .navbar-logo-bulge {
    padding: 0.5rem 1.25rem;
  }
  .navbar-logo-bulge img {
    height: 44px;
    max-width: none;
  }
}

/* --- Sticky Footer --- */
.footer-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff !important;
  border-top: 1px solid #e5e7eb;
  z-index: 1040; /* Below offcanvas (1045) and modals (1055) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  gap: 0.25rem;
}

[data-bs-theme="dark"] .footer-sticky {
  background: #1a1d21 !important;
  border-top-color: #2d3139;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
}

/* Mobile: 2 rows layout */
.footer-main-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Footer Center Section - always visible now */
.footer-center-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--bs-secondary-color);
  font-size: 0.7rem;
}

.footer-quick-link {
  color: var(--bs-body-color);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.7rem;
}

.footer-quick-link:hover {
  color: var(--1ore-primary);
}

.footer-separator {
  opacity: 0.4;
}

.footer-social-mini {
  display: flex;
  gap: 0.5rem;
  margin: 0 0.25rem;
}

.footer-social-mini a {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  text-decoration: none;
  font-size: 0.7rem;
  transition: all 0.2s;
}

.footer-social-mini a:hover {
  background: var(--1ore-primary);
  color: white;
}

.footer-copyright {
  opacity: 0.6;
  font-size: 0.65rem;
}

/* Footer center coin logo */
.footer-coin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.footer-coin img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(242, 156, 31, 0.3));
}

.footer-coin:hover img {
  transform: rotate(360deg) scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(242, 156, 31, 0.5));
}

/* Desktop: hide coin in footer (logo is in navbar) */
@media (min-width: 768px) {
  .footer-coin {
    display: none;
  }
}

/* Footer Buttons - Subtle hover like logo bulge */
.footer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  min-width: 60px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--bs-body-color);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.footer-btn i {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
  transition: transform 0.2s ease;
}

.footer-btn:hover {
  background: rgba(242, 156, 31, 0.08);
  color: var(--1ore-primary);
  box-shadow: 0 4px 12px rgba(242, 156, 31, 0.15);
}

.footer-btn:hover i {
  transform: scale(1.05);
}

/* Active state indicator (dot) */
.footer-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--1ore-primary);
  border-radius: 50%;
}

.footer-btn.active {
  color: var(--1ore-primary);
}

/* Cart badge */
.footer-btn .badge {
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(80%);
  font-size: 0.65rem;
  padding: 0.2em 0.45em;
  min-width: 18px;
}

/* Footer cart badge - unpaid items indicator */
.footer-cart-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  background: var(--bs-danger, #dc3545);
  border-radius: 10px;
  padding: 0 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: cartBadgePulse 0.3s ease-out;
}

@keyframes cartBadgePulse {
  0% {
    transform: translateX(100%) scale(0.5);
    opacity: 0;
  }
  70% {
    transform: translateX(100%) scale(1.1);
  }
  100% {
    transform: translateX(100%) scale(1);
    opacity: 1;
  }
}

/* --- Footer Glassmorphism Panels --- */
.footer-panel {
  position: fixed;
  bottom: var(--footer-height-mobile); /* Use mobile height by default */
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border-light);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1039; /* Below footer (1040) but above content */
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.25s ease-out,
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(10px);
}

/* Desktop: use regular footer height */
@media (min-width: 768px) {
  .footer-panel {
    bottom: var(--footer-height);
  }
}

.footer-panel.show {
  max-height: var(--footer-panel-max-height);
  opacity: 1;
  transform: translateY(0);
}

[data-bs-theme="dark"] .footer-panel {
  background: var(--glass-bg-dark);
  border-top-color: var(--glass-border-dark);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

.footer-panel-content {
  padding: 1.5rem;
  padding-top: 2rem; /* Ekstra plass for close-knapp */
  max-height: calc(var(--footer-panel-max-height) - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Wide panel (Mer) needs more width */
.footer-panel-wide .footer-panel-content {
  /* Full width */
}

/* Panel close button */
.footer-panel-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--bs-body-color);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s;
  z-index: 10;
}

.footer-panel-close:hover {
  opacity: 1;
}

/* Panel sections */
.footer-panel-section {
  margin-bottom: 1.5rem;
}

.footer-panel-section:last-child {
  margin-bottom: 0;
}

.footer-panel-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bs-secondary-color);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bs-border-color);
}

/* Panel links */
.footer-panel-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-panel-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--bs-body-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.footer-panel-link:hover {
  background: rgba(242, 156, 31, 0.1);
  color: var(--1ore-primary);
}

.footer-panel-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  opacity: 0.7;
}

.footer-panel-link:hover i {
  opacity: 1;
}

/* Danger link (logout) */
.footer-panel-link-danger {
  color: #dc3545 !important;
}

.footer-panel-link-danger:hover {
  background: rgba(220, 53, 69, 0.1) !important;
  color: #dc3545 !important;
}

/* Panel header (profile) */
.footer-panel-header {
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--bs-border-color);
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

/* Compact theme toggle (icons only in grid) */
.footer-panel-grid .footer-theme-toggle {
  padding: 0.35rem;
}

.footer-panel-grid .footer-theme-btn {
  padding: 0.4rem;
  font-size: 1rem;
}

/* Theme toggle in panel */
.footer-theme-toggle {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bs-tertiary-bg);
  border-radius: 8px;
}

.footer-theme-btn {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--bs-body-color);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.footer-theme-btn:hover {
  background: rgba(242, 156, 31, 0.1);
}

.footer-theme-btn.active {
  background: var(--1ore-primary);
  color: white;
}

/* Social icons row */
.footer-social-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding-top: 0.5rem;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social-btn:hover {
  background: var(--1ore-primary);
  color: white;
  transform: scale(1.1);
}

/* Newsletter form in panel */
.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 50px;
  font-size: 0.9rem;
  background: var(--bs-body-bg);
}

.footer-newsletter-form button {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 50px;
  background: var(--1ore-primary);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.footer-newsletter-form button:hover {
  background: var(--1ore-primary-hover);
}

/* Body padding for sticky footer */
body {
  padding-bottom: calc(var(--footer-height-mobile) + 1rem) !important;
}

@media (min-width: 768px) {
  body {
    padding-bottom: calc(var(--footer-height) + 1rem) !important;
  }
}

/* Panel backdrop overlay */
.footer-panel-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--footer-height-mobile);
  background: rgba(0, 0, 0, 0.3);
  z-index: 1038; /* Below footer-panel (1039) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (min-width: 768px) {
  .footer-panel-backdrop {
    bottom: var(--footer-height);
  }
}

.footer-panel-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* Hide original footer when sticky is active */
.footer-original {
  display: none !important;
}

/* Adjust floating buttons for sticky footer */
.floating-buttons {
  bottom: calc(var(--footer-height) + 1rem) !important;
  top: auto !important;
}

/* Desktop adjustments */
@media (min-width: 768px) {
  /* Desktop: Single row layout */
  .footer-sticky {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 2rem;
    height: var(--footer-height);
  }
  
  .footer-main-row {
    display: contents; /* Flatten to parent flex */
  }
  
  /* Hide the info row on desktop - it goes into the center */
  .footer-center-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-nav {
    gap: 0.75rem;
  }
  
  .footer-btn {
    min-width: 90px;
    padding: 0.5rem 1.25rem;
  }
  
  .footer-center-section {
    font-size: 0.8rem;
    gap: 0.75rem;
  }
  
  .footer-quick-link {
    font-size: 0.8rem;
  }
  
  .footer-social-mini a {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .footer-copyright {
    font-size: 0.75rem;
  }
  
  .footer-panel-content {
    max-width: 700px;
    margin: 0 auto;
  }
  
  /* Wide panel for "Mer" */
  .footer-panel-wide .footer-panel-content {
    max-width: 700px;
  }
}

/* --- Footer Panel Grid Layout (2-column always) --- */
.footer-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 450px;
  margin: 0 auto;
}

.footer-panel-col {
  display: flex;
  flex-direction: column;
}

/* Compact styling for grid */
.footer-panel-grid .footer-panel-section {
  margin-bottom: 0.75rem;
}

.footer-panel-grid .footer-panel-title {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
}

.footer-panel-grid .footer-panel-link {
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
  gap: 0.5rem;
}

.footer-panel-grid .footer-panel-link i {
  width: 16px;
  font-size: 0.85rem;
}

/* Larger screens - more spacing */
@media (min-width: 576px) {
  .footer-panel-grid {
    gap: 2rem;
  }
  
  .footer-panel-grid .footer-panel-section {
    margin-bottom: 1rem;
  }
  
  .footer-panel-grid .footer-panel-link {
    padding: 0.5rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .footer-panel-grid .footer-panel-link i {
    width: 18px;
    font-size: 0.9rem;
  }
}

/* Bottom section full width */
.footer-panel-bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bs-border-color);
}

@media (min-width: 576px) {
  .footer-panel-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-panel-bottom .footer-panel-section {
    width: 100%;
    max-width: 400px;
    margin-bottom: 0.5rem;
  }
  
  .footer-panel-bottom .footer-newsletter-form {
    justify-content: center;
  }
}

/* ===== END REDESIGNED NAVBAR & FOOTER ===== */

/* ===== FOOTER CART PANEL ===== */

/* ========================================
   UNPAID INVOICES - EXPANDABLE BADGE
   ======================================== */

.unpaid-invoices-sticky {
  margin-bottom: 1rem;
  padding-top: 2.5rem; /* Gir plass til close-knappen */
}

/* ===== COMPACT BADGE (Always visible) ===== */
.unpaid-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.unpaid-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Overdue variant - red/urgent */
.unpaid-badge.has-overdue {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.unpaid-badge.has-overdue:hover {
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.unpaid-badge.expanded {
  border-radius: 12px 12px 0 0;
}

.unpaid-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  flex-shrink: 0;
}

.unpaid-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.unpaid-badge-count {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.unpaid-badge-total {
  font-size: 0.75rem;
  opacity: 0.85;
}

.unpaid-badge-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.unpaid-badge.expanded .unpaid-badge-chevron {
  transform: rotate(180deg);
}

/* ===== EXPANDABLE LIST ===== */
.unpaid-invoices-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bs-body-bg);
  border-radius: 0 0 12px 12px;
  border: 1px solid var(--bs-border-color);
  border-top: none;
}

/* Single invoice - standalone card style */
.unpaid-invoices-list.single-invoice {
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
}

.unpaid-invoices-list.collapsed {
  max-height: 0;
  border: none;
}

.unpaid-invoices-list.expanded {
  max-height: 500px;
  padding: 0.5rem;
  gap: 0.375rem;
}

/* ===== COMPACT INVOICE ROWS (inside expanded list) ===== */
.unpaid-invoice-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--bs-tertiary-bg);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.unpaid-invoice-item:hover {
  background: var(--bs-secondary-bg);
}

.unpaid-invoice-item .invoice-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.unpaid-invoice-item .invoice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bs-body-bg);
  border-radius: 6px;
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.unpaid-invoice-item .invoice-details {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  min-width: 0;
}

.unpaid-invoice-item .invoice-number {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--bs-body-color);
}

.unpaid-invoice-item .invoice-meta {
  font-size: 0.65rem;
  color: var(--bs-secondary-color);
}

.unpaid-invoice-item .invoice-meta.overdue {
  color: var(--bs-danger);
}

.unpaid-invoice-item .invoice-amount-wrapper {
  margin-left: auto;
  flex-shrink: 0;
}

.unpaid-invoice-item .invoice-amount {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bs-body-color);
}

.unpaid-invoice-item .invoice-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.unpaid-invoice-item .btn-invoice-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 28px;
  padding: 0 0.625rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
}

.unpaid-invoice-item .btn-invoice-download {
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
}

.unpaid-invoice-item .btn-invoice-download:hover {
  background: var(--bs-body-bg);
}

.unpaid-invoice-item .btn-invoice-download.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.unpaid-invoice-item .btn-invoice-pay {
  background: #fbbf24;
  color: #1a1a1a;
}

.unpaid-invoice-item .btn-invoice-pay:hover {
  background: #f59e0b;
}

.unpaid-invoice-item .btn-invoice-action i {
  font-size: 0.7rem;
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
  .unpaid-invoices-sticky {
    padding-top: 2rem;
  }
  
  .unpaid-badge {
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
  }
  
  .unpaid-badge-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .unpaid-badge-count {
    font-size: 0.8rem;
  }
  
  .unpaid-badge-total {
    font-size: 0.7rem;
  }
  
  .unpaid-invoices-list.expanded {
    border-radius: 0 0 10px 10px;
  }
  
  .unpaid-invoice-item {
    padding: 0.5rem 0.625rem;
    gap: 0.5rem;
  }
  
  .unpaid-invoice-item .invoice-icon {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
  
  .unpaid-invoice-item .invoice-number {
    font-size: 0.75rem;
  }
  
  .unpaid-invoice-item .invoice-meta {
    font-size: 0.6rem;
  }
  
  .unpaid-invoice-item .invoice-amount {
    font-size: 0.8rem;
  }
  
  .unpaid-invoice-item .btn-invoice-action {
    height: 26px;
    padding: 0 0.5rem;
    font-size: 0.65rem;
  }
}

/* Payments due grid (vunnede auksjoner) */
.payments-due-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  padding: 0.5rem 0;
}

@media (min-width: 576px) {
  .payments-due-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}

/* Payment due kort (miniatyr) */
.payment-due-card {
  position: relative;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.payment-due-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--1ore-primary);
}

.payment-due-card .card-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bs-secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.payment-due-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-due-card .card-thumb .placeholder-icon {
  font-size: 2rem;
  color: var(--bs-secondary-color);
  opacity: 0.5;
}

.payment-due-card .card-body {
  padding: 0.5rem 0.75rem;
}

.payment-due-card .card-title {
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-due-card .card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--1ore-primary);
}

/* Add to cart button for menu-auction-card in footer panel */
.payments-due-grid .menu-auction-card .add-to-cart-btn {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--1ore-primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(242, 156, 31, 0.3);
}

.payments-due-grid .menu-auction-card .add-to-cart-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: var(--1ore-primary-hover);
}

/* Add to cart animasjon */
.payments-due-grid .menu-auction-card.adding-to-cart {
  animation: addToCartAnim 0.5s ease-out forwards;
}

@keyframes addToCartAnim {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  100% {
    transform: scale(0) translateY(100px);
    opacity: 0;
  }
}

/* "Legg til alle" pill button with oversized circle icon */
.add-all-to-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem 0.3rem 0.3rem;
  border-radius: 2rem;
  background: var(--1ore-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(242, 156, 31, 0.35);
  white-space: nowrap;
  position: relative;
}

/* Oversized circle icon - bigger than button height */
.add-all-to-cart-btn .add-all-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
}

.add-all-to-cart-btn:hover {
  transform: scale(1.05);
  background: var(--1ore-primary-hover);
  box-shadow: 0 4px 16px rgba(242, 156, 31, 0.5);
}

.add-all-to-cart-btn:hover .add-all-icon {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

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

.add-all-to-cart-btn .add-all-count {
  opacity: 0.85;
}

/* Cart sticky bar (nederst i panelet) - Modern premium design */
.cart-sticky-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(30, 30, 35, 0.98) 0%, rgba(20, 20, 25, 0.99) 100%);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(242, 156, 31, 0.3);
  padding: 1rem 2rem;
  z-index: 5;
}

/* Mobile: Extra bottom padding for footer navbar */
@media (max-width: 767.98px) {
  .cart-sticky-bar {
    padding: 1rem 1rem 1.5rem 1rem;
  }
}

/* Ensure sticky bar uses full panel width */
#footerPanelCart {
  display: flex;
  flex-direction: column;
}

#footerPanelCart .footer-panel-content {
  flex: 1;
  overflow-y: auto;
  max-width: none;
  margin: 0;
  padding: 1.5rem 2rem;
}

#footerPanelCart .cart-sticky-bar {
  flex-shrink: 0;
}

[data-bs-theme="light"] .cart-sticky-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.99) 100%);
  border-top-color: var(--bs-border-color);
}

/* Cart icon with count bubble */
.cart-icon-badge {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(242, 156, 31, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--1ore-primary);
  font-size: 1.1rem;
}

.cart-icon-badge-lg {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}

.cart-count-bubble {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--1ore-primary);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Cart total display */
.cart-total-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--1ore-primary);
}

.cart-total-display-lg {
  font-size: 1.25rem;
  text-align: right;
}

.cart-total-display-lg small {
  font-size: 0.7rem;
  font-weight: 400;
}

/* Cart breakdown - Desktop price list */
.cart-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
  min-width: 140px;
}

.cart-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cart-breakdown-label {
  color: var(--bs-secondary-color);
}

.cart-breakdown-value {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cart-breakdown-total {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.25rem;
  margin-top: 0.1rem;
}

.cart-breakdown-total .cart-breakdown-label,
.cart-breakdown-total .cart-breakdown-value {
  font-weight: 700;
  color: var(--1ore-primary);
}

[data-bs-theme="light"] .cart-breakdown-total {
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* Shipping toggle - Segmented control style */
.shipping-toggle {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shipping-toggle-desktop {
  flex: 1 1 auto;
  max-width: 320px;
  min-width: 200px;
}

/* Compact mobile version */
.shipping-toggle-compact {
  gap: 0.25rem;
  padding: 0.15rem;
  border-radius: 8px;
}

.shipping-toggle-compact .shipping-toggle-btn {
  flex-direction: row;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
}

.shipping-toggle-compact .shipping-toggle-btn i {
  font-size: 0.8rem;
  margin-bottom: 0;
}

.shipping-toggle-compact .shipping-toggle-btn span {
  font-size: 0.7rem;
}

.shipping-toggle-compact .shipping-toggle-btn small {
  font-size: 0.6rem;
  margin-left: auto;
}

.shipping-toggle-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.shipping-toggle-btn i {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.shipping-toggle-btn span {
  font-weight: 600;
  white-space: nowrap;
}

.shipping-toggle-btn small {
  font-size: 0.65rem;
  opacity: 0.7;
}

.shipping-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.shipping-toggle-btn.active {
  background: linear-gradient(135deg, var(--1ore-primary) 0%, #e08a1e 100%);
  color: #000;
  box-shadow: 0 2px 8px rgba(242, 156, 31, 0.3);
}

.shipping-toggle-btn.active small {
  opacity: 1;
}

[data-bs-theme="light"] .shipping-toggle {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .shipping-toggle-btn {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .shipping-toggle-btn:hover {
  color: rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .shipping-toggle-btn.active {
  color: #000;
}

/* Shipping unavailable state */
.shipping-toggle-btn.shipping-unavailable {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.shipping-toggle-btn.shipping-unavailable small {
  color: var(--bs-danger);
}

/* ========================================
   CART DRAWER - Compact popup above sticky bar
   ======================================== */

/* Backdrop - subtle overlay scoped to panel area */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.cart-drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Drawer container - fixed popup above sticky bar */
/* bottom/left are set dynamically by JS based on sticky bar position */
.cart-drawer {
  position: fixed;
  bottom: 300px;
  left: 0.5rem;
  right: 0.5rem;
  max-height: 50vh;
  background: linear-gradient(180deg, rgba(30, 30, 35, 0.99) 0%, rgba(20, 20, 25, 1) 100%);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(242, 156, 31, 0.25);
  z-index: 1051;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Desktop: limit width, aligned left above Se kurv button */
@media (min-width: 768px) {
  .cart-drawer {
    right: auto;
    width: 380px;
  }
}

[data-bs-theme="light"] .cart-drawer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 249, 250, 1) 100%);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Handle bar - hidden for popup style, kept for compat */
.cart-drawer-handle {
  display: none;
}

/* Header */
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .cart-drawer-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.cart-drawer-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--1ore-primary) 0%, #e08a1e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.1rem;
}

.cart-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

[data-bs-theme="light"] .cart-drawer-close {
  background: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .cart-drawer-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Body - scrollable items area */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  min-height: 80px;
  max-height: 35vh;
}

/* Empty state */
.cart-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

[data-bs-theme="light"] .cart-drawer-empty {
  color: rgba(0, 0, 0, 0.4);
}

.cart-drawer-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.cart-drawer-empty p {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.cart-drawer-empty small {
  opacity: 0.7;
}

/* Cart item cards */
.cart-drawer-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.cart-drawer-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="light"] .cart-drawer-item {
  background: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .cart-drawer-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.cart-drawer-item-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
}

.cart-drawer-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-drawer-item-info {
  flex: 1;
  min-width: 0;
}

.cart-drawer-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.125rem;
}

.cart-drawer-item-price {
  font-size: 0.85rem;
  color: var(--1ore-primary);
  font-weight: 600;
}

.cart-drawer-item-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 8px;
  color: #dc3545;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cart-drawer-item-remove:hover {
  background: rgba(220, 53, 69, 0.2);
  transform: scale(1.1);
}

/* Footer with totals */
.cart-drawer-footer {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0 0 16px 16px;
}

[data-bs-theme="light"] .cart-drawer-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
}

.cart-drawer-summary {
  font-size: 0.9rem;
}

.cart-drawer-total {
  font-size: 1.1rem;
  font-weight: 700;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--1ore-primary);
}

[data-bs-theme="light"] .cart-drawer-total {
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* Trigger hover effect */
.cart-info-trigger {
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.cart-info-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="light"] .cart-info-trigger:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Cart og Shipping popups (legacy - keeping for compatibility) */
.cart-popup,
.shipping-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 400px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5rem;
  z-index: 10;
  display: none;
}

.cart-popup.show,
.shipping-popup.show {
  display: block;
  animation: popupSlideUp 0.2s ease-out;
}

@keyframes popupSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.cart-popup-header,
.shipping-popup-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.cart-popup-body,
.shipping-popup-body {
  padding: 1rem;
  max-height: 300px;
  overflow-y: auto;
}

.cart-popup-footer,
.shipping-popup-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--bs-border-color);
}

/* Cart item i popup */
.cart-popup-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bs-border-color);
}

.cart-popup-item:last-child {
  border-bottom: none;
}

.cart-popup-item .item-info {
  flex: 1;
  min-width: 0;
}

.cart-popup-item .item-title {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-popup-item .item-price {
  font-size: 0.8rem;
  color: var(--1ore-primary);
}

.cart-popup-item .remove-item-btn {
  background: none;
  border: none;
  color: var(--bs-danger);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.cart-popup-item .remove-item-btn:hover {
  opacity: 1;
}

/* Shipping option styling */
.shipping-option {
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.shipping-option:has(input:checked) {
  background: rgba(242, 156, 31, 0.1);
}

.shipping-option .form-check-label {
  cursor: pointer;
}

/* ===== END FOOTER CART PANEL ===== */

/* ===== MINE AUKSJONER MENU REDESIGN ===== */
/* Glassmorphism offcanvas for "Mine auksjoner" */
#shoppingCart.offcanvas {
  background: rgba(20, 20, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(242, 156, 31, 0.2);
  width: 420px;
  max-width: 90vw;
}

#shoppingCart .offcanvas-header {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.15) 0%, rgba(242, 156, 31, 0.05) 100%);
  border-bottom: 1px solid rgba(242, 156, 31, 0.2);
  padding: 1.25rem 1.5rem;
}

#shoppingCart .offcanvas-title {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #f29c1f 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#shoppingCart .btn-close {
  filter: invert(1);
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#shoppingCart .btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Scrollable body with custom scrollbar */
#shoppingCart .offcanvas-body {
  padding: 1rem;
  overflow-y: auto;
}

#shoppingCart .offcanvas-body::-webkit-scrollbar {
  width: 6px;
}

#shoppingCart .offcanvas-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

#shoppingCart .offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(242, 156, 31, 0.4);
  border-radius: 3px;
}

#shoppingCart .offcanvas-body::-webkit-scrollbar-thumb:hover {
  background: rgba(242, 156, 31, 0.6);
}

/* === Mini Auction Cards for Menu === */
.menu-auction-card {
  position: relative;
  display: flex;
  gap: 0.875rem;
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.menu-auction-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  transition: all 0.3s ease;
}

.menu-auction-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(242, 156, 31, 0.3);
  transform: translateX(-4px);
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.3);
}

/* Status-specific left border colors */
.menu-auction-card[data-status="leading"]::before { background: linear-gradient(180deg, #22c55e, #16a34a); }
.menu-auction-card[data-status="won"]::before { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.menu-auction-card[data-status="outbid"]::before { background: linear-gradient(180deg, #ef4444, #dc2626); }
.menu-auction-card[data-status="lost"]::before { background: linear-gradient(180deg, #6b7280, #4b5563); }
.menu-auction-card[data-status="following"]::before { background: linear-gradient(180deg, #3b82f6, #2563eb); }
.menu-auction-card[data-status="upcoming"]::before { background: linear-gradient(180deg, #8b5cf6, #7c3aed); }

/* Image thumbnail */
.menu-auction-card .card-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.menu-auction-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.menu-auction-card:hover .card-thumb img {
  transform: scale(1.1);
}

/* Card content */
.menu-auction-card .card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-auction-card .card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-width: calc(100% - 55px); /* Leave room for status badge */
}

.menu-auction-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.menu-auction-card .card-bid {
  font-size: 1rem;
  font-weight: 700;
  color: #f29c1f;
}

.menu-auction-card .card-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.menu-auction-card .card-time i {
  font-size: 0.65rem;
}

/* Status badge - floating top right */
.menu-auction-card .status-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-auction-card .status-badge.status-leading {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.menu-auction-card .status-badge.status-won {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.3);
  animation: pulse-glow 2s infinite;
}

.menu-auction-card .status-badge.status-outbid {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: pulse-urgent 1.5s infinite;
}

.menu-auction-card .status-badge.status-lost {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.menu-auction-card .status-badge.status-following {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.menu-auction-card .status-badge.status-upcoming {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
  50% { box-shadow: 0 0 10px 2px rgba(251, 191, 36, 0.2); }
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Right column for time and remove */
.menu-auction-card .card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.menu-auction-card .card-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-auction-card .card-remove:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

.menu-auction-card .card-remove i {
  font-size: 0.6rem;
}

/* Section headers in menu */
.menu-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-section-header .section-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.75rem;
}

.menu-section-header .section-icon.active { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.menu-section-header .section-icon.ended { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }

.menu-section-header .section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
}

.menu-section-header .section-count {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Empty state */
.menu-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.menu-empty-state .empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.1), rgba(242, 156, 31, 0.05));
  border: 2px dashed rgba(242, 156, 31, 0.3);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.menu-empty-state .empty-icon i {
  font-size: 2rem;
  color: rgba(242, 156, 31, 0.5);
}

.menu-empty-state h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.menu-empty-state p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.menu-empty-state .btn {
  background: linear-gradient(135deg, #f29c1f, #e68a0a);
  border: none;
  color: #000;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.menu-empty-state .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(242, 156, 31, 0.4);
}

/* Filter footer redesign */
#auctionsMenuFilterFooter {
  background: rgba(0, 0, 0, 0.3) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.75rem 1rem !important;
}

#auctionsMenuFilterFooter .btn-group .btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  transition: all 0.2s ease;
}

#auctionsMenuFilterFooter .btn-group .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#auctionsMenuFilterFooter .btn-group .btn.btn-primary {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.3), rgba(242, 156, 31, 0.2));
  border-color: rgba(242, 156, 31, 0.4);
  color: #f29c1f;
}

#auctionsMenuFilterFooter .btn-group .btn .badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: inherit !important;
  font-size: 0.65rem;
}

/* Unpaid auctions alert redesign */
#unpaidAuctionsInfo.alert {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05)) !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
  color: #fcd34d !important;
}

#unpaidAuctionsInfo .btn-info {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none;
  color: #000;
  font-weight: 600;
}

/* Light mode adjustments */
[data-bs-theme="light"] #shoppingCart.offcanvas {
  background: rgba(255, 255, 255, 0.95);
  border-left-color: rgba(242, 156, 31, 0.3);
}

[data-bs-theme="light"] #shoppingCart .offcanvas-header {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.1) 0%, rgba(242, 156, 31, 0.02) 100%);
  border-bottom-color: rgba(242, 156, 31, 0.15);
}

[data-bs-theme="light"] #shoppingCart .btn-close {
  filter: none;
}

[data-bs-theme="light"] .menu-auction-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .menu-auction-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(242, 156, 31, 0.4);
}

[data-bs-theme="light"] .menu-auction-card .card-title {
  color: #1f2937;
}

[data-bs-theme="light"] .menu-auction-card .card-time {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .menu-auction-card .card-remove {
  color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .menu-auction-card .card-remove:hover {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
}

[data-bs-theme="light"] .menu-auction-card .card-bid {
  color: #d97706;
}

[data-bs-theme="light"] .menu-auction-card .status-badge.status-leading {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.3);
}

[data-bs-theme="light"] .menu-auction-card .status-badge.status-won {
  background: rgba(251, 191, 36, 0.15);
  color: #b45309;
  border-color: rgba(251, 191, 36, 0.4);
}

[data-bs-theme="light"] .menu-auction-card .status-badge.status-outbid {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.3);
}

[data-bs-theme="light"] .menu-auction-card .status-badge.status-lost {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.3);
}

[data-bs-theme="light"] .menu-auction-card .status-badge.status-following {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.3);
}

[data-bs-theme="light"] .menu-auction-card .status-badge.status-upcoming {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
  border-color: rgba(139, 92, 246, 0.3);
}

[data-bs-theme="light"] .menu-section-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .menu-section-header .section-title {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .menu-empty-state h5 {
  color: #1f2937;
}

[data-bs-theme="light"] .menu-empty-state p {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] #auctionsMenuFilterFooter {
  background: rgba(0, 0, 0, 0.03) !important;
  border-top-color: rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="light"] #auctionsMenuFilterFooter .btn-group .btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
}

/* ===== END MINE AUKSJONER MENU REDESIGN ===== */

/* ===== FILTER SIDEBAR GLASSMORPHISM ===== */
#filterSidebar.offcanvas {
  background: rgba(20, 20, 25, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(242, 156, 31, 0.2);
  width: 340px;
  max-width: 85vw;
}

#filterSidebar .offcanvas-header {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.15) 0%, rgba(242, 156, 31, 0.05) 100%);
  border-bottom: 1px solid rgba(242, 156, 31, 0.2);
  padding: 1.25rem 1.5rem;
}

#filterSidebar .offcanvas-title {
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #f29c1f 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#filterSidebar .btn-close {
  filter: invert(1);
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#filterSidebar .btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

#filterSidebar .offcanvas-body {
  padding: 1.5rem !important;
}

/* Category box inside filter sidebar - override global styles */
#filterSidebar .category-box {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(242, 156, 31, 0.15) !important;
  padding: 1.25rem !important;
  box-shadow: none !important;
  margin: 0 !important;
  border-radius: 12px !important;
}

#filterSidebar .category-box h4 {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

#filterSidebar .category-box ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#filterSidebar .category-box ul li {
  margin-bottom: 0 !important;
}

/* Category cards in filter sidebar */
#filterSidebar .category-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.875rem 1rem;
  transition: all 0.2s ease;
}

#filterSidebar .category-card:hover {
  background: rgba(242, 156, 31, 0.1);
  border-color: rgba(242, 156, 31, 0.4);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(242, 156, 31, 0.15);
}

#filterSidebar .category-card i {
  color: var(--1ore-primary);
  opacity: 0.8;
}

#filterSidebar .category-card:hover i {
  opacity: 1;
}

#filterSidebar .category-card span {
  color: rgba(255, 255, 255, 0.9);
}

/* Light mode filter sidebar */
[data-bs-theme="light"] #filterSidebar.offcanvas {
  background: rgba(255, 255, 255, 0.96);
  border-right-color: rgba(242, 156, 31, 0.25);
}

[data-bs-theme="light"] #filterSidebar .offcanvas-header {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.08) 0%, rgba(242, 156, 31, 0.02) 100%);
  border-bottom-color: rgba(242, 156, 31, 0.15);
}

[data-bs-theme="light"] #filterSidebar .btn-close {
  filter: none;
}

[data-bs-theme="light"] #filterSidebar .category-box {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] #filterSidebar .category-box h4 {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] #filterSidebar .category-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] #filterSidebar .category-card:hover {
  background: rgba(242, 156, 31, 0.08);
  border-color: rgba(242, 156, 31, 0.4);
}

[data-bs-theme="light"] #filterSidebar .category-card span {
  color: rgba(0, 0, 0, 0.85);
}

/* ===== END FILTER SIDEBAR GLASSMORPHISM ===== */

/* ===== SEARCH OFFCANVAS GLASSMORPHISM ===== */
#searchBox.offcanvas {
  background: rgba(20, 20, 25, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(242, 156, 31, 0.2);
}

#searchBox .offcanvas-header {
  background: linear-gradient(180deg, rgba(242, 156, 31, 0.08) 0%, transparent 100%);
}

#searchBox .offcanvas-header form {
  background: transparent;
}

#searchBox .form-control {
  background: transparent !important;
  color: #fff;
  border: none;
}

#searchBox .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#searchBox .form-control:focus {
  box-shadow: none;
  color: #fff;
}

#searchBox .btn-close {
  filter: invert(1);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

#searchBox .btn-close:hover {
  opacity: 1;
}

#searchBox .offcanvas-body {
  background: transparent;
}

#searchBox #searchDefaultState svg {
  color: var(--1ore-primary) !important;
  opacity: 0.4;
}

#searchBox #searchDefaultState h6 {
  color: rgba(255, 255, 255, 0.9);
}

#searchBox #searchDefaultState p {
  color: rgba(255, 255, 255, 0.5);
}

/* Search results styling */
#searchBox #searchResults {
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 156, 31, 0.4) rgba(255, 255, 255, 0.05);
}

#searchBox #searchResults::-webkit-scrollbar {
  width: 6px;
}

#searchBox #searchResults::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

#searchBox #searchResults::-webkit-scrollbar-thumb {
  background: rgba(242, 156, 31, 0.4);
  border-radius: 3px;
}

/* Light mode search */
[data-bs-theme="light"] #searchBox.offcanvas {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(242, 156, 31, 0.2);
}

[data-bs-theme="light"] #searchBox .offcanvas-header {
  background: linear-gradient(180deg, rgba(242, 156, 31, 0.05) 0%, transparent 100%);
}

[data-bs-theme="light"] #searchBox .form-control {
  color: #1f2937;
}

[data-bs-theme="light"] #searchBox .form-control::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] #searchBox .btn-close {
  filter: none;
}

[data-bs-theme="light"] #searchBox #searchDefaultState h6 {
  color: #1f2937;
}

[data-bs-theme="light"] #searchBox #searchDefaultState p {
  color: rgba(0, 0, 0, 0.5);
}

/* ===== END SEARCH OFFCANVAS GLASSMORPHISM ===== */

/* ===== SEARCH MODAL (Economy-panel style glassmorphism) ===== */
/* 70-80% bredde, sentrert, economy-panel styling */

.search-modal-dialog {
  max-width: 75%;
  width: 75%;
  margin: 2rem auto;
}

@media (max-width: 991.98px) {
  .search-modal-dialog {
    max-width: 95%;
    width: 95%;
    margin: 1rem auto;
  }
}

.search-modal-content {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 20px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 25px 60px -12px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(242, 156, 31, 0.06);
  overflow: hidden;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

#searchModal {
  overflow: hidden;
}

#searchModal .modal-dialog {
  overflow: hidden;
}

/* Top glow line (economy-panel style) */
.search-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.5) 20%, 
    rgba(247, 210, 125, 0.7) 50%, 
    rgba(242, 156, 31, 0.5) 80%, 
    transparent);
  border-radius: 2px;
  z-index: 10;
}

/* Search Header with Input */
.search-modal-header {
  position: relative; /* Needed for autocomplete dropdown positioning */
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(242, 156, 31, 0.08) 0%, transparent 100%);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 0.75rem;
}

.search-input-icon {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* Badges input container */
.search-badges-input {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
}

.search-badges-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.search-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  background: rgba(242, 156, 31, 0.2);
  border: 1px solid rgba(242, 156, 31, 0.4);
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: #f29c1f;
  white-space: nowrap;
  animation: badgeFadeIn 0.15s ease-out;
}

@keyframes badgeFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.search-badge-icon {
  font-size: 0.75rem;
  opacity: 0.7;
}

.search-badge-text {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-badge-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s;
  font-size: 0.625rem;
}

.search-badge-remove:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.search-badge.badge-category {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #818cf8;
}

.search-badge.badge-seller {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.search-modal-input {
  flex: 1;
  min-width: 120px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.125rem;
  color: #fff;
  padding: 0.5rem 0;
}

.search-modal-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-modal-input:focus {
  outline: none;
}

.search-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.15s;
}

.search-clear-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.search-modal-close {
  filter: invert(1);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.search-modal-close:hover {
  opacity: 1;
}

/* Search Body */
.search-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 156, 31, 0.4) rgba(255, 255, 255, 0.05);
}

.search-modal-body::-webkit-scrollbar {
  width: 6px;
}

.search-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.search-modal-body::-webkit-scrollbar-thumb {
  background: rgba(242, 156, 31, 0.4);
  border-radius: 3px;
}

/* Default State: Columns layout — stacked vertically */
.search-columns {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-column {
  min-width: 0; /* Prevent overflow */
}

.search-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.search-section-header i {
  font-size: 0.875rem;
}

/* Trending Tags */
.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.search-tag:hover {
  background: rgba(242, 156, 31, 0.15);
  border-color: rgba(242, 156, 31, 0.4);
  color: var(--1ore-primary);
}

.search-tag-placeholder {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Saved Searches List — 2-col card grid with scroll */
.search-saved-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 156, 31, 0.3) transparent;
  padding-right: 2px;
}

@media (max-width: 575.98px) {
  .search-saved-list {
    grid-template-columns: 1fr;
    max-height: 260px;
  }
}

/* Placeholder spans full width */
.search-saved-list .search-tag-placeholder {
  grid-column: 1 / -1;
}

.search-saved-list::-webkit-scrollbar {
  width: 4px;
}
.search-saved-list::-webkit-scrollbar-track {
  background: transparent;
}
.search-saved-list::-webkit-scrollbar-thumb {
  background: rgba(242, 156, 31, 0.3);
  border-radius: 4px;
}
.search-saved-list::-webkit-scrollbar-thumb:hover {
  background: rgba(242, 156, 31, 0.5);
}

/* Compact card for search modal */
.search-saved-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-saved-card:hover {
  background: rgba(242, 156, 31, 0.08);
  border-color: rgba(242, 156, 31, 0.3);
  transform: translateY(-1px);
}

.search-saved-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Kebab menu button */
.search-saved-kebab {
  flex-shrink: 0;
  margin-left: auto;
}

.search-saved-kebab-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  line-height: 1;
}

.search-saved-card:hover .search-saved-kebab-btn {
  color: rgba(255, 255, 255, 0.7);
}

.search-saved-kebab-btn:hover {
  color: var(--1ore-primary) !important;
  background: rgba(242, 156, 31, 0.1);
}

.search-saved-kebab .dropdown-menu {
  font-size: 0.8rem;
  min-width: 160px;
  border-radius: 8px;
  padding: 0.25rem 0;
}

.search-saved-kebab .dropdown-item {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

.search-saved-kebab .dropdown-item.active {
  background: rgba(242, 156, 31, 0.15);
  color: var(--1ore-primary);
}

.search-saved-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.search-saved-card-title i {
  font-size: 0.7rem;
  flex-shrink: 0;
}

.search-saved-query {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(242, 156, 31, 0.1);
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.8);
}

.search-saved-query i {
  color: var(--1ore-primary);
  opacity: 0.7;
  font-size: 0.65rem;
}

.search-saved-query strong {
  color: var(--1ore-primary);
  font-weight: 600;
}

.search-saved-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.search-saved-filter {
  font-size: 0.6rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.search-saved-filter i {
  font-size: 0.55rem;
  opacity: 0.7;
}

.search-saved-filter.category {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.search-saved-filter.seller {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.search-saved-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
}

.search-saved-card-footer > span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-saved-card-footer > span i {
  font-size: 0.6rem;
}

.search-saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.search-saved-item:hover {
  background: rgba(242, 156, 31, 0.1);
  border-color: rgba(242, 156, 31, 0.3);
}

.search-saved-name {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-saved-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.375rem;
  background: rgba(242, 156, 31, 0.2);
  color: var(--1ore-primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  margin-left: 0.5rem;
}

.search-saved-delete {
  opacity: 0;
  padding: 0.2rem 0.4rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  font-size: 0.7rem;
}

.search-saved-item:hover .search-saved-delete,
.search-saved-card:hover .search-saved-delete {
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
}

.search-saved-delete:hover {
  color: #ef4444 !important;
  opacity: 1;
  transform: scale(1.1);
}

/* Search History */
.search-history-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-history-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.search-history-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.search-history-item i {
  font-size: 0.6875rem;
  opacity: 0.5;
}

/* Loading State */
.search-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

/* Results State */
.search-results-header {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Sticky header wrapper (filter-bar + results count) */
.search-sticky-header {
  position: sticky;
  top: -1.5rem; /* Offset modal-body padding */
  z-index: 10;
  background: rgba(20, 20, 30, 0.98);
  backdrop-filter: blur(10px);
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-sticky-header .search-filters-bar {
  margin-bottom: 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.search-sticky-header .search-results-header {
  margin-bottom: 0;
}

[data-bs-theme="light"] .search-sticky-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .search-results-header {
  color: rgba(0, 0, 0, 0.5);
}

/* Infinite scroll loader */
.search-modal-loader {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.search-modal-all-loaded {
  text-align: center;
  padding: 1rem;
}

/* Search results use Bootstrap row/col - same as main auction grid */
.search-results-grid {
  /* Let Bootstrap .row handle flex layout */
  overflow-y: auto;
  /* Padding to prevent hover effects (scale/shadow) from being clipped */
  padding: 8px;
  margin: -8px;
}

/* Toned-down hover effect inside search modal to avoid clipping */
.search-results-grid .auction-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 8px 24px rgba(242, 156, 31, 0.2),
    0 0 12px rgba(242, 156, 31, 0.1);
}

/* Search card link wrapper (legacy JSON-built cards) */
.search-auction-card {
  text-decoration: none !important;
  color: inherit;
  display: block;
  opacity: 0;
  animation: searchCardFadeIn 0.3s ease-out forwards;
}

/* ===== COMPACT CARD STYLING FOR SEARCH MODAL ===== */
/* Both server-rendered and legacy cards need smaller text in the narrow modal */
.search-results-grid .auction-card .card-title {
  font-size: 0.85rem;
}

.search-results-grid .auction-card .auction-highest-bid {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-results-grid .auction-card .time-display {
  font-size: 0.75rem;
}

.search-results-grid .auction-card .bid-count-display {
  font-size: 0.75rem;
}

.search-results-grid .auction-card .card-body {
  padding: 0.5rem 0.75rem !important;
}

.search-results-grid .auction-card .auction-price-section {
  margin-bottom: 0.25rem !important;
}

.search-results-grid .auction-card .auction-time-section {
  font-size: 0.75rem;
}

/* Fade-in animation for server-rendered cards */
.search-results-grid .col[data-card-auction-id] {
  opacity: 0;
  animation: searchCardFadeIn 0.3s ease-out forwards;
}

/* Staggered animation delay via nth-child */
.search-results-grid .col[data-card-auction-id]:nth-child(1) { animation-delay: 0s; }
.search-results-grid .col[data-card-auction-id]:nth-child(2) { animation-delay: 0.03s; }
.search-results-grid .col[data-card-auction-id]:nth-child(3) { animation-delay: 0.06s; }
.search-results-grid .col[data-card-auction-id]:nth-child(4) { animation-delay: 0.09s; }
.search-results-grid .col[data-card-auction-id]:nth-child(5) { animation-delay: 0.12s; }
.search-results-grid .col[data-card-auction-id]:nth-child(n+6) { animation-delay: 0.15s; }

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

/* Results Footer - sticky at bottom */
.search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(20px);
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .search-modal-footer {
    flex-direction: column;
    padding: 0.625rem 1rem;
  }
  
  .search-modal-footer .btn {
    width: 100%;
  }
}

[data-bs-theme="light"] .search-modal-footer {
  background: rgba(255, 255, 255, 0.95);
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* No Results State */
.search-no-results-state {
  color: rgba(255, 255, 255, 0.7);
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* ===== SEARCH MODAL LIGHT MODE ===== */
[data-bs-theme="light"] .search-modal-content {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(242, 156, 31, 0.2);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 25px 60px -12px rgba(0, 0, 0, 0.15),
    0 0 50px rgba(242, 156, 31, 0.08);
}

[data-bs-theme="light"] .search-modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, rgba(242, 156, 31, 0.05) 0%, transparent 100%);
}

[data-bs-theme="light"] .search-input-icon {
  color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .search-modal-input {
  color: #1f2937;
}

[data-bs-theme="light"] .search-modal-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .search-badge-remove {
  color: rgba(0, 0, 0, 0.45);
}

[data-bs-theme="light"] .search-badge-remove:hover {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .search-clear-btn {
  color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .search-clear-btn:hover {
  color: rgba(0, 0, 0, 0.75);
}

[data-bs-theme="light"] .search-modal-close {
  filter: none;
}

[data-bs-theme="light"] .search-section-header {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .search-tag {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
}

[data-bs-theme="light"] .search-tag:hover {
  background: rgba(242, 156, 31, 0.1);
  border-color: rgba(242, 156, 31, 0.4);
  color: var(--1ore-primary);
}

[data-bs-theme="light"] .search-tag-placeholder {
  color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .search-saved-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .search-saved-card:hover {
  background: rgba(242, 156, 31, 0.06);
  border-color: rgba(242, 156, 31, 0.3);
}

[data-bs-theme="light"] .search-saved-card-title {
  color: #1f2937;
}

[data-bs-theme="light"] .search-saved-query {
  background: rgba(242, 156, 31, 0.08);
  color: #374151;
}

[data-bs-theme="light"] .search-saved-filter {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .search-saved-card-footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .search-saved-kebab-btn {
  color: rgba(0, 0, 0, 0.25);
}

[data-bs-theme="light"] .search-saved-card:hover .search-saved-kebab-btn {
  color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .search-saved-delete {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .search-saved-card:hover .search-saved-delete {
  color: rgba(0, 0, 0, 0.7);
}

[data-bs-theme="light"] .search-saved-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .search-saved-item:hover {
  background: rgba(242, 156, 31, 0.08);
  border-color: rgba(242, 156, 31, 0.3);
}

[data-bs-theme="light"] .search-saved-name {
  color: #1f2937;
}

[data-bs-theme="light"] .search-history-section {
  border-top-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .search-history-item {
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .search-history-item:hover {
  border-color: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .search-results-header {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .search-result-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .search-result-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(242, 156, 31, 0.3);
}

[data-bs-theme="light"] .search-result-image {
  background: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .search-result-name {
  color: #1f2937;
}

[data-bs-theme="light"] .search-result-category {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .search-result-time {
  color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .search-results-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .search-no-results-state {
  color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .search-modal-body {
  scrollbar-color: rgba(242, 156, 31, 0.4) rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .search-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .search-modal-body::-webkit-scrollbar-thumb {
  background: rgba(242, 156, 31, 0.4);
}

/* ===== SEARCH AUTOCOMPLETE ===== */
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(30, 30, 40, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
}

.search-autocomplete-item:hover,
.search-autocomplete-item.active {
  background: rgba(242, 156, 31, 0.15);
  color: var(--1ore-primary);
}

.search-autocomplete-item i {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  width: 1.25rem;
  text-align: center;
}

.search-autocomplete-item:hover i,
.search-autocomplete-item.active i {
  color: var(--1ore-primary);
}

.search-autocomplete-text {
  flex: 1;
  font-size: 0.9375rem;
}

.search-autocomplete-type {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-autocomplete-hint {
  font-size: 0.6875rem;
  color: rgba(242, 156, 31, 0.6);
  margin-left: auto;
  font-style: italic;
}

/* Light mode autocomplete */
[data-bs-theme="light"] .search-autocomplete {
  background: rgba(255, 255, 255, 0.98);
  border-top-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="light"] .search-autocomplete-item {
  color: #1f2937;
}

[data-bs-theme="light"] .search-autocomplete-item:hover,
[data-bs-theme="light"] .search-autocomplete-item.active {
  background: rgba(242, 156, 31, 0.1);
}

[data-bs-theme="light"] .search-autocomplete-item i {
  color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .search-autocomplete-type {
  color: rgba(0, 0, 0, 0.4);
}

/* ===== END SEARCH MODAL ===== */

/* ===== VIEWPRODUCT BID PANEL GLASSMORPHISM ===== */
/* Matching mypages economy-kpi-card depth: blur(40px), 3-layer shadow, gold glow */

.bid-stats-row {
  /* Container for the bid/time cards */
}

.bid-stats-row .card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 24px -8px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(242, 156, 31, 0.05);
}

/* Gold glow line on top */
.bid-stats-row .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.4) 20%, 
    rgba(247, 210, 125, 0.6) 50%, 
    rgba(242, 156, 31, 0.4) 80%, 
    transparent);
  border-radius: 2px;
  z-index: 1;
}

.bid-stats-row .card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 156, 31, 0.35);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 12px 32px -8px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(242, 156, 31, 0.12);
}

.bid-stats-row .card .card-body {
  padding: 0.75rem 0.75rem;
}

/* KPI-style label */
.bid-stats-row .bid-kpi-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.2rem;
}

/* KPI-style value — prominent but compact */
.bid-stats-row .bid-kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.15rem;
}

/* KPI sub-info */
.bid-stats-row .bid-kpi-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}

.bid-stats-row .bid-kpi-sub i {
  opacity: 0.7;
}

/* Current bid card - special gold accent */
.bid-stats-row .card.border-warning {
  border: 1px solid rgba(242, 156, 31, 0.3) !important;
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.08) 0%, rgba(20, 20, 30, 0.85) 100%);
}

.bid-stats-row .card.border-warning:hover {
  border-color: rgba(242, 156, 31, 0.5) !important;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 16px 40px -8px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.2);
}

/* Bidding interface card — premium glassmorphism */
.bid-interface-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.06);
}

/* Gold glow line */
.bid-interface-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.5) 20%, 
    rgba(247, 210, 125, 0.7) 50%, 
    rgba(242, 156, 31, 0.5) 80%, 
    transparent);
  border-radius: 2px;
  z-index: 1;
}

.bid-interface-card .card-body {
  padding: 0.85rem;
}

/* User status alert in bid panel */
.bid-interface-card .alert-light {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  padding: 0.6rem 0.85rem;
}

.bid-interface-card .alert-light .small.text-muted {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.bid-interface-card .alert-light .fw-semibold {
  font-size: 1rem;
  font-weight: 700;
}

/* Bid button glow effect */
.bid-interface-card .btn-warning {
  position: relative;
  background: linear-gradient(135deg, #f29c1f 0%, #e8890c 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(242, 156, 31, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bid-interface-card .btn-warning:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(242, 156, 31, 0.5);
}

.bid-interface-card .btn-warning:active:not(:disabled) {
  transform: translateY(0);
}

/* Follow button styling */
.bid-interface-card .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.bid-interface-card .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.bid-interface-card .btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Select dropdown styling */
.bid-interface-card .form-select {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.bid-interface-card .form-select:focus {
  border-color: rgba(242, 156, 31, 0.5);
  box-shadow: 0 0 0 3px rgba(242, 156, 31, 0.15);
}

.bid-interface-card .form-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* Status badges — match economy style */
.bid-interface-card .badge.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
}

.bid-interface-card .badge.bg-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
}

.bid-interface-card .badge.bg-secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
}

/* Light mode bid panel */
[data-bs-theme="light"] .bid-stats-row .card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(242, 156, 31, 0.2);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 8px 24px -8px rgba(0, 0, 0, 0.08),
    0 0 40px rgba(242, 156, 31, 0.04);
}

[data-bs-theme="light"] .bid-stats-row .card.border-warning {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.06) 0%, rgba(255, 255, 255, 0.95) 100%);
}

[data-bs-theme="light"] .bid-stats-row .bid-kpi-label {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .bid-stats-row .bid-kpi-sub {
  color: rgba(0, 0, 0, 0.45);
}

[data-bs-theme="light"] .bid-interface-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(242, 156, 31, 0.2);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.08),
    0 0 50px rgba(242, 156, 31, 0.04);
}

[data-bs-theme="light"] .bid-interface-card .alert-light {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .bid-interface-card .form-select {
  background-color: #fff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #1f2937;
}

[data-bs-theme="light"] .bid-interface-card .form-label {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .bid-interface-card .btn-outline-secondary {
  border-color: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.7);
}

[data-bs-theme="light"] .bid-interface-card .btn-outline-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2937;
}

/* ===== END VIEWPRODUCT BID PANEL GLASSMORPHISM ===== */

/* ===== VIEWPRODUCT IMAGE GALLERY CARD ===== */
/* Wraps the swiper gallery + thumbnails in a premium glass card */
.product-gallery-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 0.5rem;
  padding-bottom: 0.25rem;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.06);
}

/* Gold glow line */
.product-gallery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.4) 20%, 
    rgba(247, 210, 125, 0.6) 50%, 
    rgba(242, 156, 31, 0.4) 80%, 
    transparent);
  border-radius: 2px;
  z-index: 1;
}

/* Main image area — rounded inside the card */
.product-gallery-card .swiper:first-of-type {
  border-radius: 10px;
  overflow: hidden;
}

/* Thumbnails row inside gallery card – fixed height + overflow breaks layout-thrash loop */
.product-gallery-card .swiper-thumbs {
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  height: 80px;
  overflow: hidden;
}

.product-gallery-card .swiper-thumb {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.6;
}

/* Prevent layout shift from slow/missing thumbnail images */
.swiper-thumbs .swiper-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-card .swiper-thumb:hover {
  opacity: 0.9;
  border-color: rgba(242, 156, 31, 0.3);
}

.product-gallery-card .swiper-slide-thumb-active .swiper-thumb,
.product-gallery-card .swiper-thumb.swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--1ore-primary);
}

/* Nav buttons inside gallery */
.product-gallery-card .btn-prev,
.product-gallery-card .btn-next {
  background: rgba(20, 20, 30, 0.7) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  transition: all 0.2s ease;
}

.product-gallery-card .btn-prev:hover,
.product-gallery-card .btn-next:hover {
  background: rgba(242, 156, 31, 0.2) !important;
  border-color: rgba(242, 156, 31, 0.4) !important;
}

/* Light mode gallery */
[data-bs-theme="light"] .product-gallery-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(242, 156, 31, 0.2);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.08),
    0 0 50px rgba(242, 156, 31, 0.04);
}

[data-bs-theme="light"] .product-gallery-card .btn-prev,
[data-bs-theme="light"] .product-gallery-card .btn-next {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #1f2937 !important;
}

[data-bs-theme="light"] .product-gallery-card .btn-prev:hover,
[data-bs-theme="light"] .product-gallery-card .btn-next:hover {
  background: rgba(242, 156, 31, 0.1) !important;
  border-color: rgba(242, 156, 31, 0.3) !important;
}

[data-bs-theme="light"] .product-gallery-card .swiper-thumb:hover {
  border-color: rgba(242, 156, 31, 0.3);
}
/* ===== END VIEWPRODUCT IMAGE GALLERY CARD ===== */

/* ===== VIEWPRODUCT AUCTION DETAILS GLASSMORPHISM ===== */
/* Premium glassmorphism matching mypages-card depth */
.auction-details-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.06);
}

/* Gold glow line */
.auction-details-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.5) 20%, 
    rgba(247, 210, 125, 0.7) 50%, 
    rgba(242, 156, 31, 0.5) 80%, 
    transparent);
  border-radius: 2px;
  z-index: 1;
}

.auction-details-card .card-header {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.12) 0%, rgba(242, 156, 31, 0.03) 100%);
  border-bottom: 1px solid rgba(242, 156, 31, 0.2);
  padding: 0.6rem 1rem;
}

.auction-details-card .card-header h5,
.auction-details-card .card-header h6 {
  background: linear-gradient(135deg, #f29c1f 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0;
}

.auction-details-card .card-header h6 i {
  -webkit-text-fill-color: var(--1ore-primary);
  font-size: 0.8rem;
}

.auction-details-card .card-body {
  padding: 0.75rem;
}

.auction-details-card .table {
  margin-bottom: 0;
}

.auction-details-card .table td {
  border: none;
  padding: 0.5rem 0;
}

/* Accordion styling inside auction details */
.auction-details-card .accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: rgba(255, 255, 255, 0.1);
}

.auction-details-card .accordion-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px !important;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.auction-details-card .accordion-item:last-child {
  margin-bottom: 0;
}

.auction-details-card .accordion-button {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.auction-details-card .accordion-button:not(.collapsed) {
  background: rgba(242, 156, 31, 0.1);
  color: var(--1ore-primary);
  box-shadow: none;
}

.auction-details-card .accordion-button:hover {
  background: rgba(242, 156, 31, 0.08);
}

.auction-details-card .accordion-button::after {
  filter: invert(1);
  opacity: 0.5;
}

.auction-details-card .accordion-button:not(.collapsed)::after {
  filter: invert(0.6) sepia(1) saturate(5) hue-rotate(10deg);
  opacity: 1;
}

.auction-details-card .accordion-button i {
  color: var(--1ore-primary);
  opacity: 0.8;
  font-size: 0.8rem;
}

.auction-details-card .accordion-body {
  padding: 0.75rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Bid history table */
.auction-details-card .table thead th {
  border: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.5rem 0;
}

.auction-details-card .table tbody td {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auction-details-card .table tbody tr:last-child td {
  border-bottom: none;
}

/* Purchase info cards */
.purchase-info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
  transition: all 0.2s ease;
}

.purchase-info-card:hover {
  border-color: rgba(242, 156, 31, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.purchase-info-card.info-fees {
  border-left: 3px solid var(--1ore-primary);
}

.purchase-info-card.info-shipping {
  border-left: 3px solid #10b981;
}

.purchase-info-card .info-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.purchase-info-card.info-fees .info-icon {
  background: rgba(242, 156, 31, 0.15);
  color: var(--1ore-primary);
}

.purchase-info-card.info-shipping .info-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.purchase-info-card .info-title {
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

.purchase-info-card .info-details {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.4;
}

/* Light mode */
[data-bs-theme="light"] .auction-details-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(242, 156, 31, 0.2);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.08),
    0 0 50px rgba(242, 156, 31, 0.04);
}

[data-bs-theme="light"] .auction-details-card .card-header {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.1) 0%, rgba(242, 156, 31, 0.03) 100%);
  border-bottom-color: rgba(242, 156, 31, 0.18);
}

[data-bs-theme="light"] .auction-details-card .accordion-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .auction-details-card .accordion-button {
  color: #1f2937;
}

[data-bs-theme="light"] .auction-details-card .accordion-button:not(.collapsed) {
  background: rgba(242, 156, 31, 0.08);
}

[data-bs-theme="light"] .auction-details-card .accordion-button::after {
  filter: none;
}

[data-bs-theme="light"] .auction-details-card .table thead th {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .auction-details-card .table tbody td {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .purchase-info-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .purchase-info-card:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .purchase-info-card .info-details {
  color: rgba(0, 0, 0, 0.6);
}

/* Auction info badges — compact */
.auction-info-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.auction-info-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(242, 156, 31, 0.3);
}

.auction-info-badge > i {
  font-size: 0.8rem;
  color: var(--1ore-primary);
  opacity: 0.75;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.auction-info-badge > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.auction-info-badge .badge-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.2;
  font-weight: 500;
}

.auction-info-badge .badge-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-bs-theme="light"] .auction-info-badge {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .auction-info-badge:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .auction-info-badge .badge-label {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .auction-info-badge .badge-value {
  color: #1f2937;
}

/* ===== END VIEWPRODUCT AUCTION DETAILS GLASSMORPHISM ===== */

/* ===== VIEWPRODUCT PROVENIENS CARD GLASSMORPHISM ===== */
/* Premium glassmorphism matching mypages depth — green accent for proveniens */
.proveniens-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(16, 185, 129, 0.06);
}

/* Green glow line */
.proveniens-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(16, 185, 129, 0.4) 20%, 
    rgba(52, 211, 153, 0.7) 50%, 
    rgba(16, 185, 129, 0.4) 80%, 
    transparent);
  border-radius: 2px;
  z-index: 1;
}

.proveniens-card .card-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.03) 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.6rem 1rem;
}

.proveniens-card .card-header h6 {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}

.proveniens-card .card-header h6 i {
  color: #10b981;
}

.proveniens-card .card-header .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.proveniens-card .card-header .btn-outline-light:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #fff;
}

/* Proveniens preview cards (other auctions) */
.proveniens-preview-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.7rem;
}

.proveniens-preview-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.proveniens-preview-card .card-body {
  padding: 0.4rem;
}

.proveniens-preview-card .card-title {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.proveniens-preview-card .proveniens-meta {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

.proveniens-preview-card .proveniens-meta .text-warning {
  color: var(--1ore-primary) !important;
}

.proveniens-card .btn-outline-success {
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
  border-radius: 10px;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.proveniens-card .btn-outline-success:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.6);
  color: #fff;
  transform: translateY(-1px);
}

/* Light mode proveniens */
[data-bs-theme="light"] .proveniens-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.08),
    0 0 50px rgba(16, 185, 129, 0.04);
}

[data-bs-theme="light"] .proveniens-card .card-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-bottom-color: rgba(16, 185, 129, 0.15);
}

[data-bs-theme="light"] .proveniens-card .card-header h6 {
  color: #1f2937;
}

[data-bs-theme="light"] .proveniens-card .card-header .btn-outline-light {
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

[data-bs-theme="light"] .proveniens-card .card-header .btn-outline-light:hover {
  background: rgba(16, 185, 129, 0.1);
}

[data-bs-theme="light"] .proveniens-preview-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .proveniens-preview-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .proveniens-preview-card .card-title {
  color: #1f2937;
}

[data-bs-theme="light"] .proveniens-preview-card .proveniens-meta {
  color: rgba(0, 0, 0, 0.5);
}
/* ===== END VIEWPRODUCT PROVENIENS CARD ===== */

/* ===== VIEWPRODUCT DESCRIPTION CARD GLASSMORPHISM ===== */
/* Premium glassmorphism matching mypages depth — blue accent for description */
.product-description-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(59, 130, 246, 0.06);
}

/* Blue glow line */
.product-description-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.4) 20%, 
    rgba(96, 165, 250, 0.7) 50%, 
    rgba(59, 130, 246, 0.4) 80%, 
    transparent);
  border-radius: 2px;
  z-index: 1;
}

.product-description-card .card-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.03) 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.6rem 1rem;
}

.product-description-card .card-header h5 {
  background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin: 0;
  font-size: 0.85rem;
}

.product-description-card .card-header h5 i {
  -webkit-text-fill-color: #60a5fa;
}

.product-description-card .card-body {
  padding: 0.6rem 1rem;
}

.product-description-card .description-text {
  line-height: 1.5;
  max-height: 5.6em;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.product-description-card .description-fade {
  /* Handled by existing JS */
}

.product-description-card .btn-link {
  color: #60a5fa;
  font-size: 0.75rem;
  text-decoration: none;
}

.product-description-card .btn-link:hover {
  color: #93c5fd;
}

/* Light mode description */
[data-bs-theme="light"] .product-description-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.08),
    0 0 50px rgba(59, 130, 246, 0.04);
}

[data-bs-theme="light"] .product-description-card .card-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
  border-bottom-color: rgba(59, 130, 246, 0.15);
}

[data-bs-theme="light"] .product-description-card .card-header h5 {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-bs-theme="light"] .product-description-card .card-header h5 i {
  -webkit-text-fill-color: #2563eb;
}

[data-bs-theme="light"] .product-description-card .description-text {
  color: #374151;
}

[data-bs-theme="light"] .product-description-card .btn-link {
  color: #2563eb;
}
/* ===== END VIEWPRODUCT DESCRIPTION CARD ===== */

/* ===== VIEWPRODUCT MOBILE STICKY BAR GLASSMORPHISM ===== */
.mobile-bid-bar {
  background: rgba(20, 20, 30, 0.9);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border-top: 1px solid rgba(242, 156, 31, 0.15);
  z-index: 1040;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
}

.mobile-bid-bar .btn-warning {
  background: linear-gradient(135deg, #f29c1f 0%, #e8890c 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(242, 156, 31, 0.3);
}

.mobile-bid-bar .btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

[data-bs-theme="light"] .mobile-bid-bar {
  background: rgba(255, 255, 255, 0.92);
  border-top-color: rgba(242, 156, 31, 0.15);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
}

/* ================================================
   AUTH PAGES - Premium Immersive Glassmorphism
   /login/, /register/, /forgot-password/
   Fullscreen experience with animated orbs
   ================================================ */

/* Animated floating orbs keyframes */
@keyframes authOrbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -80px) scale(1.1); }
  50% { transform: translate(-30px, -120px) scale(0.95); }
  75% { transform: translate(70px, -40px) scale(1.05); }
}

@keyframes authOrbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 70px) scale(1.15); }
  66% { transform: translate(40px, 100px) scale(0.9); }
}

@keyframes authOrbFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-80px, -60px) rotate(180deg); }
}

@keyframes authPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

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

@keyframes authCardEntrance {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Auth page body background - covers entire viewport */
body:has(.auth-page) {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16161d 100%) !important;
}

[data-bs-theme="light"] body:has(.auth-page) {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff5e6 50%, #fffaf0 100%) !important;
}

/* Fullscreen immersive wrapper */
.auth-page {
  min-height: calc(100dvh - var(--navbar-height) - var(--footer-height-mobile) - 1rem);
  height: auto;
  max-height: none;
  display: flex;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

/* Light mode background */
[data-bs-theme="light"] .auth-page {
  background: transparent;
}

@media (min-width: 768px) {
  .auth-page {
    min-height: calc(100dvh - var(--navbar-height) - var(--footer-height) - 1rem);
  }
}

/* Animated background orbs */
.auth-bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: authPulse 4s ease-in-out infinite;
}

.auth-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(242, 156, 31, 0.4) 0%, transparent 70%);
  top: -100px;
  right: 15%;
  animation: authOrbFloat1 20s ease-in-out infinite, authPulse 4s ease-in-out infinite;
}

.auth-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(247, 210, 125, 0.35) 0%, transparent 70%);
  bottom: 10%;
  left: 10%;
  animation: authOrbFloat2 25s ease-in-out infinite, authPulse 5s ease-in-out infinite 1s;
}

.auth-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.3) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation: authOrbFloat3 15s ease-in-out infinite, authPulse 3s ease-in-out infinite 0.5s;
}

/* Subtle grid pattern overlay */
.auth-grid-pattern {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(242, 156, 31, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 156, 31, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

[data-bs-theme="light"] .auth-grid-pattern {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Split layout container */
.auth-split {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* Centered layout (no hero side) */
.auth-split.auth-split-centered {
  justify-content: center;
}

.auth-split.auth-split-centered .auth-form-side {
  flex: 0 0 auto;
  max-width: 480px;
  width: 100%;
}

/* Form side */
.auth-form-side {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: visible;
}

/* Hero side */
.auth-hero-side {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
}

/* ========== Premium Glassmorphism Card ========== */
.auth-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border-radius: 28px;
  border: 1px solid rgba(242, 156, 31, 0.15);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(242, 156, 31, 0.08);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  position: relative;
  animation: authCardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Light mode card */
[data-bs-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(242, 156, 31, 0.25);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 80px rgba(242, 156, 31, 0.1);
}

/* Card top glow line */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.6) 20%, 
    rgba(247, 210, 125, 0.8) 50%, 
    rgba(242, 156, 31, 0.6) 80%, 
    transparent);
  border-radius: 2px;
}

/* Card header */
.auth-header {
  text-align: center;
  padding: 1.75rem 2rem 0.75rem;
  position: relative;
}

.auth-header img {
  width: 64px;
  height: auto;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 20px rgba(242, 156, 31, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.auth-header img:hover {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 6px 25px rgba(242, 156, 31, 0.5));
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #f29c1f 0%, #ffd700 50%, #f7d27d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-bs-theme="light"] .auth-header h1 {
  background: linear-gradient(135deg, #d4820e 0%, #f29c1f 50%, #d4820e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-header p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
  font-size: 0.95rem;
}

[data-bs-theme="light"] .auth-header p {
  color: rgba(0, 0, 0, 0.6);
}

/* Card body */
.auth-body {
  padding: 0.75rem 2rem 1.5rem;
}

/* ========== Social Login Buttons ========== */
.btn-google {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  border-radius: 14px;
  padding: 0.8rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-google::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.btn-google:hover::before {
  transform: translateX(100%);
}

[data-bs-theme="light"] .btn-google {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .btn-google:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
  color: #000;
}

.btn-google img {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

/* BankID button (disabled state) */
.btn-bankid {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  border-radius: 14px;
  padding: 0.8rem 1.25rem;
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.btn-bankid img {
  width: 22px;
  height: 22px;
  margin-right: 12px;
  opacity: 0.5;
}

/* ========== Divider ========== */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 156, 31, 0.3), transparent);
}

.auth-divider span {
  padding: 0 1.25rem;
}

[data-bs-theme="light"] .auth-divider {
  color: rgba(0, 0, 0, 0.4);
}

/* ========== Form Styling ========== */
.auth-form .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

[data-bs-theme="light"] .auth-form .form-label {
  color: rgba(0, 0, 0, 0.7);
}

.auth-form .form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  font-size: 1rem;
  color: #fff;
  transition: all 0.3s ease;
}

.auth-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.auth-form .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(242, 156, 31, 0.5);
  box-shadow: 
    0 0 0 4px rgba(242, 156, 31, 0.1),
    0 0 20px rgba(242, 156, 31, 0.15);
  color: #fff;
}

[data-bs-theme="light"] .auth-form .form-control {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: #000;
}

[data-bs-theme="light"] .auth-form .form-control::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .auth-form .form-control:focus {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(242, 156, 31, 0.6);
  color: #000;
}

/* Submit button with shimmer effect */
.auth-form .btn-primary {
  background: linear-gradient(135deg, #f29c1f 0%, #e08a0a 100%);
  border: none;
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(242, 156, 31, 0.3);
}

.auth-form .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  animation: authShine 3s ease-in-out infinite;
}

.auth-form .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(242, 156, 31, 0.4),
    0 0 40px rgba(242, 156, 31, 0.2);
}

.auth-form .btn-primary:active {
  transform: translateY(-1px);
}

/* ========== Auth Links ========== */
.auth-links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-links a {
  color: rgba(242, 156, 31, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.auth-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f29c1f, #ffd700);
  transition: width 0.3s ease;
}

.auth-links a:hover {
  color: #ffd700;
}

.auth-links a:hover::after {
  width: 100%;
}

.auth-links span {
  color: rgba(255, 255, 255, 0.5);
}

[data-bs-theme="light"] .auth-links span {
  color: rgba(0, 0, 0, 0.5);
}

/* Auth link (single) */
.auth-link {
  color: var(--auth-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-link:hover {
  color: #ff8c42;
}

/* Auth footer */
.auth-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .auth-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* Info box */
.auth-info-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

[data-bs-theme="light"] .auth-info-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

/* ========== Hero Side Content ========== */
.auth-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 420px;
}

.auth-hero-content .hero-logo {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 10px 40px rgba(242, 156, 31, 0.4));
  animation: authPulse 3s ease-in-out infinite;
}

.auth-hero-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

[data-bs-theme="light"] .auth-hero-content h2 {
  background: linear-gradient(135deg, #1a1a2e 0%, #333 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-hero-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

[data-bs-theme="light"] .auth-hero-content p {
  color: rgba(0, 0, 0, 0.6);
}

/* Feature items */
.auth-hero-features {
  text-align: left;
}

.auth-hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.auth-hero-feature:last-child {
  margin-bottom: 0;
}

.auth-hero-feature:hover {
  background: rgba(242, 156, 31, 0.1);
  border-color: rgba(242, 156, 31, 0.2);
  transform: translateX(8px);
}

[data-bs-theme="light"] .auth-hero-feature {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .auth-hero-feature:hover {
  background: rgba(242, 156, 31, 0.08);
  border-color: rgba(242, 156, 31, 0.25);
}

.auth-hero-feature i {
  font-size: 1.5rem;
  color: #f29c1f;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(242, 156, 31, 0.4));
}

.auth-hero-feature span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

[data-bs-theme="light"] .auth-hero-feature span {
  color: rgba(0, 0, 0, 0.8);
}

/* Benefits list (register page) */
.auth-benefits-list {
  text-align: left;
  margin-top: 1.5rem;
}

.auth-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.auth-benefit-item:hover {
  background: rgba(242, 156, 31, 0.08);
  border-color: rgba(242, 156, 31, 0.15);
  transform: translateY(-4px);
}

[data-bs-theme="light"] .auth-benefit-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.auth-benefit-item i {
  font-size: 1.75rem;
  flex-shrink: 0;
  color: #f29c1f;
  filter: drop-shadow(0 2px 10px rgba(242, 156, 31, 0.35));
}

.auth-benefit-item-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

[data-bs-theme="light"] .auth-benefit-item-text strong {
  color: #1a1a2e;
}

.auth-benefit-item-text span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

[data-bs-theme="light"] .auth-benefit-item-text span {
  color: rgba(0, 0, 0, 0.6);
}

/* ========== Centered Container (forgot-password) ========== */
.auth-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 2;
}

/* Auth info box */
.auth-info {
  background: rgba(242, 156, 31, 0.1);
  border: 1px solid rgba(242, 156, 31, 0.2);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="light"] .auth-info {
  background: rgba(242, 156, 31, 0.08);
  color: rgba(0, 0, 0, 0.7);
}

.auth-info i {
  color: #f29c1f;
}

/* Alert styling */
.auth-alert {
  border-radius: 14px;
  margin-bottom: 1rem;
  border: none;
}

/* Name fields row */
.auth-name-row {
  display: flex;
  gap: 1rem;
}

.auth-name-row > div {
  flex: 1;
}

/* ========== Mobile Responsive ========== */
@media (max-width: 991.98px) {
  .auth-page {
    height: auto;
    max-height: none;
    min-height: auto;
  }

  .auth-split {
    flex-direction: column;
    min-height: auto;
  }

  .auth-form-side {
    flex: none;
    width: 100%;
    padding: 0.5rem;
  }

  .auth-hero-side {
    display: none;
  }

  .auth-card {
    max-width: 100%;
    border-radius: 20px;
  }

  /* Hide only logo on mobile, keep title */
  .auth-header img {
    display: none;
  }

  .auth-header {
    padding: 1rem 1.5rem 0.5rem;
  }

  .auth-header h1 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }

  .auth-header p {
    font-size: 0.85rem;
    margin-bottom: 0;
  }

  .auth-body {
    padding: 0.75rem 1.25rem 1rem;
  }

  .auth-form .form-control {
    padding: 0.7rem 1rem;
  }

  .auth-form .btn-primary {
    padding: 0.7rem 1rem;
  }

  .btn-google {
    padding: 0.65rem 1rem;
  }

  .auth-divider {
    margin: 1rem 0;
  }

  .auth-links {
    margin-top: 1rem;
  }

  /* Reduce orb sizes on mobile */
  .auth-orb-1 {
    width: 250px;
    height: 250px;
    right: -50px;
    top: -50px;
  }

  .auth-orb-2 {
    width: 180px;
    height: 180px;
    bottom: 5%;
    left: -30px;
  }

  .auth-orb-3 {
    width: 120px;
    height: 120px;
  }
}

@media (max-height: 820px) {
  .auth-page {
    min-height: auto;
  }

  .auth-split {
    flex-direction: column;
    min-height: auto;
  }

  .auth-form-side {
    flex: none;
    width: 100%;
    padding: 1rem;
  }

  .auth-hero-side {
    display: none;
  }

  .auth-card {
    max-width: 520px;
  }
}

@media (max-width: 575.98px) {
  .auth-header {
    padding: 2rem 1.5rem 1rem;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }

  .auth-body {
    padding: 0.75rem 1.5rem 2rem;
  }

  .auth-card {
    border-radius: 20px;
  }

  .auth-name-row {
    flex-direction: column;
    gap: 0;
  }

  .btn-google,
  .btn-bankid {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}

/* ===== END AUTH PAGES ===== */

/* ===== GLASSMORPHISM MODALS ===== */
/* Modern modal design matching auth-card aesthetic */

.modal-content {
  background: rgba(20, 20, 30, 0.92);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border-radius: 20px;
  border: 1px solid rgba(242, 156, 31, 0.15);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(242, 156, 31, 0.06);
  overflow: hidden;
}

[data-bs-theme="light"] .modal-content {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(242, 156, 31, 0.2);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 60px rgba(242, 156, 31, 0.08);
}

/* Modal header - compact with glow accent */
.modal-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
  position: relative;
}

[data-bs-theme="light"] .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Top glow line accent */
.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.5) 20%, 
    rgba(247, 210, 125, 0.7) 50%, 
    rgba(242, 156, 31, 0.5) 80%, 
    transparent);
  border-radius: 2px;
}

/* Colored header variants */
.modal-header.bg-warning,
.modal-header.bg-warning-subtle {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%) !important;
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.modal-header.bg-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.08) 100%) !important;
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
}

.modal-header.bg-danger-subtle {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.04) 100%) !important;
  border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.modal-header.bg-success,
.modal-header.bg-success-subtle {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%) !important;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.modal-header.bg-info,
.modal-header.bg-info-subtle {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

/* Modal title - gradient text for emphasis */
.modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

[data-bs-theme="light"] .modal-title {
  color: rgba(0, 0, 0, 0.9);
}

/* White text on dark backgrounds */
.modal-header.bg-danger .modal-title,
.modal-header.text-white .modal-title {
  color: #fff;
}

/* Modal body - clean and compact */
.modal-body {
  padding: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="light"] .modal-body {
  color: rgba(0, 0, 0, 0.75);
}

/* Tables inside modals */
.modal-body .table {
  --bs-table-bg: transparent;
  color: inherit;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.modal-body .table th {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

[data-bs-theme="light"] .modal-body .table th {
  color: rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 0, 0, 0.1);
}

.modal-body .table td {
  border-color: rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
}

[data-bs-theme="light"] .modal-body .table td {
  border-color: rgba(0, 0, 0, 0.06);
}

.modal-body .table-hover tbody tr:hover {
  background-color: rgba(242, 156, 31, 0.08);
}

/* Alerts inside modals */
.modal-body .alert {
  border-radius: 10px;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
}

/* Modal footer - subtle separator */
.modal-footer {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.875rem 1.25rem;
  gap: 0.5rem;
}

[data-bs-theme="light"] .modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Close button styling */
.modal-header .btn-close {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-header .btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Badges in modals */
.modal-body .badge {
  font-weight: 500;
  padding: 0.35em 0.6em;
  font-size: 0.75rem;
}

/* Links in modals */
.modal-body a:not(.btn) {
  color: var(--1ore-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.modal-body a:not(.btn):hover {
  color: var(--1ore-primary-hover);
  text-decoration: underline;
}

/* Buttons in modal - slightly smaller */
.modal-footer .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

/* Button group filters in modal */
.modal-body .btn-group .btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

/* Scrollable modal body */
.modal-body[style*="max-height"] {
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 156, 31, 0.3) transparent;
}

.modal-body[style*="max-height"]::-webkit-scrollbar {
  width: 6px;
}

.modal-body[style*="max-height"]::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body[style*="max-height"]::-webkit-scrollbar-thumb {
  background: rgba(242, 156, 31, 0.3);
  border-radius: 3px;
}

/* Modal backdrop - darker for glass effect */
.modal-backdrop.show {
  opacity: 0.7;
}

/* Modal animation - subtle scale */
.modal.fade .modal-dialog {
  transform: scale(0.95) translateY(-20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
}

/* XL modals - max width constraint */
.modal-xl {
  max-width: 1000px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .modal-content {
    border-radius: 16px;
    margin: 0.5rem;
  }
  
  .modal-header {
    padding: 0.875rem 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-footer {
    padding: 0.75rem 1rem;
  }
  
  .modal-body .table {
    font-size: 0.8rem;
  }
  
  .modal-body .table th,
  .modal-body .table td {
    padding: 0.4rem 0.5rem;
  }
}

/* ===== END GLASSMORPHISM MODALS ===== */


/* ==========================================================================
   MYPAGES PRODUCTS - VISUAL SHELF REDESIGN
   Phase 1: Structure, welcome card, segmented control
   ========================================================================== */

/* ===== PRODUCTS WELCOME CARD ===== */
.products-welcome-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.06);
  /* Entry animation */
  opacity: 0;
  transform: translateY(20px);
  animation: productsFadeInUp 0.5s ease-out forwards;
}

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

/* Top glow line */
.products-welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.5) 20%, 
    rgba(247, 210, 125, 0.7) 50%, 
    rgba(242, 156, 31, 0.5) 80%, 
    transparent);
  border-radius: 2px;
}

.products-welcome-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.products-welcome-text {
  flex: 1;
}

.products-welcome-greeting {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.products-welcome-greeting .wave-emoji {
  font-size: 1.3rem;
}

.products-welcome-status {
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
}

.products-welcome-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.2), rgba(247, 210, 125, 0.1));
  border-radius: 14px;
  color: #f7d27d;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Light theme */
[data-bs-theme="light"] .products-welcome-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(242, 156, 31, 0.2);
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.03) inset,
    0 8px 24px -8px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(242, 156, 31, 0.08);
}

/* ===== PRODUCTS SMART PROMPT ===== */
.products-smart-prompt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.15), rgba(247, 210, 125, 0.08));
  border: 1px solid rgba(242, 156, 31, 0.25);
  border-radius: 10px;
  animation: promptSlideIn 0.3s ease-out;
}

@keyframes promptSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.products-prompt-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 156, 31, 0.2);
  border-radius: 8px;
  color: #f7d27d;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.products-prompt-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.products-prompt-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
}

.products-prompt-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bs-body-color);
}

.products-prompt-action {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

[data-bs-theme="light"] .products-prompt-label {
  color: rgba(0, 0, 0, 0.5);
}

/* ===== PRODUCTS STATS CARDS ===== */
.products-stat-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  background: rgba(20, 20, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: statCardIn 0.5s ease-out backwards;
}

/* Staggered animation for stats */
.col-4:nth-child(1) .products-stat-card { animation-delay: 0ms; }
.col-4:nth-child(2) .products-stat-card { animation-delay: 100ms; }
.col-4:nth-child(3) .products-stat-card { animation-delay: 200ms; }

@keyframes statCardIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.products-stat-card:hover {
  border-color: rgba(242, 156, 31, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.products-stat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.25), rgba(247, 210, 125, 0.12));
  border-radius: 10px;
  color: #f7d27d;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.products-stat-icon.shipped {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(96, 165, 250, 0.12));
  color: #60a5fa;
}

.products-stat-icon.sold {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(74, 222, 128, 0.12));
  color: #4ade80;
}

.products-stat-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.products-stat-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bs-body-color);
  line-height: 1.2;
}

.products-stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Light theme stats */
[data-bs-theme="light"] .products-stat-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .products-stat-card:hover {
  border-color: rgba(242, 156, 31, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .products-stat-label {
  color: rgba(0, 0, 0, 0.5);
}

/* Mobile stats */
@media (max-width: 576px) {
  .products-stat-card {
    padding: 0.5rem 0.6rem;
    gap: 0.4rem;
    flex-direction: column;
    text-align: center;
  }
  
  .products-stat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  .products-stat-count {
    font-size: 1rem;
  }
  
  .products-stat-label {
    font-size: 0.6rem;
  }
  
  .products-smart-prompt {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .products-prompt-content {
    flex: 1 1 100%;
    order: 2;
  }
  
  .products-prompt-action {
    order: 3;
    width: 100%;
  }
}

/* Stats count animation */
.products-stat-count.count-updated {
  animation: countPop 0.3s ease-out;
}

@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); color: #f7d27d; }
  100% { transform: scale(1); }
}

/* Storage delivery sticky footer */
.products-storage-footer {
  z-index: 1050;
}

.products-storage-icon {
  font-size: 1.5em;
}


/* ===== PRODUCTS MAIN CARD (glassmorphism container) ===== */
.products-main-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 24px 48px -12px rgba(0, 0, 0, 0.4);
  /* Entry animation - delayed */
  opacity: 0;
  transform: translateY(20px);
  animation: productsFadeInUp 0.5s ease-out forwards;
  animation-delay: 0.1s;
}

[data-bs-theme="light"] .products-main-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.03) inset,
    0 16px 32px -12px rgba(0, 0, 0, 0.12);
}


/* ===== IOS SEGMENTED CONTROL ===== */
.products-segmented-control {
  display: flex;
  gap: 4px;
  padding: 6px;
  margin: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.products-segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.products-segment i {
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.products-segment span:last-child {
  display: none;
}

.products-segment:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--bs-body-color);
}

.products-segment.active {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.9), rgba(247, 180, 60, 0.9));
  color: #000;
  font-weight: 600;
  box-shadow: 
    0 4px 12px rgba(242, 156, 31, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.products-segment.active i {
  opacity: 1;
}

.products-segment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  transition: all 0.25s ease;
}

.products-segment.active .products-segment-badge {
  background: rgba(0, 0, 0, 0.2);
  color: #000;
}

/* Light theme */
[data-bs-theme="light"] .products-segmented-control {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .products-segment:hover:not(.active) {
  background: rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .products-segment-badge {
  background: rgba(0, 0, 0, 0.08);
}

/* Mobile - show icons only, hide text */
@media (max-width: 576px) {
  .products-segment {
    padding: 0.65rem 0.5rem;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .products-segment span:not(.products-segment-badge) {
    font-size: 0.75rem;
  }
  
  .products-segmented-control {
    margin: 0.75rem;
  }
}


/* ===== PRODUCTS CONTENT AREA ===== */
.products-content {
  padding: 0 1rem 1rem 1rem;
}

.products-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.5rem;
}

[data-bs-theme="light"] .products-grid-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.products-select-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--bs-secondary-color);
  cursor: pointer;
  transition: color 0.2s ease;
}

.products-select-all:hover {
  color: var(--bs-body-color);
}

.products-select-all .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  cursor: pointer;
}

.products-select-all .form-check-input:checked {
  background-color: #f29c1f;
  border-color: #f29c1f;
}


/* ===== PRODUCTS DATATABLE STYLING ===== */

.products-table-wrapper {
  /* No max-height - let DataTables handle pagination */
}

/* Hide DataTables default header */
.products-datatable thead {
  display: none;
}

/* Make table invisible - cards inside will show */
.products-datatable {
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  margin: 0 !important;
  width: 100% !important;
  background: transparent;
}

/* Row is just a container - no styling */
.products-datatable tbody tr {
  background: transparent !important;
  box-shadow: none !important;
}

.products-datatable tbody tr:hover {
  box-shadow: none !important;
  transform: none !important;
}

/* Cell is container for card - minimal styling */
.products-datatable tbody td {
  padding: 0;
  border: none;
  background: transparent !important;
}

/* === Product Transaction Card (inside td) === */
.product-transaction-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(20, 20, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.2s ease;
  animation: cardSlideIn 0.4s ease-out backwards;
}

/* Staggered animation delays for rows */
.products-datatable tbody tr:nth-child(1) .product-transaction-card { animation-delay: 0ms; }
.products-datatable tbody tr:nth-child(2) .product-transaction-card { animation-delay: 40ms; }
.products-datatable tbody tr:nth-child(3) .product-transaction-card { animation-delay: 80ms; }
.products-datatable tbody tr:nth-child(4) .product-transaction-card { animation-delay: 120ms; }
.products-datatable tbody tr:nth-child(5) .product-transaction-card { animation-delay: 160ms; }
.products-datatable tbody tr:nth-child(6) .product-transaction-card { animation-delay: 200ms; }
.products-datatable tbody tr:nth-child(7) .product-transaction-card { animation-delay: 240ms; }
.products-datatable tbody tr:nth-child(8) .product-transaction-card { animation-delay: 280ms; }
.products-datatable tbody tr:nth-child(9) .product-transaction-card { animation-delay: 320ms; }
.products-datatable tbody tr:nth-child(10) .product-transaction-card { animation-delay: 360ms; }

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

.product-transaction-card:hover {
  border-color: rgba(242, 156, 31, 0.35);
  transform: translateX(4px);
}

/* Checkbox container */
.product-card-checkbox {
  flex-shrink: 0;
}

.product-card-checkbox .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
  margin: 0;
}

.product-card-checkbox .form-check-input:checked {
  background-color: #f29c1f;
  border-color: #f29c1f;
}

/* Image */
.product-transaction-image {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.product-transaction-image img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Content area - title and meta */
.product-transaction-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.product-transaction-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.product-transaction-title a {
  color: var(--bs-body-color);
  text-decoration: none;
}

.product-transaction-title a:hover {
  color: #f29c1f;
}

.product-transaction-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-transaction-meta i {
  margin-right: 0.25rem;
  opacity: 0.7;
}

/* Right side - price and status */
.product-transaction-right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.product-transaction-price {
  font-weight: 700;
  color: var(--1ore-gold, #f7d27d);
  font-size: 0.95rem;
  white-space: nowrap;
}

.product-transaction-status {
  white-space: nowrap;
}

.product-transaction-status .badge {
  font-size: 0.7rem;
  padding: 0.25em 0.5em;
}

/* Light mode card */
[data-bs-theme="light"] .product-transaction-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .product-transaction-card:hover {
  border-color: rgba(242, 156, 31, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .product-transaction-meta {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .product-transaction-price {
  color: #c77800;
}


/* DataTables controls styling */
.products-table-wrapper .dataTables_wrapper {
  padding: 0;
}

.products-table-wrapper .dataTables_filter,
.products-table-wrapper .dataTables_length {
  margin-bottom: 0.75rem;
}

.products-table-wrapper .dataTables_filter input,
.products-table-wrapper .dataTables_length select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--bs-body-color);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.products-table-wrapper .dataTables_filter input:focus,
.products-table-wrapper .dataTables_length select:focus {
  border-color: rgba(242, 156, 31, 0.4);
  box-shadow: 0 0 0 2px rgba(242, 156, 31, 0.1);
  outline: none;
}

.products-table-wrapper .dataTables_info {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  padding-top: 0.75rem;
}

.products-table-wrapper .dataTables_paginate {
  padding-top: 0.75rem;
}

.products-table-wrapper .dataTables_paginate .paginate_button {
  padding: 0.35rem 0.65rem;
  margin: 0 0.15rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.8rem;
}

.products-table-wrapper .dataTables_paginate .paginate_button:hover {
  border-color: rgba(242, 156, 31, 0.4) !important;
  color: #fff !important;
  background: transparent !important;
}

.products-table-wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #f29c1f, #e8890c) !important;
  border-color: #f29c1f !important;
  color: #000 !important;
  font-weight: 600;
}

.products-table-wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Light mode DataTables */
[data-bs-theme="light"] .products-table-wrapper .dataTables_filter input,
[data-bs-theme="light"] .products-table-wrapper .dataTables_length select {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .products-table-wrapper .dataTables_info {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .products-table-wrapper .dataTables_paginate .paginate_button {
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: rgba(0, 0, 0, 0.6) !important;
}


/* Loading & Empty */
.products-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.products-empty {
  text-align: center;
  padding: 2rem 1rem;
}

.products-empty i {
  font-size: 2rem;
  color: rgba(242, 156, 31, 0.35);
  margin-bottom: 0.5rem;
  display: block;
}

.products-empty h5 {
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.products-empty p {
  font-size: 0.8rem;
  max-width: 250px;
  margin: 0 auto;
}


/* Mobile */
@media (max-width: 576px) {
  .products-grid-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .product-transaction-card {
    padding: 0.4rem 0.5rem;
    gap: 0.5rem;
  }
  
  .product-transaction-image,
  .product-transaction-image img {
    width: 36px;
    height: 36px;
  }
  
  .product-transaction-title {
    font-size: 0.8rem;
  }
  
  .product-transaction-meta {
    font-size: 0.7rem;
  }
  
  .product-transaction-price {
    font-size: 0.85rem;
  }
  
  .product-transaction-status .badge {
    font-size: 0.65rem;
  }
}

/* ===== END MYPAGES PRODUCTS ===== */


/* ===================================================================
   MYPAGES BIDHISTORY - Redesign 2026-01-25
   Matches economy.php and products.php design language
   =================================================================== */

/* ===== BIDHISTORY WELCOME CARD ===== */
.bidhistory-welcome-card {
  position: relative;
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 32px -8px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(59, 130, 246, 0.08);
  overflow: hidden;
}

.bidhistory-welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.5) 20%, 
    rgba(96, 165, 250, 0.7) 50%, 
    rgba(59, 130, 246, 0.5) 80%, 
    transparent);
  border-radius: 2px;
}

.bidhistory-welcome-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.bidhistory-welcome-text { flex: 1; }

.bidhistory-welcome-greeting {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bidhistory-welcome-status {
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
}

.bidhistory-welcome-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
  border-radius: 14px;
  color: #60a5fa;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Smart Prompt */
.bidhistory-smart-prompt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(74, 222, 128, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px;
  animation: promptSlideIn 0.3s ease-out;
}

.bidhistory-prompt-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  color: #4ade80;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.bidhistory-prompt-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.bidhistory-prompt-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
}

.bidhistory-prompt-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bs-body-color);
}

.bidhistory-prompt-action {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Warning variant (overbydd) */
.bidhistory-smart-prompt.bidhistory-prompt-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.08));
  border-color: rgba(245, 158, 11, 0.3);
}

.bidhistory-prompt-warning .bidhistory-prompt-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* Info variant (vunnet) */
.bidhistory-smart-prompt.bidhistory-prompt-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.08));
  border-color: rgba(59, 130, 246, 0.3);
}

.bidhistory-prompt-info .bidhistory-prompt-icon {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

/* Light theme welcome card */
[data-bs-theme="light"] .bidhistory-welcome-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.03) inset,
    0 8px 24px -8px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(59, 130, 246, 0.08);
}

[data-bs-theme="light"] .bidhistory-prompt-label {
  color: rgba(0, 0, 0, 0.5);
}

/* ===== BIDHISTORY STATS CARDS ===== */
.bidhistory-stat-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  background: rgba(20, 20, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: statCardIn 0.5s ease-out backwards;
}

.col-6:nth-child(1) .bidhistory-stat-card,
.col-md-3:nth-child(1) .bidhistory-stat-card { animation-delay: 0ms; }
.col-6:nth-child(2) .bidhistory-stat-card,
.col-md-3:nth-child(2) .bidhistory-stat-card { animation-delay: 100ms; }
.col-6:nth-child(3) .bidhistory-stat-card,
.col-md-3:nth-child(3) .bidhistory-stat-card { animation-delay: 200ms; }
.col-6:nth-child(4) .bidhistory-stat-card,
.col-md-3:nth-child(4) .bidhistory-stat-card { animation-delay: 300ms; }

.bidhistory-stat-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bidhistory-stat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(96, 165, 250, 0.12));
  border-radius: 10px;
  color: #60a5fa;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.bidhistory-stat-icon.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(253, 224, 71, 0.12));
  color: #fcd34d;
}

.bidhistory-stat-icon.won {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(74, 222, 128, 0.12));
  color: #4ade80;
}

.bidhistory-stat-icon.total {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(167, 139, 250, 0.12));
  color: #a78bfa;
}

.bidhistory-stat-icon.rate {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(96, 165, 250, 0.12));
  color: #60a5fa;
}

.bidhistory-stat-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bidhistory-stat-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bs-body-color);
  line-height: 1.2;
}

.bidhistory-stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Light theme stats */
[data-bs-theme="light"] .bidhistory-stat-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .bidhistory-stat-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .bidhistory-stat-label {
  color: rgba(0, 0, 0, 0.5);
}

/* ===== BIDHISTORY MAIN CARD ===== */
.bidhistory-main-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 48px -12px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .bidhistory-main-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.02) inset,
    0 16px 48px -12px rgba(0, 0, 0, 0.15);
}

/* ===== BIDHISTORY SEGMENTED CONTROL ===== */
.bidhistory-segmented-control {
  display: flex;
  gap: 4px;
  padding: 0.5rem;
  margin: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bidhistory-segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.bidhistory-segment:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.bidhistory-segment.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 
    0 2px 8px rgba(59, 130, 246, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.bidhistory-segment i {
  font-size: 0.85rem;
}

/* Light theme segmented */
[data-bs-theme="light"] .bidhistory-segmented-control {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .bidhistory-segment {
  color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .bidhistory-segment:hover:not(.active) {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.85);
}

/* ===== BIDHISTORY CONTENT ===== */
.bidhistory-content {
  padding: 0 1rem 1rem 1rem;
}

.bidhistory-table-wrapper {
  /* No max-height - let DataTables handle pagination */
}

/* Hide DataTables default header */
.bidhistory-datatable thead {
  display: none;
}

/* Make table invisible - cards inside will show */
.bidhistory-datatable {
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  margin: 0 !important;
  width: 100% !important;
  background: transparent;
}

.bidhistory-datatable tbody tr {
  background: transparent !important;
  box-shadow: none !important;
}

.bidhistory-datatable tbody tr:hover {
  box-shadow: none !important;
  transform: none !important;
}

.bidhistory-datatable tbody td {
  padding: 0;
  border: none;
  background: transparent !important;
}

/* ===== BIDHISTORY TRANSACTION CARD (inside td) ===== */
.bidhistory-transaction-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(20, 20, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.2s ease;
  animation: cardSlideIn 0.4s ease-out backwards;
  cursor: pointer;
}

/* Staggered animation */
.bidhistory-datatable tbody tr:nth-child(1) .bidhistory-transaction-card { animation-delay: 0ms; }
.bidhistory-datatable tbody tr:nth-child(2) .bidhistory-transaction-card { animation-delay: 40ms; }
.bidhistory-datatable tbody tr:nth-child(3) .bidhistory-transaction-card { animation-delay: 80ms; }
.bidhistory-datatable tbody tr:nth-child(4) .bidhistory-transaction-card { animation-delay: 120ms; }
.bidhistory-datatable tbody tr:nth-child(5) .bidhistory-transaction-card { animation-delay: 160ms; }
.bidhistory-datatable tbody tr:nth-child(6) .bidhistory-transaction-card { animation-delay: 200ms; }
.bidhistory-datatable tbody tr:nth-child(7) .bidhistory-transaction-card { animation-delay: 240ms; }
.bidhistory-datatable tbody tr:nth-child(8) .bidhistory-transaction-card { animation-delay: 280ms; }
.bidhistory-datatable tbody tr:nth-child(9) .bidhistory-transaction-card { animation-delay: 320ms; }
.bidhistory-datatable tbody tr:nth-child(10) .bidhistory-transaction-card { animation-delay: 360ms; }

.bidhistory-transaction-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateX(4px);
}

/* Image */
.bidhistory-transaction-image {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.bidhistory-transaction-image img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Content */
.bidhistory-transaction-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.bidhistory-transaction-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bidhistory-transaction-title a {
  color: var(--bs-body-color);
  text-decoration: none;
}

.bidhistory-transaction-title a:hover {
  color: #3b82f6;
}

.bidhistory-transaction-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bidhistory-transaction-meta i {
  margin-right: 0.25rem;
  opacity: 0.7;
}

/* Right side */
.bidhistory-transaction-right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.bidhistory-transaction-mybid {
  font-weight: 700;
  color: var(--1ore-gold, #f7d27d);
  font-size: 0.95rem;
  white-space: nowrap;
}

.bidhistory-card-mybid {
  color: var(--1ore-gold, #f7d27d);
  font-weight: 600;
}

.bidhistory-transaction-status {
  white-space: nowrap;
}

.bidhistory-transaction-status .badge {
  font-size: 0.7rem;
  padding: 0.25em 0.5em;
}

/* Light mode card */
[data-bs-theme="light"] .bidhistory-transaction-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .bidhistory-transaction-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .bidhistory-transaction-meta {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .bidhistory-transaction-mybid,
[data-bs-theme="light"] .bidhistory-card-mybid {
  color: #c77800;
}

/* DataTables controls styling */
.bidhistory-table-wrapper .dataTables_wrapper {
  padding: 0;
}

.bidhistory-table-wrapper .dataTables_filter,
.bidhistory-table-wrapper .dataTables_length {
  margin-bottom: 0.75rem;
}

.bidhistory-table-wrapper .dataTables_filter input,
.bidhistory-table-wrapper .dataTables_length select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--bs-body-color);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.bidhistory-table-wrapper .dataTables_filter input:focus,
.bidhistory-table-wrapper .dataTables_length select:focus {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  outline: none;
}

.bidhistory-table-wrapper .dataTables_info {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  padding-top: 0.75rem;
}

.bidhistory-table-wrapper .dataTables_paginate {
  padding-top: 0.75rem;
}

.bidhistory-table-wrapper .dataTables_paginate .paginate_button {
  padding: 0.35rem 0.65rem;
  margin: 0 0.15rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.8rem;
}

.bidhistory-table-wrapper .dataTables_paginate .paginate_button:hover {
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #fff !important;
  background: transparent !important;
}

.bidhistory-table-wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  border-color: #3b82f6 !important;
  color: #fff !important;
  font-weight: 600;
}

.bidhistory-table-wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Light mode DataTables */
[data-bs-theme="light"] .bidhistory-table-wrapper .dataTables_filter input,
[data-bs-theme="light"] .bidhistory-table-wrapper .dataTables_length select {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .bidhistory-table-wrapper .dataTables_info {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .bidhistory-table-wrapper .dataTables_paginate .paginate_button {
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: rgba(0, 0, 0, 0.6) !important;
}

/* Mobile */
@media (max-width: 576px) {
  .bidhistory-segment {
    padding: 0.65rem 0.5rem;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .bidhistory-segment span {
    font-size: 0.7rem;
  }
  
  .bidhistory-segmented-control {
    margin: 0.75rem;
  }
  
  .bidhistory-stat-card {
    padding: 0.5rem 0.6rem;
    gap: 0.4rem;
  }
  
  .bidhistory-stat-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  .bidhistory-stat-count {
    font-size: 1rem;
  }
  
  .bidhistory-stat-label {
    font-size: 0.6rem;
  }
  
  .bidhistory-transaction-card {
    padding: 0.4rem 0.5rem;
    gap: 0.5rem;
  }
  
  .bidhistory-transaction-image,
  .bidhistory-transaction-image img {
    width: 36px;
    height: 36px;
  }
  
  .bidhistory-transaction-title {
    font-size: 0.8rem;
  }
  
  .bidhistory-transaction-meta {
    font-size: 0.7rem;
  }
  
  .bidhistory-transaction-mybid {
    font-size: 0.85rem;
  }
  
  .bidhistory-transaction-status .badge {
    font-size: 0.65rem;
  }
  
  .bidhistory-smart-prompt {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .bidhistory-prompt-content {
    flex: 1 1 60%;
  }
  
  .bidhistory-prompt-action {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   INFO PAGES - Kundeservice, FAQ, Om oss etc.
   Design matches economy.php glassmorphism style
   ========================================================================== */

/* ===== INFO PAGE TITLE ICON (used in header) ===== */
.info-page-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.2), rgba(247, 210, 125, 0.1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7d27d;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ===== INFO SEGMENTED CONTROL ===== */
.info-segmented-control {
  display: flex;
  gap: 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.info-segment {
  flex: 1;
  min-width: max-content;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.info-segment:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.info-segment.active {
  background: linear-gradient(135deg, #f29c1f 0%, #e08913 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(242, 156, 31, 0.3);
}

.info-segment i {
  font-size: 1rem;
}

/* Label visibility - desktop shows full, mobile shows short */
.info-segment .label-full {
  display: inline;
}
.info-segment .label-short {
  display: none;
}

/* Light mode - Segmented Control */
[data-bs-theme="light"] .info-segmented-control {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .info-segment {
  color: rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .info-segment:hover {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .info-segment.active {
  color: #fff;
}

/* ===== INFO PAGE CONTENT CONTAINER ===== */
.info-page-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ===== INFO CARD - Glassmorphism ===== */
.info-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(242, 156, 31, 0.15);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(242, 156, 31, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 156, 31, 0.25);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 20px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(242, 156, 31, 0.1);
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.5) 20%, 
    rgba(247, 210, 125, 0.7) 50%, 
    rgba(242, 156, 31, 0.5) 80%, 
    transparent);
  border-radius: 2px;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-card-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.2), rgba(247, 210, 125, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7d27d;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.info-card-header-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bs-body-color);
}

.info-card-header-subtitle {
  margin: 0;
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
}

.info-card-body {
  padding: 1rem;
}

.info-card-body p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 0.875rem;
  color: var(--bs-body-color);
}

.info-card-body p:last-child {
  margin-bottom: 0;
}

.info-card-body ul,
.info-card-body ol {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
}

.info-card-body li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
  font-size: 0.875rem;
  color: var(--bs-body-color);
}

.info-card-body h5,
.info-card-body h6 {
  color: var(--bs-body-color);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.info-card-body h5:first-child,
.info-card-body h6:first-child {
  margin-top: 0;
}

/* Light mode - Info Card */
[data-bs-theme="light"] .info-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.03) inset,
    0 16px 40px -12px rgba(0, 0, 0, 0.1),
    0 0 60px rgba(242, 156, 31, 0.03);
}

[data-bs-theme="light"] .info-card:hover {
  border-color: rgba(242, 156, 31, 0.3);
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.05) inset,
    0 20px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 80px rgba(242, 156, 31, 0.08);
}

[data-bs-theme="light"] .info-card::before {
  background: linear-gradient(90deg, 
    transparent, 
    rgba(242, 156, 31, 0.4) 20%, 
    rgba(242, 156, 31, 0.6) 50%, 
    rgba(242, 156, 31, 0.4) 80%, 
    transparent);
}

[data-bs-theme="light"] .info-card-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .info-card-header-icon {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.15), rgba(247, 210, 125, 0.08));
  color: #e08913;
}

[data-bs-theme="light"] .info-page-title-icon {
  background: linear-gradient(135deg, rgba(242, 156, 31, 0.15), rgba(247, 210, 125, 0.08));
  color: #e08913;
}

/* ===== CONTACT INFO 2x2 GRID ===== */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.contact-info-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.contact-info-item > i {
  color: #f29c1f;
  font-size: 0.85rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item > div {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 0.8rem;
  line-height: 1.3;
}

.contact-info-item strong {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-info-item a {
  color: var(--bs-body-color);
  text-decoration: none;
}

.contact-info-item a:hover {
  color: #f29c1f;
}

[data-bs-theme="light"] .contact-info-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* ===== COMPACT FAQ LIST ===== */
.faq-compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-compact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-compact-item:last-child {
  border-bottom: none;
}

.faq-compact-item > i {
  color: #f29c1f;
  font-size: 0.65rem;
  width: 12px;
  flex-shrink: 0;
  margin-top: 4px;
}

.faq-compact-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.faq-compact-item strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bs-body-color);
  line-height: 1.3;
}

.faq-compact-item span {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  line-height: 1.4;
}

[data-bs-theme="light"] .faq-compact-item {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* ===== INFO CARD ANIMATIONS ===== */
@keyframes infoCardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-card-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: infoCardFadeInUp 0.5s ease-out forwards;
}

/* Staggered entry animations */
.info-card-animate:nth-child(1) { animation-delay: 0.05s; }
.info-card-animate:nth-child(2) { animation-delay: 0.1s; }
.info-card-animate:nth-child(3) { animation-delay: 0.15s; }
.info-card-animate:nth-child(4) { animation-delay: 0.2s; }
.info-card-animate:nth-child(5) { animation-delay: 0.25s; }
.info-card-animate:nth-child(6) { animation-delay: 0.3s; }
.info-card-animate:nth-child(7) { animation-delay: 0.35s; }
.info-card-animate:nth-child(8) { animation-delay: 0.4s; }
.info-card-animate:nth-child(9) { animation-delay: 0.45s; }
.info-card-animate:nth-child(10) { animation-delay: 0.5s; }

/* ===== FAQ ACCORDION - iOS Style ===== */
.info-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-faq-item:last-child {
  border-bottom: none;
}

.info-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  background: transparent;
  border: none;
  color: var(--bs-body-color);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.info-faq-question:hover {
  color: #f29c1f;
}

.info-faq-question-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.info-faq-question[aria-expanded="true"] .info-faq-question-icon {
  background: linear-gradient(135deg, #f29c1f 0%, #e08913 100%);
  color: #fff;
  transform: rotate(180deg);
}

.info-faq-answer {
  padding-bottom: 1rem;
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
  line-height: 1.7;
}

.info-faq-answer p {
  margin-bottom: 0.75rem;
  color: var(--bs-secondary-color);
}

.info-faq-answer p:last-child {
  margin-bottom: 0;
}

/* Light mode - FAQ */
[data-bs-theme="light"] .info-faq-item {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .info-faq-question-icon {
  background: rgba(0, 0, 0, 0.05);
}

/* ===== INFO HIGHLIGHT BOX ===== */
.info-highlight-box {
  background: rgba(242, 156, 31, 0.1);
  border: 1px solid rgba(242, 156, 31, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.info-highlight-box-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f7d27d;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-highlight-box p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--bs-body-color);
}

[data-bs-theme="light"] .info-highlight-box {
  background: rgba(242, 156, 31, 0.08);
  border-color: rgba(242, 156, 31, 0.15);
}

[data-bs-theme="light"] .info-highlight-box-title {
  color: #e08913;
}

/* ===== INFO CONTACT CARD ===== */
.info-contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.info-contact-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: var(--bs-body-color);
  transition: all 0.2s ease;
}

.info-contact-method:hover {
  background: rgba(242, 156, 31, 0.1);
  border-color: rgba(242, 156, 31, 0.3);
  color: var(--bs-body-color);
  transform: translateY(-2px);
}

.info-contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f29c1f 0%, #e08913 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.info-contact-method-text {
  display: flex;
  flex-direction: column;
}

.info-contact-method-label {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
}

.info-contact-method-value {
  font-size: 0.9rem;
  font-weight: 500;
}

[data-bs-theme="light"] .info-contact-method {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .info-contact-method:hover {
  background: rgba(242, 156, 31, 0.08);
}

/* ===== RESPONSIVE - Info Pages ===== */
@media (max-width: 767.98px) {
  .info-page-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Horizontal scrollable tabs on mobile */
  .info-segmented-control {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
  }
  
  .info-segment {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
    flex-shrink: 0;
    flex-grow: 0;
  }
  
  .info-page-title {
    font-size: 1.25rem;
  }
  
  .info-page-title-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  
  .info-card-header {
    padding: 1rem 1.25rem;
  }
  
  .info-card-body {
    padding: 1.25rem;
  }
  
  .info-contact-methods {
    grid-template-columns: 1fr;
  }
}

/* ===== END MYPAGES BIDHISTORY ===== */

/* ===== USER PROFILE PAGE ===== */
.profile-header-card {
  border-radius: 16px;
  border: 2px solid rgba(242, 156, 31, 0.5) !important;
  overflow: hidden;
}

.profile-header-top {
  background: linear-gradient(135deg, var(--1ore-cream) 0%, var(--1ore-light-bg) 100%);
  padding: 1.25rem 1.5rem;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--1ore-primary);
  color: #fff;
  border: 3px solid rgba(242, 156, 31, 0.3);
}

.profile-badge-proveniens {
  background: #198754;
  font-size: 0.7rem;
  padding: 0.3em 0.6em;
}

.profile-share-btn {
  width: 36px;
  height: 36px;
  padding: 0;
}

.profile-stats-bar {
  border-top: 2px solid rgba(242, 156, 31, 0.15);
}

.profile-stats-bar > div {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-stats-bar > div:last-child {
  border-right: none;
}

.profile-stats-value--primary {
  color: var(--1ore-primary);
}

[data-bs-theme="dark"] .profile-header-card {
  border-color: rgba(242, 156, 31, 0.4) !important;
}

[data-bs-theme="dark"] .profile-stats-bar > div {
  border-right-color: rgba(255, 255, 255, 0.08);
}
/* ===== END USER PROFILE PAGE ===== */