/* ==========================================================================
   Modern Auction Site Design System
   ========================================================================== */

/* CSS Variables / Design Tokens */
:root {
  /* Primary Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  
  /* Secondary Colors */
  --secondary: #0ea5e9;
  --secondary-dark: #0284c7;
  
  /* Accent Colors */
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--bg-secondary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

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

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */

.announcement-bar {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1e1b4b 100%);
  color: white;
  padding: 0.625rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}

.announcement-text {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.announcement-badge {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Main Header / Navigation
   ========================================================================== */

.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header--inner {
  background: var(--bg-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo__img {
  height: 36px;
  width: auto;
}

.nav-logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-logo__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-logo__text-primary {
  color: var(--gray-900);
}

.nav-logo__text-secondary {
  color: var(--primary);
}

/* Navigation Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--gray-900);
  background: var(--gray-100);
}

.nav-link svg {
  flex-shrink: 0;
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown__trigger:hover {
  color: var(--gray-900);
  background: var(--gray-100);
}

.nav-dropdown__chevron {
  transition: transform var(--transition-fast);
}

.nav-dropdown.active .nav-dropdown__chevron {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bg-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-dropdown__menu--right {
  left: auto;
  right: 0;
}

.nav-dropdown.active .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__section {
  padding: 0.25rem 0;
}

.nav-dropdown__section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  padding: 0.5rem 0.75rem 0.375rem;
}

.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-dropdown__item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.nav-dropdown__item--danger {
  color: var(--danger);
}

.nav-dropdown__item--danger:hover {
  background: #fef2f2;
  color: var(--danger);
}

.nav-dropdown__item-icon {
  font-size: 1rem;
}

.nav-dropdown__divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0.5rem 0;
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

@media (min-width: 768px) {
  .nav-cta {
    display: flex;
  }
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  color: white;
}

.nav-cta span {
  display: none;
}

@media (min-width: 992px) {
  .nav-cta span {
    display: inline;
  }
}

.nav-link--auth {
  display: none;
}

@media (min-width: 992px) {
  .nav-link--auth {
    display: flex;
  }
}

.nav-btn {
  display: none;
  align-items: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .nav-btn {
    display: flex;
  }
}

.nav-btn:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* Account Button */
.nav-account-btn {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

@media (min-width: 992px) {
  .nav-account-btn {
    display: flex;
  }
}

.nav-account-btn:hover {
  background: var(--gray-200);
}

.nav-account-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-account-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.nav-account-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.nav-account-balance {
  font-size: 0.6875rem;
  color: var(--primary);
  font-weight: 500;
}

/* Mobile Menu Toggle */
.nav-mobile-toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

@media (min-width: 992px) {
  .nav-mobile-toggle {
    display: none !important;
  }
}

.nav-mobile-toggle__line {
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-mobile-toggle.active .nav-mobile-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.active .nav-mobile-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active .nav-mobile-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 1000;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@media (min-width: 992px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav__content {
  padding: 1rem 1.5rem 2rem;
}

.mobile-nav__link {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav__link:hover {
  color: var(--primary);
}

.mobile-nav__link--small {
  font-size: 0.9375rem;
  padding: 0.75rem 0 0.75rem 1rem;
}

.mobile-nav__link--danger {
  color: var(--danger);
}

.mobile-nav__section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  padding: 1rem 0 0.5rem;
}

.mobile-nav__divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0.5rem 0;
}

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
}

.mobile-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-nav__btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: white;
}

.mobile-nav__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  color: white;
}

.mobile-nav__btn--outline {
  background: var(--gray-100);
  color: var(--gray-700);
}

.mobile-nav__btn--outline:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* Prevent body scroll when mobile nav is open */
body.mobile-nav-open {
  overflow: hidden;
}

/* ==========================================================================
   Navigation / Header (Legacy - keeping for compatibility)
   ========================================================================== */

.top {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: auto;
  min-height: 70px;
}

.top-inner {
  background: var(--bg-primary);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  min-height: 70px;
}

.site-title {
  margin: 0;
  float: none;
  display: flex;
  align-items: center;
}

.site-title a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

img.logo {
  height: 40px;
  width: auto;
  float: none;
}

h2.logo {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  float: none;
}

a h2.logo {
  color: var(--gray-900);
  font-size: 1.5rem;
  margin: 0;
}

.word2 {
  color: var(--primary);
  font-weight: 700;
}

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

.navbar .nav > li {
  border-bottom: none;
}

.navbar .nav > li > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600) !important;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.navbar .nav > li > a:hover {
  color: var(--primary) !important;
  background: var(--gray-100);
}

.navbar .nav li:hover,
.navbar .nav li.dropdown.open > .dropdown-toggle {
  background: none !important;
  border-bottom: none;
}

.navbar .nav > li > a .glyphicon {
  font-size: 1rem;
}

/* Start Auction Button */
.navbar .nav > li > a[href*="newlisting"] {
  background: var(--primary);
  color: white !important;
  font-weight: 600;
}

.navbar .nav > li > a[href*="newlisting"]:hover {
  background: var(--primary-dark);
  color: white !important;
}

/* Dropdown Menu */
.dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  margin-top: 0.5rem;
  min-width: 200px;
}

.dropdown-menu li > a {
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.dropdown-menu li > a:hover,
.dropdown-menu li > a:focus {
  background: var(--gray-100) !important;
  color: var(--primary) !important;
}

.dropdown-menu .divider {
  margin: 0.5rem 0;
  background: var(--gray-200);
}

.navbar-toggle .icon-bar {
  background: var(--gray-600);
}

/* Mobile Navigation */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
  }
  
  .navbar .nav {
    flex-direction: column;
    width: 100%;
  }
  
  .navbar .nav > li {
    width: 100%;
  }
  
  .navbar .nav > li > a {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Hero Section (Home Page)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  min-height: 520px;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, 
      rgba(99, 102, 241, 0.95) 0%, 
      rgba(139, 92, 246, 0.9) 25%,
      rgba(168, 85, 247, 0.85) 50%, 
      rgba(236, 72, 153, 0.8) 75%,
      rgba(251, 146, 60, 0.75) 100%);
  animation: gradientShift 15s ease infinite;
  background-size: 400% 400%;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

/* Animated floating shapes */
.hero__shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation: floatShape 20s ease-in-out infinite;
}

.hero__shape--1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: 10%;
  animation-delay: 0s;
}

.hero__shape--2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 5%;
  animation-delay: -5s;
}

.hero__shape--3 {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 15%;
  animation-delay: -10s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(90deg); }
  50% { transform: translate(-10px, 20px) rotate(180deg); }
  75% { transform: translate(30px, 10px) rotate(270deg); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero__content {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
  
  .hero {
    padding: 5rem 0 6rem;
    min-height: 600px;
  }
}

@media (min-width: 1200px) {
  .hero__content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero__text {
  text-align: center;
}

@media (min-width: 992px) {
  .hero__text {
    text-align: left;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: fadeInUp 0.6s ease-out;
}

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

.hero__badge-icon {
  font-size: 1.125rem;
}

.hero__title {
  color: white;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

@media (min-width: 576px) {
  .hero__title {
    font-size: 2.75rem;
  }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.25rem;
  }
}

@media (min-width: 992px) {
  .hero__title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1200px) {
  .hero__title {
    font-size: 4rem;
  }
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 auto 2rem;
  max-width: 480px;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: 1.125rem;
  }
}

@media (min-width: 992px) {
  .hero__subtitle {
    font-size: 1.25rem;
    margin: 0 0 2rem;
    max-width: 520px;
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .hero__actions {
    justify-content: flex-start;
  }
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.hero__btn--primary {
  background: white;
  color: var(--primary);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.hero__btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.5s ease;
}

.hero__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  color: var(--primary-dark);
}

.hero__btn--primary:hover::before {
  left: 100%;
}

.hero__btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .hero__stats {
    gap: 1.5rem;
    padding: 1.5rem 2rem;
  }
}

@media (min-width: 992px) {
  .hero__stats {
    justify-content: flex-start;
    display: inline-flex;
  }
}

.hero__stat {
  text-align: center;
}

@media (min-width: 992px) {
  .hero__stat {
    text-align: left;
  }
}

.hero__stat-value {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero__stat-value {
    font-size: 1.625rem;
  }
}

.hero__stat-label {
  display: block;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .hero__stat-label {
    font-size: 0.75rem;
  }
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  display: none;
}

@media (min-width: 480px) {
  .hero__stat-divider {
    display: block;
  }
}

/* Hero Visual */
.hero__visual {
  position: relative;
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 350px;
}

@media (min-width: 992px) {
  .hero__visual {
    display: flex;
    animation: fadeInRight 0.8s ease-out 0.3s backwards;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero__image {
  position: relative;
  z-index: 1;
}

.hero__image img {
  max-width: 300px;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.2));
  animation: float 5s ease-in-out infinite;
}

@media (min-width: 1200px) {
  .hero__image img {
    max-width: 340px;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  50% { transform: translateY(-18px) rotate(0deg); }
  75% { transform: translateY(-8px) rotate(-1deg); }
}

.hero__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.375rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 2;
  animation: cardFloat 4s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero__card--1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.hero__card--2 {
  bottom: 25%;
  left: -5%;
  animation-delay: 1s;
}

.hero__card--3 {
  top: 30%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}

.hero__card-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.hero__card-text {
  display: flex;
  flex-direction: column;
}

.hero__card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.hero__card-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 0.125rem;
}

/* ==========================================================================
   Search Section
   ========================================================================== */

.search-section {
  background: linear-gradient(180deg, var(--gray-800) 0%, var(--gray-900) 100%);
  padding: 0;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .search-section {
    margin-top: -2.5rem;
  }
}

.search-section .container {
  transform: translateY(-50%);
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .search-section .container {
    padding: 0 1.5rem;
  }
}

.search-form {
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-full);
  padding: 0.5rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.1);
}

.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.1),
    0 0 0 4px rgba(99, 102, 241, 0.15);
}

.search-form__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem 0 1rem;
  color: var(--gray-400);
}

@media (min-width: 768px) {
  .search-form__icon {
    padding: 0 1rem 0 1.25rem;
  }
}

.search-form__input {
  flex: 1;
  padding: 1rem 0;
  font-size: 0.9375rem;
  border: none;
  background: transparent;
  color: var(--gray-900);
  min-width: 0;
}

@media (min-width: 768px) {
  .search-form__input {
    font-size: 1.0625rem;
    padding: 1.125rem 0;
  }
}

.search-form__input::placeholder {
  color: var(--gray-400);
}

.search-form__input:focus {
  outline: none;
}

.search-form__btn {
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

@media (min-width: 768px) {
  .search-form__btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

.search-form__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.search-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1.75rem 0 2.5rem;
  flex-wrap: wrap;
}

.search-tags__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.search-tag {
  display: inline-flex;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Legacy Hero Styles (keeping for compatibility) */
.header-home {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  padding: 4rem 0;
  margin: 0;
  height: auto;
  position: relative;
  overflow: hidden;
}

.header-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.header-home .container {
  position: relative;
  z-index: 1;
}

.header-home h1 {
  color: white;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-home h2 {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  padding: 0;
}

.cash-image {
  padding: 0;
  text-align: center;
}

.cash-image img {
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Hero Buttons */
.btn-buy-homepage,
.btn-sell-homepage {
  margin: 0 0.5rem 0 0;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.btn-buy-homepage {
  background: white;
  color: var(--primary);
  border: 2px solid white;
}

.btn-buy-homepage:hover {
  background: transparent;
  color: white;
}

.btn-sell-homepage {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-sell-homepage:hover {
  background: white;
  color: var(--primary);
}

/* ==========================================================================
   Search Section
   ========================================================================== */

.homepage-img {
  background: var(--bg-primary);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  min-height: auto;
}

#search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

#search-form input[type="text"] {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

#search-form input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

#search-form input[type="submit"] {
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

#search-form input[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-900);
  position: relative;
  padding-left: 1rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 1.875rem;
  }
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, var(--primary) 0%, #8b5cf6 100%);
  border-radius: 2px;
}

.section-header a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  background: rgba(99, 102, 241, 0.08);
}

.section-header a:hover {
  background: var(--primary);
  color: white;
}

/* ==========================================================================
   Auction Cards
   ========================================================================== */

.auctions-list {
  padding: 0.5rem 0 2rem;
}

.auctions-list ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .auctions-list ul {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
  }
}

.auctions-list li {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all var(--transition);
  float: none;
  width: auto;
  margin: 0;
  border: 1px solid var(--gray-100);
}

.auctions-list li:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.thumbnail-placeholder {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
}

.thumbnail-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.auctions-list li:hover .thumbnail-placeholder img {
  transform: scale(1.08);
}

.expiry-placeholder {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  float: none;
  width: auto;
  margin: 0;
}

.expiry-placeholder::before {
  content: '⏱';
}

.auction-box-bottom {
  padding: 1.25rem 1.5rem 1.5rem;
  height: auto;
  background: white;
}

.auction-box-bottom h3 {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-400);
  margin: 0 0 0.375rem 0;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}

.auction-box-bottom h4 {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 0.875rem 0;
  padding: 0;
  letter-spacing: -0.02em;
}

.auction-box-bottom a {
  font-size: 0.9375rem !important;
  font-weight: 600;
  color: var(--gray-800) !important;
  display: block;
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.auction-box-bottom a:hover {
  color: var(--primary) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-black {
  background: var(--gray-900);
  color: white;
  border: 2px solid var(--gray-900);
}

.btn-black:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
  color: white;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-default {
  background: var(--bg-primary);
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
}

.btn-default:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-warning {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}

.btn-warning:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-success {
  background: var(--success);
  color: white;
  border: 2px solid var(--success);
}

.btn-block {
  width: 100%;
}

.btn-xlarge {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--bg-primary);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
  color: var(--gray-400);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.input-group {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
}

.input-group .form-control {
  border-radius: 0;
}

.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-right: none;
  font-weight: 600;
  color: var(--gray-600);
}

/* ==========================================================================
   Cards / White Content
   ========================================================================== */

.white-content {
  background: var(--bg-primary);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 1.5rem 0;
}

.white-content hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 1.5rem 0;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal.fade .modal-dialog {
  transform: translateY(-30px) scale(0.95);
  opacity: 0;
  transition: all 0.3s ease-out;
}

.modal.in .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 1rem auto;
  padding: 0 1rem;
  pointer-events: none;
}

@media (min-width: 576px) {
  .modal-dialog {
    margin: 3rem auto;
    padding: 0;
  }
}

.modal-content,
.modal-dialog.white-content,
.modal-content.white-content {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  border: none;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 576px) {
  .modal-header {
    padding: 1.5rem 2rem;
  }
}

.modal-header h3,
.modal-header .modal-title {
  color: white;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .modal-header h3,
  .modal-header .modal-title {
    font-size: 1.25rem;
  }
}

.modal-header .close {
  position: relative;
  right: 0;
  top: 0;
  transform: none;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  opacity: 1;
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
  padding: 0;
  margin: 0;
  margin-left: auto;
  text-shadow: none;
  font-weight: 300;
}

.modal-header .close:hover,
.modal-header .close:focus {
  background: rgba(255,255,255,0.3);
  opacity: 1;
  outline: none;
}

.modal-body {
  padding: 1.5rem;
}

@media (min-width: 576px) {
  .modal-body {
    padding: 2rem;
  }
}

.modal-body .mb-3 {
  margin-bottom: 1.25rem;
}

.modal-body label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.modal-body .form-control {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  width: 100%;
  transition: all var(--transition-fast);
}

.modal-body .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal-body .btn-primary {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

.modal-body .btn-block {
  display: block;
  width: 100%;
}

.modal-body hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid var(--gray-200);
}

.modal-body .text-center p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.modal-body .text-muted {
  color: var(--gray-500) !important;
}

.modal-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.modal-body a:hover {
  text-decoration: underline;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (min-width: 576px) {
  .modal-footer {
    padding: 1rem 2rem;
  }
}

/* ==========================================================================
   Auth Modals (Login/Register)
   ========================================================================== */

.auth-modal .modal-dialog {
  max-width: 440px;
}

.auth-modal .modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

@media (min-width: 576px) {
  .auth-modal .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }
}

.auth-modal__content {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: none;
  width: 100%;
  animation: modalSlideIn 0.3s ease-out;
}

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

.auth-modal__header {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.auth-modal__header--signup {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

@media (min-width: 576px) {
  .auth-modal__header {
    padding: 2.5rem 2rem;
  }
}

.auth-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.auth-modal__close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.auth-modal__icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  backdrop-filter: blur(4px);
}

.auth-modal__title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.auth-modal__subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  margin: 0;
}

.auth-modal__body {
  padding: 1.5rem;
}

@media (min-width: 576px) {
  .auth-modal__body {
    padding: 2rem;
  }
}

.auth-modal__alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.auth-form__group {
  margin-bottom: 1.25rem;
}

.auth-form__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-form__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-form__input-wrapper svg {
  position: absolute;
  left: 1rem;
  color: var(--gray-400);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.auth-form__input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  color: var(--gray-900);
  transition: all var(--transition-fast);
}

.auth-form__input::placeholder {
  color: var(--gray-400);
}

.auth-form__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.auth-form__input:focus + svg,
.auth-form__input-wrapper:focus-within svg {
  color: var(--primary);
}

.auth-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
}

.auth-form__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-form__link {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-form__link:hover {
  text-decoration: underline;
}

.auth-form__terms {
  margin-bottom: 1.5rem;
}

.auth-form__terms a {
  color: var(--primary);
  text-decoration: none;
}

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

.auth-form__submit {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.auth-form__submit:active {
  transform: translateY(0);
}

.auth-form__submit--signup {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.auth-form__submit--signup:hover {
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.auth-modal__footer {
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

@media (min-width: 576px) {
  .auth-modal__footer {
    padding: 1.25rem 2rem;
  }
}

.auth-modal__footer p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.auth-modal__footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

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

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  margin: 0 0 1.5rem 0;
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.breadcrumb li + li::before {
  content: '›';
  color: var(--gray-400);
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.breadcrumb li a {
  color: var(--gray-600);
}

.breadcrumb li a:hover {
  color: var(--primary);
}

.breadcrumb li.active {
  color: var(--gray-900);
  font-weight: 600;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  border-radius: var(--radius);
  overflow: hidden;
}

.table thead {
  background: var(--gray-50);
}

.table th {
  padding: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  text-align: left;
}

.table td {
  padding: 1rem;
  font-size: 0.9375rem;
  border-top: 1px solid var(--gray-200);
}

.table-striped tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.table-hover tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

/* ==========================================================================
   Alerts / Wells
   ========================================================================== */

.well {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--gray-500);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  color: var(--accent-dark);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: #059669;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: #dc2626;
}

/* ==========================================================================
   Single Listing Page
   ========================================================================== */

.listing-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.listing-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  text-transform: uppercase;
}

.listing-status .live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--danger);
  font-weight: 600;
}

.listing-status .live::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.listing-status .sold {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent);
  font-weight: 600;
}

.listing-status .date {
  display: inline;
  padding: 0;
  color: var(--gray-500);
}

/* Image Gallery */
.gallery img {
  border-radius: var(--radius);
  transition: transform var(--transition);
}

.gallery:hover img {
  transform: scale(1.02);
}

.small-thumb {
  margin-bottom: 0.75rem;
}

.small-thumb img {
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.small-thumb img:hover {
  opacity: 0.8;
}

/* Bid Section */
.bid-section {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.bid-section h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.user_comments {
  list-style: none;
  margin: 0;
  padding: 0;
}

.user_comments li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: none;
  border-left: 4px solid var(--gray-300);
}

.user_comments li.orange {
  border-left-color: var(--accent);
}

.comment_author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.375rem;
}

.comment_content {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  padding: 0;
  font-family: var(--font-sans);
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

#footer h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

#footer a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

#footer a:hover {
  color: white;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.footer-nav li {
  float: none;
  margin: 0;
}

.footer-nav li a {
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-stats {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.footer-stats strong {
  color: white;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-black { color: var(--gray-900) !important; }

.bg-primary { background: var(--primary) !important; }
.bg-light { background: var(--gray-50) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.5rem !important; }
.p-2 { padding: 1rem !important; }
.p-3 { padding: 1.5rem !important; }
.p-4 { padding: 2rem !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.rounded { border-radius: var(--radius) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* Page Header */
.page-header {
  margin: 0;
  padding: 1.5rem 2rem;
  border-bottom: none;
}

.page-header h1 {
  margin: 0;
  font-size: 1.75rem;
}

/* ==========================================================================
   Category Pills
   ========================================================================== */

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.category-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form dl {
  margin: 0;
}

.contact-form dt {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.contact-form dt:first-child {
  margin-top: 0;
}

.contact-form dd {
  margin: 0;
}

/* ==========================================================================
   User Account Pages - New Standardized Layout
   ========================================================================== */

/* Admin Banner */
.admin-banner {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.admin-banner-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-banner-content {
  flex: 1;
}

.admin-banner-greeting {
  display: block;
  font-size: 0.875rem;
  opacity: 0.9;
}

.admin-banner-link {
  color: #fbbf24;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
}

.admin-banner-link:hover {
  color: #fcd34d;
  text-decoration: underline;
}

/* Mobile Account Menu Toggle */
.account-menu-toggle {
  display: none;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.account-menu-toggle:hover {
  background: #f9fafb;
}

.account-menu-toggle-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.account-menu-chevron {
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.account-menu-toggle.open .account-menu-chevron {
  transform: rotate(180deg);
}

/* Account Sidebar */
.account-sidebar {
  display: block;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.account-sidebar-header {
  padding: 1.25rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.account-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.account-username {
  display: block;
  font-weight: 600;
  color: #111827;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-email {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
}

/* Account Navigation */
.account-nav {
  padding: 0.5rem;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.account-nav-item svg {
  color: #6b7280;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.account-nav-item:hover {
  background: #f3f4f6;
  color: #6366f1;
  text-decoration: none;
}

.account-nav-item:hover svg {
  color: #6366f1;
}

.account-nav-item.active {
  background: #6366f1;
  color: white;
}

.account-nav-item.active svg {
  color: white;
}

/* Account Sidebar Footer */
.account-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-sidebar-footer .btn {
  font-size: 0.8125rem;
}

.btn-outline-danger {
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
}

.btn-outline-danger:hover {
  background: #ef4444;
  color: white;
}

/* Login Sidebar */
.login-sidebar {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.login-sidebar-header {
  padding: 1.25rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.login-sidebar-header h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.login-sidebar-form {
  padding: 1.25rem;
}

.login-sidebar-footer {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.login-sidebar-footer a {
  color: #6366f1;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Account Page Content */
.account-content {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.account-content-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.account-content-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.account-content-header svg {
  color: #6366f1;
  flex-shrink: 0;
}

.account-content-body {
  padding: 1.5rem;
}

/* Account Page Wrapper */
.account-page-wrapper {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
  background: #f9fafb;
}

.account-page-wrapper .container {
  max-width: 1200px;
}

/* Table styling within account pages */
.account-content .table {
  margin-bottom: 0;
}

.account-content .table th {
  background: #f9fafb;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
  padding: 0.875rem 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.account-content .table td {
  padding: 1rem;
  vertical-align: middle;
  border-color: #e5e7eb;
}

.account-content .table tbody tr:hover {
  background: #f9fafb;
}

/* Empty state styling */
.empty-state {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 3rem 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .account-menu-toggle {
    display: flex;
  }
  
  .account-sidebar {
    display: none;
    margin-top: 0.5rem;
    border-radius: 12px;
    animation: slideDown 0.2s ease-out;
  }
  
  .account-sidebar.show {
    display: block;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .account-sidebar-header {
    display: none;
  }
  
  .account-nav {
    padding: 0.375rem;
  }
  
  .account-nav-item {
    padding: 0.75rem 1rem;
  }
  
  .account-sidebar-footer {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .account-sidebar-footer .btn {
    flex: 1;
    min-width: 120px;
  }
  
  /* Stack sidebar above content on mobile */
  .col-md-4.col-lg-3 {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .admin-banner {
    padding: 0.875rem 1rem;
  }
  
  .admin-banner-icon {
    width: 36px;
    height: 36px;
  }
  
  .account-sidebar-footer {
    flex-direction: column;
  }
  
  .account-sidebar-footer .btn {
    width: 100%;
  }
}

/* Old user-sidebar styles - keeping for backward compatibility */
.user-sidebar {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
}

.user-sidebar h4 {
  padding: 1rem 1.25rem;
  margin: 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--gray-600);
}

.user-sidebar .nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
}

.user-sidebar .nav li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.user-sidebar .nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  text-decoration: none;
  font-weight: 500;
}

.user-sidebar .nav li a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.user-sidebar .nav li.active a {
  background: var(--primary);
  color: white;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

/* Large tablets and small desktops */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.125rem;
  }
  
  .navbar-collapse {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  .navbar-nav {
    gap: 0.25rem;
  }
  
  .navbar-nav > li > a {
    display: block;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
  }
  
  .navbar-nav > li > a:hover {
    background: var(--gray-100);
  }
  
  .nav-auth-buttons {
    flex-direction: column;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 1rem;
  }
  
  .nav-auth-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  /* Base Typography */
  html {
    font-size: 15px;
  }
  
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  
  /* Container */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Hero */
  .hero-section {
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    min-height: auto;
  }
  
  .hero-section h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-section .search-wrapper {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  .hero-section .search-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
  
  .hero-section .search-wrapper .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Header Home */
  .header-home {
    padding: 2.5rem 0;
  }
  
  .header-home h1 {
    font-size: 2rem;
  }
  
  .header-home h2 {
    font-size: 1rem;
  }
  
  .btn-buy-homepage,
  .btn-sell-homepage {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
  
  /* Categories */
  .categories-scroll {
    gap: 0.375rem;
  }
  
  .category-pill {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
  
  /* Button Adjustments */
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
  
  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  .btn-icon {
    width: 36px;
    height: 36px;
  }
  
  /* Cards */
  .auction-card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-image {
    height: 160px;
  }
  
  .card-badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }
  
  .price-tag {
    font-size: 1.125rem;
  }
  
  /* Auctions List */
  .auctions-list ul {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }
  
  .white-content {
    padding: 1.25rem;
  }
  
  .listing-title {
    font-size: 1.5rem;
  }
  
  /* Section spacing */
  .section-header {
    margin-bottom: 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    align-items: center;
  }
  
  .section-header a {
    width: 100%;
    justify-content: center;
  }
  
  /* Forms */
  .form-control {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  /* Tables */
  .table-responsive {
    margin: 0 -1rem;
    padding: 0 1rem;
    overflow-x: auto;
  }
  
  /* Page Headers */
  .page-header {
    padding: 2rem 0;
    margin-bottom: 1.5rem;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  /* Sidebar */
  .sidebar {
    margin-bottom: 2rem;
  }
  
  /* Footer */
  .modern-footer .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  /* Alerts */
  .alert {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Single Listing */
  .listing-image {
    height: 250px;
  }
  
  .bid-section {
    padding: 1.25rem;
  }
  
  .current-bid-amount {
    font-size: 2rem;
  }
  
  .bid-input-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .bid-input-group input {
    width: 100%;
    text-align: center;
  }
  
  .bid-input-group .btn {
    width: 100%;
  }
}

/* Small phones */
@media (max-width: 576px) {
  /* Base Typography */
  html {
    font-size: 14px;
  }
  
  body {
    line-height: 1.6;
  }
  
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.125rem; }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Hero */
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.625rem;
    line-height: 1.25;
  }
  
  .hero-section .lead {
    font-size: 0.9375rem;
  }
  
  .header-home h1 {
    font-size: 1.75rem;
  }
  
  #search-form {
    flex-direction: column;
  }
  
  #search-form input[type="submit"] {
    width: 100%;
  }
  
  /* Category Pills Horizontal Scroll */
  .categories-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  
  .categories-scroll::-webkit-scrollbar {
    display: none;
  }
  
  .category-pill {
    flex-shrink: 0;
  }
  
  /* Grid Adjustments */
  .col-xs-12 {
    width: 100%;
  }
  
  /* Auction Cards Full Width */
  .auctions-grid .col-sm-6,
  .auctions-grid .col-md-4 {
    width: 100%;
  }
  
  .auctions-list ul {
    grid-template-columns: 1fr;
  }
  
  /* Buttons */
  .btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .btn svg {
    width: 16px;
    height: 16px;
  }
  
  /* Stats */
  .stat-box {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  /* Announcement Bar */
  .top-announcement {
    font-size: 0.75rem;
    padding: 0.375rem 0;
  }
  
  /* Page Content */
  .main-content {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  
  /* Contact Form */
  .contact-form-wrapper {
    padding: 1.25rem;
  }
  
  /* Account Pages */
  .white-content {
    padding: 1rem;
    border-radius: var(--radius-lg);
  }
  
  .white-content h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
  
  /* Action buttons in forms */
  form .btn[type="submit"],
  form button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  /* Breadcrumbs */
  .breadcrumb {
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  
  /* Timer */
  .countdown-timer {
    font-size: 0.875rem;
  }
  
  .countdown-timer span {
    padding: 0.375rem 0.625rem;
  }
  
  /* Price display */
  .price-tag {
    font-size: 1rem;
  }
  
  .current-bid-amount {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* Yellow Text Override */
.yellow-text {
  color: var(--accent);
}

/* Type Title */
.type-title {
  display: block;
  margin: 0 0 1.5rem 0;
}

/* Sidebar specific styles */
.sidebar-item-title {
  font-weight: 700;
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 0.5rem;
}

.sidebar-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

/* Admin overrides */
.nav-gradient {
  background: var(--gray-900);
  min-height: 60px;
}

/* ==========================================================================
   Additional Utility Classes
   ========================================================================== */

/* Spacing utilities */
.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.5rem; }

/* Button Group */
.btn-group {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-group .btn {
  flex-shrink: 0;
}

.btn-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-group-vertical .btn {
  width: 100%;
}

/* Button inside forms - proper spacing */
form .form-actions,
.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.form-actions .btn {
  flex: 0 0 auto;
}

@media (max-width: 576px) {
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

/* Auth buttons in navbar */
.nav-auth-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-auth-buttons .btn {
  white-space: nowrap;
}

/* Fix for mobile modal */
@media (max-width: 576px) {
  .modal-dialog {
    max-width: 100%;
    margin: 0.5rem auto;
  }
  
  .modal-header {
    padding: 1rem 1.25rem;
  }
  
  .modal-header h3,
  .modal-header .modal-title {
    font-size: 1rem;
  }
  
  .modal-header .close {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 1.125rem;
  }
  
  .modal-body {
    padding: 1.25rem;
  }
  
  .modal-body .form-control {
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  .modal-body .btn-primary {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }
  
  .modal-body label {
    font-size: 0.75rem;
  }
}

/* Ensure links have proper spacing */
.text-center a {
  display: inline;
}

/* Fix button svg alignment */
.btn svg {
  flex-shrink: 0;
}

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin-left: 0.5rem;
}

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

/* ==========================================================================
   Home Page Content Wrapper
   ========================================================================== */

.home-content {
  padding: 3rem 0 4rem;
}

@media (min-width: 768px) {
  .home-content {
    padding: 4rem 0 5rem;
  }
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--gray-200);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.empty-state h4 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--gray-800);
}

.empty-state p {
  color: var(--gray-500);
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

/* ==========================================================================
   Featured Badge
   ========================================================================== */

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.featured-item {
  border: 2px solid rgba(245, 158, 11, 0.3) !important;
}

.featured-item:hover {
  border-color: rgba(245, 158, 11, 0.5) !important;
}

/* ==========================================================================
   Category Grid
   ========================================================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
  }
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
}

.category-card:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.category-card svg {
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}

.category-card:hover svg {
  opacity: 1;
  transform: translateX(0);
}

.category-card__name {
  flex: 1;
}

/* Category Pills (legacy support) */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.category-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ==========================================================================
   Fade In Animation
   ========================================================================== */

.fade-in {
  animation: fadeIn 0.5s ease-out backwards;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.2s; }
.fade-in:nth-child(5) { animation-delay: 0.25s; }
.fade-in:nth-child(6) { animation-delay: 0.3s; }

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

/* ==========================================================================
   Additional Mobile Responsiveness
   ========================================================================== */

@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 0 3.5rem;
    min-height: auto;
  }
  
  .hero__title {
    font-size: 1.875rem;
  }
  
  .hero__subtitle {
    font-size: 0.9375rem;
  }
  
  .hero__badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
  
  .hero__btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    width: 100%;
  }
  
  .hero__stats {
    padding: 1rem;
    gap: 1rem;
  }
  
  .hero__stat-value {
    font-size: 1.25rem;
  }
  
  .hero__stat-label {
    font-size: 0.625rem;
  }
  
  .search-form {
    flex-wrap: wrap;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
  }
  
  .search-form__icon {
    display: none;
  }
  
  .search-form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 1rem;
  }
  
  .search-form__btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.875rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .section-header h2 {
    font-size: 1.25rem;
  }
  
  .auctions-list ul {
    grid-template-columns: 1fr;
  }
  
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ==========================================================================
   Single Listing Page Styles
   ========================================================================== */

.listing-page {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
  background: linear-gradient(180deg, var(--gray-50) 0%, #fff 100%);
}

/* Breadcrumb */
.listing-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.listing-breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s;
}

.listing-breadcrumb a:hover {
  color: var(--primary);
}

.listing-breadcrumb svg {
  color: var(--gray-300);
}

.listing-breadcrumb__current {
  color: var(--gray-900);
  font-weight: 500;
}

/* Main Listing Card */
.listing-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.listing-card__row {
  margin: 0;
}

/* Gallery Section */
.listing-gallery {
  padding: 1.5rem;
  background: var(--gray-50);
}

.listing-gallery__main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.listing-gallery__image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.listing-gallery__main:hover .listing-gallery__image {
  transform: scale(1.02);
}

.listing-gallery__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.listing-gallery__thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.listing-gallery__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid transparent;
  transition: all 0.2s;
}

.listing-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-gallery__thumb:hover,
.listing-gallery__thumb--active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.listing-gallery__more {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--gray-800);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
}

/* Details Section */
.listing-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.listing-details__title {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

/* Status Section */
.listing-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.listing-status__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.listing-status__badge--live {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
}

.listing-status__badge--sold {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #16a34a;
}

.listing-status__badge--ended {
  background: var(--gray-100);
  color: var(--gray-600);
}

.listing-status__pulse {
  width: 8px;
  height: 8px;
  background: #dc2626;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.listing-status__divider {
  color: var(--gray-300);
}

.listing-status__date,
.listing-status__time {
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.listing-status__price {
  font-weight: 600;
  color: var(--success);
}

.listing-status__seller {
  color: var(--gray-500);
}

.listing-status__seller a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.listing-status__seller a:hover {
  text-decoration: underline;
}

/* Closed Auction State */
.listing-closed {
  padding: 3rem 2rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 2px dashed var(--gray-200);
}

.listing-closed svg {
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.listing-closed h4 {
  margin: 0 0 0.5rem;
  color: var(--gray-700);
  font-size: 1.25rem;
}

.listing-closed p {
  margin: 0;
  color: var(--gray-500);
}

/* Price Box */
.listing-price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}

.listing-price-box__current {
  display: flex;
  flex-direction: column;
}

.listing-price-box__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.listing-price-box__amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.listing-price-box__bids {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.listing-price-box__count {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

/* Bid Form */
.listing-bid-form {
  margin-bottom: 1rem;
}

.listing-bid-form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.listing-bid-form__input-group {
  display: flex;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  transition: border-color 0.2s;
}

.listing-bid-form__input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.listing-bid-form__currency {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--gray-50);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-600);
  border-right: 2px solid var(--gray-200);
}

.listing-bid-form__input {
  flex: 1;
  padding: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  border: none;
  outline: none;
  background: var(--bg-primary);
}

.listing-bid-form__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.listing-bid-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.listing-bid-form__submit:active {
  transform: translateY(0);
}

/* Buy Now Button */
.listing-buy-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--bg-primary);
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.listing-buy-now:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.listing-buy-now strong {
  color: var(--gray-900);
}

/* Description Section */
.listing-description {
  padding: 2rem;
  border-top: 1px solid var(--gray-200);
}

.listing-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.listing-section-title svg {
  color: var(--primary);
}

.listing-description__content {
  line-height: 1.8;
  color: var(--gray-600);
}

/* Section Cards (Bids, Comments) */
.listing-section-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  margin-top: 1.5rem;
}

.listing-section-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.listing-section-card__header svg {
  color: var(--primary);
}

.listing-section-card__header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.listing-section-card__body {
  padding: 1.5rem;
}

/* Bids Table */
.listing-bids-table {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.listing-bids-table__header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

.listing-bids-table__header .listing-bids-table__col {
  padding: 0.875rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
}

.listing-bids-table__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
}

.listing-bids-table__row:last-child {
  border-bottom: none;
}

.listing-bids-table__row:hover {
  background: var(--gray-50);
}

.listing-bids-table__col {
  padding: 1rem;
  display: flex;
  align-items: center;
}

.listing-bids-table__col--muted {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.listing-bids-table__user {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.listing-bids-table__user:hover {
  text-decoration: underline;
}

.listing-bids-table__amount {
  font-weight: 600;
  color: var(--success);
}

/* Empty State */
.listing-empty-state {
  padding: 3rem 2rem;
  text-align: center;
}

.listing-empty-state svg {
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.listing-empty-state p {
  margin: 0;
  color: var(--gray-500);
}

/* Comment Count Badge */
.comment-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  margin-left: 8px;
}

/* Comment Form Wrapper */
.comment-form-wrapper {
  margin-bottom: 1.5rem;
}

.comment-form-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.comment-form-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-form-avatar span {
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.comment-form-input-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.comment-form-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.comment-form-hint svg {
  opacity: 0.7;
}

/* Comment Form */
.listing-comment-form {
  margin-bottom: 0;
}

.listing-comment-form__textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  resize: vertical;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
  min-height: 100px;
  background: var(--gray-50);
}

.listing-comment-form__textarea:hover {
  border-color: var(--gray-300);
  background: white;
}

.listing-comment-form__textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.listing-comment-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
}

.listing-comment-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.listing-comment-form__submit:active {
  transform: translateY(0);
}

/* Section Divider */
.comments-section-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  gap: 1rem;
}

.comments-section-divider::before,
.comments-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.comments-section-divider span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Login Prompt */
.listing-login-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-xl);
  text-align: center;
  margin-bottom: 1.5rem;
}

.listing-login-prompt svg {
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.listing-login-prompt h4 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--gray-700);
}

.listing-login-prompt p {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.listing-login-prompt a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.listing-login-prompt a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* No Comments Message */
.no-comments-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  color: var(--gray-400);
}

.no-comments-message svg {
  opacity: 0.5;
}

.no-comments-message p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Comments List */
.listing-comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.listing-comment {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

/* New comment animation */
.listing-comment.new-comment {
  animation: slideInComment 0.5s ease-out;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #a7f3d0;
}

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

/* Spin animation for loading */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

.listing-comment:hover {
  background: white;
  border-color: var(--gray-200);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.listing-comment.new-comment:hover {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.listing-comment__avatar {
  flex-shrink: 0;
}

.listing-comment__avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.listing-comment__avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
}

.listing-comment__content {
  flex: 1;
  min-width: 0;
}

.listing-comment__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.listing-comment__author {
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
}

.listing-comment__author:hover {
  color: var(--primary);
}

.listing-comment__date {
  color: var(--gray-400);
  font-size: 0.8125rem;
}

.listing-comment__text {
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.listing-comment__actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}

.listing-comment__remove {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: transparent;
  color: var(--gray-400);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.listing-comment__remove:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Responsive Styles for Listing Page */
@media (max-width: 992px) {
  .listing-details {
    border-left: none;
    border-top: 1px solid var(--gray-200);
  }
  
  .listing-gallery {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .listing-page {
    padding: 1rem 0;
  }
  
  .listing-breadcrumb {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }
  
  .listing-details__title {
    font-size: 1.5rem;
  }
  
  .listing-price-box {
    padding: 1rem;
  }
  
  .listing-price-box__amount,
  .listing-price-box__count {
    font-size: 1.5rem;
  }
  
  .listing-status {
    font-size: 0.8125rem;
    gap: 0.5rem;
  }
  
  .listing-bids-table__header,
  .listing-bids-table__row {
    grid-template-columns: 1fr 1fr;
  }
  
  .listing-bids-table__col:last-child {
    display: none;
  }
  
  .listing-gallery__thumb {
    width: 60px;
    height: 60px;
  }
  
  .listing-gallery__more {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .listing-details {
    padding: 1.25rem;
  }
  
  .listing-details__title {
    font-size: 1.25rem;
  }
  
  .listing-price-box {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .listing-price-box__bids {
    text-align: center;
  }
  
  .listing-bid-form__input {
    font-size: 1rem;
    padding: 0.875rem;
  }
  
  .listing-bid-form__currency {
    font-size: 1rem;
  }
  
  .listing-description {
    padding: 1.25rem;
  }
  
  .listing-section-card__body {
    padding: 1rem;
  }
  
  .listing-comment {
    padding: 1rem;
    flex-direction: column;
  }
  
  .listing-comment__avatar {
    flex-direction: row;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}
