/* ============================================================
   SNAITUPAUCTION - Modern Auction Theme
   ============================================================ */

:root {
  --primary:        #7c3aed;
  --primary-dark:   #5b21b6;
  --primary-light:  #a78bfa;
  --secondary:      #06b6d4;
  --accent:         #f59e0b;
  --success:        #10b981;
  --danger:         #ef4444;
  --warning:        #f59e0b;
  --info:           #3b82f6;
  --dark:           #0f172a;
  --dark-2:         #1e293b;
  --dark-3:         #334155;
  --light:          #f8fafc;
  --gray-50:        #f8fafc;
  --gray-100:       #f1f5f9;
  --gray-200:       #e2e8f0;
  --gray-300:       #cbd5e1;
  --gray-400:       #94a3b8;
  --gray-500:       #64748b;
  --gray-600:       #475569;
  --gray-700:       #334155;
  --gray-800:       #1e293b;
  --gray-900:       #0f172a;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 14px rgba(0,0,0,.1);
  --shadow-lg:      0 10px 40px rgba(0,0,0,.12);
  --shadow-xl:      0 20px 60px rgba(0,0,0,.15);
  --transition:     .3s cubic-bezier(.4,0,.2,1);
  --font:           'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bg-primary:     #ffffff;
  --bg-secondary:   #f8fafc;
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --border:         #e2e8f0;
  --card-bg:        #ffffff;
}

[data-theme="dark"] {
  --bg-primary:     #0f172a;
  --bg-secondary:   #1e293b;
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --border:         #334155;
  --card-bg:        #1e293b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background .3s, color .3s;
}

.main-content {
  flex: 1;
}

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

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(124,58,237,.4);
  transition: var(--transition);
}
.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(124,58,237,.5);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--header-bg, var(--bg-primary));
  border-bottom: 1px solid var(--header-border, var(--border));
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-bar {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 0 4px 0 16px;
  transition: var(--transition);
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124,58,237,.12);
}
.search-bar .search-icon {
  color: var(--text-muted);
  font-size: 1rem;
}
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: .9rem;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font);
}
.search-bar button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}
.search-bar button:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(124,58,237,.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.nav-link:hover {
  background: var(--gray-100);
  color: var(--nav-hover, var(--primary));
}
[data-theme="dark"] .nav-link:hover {
  background: var(--dark-2);
}
.nav-cta {
  background: var(--cta-bg, linear-gradient(135deg, var(--primary), var(--primary-dark)));
  color: #fff !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124,58,237,.35);
}

/* Avatar */
.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}

/* Dropdowns */
.nav-dropdown {
  position: relative;
}
.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-trigger {
  padding: 4px 12px 4px 4px;
  border-radius: 50px;
  border: 1px solid var(--border);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-header {
  padding: 12px 16px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: .88rem;
  color: var(--text-primary);
  transition: var(--transition);
}
.dropdown-item:hover {
  background: var(--gray-100);
  color: var(--primary);
}
[data-theme="dark"] .dropdown-item:hover {
  background: var(--dark-2);
}
.dropdown-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.admin-link {
  color: var(--accent) !important;
  font-weight: 600;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 50px;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 0 5px;
}

/* Dropdown notifications */
.dropdown-notifications {
  min-width: 280px;
}
.notif-title {
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-primary);
}
.notif-time {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Mobile toggle (search button) */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background .2s;
}
.mobile-toggle:hover {
  background: var(--gray-100);
}
[data-theme="dark"] .mobile-toggle:hover {
  background: var(--dark-2);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #5b21b6 60%, #7c3aed 100%);
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 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.04'%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: .5;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 span {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-buttons .btn {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 4px 14px rgba(124,58,237,.4); }
.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--accent); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-header h2 {
  font-size: 1.7rem;
  font-weight: 700;
}
.section-header .section-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   CARDS / AUCTION CARD
   ============================================================ */
.section {
  padding: 60px 0;
}

.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.auction-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.auction-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.auction-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-200);
}
[data-theme="dark"] .auction-card-image {
  background: var(--dark-3);
}
.auction-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.auction-card:hover .auction-card-image img {
  transform: scale(1.05);
}
.auction-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-featured {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e293b;
}
.badge-ending {
  background: var(--danger);
  color: #fff;
}
.badge-reserve {
  background: var(--success);
  color: #fff;
}
.condition-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.condition-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: .2s;
  font-size: .9rem;
  font-weight: 500;
}
.condition-pill:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.condition-pill input {
  display: none;
}
.condition-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.condition-new {
  background: #d1fae5;
  color: #065f46;
}
.condition-used {
  background: #fef3c7;
  color: #92400e;
}
.condition-spares-or-repair {
  background: #fee2e2;
  color: #991b1b;
}
.auction-card-watch {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--text-muted);
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.auction-card-watch:hover {
  background: #fff;
  color: var(--danger);
}
.auction-card-watch.active {
  color: var(--danger);
}
.auction-card-body {
  padding: 16px 18px 18px;
}
.auction-card-category {
  font-size: .72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.auction-card-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.auction-card-title a {
  color: var(--text-primary);
}
.auction-card-title a:hover {
  color: var(--primary);
}
.auction-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.auction-card-seller {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-muted);
}
.auction-card-seller .avatar-sm {
  width: 22px;
  height: 22px;
  font-size: .6rem;
}
.auction-card-time {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.auction-card-time .bi { font-size: .7rem; }
.auction-card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.auction-card-price .current {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.auction-card-price .bids-count {
  font-size: .78rem;
  color: var(--text-muted);
}
.auction-card-footer {
  padding: 0 18px 16px;
  display: flex;
  gap: 8px;
}
.auction-card-footer .btn {
  flex: 1;
  justify-content: center;
  font-size: .82rem;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.category-scroll {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}
.category-scroll-track {
  display: flex;
  gap: 16px;
  width: fit-content;
  animation: category-scroll 40s linear infinite;
}
.category-scroll-track:hover {
  animation-play-state: paused;
}
@keyframes category-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.category-scroll .category-card {
  flex: 0 0 auto;
  width: 160px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.category-scroll .category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.category-card .cat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.4rem;
  color: #fff;
}
.category-card .cat-name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-primary);
}
.category-card .cat-count {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   FORMS
   ============================================================ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}
.auth-card .auth-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-card .auth-header .logo-icon {
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}
.auth-card .auth-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
.auth-card .auth-header p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 6px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  background: var(--bg-primary);
  color: var(--text-primary);
}
.quill-wrapper { width: 100%; }
.quill-wrapper .ql-toolbar { border-radius: var(--radius-sm) var(--radius-sm) 0 0; border: 2px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-primary); }
.quill-wrapper .ql-container { border-radius: 0 0 var(--radius-sm) var(--radius-sm); border: 2px solid var(--border); border-top: none; font-size: .9rem; }
.quill-wrapper .ql-editor { min-height: 150px; }
  transition: var(--transition);
  font-family: var(--font);
}
.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(124,58,237,.1);
}
.form-control::placeholder {
  color: var(--text-muted);
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-error {
  font-size: .78rem;
  color: var(--danger);
  margin-top: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
[data-theme="dark"] .alert-success { background: #064e3b; color: #a7f3d0; border-color: #065f46; }
[data-theme="dark"] .alert-danger  { background: #7f1d1d; color: #fecaca; border-color: #991b1b; }
[data-theme="dark"] .alert-warning { background: #78350f; color: #fde68a; border-color: #92400e; }
[data-theme="dark"] .alert-info    { background: #1e3a5f; color: #bfdbfe; border-color: #1e40af; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand .footer-logo i {
  color: var(--primary-light);
}
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--primary);
  color: #fff;
}
.footer-col h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-col p {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* ============================================================
   AUCTION DETAIL
   ============================================================ */
.auction-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}
.auction-gallery {
  position: sticky;
  top: 100px;
  align-self: start;
}
.auction-gallery .main-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-200);
  border: 1px solid var(--border);
}
[data-theme="dark"] .auction-gallery .main-image {
  background: var(--dark-3);
}
.auction-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auction-info h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.auction-info .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  font-size: .85rem;
  color: var(--text-muted);
}
.auction-info .meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bid-box {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 24px 0;
}
.bid-box .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bid-box .price-row .current-bid {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.bid-box .price-row .starting-label {
  font-size: .82rem;
  color: var(--text-muted);
}
.bid-box .time-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}
.bid-form {
  display: flex;
  gap: 12px;
  align-items: center;
}
.bid-form .form-control {
  max-width: 200px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}
.bid-form .btn {
  padding: 11px 28px;
}
.bid-history {
  margin-top: 28px;
}
.bid-history h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.bid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.bid-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bid-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.bid-table tr:last-child td { border-bottom: none; }
.bid-table .winning-bid {
  background: rgba(16,185,129,.08);
}
.bid-table .winning-bid td {
  font-weight: 600;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 40px 0;
}
.dashboard-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 0;
  position: sticky;
  top: 100px;
  align-self: start;
}
.dash-sidebar-user {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  text-align: center;
}
.dash-sidebar-user .avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}
.dash-sidebar-user .dash-username {
  font-weight: 700;
  font-size: 1rem;
}
.dash-sidebar-user .dash-email {
  font-size: .8rem;
  color: var(--text-muted);
}
.dash-sidebar-user .dash-balance {
  margin-top: 10px;
  font-size: .9rem;
  color: var(--success);
  font-weight: 600;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: .88rem;
  color: var(--text-secondary);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.dash-nav-item:hover {
  background: var(--gray-100);
  color: var(--primary);
}
[data-theme="dark"] .dash-nav-item:hover {
  background: var(--dark-2);
}
.dash-nav-item.active {
  background: rgba(124,58,237,.08);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
.dash-nav-item .badge {
  margin-left: auto;
}

.dashboard-content {
  min-height: 60vh;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.dash-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-card .stat-icon.purple { background: rgba(124,58,237,.12); color: var(--primary); }
.stat-card .stat-icon.green  { background: rgba(16,185,129,.12); color: var(--success); }
.stat-card .stat-icon.blue   { background: rgba(6,182,212,.12); color: var(--secondary); }
.stat-card .stat-icon.orange { background: rgba(245,158,11,.12); color: var(--accent); }
.stat-card .stat-icon.red    { background: rgba(239,68,68,.12); color: var(--danger); }
.stat-card .stat-info .stat-value {
  font-size: 1.4rem;
  font-weight: 700;
}
.stat-card .stat-info .stat-label {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ============================================================
   TABLE
   ============================================================ */
.table-container {
  overflow-x: auto;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
table.data-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
table.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data-table tr:hover td {
  background: rgba(124,58,237,.03);
}
[data-theme="dark"] table.data-table tr:hover td {
  background: rgba(124,58,237,.06);
}
table.data-table tr.row-highlighted td {
  background: var(--primary) !important;
  color: #fff !important;
}
table.data-table tr.row-highlighted td .status-badge,
table.data-table tr.row-highlighted td .text-success,
table.data-table tr.row-highlighted td .text-danger {
  color: #fff !important;
}
table.data-table tr.row-highlighted td .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
table.data-table tr.row-highlighted td .btn-ghost:hover {
  background: rgba(255,255,255,.15);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-active { background: rgba(16,185,129,.12); color: var(--success); }
.status-ended,
.status-sold { background: rgba(59,130,246,.12); color: var(--info); }
.status-pending { background: rgba(245,158,11,.12); color: var(--accent); }
.status-cancelled,
.status-unsold { background: rgba(239,68,68,.12); color: var(--danger); }
.status-reserve_met { background: rgba(16,185,129,.12); color: var(--success); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination .disabled {
  opacity: .4;
  pointer-events: none;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.admin-sidebar .admin-logo i {
  color: var(--primary-light);
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-item:hover {
  background: rgba(255,255,255,.05);
  color: #fff;
}
.admin-nav-item.active {
  background: rgba(124,58,237,.15);
  color: #fff;
  border-left-color: var(--primary);
}
.admin-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  align-items: center;
  justify-content: flex-start;
}
.admin-mobile-toggle:hover {
  background: var(--bg-alt);
}
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
}
.admin-sidebar-overlay.active {
  display: block;
}
.admin-content {
  padding: 32px;
  background: var(--bg-secondary);
  overflow-y: auto;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
.admin-header .breadcrumb {
  font-size: .82rem;
  color: var(--text-muted);
}
.admin-header .breadcrumb a {
  color: var(--text-muted);
}
.admin-header .breadcrumb a:hover {
  color: var(--primary);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.tab {
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  font-family: var(--font);
}
.tab:hover { color: var(--text-primary); }
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding: 40px 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
}
.page-header p {
  color: var(--text-muted);
  margin-top: 6px;
}

.page-content h2 { font-size:1.4rem;font-weight:700;margin:32px 0 12px;color:var(--text) }
.page-content h3 { font-size:1.15rem;font-weight:600;margin:24px 0 10px;color:var(--text) }
.page-content p { margin-bottom:16px;line-height:1.8 }
.page-content ul, .page-content ol { margin:0 0 16px 24px;line-height:1.8 }
.page-content li { margin-bottom:6px }
.page-content dt { font-weight:600;margin-top:20px;margin-bottom:6px;color:var(--text) }
.page-content dd { margin-left:0;margin-bottom:12px;line-height:1.7 }
.page-content a { color:var(--primary);text-decoration:underline }
.page-content strong { color:var(--text) }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state .empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}
.search-filters .form-control {
  max-width: 200px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auction-detail {
    grid-template-columns: 1fr;
  }
  .auction-gallery {
    position: static;
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    display: none;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    max-width: 85vw;
    z-index: 10000;
    height: 100vh;
  }
  .admin-sidebar.open {
    display: flex;
    flex-direction: column;
  }
  .admin-mobile-toggle {
    display: flex;
  }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text-primary);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.mobile-toggle:hover {
  background: var(--bg-alt);
}
[data-theme="dark"] .mobile-toggle:hover {
  background: var(--bg-alt);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Mobile drawer */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 10000;
  opacity: 0;
  transition: opacity .25s;
}
.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
}
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--drawer-bg, var(--bg-primary));
  z-index: 10001;
  transform: translateX(-100%);
  transition: transform .25s ease;
  flex-direction: column;
  overflow: hidden;
}
.mobile-drawer.open {
  display: flex;
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-drawer-header .logo-text {
  font-size: 1.1rem;
  font-weight: 700;
}
.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}
.mobile-drawer-section {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer-section:last-child {
  border-bottom: none;
}
.mobile-drawer-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  padding: 8px 20px 4px;
}
.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: .92rem;
  color: var(--drawer-text, var(--text-primary));
  text-decoration: none;
  transition: background .15s;
  touch-action: manipulation;
}
.mobile-drawer-link:hover {
  background: var(--drawer-hover-bg, var(--bg-alt));
}
.mobile-drawer-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--drawer-icon, var(--text-muted));
}
.mobile-drawer-link.admin-link i {
  color: var(--primary);
}
.mobile-drawer-footer {
  flex-shrink: 0;
  display: flex;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
}
.mobile-drawer-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.mobile-drawer-footer a:hover {
  color: var(--primary);
}
.mobile-drawer-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-secondary);
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: .65rem;
  padding: 6px 10px;
  min-width: 0;
  transition: color .2s;
  border-radius: var(--radius-sm);
}
.mobile-drawer-trigger:hover {
  color: var(--primary);
}
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .auction-grid {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-stats {
    grid-template-columns: 1fr;
  }
  .section-header h2 {
    font-size: 1.3rem;
  }
  .variation-row {
    flex-wrap: wrap !important;
  }
  .variation-row > input {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  .variation-row > button {
    margin-left: auto;
  }
}

/* ============================================================
   STORE PAGE
   ============================================================ */
.store-profile-info h1 { margin: 0 0 4px; font-size: 1.5rem; }
.store-profile-info p { margin: 0 0 8px; opacity: .85; }
.store-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; opacity: .8; }
.store-meta span { display: flex; align-items: center; gap: 4px; }
.store-social { display: flex; gap: 8px; margin-top: 8px; }
.store-social a { opacity: .7; transition: opacity .2s; font-size: 1.1rem; }
.store-social a:hover { opacity: 1; }

/* Dashboard store form */
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
fieldset legend { font-weight: 600; font-size: .9rem; padding: 0 8px; color: var(--text-primary); }

/* ============================================================
   STORE SEARCH CARD
   ============================================================ */
.store-card-sm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  background: var(--card-bg);
}
.store-card-sm:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(124,58,237,.1);
}

/* ============================================================
   BUY IT NOW
   ============================================================ */
.bin-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--success);
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: .3px;
}
.btn-success {
  background: var(--success);
  color: #fff;
  border: none;
}
.btn-success:hover {
  background: #059669;
}
.bin-section {
  margin-bottom: 12px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ============================================================
   MOBILE SEARCH OVERLAY
   ============================================================ */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s;
}
.mobile-overlay.active {
  display: block;
  opacity: 1;
}
body.menu-open {
  overflow: hidden;
}

.mobile-search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-primary);
  padding: 12px 16px;
  transform: translateY(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.mobile-search-panel.open {
  transform: translateY(0);
}
.mobile-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 0 4px 0 16px;
}
.mobile-search-inner:focus-within {
  border-color: var(--primary);
}
.mobile-search-inner i {
  color: var(--text-muted);
  font-size: 1rem;
}
.mobile-search-inner input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 8px;
  font-size: .95rem;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font);
}
.mobile-search-inner button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: 50%;
}
.mobile-search-inner button:hover {
  background: var(--gray-100);
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 997;
  background: var(--bottom-bar-bg, var(--bg-primary));
  border-top: 1px solid var(--bottom-bar-border, var(--border));
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mb-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  font-size: .65rem;
  color: var(--bottom-bar-text, var(--text-muted));
  text-decoration: none;
  transition: color .2s;
  border-radius: 8px;
}
.mb-nav-item i {
  font-size: 1.2rem;
}
.mb-nav-item.active,
.mb-nav-item:hover {
  color: var(--bottom-bar-active, var(--primary));
}
.mb-nav-item.active i {
  color: var(--bottom-bar-active, var(--primary));
}
.mobile-drawer-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-secondary);
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: .65rem;
  padding: 6px 10px;
  min-width: 0;
  transition: color .2s;
  border-radius: var(--radius-sm);
}
.mobile-drawer-trigger:hover {
  color: var(--primary);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
.animate-fade-up { animation: fadeInUp .5s ease both; }
.animate-fade-in { animation: fadeIn .4s ease both; }
.animate-slide-left { animation: slideLeft .5s ease both; }
.animate-slide-right { animation: slideRight .5s ease both; }
.animate-zoom-in { animation: zoomIn .5s ease both; }
.animate-typewriter { overflow: hidden; white-space: nowrap; animation: typewriter 2.5s steps(40) both; border-right: 2px solid currentColor; display: inline-block; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Theme animation keyframes */
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,.4); }
  50% { box-shadow: 0 0 0 10px rgba(124,58,237,0); }
}
@keyframes btnBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes btnShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
@keyframes btnFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes iconShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}
@keyframes iconWobble {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(12deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(2deg); }
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes btnScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Theme-driven animation classes */
.btn-animate-pulse { animation: pulse 2s ease-in-out infinite; }
.btn-animate-glow { animation: btnGlow 2s ease-in-out infinite; }
.btn-animate-bounce { animation: btnBounce 1.5s ease-in-out infinite; }
.btn-animate-shake {  }
.btn-animate-shake:hover { animation: btnShake .5s ease-in-out; }
.btn-animate-float { animation: btnFloat 2.5s ease-in-out infinite; }
.btn-animate-scale { animation: btnScale 2s ease-in-out infinite; }
.btn-animate-scale:hover { animation: none; transform: scale(1.06); transition: transform .2s; }

.icon-animate-spin { animation: iconSpin 2s linear infinite; display: inline-block; }
.icon-animate-bounce { animation: iconBounce 1.5s ease-in-out infinite; display: inline-block; }
.icon-animate-pulse { animation: pulse 1.5s ease-in-out infinite; display: inline-block; }
.icon-animate-shake { display: inline-block; }
.icon-animate-shake:hover { animation: iconShake .6s ease-in-out; }
.icon-animate-wobble { display: inline-block; }
.icon-animate-wobble:hover { animation: iconWobble 1.2s ease-in-out; }
.icon-animate-float { animation: iconFloat 2.5s ease-in-out infinite; display: inline-block; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-primary { color: var(--primary); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

/* Status badge variants */
.status-warning { background: #fef3c7; color: #92400e; }
.status-requested { background: #fef3c7; color: #92400e; }
.status-held { background: #dbeafe; color: #1e40af; }

/* Payment option styles */
.payment-option { transition: all .2s; }
.payment-option:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Admin nav item badge */
.admin-nav-item .badge,
.dash-nav-item .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: .7rem;
  font-weight: 700;
  background: var(--danger, #ef4444);
  color: #fff;
  border-radius: 10px;
  margin-left: auto;
}

/* ---------- Share Buttons ---------- */
.share-section {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.share-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.share-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-twitter:hover { background: #000; color: #fff; border-color: #000; }
.share-pinterest:hover { background: #e60023; color: #fff; border-color: #e60023; }
.share-linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-reddit:hover { background: #ff4500; color: #fff; border-color: #ff4500; }
.share-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-email:hover { background: #6b7280; color: #fff; border-color: #6b7280; }
.share-copy:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Q&A Section ---------- */
.qa-section {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.qa-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.qa-section h4 {
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.qa-item {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.qa-question {
  padding: 12px 16px;
  background: var(--surface);
}
.qa-answer {
  padding: 12px 16px;
  background: rgba(59,130,246,.05);
  border-top: 1px solid var(--border);
  margin-left: 24px;
  border-left: 3px solid var(--primary);
  border-radius: 0 0 8px 8px;
}
.qa-meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.qa-body {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.qa-ask-form {
  margin-top: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.qa-answer-form {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  margin-left: 24px;
}

/* ---------- Messages Dashboard ---------- */
.msg-tab,
.auction-tab {
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  font-size: .82rem;
  padding: 4px 14px !important;
  border-radius: 20px !important;
  transition: all .2s;
}
.msg-tab.active,
.auction-tab.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}
.msg-item {
  transition: background .2s;
}
.msg-item:hover {
  background: var(--surface-2) !important;
}

/* ---------- Favorite Toggle ---------- */
.fav-toggle.active,
.fav-toggle-auction.active {
  color: var(--danger) !important;
  border-color: var(--danger) !important;
}
.fav-toggle.active i,
.fav-toggle-auction.active i {
  color: var(--danger);
}
.rating-link:hover {
  opacity: .8;
}

/* ---------- Gallery Arrows & Thumbs ---------- */
.main-image {
  position: relative;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.gallery-arrow:hover { background: rgba(0,0,0,.7); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all .2s;
}
.gallery-dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: .5;
  border: 2px solid transparent;
  transition: all .2s;
  flex-shrink: 0;
}
.gallery-thumb.active, .gallery-thumb:hover {
  opacity: 1;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
    padding: 10px 16px;
  }
  .search-bar {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .nav-links .nav-link,
  .nav-links .nav-dropdown {
    display: none !important;
  }
  .mobile-drawer {
    display: flex;
  }
  .mobile-drawer-trigger {
    display: flex;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .main-content {
    padding-bottom: 64px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .auth-card {
    padding: 28px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section {
    padding: 40px 0;
  }
  .auction-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .bid-form {
    flex-direction: column;
    align-items: stretch;
  }
  .bid-form .form-control {
    max-width: 100%;
  }
  .bid-box .price-row .current-bid {
    font-size: 1.5rem;
  }
  .page-header {
    padding: 24px 0;
  }
  .page-header h1 {
    font-size: 1.4rem;
  }
  .admin-content {
    padding: 16px;
  }
  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .table-container {
    overflow-x: visible;
  }
  table.data-table, table.withdraw-table,
  table.data-table thead, table.withdraw-table thead,
  table.data-table tbody, table.withdraw-table tbody,
  table.data-table tr, table.withdraw-table tr,
  table.data-table th, table.withdraw-table th,
  table.data-table td, table.withdraw-table td {
    display: block;
  }
  table.data-table thead, table.withdraw-table thead {
    display: none;
  }
  table.data-table tr, table.withdraw-table tr {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--card-bg);
  }
  table.data-table td, table.withdraw-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
    font-size: .85rem;
    gap: 8px;
  }
  table.data-table td::before, table.withdraw-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
  }
  table.data-table td:not(:last-child), table.withdraw-table td:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }
  .theme-toggle {
    bottom: 80px;
  }
}
