/* FundEm Explorer — dapp ile aynı koyu tema */
:root {
  --bg: #07080d; --card: rgba(22, 25, 38, .72); --card-2: #1d2133; --solid: #151826;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12);
  --text: #f2f4fb; --muted: #8a91a8; --green: #2ef2a0; --red: #ff5470; --violet: #8b5cff;
  --grad: linear-gradient(135deg, #8b5cff 0%, #4f7cff 50%, #2ef2a0 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); background: var(--bg); font: 15px/1.5 "Inter", -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 400px at 90% -10%, rgba(139, 92, 255, .16), transparent 60%), radial-gradient(500px 400px at -10% 40%, rgba(46, 242, 160, .07), transparent 60%), var(--bg); }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 18px; letter-spacing: -.01em; margin: 28px 0 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .green { color: var(--green); } .red { color: var(--red); }
.right { text-align: right; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(7, 8, 13, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.top-in { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-tag { color: var(--muted); font-weight: 600; font-size: 13px; border-left: 1px solid var(--line-2); padding-left: 10px; }
.nav { margin-left: auto; display: flex; gap: 16px; align-items: center; font-weight: 600; font-size: 14px; }
.nav a { color: var(--text); }
.btn-mini { background: var(--green); color: #03140c !important; padding: 7px 12px; border-radius: 10px; white-space: nowrap; }
.btn-mini:hover { text-decoration: none; filter: brightness(1.05); }
.search { display: flex; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.search input { flex: 1; background: none; border: 0; color: var(--text); padding: 12px 14px; font: inherit; outline: none; min-width: 0; }
.search button { background: none; border: 0; color: var(--muted); font-size: 20px; padding: 0 16px; cursor: pointer; }
.search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 255, .15); }

/* kartlar ve istatistikler */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; }
.stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.stat b { display: block; font-size: 20px; letter-spacing: -.02em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat em { font-style: normal; font-size: 12px; color: var(--muted); }
.badge { font-size: 10px; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.badge.green { background: rgba(46, 242, 160, .14); color: var(--green); }
.badge.violet { background: rgba(139, 92, 255, .18); color: #b9a2ff; }

/* sekmeler */
.tabs { display: inline-flex; gap: 4px; background: var(--solid); padding: 4px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 12px; }
.tabs a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; }
.tabs a.on { background: var(--card-2); color: var(--text); }
.tabs a:hover { text-decoration: none; color: var(--text); }

/* tablolar */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
td.right, th.right { text-align: right; }
.tok { display: flex; align-items: center; gap: 10px; color: var(--text); }
.tok:hover { text-decoration: none; }
.tok b { display: block; }
.av { border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; color: #fff; object-fit: cover; flex-shrink: 0; width: 36px; height: 36px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .06); }
.bar { height: 6px; background: rgba(255, 255, 255, .06); border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar > div { height: 100%; background: var(--grad); border-radius: 99px; }
.bar.big { height: 12px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 8px; justify-content: center; margin: 14px 0; }
.pager a { background: var(--card-2); padding: 7px 14px; border-radius: 10px; color: var(--text); }

/* token / adres sayfası */
.head { display: flex; gap: 16px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.head .av { width: 64px; height: 64px; font-size: 24px; }
.head .meta { min-width: 0; flex: 1; }
.head .actions { display: flex; gap: 8px; }
.btn { display: inline-block; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.btn.primary { background: var(--green); color: #03140c; border-color: transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.addr-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; min-width: 0; }
.addr-line .mono { word-break: break-all; }
.copy { background: var(--card-2); border: 0; color: var(--muted); border-radius: 8px; padding: 3px 8px; cursor: pointer; font-size: 12px; }
.desc { color: var(--muted); margin: 12px 0 0; max-width: 760px; }
.links { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 14px; }
.chart { height: 300px; }
.kv { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; }
.kv span { color: var(--muted); }

.foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 30px 16px 40px; color: var(--muted); font-size: 13px; }
.foot-icon { vertical-align: middle; border-radius: 5px; margin-right: 6px; }

@media (max-width: 760px) {
  .grid2 { grid-template-columns: 1fr; }
  .nav a:not(.btn-mini) { display: none; }
  .brand img { height: 28px; }
  .hide-sm { display: none; }
  h1 { font-size: 21px; }
  .brand-tag { display: none; }
  .head { align-items: flex-start; }
  .head .av { width: 52px; height: 52px; }
  .head .actions { width: 100%; }
  .head .actions .btn { flex: 1; text-align: center; }
  body { overflow-x: hidden; }
  .stat b { font-size: 17px; }
}
