:root {
  --bg: #060d0a;
  --bg2: #0b1812;
  --panel: rgba(14, 36, 26, 0.92);
  --line: rgba(61, 214, 165, 0.22);
  --mint: #26a17b;
  --mint2: #3dd6a5;
  --gold: #e6c35c;
  --text: #eaf7f0;
  --muted: #8fb5a3;
  --danger: #ff6b6b;
  --ok: #3dd6a5;
  --warn: #f0c14b;
  --font: "Segoe UI", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 45% at 50% -8%, rgba(38,161,123,.32), transparent 55%),
    radial-gradient(circle at 100% 80%, rgba(230,195,92,.08), transparent 35%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

body { overflow-x: hidden; }

.app {
  max-width: 460px;
  margin: 0 auto;
  padding: 14px 14px 32px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.logo span { color: var(--mint2); }
.sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }

.chip, .btn, .tab, .action, .coin, .method {
  font: inherit;
  border: none;
  cursor: pointer;
}

.chip {
  background: rgba(38,161,123,.15);
  color: var(--mint2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 700;
}

.hero-balance {
  text-align: center;
  padding: 20px 14px 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(38,161,123,.22), rgba(0,0,0,.35));
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.hero-balance .label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-balance .amount {
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 4px 0;
  background: linear-gradient(180deg, #fff, var(--mint2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-balance .amount small {
  font-size: .9rem;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}
.hero-balance .meta { color: var(--gold); font-size: .82rem; }

.tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 14px;
  background: rgba(0,0,0,.28);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.tab {
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 2px;
  font-size: .62rem;
  font-weight: 700;
}
.tab.active {
  background: var(--mint);
  color: #fff;
}

.view { display: none; animation: fade .25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: none;} }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.action {
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}
.action strong { display: block; font-size: .92rem; }
.action span { display: block; margin-top: 4px; color: var(--muted); font-size: .74rem; }

.info-card, .panel, .vip-card, .pay-box, .list-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.info-card h3, .section-title { margin: 0 0 8px; font-size: 1rem; }
.section-desc { color: var(--muted); font-size: .84rem; margin: 0 0 12px; line-height: 1.45; }
.info-card ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.info-card b { color: var(--text); }
.support-line { margin: 12px 0 0; font-size: .84rem; }
.support-line a { color: var(--mint2); font-weight: 700; text-decoration: none; }

.vip-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.vip-card { position: relative; overflow: hidden; }
.vip-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent, var(--mint));
}
.vip-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.vip-card h3 { margin: 0; font-size: 1.05rem; }
.vip-card .price { color: var(--gold); font-weight: 800; font-size: 1.1rem; }
.vip-card ul { margin: 10px 0; padding-left: 16px; color: var(--muted); font-size: .8rem; }
.vip-card.featured {
  box-shadow: 0 0 0 1px rgba(94, 200, 255, 0.35), 0 12px 28px rgba(0, 0, 0, 0.28);
}
.vip-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 8px;
}
.vip-stats div {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.vip-stats span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.vip-stats strong {
  color: var(--mint2);
  font-size: .92rem;
}
.vip-stats strong.profit { color: var(--gold); }
.badge {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .08em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
}

.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.method {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--text);
  text-align: left;
}
.method.active { border-color: var(--mint2); box-shadow: 0 0 0 1px rgba(61,214,165,.35); }
.method strong { display: block; font-size: .85rem; }
.method span { display: block; color: var(--muted); font-size: .72rem; margin-top: 3px; }

.pay-box { text-align: center; }
.pay-box img {
  width: min(100%, 240px);
  border-radius: 14px;
  background: #fff;
  margin: 0 auto 10px;
  display: block;
}
.addr-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.addr-row code {
  flex: 1;
  font-size: .68rem;
  word-break: break-all;
  background: rgba(0,0,0,.35);
  padding: 10px;
  border-radius: 10px;
  text-align: left;
}
.addr-row button, .btn {
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}
.addr-row button {
  background: rgba(38,161,123,.2);
  color: var(--mint2);
  border: 1px solid var(--line);
}
.btn.primary {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--mint), #1a7a5c);
  color: #fff;
}
.btn.danger { background: rgba(255,107,107,.15); color: var(--danger); border: 1px solid rgba(255,107,107,.35); }
.btn.ok { background: rgba(61,214,165,.15); color: var(--ok); border: 1px solid rgba(61,214,165,.35); }
.tiny { color: var(--muted); font-size: .75rem; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  font-size: .82rem;
  color: var(--muted);
}
.field input {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}

.file-label {
  display: block;
  margin: 10px 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
  color: var(--mint2);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.file-label input { display: none; }
.preview img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 8px;
  border: 1px solid var(--line);
}

.mine-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.mine-stats div {
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.mine-stats span { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.mine-stats strong { color: var(--mint2); font-size: .92rem; }

.energy-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 10px;
}
.energy-bar div {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--mint), var(--mint2));
  transition: width .2s ease;
}

.mine-area {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
}
.coin {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 35% 30%, #4ae0b0, var(--mint) 45%, #167a5a 78%, #0d4f3b);
  box-shadow: 0 0 0 6px rgba(38,161,123,.22), 0 18px 36px rgba(0,0,0,.45);
  animation: float 3s ease-in-out infinite;
}
.coin:active, .coin.hit { transform: scale(.92); animation: none; }
.coin.disabled { filter: grayscale(.5) brightness(.75); pointer-events: none; }
.coin .ring {
  position: absolute; inset: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28);
}
.coin .face {
  font-size: 4rem; font-weight: 800; color: #fff;
  text-shadow: 0 4px 0 rgba(0,0,0,.2);
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floater {
  position: absolute; left: 50%; top: 40%;
  transform: translate(-50%,0);
  color: var(--gold); font-weight: 800;
  animation: rise .85s ease-out forwards;
}
@keyframes rise {
  to { opacity: 0; transform: translate(-50%, -70px) scale(1.1); }
}

.subhead { margin: 14px 0 8px; font-size: .85rem; color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.list-item .left strong { display: block; font-size: .88rem; }
.list-item .left span { color: var(--muted); font-size: .75rem; }
.status {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.status.pending { color: var(--warn); }
.status.approved, .status.paid { color: var(--ok); }
.status.rejected { color: var(--danger); }

.hidden { display: none !important; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(10, 28, 20, .96);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .85rem;
  z-index: 50;
  max-width: 90vw;
}

.admin-wrap { max-width: 980px; margin: 0 auto; padding: 16px; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 18px; }
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.stat-card span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.stat-card strong { font-size: 1.4rem; color: var(--mint2); }
.admin-section { margin-bottom: 22px; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}
.table th, .table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
.table th { color: var(--muted); font-weight: 700; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions button { padding: 8px 10px; font-size: .75rem; border-radius: 10px; }
.proof-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.login-box {
  max-width: 420px;
  margin: 12vh auto;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
@media (max-width: 800px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .table { display: block; overflow-x: auto; }
}
