/* ==========================================================================
   NEODECK - COMPONENTS, CARDS & INTERACTIVES
   ========================================================================== */

/* 1. PRODUCT & TRADING CARD STYLING */
.card-wrapper {
  perspective: 1000px;
}

.card-item {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.5s;
  cursor: pointer;
  transform-style: preserve-3d;
}

/* Card theme based dynamic lighting */
.card-item[data-theme="fire"] { --theme-color: var(--color-fire); }
.card-item[data-theme="water"] { --theme-color: var(--color-water); }
.card-item[data-theme="grass"] { --theme-color: var(--color-grass); }
.card-item[data-theme="dark"] { --theme-color: var(--color-dark); }
.card-item[data-theme="gold"] { --theme-color: var(--color-gold); }
.card-item[data-theme="default"] { --theme-color: var(--color-default); }

.card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Holographic shine layer */
.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.05) 55%, rgba(255,255,255,0) 100%);
  background-size: 200% 200%;
  background-position: 0% 0%;
  transition: background-position 0.1s ease;
  z-index: 2;
  pointer-events: none;
}

.card-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--theme-color);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px -3px rgba(var(--theme-color), 0.3);
}

.card-item:hover .card-shine {
  background-position: 100% 100%;
}

/* Card Header */
.card-header-ui {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  z-index: 3;
}

.card-title-container {
  overflow: hidden;
}

.card-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-category {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.card-rarity-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-rarity-pill.rarity-commune { background-color: rgba(255,255,255,0.05); color: var(--text-muted); }
.card-rarity-pill.rarity-rare { background-color: rgba(6, 182, 212, 0.15); color: var(--color-secondary); border-color: var(--color-secondary-glow); }
.card-rarity-pill.rarity-ultra { background-color: rgba(139, 92, 246, 0.15); color: var(--color-primary); border-color: var(--color-primary-glow); }
.card-rarity-pill.rarity-secrète { background-color: rgba(251, 191, 36, 0.15); color: var(--color-gold); border-color: rgba(251, 191, 36, 0.4); text-shadow: 0 0 6px rgba(251,191,36,0.3); }

/* Card Image Frame */
.card-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition-smooth);
}

/* Procedural illustrations in CSS */
.card-art {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}

.card-item:hover .card-art {
  transform: scale(1.1);
}

/* Procedural glowing shapes in preset cards */
.preset-art-1 { background: linear-gradient(135deg, #1e1b4b 0%, #311042 50%, #4c1d95 100%); }
.preset-art-2 { background: radial-gradient(circle at center, #7f1d1d 0%, #450a0a 70%, #000 100%); }
.preset-art-3 { background: linear-gradient(225deg, #064e3b 0%, #022c22 60%, #000 100%); }
.preset-art-4 { background: radial-gradient(circle at top, #0c4a6e 0%, #1e1b4b 80%); }
.preset-art-5 { background: linear-gradient(45deg, #78350f 0%, #000 100%); }

.card-art-glow {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  filter: blur(15px);
  background: var(--theme-color);
  opacity: 0.6;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.4; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

/* Card Body & Info */
.card-info-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.card-condition {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}

.condition-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.cond-mint { background-color: var(--color-success); box-shadow: 0 0 6px var(--color-success); }
.cond-nearmint { background-color: #34d399; }
.cond-excellent { background-color: var(--color-warning); }
.cond-good { background-color: #fb923c; }
.cond-played { background-color: var(--color-danger); }

.card-stock {
  color: var(--text-dark);
  font-weight: 500;
}

.stock-low {
  color: #f87171;
}

/* Card Footer */
.card-footer-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 3;
}

.card-price {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.card-action-btn {
  width: 36px;
  height: 36px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.card-action-btn:hover {
  background-color: var(--color-secondary-glow);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: 0 0 10px var(--color-secondary-glow);
  transform: scale(1.1);
}

/* 2. CART DRAWER SHEET */
.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-glass);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-drawer-title h2 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
}

.cart-drawer-title i {
  color: var(--color-secondary);
}

.btn-close-drawer {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.btn-close-drawer:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.cart-drawer-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cart Item Row */
.cart-item-row {
  display: flex;
  gap: 12px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border-glass);
  position: relative;
  animation: slide-in-row 0.3s ease;
}

@keyframes slide-in-row {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
  width: 50px;
  height: 70px;
  border-radius: 4px;
  background-color: var(--bg-secondary);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  overflow: hidden;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.cart-qty-btn:hover {
  background-color: var(--border-glass);
  color: white;
}

.cart-qty-value {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.cart-item-price {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-remove-item {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}
.btn-remove-item:hover {
  color: var(--color-danger);
}

/* Drawer Footer */
.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-glass);
  background-color: var(--bg-secondary);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-glass);
  margin-bottom: 20px;
}

/* 3. MODALS STYLING */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 5, 10, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start; /* Align to top to allow scrolling */
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px 20px;
  overflow-y: auto; /* Enable vertical scrolling */
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  margin: auto; /* Center within flexbox and add dynamic margins */
}

.modal-backdrop.active .modal-container {
  transform: translateY(0);
}

.modal-large {
  max-width: 800px;
}

.modal-small {
  max-width: 400px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-header h2 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* Modals Forms elements */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.col-6 { width: 50%; }
.col-12 { width: 100%; }

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.required {
  color: var(--color-danger);
}

.modal-form input[type="text"],
.modal-form input[type="number"],
.modal-form select,
.modal-form textarea {
  width: 100%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.input-with-icon {
  position: relative;
}
.input-with-icon input {
  padding-right: 40px !important;
}
.input-with-icon i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-dark);
}

/* Image Preset Picker */
.image-select-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.image-preset-opt {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.image-preset-opt.active {
  border-color: var(--color-secondary);
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--color-secondary-glow);
}

.image-preset-opt::after {
  content: '\2713';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition-bounce);
}

.image-preset-opt.active::after {
  opacity: 1;
  transform: scale(1);
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* CARD DETAILS MODAL SPECIFIC */
.card-details-view {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 32px;
}

.details-modal-art {
  width: 100%;
  aspect-ratio: 2.5/3.5;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.details-modal-art .card-art {
  width: 100%;
  height: 100%;
}

.details-modal-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.details-header {
  margin-bottom: 16px;
}

.details-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.details-title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.details-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-pill {
  padding: 6px 12px;
  border-radius: 6px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.details-desc-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.details-desc-box h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.details-desc-box p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.details-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

.details-price-tag {
  display: flex;
  flex-direction: column;
}

.price-lbl {
  font-size: 12px;
  color: var(--text-dark);
}

.price-val {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-details-buy {
  padding: 16px 36px;
}

/* 4. SELLER DASHBOARD STUFF */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.dashboard-header h1 {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.icon-revenue { background-color: rgba(16, 185, 129, 0.1); color: var(--color-success); }
.icon-listings { background-color: rgba(139, 92, 246, 0.1); color: var(--color-primary); }
.icon-sales { background-color: rgba(6, 182, 212, 0.1); color: var(--color-secondary); }
.icon-balance { background-color: rgba(245, 158, 11, 0.1); color: var(--color-warning); }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
}

/* Listings Management Table */
.dashboard-content-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content-box-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-glass);
}

.content-box-header h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dashboard-table th,
.dashboard-table td {
  padding: 16px 24px;
  font-size: 14px;
}

.dashboard-table th {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-glass);
}

.dashboard-table td {
  border-bottom: 1px solid var(--border-glass);
  vertical-align: middle;
}

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

.tbl-card-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tbl-card-img {
  width: 32px;
  height: 44px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tbl-card-name {
  font-weight: 600;
  color: var(--text-primary);
}

.tbl-actions-wrapper {
  display: flex;
  gap: 8px;
}

.btn-action-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.btn-action-circle:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
}

.btn-action-circle.edit:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-action-circle.delete:hover {
  color: var(--color-danger);
  border-color: var(--color-danger);
}

/* 5. PAYMENT AND CHECKOUT FLOWS */
.checkout-summary-box {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.checkout-summary-box span:last-child {
  font-size: 20px;
  color: var(--color-secondary);
  font-weight: 800;
}

/* Checkout Success View */
.checkout-success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  animation: scale-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scale-up {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon-animation {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border-radius: 50%;
  margin-bottom: 24px;
}

.success-icon-animation i {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 2;
}

.circle-border {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--color-success);
  border-radius: 50%;
  animation: expand-pulsate 1.5s infinite ease-out;
}

@keyframes expand-pulsate {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

.checkout-success-view h2 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.checkout-success-view p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   AUCTION SYSTEM PREMIUM STYLING
   ========================================================================== */

/* Auction badges & countdowns */
.card-rarity-pill.auction-badge {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.auction-timer-badge {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auction-timer-badge.ending-soon {
  background-color: rgba(239, 68, 68, 0.35);
  border-color: #ef4444;
  color: white;
  animation: timer-pulse 1s infinite alternate;
}

@keyframes timer-pulse {
  0% { transform: scale(1); box-shadow: 0 0 5px rgba(239, 68, 68, 0.3); }
  100% { transform: scale(1.05); box-shadow: 0 0 15px rgba(239, 68, 68, 0.7); }
}

.card-action-btn.bid-action-btn {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  width: auto;
  border-radius: 20px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
}

.card-action-btn.bid-action-btn:hover {
  background-color: var(--color-warning);
  color: black;
  border-color: var(--color-warning);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

/* Detailed Bidding Log */
.auction-bidding-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.bids-history-container {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.bids-history-container h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.bids-log-list {
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.bid-log-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--text-dark);
  animation: bid-appear 0.3s ease;
}

.bid-log-row.user-lead {
  border-left-color: var(--color-secondary);
  background-color: rgba(6, 182, 212, 0.05);
}

.bid-log-row.bot-lead {
  border-left-color: var(--color-warning);
}

@keyframes bid-appear {
  from { transform: translateY(-5px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.bid-row-user {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bid-row-time {
  font-size: 10px;
  color: var(--text-dark);
}

.bid-row-amount {
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--text-primary);
}

/* Bid action controls */
.bid-input-wrapper {
  display: flex;
  gap: 10px;
}

.bid-input-wrapper input {
  flex: 1;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
}

.bid-input-wrapper input:focus {
  outline: none;
  border-color: var(--color-warning);
}

.btn-bid-submit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: black;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-bid-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
  color: black;
}

.auction-ended-msg {
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-weight: 600;
  font-size: 14px;
}

.auction-ended-msg.user-won {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* ==========================================================================
   CUSTOM IMAGE LOADER PRESTIGE DESIGN
   ========================================================================== */

.illustration-tabs {
  display: flex;
  gap: 6px;
  background-color: var(--bg-tertiary);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  margin-bottom: 14px;
}

.illus-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.illus-tab-btn i {
  width: 14px;
  height: 14px;
}

.illus-tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.02);
}

.illus-tab-btn.active {
  color: white;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Commutative panels */
.illus-panel {
  display: none;
  animation: fade-in 0.3s ease forwards;
}

.illus-panel.active {
  display: block;
}

/* Image preview frame */
.illus-preview-wrapper {
  margin-top: 16px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.preview-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.preview-img-frame {
  width: 100px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background-color: var(--bg-tertiary);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.preview-art-elem {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.file-upload-wrapper input[type="file"] {
  border: 1px dashed var(--border-glass);
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: pointer;
}
.file-upload-wrapper input[type="file"]::file-selector-button {
  background-color: var(--bg-secondary);
  color: white;
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  padding: 4px 10px;
  margin-right: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.file-upload-wrapper input[type="file"]::file-selector-button:hover {
  background-color: var(--bg-tertiary);
}

/* ==========================================================================
   STRIPE SECURE GATEWAY & SAAS STOREFRONTS
   ========================================================================== */

.stripe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.stripe-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stripe-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: #635bff;
  font-style: italic;
  text-shadow: 0 0 10px rgba(99, 91, 255, 0.2);
}

.stripe-badge-secure {
  font-size: 10px;
  font-weight: 700;
  color: #00d4ff;
  background-color: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 3px;
}

.stripe-badge-secure i {
  width: 10px;
  height: 10px;
}

.stripe-cert {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.stripe-lock-icon {
  width: 12px;
  height: 12px;
  color: #10b981;
}

/* Spinner */
.stripe-spinner-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  position: relative;
}

.stripe-spinner {
  width: 100%;
  height: 100%;
  border: 4px solid rgba(99, 91, 255, 0.1);
  border-left-color: #635bff;
  border-radius: 50%;
  animation: stripe-spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(99, 91, 255, 0.2);
}

@keyframes stripe-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Multi-tenant storefront theme variants */
.hero-banner-theme-gold {
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 30px rgba(255, 165, 2, 0.15);
}
.hero-banner-theme-gold #storefront-owner {
  color: var(--color-gold);
}

.hero-banner-theme-fire {
  border-color: var(--color-fire) !important;
  box-shadow: 0 0 30px rgba(255, 71, 87, 0.15);
}
.hero-banner-theme-fire #storefront-owner {
  color: var(--color-fire);
}

.hero-banner-theme-water {
  border-color: var(--color-water) !important;
  box-shadow: 0 0 30px rgba(46, 134, 222, 0.15);
}
.hero-banner-theme-water #storefront-owner {
  color: var(--color-water);
}

.hero-banner-theme-grass {
  border-color: var(--color-grass) !important;
  box-shadow: 0 0 30px rgba(46, 213, 115, 0.15);
}
.hero-banner-theme-grass #storefront-owner {
  color: var(--color-grass);
}
/* Modal and layout responsive tweaks */
@media (max-width: 768px) {
  .card-details-view {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  .col-6 {
    width: 100%;
  }
  .modal-container {
    padding: 20px;
  }
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
}

/* ==========================================================================
   USER AUTHENTICATION & PROFILE DESIGN
   ========================================================================== */

/* Profile Avatar Customizer preset circles */
.profile-avatar-opt {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s;
  background-size: cover;
  background-position: center;
}
.profile-avatar-opt:hover {
  transform: scale(1.1);
}
.profile-avatar-opt.active {
  border-color: var(--color-secondary);
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--color-secondary-glow);
}

/* Avatar commutation panels */
.avatar-panel {
  display: none;
  animation: fade-in 0.3s ease forwards;
}
.avatar-panel.active {
  display: block;
}

.profile-avatar-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-avatar-tab-btn.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Discord button hover styles */
#btn-login-discord:hover {
  background-color: #4752c4 !important;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

/* Google button hover styles */
#btn-login-google:hover {
  background-color: #f8f9fa !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   SHIPPING & STRIPE PREMIUM DESIGNS
   ========================================================================== */

.checkout-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-section-title {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.delivery-chips-group {
  display: flex;
  gap: 12px;
  width: 100%;
}

.delivery-chip {
  flex: 1;
  cursor: pointer;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
}

.delivery-chip:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.02);
}

.delivery-chip.active {
  border-color: var(--color-secondary);
  background: rgba(6, 182, 212, 0.05);
  box-shadow: 0 0 15px var(--color-secondary-glow);
}

.delivery-chip .chip-content {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delivery-chip .chip-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  color: white;
}

.delivery-chip .chip-main i {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.delivery-chip.active .chip-main i {
  color: var(--color-secondary);
}

.delivery-chip .chip-price {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-secondary);
}

.shipping-fields-sub, .payment-fields-sub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slide-down-sub 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-down-sub {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mondial Relay List styles */
.relais-list-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom Scrollbar for Relais List */
.relais-list-group::-webkit-scrollbar {
  width: 4px;
}
.relais-list-group::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.01);
}
.relais-list-group::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 20px;
}

.relais-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}

.relais-item:hover {
  border-color: rgba(255,255,255,0.15);
  background-color: rgba(255, 255, 255, 0.01);
}

.relais-item.active {
  border-color: var(--color-secondary);
  background-color: rgba(6, 182, 212, 0.04);
}

.relais-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.relais-item-name {
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.relais-item-dist {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-secondary);
  background-color: var(--color-secondary-glow);
  padding: 2px 6px;
  border-radius: 10px;
}

.relais-item-addr {
  font-size: 11px;
  color: var(--text-muted);
}

/* Virtual Credit Card Premium Mock */
.virtual-card {
  width: 100%;
  aspect-ratio: 1.586 / 1; /* Standard ID-1 Ratio */
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c084fc 100%);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.virtual-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  transform: rotate(-15deg);
  pointer-events: none;
}

.virtual-card-chip {
  width: 38px;
  height: 30px;
  background: linear-gradient(135deg, #ffd700 0%, #cca100 100%);
  border-radius: 6px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.virtual-card-chip::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 8px;
  width: 22px;
  height: 20px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
}

.virtual-card-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: white;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.virtual-card-number {
  font-family: 'Outfit', monospace;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  color: white;
  word-spacing: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin: 18px 0;
  text-align: center;
}

.virtual-card-holder, .virtual-card-expiry {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 6. EXTENDED SPA SUBPAGES STYLING */
.dashboard-subpage-content {
  animation: fade-in-subpage 0.3s ease;
}

.dashboard-subpage-content.active-subpage {
  display: block !important;
}

.dashboard-subpage-content.hidden-subpage {
  display: none !important;
}

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

.subnav-btn:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--border-glass) !important;
}

.subnav-btn.active {
  background-color: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-bottom: 2px solid var(--color-primary) !important;
  color: white !important;
}

/* Print utility for Colissimo */
@media print {
  body * {
    visibility: hidden;
  }
  #colissimo-print-area, #colissimo-print-area * {
    visibility: visible;
  }
  #colissimo-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

/* Chat bubble micro-animation */
.chat-bubble:hover {
  transform: scale(1.1);
}

/* Scrollbar styling for chat and lists */
.chat-messages::-webkit-scrollbar,
.bids-log-list::-webkit-scrollbar,
#admin-chat-messages-list::-webkit-scrollbar {
  width: 5px;
}
.chat-messages::-webkit-scrollbar-track,
.bids-log-list::-webkit-scrollbar-track,
#admin-chat-messages-list::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb,
.bids-log-list::-webkit-scrollbar-thumb,
#admin-chat-messages-list::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 4px;
}

/* Conversion metric custom bars */
.analytics-bar-bg {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}
.analytics-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

/* Collection Specific Card Styles */
.card-item.card-not-owned {
  opacity: 0.45;
  filter: grayscale(0.85);
  border-color: var(--border-glass);
}
.card-item.card-not-owned:hover {
  opacity: 0.85;
  filter: grayscale(0.2);
  border-color: var(--border-glass-hover);
  box-shadow: none;
}
.col-toggle-btn {
  transition: all 0.2s ease-in-out;
}
.col-toggle-btn:hover {
  transform: translateY(-1px);
}
.col-btn-standard-active {
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.col-btn-reverse-active {
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}
.col-btn-cart-active {
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.col-card-wrapper .card-item {
  aspect-ratio: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 600px) {
  /* Smaller grid columns on mobile so cards fit nicely in 2 columns */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  /* Compact cards on mobile so information is fully visible */
  .col-card-wrapper .card-item,
  .card-item {
    padding: 8px !important;
    border-radius: var(--radius-sm) !important;
  }
  
  .card-header-ui {
    margin-bottom: 4px !important;
  }

  .card-category {
    font-size: 8px !important;
  }
  
  .card-title {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }
  
  .card-rarity-pill {
    font-size: 7px !important;
    padding: 1px 4px !important;
  }
  
  .card-img-frame {
    margin-bottom: 4px !important;
  }

  .col-toggle-btn {
    padding: 4px 2px !important;
    font-size: 8px !important;
  }
  
  .col-toggle-btn span {
    font-size: 8px !important;
  }
  
  .col-toggle-btn i {
    width: 9px !important;
    height: 9px !important;
  }
}


