* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Auth gate ---------- */
body.locked { overflow: hidden; }

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-overlay.hide { animation: authOut 0.5s forwards; }

.auth-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, #0b0b0e, #1a0b33, #2a0b4a, #120a2e, #0b0b0e);
  background-size: 300% 300%;
  animation: authGradient 16s ease infinite;
}
.auth-bg::before,
.auth-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.auth-bg::before { width: 420px; height: 420px; background: #7c22ff; top: -120px; left: -80px; animation: float1 12s ease-in-out infinite; }
.auth-bg::after { width: 380px; height: 380px; background: #c026d3; bottom: -120px; right: -60px; animation: float2 14s ease-in-out infinite; }

@keyframes authGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px,40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px,-30px); } }
@keyframes authOut { to { opacity: 0; visibility: hidden; } }

.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: rgba(22, 23, 29, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: cardIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.auth-card.shake { animation: shake 0.4s; }

@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b98bff;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.auth-title { font-size: 23px; font-weight: 600; color: #fff; }
.auth-sub { font-size: 14px; color: #9a9bb0; margin: 6px 0 22px; }

.auth-field { display: block; margin-bottom: 16px; }
.auth-field > span { display: block; font-size: 13px; color: #c9cad3; margin-bottom: 7px; }
.auth-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-field input::placeholder { color: #6c7080; }
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(124, 34, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(124, 34, 255, 0.25);
}

.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#captcha-canvas { border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: #11121a; }
.captcha-refresh {
  width: 42px; height: 42px; border-radius: 10px; font-size: 20px; line-height: 1;
  background: rgba(255,255,255,0.06); color: #cfcfe0; padding: 0;
}
.captcha-refresh:hover { background: rgba(255,255,255,0.12); }

.auth-error { color: #ff5d6c; font-size: 13.5px; min-height: 18px; margin-bottom: 8px; }

.auth-submit {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(90deg, #7c22ff, #a21ce0);
  transition: transform 0.12s, filter 0.2s;
}
.auth-submit:hover { filter: brightness(1.1); }
.auth-submit:active { transform: scale(0.98); }

.auth-toggle { text-align: center; margin-top: 18px; font-size: 14px; color: #9a9bb0; }
.auth-toggle a { color: #b98bff; text-decoration: none; font-weight: 600; margin-left: 4px; }
.auth-toggle a:hover { text-decoration: underline; }

.auth-field.collapsed { display: none; }
/* ---------- end auth gate ---------- */


:root {
  --bg: #0b0b0e;
  --panel: #16171d;
  --panel-2: #1c1d24;
  --border: #25262e;
  --text: #e9e9ee;
  --muted: #b3b4be;
  --accent: #7c22ff;
  --accent-hover: #6a14ec;
  --link: #9d5cff;
}

body {
  display: flex;
  min-height: 100vh;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.sidebar {
  width: 230px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  position: fixed;
  top: 0;
  bottom: 0;
}

.brand {
  font-size: 22px;
  font-weight: 600;
  padding: 0 12px 24px;
}

nav { display: flex; flex-direction: column; gap: 6px; }

.tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #c5c7d3;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s;
}

.tab:hover { background: var(--panel-2); color: #fff; }
.tab.active { background: var(--accent); color: #fff; }
.icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.icon svg { width: 20px; height: 20px; display: block; }
.tab.active .icon { background: rgba(255, 255, 255, 0.16); }

/* Tools dropdown */
.tab-group { display: flex; flex-direction: column; }
.tab-parent {
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.tab-parent:hover { background: var(--panel-2); color: #fff; }
.tab-parent .chevron { margin-left: auto; transition: transform 0.2s; }
.tab-group.open .tab-parent .chevron { transform: rotate(180deg); }

.subtabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease, margin 0.25s ease;
}
.tab-group.open .subtabs { max-height: 200px; margin-top: 4px; }
.subtab {
  margin-left: 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.main-wrap {
  margin-left: 230px;
  flex: 1;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  border-bottom: 1px solid var(--border);
  background: #0f1014;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: linear-gradient(180deg, #3a0f86, #24085a);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.wallet-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
}

.top-icons { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2a2b33;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
}

.icon-btn:hover { background: #363741; }

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(45deg, #a020c8 0 6px, #fff 6px 12px);
  border: 2px solid #fff;
  padding: 0;
  cursor: pointer;
}
.avatar.sm { width: 38px; height: 38px; }

.profile { position: relative; }

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 260px;
  background: #16171d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 50;
}
.profile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }

.pm-header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.pm-name { font-weight: 600; color: #fff; }
.pm-role { font-size: 13px; color: var(--muted); }

.pm-balance {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(135deg, #3a0f86, #24085a);
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
}
.pm-label { font-size: 13px; color: #cdbdf5; }
.pm-amount { font-size: 26px; font-weight: 700; color: #fff; }

.pm-add, .pm-logout {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 8px;
}
.pm-nav { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 4px; }
.pm-link {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: #d6d7df;
  text-decoration: none;
  font-size: 14px;
}
.pm-link:hover { background: #222634; color: #fff; }
.pm-logout { background: transparent; border: 1px solid var(--border); color: #ff6b78; }
.pm-logout:hover { background: rgba(255, 77, 94, 0.1); }

.content { padding: 28px 40px 40px; }

.page { display: none; scroll-margin-top: 100px; }
.page.active { display: block; }

h1 { margin-bottom: 20px; font-weight: 500; font-size: 26px; }
p { color: var(--muted); line-height: 1.6; }

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.rule-box {
  background: var(--panel);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.rule-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.blue   { color: #4f8bff; }
.red    { color: #ff4d5e; }
.green  { color: #2fd37a; }
.purple { color: #9d5cff; }

.link { color: var(--link); }
.rule-box > .link { color: #4f8bff; text-decoration: none; }
.highlight { color: #a855f7; font-weight: 600; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list svg { color: #8b5cf6; flex-shrink: 0; }

.section-title { margin-top: 32px; margin-bottom: 14px; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #2fd37a;
  background: rgba(47, 211, 122, 0.12);
  border: 1px solid rgba(47, 211, 122, 0.35);
  border-radius: 20px;
  padding: 3px 10px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fd37a;
  box-shadow: 0 0 0 0 rgba(47, 211, 122, 0.6);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 211, 122, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(47, 211, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 211, 122, 0); }
}

.updates { display: flex; flex-direction: column; }
.time { font-size: 14px; color: var(--muted); margin: 8px 0 6px; }

details.update {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;
  margin-bottom: 0;
}

details.update summary {
  list-style: none;
  padding: 14px 18px;
  font-weight: 400;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.update summary::-webkit-details-marker { display: none; }
details.update summary::after { content: "▾"; font-size: 18px; transition: transform 0.2s; }
details.update[open] summary::after { transform: rotate(180deg); }
details.update p { padding: 0 18px 14px; margin: 0; }
details.update.notice summary { color: #f0b23a; }

.base-detail { padding: 6px 18px 18px; }
.detail-table { width: 100%; border-collapse: collapse; background: transparent; border-radius: 0; }
.detail-table td { padding: 12px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.detail-table td.k { width: 65%; font-weight: 600; color: #fff; }
.detail-table td.v { color: var(--muted); }
.detail-table tr:last-child td { border-bottom: none; }
.refund-no { color: #ff4d5e; font-weight: 600; }
.flag { width: 20px; height: 15px; vertical-align: -2px; border-radius: 2px; margin-right: 4px; }
.chip {
  display: inline-block;
  background: #2a2e3d;
  color: #d6d7df;
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 12px;
  margin-right: 6px;
}
.view-cards {
  display: inline-block;
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
}
.view-cards:hover { background: var(--accent-hover); }

.load-more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.load-more { padding: 11px 30px; border-radius: 8px; font-size: 15px; }

.filters {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 0.72fr 0.95fr;
  gap: 6px 32px;
  width: 100%;
  max-width: 1080px;
  background: #16171e;
  border: 1px solid #2a2b35;
  border-radius: 18px;
  padding: 22px 26px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.filter-col { display: flex; flex-direction: column; min-width: 0; }
.filter-col .dropdown,
.filter-col .pill-input { width: 100%; max-width: 260px; }
.filter-col:nth-child(3) .dropdown { max-width: 150px; }
.filter-col:nth-child(4) .dropdown,
.filter-col:nth-child(4) .pill-input { max-width: none; }

.field-label {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 12px 0 8px;
}
.filter-col .field-label:first-child { margin-top: 0; }

.dropdown {
  appearance: none;
  -webkit-appearance: none;
  background: #3a3f52 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: none;
  border-radius: 22px;
  padding: 11px 38px 11px 18px;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.dropdown option { background: #2a2e3d; }
.dropdown:disabled { opacity: 0.7; }

.pill-input {
  background: #3a3f52;
  border: none;
  border-radius: 22px;
  padding: 12px 18px;
  color: #fff;
  font: inherit;
}
.pill-input::placeholder { color: #9aa0b5; }

.hint { font-size: 12px; color: #b7b8c4; margin: 6px 0 2px; }

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.range {
  width: 100%;
  accent-color: var(--accent);
  margin: 8px 0 14px;
  height: 6px;
}

.price-inputs { display: flex; align-items: center; gap: 10px; }
.price-box {
  width: 72px;
  background: #2a2e3d;
  border: none;
  border-radius: 8px;
  padding: 11px 8px;
  color: #fff;
  font: inherit;
  text-align: center;
}
.price-label {
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  width: 170px;
  margin: 12px 0 6px;
}

.search-btn {
  margin-top: 22px;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 15px;
}

.results { margin-top: 40px; }

.results-top { margin-bottom: 14px; }
.show-entries { font-size: 16px; color: #fff; display: flex; align-items: center; gap: 8px; }
#page-size {
  background: #2a2e3d;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table.listings {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 1100px;
  background: transparent;
  border-radius: 0;
}

table.listings thead th {
  background: #15161c;
  color: #9a9bb0;
  font-weight: 500;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

table.listings td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: #e4e4ea;
}

table.listings tbody tr:hover { background: #15161c; }

.base-cell { font-weight: 500; color: #fff; white-space: nowrap; }
.bank-cell { color: #c9cad3; max-width: 170px; }
.price-cell { font-weight: 600; color: #9d5cff; white-space: nowrap; }
.buy-btn { padding: 8px 20px; border-radius: 6px; font-size: 14px; }
.multi .line { line-height: 1.7; white-space: nowrap; }

.yes { color: #2fd37a; font-weight: 700; }
.no { color: #ff4d5e; font-weight: 700; }

.bin-cell { white-space: nowrap; }
.brand { display: inline-block; margin-top: 6px; font-weight: 800; font-style: italic; font-size: 13px; }
.brand.visa { color: #1a4bc0; }
.brand.amex { color: #2e77bc; font-style: normal; }
.brand.disc { color: #e07a2c; font-style: normal; font-size: 11px; }
.brand.mc { position: relative; height: 22px; width: 36px; }
.mc-c { position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; }
.mc-c.red { left: 0; background: #eb001b; }
.mc-c.yel { left: 12px; background: #f79e1b; mix-blend-mode: screen; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.page-btn {
  background: #1c1d24;
  border: 1px solid var(--border);
  color: #e4e4ea;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 14px;
  cursor: pointer;
}
.page-btn:hover:not(:disabled) { background: #2a2e3d; }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-dots { color: #9a9bb0; padding: 0 2px; }
.page-info { margin-left: 10px; color: #9a9bb0; font-size: 14px; }

/* Tool pages (CC Checker / Bin Search) */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 820px;
  align-items: start;
}
.steps-card, .checker-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.steps-card h3 { margin-bottom: 14px; font-weight: 600; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); line-height: 1.5; }
.step-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
}
.steps b { color: #fff; }

.checker-form { display: flex; flex-direction: column; gap: 14px; }
.checker-field { display: flex; flex-direction: column; gap: 7px; }
.checker-field > span { font-size: 13px; color: #c9cad3; }
.checker-field input {
  background: #11121a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font: inherit;
  letter-spacing: 1px;
}
.checker-field input:focus { outline: none; border-color: var(--accent); }
.field-row { display: flex; gap: 14px; }
.field-row .checker-field { flex: 1; }
.cvv-field { max-width: 140px; }
.check-btn { padding: 13px; border-radius: 8px; font-size: 15px; margin-top: 4px; }

.cc-result { margin-top: 6px; font-size: 15px; min-height: 22px; }
.cc-result.error { color: #ff4d5e; }
.cc-result.checking { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.cc-result.alive {
  background: rgba(47, 211, 122, 0.12);
  border: 1px solid rgba(47, 211, 122, 0.4);
  color: #2fd37a;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cc-result.dead {
  background: rgba(255, 77, 94, 0.12);
  border: 1px solid rgba(255, 77, 94, 0.4);
  color: #ff4d5e;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cc-sub { width: 100%; font-size: 13px; font-weight: 400; color: #8fe3b4; letter-spacing: 0; }
.cc-result.dead .cc-sub { color: #f1a0a7; }
.status-dot { width: 11px; height: 11px; border-radius: 50%; background: #2fd37a; box-shadow: 0 0 10px #2fd37a; }
.cc-result.dead .status-dot { background: #ff4d5e; box-shadow: 0 0 10px #ff4d5e; }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.bin-result { margin-top: 6px; }
.bin-result.error { color: #ff4d5e; }
.bin-result.found { display: flex; flex-direction: column; gap: 2px; }
.bin-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bin-row:last-child { border-bottom: none; }
.bin-row span { color: var(--muted); }
.bin-row b { color: #fff; }

@media (max-width: 760px) { .tool-layout { grid-template-columns: 1fr; } }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
}

th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.empty { text-align: center; color: #6c7080; }

.ticket-form { display: flex; flex-direction: column; gap: 12px; max-width: 500px; }

input, textarea {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  font: inherit;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  cursor: pointer;
}

button:hover { background: var(--accent-hover); }

details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 10px; }

@media (max-width: 1100px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filter-col .dropdown,
  .filter-col .pill-input { max-width: none; }
}
@media (max-width: 700px) {
  .filters { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .rules-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VISUAL ENHANCEMENTS — depth, motion, and reactive polish
   ============================================================ */
:root {
  --accent-grad: linear-gradient(135deg, #9a48ff 0%, #6a14ec 100%);
  --glow: 0 10px 30px rgba(124, 34, 255, 0.35);
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1000px 600px at 10% -8%, rgba(124, 34, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 105% 110%, rgba(180, 60, 255, 0.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

::selection { background: rgba(124, 34, 255, 0.45); color: #fff; }

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #2a2e3d; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #3a3f52; background-clip: padding-box; }

/* ---- Sidebar ---- */
.sidebar {
  background: linear-gradient(180deg, rgba(23, 26, 35, 0.92), rgba(13, 14, 18, 0.96));
  backdrop-filter: blur(10px);
}
.brand {
  background: linear-gradient(90deg, #ffffff, #b98bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
}
.tab {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s, color 0.2s, box-shadow 0.2s;
}
.tab .icon { transition: transform 0.2s ease, background 0.2s ease; }
.tab:hover { transform: translateX(3px); }
.tab:hover .icon { transform: scale(1.08); background: rgba(255, 255, 255, 0.1); }
.tab.active {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--glow);
}
.tab-parent:hover { background: rgba(255, 255, 255, 0.05); }

/* ---- Topbar (glassy + sticky) ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.logo {
  box-shadow: 0 0 22px rgba(124, 34, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(124, 34, 255, 0.6); }
.icon-btn { transition: transform 0.18s ease, background 0.18s ease; }
.icon-btn:hover { transform: translateY(-2px); }
.avatar { box-shadow: 0 0 0 2px rgba(124, 34, 255, 0.55), 0 0 16px rgba(124, 34, 255, 0.35); }

/* ---- Buttons (gradient + lift) ---- */
button { transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease; }
button:active { transform: scale(0.97); }
.wallet-btn, .search-btn, .check-btn, .buy-btn, .load-more, .auth-submit, .view-cards, .captcha-refresh {
  background: var(--accent-grad);
  box-shadow: 0 6px 18px rgba(124, 34, 255, 0.28);
}
.wallet-btn:hover, .search-btn:hover, .check-btn:hover, .buy-btn:hover,
.load-more:hover, .auth-submit:hover, .view-cards:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 34, 255, 0.45);
  filter: brightness(1.05);
}

/* ---- Headings ---- */
.content h1 {
  background: linear-gradient(90deg, #ffffff, #cdb4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Page transition ---- */
.page.active { animation: pageIn 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---- Rule boxes (hover lift + top accent + staggered reveal) ---- */
.rule-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  animation: fadeUp 0.5s ease backwards;
}
.rule-box::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.rule-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
  border-color: rgba(124, 34, 255, 0.35);
}
.rule-box:hover::before { opacity: 1; }
.rules-grid .rule-box:nth-child(1) { animation-delay: 0.04s; }
.rules-grid .rule-box:nth-child(2) { animation-delay: 0.10s; }
.rules-grid .rule-box:nth-child(3) { animation-delay: 0.16s; }
.rules-grid .rule-box:nth-child(4) { animation-delay: 0.22s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---- Cards grid ---- */
.card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); border-color: rgba(124, 34, 255, 0.35); }

/* ---- Filters panel look ---- */
.dropdown, .pill-input, #page-size, .price-box { transition: box-shadow 0.18s ease, background 0.18s ease; }
.dropdown:focus, #page-size:focus, .pill-input:focus, .price-box:focus { outline: none; box-shadow: 0 0 0 2px rgba(124, 34, 255, 0.55); }
.check input { transition: transform 0.12s ease; }
.check:hover input { transform: scale(1.12); }

/* ---- Listings table ---- */
.table-wrap { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3); }
table.listings tbody tr { transition: background 0.16s ease; }
table.listings tbody tr:hover { background: rgba(124, 34, 255, 0.09); }
.buy-btn { box-shadow: 0 4px 14px rgba(124, 34, 255, 0.3); }

/* ---- Pagination ---- */
.page-btn { transition: background 0.16s ease, transform 0.12s ease, border-color 0.16s ease; }
.page-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(124, 34, 255, 0.4); }
.page-btn.active { box-shadow: 0 6px 16px rgba(124, 34, 255, 0.4); }

/* ---- Base updates feed ---- */
details.update {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
details.update:hover { border-color: rgba(124, 34, 255, 0.35); transform: translateX(2px); }
details.update[open] { border-color: rgba(124, 34, 255, 0.45); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
.chip { transition: background 0.16s ease, color 0.16s ease; }
.base-detail .chip:hover { background: rgba(124, 34, 255, 0.3); color: #fff; }

/* ---- Tool pages ---- */
.steps-card, .checker-form { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.checker-form:hover, .steps-card:hover { border-color: rgba(124, 34, 255, 0.25); }
.step-num { box-shadow: 0 0 12px rgba(124, 34, 255, 0.4); }
.checker-field input { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.checker-field input:focus { box-shadow: 0 0 0 3px rgba(124, 34, 255, 0.22); }

/* ---- Links ---- */
.link { position: relative; text-decoration: none; transition: color 0.16s ease; }
.link:hover { color: #c79bff; }

/* ---- Brand logo ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 12px 26px;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: inherit;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 34, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 8px 24px rgba(124, 34, 255, 0.7); }
.brand-text {
  position: relative;
  font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #ffffff 0%, #c9a9ff 45%, #7c22ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow: hidden;
}
/* subtle shine sweep */
.brand-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: brandShine 5s ease-in-out infinite;
}
@keyframes brandShine {
  0%, 60% { left: -120%; }
  80%, 100% { left: 160%; }
}

/* ---- Profile / Activities / Affiliate ---- */
.seg { display: flex; gap: 8px; margin-bottom: 22px; }
.seg-btn {
  background: #2a2b33;
  color: #d6d7df;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
}
.seg-btn.active { background: var(--accent-grad); color: #fff; box-shadow: var(--glow); }
.seg-pane { display: none; }
.seg-pane.active { display: block; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.panel-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

.user-grid { display: grid; grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.5fr); gap: 16px; }
.user-card, .stat-card {
  background: #1c1d24;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.user-email { font-weight: 600; color: #fff; }
.user-name { font-size: 14px; color: var(--muted); margin-top: 2px; }
.stat-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font-size: 16px; color: #fff; font-weight: 600; }

.act-wrap { max-width: 100%; }
.act-table { width: 100%; border-collapse: collapse; font-size: 14px; background: transparent; }
.act-table th {
  text-align: left;
  color: #9a9bb0;
  font-weight: 500;
  padding: 12px 16px;
  background: #15161c;
  border-bottom: 1px solid var(--border);
}
.act-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: #e4e4ea; }
.act-table tbody tr:hover { background: rgba(124, 34, 255, 0.08); }
.act-time { color: var(--muted); white-space: nowrap; }
.info-i {
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid #6c7080;
  font-size: 10px;
  font-style: italic;
  margin-left: 6px;
  color: #9a9bb0;
}
.act-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
#act-size {
  background: #2a2e3d;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
}
.act-pager { display: flex; gap: 6px; }
.act-pager button {
  background: #2a2b33;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 14px;
}
.act-pager button.active { background: var(--accent); border-color: var(--accent); }

.aff-hero {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.aff-hero h3 { margin-bottom: 10px; }
.ref-label { margin-top: 18px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ref-row { display: flex; gap: 10px; }
.ref-row input {
  flex: 1;
  background: #1c1d24;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font: inherit;
}
.ref-row button { padding: 0 18px; border-radius: 8px; }
.aff-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aff-stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.aff-stat span { font-size: 13px; color: var(--muted); }
.aff-stat b { display: block; font-size: 22px; color: #fff; margin-top: 4px; }
.gift { font-size: 28px; }

@media (max-width: 900px) {
  .user-grid, .aff-stats { grid-template-columns: 1fr; }
}

/* ---- Wallet / deposits ---- */
.wallet-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 26px;
}
.wallet-sub {
  margin-top: 6px;
  color: #9a9bb0;
  font-size: 14px;
}
.wallet-bal-card {
  min-width: 200px;
  background: linear-gradient(145deg, #2a1458, #16171d 70%);
  border: 1px solid rgba(124, 34, 255, 0.28);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 10px 28px rgba(124, 34, 255, 0.12);
}
.wallet-bal-card span {
  display: block;
  font-size: 12px;
  color: #cdbdf5;
  margin-bottom: 4px;
}
.wallet-bal-card b {
  font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
.wallet-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}
.wallet-toolbar .show-entries {
  font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
  font-size: 14px;
  color: #c5c7d3;
}
#wallet-page-size {
  background: #1c1d24;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
}
.wallet-new {
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  box-shadow: none;
}
.wallet-new:hover {
  background: #f2f2f2;
  color: #111;
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.wallet-table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #12131a;
  overflow-x: auto;
}
.wallet-table {
  min-width: 1180px;
  font-size: 13px;
  font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
}
.wallet-table td, .wallet-table th { white-space: nowrap; }
.wallet-table thead th {
  padding: 13px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #8b8d9c;
  background: #16171f;
}
.wallet-table td { padding: 15px 14px; }
.wallet-table tbody tr:hover { background: rgba(124, 34, 255, 0.07); }
.wallet-table .txid-cell {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: #d6d7e2;
}
.wallet-table .addr-cell {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: #aeb0c0;
}
.wallet-table .date-cell { white-space: normal; line-height: 1.35; color: #c9cad3; }
.wallet-table .time-line { color: #8b8d9c; font-size: 12px; margin-top: 2px; }
.wallet-table .num-cell {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  color: #dfe0ea;
}
.wallet-table .crypto-amt { color: #e9e9ee; }
.wallet-table .usd-amt { color: #c9a9ff; font-weight: 600; }
.cur-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.cur-chip .coin-icon { display: inline-flex; }
.cur-chip svg { width: 18px; height: 18px; }
.status-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  right: 0;
  background: #12131a;
  box-shadow: -12px 0 16px rgba(12, 13, 18, 0.55);
}
.wallet-table tbody tr:hover .status-cell { background: #16141f; }
.wallet-empty { text-align: center; color: var(--muted); padding: 42px 16px !important; }
.wallet-empty-inner { display: flex; flex-direction: column; gap: 6px; }
.wallet-empty-inner strong { color: #fff; font-size: 15px; }
.dep-status {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 999px;
}
.dep-status.completed {
  background: rgba(47, 211, 122, 0.14);
  color: #2fd37a;
  box-shadow: inset 0 0 0 1px rgba(47, 211, 122, 0.35);
}
.dep-status.pending {
  background: rgba(240, 178, 58, 0.14);
  color: #f0b23a;
  box-shadow: inset 0 0 0 1px rgba(240, 178, 58, 0.4);
}
.dep-status.checking {
  background: rgba(124, 34, 255, 0.16);
  color: #c9a9ff;
  box-shadow: inset 0 0 0 1px rgba(124, 34, 255, 0.4);
}
.dep-view {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #e9e9ee;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.dep-view:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.wallet-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.wallet-pager button {
  background: #1c1d24;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
}
.wallet-pager button.active { background: var(--accent); border-color: var(--accent); }
.wallet-pager button:disabled { opacity: 0.4; cursor: default; }

.dep-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}
.dep-overlay.open { display: grid; }
.dep-modal {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #16171d;
  border: 1px solid #2a2b35;
  border-radius: 10px;
  padding: 18px 20px 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: cardIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.dep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.dep-head h2 { font-size: 20px; font-weight: 600; color: #fff; }
.dep-x {
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: #c9cad3;
  font-size: 26px;
  line-height: 1;
  border-radius: 8px;
}
.dep-x:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.dep-form, .dep-details { display: flex; flex-direction: column; gap: 14px; }
.dep-field { display: block; }
.dep-label {
  display: block;
  font-size: 13px;
  color: #c9cad3;
  margin-bottom: 7px;
}
.dep-field > input,
.dep-copy-row {
  width: 100%;
  background: #2a2e3d;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
}
.dep-field > input {
  padding: 12px 14px;
  font: inherit;
}
.dep-field > input::placeholder { color: #6c7080; }
.dep-field > input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 34, 255, 0.22);
}
.dep-copy-row {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.dep-copy-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: #fff;
  font: inherit;
  font-size: 13px;
}
.dep-copy-row input:focus { outline: none; }
.dep-copy {
  width: 46px;
  flex-shrink: 0;
  background: #ececf1;
  color: #1c1d24;
  border-radius: 0;
  padding: 0;
  display: grid;
  place-items: center;
}
.dep-copy:hover { background: #fff; color: #111; }
.dep-copy.copied { background: #2fd37a; color: #fff; }

.cur-select { position: relative; }
.cur-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #2a2e3d;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
}
.cur-btn:hover { background: #323644; }
.cur-select.open .cur-btn {
  box-shadow: 0 0 0 2px #7c22ff;
  background: #252836;
}
.cur-placeholder { color: #9a9bb0; }
.cur-value { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.cur-chevron { opacity: 0.7; transition: transform 0.2s; }
.cur-select.open .cur-chevron { transform: rotate(180deg); }
.cur-menu {
  display: none;
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  background: #252836;
  border: 1px solid #35384a;
  border-radius: 8px;
  padding: 6px;
  z-index: 5;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.cur-select.open .cur-menu { display: block; }
.cur-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #e9e9ee;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  font-weight: 600;
}
.cur-opt:hover, .cur-opt.active { background: rgba(124, 34, 255, 0.18); }
.coin-icon { display: inline-flex; }

.dep-error { color: #ff5d6c; font-size: 13px; min-height: 16px; }
.dep-create {
  align-self: center;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 10px 36px;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-top: 4px;
}
.dep-create:hover { background: #f2f2f2; color: #111; filter: none; }
.dep-create:disabled { opacity: 0.6; cursor: wait; }
.dep-note {
  text-align: center;
  color: #2fd37a;
  font-size: 13px;
  margin-top: 4px;
}
.dep-qr {
  display: grid;
  place-items: center;
  padding: 8px 0 4px;
}
.dep-qr img, .dep-qr canvas {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 6px;
  padding: 8px;
}
.dep-pay-hint {
  text-align: center;
  font-size: 13px;
  color: #2fd37a;
}
.dep-watch {
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 2px;
}
.dep-watch.wait { color: #f0b23a; }
.dep-watch.ok { color: #2fd37a; }
.dep-watch.miss { color: #ff8b96; }
.dep-check-btn {
  align-self: center;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 10px 28px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.dep-check-btn:hover { background: #f2f2f2; color: #111; filter: none; }
.dep-check-btn:disabled { opacity: 0.6; cursor: wait; }
.dep-check-btn.hidden { display: none; }
.dep-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.dep-close-btn {
  background: #2a2b33;
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
}
.dep-close-btn:hover { background: #363741; }

.admin-only { display: none !important; }
body.is-owner .admin-only { display: flex !important; }
body.is-owner .pm-nav .admin-only { display: block !important; }
.admin-hint { color: #9a9bb0; font-size: 13px; margin-right: auto; }
.admin-table { min-width: 720px; }
.admin-user { font-weight: 700; color: #fff; }
.admin-pill {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #f0b23a;
  background: rgba(240, 178, 58, 0.14);
  border-radius: 999px;
  padding: 2px 7px;
}
.admin-row { cursor: pointer; }
.admin-row.open { background: rgba(124, 34, 255, 0.1); }
.admin-detail td { background: #101118; padding: 16px 18px !important; white-space: normal; }
.admin-detail h3 {
  font-size: 13px;
  color: #9a9bb0;
  margin-bottom: 8px;
}
.admin-mini { width: 100%; border-collapse: collapse; }
.admin-mini th, .admin-mini td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
}
.admin-mini th { color: #8b8d9c; }

@media (max-width: 700px) {
  .wallet-hero { flex-direction: column; align-items: stretch; }
  .wallet-toolbar { flex-wrap: wrap; }
  .dep-modal { max-width: 100%; }
}

/* ---- Cart ---- */
.cart-icon-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: #7c22ff;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #0f1014;
}
.cart-title {
  padding-bottom: 22px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 40px 48px;
  align-items: start;
  min-height: 280px;
}
.cart-list { min-height: 180px; }
.cart-empty {
  color: #9a9bb0;
  padding-top: 48px;
  text-align: center;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.cart-item-base { font-weight: 600; color: #fff; margin-bottom: 6px; }
.cart-item-meta { font-size: 13px; color: var(--muted); line-height: 1.5; }
.cart-item-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-side b { color: #c9a9ff; font-size: 16px; }
.cart-remove {
  background: transparent;
  border: 1px solid var(--border);
  color: #ff6b78;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
}
.cart-remove:hover { background: rgba(255, 77, 94, 0.1); }
.cart-summary {
  background: #16171d;
  border-radius: 14px;
  padding: 28px 26px 24px;
  text-align: center;
}
.cart-summary h3 { font-size: 22px; font-weight: 600; margin-bottom: 22px; color: #fff; }
.cart-total {
  display: flex;
  justify-content: space-between;
  color: #c9cad3;
  margin-bottom: 22px;
  font-size: 15px;
}
.cart-total b { color: #fff; }
.cart-err { color: #ff5d6c; font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.cart-confirm {
  background: #7c22ff;
  color: #fff;
  border-radius: 999px;
  padding: 11px 28px;
  font-weight: 600;
  min-width: 168px;
}
.cart-confirm:hover { filter: brightness(1.08); }
.cart-confirm:disabled { opacity: 0.6; cursor: wait; }

/* ---- Orders table ---- */
.orders-wrap { margin-top: 8px; }
.orders-table { min-width: 1280px; font-size: 13px; }
.orders-table td { vertical-align: top; }
.ord-id { font-weight: 600; color: #fff; }
.ord-line { line-height: 1.65; color: #e4e4ea; }
.ord-line span { color: #9a9bb0; }
.ord-blur {
  filter: blur(6.5px);
  user-select: none;
  transition: filter 0.28s ease;
}
.ord-row.revealed .ord-blur {
  filter: none;
  user-select: text;
}
.ord-status {
  display: block;
  color: #2fd37a;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}
.ord-noref { color: #9a9bb0; font-size: 13px; }
.ord-view {
  display: block;
  background: #2fd37a;
  color: #0b0b0e;
  font-weight: 700;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
}
.ord-view:hover { background: #3ee48a; color: #0b0b0e; }

/* ---- Approved overlay ---- */
.ok-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(8px);
}
.ok-overlay.show { display: grid; }
.ok-card {
  text-align: center;
  animation: okPop 0.45s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.ok-ring {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 22px rgba(47, 211, 122, 0.45));
}
.ok-svg { width: 92px; height: 92px; }
.ok-circle {
  stroke: #2fd37a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
}
.ok-overlay.show .ok-circle { animation: okDraw 0.55s ease forwards; }
.ok-tick {
  stroke: #2fd37a;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.ok-overlay.show .ok-tick { animation: okDraw 0.35s 0.42s ease forwards; }
.ok-title {
  font-size: 32px;
  font-weight: 700;
  color: #2fd37a;
  letter-spacing: -0.03em;
  animation: okFade 0.4s 0.55s both;
}
.ok-sub {
  margin-top: 6px;
  color: #c9cad3;
  animation: okFade 0.4s 0.7s both;
}
@keyframes okDraw { to { stroke-dashoffset: 0; } }
@keyframes okPop {
  from { opacity: 0; transform: scale(0.86) translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes okFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}

/* ---- FAQ / Rules ---- */
.faq-title { text-align: center; margin-bottom: 26px; }
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details.update summary { font-size: 15px; }

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
