:root {
  --bg: #faf9f6;
  --card: #ffffff;
  --card-2: #f2effa;
  --border: #e4e0ee;
  --text: #1d1830;
  --muted: #6b6485;
  --accent: #6d4fc4;
  --accent-2: #e8871e;
  --green: #12855c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
  line-height: 1.5;
}

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 12px 20px; max-width: 1080px; margin: 0 auto;
  background: rgba(250, 249, 246, .85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.brand span { color: var(--accent); }
.topnav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* single language toggle */
.lang-toggle { min-width: 52px; font-weight: 700; }

button, .primary-btn, .ghost-btn {
  cursor: pointer; border-radius: 999px; font-size: .9rem;
  padding: 9px 18px; transition: all .15s ease; font-family: inherit;
}
.primary-btn { background: var(--accent); border: none; color: #fff; font-weight: 700; text-decoration: none; display: inline-block; box-shadow: 0 2px 8px rgba(109, 79, 196, .25); }
.primary-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(109, 79, 196, .3); }
.ghost-btn { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.ghost-btn:hover { color: var(--text); border-color: var(--muted); }
.secondary-link { text-decoration: none; display: inline-block; }
.secondary-link.is-current { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.claim-link { scroll-behavior: smooth; }
.wide { width: 100%; }

.hero { text-align: center; padding: 48px 20px 12px; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px; }
.accent { color: var(--accent); }
.hero .sub { color: var(--muted); margin: 0 auto; max-width: 580px; }

.claim-card {
  max-width: 520px; margin: 28px auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(40, 25, 90, .06);
  display: none;
}
.claim-card.open { display: block; }
.claim-head {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: var(--card-2); padding: 12px 16px; font-weight: 700;
}
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: .82rem; }
.close-btn { background: none; border: none; color: var(--muted); font-size: 1rem; }
.claim-body { padding: 16px; display: grid; gap: 14px; }
.claim-body label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.claim-body input, .claim-body select, .claim-body textarea {
  width: 100%; background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: .95rem; font-family: inherit;
}
.amount-row { display: flex; align-items: center; gap: 8px; }
.amount-row input { flex: 1; }
.aura-suffix { white-space: nowrap; font-weight: 700; color: var(--accent); font-size: .9rem; }

/* social handles */
.handles-grid { display: grid; gap: 6px; }
.handle-row { display: flex; align-items: center; gap: 8px; }
.handle-net {
  flex-shrink: 0; width: 38px; text-align: center; font-size: .72rem; font-weight: 700;
  color: var(--muted); background: var(--card-2); border-radius: 8px; padding: 8px 0;
}
.handle-row input { flex: 1; }
.handle-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.chip {
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 8px; line-height: 0;
}
.chip a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; }
.chip a:hover { color: var(--accent); }
.chip-x a:hover { color: #111; }
.chip-ig a:hover { color: #d6249f; }
.chip-tt a:hover { color: #fe2c55; }
.chip-yt a:hover { color: #ff0000; }
.chip-tw a:hover { color: #9146ff; }

.board { max-width: 760px; margin: 32px auto; padding: 0 20px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
#category-filter {
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px;
}

.leaderboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: rank; }
.entry {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
}
.entry.first { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2) inset; }
.favicon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; background: #fff; object-fit: contain; border: 1px solid var(--border); }
.info { flex: 1; min-width: 0; }
.title { color: var(--text); font-weight: 600; text-decoration: none; font-size: .98rem; }
.title:hover { text-decoration: underline; }
.price { color: var(--green); font-weight: 700; font-size: 1.05rem; margin-top: 2px; }
.desc { color: var(--muted); font-size: .85rem; margin-top: 4px;
        overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.meta { color: var(--muted); font-size: .78rem; margin-top: 6px; }
.pay-separator { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; }
.pay-separator::before, .pay-separator::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.pay-btn {
  width: 100%; background: #0052ff; border: none; color: #fff;
  font-weight: 700; padding: 12px; border-radius: 10px; cursor: pointer;
}
.pay-btn:hover { filter: brightness(1.1); }

.entry-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.outbtn {
  background: var(--card-2); border: 1px solid var(--border); color: var(--accent);
  white-space: nowrap; font-weight: 600;
}
.report-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: 5px; border-radius: 8px; font-size: .85rem; cursor: pointer;
}
.report-btn:hover { color: #e8871e; border-color: #e8871e; }
.outbtn:hover { border-color: var(--accent); }

.empty { place-items: center; text-align: center; color: var(--muted); gap: 10px; padding: 30px 0; }

.activity { max-width: 760px; margin: 32px auto; padding: 0 20px; }
.activity ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.activity li { color: var(--muted); font-size: .88rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.activity b { color: var(--text); }

.how { max-width: 760px; margin: 40px auto; padding: 0 20px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.step b { color: var(--accent); }
.step p { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }

/* About page */
.about { max-width: 720px; margin: 30px auto; padding: 0 20px; }
.about h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 8px; }
.about h2 { margin-top: 34px; }
.about .lead { color: var(--muted); font-size: 1.05rem; }
.about .rules { color: var(--muted); line-height: 1.9; }
.about .credit { margin-top: 34px; color: var(--muted); background: var(--card-2); border-radius: 12px; padding: 14px 16px; }
.about a { color: var(--accent); }

.footer { text-align: center; color: var(--muted); padding: 40px 20px 60px; font-size: .85rem; }
.footer a { color: var(--accent); }
.footer-nav { margin-bottom: 10px; font-weight: 500; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .entry { flex-wrap: wrap; }
  .entry-actions { width: 100%; order: 3; }
  .outbtn { width: 100%; }
}
