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

:root {
  --bg: #050508;
  --bg2: #0a0a10;
  --card: #0e0e16;
  --card-hover: #131320;
  --border: #1a1a28;
  --border-hover: #252538;
  --text: #e8e8f0;
  --text-dim: #555568;
  --text-muted: #3a3a4a;
  --red: #ef4444;
  --red-soft: #dc2626;
  --red-glow: rgba(239, 68, 68, 0.08);
  --red-glow-strong: rgba(239, 68, 68, 0.15);
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.1);
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.1);
  --gradient-red: linear-gradient(135deg, #ef4444, #b91c1c);
  --gradient-dark: linear-gradient(180deg, #0a0a10 0%, #050508 100%);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 20px 50px;
  background: var(--gradient-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  position: relative;
}

.hero h1 span {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.hero .subtitle-main {
  color: #ddd;
  font-size: 1.15rem;
  margin-top: 14px;
  font-weight: 600;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subtitle-detail {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 12px;
  font-weight: 400;
  line-height: 1.7;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-divider {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin: 22px auto;
  border-radius: 2px;
  opacity: 0.6;
}

.hero .subtitle-fix {
  color: #aaa;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subtitle-fix strong {
  color: #fff;
  font-weight: 700;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
}

.stat-card {
  text-align: center;
  padding: 16px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 100px;
}

.stat-card .value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.stat-card .value.red { color: var(--red); }
.stat-card .value.green { color: var(--green); }
.stat-card .value.gold { color: var(--gold); }

.stat-card .label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
  font-weight: 600;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ---- SEARCH ---- */
.search-section {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0 16px;
  background: linear-gradient(180deg, var(--bg) 80%, transparent 100%);
}

.search-bar {
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 16px 22px;
  padding-right: 54px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-bar input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow), 0 8px 32px rgba(0,0,0,0.4);
}

.search-bar input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-bar .search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  pointer-events: none;
}

/* ---- LIST HEADER ---- */
.list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 2px 14px;
}

.list-meta .title {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.list-meta .count {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ---- PLAYER LIST ---- */
.player-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.15s ease;
}

.player-row:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateX(2px);
}

.player-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  font-family: 'Noto Sans', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', 'Inter', sans-serif;
}

.player-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.badge {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.badge.listed {
  background: var(--red-glow);
  color: var(--red);
}

.badge.removed {
  background: var(--green-glow);
  color: var(--green);
}

.btn-remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  background: var(--gradient-red);
  border: none;
  border-radius: 7px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-remove:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

/* ---- EMPTY / NOT FOUND ---- */
.not-found {
  text-align: center;
  padding: 50px 20px;
}

.not-found .icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  opacity: 0.6;
}

.not-found h3 {
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.not-found p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.empty-msg {
  text-align: center;
  color: var(--text-dim);
  padding: 50px 20px;
  font-size: 0.9rem;
}

.loading {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-dim);
}

.loading .spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- HOW IT WORKS ---- */
.how-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.how-section h2 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--red-glow-strong);
  color: var(--red);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.step h4 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.step p {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---- PAY PAGE ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 20px;
  transition: color 0.2s;
}

.back-link:hover { color: #fff; }

.pay-page {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.pay-page h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pay-page .sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 30px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.wallet-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 6px;
  transition: border-color 0.2s;
}

.wallet-card:hover { border-color: var(--border-hover); }

.wallet-card .label {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wallet-card .addr {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.75rem;
  word-break: break-all;
  color: #ccc;
  user-select: all;
  cursor: pointer;
}

.wallet-card .copy-btn {
  float: right;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-dim);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: -2px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-card .copy-btn:hover { color: #fff; border-color: var(--border-hover); }

.pay-form {
  margin-top: 30px;
}

.pay-form label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  margin-top: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pay-form input,
.pay-form select {
  width: 100%;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.pay-form input:focus,
.pay-form select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.pay-form select option {
  background: var(--bg2);
}

.submit-btn {
  width: 100%;
  margin-top: 28px;
  padding: 15px;
  background: var(--gradient-red);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
}

.submit-btn:hover { opacity: 0.9; transform: scale(1.01); }

/* ---- STATUS PAGES ---- */
.status-page {
  text-align: center;
  padding: 120px 20px;
}

.status-page .icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.status-page h2 {
  margin-bottom: 10px;
  font-weight: 800;
}

.status-page p {
  color: var(--text-dim);
  margin-bottom: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.status-page a {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient-red);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}

.status-page a:hover { opacity: 0.9; }

/* ---- ADMIN ---- */
.admin-login {
  max-width: 320px;
  margin: 120px auto;
  text-align: center;
}

.admin-login h2 { margin-bottom: 20px; }

.admin-login input {
  width: 100%;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  margin-bottom: 12px;
}

.admin-login input:focus {
  border-color: var(--red);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.admin-table th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-table .mono {
  font-family: monospace;
  font-size: 0.72rem;
  color: #aaa;
}

.btn-approve {
  padding: 5px 14px;
  background: var(--green);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
}

.btn-reject {
  padding: 5px 14px;
  background: var(--red);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
  margin-left: 4px;
}

.pending-count {
  background: var(--red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 8px;
}

/* ---- FAQ ---- */
.faq-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---- FOOTER ---- */
.footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer .partner {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 500;
}

.footer .partner a {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}

.footer .partner a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer .footer-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .hero { padding: 50px 16px 30px; }
  .hero h1 { font-size: 2rem; }
  .stats-row { gap: 12px; }
  .stat-card { padding: 12px 16px; min-width: 80px; }
  .stat-card .value { font-size: 1.3rem; }
  .steps { grid-template-columns: 1fr; }
  .player-name { max-width: 180px; }
  .player-row { padding: 11px 14px; }
}
