:root {
  --bg-dark: #05070a;
  --bg-card: #0d1117;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --primary: #00f2ff;
  --primary-glow: rgba(0, 242, 255, 0.3);
  --secondary: #7000ff;
  --accent: #ff007a;
  --text-main: #f0f6fc;
  --text-dim: #8b949e;
  --border: rgba(255, 255, 255, 0.1);
  --radar-green: #00ff41;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 24px;
  --radius-md: 12px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Radar Animation Background */
.radar-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
  background: radial-gradient(circle at 50% 50%, #0d1117 0%, #05070a 100%);
  overflow: hidden;
}
.radar-line {
  position: absolute; top: 50%; left: 50%; width: 100vw; height: 100vw;
  background: conic-gradient(from 0deg, transparent 0deg, var(--primary-glow) 20deg, transparent 40deg);
  transform-origin: top left;
  animation: rotate 8s linear infinite;
  opacity: 0.15;
}
@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Navigation */
nav {
  position: fixed; top: 0; width: 100%; padding: 20px 50px;
  display: flex; justify-content: space-between; align-items: center; z-index: 1000;
  background: rgba(5, 7, 10, 0.85); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.6rem; font-weight: 900; letter-spacing: -1.5px; text-decoration: none; color: white; }
.logo span { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-weight: 600; transition: var(--transition); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; }
.nav-links a:hover { color: var(--primary); }

/* Hero Section */
.hero { padding: 160px 20px 80px; text-align: center; max-width: 1100px; margin: 0 auto; }
.live-status { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-glass); border: 1px solid var(--border); padding: 8px 16px; border-radius: 30px; font-size: 0.8rem; font-weight: 700; color: var(--radar-green); margin-bottom: 30px; }
.live-status .dot { width: 8px; height: 8px; background: var(--radar-green); border-radius: 50%; box-shadow: 0 0 10px var(--radar-green); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.hero h1 { font-size: 4.5rem; font-weight: 900; margin-bottom: 25px; letter-spacing: -4px; line-height: 0.95; }
.hero h1 span { background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-dim); font-size: 1.25rem; margin-bottom: 50px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* Search Bar */
.search-container { max-width: 750px; margin: 0 auto; position: relative; }
.search-bar { width: 100%; padding: 24px 35px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 60px; color: white; font-size: 1.2rem; outline: none; box-shadow: 0 20px 40px rgba(0,0,0,0.6); transition: var(--transition); }
.search-bar:focus { border-color: var(--primary); box-shadow: 0 0 30px var(--primary-glow); }
.search-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: var(--primary); color: black; border: none; padding: 16px 35px; border-radius: 50px; font-weight: 800; cursor: pointer; transition: var(--transition); letter-spacing: 1px; }
.search-btn:hover { transform: translateY(-50%) scale(1.03); box-shadow: 0 0 25px var(--primary); }

/* Layout */
.main-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.content-wrapper { display: grid; grid-template-columns: 1fr 350px; gap: 40px; margin-bottom: 100px; }
@media (max-width: 1000px) { .content-wrapper { grid-template-columns: 1fr; } }

/* Section Header */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.section-header h2 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; }
.ad-label { font-size: 0.65rem; color: #444; letter-spacing: 2px; font-weight: 800; }

/* ─── Card Grid (LARGE & CLEAR) ─── */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(0, 242, 255, 0.1);
}

.card-img-link { display: block; }

.card-img {
  width: 100%;
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 10px;
}

.card-icon {
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}

.card-source-name {
  color: rgba(255,255,255,0.95);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  text-align: center;
  padding: 0 20px;
}

.status-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  color: black;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.save-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  backdrop-filter: blur(8px);
}
.save-btn:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }

.card-content { padding: 25px; }
.price { font-size: 1.6rem; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.market-value { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 16px; }
.title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.location { font-size: 0.9rem; color: var(--text-dim); }

.card-footer {
  padding: 18px 25px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.view-btn { color: var(--primary); text-decoration: none; font-weight: 800; font-size: 0.9rem; }
.view-btn:hover { text-decoration: underline; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.sidebar-card { background: var(--bg-glass); border: 1px solid var(--border); padding: 30px; border-radius: var(--radius-lg); }
.sidebar-card h3 { font-size: 1.2rem; margin-bottom: 15px; font-weight: 800; color: var(--primary); }
.sidebar-card input { width: 100%; padding: 12px; background: #000; border: 1px solid var(--border); border-radius: 8px; color: white; margin-bottom: 15px; outline: none; }
.btn-primary { width: 100%; padding: 12px; background: var(--primary); border: none; border-radius: 8px; font-weight: 800; cursor: pointer; transition: var(--transition); }
.btn-primary:hover { opacity: 0.9; }
.bank-list { list-style: none; }
.bank-list li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.bank-list li:hover { color: var(--primary); }

/* Ad Slots */
.ad-slot { background: rgba(255,255,255,0.02); border: 1px dashed #333; display: flex; align-items: center; justify-content: center; min-height: 250px; border-radius: var(--radius-md); }
.ad-placeholder { color: #444; font-weight: 900; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 3px; }

/* Guides */
.guides-section { margin-top: 100px; padding-top: 80px; border-top: 1px solid var(--border); }
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: 40px; margin-top: 40px; }
@media (max-width: 600px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-card { display: flex; background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); }
.guide-card:hover { border-color: var(--secondary); transform: scale(1.02); }
.guide-img { width: 180px; flex-shrink: 0; }
.guide-content { padding: 30px; }
.guide-content h3 { font-size: 1.4rem; margin-bottom: 10px; line-height: 1.2; }
.guide-content p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 20px; }
.guide-content a { color: var(--secondary); text-decoration: none; font-weight: 800; font-size: 0.9rem; }

/* Categories */
.categories { display: flex; justify-content: center; gap: 15px; margin-top: 35px; flex-wrap: wrap; }
.cat-chip { padding: 10px 24px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 30px; font-size: 0.9rem; cursor: pointer; transition: var(--transition); color: var(--text-dim); font-weight: 600; }
.cat-chip:hover, .cat-chip.active { background: var(--primary-glow); border-color: var(--primary); color: var(--primary); }

/* Footer */
footer { padding: 120px 40px; background: #000; text-align: center; border-top: 1px solid var(--border); }
.footer-links { display: flex; justify-content: center; gap: 50px; margin-bottom: 50px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.footer-links a:hover { color: var(--primary); }
.copyright { color: #444; font-size: 0.8rem; margin-top: 20px; }

/* State Directory Grid */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 100px; }
.state-card { background: var(--bg-card); border: 1px solid var(--border); padding: 30px 20px; border-radius: 15px; text-decoration: none; transition: var(--transition); text-align: center; }
.state-card:hover { transform: translateY(-5px); border-color: var(--primary); background: var(--primary-glow); }
.state-name { font-size: 1.2rem; font-weight: 800; color: white; margin-bottom: 10px; }
.state-stats { font-size: 0.8rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
