/* ==========================================================================
   GSMGo Auctions - Official Theme Stylesheet (Primary Color: #164E9B)
   ========================================================================== */

:root {
  --primary: #164E9B;         /* Official Requested Blue */
  --primary-dark: #0f3973;    /* Darker shade */
  --primary-light: #2563eb;   /* Lighter shade */
  --accent: #FF9900;          /* Official Vibrant GSMGo Orange */
  --accent-dark: #e68a00;     /* Darker Orange */
  --accent-green: #16a34a;    /* Bid/Closes Green */
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #93c5fd;    /* Light Blue Border */
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border: none !important;
  box-shadow: none !important;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.top-bar {
  background-color: #0d3266;
  color: #dbeafe;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header {
  background-color: var(--primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(22, 78, 155, 0.25);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo img {
  height: 48px;
  width: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-title span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Nav Dropdown Menus */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > a::after {
  content: ' ▾';
  font-size: 0.75rem;
  margin-left: 3px;
  opacity: 0.8;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 230px;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1000;
  border: 1px solid #e2e8f0;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  color: #0f172a !important;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0 !important;
  transition: background 0.15s ease, color 0.15s ease;
  background: transparent !important;
}

.dropdown-menu li a:hover {
  background-color: #f1f5f9 !important;
  color: var(--primary) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-accent {
  background-color: var(--accent);
  color: #0f172a;
}

.btn-accent:hover {
  background-color: #eab308;
}

.btn-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
}

/* Full Width Hero Banner */
.hero-banner-wrap {
  width: 100%;
  background-color: #0f172a;
  text-align: center;
  overflow: hidden;
}

.hero-banner-wrap img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Modern Next Auction Countdown Banner */
.next-auction-banner {
  background: linear-gradient(135deg, #0d3266 0%, #164E9B 100%);
  color: #ffffff;
  padding: 1.5rem 0;
  border-bottom: 3px solid var(--accent);
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.next-auction-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.next-auction-info h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.next-auction-info p {
  color: #bfdbfe;
  font-size: 0.9rem;
}

.next-auction-banner--static .next-auction-flex {
  justify-content: space-between;
}

.next-auction-static-date {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.countdown-digits-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.digit-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(250, 204, 21, 0.4);
  backdrop-filter: blur(4px);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  text-align: center;
  min-width: 65px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.digit-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  font-family: monospace, monospace;
}

.digit-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

.countdown-colon {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: -0.4rem;
}

/* Auctions Grid: 5 Tiles per Row x 2 Rows */
.auctions-section {
  padding: 2.5rem 0 2rem;
}

.section-header-title {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-header-title h2 {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.section-header-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

.grid-5-col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
}

.auction-tile {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.15rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auction-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(22, 78, 155, 0.15);
  border-color: var(--primary);
}

.badge-top-seller {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ccff00;
  color: #000000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #a3e635;
}

.badge-vat-margin {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #0284c7;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tile-img {
  width: 100%;
  height: 165px;
  object-fit: contain;
  margin-bottom: 0.85rem;
}

.tile-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  min-height: 48px;
}

.tile-bid-info {
  background-color: #f8fafc;
  width: 100%;
  padding: 0.5rem 0.4rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

.tile-bid-label {
  font-size: 0.88rem;
  color: var(--accent-green);
  font-weight: 500;
}

.tile-bid-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-green);
}

.tile-subtag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.5rem;
}

.btn-pill-status {
  background-color: var(--primary);
  color: #ffffff;
  width: 85%;
  padding: 0.4rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  display: inline-block;
  border: none;
}

.btn-pill-status.active {
  background-color: var(--accent-green);
}

.tile-closes-date {
  font-size: 0.7rem;
  color: var(--accent-green);
  font-weight: 700;
}

/* 3 Featured Promo Cards */
.promo-cards-section {
  padding: 1.5rem 0 2rem;
  background-color: transparent;
}

.promo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.promo-card {
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.promo-card-header {
  padding: 0.55rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.promo-card-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  flex-grow: 1;
}

.promo-card-body {
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.promo-card-body p {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  min-height: auto;
}

.promo-card-img-wrap {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.promo-card-img-wrap img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.promo-card-icon-box {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

/* Card Colors */
.promo-card-blue {
  background-color: #164E9B;
  color: #ffffff;
}

.promo-card-blue .promo-card-header {
  background-color: #0f3d7c;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-card-blue p {
  color: #ffffff;
}

.promo-card-yellow {
  background-color: #ffff00;
  color: #000000;
}

.promo-card-yellow .promo-card-header {
  background-color: #e6e600;
  color: #000000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.promo-card-yellow p {
  color: #000000;
}

.promo-card-cyan {
  background-color: #0099ff;
  color: #ffffff;
}

.promo-card-cyan .promo-card-header {
  background-color: #0080ff;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-card-cyan p {
  color: #ffffff;
}

.btn-orange {
  background-color: #f57c00;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.45rem 1.35rem;
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: 0 3px 8px rgba(245, 124, 0, 0.35);
  transition: all 0.2s ease;
  border: none;
  display: inline-block;
  text-decoration: none;
}

.btn-orange:hover {
  background-color: #e65100;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* How It Work Section */
.how-it-work-section {
  padding: 2.5rem 0 3.5rem;
  background-color: #ffffff;
}

.how-it-work-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.how-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 1.5rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card {
  background-color: #f1f5f9;
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateX(6px);
  background-color: #e2e8f0;
}

.step-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 0.2rem;
}

.step-content p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}

.how-illustration img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Partners & Payment Methods Infinite Carousel (Rallentato a 55s) */
.partners-carousel-section {
  padding: 2.5rem 0 3rem;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.partners-carousel-track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  animation: marquee-scroll 55s linear infinite; /* Speed reduced for smooth gentle motion */
}

.partners-carousel-track:hover {
  animation-play-state: paused;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  padding: 0 0.5rem;
}

.partner-logo-item img {
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(15%) opacity(90%);
  transition: all 0.25s ease;
}

.partner-logo-item img:hover {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.08);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   News / Blog Section
   ========================================================================== */
.news-section {
  padding: 4rem 0 5rem;
  background-color: #ffffff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(22, 78, 155, 0.15);
}

.news-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #0f172a;
}

.news-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.news-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Footer */
.site-footer {
  background-color: #0d3266;
  color: #94a3b8;
  padding: 3.5rem 0 1.75rem;
  margin-top: auto;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul a {
  color: #94a3b8;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

@media (max-width: 1200px) {
  .grid-5-col {
    grid-template-columns: repeat(3, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-grid-3 {
    grid-template-columns: 1fr;
  }
  .how-it-work-container {
    grid-template-columns: 1fr;
  }
  .next-auction-flex {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .grid-5-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Global Modern Form Controls & Input Styling System
   ========================================================================== */
.form-group {
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
}

.form-group label,
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.45rem;
  font-family: 'Poppins', system-ui, sans-serif;
  letter-spacing: 0.2px;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.form-control:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
  border-color: #94a3b8;
  background-color: #ffffff;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: #164E9B;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 78, 155, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

textarea.form-control,
textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

select.form-control,
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Header User Profile Avatar, Notification Center & Live Outbid Toast Modal
   ========================================================================== */

.header-user-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Notification Bell Center */
.notification-bell-wrapper {
  position: relative;
}

.notification-bell-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  position: relative;
}

.notification-bell-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.notification-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Facebook-Style Notification Dropdown */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease-out;
}

.notification-dropdown.active {
  display: flex;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.notif-dropdown-header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.notif-mark-all-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.notif-mark-all-btn:hover {
  text-decoration: underline;
}

.notif-dropdown-body {
  max-height: 360px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: #0f172a;
  transition: background 0.15s ease;
  position: relative;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-item.unread {
  background: #eff6ff;
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
}

.notif-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.notif-item-content {
  flex: 1;
}

.notif-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.notif-item-msg {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.notif-item-time {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.notif-empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* User Circular Avatar & Dropdown */
.user-avatar-wrapper {
  position: relative;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  outline: none;
}

.user-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  overflow: hidden;
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar-btn:hover .user-avatar-circle {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.4);
}

.user-avatar-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 250px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  z-index: 2000;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  animation: dropdownFadeIn 0.2s ease-out;
}

.user-avatar-dropdown.active {
  display: flex;
}

.user-dropdown-info {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.user-dropdown-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
  display: block;
}

.user-dropdown-email {
  font-size: 0.78rem;
  color: #64748b;
  display: block;
  word-break: break-all;
}

.user-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: #1e293b !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-header .user-avatar-dropdown a,
.site-header .user-avatar-dropdown a.user-dropdown-link {
  color: #1e293b !important;
}

.site-header .user-avatar-dropdown a.user-dropdown-link:hover {
  background: #f1f5f9 !important;
  color: #164E9B !important;
}

.site-header .user-avatar-dropdown a.user-dropdown-link.user-dropdown-link-danger {
  color: #dc2626 !important;
}

.site-header .user-avatar-dropdown a.user-dropdown-link.user-dropdown-link-danger:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.site-header .notification-dropdown a,
.site-header .notification-dropdown a.notif-item {
  color: #0f172a !important;
}

.user-dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.35rem 0;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Discreet Live Outbid Toast Modal */
.outbid-toast-modal {
  position: fixed;
  z-index: 9999;
  background: #ffffff;
  color: #0f172a;
  border-left: 5px solid #ef4444;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28), 0 4px 15px rgba(239, 68, 68, 0.15);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
  
  /* Desktop position: Bottom Right */
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-width: 90vw;
}

@media (max-width: 768px) {
  /* Mobile position: Discreet Bottom */
  .outbid-toast-modal {
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    max-width: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

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

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

.outbid-toast-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.98rem;
  color: #dc2626;
}

.outbid-toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease;
}

.outbid-toast-close:hover {
  color: #0f172a;
}

.outbid-toast-body {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.45;
}

.outbid-toast-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.55rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  transition: all 0.2s ease;
  margin-top: 0.2rem;
}

.outbid-toast-action:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

/* Notification Highlighted Spec Badges */
.notif-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.25;
}

.notif-spec-pill.spec-model {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.notif-spec-pill.spec-cap {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.notif-spec-pill.spec-grade {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Quick Rebid Button inside Notifications */
.btn-quick-rebid {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
  transition: all 0.15s ease;
  line-height: 1.3;
}

.btn-quick-rebid:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.4);
}



