/* ════════════════════════════════════════════════════════════
   Donation Alert — нийтлэг загвар (бараан + неон ягаан/нил)
   Бүх хуудас энэ файлыг ашиглана.
════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0a0711;
  --bg-2: #0d0918;
  --surface: #150f22;
  --surface-2: #1b1430;
  --surface-3: #241a3d;
  --border: #2c2244;
  --border-2: #3a2c5e;

  --primary: #a855f7;
  --primary-2: #c026d3;
  --primary-3: #7c3aed;
  --neon: #b96bff;
  --accent: #e9d5ff;

  --text: #f3effb;
  --text-2: #b8aede;
  --text-3: #8278a8;

  --good: #34d399;
  --gold: #ffd24d;
  --danger: #ff5c7a;

  --grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 45%, #c026d3 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.18), rgba(192,38,211,.18));
  --glow: 0 0 24px rgba(168, 85, 247, .45);
  --glow-strong: 0 0 44px rgba(176, 38, 255, .60);

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(124, 58, 237, .22), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(192, 38, 211, .16), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; margin: 0; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ── Neon текст ── */
.neon {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.glow { text-shadow: var(--glow); }

/* ── Navbar ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  padding: 14px 22px;
  background: rgba(13, 9, 24, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .brand { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.nav .links { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav .links a {
  padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: .15s;
}
.nav .links a:hover { color: var(--text); background: var(--surface-2); }
.nav .links a.active { color: #fff; background: var(--grad-soft); border: 1px solid var(--border-2); }

/* ── Товч ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 12px; cursor: pointer; border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text); transition: .18s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--primary); }
.btn-primary { background: var(--grad); border: none; color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: var(--glow-strong); }
.btn-block { width: 100%; }

/* ── Карт ── */
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card-glow { box-shadow: 0 18px 60px rgba(0,0,0,.45); position: relative; }
.card-glow::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none;
}

/* ── Хэсгийн гарчиг ── */
.eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.section-title { font-size: 28px; margin: 6px 0 18px; }

/* ── Form ── */
label.fld { display: block; font-size: 13px; margin: 14px 0 6px; color: var(--text-2); }
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: #100b1c; color: var(--text);
  font-family: var(--font-body); font-size: 15px; outline: none; transition: .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(168,85,247,.18); }
textarea { resize: vertical; min-height: 64px; }

/* ── Дүнгийн chip ── */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip {
  padding: 13px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text); cursor: pointer; text-align: center;
  font-weight: 600; transition: .15s; font-family: var(--font-head);
}
.chip small { display: block; font-weight: 400; font-family: var(--font-body); color: var(--text-3); font-size: 11px; margin-top: 3px; }
.chip:hover { border-color: var(--primary); transform: translateY(-1px); }
.chip.active { background: var(--grad-soft); border-color: var(--primary); color: #fff; }

/* ── Goal бар ── */
.goal-track { height: 16px; border-radius: 999px; background: #140e22; border: 1px solid var(--border); overflow: hidden; }
.goal-fill { height: 100%; width: 0; background: var(--grad); box-shadow: var(--glow); border-radius: 999px; transition: width .8s cubic-bezier(.2,1,.3,1); }

/* ── Leaderboard / feed ── */
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.rank { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.rank.r1 { background: linear-gradient(135deg,#ffd24d,#ff9d2e); color: #2a1500; }
.rank.r2 { background: linear-gradient(135deg,#d7d7ff,#9aa0d6); color: #1b1b3a; }
.rank.r3 { background: linear-gradient(135deg,#f0997b,#d85a30); color: #3a1400; }
.amt { margin-left: auto; font-family: var(--font-head); font-weight: 700; color: var(--accent); }

.muted { color: var(--text-3); }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } .chips { grid-template-columns: repeat(3,1fr); } }

footer { color: var(--text-3); font-size: 13px; text-align: center; padding: 40px 0 28px; }
