:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --panel: rgba(255, 255, 255, 0.06);
  --text: #e8eefc;
  --muted: rgba(232, 238, 252, 0.68);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #5eead4;
  --accent-2: #60a5fa;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: #000;
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.container.nav-wide {
  width: min(1400px, calc(100% - 32px));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 23, 0.64);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: auto;
  margin-left: -100px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 180px;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  max-width: 220px;
}

.nav-user:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  overflow: visible;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  flex: none;
  position: relative;
}

.nav-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

.vipgo-frame-img {
  position: absolute;
  top: -6px;
  left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

.nav-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-balance {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.55);
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.32), rgba(96, 165, 250, 0.22));
  color: rgba(232, 238, 252, 0.96);
  box-shadow: 0 10px 22px rgba(94, 234, 212, 0.12);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-primary {
  border-color: rgba(94, 234, 212, 0.35);
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.22), rgba(96, 165, 250, 0.18));
}

.hero { padding: 56px 0 18px; }

.hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-title {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

.hero-desc {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 68ch;
}

.search {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 1 1 360px;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
}

.panel {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.panel-title { font-weight: 900; }
.panel-sub { color: var(--muted); font-size: 13px; }

.list { display: grid; }

.item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: space-between;
}

.item:first-child { border-top: none; }

.item-left {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  flex: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-meta { min-width: 0; }

.item-title {
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 520px;
}

.item-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.reason {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty {
  padding: 18px 16px;
  color: var(--muted);
}

.userline {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.userline-meta { display: grid; }
.userline-name { font-weight: 900; }
.userline-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Hamburger & Nav Toggle */
.hamburger {
  display: inline-flex;
  flex: none;
}

.hamburger-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hamburger-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 40;
}

.hamburger-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(232, 238, 252, 0.88);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background-color 140ms ease, transform 140ms ease;
}

.hamburger-dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.hamburger-wrap.is-open .hamburger-dropdown {
  display: block;
}

#navToggle:checked ~ .nav .hamburger-dropdown {
  display: block;
}

#navToggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-bottom: 20px;
}

.pagination .btn {
  padding: 8px 16px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .brand { margin-left: 0; }
  .item { flex-direction: column; align-items: stretch; }
  .reason { max-width: none; }
  .item-title { max-width: none; }
}
