/* ===================================================
   3D Turkey Lab - Ana Stil Dosyası
   =================================================== */

/* ===== CSS DEĞİŞKENLERİ ===== */
:root {
  --primary: #00d4ff;
  --accent: #7c3aed;
  --accent2: #00ff88;
  --secondary: #ff6b35;
  --bg-deep: #040810;
  --bg-dark: #070e1a;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.08);
  --text: #f0f4ff;
  --text-dim: #a0aec0;
  --text-muted: #4a5568;
  --card-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select { font-family: inherit; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== CONTAINER ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(4, 8, 16, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(4, 8, 16, 0.95);
  border-bottom-color: rgba(0, 212, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(124,58,237,0.2));
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(0,212,255,0.08);
}

.nav-search { position: relative; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 280px;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.05);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.search-icon { color: var(--text-muted); flex-shrink: 0; }

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  width: 100%;
}

.search-bar input::placeholder { color: var(--text-muted); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-deep);
}

#heroCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(0,212,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 60%, rgba(124,58,237,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 90%, rgba(255,107,53,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}

.hero-badge span {
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.outline-text {
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.3);
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInDown 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  animation: fadeInDown 0.8s ease 0.4s both;
}

.hero-stat { text-align: center; }

.hero-stat-number {
  display: block;
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.4);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-2px);
}

.btn-download {
  background: linear-gradient(135deg, var(--secondary), #ff3c78);
  color: white;
  box-shadow: 0 4px 20px rgba(255,107,53,0.3);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,107,53,0.5);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ===== SECTION ===== */
.section { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 48px; }

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-tabs {
  display: flex;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dim);
  transition: var(--transition);
  border: none;
  background: none;
  white-space: nowrap;
}

.filter-tab:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.filter-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 15px rgba(0,212,255,0.25);
}

.filter-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 9px 32px 9px 14px;
  color: var(--text);
  font-size: 13px;
  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 fill='%2300d4ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: var(--transition);
}

.filter-select option { background: var(--bg-dark); }
.filter-select:hover, .filter-select:focus { border-color: rgba(0,212,255,0.3); outline: none; }

/* ===== MODEL GRID ===== */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ===== MODEL CARD ===== */
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
}

.model-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.25);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(0,212,255,0.08);
}

.model-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-dark);
}

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

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

.model-card-img-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.model-card:hover .model-card-img-overlay { opacity: 1; }

.card-overlay-btn {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  transform: scale(0.8);
  opacity: 0;
}

.model-card:hover .card-overlay-btn { transform: scale(1); opacity: 1; }
.card-overlay-btn:nth-child(2) { transition-delay: 0.05s; }
.card-overlay-btn:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.1) !important; }
.card-overlay-btn.download-btn:hover { background: var(--secondary); border-color: var(--secondary); }

.platform-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.free-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 3px 8px;
  background: rgba(0,255,136,0.2);
  border: 1px solid rgba(0,255,136,0.4);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: 0.5px;
}

.model-card-body { padding: 16px; }

.model-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.model-card-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 5px;
}

.model-card-stats {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--text-dim);
}

.stat-item { display: flex; align-items: center; gap: 4px; }
.stat-item svg { width: 13px; height: 13px; }

.model-card-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}

.category-tag {
  font-size: 11px; padding: 3px 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 5px; color: #a78bfa;
}

.format-tag {
  font-size: 11px; padding: 3px 8px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 5px; color: var(--primary);
}

/* ===== TRENDING ===== */
.trending-list { display: flex; flex-direction: column; gap: 12px; }

.trending-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.trending-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0,212,255,0.2);
  transform: translateX(4px);
}

.trending-rank {
  font-size: 24px; font-weight: 900;
  min-width: 36px; text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trending-img {
  width: 56px; height: 56px;
  border-radius: 10px; object-fit: cover;
  flex-shrink: 0; background: var(--bg-dark);
}

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

.trending-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.trending-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.trending-downloads { font-size: 18px; font-weight: 800; color: var(--secondary); white-space: nowrap; }

/* ===== PLATFORM CARDS ===== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 24px; text-align: center;
  transition: var(--transition); cursor: pointer;
  position: relative; overflow: hidden;
}

.platform-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--platform-color, var(--primary));
  transform: scaleX(0); transition: var(--transition);
}

.platform-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }
.platform-card:hover::after { transform: scaleX(1); }

.platform-logo {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 14px;
}

.platform-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.platform-count { font-size: 13px; color: var(--text-muted); }

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px 16px; text-align: center;
  cursor: pointer; transition: var(--transition);
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0,212,255,0.2);
  transform: translateY(-3px);
}

.category-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.category-name { font-size: 13px; font-weight: 600; color: var(--text-dim); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  max-width: 900px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border: none; border-radius: 50%;
  color: var(--text); font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: rgba(255,107,53,0.3); }

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-body { padding: 24px; position: relative; }
.modal-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.modal-author { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }

.modal-stats {
  display: flex; gap: 20px;
  margin-bottom: 20px; padding: 14px;
  background: rgba(255,255,255,0.03); border-radius: 10px;
}

.modal-stat { text-align: center; }
.modal-stat-value { font-size: 18px; font-weight: 800; color: var(--primary); }
.modal-stat-label { font-size: 11px; color: var(--text-muted); }

.modal-desc {
  font-size: 14px; color: var(--text-dim);
  line-height: 1.7; margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 16px;
}

.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }

.modal-tag {
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; font-size: 12px; color: var(--text-dim);
}

.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.modal-bottom {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.modal-similar-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }

.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.similar-item { border-radius: 10px; overflow: hidden; cursor: pointer; transition: var(--transition); }
.similar-item:hover { transform: scale(1.03); }
.similar-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.similar-item-title { font-size: 12px; padding: 6px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== LOADER ===== */
.loader { display: flex; justify-content: center; padding: 40px; }

.loader-dots { display: flex; gap: 8px; }

.loader-dot {
  width: 10px; height: 10px;
  background: var(--primary); border-radius: 50%;
  animation: loaderBounce 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; background: var(--accent); }
.loader-dot:nth-child(3) { animation-delay: 0.4s; background: var(--secondary); }

@keyframes loaderBounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}

.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  min-width: 280px;
  animation: toastIn 0.4s cubic-bezier(0.4,0,0.2,1);
  transition: all 0.3s ease;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.removing { transform: translateX(100%); opacity: 0; }
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-text { font-size: 14px; font-weight: 500; }
.toast.success { border-color: rgba(0,255,136,0.3); }
.toast.error { border-color: rgba(255,107,53,0.3); }
.toast.info { border-color: rgba(0,212,255,0.3); }

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed; bottom: 24px; left: 24px;
  width: 44px; height: 44px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 50%; color: var(--primary); font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  opacity: 0; pointer-events: none;
  backdrop-filter: blur(10px); z-index: 100;
}

.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--primary); color: white; transform: translateY(-3px); }

/* ===== DOWNLOAD PARTICLE ===== */
.download-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  animation: particleBurst 0.9s ease forwards;
}

@keyframes particleBurst {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0); opacity: 0; }
}

/* ===== DOWNLOAD PROGRESS ===== */
.download-progress {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  z-index: 10000; transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--primary);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 60px 0 30px;
  margin-top: 80px; position: relative; z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 14px; font-weight: 700;
  color: var(--text); margin-bottom: 16px; letter-spacing: 0.5px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px; color: var(--text-muted);
}

/* ===== RESULTS COUNT ===== */
.search-results-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 24px;
}

.results-count { font-size: 14px; color: var(--text-muted); }
.results-count span { color: var(--primary); font-weight: 700; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

.model-card { animation: cardFadeIn 0.5s ease both; }

/* ===== REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== GLITCH ===== */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.glitch::before { color: #ff003c; animation: glitch1 3s infinite; }
.glitch::after { color: #00d4ff; animation: glitch2 3s infinite; }

@keyframes glitch1 {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  92% { clip-path: inset(30% 0 50% 0); transform: translate(-3px, 0); }
  94% { clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); }
  96% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 0); }
}

@keyframes glitch2 {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  92% { clip-path: inset(50% 0 30% 0); transform: translate(3px, 0); }
  94% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  96% { clip-path: inset(80% 0 10% 0); transform: translate(2px, 0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .search-bar { min-width: 200px; }
  .hero-stats { gap: 24px; }
  .models-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .models-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .toast-container { left: 16px; right: 16px; }
  .toast { min-width: unset; }
  .filter-tabs { overflow-x: auto; }
}
