/* ══════════════════════════════════════════
   NEXORA CRYPTO BOTS — crypto-bots.css
   Extends style.css — do not modify style.css
══════════════════════════════════════════ */

/* ── HERO ── */
.cx-hero {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 55%, #0d0d0d 100%);
  padding: 116px 0 52px;
  overflow: hidden;
  text-align: center;
}
.cx-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.cx-hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(229,57,53,0.2), transparent 70%);
}
.cx-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}
.cx-hero-inner { position: relative; z-index: 1; }
.cx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(229,57,53,0.12);
  border: 1px solid rgba(229,57,53,0.3);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.cx-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.cx-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.65;
}
.cx-hero-search {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.cx-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.cx-search-field i { color: var(--gray); font-size: 0.9rem; }
.cx-search-field input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--dark);
  background: transparent;
}
.cx-search-field input::placeholder { color: #aaa; }
.cx-search-cat, .cx-search-sort {
  border: none;
  border-left: 1px solid var(--border);
  padding: 0 14px;
  font-size: 0.82rem;
  font-family: var(--font);
  color: var(--dark);
  background: #fff;
  outline: none;
  cursor: pointer;
}

/* ── CATEGORY BAR ── */
.cx-cat-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.cx-cats {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 2px;
}
.cx-cats::-webkit-scrollbar { display: none; }
.cx-cat {
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
}
.cx-cat:hover { border-color: var(--red); color: var(--red); }
.cx-cat.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ── MARKETPLACE LAYOUT ── */
.cx-marketplace { background: var(--bg); }
.cx-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* SIDEBAR */
.cx-sidebar-inner {
  position: sticky;
  top: 130px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.cx-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cx-sidebar-head h3 { font-size: 1rem; font-weight: 800; color: var(--dark); }
.cx-clear-filters {
  background: none;
  border: none;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}
.cx-clear-filters:hover { text-decoration: underline; }
.cx-filter-group { margin-bottom: 22px; }
.cx-filter-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cx-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 0.84rem;
  color: var(--dark);
  cursor: pointer;
}
.cx-check input { accent-color: var(--red); width: 15px; height: 15px; cursor: pointer; }
.cx-check:hover span { color: var(--red); }
.cx-verified-check { font-weight: 600; }

.cx-price-display { font-size: 0.82rem; color: var(--gray); margin-bottom: 8px; }
.cx-price-display span { color: var(--red); font-weight: 700; }
.cx-range { width: 100%; accent-color: var(--red); cursor: pointer; }
.cx-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 4px;
}

/* CONTENT */
.cx-content { min-width: 0; }
.cx-content-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.cx-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  font-family: var(--font);
}
.cx-mobile-filter-btn i { color: var(--red); }
.cx-results-count { font-size: 0.85rem; color: var(--gray); font-weight: 500; }
.cx-sort-inline {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.82rem;
  font-family: var(--font);
  color: var(--dark);
  background: #fff;
  outline: none;
  cursor: pointer;
}

/* BOT GRID */
.cx-bots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cx-bot-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  animation: cxFadeIn .4s ease both;
}
.cx-bot-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.cx-bot-image {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cx-bot-img-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
  text-align: center;
  padding: 0 10px;
}
.cx-wishlist {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all .2s;
}
.cx-wishlist:hover, .cx-wishlist.active { background: var(--red); }
.cx-bot-cat-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.cx-bot-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.cx-bot-name { font-size: 1rem; font-weight: 700; color: var(--dark); }
.cx-bot-seller {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--gray);
}
.verified-tick { color: var(--red); font-size: 0.72rem; }
.cx-bot-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}
.cx-bot-rating { color: #f59e0b; font-weight: 600; }
.cx-bot-rating i { font-size: 0.7rem; }
.cx-bot-downloads { color: var(--gray); }
.cx-bot-exchanges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.cx-exchange-tag {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(45,108,223,0.08);
  color: #2d6cdf;
  text-transform: capitalize;
}
.cx-bot-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cx-stat-lbl { font-size: 0.64rem; color: var(--gray); margin-bottom: 2px; }
.cx-stat-val { font-size: 0.82rem; font-weight: 700; }
.cx-stat-val.green { color: var(--success); }
.cx-bot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.cx-bot-price { font-size: 1.15rem; font-weight: 800; color: var(--dark); }
.cx-bot-actions { display: flex; gap: 7px; }
.cx-view-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--dark);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.cx-view-btn:hover { border-color: var(--red); color: var(--red); }
.cx-cart-btn {
  background: var(--red);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background .2s;
}
.cx-cart-btn:hover { background: var(--red-dark); }

/* SKELETON */
.cx-skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cx-skel-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.cx-skel-img, .cx-skel-line {
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: cxShimmer 1.5s infinite;
  border-radius: 6px;
}
.cx-skel-img { height: 110px; margin-bottom: 14px; }
.cx-skel-line { height: 12px; margin-bottom: 9px; }
.cx-skel-line.w70 { width: 70%; }
.cx-skel-line.w50 { width: 50%; }
.cx-skel-line.w90 { width: 90%; }
@keyframes cxShimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* NO RESULTS */
.cx-no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--gray);
}
.cx-no-results.show { display: flex; }
.cx-no-results i { font-size: 2.4rem; color: var(--border); }
.cx-no-results p { font-size: 0.9rem; }

/* ── FEATURED ── */
.cx-featured { background: #fff; }
.cx-featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cx-feat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  color: #fff;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.cx-feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cx-feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
}
.cx-feat-inner { position: relative; z-index: 1; }
.cx-feat-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.cx-feat-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.cx-feat-meta { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-bottom: 14px; display: flex; gap: 14px; }
.cx-feat-meta .green { color: #34d399; font-weight: 700; }
.cx-feat-footer { display: flex; align-items: center; justify-content: space-between; }
.cx-feat-price { font-size: 1.2rem; font-weight: 800; }
.cx-feat-btn {
  background: #fff;
  color: var(--dark);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all .2s;
}
.cx-feat-btn:hover { background: var(--red); color: #fff; }

/* ── TOP SELLERS ── */
.cx-sellers { background: var(--bg); }
.cx-sellers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cx-seller-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cx-seller-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(229,57,53,0.2); }
.cx-seller-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.cxa-1 { background: linear-gradient(135deg, #f7931a, #d97706); }
.cxa-2 { background: linear-gradient(135deg, #627eea, #3b5bdb); }
.cxa-3 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.cxa-4 { background: linear-gradient(135deg, #10b981, #059669); font-size: 1rem; }
.cxa-5 { background: linear-gradient(135deg, #E53935, #C62828); }
.cx-seller-name { font-size: 0.92rem; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 5px; }
.cx-seller-rating { font-size: 0.76rem; color: #f59e0b; font-weight: 600; }
.cx-seller-rating span { color: var(--gray); font-weight: 400; }
.cx-seller-stat { font-size: 0.76rem; color: var(--gray); }
.cx-seller-stat strong { color: var(--dark); }
.cx-seller-revenue { font-size: 0.78rem; color: var(--success); font-weight: 600; margin-bottom: 10px; }
.cx-seller-btn { width: 100%; justify-content: center; font-size: 0.78rem; padding: 8px; }

/* ── BUYER PROTECTION ── */
.cx-protection { background: #fff; }
.cx-protection-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cx-protect-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cx-protect-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(229,57,53,0.2); }
.cx-protect-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(229,57,53,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--red);
  transition: all .25s;
}
.cx-protect-card:hover .cx-protect-icon { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.05); }
.cx-protect-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--dark); }
.cx-protect-card p { font-size: 0.78rem; color: var(--gray); line-height: 1.5; }

/* ── HOW IT WORKS ── */
.cx-how { background: var(--bg); }
.cx-how-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.cx-step {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
.cx-step-num {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(28px);
  width: 22px; height: 22px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cx-step-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--red);
  transition: all .25s;
}
.cx-step:hover .cx-step-icon { background: var(--red); color: #fff; transform: translateY(-3px); }
.cx-step h3 { font-size: 0.95rem; font-weight: 700; color: var(--dark); }
.cx-step p { font-size: 0.8rem; color: var(--gray); line-height: 1.5; max-width: 180px; }
.cx-step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
  margin-top: 32px;
}

/* ── ANIMATIONS ── */
@keyframes cxFadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE SIDEBAR BACKDROP ── */
.cx-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1400;
}
.cx-sidebar-backdrop.show { display: block; }

/* ── RESPONSIVE ── */
@media(max-width:1100px) {
  .cx-bots-grid { grid-template-columns: repeat(2, 1fr); }
  .cx-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .cx-sellers-grid { grid-template-columns: repeat(3, 1fr); }
  .cx-protection-grid { grid-template-columns: repeat(3, 1fr); }
  .cx-skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:900px) {
  .cx-layout { grid-template-columns: 1fr; }
  .cx-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 290px;
    height: 100vh;
    z-index: 1500;
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }
  .cx-sidebar.open { transform: translateX(0); }
  .cx-sidebar-inner { position: relative; top: 0; height: 100%; border-radius: 0; padding-top: 76px; }
  .cx-mobile-filter-btn { display: inline-flex; }
  .cx-how-grid { flex-wrap: wrap; gap: 24px; }
  .cx-step { flex: 1 1 40%; }
  .cx-step-connector { display: none; }
}
@media(max-width:768px) {
  .cx-hero-title { font-size: 2rem; }
  .cx-hero-search { flex-direction: column; }
  .cx-search-cat, .cx-search-sort { border-left: none; border-top: 1px solid var(--border); padding: 10px 14px; }
  .cx-bots-grid { grid-template-columns: 1fr; }
  .cx-featured-grid { grid-template-columns: 1fr; }
  .cx-sellers-grid { grid-template-columns: 1fr 1fr; }
  .cx-protection-grid { grid-template-columns: 1fr 1fr; }
  .cx-skeleton-grid { grid-template-columns: 1fr; }
}
@media(max-width:480px) {
  .cx-hero-title { font-size: 1.7rem; }
  .cx-sellers-grid { grid-template-columns: 1fr; }
  .cx-protection-grid { grid-template-columns: 1fr; }
  .cx-step { flex: 1 1 100%; }
}