/* ==========================================================================
   CLASS I FLY - PREMIUM CLASSIFIEDS MARKETPLACE DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Dark Theme Default Palette */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: #131b2e;
  --bg-card-hover: #1e293b;
  --bg-glass: rgba(19, 27, 46, 0.75);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.5);
  
  /* Brand Gradients & Accents */
  --accent-primary: #6366f1; /* Indigo */
  --accent-secondary: #ec4899; /* Pink */
  --accent-cyan: #06b6d4; /* Cyan */
  --accent-green: #10b981; /* Emerald */
  --accent-gold: #f59e0b; /* Gold Stars */
  
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
  --gradient-btn: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables Override */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-sub: #334155;
  
  --border-color: #e2e8f0;
  --border-color-hover: rgba(99, 102, 241, 0.6);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

input, select, textarea {
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  outline: none;
  transition: all var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.hidden {
  display: none !important;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent { color: var(--accent-primary); }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ================= TOP ANNOUNCEMENT BAR ================= */
.top-banner {
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.4rem 0;
}

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

.banner-badge {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.top-banner-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-select, .banner-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
}
.banner-select option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

/* ================= HEADER & NAVIGATION ================= */
.main-header {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
}

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

.logo-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* Location Picker */
.location-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  min-width: 190px;
}

.location-icon {
  color: var(--accent-secondary);
}

.location-picker select {
  border: none;
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  width: 100%;
}

/* Search Box Wrapper */
.search-box-wrapper {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.3rem 0.3rem 0.3rem 0.85rem;
  transition: all var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-box input {
  flex: 1;
  border: none;
  background: none;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}

.clear-search-btn {
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-full);
}
.clear-search-btn:hover {
  color: var(--text-main);
  background: var(--border-color);
}

.search-submit-btn {
  background: var(--gradient-btn);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-submit-btn:hover {
  transform: scale(1.05);
}

/* Predictive Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.search-item:hover {
  background: var(--bg-card-hover);
}
.search-item img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.search-item-info {
  display: flex;
  flex-direction: column;
}
.search-item-title {
  font-size: 0.85rem;
  font-weight: 600;
}
.search-item-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Right Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-action-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
}

.icon-action-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  color: var(--accent-primary);
}

.badge-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-secondary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

.pulse {
  animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(236, 72, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1.5px solid var(--accent-primary);
}
.user-name {
  font-size: 0.8rem;
  font-weight: 700;
}

/* Sell Button CTA */
.btn-sell-gradient {
  background: var(--gradient-brand);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-glow);
  letter-spacing: 0.5px;
}
.btn-sell-gradient:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
}

/* ================= CATEGORY BAR NAVIGATION ================= */
.category-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 0;
  overflow-x: auto;
}
.category-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.cat-pill:hover {
  color: var(--text-main);
  border-color: var(--accent-primary);
}

.cat-pill.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ================= HERO SECTION ================= */
.hero-section {
  padding: 3rem 0 2rem 0;
  background: radial-gradient(circle at top center, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.hero-text-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero-text-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 1.5rem;
}

.quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-tag-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quick-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
}

.quick-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Hero Stats Glass Card */
.hero-stats-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

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

.stat-number {
  font-size: 1.25rem;
  font-weight: 800;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-divider {
  height: 1px;
  background: var(--border-color);
}

/* ================= MAIN MARKETPLACE SECTION ================= */
.main-content {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
}

/* Sidebar Filters */
.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reset-btn {
  font-size: 0.78rem;
  color: var(--accent-secondary);
  font-weight: 700;
}
.reset-btn:hover {
  text-decoration: underline;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.filter-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Toggle Switch Group */
.toggle-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.toggle-text {
  display: flex;
  flex-direction: column;
}
.toggle-title {
  font-size: 0.85rem;
  font-weight: 700;
}
.toggle-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Custom CSS Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: .3s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .3s;
}
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
input:checked + .slider {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #ffffff;
}

/* Checkbox List */
.group-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
}
.custom-checkbox input { display: none; }
.checkmark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: inline-block;
  position: relative;
}
.custom-checkbox input:checked + .checkmark {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.custom-checkbox input:checked + .checkmark:after {
  content: "✓";
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  position: absolute;
  top: 1px;
  left: 4px;
}

.sidebar-safety-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
}
.safety-icon {
  color: var(--accent-green);
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}
.sidebar-safety-box h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 0.2rem;
}
.sidebar-safety-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Listings Workspace */
.listings-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
}

.workspace-results-count {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.workspace-results-count h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.count-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.sorting-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sort-dropdown {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Listing Product Card */
.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.listing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.listing-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.badge-featured-card {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.wishlist-btn-card {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.wishlist-btn-card:hover, .wishlist-btn-card.active {
  background: #ffffff;
  color: var(--accent-secondary);
}

.card-content {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.card-negotiable-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.card-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.btn-card-details, .btn-card-chat {
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.btn-card-details {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-card-details:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
}

.btn-card-chat {
  background: var(--gradient-btn);
  color: #ffffff;
}
.btn-card-chat:hover {
  opacity: 0.9;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.empty-state p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ================= FOOTER ================= */
.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 0 0;
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0 1.25rem 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.social-links a:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.footer-links h4, .footer-download h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-download p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.app-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.app-badge-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.app-badge-btn:hover {
  border-color: var(--accent-primary);
}

.footer-bottom {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================= MODALS & DRAWERS ================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.close-modal-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
}
.close-modal-btn:hover {
  background: var(--accent-secondary);
  color: #ffffff;
  border-color: var(--accent-secondary);
}

/* Product Detail Modal */
.product-modal-card {
  width: 100%;
  max-width: 900px;
  padding: 2rem;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.main-image-box {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}

.main-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-featured {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.badge-condition {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

.product-info-panel {
  display: flex;
  flex-direction: column;
}

.modal-cat-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.product-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.modal-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.tag-negotiable {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.modal-meta-row {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.2rem 0;
}

.product-description-box h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.product-description-box p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Seller Profile Card */
.seller-profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.seller-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.seller-details {
  display: flex;
  flex-direction: column;
}

.seller-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seller-name-row h4 {
  font-size: 0.95rem;
  font-weight: 800;
}

.verified-badge-inline {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.seller-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.seller-rating {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.2rem;
}
.seller-rating span {
  font-weight: 700;
  margin-left: 0.3rem;
}

/* Modal Action Buttons */
.modal-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-secondary-glow {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-secondary-glow:hover {
  background: rgba(99, 102, 241, 0.15);
}

.btn-primary-glow {
  background: var(--gradient-btn);
  color: #ffffff;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-glow);
}
.btn-primary-glow:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-outline-call {
  grid-column: span 2;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-outline-call:hover {
  border-color: var(--text-main);
}

/* Make an Offer Modal */
.offer-modal-card {
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  text-align: center;
}

.offer-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.offer-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.offer-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.discount-presets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.preset-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}
.preset-btn:hover, .preset-btn.active {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
}

.offer-input-group {
  text-align: left;
  margin-bottom: 1rem;
}

.offer-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.currency-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
}
.currency-input-box span {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-primary);
  margin-right: 0.5rem;
}
.currency-input-box input {
  border: none;
  background: none;
  font-size: 1.1rem;
  font-weight: 800;
  width: 100%;
}

.savings-calc {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  font-size: 0.85rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.full-width {
  width: 100%;
}

/* Live Seller Chat Drawer */
.chat-drawer {
  position: fixed;
  bottom: 0; right: 2rem;
  width: 380px;
  height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  z-index: 150;
  display: flex;
  flex-direction: column;
  animation: slideUpDrawer 0.3s ease-out;
}

@keyframes slideUpDrawer {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.chat-drawer-header {
  padding: 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-seller-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.chat-seller-info h4 {
  font-size: 0.9rem;
  font-weight: 800;
}
.online-indicator {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.close-drawer-btn {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.close-drawer-btn:hover { color: var(--text-main); }

.chat-messages-container {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-date-divider {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  position: relative;
}

.message-bubble {
  max-width: 80%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.825rem;
  position: relative;
  line-height: 1.4;
}

.message-bubble.seller {
  align-self: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 2px;
}

.message-bubble.user {
  align-self: flex-end;
  background: var(--gradient-btn);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.message-time {
  display: block;
  font-size: 0.65rem;
  opacity: 0.75;
  text-align: right;
  margin-top: 0.25rem;
}

.chat-quick-replies {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  overflow-x: auto;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.quick-reply-btn {
  white-space: nowrap;
  font-size: 0.725rem;
  font-weight: 600;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}
.quick-reply-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.chat-input-row input {
  flex: 1;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Post New Ad Modal */
.post-ad-card {
  width: 100%;
  max-width: 680px;
  padding: 2rem;
}

.post-ad-header {
  margin-bottom: 1.5rem;
}
.post-ad-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.post-ad-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.required { color: var(--accent-secondary); }

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.checkbox-form-group {
  display: flex;
  align-items: center;
  padding-top: 1.5rem;
}

.photo-picker-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
}

.photo-option {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
}
.photo-option input { display: none; }
.photo-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-option.active, .photo-option:has(input:checked) {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.post-ad-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.btn-cancel {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.btn-cancel:hover { color: var(--text-main); }

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 300;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideToast {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-icon {
  font-size: 1.1rem;
}
.toast-success .toast-icon { color: var(--accent-green); }
.toast-info .toast-icon { color: var(--accent-primary); }

/* Responsive Rules */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .main-content {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-container {
    flex-wrap: wrap;
  }
  .search-box-wrapper {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .location-picker {
    min-width: 140px;
  }
  .user-name, .logo-tag {
    display: none;
  }
  .hero-text-content h1 {
    font-size: 2rem;
  }
  .chat-drawer {
    width: 100%;
    right: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}

/* ================= ADMIN DASHBOARD & LOGIN STYLING ================= */
.admin-modal-card {
  width: 100%;
  max-width: 860px;
  padding: 2rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.admin-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-icon {
  font-size: 2rem;
  color: var(--accent-primary);
}

.admin-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
}
.admin-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.admin-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.admin-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}
.admin-tab-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
}

.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-stat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
}
.icon-purple { background: linear-gradient(135deg, #6366f1, #a855f7); }
.icon-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.icon-green { background: linear-gradient(135deg, #10b981, #059669); }
.icon-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }

.admin-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  display: block;
}
.admin-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-activity-log {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.admin-activity-log h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.activity-list li {
  font-size: 0.8rem;
  color: var(--text-sub);
}
.log-time {
  font-size: 0.725rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Admin Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.825rem;
}

.admin-table th, .admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.admin-table th {
  background: var(--bg-secondary);
  font-weight: 800;
  color: var(--text-muted);
}

.status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}
.status-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.role-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}
.role-badge.admin {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
}

.btn-table-action {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.action-delete {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.action-delete:hover {
  background: #ef4444;
  color: #ffffff;
}

.action-ban {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Login Modal Card */
.login-modal-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  text-align: center;
}
.center-logo {
  margin: 0 auto 1rem auto;
}
.login-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.login-header p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ================= ACCESS CONTROL & ANALYTICS STYLING ================= */
.admin-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-admin-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
}
.btn-admin-logout:hover {
  background: #ef4444;
  color: #ffffff;
}

.border-purple { border-left: 4px solid var(--accent-primary); }
.border-blue { border-left: 4px solid #3b82f6; }
.border-green { border-left: 4px solid var(--accent-green); }
.border-pink { border-left: 4px solid #ef4444; }

.analytics-bar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}
.analytics-bar-card h4 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.progress-bar-container {
  height: 28px;
  width: 100%;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
}

.progress-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  transition: width 0.4s ease;
}

.seller-bar {
  background: var(--gradient-brand);
}

.buyer-bar {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

/* User Access Control Table Elements */
.access-granted-badge {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.access-revoked-badge {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-grant-access {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
}
.btn-grant-access:hover {
  background: var(--accent-green);
  color: #ffffff;
}

.btn-revoke-access {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
}
.btn-revoke-access:hover {
  background: #ef4444;
  color: #ffffff;
}


