/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #0a0b0f;
  --bg-secondary:  #11131a;
  --bg-card:       #161820;
  --bg-card-hover: #1c1e28;
  --border:        #262932;
  --border-light:  #2f3340;
  --accent:        #6c63ff;
  --accent-2:      #00d4aa;
  --accent-gold:   #f5a623;
  --accent-red:    #ff5e5e;
  --text-primary:  #f0f2ff;
  --text-secondary:#a0a8c0;
  --text-muted:    #5c6070;
  --gradient:      linear-gradient(135deg, #6c63ff 0%, #00d4aa 100%);
  --gradient-card: linear-gradient(135deg, #1a1c28 0%, #161820 100%);
  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover:  0 8px 40px rgba(108,99,255,0.15);
  --radius:        14px;
  --radius-sm:     8px;
  --transition:    0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select { font: inherit; color: inherit; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ========== HEADER / NAV ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,11,15,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-text { font-size: 17px; }
.logo-text span { color: var(--accent); }

.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.header-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 16px 9px 40px;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
}

.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus { border-color: var(--accent); }

.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* ========== HERO ========== */
.hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,212,170,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}

.hero-title .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  position: relative;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-pill strong { color: var(--accent); font-weight: 700; }
.stat-pill.gold strong { color: var(--accent-gold); }
.stat-pill.teal strong { color: var(--accent-2); }

/* ========== MAIN LAYOUT ========== */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ========== FILTERS BAR ========== */
.filters-bar {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.filter-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c6070' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.filter-group select:focus { border-color: var(--accent); }

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-left: auto;
}

.btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #5a52e0; transform: translateY(-1px); }

.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ========== RESULTS INFO ========== */
.results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.results-count strong { color: var(--text-primary); font-weight: 600; }

.sort-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.sort-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.sort-btn:hover, .sort-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(108,99,255,0.08);
}

/* ========== CARDS GRID ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ========== CARD ========== */
.card-item {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.card-item:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-item:hover::before { opacity: 1; }

/* Card header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

.card-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.card-logo-letter {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.6;
  white-space: nowrap;
}

.badge-visa { background: rgba(26,117,255,0.15); color: #6aabff; border: 1px solid rgba(26,117,255,0.2); }
.badge-mc { background: rgba(255,94,94,0.12); color: #ff8a8a; border: 1px solid rgba(255,94,94,0.2); }
.badge-network { background: rgba(108,99,255,0.12); color: #a89aff; border: 1px solid rgba(108,99,255,0.2); }
.badge-region { background: rgba(0,212,170,0.10); color: #00c49f; border: 1px solid rgba(0,212,170,0.18); }
.badge-avail { background: rgba(80,200,100,0.12); color: #6edb80; border: 1px solid rgba(80,200,100,0.2); }
.badge-unavail { background: rgba(255,94,94,0.1); color: #ff8a8a; border: 1px solid rgba(255,94,94,0.15); }

/* Card title */
.card-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.card-region {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Card stats row */
.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-value.green { color: var(--accent-2); }
.stat-value.gold { color: var(--accent-gold); }
.stat-value.muted { color: var(--text-muted); font-weight: 500; }

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 12px;
  color: var(--text-muted);
}

.star.filled { color: var(--accent-gold); }
.star.half { color: var(--accent-gold); opacity: 0.6; }

.rating-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
}

.rating-na {
  font-size: 12px;
  color: var(--text-muted);
}

.card-arrow {
  color: var(--text-muted);
  font-size: 18px;
  transition: transform var(--transition), color var(--transition);
}

.card-item:hover .card-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ========== VISIT WEBSITE BUTTON ========== */
.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 13px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 2;
}

.btn-visit:hover {
  background: #5a52e0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(108,99,255,0.4);
}

.btn-visit-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.2px;
}

.btn-visit-detail:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108,99,255,0.35);
}

/* card-footer actions */
.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* card-item as div (was a) */
.card-item {
  cursor: pointer;
}

/* ========== HORIZONTAL RELATED SCROLL ========== */
.related-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.related-scroll::-webkit-scrollbar {
  height: 5px;
}

.related-scroll::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.related-scroll::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.related-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.related-scroll .card-item {
  min-width: 280px;
  max-width: 300px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* Cashback highlight */
.cashback-banner {
  background: linear-gradient(90deg, rgba(108,99,255,0.12), rgba(0,212,170,0.08));
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cashback-icon { font-size: 14px; }
.cashback-text { color: var(--text-secondary); }
.cashback-value { font-weight: 700; color: var(--accent); }

/* ========== SKELETON LOADER ========== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 260px;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-secondary);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }

/* ========== TOP CARDS SECTION ========== */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .section-icon { font-size: 22px; }

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-btn.wide { width: auto; padding: 0 14px; }

/* ========== CARD DETAIL PAGE ========== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  margin-bottom: 28px;
}

.back-btn:hover { color: var(--accent); }
.back-btn svg { transition: transform var(--transition); }
.back-btn:hover svg { transform: translateX(-3px); }

.detail-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Detail hero */
.detail-hero {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.detail-hero-content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.detail-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  overflow: hidden;
}

.detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.detail-logo-letter {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-title-wrap {
  flex: 1;
  min-width: 200px;
}

.detail-name {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.detail-rating-score {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.detail-rating-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Key metrics row */
.key-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color var(--transition);
}

.metric-card:hover { border-color: var(--border-light); }

.metric-icon { font-size: 22px; margin-bottom: 8px; }

.metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.metric-value.accent { color: var(--accent); }
.metric-value.green { color: var(--accent-2); }
.metric-value.gold { color: var(--accent-gold); }

/* Tabs */
.tabs-wrap {
  margin-bottom: 28px;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1px;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Spec table */
.spec-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.spec-section-title {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.spec-row {
  display: flex;
  align-items: baseline;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  transition: background var(--transition);
}

.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: rgba(255,255,255,0.02); }

.spec-key {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 200px;
  flex-shrink: 0;
}

.spec-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.spec-val.positive { color: var(--accent-2); }
.spec-val.warning { color: var(--accent-gold); }
.spec-val.negative { color: var(--accent-red); }

/* Description */
.desc-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Blockchain tags */
.blockchain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chain-tag {
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  color: #a89aff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* Related cards */
.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ========== TOAST / NOTIFICATION ========== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 14px;
  box-shadow: var(--shadow);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  max-width: 360px;
}

@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ========== LOADING OVERLAY ========== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 16px;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden { opacity: 0; pointer-events: none; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ========== ERROR STATE ========== */
.error-banner {
  background: rgba(255,94,94,0.08);
  border: 1px solid rgba(255,94,94,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  color: var(--accent-red);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.error-banner strong { display: block; margin-bottom: 6px; font-size: 15px; }

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a { color: var(--text-muted); font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: var(--text-primary); }

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .header-nav { display: none; }
}

@media (max-width: 680px) {
  .header-search { max-width: 100%; }

  .filters-bar {
    flex-direction: column;
  }

  .filter-group { min-width: unset; width: 100%; }
  .filter-actions { width: 100%; justify-content: flex-end; }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero-content { flex-direction: column; }

  .key-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .spec-key { min-width: 130px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; align-items: center; }
  .key-metrics { grid-template-columns: 1fr; }
}
