/* ============================================================
   bocilelv.fun — stylesheet
   Tema: SOFT CREAM (#f5efd6), hangat & bersahabat
   ============================================================ */

:root {
  --bg:      #e5dcc8;   /* cream default baru — nyata dgn background video hero */
  --bg-alt:  #ddd2b8;   /* cream selang-seling (sedikit lebih gelap) */
  --card:    #f2ead7;   /* kartu (putih cream) */
  --border:  #cfc29f;   /* garis tepi */
  --text:    #3d3524;   /* teks utama (coklat tua) */
  --muted:   #83765a;   /* teks redup */
  --accent:  #b08968;   /* coklat kopi */
  --accent2: #a4995a;   /* olive gold */
  --accent3: #c9704a;   /* terracotta */
  --shadow:  rgba(93, 78, 45, 0.14);
  --grad:    linear-gradient(90deg, #b08968, #c9704a);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem 2rem;
  background: rgba(245,239,214,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-brand { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text { font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; }
.logo-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 600; color: var(--accent3);
  letter-spacing: 0.12em; text-transform: lowercase;
}
.logo-img { height: 38px; width: auto; border-radius: 50%; }

.nav { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }

/* ---------- NAV DROPDOWN (Tools Menu) ---------- */
.nav-dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.2rem;
  transition: color .2s;
}
.nav-dropdown-btn:hover,
.nav-dropdown:hover .nav-dropdown-btn {
  color: var(--text);
}
.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform .2s;
}
.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 36px var(--shadow);
  padding: 0.5rem;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--card);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background .12s, transform .12s;
}
.dropdown-item:hover {
  background: var(--bg-alt);
  transform: translateX(2px);
}
.dropdown-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}
.dropdown-label {
  display: block;
  font-weight: 700;
  color: var(--text) !important;
  font-size: 0.88rem;
  line-height: 1.2;
}
.dropdown-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.1rem;
}

/* ---------- GAS PILL (header, posisi link Tip yang lama) ---------- */
a.gas-link { text-decoration: none; }
.gas-pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.gas-pill:hover { background: var(--card); border-color: var(--accent); transform: scale(1.08); }
.gas-pill-icon { font-size: 0.95rem; line-height: 1; }

/* tooltip harga gwei — muncul pas hover */
.gas-pill-tip {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  white-space: nowrap;
  background: var(--text); color: var(--bg);
  font-size: 0.78rem; font-weight: 700;
  padding: 0.32rem 0.7rem; border-radius: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 18px var(--shadow);
}
.gas-pill-tip::before {          /* segitiga kecil di atas tooltip */
  content: ''; position: absolute; top: -4px; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent; border-bottom-color: var(--text);
}
.gas-pill:hover .gas-pill-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btn-x {
  padding: 0.45rem 1rem; border-radius: 999px;
  background: var(--text); color: var(--bg) !important;
  font-weight: 700; text-decoration: none; font-size: 0.9rem;
  transition: transform .15s;
}
.btn-x:hover { transform: translateY(-1px); }

/* ---------- HERO (Scene 1: full video) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: flex-start;
  overflow: hidden;
  background: #e5dcc8;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-inner { position: relative; z-index: 2; padding: 2rem; max-width: 560px; margin-left: clamp(1rem, 7vw, 8rem); text-align: left; }

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.1;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub { color: var(--muted); font-size: 1.15rem; margin: 1.2rem 0 0.9rem; max-width: 46ch; }

.hero-highlight {
  display: inline-block;
  font-weight: 700; font-size: 0.98rem;
  color: var(--accent3);
  background: rgba(201, 112, 74, 0.12);
  border: 1px solid rgba(201, 112, 74, 0.35);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin: 0 0 2rem;
}
.hero-highlight b { color: var(--text); }

.tg-icon { flex: 0 0 auto; }

.hero-btns { display: flex; gap: 1rem; justify-content: flex-start; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.85rem 1.8rem; border-radius: 14px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px var(--shadow);
}
.btn-ghost {
  background: var(--card); color: var(--text);
  border-color: var(--border);
  box-shadow: 0 4px 14px var(--shadow);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { display: block; text-align: center; margin-top: 1rem; }

/* ---------- SECTION ---------- */
.section { position: relative; max-width: 1080px; margin: 0 auto; padding: 5rem 2rem; }
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }

.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.section-sub {
  color: var(--muted); margin: 0.6rem 0 2.5rem;
  max-width: 62ch;          /* biar paragraf panjang tetap rapi & gampang dibaca */
  text-wrap: pretty;        /* seimbangin baris terakhir (browser modern) */
}

/* ---------- SECTION 2 HEADER: maskot clown dog di kiri judul ---------- */
.section-head {
  display: flex; align-items: center; gap: 2rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.section-head .section-sub { margin-bottom: 0; }
.clown-dog {
  width: clamp(140px, 18vw, 220px); height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 14px 24px var(--shadow));
}

/* ---------- MEMES GALLERY (bingkai polaroid) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  position: relative; z-index: 1;   /* kartu tetep di atas dekorasi */
}

.meme-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;                       /* polaroid: sudut tipis */
  padding: 0.8rem 0.8rem 0.5rem;            /* bingkai putih tebal */
  box-shadow: 0 10px 28px var(--shadow);    /* bayangan lembut = efek foto tergeletak */
  transition: transform .25s, box-shadow .25s;
  transform: rotate(-0.4deg);               /* sedikit miring = kesan polaroid akak */
}
.meme-card:nth-child(even) { transform: rotate(0.4deg); }
.meme-card:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px var(--shadow);
  z-index: 2;
}

.meme-frame {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-alt);
}
.meme-card img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }

.meme-card figcaption { padding: 0.7rem 0.2rem 0.3rem; }

.btn-save {
  display: block; text-align: center;
  padding: 0.45rem 0.6rem;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--muted);
  font-size: 0.8rem; font-weight: 700; text-decoration: none;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-save:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- TOOLS ---------- */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.6rem;
  box-shadow: 0 8px 24px var(--shadow);
}
.tool-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.tool-card p { color: var(--muted); font-size: 0.92rem; }

.kv { list-style: none; margin-top: 1rem; }
.kv span { display: block; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.8rem; }
.kv code {
  display: inline-block; max-width: 100%;
  font-family: 'JetBrains Mono', monospace; font-size: 0.82rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.45rem 0.6rem;
  word-break: break-all;
}
.copy-btn.tiny {
  border: none; background: none; cursor: pointer;
  font-size: 0.85rem; margin-left: 0.3rem;
  transition: transform .1s;
}
.copy-btn.tiny:hover { transform: scale(1.2); }

.steps { margin: 1rem 0 0 1.2rem; color: var(--muted); font-size: 0.92rem; }
.note { margin-top: 0.8rem; font-size: 0.8rem; color: var(--accent3); }

/* ---------- TIP BOCIL ---------- */
.tip-wrap {
  display: flex; align-items: center; gap: 3rem;
  max-width: 1080px; margin: 0 auto;
  flex-wrap: wrap;
}
.tip-content { flex: 1 1 420px; min-width: 300px; }
.tip-dog {
  flex: 0 1 340px;
  width: clamp(220px, 30vw, 340px); height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 16px 28px var(--shadow));
}

.donate-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; text-align: center;
  max-width: 640px; margin: 0 auto;
  box-shadow: 0 8px 24px var(--shadow);
}

.donate-addr {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem; color: var(--accent);
  background: var(--bg); border: 1px dashed var(--border);
  border-radius: 10px; padding: 0.9rem; margin-bottom: 1.2rem;
  word-break: break-all;
}

.chains { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.4rem; }
.chain-chip {
  font-size: 0.75rem; font-weight: 600;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border); color: var(--muted);
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center; padding: 2.5rem;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem;
}
.footer-title {
  font-size: 1.05rem; font-weight: 800; color: var(--text);
  letter-spacing: 0.02em; margin-bottom: 0.9rem;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem;
  justify-content: center; align-items: center;
}
.footer-item { color: var(--muted); }
.footer-link {
  color: var(--accent3); text-decoration: none; font-weight: 600;
  transition: color .15s;
}
.footer-link:hover { color: var(--text); }

/* ---------- toast notifikasi copy ---------- */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); font-weight: 700;
  padding: 0.7rem 1.4rem; border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- LIGHTBOX (popup gambar Hall Of Fame) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none;                    /* default tersembunyi */
  flex-direction: column; align-items: center; justify-content: center;
  gap: 1.2rem; padding: 2rem;
  background: rgba(30, 26, 18, 0.82);   /* overlay gelap transparan */
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: min(92vw, 900px);
  max-height: 74vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: var(--card);
  padding: 0.6rem;                  /* bingkai tipis kayak polaroid */
}

.lightbox-close {
  position: absolute; top: 1rem; right: 1.4rem;
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: rgba(245, 239, 214, 0.15); color: #f5efd6;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  transition: background .15s, transform .15s;
}
.lightbox-close:hover { background: rgba(245, 239, 214, 0.3); transform: rotate(90deg); }

.lightbox-save {
  padding: 0.7rem 1.6rem; border-radius: 12px;
  background: var(--text); color: var(--bg);
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: transform .15s;
}
.lightbox-save:hover { transform: translateY(-2px); }

/* ============================================================
   APP PAGE / SCOPE DASHBOARD STYLES
   ============================================================ */
.app-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.app-title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.app-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 0.5rem;
  max-width: 60ch;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  border-radius: 10px;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform .15s, border-color .15s;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.6rem 0 0.2rem;
}

.metric-val {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.metric-unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.metric-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Badges */
.badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-blue {
  background: rgba(6, 182, 212, 0.15);
  color: #0891b2;
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.badge-orange {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Leaderboard Section */
.leaderboard-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 8px 30px var(--shadow);
}

.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.toolbar-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.toolbar-sub {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.search-box input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-family: inherit;
  width: 260px;
  max-width: 100%;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus {
  border-color: var(--accent3);
  box-shadow: 0 0 0 3px rgba(201, 112, 74, 0.15);
}

/* Table Responsive */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
}

.traders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.traders-table th {
  padding: 0.9rem 1.1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  font-weight: 800;
}

.traders-table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.traders-table tbody tr {
  transition: background .12s;
}
.traders-table tbody tr:hover {
  background: rgba(221, 210, 184, 0.35);
}

/* Rank Badges */
.rank-num {
  font-weight: 800;
  color: var(--muted);
  font-size: 0.95rem;
}
.rank-badge {
  display: inline-block;
  font-weight: 900;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
}
.rank-badge.gold {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.rank-badge.silver {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.rank-badge.bronze {
  background: rgba(201, 112, 74, 0.2);
  color: #9a3412;
  border: 1px solid rgba(201, 112, 74, 0.4);
}

/* Address Cell */
.trader-addr-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.addr-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--text);
  font-size: 0.88rem;
}
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity .1s, transform .1s;
}
.btn-icon:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* PnL Cell */
.pnl-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.pnl-eth {
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
}
.pnl-usd {
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.8;
}
.pnl-pos {
  color: #15803d;
}
.pnl-neg {
  color: #b91c1c;
}

/* Trades & Tokens */
.trades-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
}
.badge-buy {
  color: #16a34a;
}
.badge-sell {
  color: #dc2626;
}
.badge-sep {
  color: var(--muted);
  opacity: 0.5;
}

.token-count-chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--muted);
}

/* DeBank Button */
.btn-debank {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn-debank:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
}
.btn-debank .arrow-icon {
  font-weight: 900;
  color: var(--accent3);
}
.btn-debank:hover .arrow-icon {
  color: var(--accent);
}

/* Loading & Spinner */
.loading-state {
  text-align: center;
  padding: 3rem 1rem !important;
  color: var(--muted);
}
.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(201, 112, 74, 0.2);
  border-top-color: var(--accent3);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 0.8rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pagination Bar (1 / 5) */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.page-info {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.page-info span {
  color: var(--text);
  font-weight: 800;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-page {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s, border-color .12s, opacity .12s;
}
.btn-page:hover:not(:disabled) {
  background: var(--bg-alt);
  border-color: var(--accent3);
}
.btn-page:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 0.3rem;
}

.btn-page-num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  transition: all .12s;
}
.btn-page-num:hover {
  background: var(--bg-alt);
  border-color: var(--accent3);
}
.btn-page-num.active {
  background: var(--accent3);
  color: #fff;
  border-color: var(--accent3);
  box-shadow: 0 2px 8px rgba(201, 112, 74, 0.35);
}

.hero-full {
  min-height: calc(100vh - 66px) !important;
}

@media (max-width: 768px) {
  .app-container { padding: 1.5rem 1rem 3rem; }
  .leaderboard-section { padding: 1.2rem; }
  .search-box { width: 100%; }
  .search-box input { width: 100%; }
  .pagination-bar { justify-content: center; text-align: center; }
}

/* ---------- responsive (mobile) ---------- */
@media (max-width: 640px) {
  .header { padding: 0.8rem 1rem; gap: 0.6rem; }
  .nav { display: flex; align-items: center; gap: 0.6rem; }
  .nav-dropdown-btn { font-size: 0.88rem; }
  .dropdown-menu { left: auto; right: -20px; transform: translateY(6px); }
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    transform: translateY(0);
  }
  .section { padding: 3.5rem 1.2rem; }
  .gallery { gap: 1.2rem; }
}
