/* =========================================================
   Airdrop & Task Reward Platform — custom styles (mobile-first)
   ========================================================= */
:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef2ff;
  --accent: #f59e0b;
  --bg: #f6f7fb;
  --card-radius: 0.9rem;
}

body {
  background: var(--bg);
  color: #1f2430;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

/* ---------------- Navbar ---------------- */
.brand-icon { color: var(--brand); font-size: 1.25rem; }
.navbar-brand { letter-spacing: -0.3px; }
.balance-pill {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}
.balance-pill:hover { color: #78350f; }
.announcement-bar {
  background: #ecfdf5;
  color: #065f46;
  border-bottom: 1px solid #d1fae5;
  font-size: 0.9rem;
}

/* ---------------- Layout ---------------- */
.main-content { min-height: 60vh; padding-bottom: 5rem; }
@media (min-width: 992px) {
  .main-content { padding-bottom: 2rem; }
}

/* ---------------- Desktop enhancement ----------------
   Mobile-first design, but large monitors get a wider canvas,
   bigger type and roomier cards so nothing looks cramped.   */
@media (min-width: 1200px) {
  .container { max-width: 1320px; }
}
@media (min-width: 1400px) {
  .container { max-width: 1420px; }
  body { font-size: 1.03125rem; }
  .main-content { padding-top: 1.75rem; }
}
@media (min-width: 992px) {
  .task-card .card-title { font-size: 1.05rem; }
  .reward-chip { font-size: .92rem; }
  .cat-chip { font-size: .76rem; }
  .airdrop-cover { height: 170px; }
  .airdrop-cover { font-size: 3rem; }
  .hero { border-radius: 1.35rem; }
  .stat-card .icon-wrap { width: 48px; height: 48px; font-size: 1.35rem; }
}
@media (min-width: 1400px) {
  /* a touch more breathing room inside cards on big screens */
  .soft-card.p-3 { padding: 1.4rem !important; }
}
.letter-spacing { letter-spacing: .45rem; font-weight: 700; }

/* ---------------- Cards ---------------- */
.card { border: 0; border-radius: var(--card-radius); }
.soft-card { box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08); }
.stat-card { border-radius: var(--card-radius); overflow: hidden; position: relative; }
.stat-card .icon-wrap {
  width: 42px; height: 42px; border-radius: 0.7rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; background: rgba(255,255,255,0.22); color: #fff;
}
.stat-available { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; }
.stat-pending   { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; }
.stat-locked    { background: linear-gradient(135deg, #0ea5e9, #38bdf8); color: #fff; }
.stat-earned    { background: linear-gradient(135deg, #10b981, #34d399); color: #fff; }
.stat-withdrawn { background: linear-gradient(135deg, #334155, #475569); color: #fff; }
.stat-neutral   { background: #fff; color: #1f2430; box-shadow: 0 1px 3px rgba(16,24,40,.08); }

/* ---------------- Task / Airdrop cards ---------------- */
.task-card { transition: transform .12s ease, box-shadow .12s ease; height: 100%; }
.task-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,24,40,.10); }
.task-card .card-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.reward-chip {
  display: inline-flex; align-items: center; gap: .25rem;
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 700; font-size: .85rem;
  border-radius: 999px; padding: .15rem .6rem;
}
.airdrop-cover {
  height: 130px; border-radius: calc(var(--card-radius) - 2px) calc(var(--card-radius) - 2px) 0 0;
  background: linear-gradient(135deg, #4f46e5, #a855f7);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.4rem; overflow: hidden;
}
.airdrop-cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-ribbon {
  position: absolute; top: .55rem; right: .55rem;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 999px;
}
.cat-chip {
  font-size: .72rem; font-weight: 600; letter-spacing: .2px; text-transform: uppercase;
  color: #64748b; background: #f1f5f9; border-radius: 999px; padding: .1rem .5rem;
}

/* ---------------- Hero (homepage) ---------------- */
.hero {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 55%, #8b5cf6 100%);
  color: #fff; border-radius: 1.1rem; padding: 2.2rem 1.4rem;
}
@media (min-width: 768px) { .hero { padding: 3.5rem 3rem; } }
.hero h1 { font-weight: 800; letter-spacing: -0.5px; }
.hero .btn-light { color: var(--brand-dark); font-weight: 600; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: .5rem;
}
.faq-item { background: #fff; border: 1px solid #e5e7eb; border-radius: .8rem; margin-bottom: .6rem; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: .9rem 1rem; list-style: none; }
.faq-item summary::before { content: "\F282"; font-family: "bootstrap-icons"; margin-right: .5rem; color: var(--brand); }
.faq-item[open] summary::before { content: "\F2EA"; }
.faq-item .faq-body { padding: 0 1rem 1rem; color: #4b5563; }

/* ---------------- Bottom nav (mobile only — hidden on desktop) ---------------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  background: #fff; border-top: 1px solid #e5e7eb;
  padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1; text-align: center; text-decoration: none;
  color: #6b7280; font-size: .68rem; font-weight: 600;
}
.bottom-nav a i { display: block; font-size: 1.15rem; }
.bottom-nav a.active { color: var(--brand); }
@media (min-width: 992px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0 !important; }
}

/* ---------------- Forms & tables ---------------- */
.required::after { content: " *"; color: #dc2626; }
.table > :not(caption) > * > * { padding: .6rem .5rem; }
.table-dark-header thead th { background: #f8fafc; color: #475569; font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; }
.amount-credit { color: #059669; font-weight: 700; }
.amount-debit  { color: #dc2626; font-weight: 700; }

/* ---------------- Referral ---------------- */
.ref-link-box {
  background: #fff; border: 2px dashed #c7d2fe; border-radius: .8rem;
  padding: .8rem 1rem; font-size: .9rem; word-break: break-all;
}

/* ---------------- Admin ---------------- */
.admin-body { background: #f1f3f9; }
.admin-topbar {
  background: linear-gradient(90deg, #1e1b4b, #312e81);
  color: #fff; height: 52px; position: sticky; top: 0; z-index: 1030;
}
.admin-sidebar { background: #fff; }
@media (min-width: 992px) {
  .admin-sidebar {
    position: fixed; top: 52px; bottom: 0; left: 0; width: 235px;
    overflow-y: auto; border-right: 1px solid #e5e7eb; z-index: 1020;
  }
  .admin-content { margin-left: 235px; min-height: calc(100vh - 52px); }
}
.admin-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1rem; color: #374151; text-decoration: none;
  font-size: .92rem; border-left: 3px solid transparent;
}
.admin-link i { font-size: 1.05rem; color: #6b7280; width: 20px; }
.admin-link:hover { background: #f8fafc; color: var(--brand-dark); }
.admin-link.active { background: var(--brand-soft); color: var(--brand-dark); border-left-color: var(--brand); font-weight: 600; }
.admin-link.active i { color: var(--brand); }

/* ---------------- Misc ---------------- */
.avatar-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.notif-unread { background: #eef2ff; }
section { scroll-margin-top: 80px; }
.badge { font-weight: 600; }
