/* ========== Base ========== */
:root {
  --bg: #0b1024;
  --bg-2: #0b1438;
  --gradient-start: #19a2ff;
  --gradient-end: #0b103a;
  --ink: #0e1222;
  --text: #121826;
  --muted: #667085;
  --border: #e6e8ee;
  --card: #ffffff;
  --primary: #2563eb;
  --primary-ink: #ffffff;
  --ring: rgba(37, 99, 235, .35);
  --shadow: 0 10px 24px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .10);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: #f8fafc;
  line-height: 1.4;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 48px 0
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-weight: 800;
  letter-spacing: .3px;
  text-decoration: none;
  color: #0a0f2d;
  font-size: 1.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  inline-size: 40px;
  block-size: 40px;
  display: grid;
  place-items: center;
  background: #f1f4f9;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.icon-btn:hover {
  background: #e8eef8;
  transform: translateY(-1px)
}

.icon-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #0e172a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.link {
  text-decoration: none;
  color: #0e172a;
  font-weight: 600;
  padding: 8px 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s ease;
}

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

.btn.primary:hover {
  filter: brightness(1.05)
}

.btn.primary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px
}





/* ========== Category Pages ========== */
.category-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  padding: 32px 0;
  margin-bottom: 32px;
}

.category-header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.category-breadcrumb a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.category-breadcrumb a:hover {
  text-decoration: underline;
}

.category-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}


.recs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 8px;
}

@media (max-width: 1200px) {
  .recs {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .recs {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .recs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, .08), 0 1px 3px rgba(16, 24, 40, .10);
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(16, 24, 40, .12), 0 4px 12px rgba(16, 24, 40, .08);
  border-color: #d1d9ff;
}

.card-img {
  height: 200px;
  background: linear-gradient(135deg, #f8faff, #f0f4ff);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f0f4ff;
}

/* Makes the picture fill the frame perfectly */
.card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
  transition: transform 0.3s ease;
}

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

.card-content {
  padding: 20px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.card-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

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

.card-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.card-btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.card-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.card-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.recs>* {
  min-width: 0;
}



.features ul {
  margin: 0 0 6px 20px;
  color: #ffffff
}

.features li {
  padding: 6px 0
}

/* ========== Why Choose Us ========== */
.center {
  text-align: center;
  margin: 0 0 22px
}

.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .why {
    grid-template-columns: 1fr
  }
}

.why-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}

.why-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #3a4a7a;
  background: linear-gradient(180deg, #eef3ff, #dde7ff);
  border: 1px solid #e2e8ff;
}

.why-text {
  margin: 0;
  color: #3b465b;
  font-weight: 700
}

/* ========== Footer ========== */
.site-footer {
  margin-top: 36px;
  padding: 24px 0;
  background: #0f1229;
  color: #c7d0ea;
  position: relative;
  clear: both;
}

.site-footer p {
  margin: 0;
  text-align: center;
  letter-spacing: .3px
}


.cat-icon {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background: linear-gradient(180deg, #e8f3ff, #dce8ff);
  border: 1px solid #e6ecff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  position: relative;
  overflow: hidden;
}

.cat-icon img {
  position: absolute;
  inset: 0;
  /* fill the box */
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* no empty edges, crops if needed */
  display: block;
}





/*Extra Lines For Img Fix/*
  /* --- ensure card image fills and is clipped --- */
.card {
  overflow: hidden;
}

/* safety */
.card-img {
  height: 130px;
  border: 1px solid #e6ebff;
  border-radius: 12px;
  background: #f3f6ff;
  position: relative;
  overflow: hidden;
  /* important */
  margin-bottom: 10px;
}

.card-img>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
  pointer-events: none;
  /* prevents image covering the arrow */
}

/* --- keep the slider interactive --- */
.recs {
  position: relative;
  z-index: 1;
}

.recs>* {
  min-width: 0;
}

/* cards don’t force width */
.recs-ctrl {
  position: relative;
  z-index: 3;
}

/* arrow above scroller */
.recs-ctrl .arrow {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}


/*Win Code For Why Choose Us Section */
/* Why Choose Us — deep navy/charcoal */
.why-item {
  background: #0F1229;
  /* deep navy (hex) */
  border: 1px solid #0B0F26;
  /* slightly darker edge */
  color: #ffffff;
}

.why-text {
  color: #ffffff;
}

/* ensures the caption is white */

/* If you also want the “LOGO” text inside the bubble to be white: */
.why-logo {
  color: #ffffff;
}


/*Why Choose Us Logo Adjustments */
/* Logo box (container) */
.why-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: linear-gradient(180deg, #eef3ff, #dde7ff);
  border: 1px solid #e2e8ff;
  position: relative;
  overflow: hidden;
  /* clip to rounded corners */
}

/* Image fills the box with no gaps or overflow */
.why-logo img {
  position: absolute;
  inset: 0;
  /* fill the box */
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* crops if needed, no empty edges */
  display: block;
  border-radius: inherit;
}


/* Chatbot Container */
.chatbot-container {
  position: fixed;
  bottom: 90px;
  /* Adjusted to sit above the FAQ button */
  right: 20px;
  width: 350px;
  height: 600px;
  display: none;
  z-index: 1000;
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 26px;
}

/* Show the chatbot */
.chatbot-container.show {
  display: block;
}

/* FAQ Button */
.faq-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  font-family: inherit;
}

.faq-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.faq-btn:active {
  transform: translateY(0);
}

.faq-icon {
  font-weight: 900;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.faq-text {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}





/* --- Sticky footer: remove white gap under footer on short pages --- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
  /* pushes footer to the bottom */
}

/* CSS FOR CART COUNT */
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* ----- Escrow CSS ----- */
/* ----- Checkout layout/cards ----- */
.checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.card-like {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.summary {
  position: sticky;
  top: 96px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  gap: 12px;
}

.steps li {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  color: #475569;
}

.steps li.active {
  background: #eaf0ff;
  border-color: #cbd8ff;
  color: #111827;
}

/* Form */
.form .form-row {
  margin-bottom: 12px;
  display: block;
}

.form .form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.radio.muted {
  color: var(--muted);
}

.agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 6px;
}

/* Review items */
.review-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

.review-row img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.review-row .title {
  font-weight: 800;
}

.review-row .muted {
  color: var(--muted);
}

.review-row .strong {
  font-weight: 800;
}

/* Order status timeline */
.status-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========================================
   Seller Chat UI
   ======================================== */
.seller-chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  height: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 2000;
  /* Higher than FAQ bot */
  overflow: hidden;
  border: 1px solid #e5e7eb;
  font-family: 'Inter', sans-serif;
}

.seller-chat-container.show {
  display: flex;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.seller-chat-header {
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-status-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
}

.chat-title {
  font-weight: 700;
  font-size: 1rem;
  color: #111827;
}

.chat-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 4px;
}

.chat-close-btn:hover {
  color: #4b5563;
}

.seller-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
}

.chat-message.me {
  align-self: flex-end;
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-message.them {
  align-self: flex-start;
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.8;
  text-align: right;
}

.seller-chat-input-area {
  padding: 12px;
  background: #fff;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 8px;
}

#seller-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

#seller-chat-input:focus {
  border-color: #2563eb;
}

#seller-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

#seller-chat-send:hover {
  background: #1d4ed8;
}

.chat-loading,
.chat-empty,
.chat-error {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 20px;
}

/* Chat Button Style */
.product-btn-chat {
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-btn-chat:hover {
  background: #059669;
}

/* ========================================
   Messages Page Styles
   ======================================== */
.messages-page {
  min-height: calc(100vh - 140px);
  padding: 32px 0 80px;
}

.messages-header {
  margin-bottom: 32px;
}

.messages-header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 12px;
}

.messages-subtitle {
  color: #6b7280;
  margin: 0;
}

.messages-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
  height: 600px;
  margin-bottom: 40px;
}

@media (max-width: 968px) {
  .messages-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* Conversations Sidebar */
.conversations-sidebar {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.conversations-header {
  padding: 20px;
  border-bottom: 1px solid #f3f4f6;
}

.conversations-header h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.conversation-search {
  position: relative;
}

.conversation-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.conversation-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

.conversation-search input:focus {
  border-color: #2563eb;
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
}

.conversation-item:hover {
  background: #f9fafb;
}

.conversation-item.active {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
}

.conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

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

.conv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.conv-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-time {
  font-size: 0.75rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.conv-product {
  font-size: 0.8rem;
  color: #2563eb;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-last-message {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chat Area */
.chat-area {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  padding: 40px;
}

.chat-empty-state i {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.chat-empty-state h3 {
  margin: 0 0 8px;
  color: #6b7280;
}

.chat-empty-state p {
  margin: 0;
  font-size: 0.9rem;
}

.chat-active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header-main {
  padding: 20px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-user-info h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.chat-product-tag {
  margin: 0;
  font-size: 0.85rem;
  color: #2563eb;
}

.chat-messages-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.message-bubble.me {
  align-self: flex-end;
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-bubble.them {
  align-self: flex-start;
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}

.message-timestamp {
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.8;
}

.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 12px;
  background: #fff;
}

.chat-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  outline: none;
  font-size: 0.95rem;
}

.chat-input-area input:focus {
  border-color: #2563eb;
}

.chat-input-area button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-input-area button:hover {
  background: #1d4ed8;
}

.loading-state,
.empty-conversations,
.error-state,
.empty-messages {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}

.loading-state i,
.empty-conversations i,
.error-state i {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.empty-conversations p,
.error-state p {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
}

.status-row .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #cbd5e1;
  display: inline-block;
}

.status-row.done {
  color: #0e172a;
  font-weight: 700;
}

.status-row.done .dot {
  background: #2563eb;
}

.summary-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  background: #fafbff;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* Sticky footer on short pages */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
}



/* ===== Product Detail Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(16, 24, 40, .15), 0 8px 16px rgba(16, 24, 40, .1);
  width: min(1000px, 95%);
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content {
  padding: 24px;
  max-height: calc(90vh - 48px);
  overflow-y: auto;
  scroll-behavior: smooth;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal-content {
    padding: 24px;
  }
}

.product-image-large {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid #e6ebff;
  background: #f8faff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}

.product-info h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.product-price-large {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.product-description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.product-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 120px;
}

.product-btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.product-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.product-btn-secondary {
  background: #f8fafc;
  color: var(--text);
  border: 2px solid var(--border);
}

.product-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* ===== Escrow steps (professional pill design) ===== */
.escrow-section {
  background: linear-gradient(135deg, #f8faff, #f0f4ff);
  border: 1px solid #e0e7ff;
  border-radius: 20px;
  padding: 24px;
  margin: 24px 0;
}

.escrow-section h3 {
  margin: 0 0 16px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.escrow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.escrow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #d1d9ff;
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(16, 24, 40, .06);
  transition: all 0.2s ease;
}

.escrow-step .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0e172a;
  background: #eef4ff;
  border: 1px solid #dbe7ff;
  font-size: 0.9rem;
}

.escrow-step .label {
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.2px;
  font-size: 0.9rem;
}

.escrow-step.active {
  background: #f0f4ff;
  border-color: #c7d2fe;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 24, 40, .1);
}

.escrow-step.active .num {
  background: #dbe7ff;
  color: var(--primary);
}

.escrow-note {
  color: var(--muted);
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  font-style: italic;
}

/* ===== Product Reviews ===== */
.product-reviews {
  margin-top: 32px;
}

.product-reviews h3 {
  margin: 0 0 20px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.reviews-grid {
  display: grid;
  gap: 16px;
}

.review-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .06);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-author {
  font-weight: 800;
  color: var(--text);
  font-size: 1rem;
}

.review-rating {
  display: flex;
  gap: 2px;
  color: #fbbf24;
  font-size: 1.1rem;
}

.review-text {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* ===== Loading States & Micro-interactions ===== */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

  100% {
    background-position: -200% 0;
  }
}

.card-loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Hover effects for better interactivity */
.card:hover .card-title {
  color: var(--primary);
  transition: color 0.2s ease;
}

.card:hover .card-price {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Focus states for accessibility */
.card:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.card-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Enhanced scrollbar for modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsive improvements */
@media (max-width: 640px) {
  .category-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .product-actions {
    flex-direction: column;
  }

  .card-actions {
    flex-direction: column;
  }

  .escrow-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .escrow-step {
    justify-content: center;
  }
}


/***********************
  Auth (Join / Sign in)
***********************/
.page-auth .container {
  width: min(720px, 92%);
}

/* Title */
.page-auth h1 {
  margin: 0 0 14px;
  font-weight: 900;
  letter-spacing: .2px;
}

/* Card */
.page-auth .form-card {
  background:
    radial-gradient(900px 150px at 50% 0%, rgba(11, 16, 58, .06), transparent 60%),
    #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

/* Rows & layout */
.page-auth .form-row {
  margin-bottom: 14px;
}

.page-auth .form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 760px) {
  .page-auth .form-row.two {
    grid-template-columns: 1fr;
  }
}

/* Labels & inputs */
.page-auth .form-row label {
  display: block;
  font-weight: 800;
  margin: 0 0 6px;
  color: #0e1222;
}

.page-auth .form-row input {
  width: 100%;
  padding: 12px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border .15s ease, box-shadow .15s ease, background .15s ease;
}

.page-auth .form-row input:focus {
  outline: none;
  border-color: #c8d8ff;
  box-shadow: 0 0 0 4px var(--ring);
}

/* Role radios */
.page-auth fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 6px;
}

.page-auth fieldset legend {
  font-weight: 800;
  margin-bottom: 6px;
}

.page-auth .radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
}

.page-auth .radio input {
  accent-color: var(--primary);
}

/* Buttons */
.page-auth .btn {
  font-weight: 800;
  border-radius: 12px;
}

.page-auth .btn.primary {
  background: var(--primary);
  color: var(--primary-ink);
  border: none;
}

.page-auth .btn.primary:hover {
  filter: brightness(1.05);
}

.page-auth .btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Small helper links */
.page-auth a {
  color: #3b5ccc;
  text-decoration: none;
  font-weight: 700;
}

.page-auth a:hover {
  text-decoration: underline;
}

/* Subtle form footer text */
.page-auth p {
  color: var(--muted);
  font-weight: 600;
}

/* Error toast (optional — show by adding this class to a message) */
.page-auth .error {
  background: #fef2f2;
  color: #7f1d1d;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Success toast (optional) */
.page-auth .success {
  background: #ecfdf5;
  color: #064e3b;
  border: 1px solid #a7f3d0;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* ========== Chatbot & UI Fixes ========== */
.chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 550px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(100%) scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
  border: 1px solid var(--border);
  display: none;
}

.chatbot-container.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  display: block;
}

.chatbot-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

/* Cart count badge */
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* Notification System */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
  border-left: 4px solid var(--primary);
  min-width: 300px;
  max-width: 400px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.notification-message {
  color: var(--text);
  font-weight: 500;
  flex: 1;
  margin-right: 12px;
}

.notification-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.notification-success {
  border-left-color: #10b981;
}

.notification-error {
  border-left-color: #ef4444;
}

.notification-info {
  border-left-color: var(--primary);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 0;
  }

  .header-actions {
    gap: 8px;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .search {
    flex-direction: column;
    gap: 12px;
  }

  .search-btn {
    width: 100%;
    height: 48px;
  }

  .categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .chatbot-container {
    width: calc(100vw - 24px);
    height: calc(100vh - 100px);
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .recs {
    grid-template-columns: 1fr;
  }

  .notification {
    right: 12px;
    left: 12px;
    min-width: unset;
    max-width: unset;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.1rem;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .categories {
    grid-template-columns: 1fr;
  }
}

/* Unread Message Indicators */
.unread-badge {
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  flex-shrink: 0;
  line-height: 1;
}

.conversation-item.unread {
  background: #f8fafc;
  border-left: 3px solid #2563eb;
}

.conversation-item.unread .conv-last-message {
  font-weight: 700;
  color: #0e172a;
}

.conv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  margin-top: 4px;
}
/* ========================================
   AUCTION HUB - Elite Indigo Styling
   ======================================== */
:root {
  --auction-primary: #4F46E5;
  --auction-secondary: #818CF8;
  --auction-urgent: #EF4444;
}

.card-badge.auction {
  background: linear-gradient(135deg, var(--auction-primary), var(--auction-secondary)) !important;
  color: white !important;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(79, 70, 225, 0.3);
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.card-badge.auction i {
  font-size: 0.8rem;
  animation: pulse-auction 1.5s infinite;
}

@keyframes pulse-auction {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.auction-timer-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--auction-primary);
  background: rgba(79, 70, 229, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.timer-urgent {
  color: white !important;
  background: var(--auction-urgent) !important;
  border-color: var(--auction-urgent) !important;
  animation: shake-auction 0.5s infinite;
}

@keyframes shake-auction {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}

.auction-price-label {
  color: var(--auction-primary) !important;
  font-weight: 800 !important;
}

.btn.auction-btn, .card-btn.auction-btn {
  background-color: var(--auction-primary) !important;
  border-color: var(--auction-primary) !important;
  color: white !important;
}

.btn.auction-btn:hover, .card-btn.auction-btn:hover {
  background-color: #4338CA !important;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* Modal Bidding Widget */
.bidding-widget {
  background: #f9faff;
  border: 2px solid rgba(79, 70, 229, 0.1);
  padding: 24px;
  border-radius: 20px;
  margin: 20px 0;
  animation: slideUpFade 0.4s ease-out;
}

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

.bid-input-group {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.bid-input-group input {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
  transition: all 0.3s;
}

.bid-input-group input:focus {
  border-color: var(--auction-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.bid-hint {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-auction-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.auction-meta-box {
  flex: 1;
  background: white;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  text-align: center;
}

.auction-meta-box .label {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.auction-meta-box .val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
}

.auction-meta-box.timer .val {
  color: var(--auction-primary);
}


/* ========================================
   AUCTION UI RECONSTRUCTION - Elite Expansion
   ======================================== */

.card-auction {
    border-color: rgba(79, 70, 229, 0.3) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f9faff 100%) !important;
}

.card-fixed {
    border-color: rgba(37, 99, 235, 0.1) !important;
}

/* Diagonal Auction Ribbon */
.auction-ribbon-wrapper {
    width: 100px;
    height: 100px;
    overflow: hidden;
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 100;
}

.auction-ribbon {
    font: bold 12px 'Inter', sans-serif;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg);
    position: relative;
    padding: 7px 0;
    left: -5px;
    top: 15px;
    width: 150px;
    background-color: #4F46E5;
    background-image: linear-gradient(rgba(255,255,255,0.2) 0%, transparent 100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.auction-ended-ribbon {
    background-color: #64748b !important;
}

/* High-Contrast Countdown Bar */
.countdown-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    border-bottom-left-radius: 20px; /* match card radius if possible */
    border-bottom-right-radius: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Pulse Animation for CTA */
.btn-pulse {
    animation: pulse-indigo 2s infinite;
}

@keyframes pulse-indigo {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* Bidding Hub Modal Enhancements */
.bidding-box {
    border: 2px solid #eef2ff;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    margin-top: 16px;
    position: relative;
}

.bidding-history-link {
    font-size: 0.8rem;
    color: #4F46E5;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.recent-bidders {
    margin-top: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.recent-bidders h4 {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.bidder-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 4px 0;
    color: #475569;
}

.bidder-row.winner {
    color: #4F46E5;
    font-weight: 700;
}

/* Countdown Timer States */
.countdown-bar.timer-urgent {
    background: rgba(239, 68, 68, 0.92) !important;
    animation: countdown-pulse 1s infinite;
}

@keyframes countdown-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.countdown-bar.timer-ended {
    background: rgba(100, 116, 139, 0.9) !important;
    animation: none !important;
}

/* Auction Ended Card */
.auction-ended-card {
    opacity: 0.7;
    filter: grayscale(20%);
}

.auction-ended-card:hover {
    opacity: 0.85;
}

/* Auction Card Indigo Hover Enhancement */
.card-auction:hover {
    border-color: rgba(79, 70, 229, 0.4) !important;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12), 0 4px 12px rgba(79, 70, 229, 0.08) !important;
}

/* Ensure card-img has relative positioning for ribbon/countdown overlays */
.card-auction .card-img {
    position: relative;
    overflow: hidden;
}


