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

/* ── Base ── */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(160deg, #48cae4 0%, #0096c7 40%, #0077b6 100%);
  min-height: 100vh;
  color: #fff;
  padding: 0 12px 60px;
  overflow-x: hidden;
}

/* ── Particles canvas ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Top Banner ── */
.top-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #d62828, #f77f00, #d62828);
  background-size: 200% 100%;
  animation: bannerShift 3s linear infinite;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.banner-fire { font-size: 16px; }
@keyframes bannerShift { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }

/* ── Page wrapper ── */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Header ── */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding-bottom: 4px;
}
.site-logo { width: 200px; height: auto; }
.site-title {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.2;
}
.site-sub { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 500; }

/* ── Stats Row ── */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-icon { font-size: 24px; }
.stat-info { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.7); }
.stat-value { font-size: 18px; font-weight: 900; color: #ffd60a; text-shadow: 0 1px 4px rgba(0,0,0,0.2); font-variant-numeric: tabular-nums; }

/* ── Feed panel ── */
.feed-panel {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  overflow: hidden;
}
.feed-panel-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
}
.feed-panel-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,0.9); flex: 1; }
.live-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 1px; color: #4ade80;
  background: rgba(74,222,128,0.15); border: 1px solid rgba(74,222,128,0.4);
  border-radius: 4px; padding: 2px 6px; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.feed { display: flex; flex-direction: column; }
.feed-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,0.1);
  animation: slideIn 0.35s ease;
}
.feed-row:last-child { border-bottom: none; }
.feed-row:hover { background: rgba(255,255,255,0.08); }
@keyframes slideIn { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:translateX(0)} }

.feed-img { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); object-fit: contain; padding: 3px; flex-shrink: 0; }
.feed-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.feed-user { font-size: 12px; font-weight: 700; color: #fff; }
.mask { color: rgba(255,255,255,0.5); }
.feed-fruit { font-size: 11px; color: rgba(255,255,255,0.65); }
.feed-time { font-size: 10px; color: rgba(255,255,255,0.5); white-space: nowrap; flex-shrink: 0; }

/* ── Claim panel ── */
.claim-panel {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  overflow: hidden;
}
.claim-panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  text-align: center;
}
.claim-panel-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.2); }

/* ── Search bar ── */
.search-bar { padding: 10px 12px 0; }
.search-bar input {
  width: 100%; padding: 10px 14px;
  background: rgba(255,255,255,0.9); border: 2px solid transparent;
  border-radius: 8px; font-family: inherit; font-size: 13px;
  font-weight: 500; color: #1a1a2e; outline: none;
  transition: border-color 0.2s;
}
.search-bar input::placeholder { color: #888; }
.search-bar input:focus { border-color: #ffd60a; }

/* ── Filter tabs ── */
.filter-tabs {
  display: flex; gap: 6px; padding: 10px 12px 0;
  overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: rgba(255,255,255,0.8); font-family: inherit;
  font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-tab:hover { background: rgba(255,255,255,0.15); }
.filter-tab.active { background: #ffd60a; color: #1a1a2e; border-color: #ffd60a; }

/* ── Fruit grid ── */
.fruit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; }

.fruit-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: linear-gradient(145deg, #e63946 0%, #c1121f 100%);
  border: 2px solid rgba(255,255,255,0.2); border-radius: 12px;
  padding: 10px 6px 8px; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  color: #fff; font-family: inherit; user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative; overflow: hidden;
}
.fruit-btn::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 40%; background: rgba(255,255,255,0.12);
  border-radius: 10px 10px 50% 50%; pointer-events: none;
}
.fruit-btn img { width: 54px; height: 54px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.fruit-btn > span:last-child { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.4); text-align: center; line-height: 1.2; }

.fruit-btn:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.5); }
.fruit-btn:active { transform: translateY(0); }
.fruit-btn.hidden { display: none; }

/* Hover glow per rarity */
.fruit-btn[data-rarity="mythical"]:hover { box-shadow: 0 0 20px rgba(244,114,182,0.6); }
.fruit-btn[data-rarity="legendary"]:hover { box-shadow: 0 0 20px rgba(251,146,60,0.6); }
.fruit-btn[data-rarity="rare"]:hover { box-shadow: 0 0 20px rgba(96,165,250,0.5); }
.fruit-btn[data-rarity="common"]:hover { box-shadow: 0 0 20px rgba(74,222,128,0.5); }

/* ── Rarity tags ── */
.rarity-tag {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 6px; border-radius: 3px; z-index: 2; white-space: nowrap;
}
.rarity-tag.mythical  { background: #ec4899; color: #fff; }
.rarity-tag.legendary { background: #f97316; color: #fff; }
.rarity-tag.rare      { background: #3b82f6; color: #fff; }
.rarity-tag.common    { background: #22c55e; color: #fff; }

/* ── HOT badge ── */
.badge-hot {
  position: absolute; top: 3px; left: 3px;
  font-size: 7px; font-weight: 900; color: #fff;
  background: #ef4444; padding: 2px 5px; border-radius: 4px;
  z-index: 3; animation: hotPulse 1.5s infinite;
  letter-spacing: 0.5px;
}
@keyframes hotPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }

/* ── Stock badge ── */
.stock-badge {
  position: absolute; top: 3px; right: 3px;
  font-size: 7px; font-weight: 800; color: #ffd60a;
  background: rgba(0,0,0,0.5); padding: 2px 5px; border-radius: 4px;
  z-index: 3; letter-spacing: 0.3px;
}

/* ── How It Works ── */
.how-panel {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 20px 16px;
}
.how-header {
  text-align: center; font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #fff; margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.how-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.how-step { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: #ffd60a; color: #1a1a2e;
  font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255,214,10,0.4);
}
.step-title { font-size: 12px; font-weight: 800; color: #fff; }
.step-desc { font-size: 10px; color: rgba(255,255,255,0.7); line-height: 1.4; }

/* ── Testimonials ── */
.testimonials-panel {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 20px 16px;
}
.test-header {
  text-align: center; font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #fff; margin-bottom: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.test-list { display: flex; flex-direction: column; gap: 10px; }
.test-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px;
}
.test-stars { color: #ffd60a; font-size: 14px; margin-bottom: 6px; }
.test-text { font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.5; font-style: italic; margin-bottom: 6px; }
.test-author { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.6); }

/* ── FAQ ── */
.faq-panel {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 20px 16px;
}
.faq-header {
  text-align: center; font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #fff; margin-bottom: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%; padding: 12px 14px;
  background: none; border: none; color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 700;
  text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-q::after { content: '+'; font-size: 18px; font-weight: 400; color: rgba(255,255,255,0.6); transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: '-'; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
}
.faq-item.open .faq-a { max-height: 120px; padding: 0 14px 12px; }
.faq-a p { font-size: 12px; color: rgba(255,255,255,0.75); line-height: 1.5; }

/* ── Toast notifications ── */
.toast-container {
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.4s ease, toastOut 0.4s ease 3.6s forwards;
  max-width: 280px;
}
.toast-img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; }
.toast-text { font-size: 11px; color: rgba(255,255,255,0.9); line-height: 1.3; }
.toast-text strong { color: #ffd60a; }

@keyframes toastIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes toastOut { to{opacity:0;transform:translateX(-40px)} }

/* ── Footer ── */
.site-footer { text-align: center; font-size: 11px; color: rgba(255,255,255,0.5); padding: 4px 0; }

/* ── Responsive ── */
@media (max-width: 380px) {
  .fruit-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .fruit-btn img { width: 44px; height: 44px; }
  .how-steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}
